2003-09-15 David Lecomber <dsl@sources.redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-09-15 David Lecomber <dsl@sources.redhat.com>
2
3 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
4
5 2003-09-14 Michael Chastain <mec@shout.net>
6
7 * config/m68k/nm-apollo68v.h: Delete.
8 * config/m68k/xm-apollo68v.h: Delete.
9
10 2003-09-14 Andrew Cagney <cagney@redhat.com>
11
12 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
13 * dcache.c: Update copyrights and descriptions.
14 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
15
16 2003-09-14 Andrew Cagney <cagney@redhat.com>
17
18 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
19 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
20
21 2003-09-14 Andrew Cagney <cagney@redhat.com>
22
23 * alpha-nat.c: Remove some occurances of "register".
24 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
25 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
26 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
27 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
28 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
29 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
30 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
31 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
32 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
33 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
34 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
35 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
36 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
37 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
38 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
39 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
40 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
41 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
42 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
43 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
44 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
45 * values.c, vax-tdep.c, xcoffread.c: Ditto.
46
47 2003-09-13 Andrew Cagney <cagney@redhat.com>
48
49 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
50 * ppc-tdep.h (struct regcache): Declare opaque.
51 * objfiles.h (struct objfile_data): Declare opaque.
52 * cp-support.h (struct objfile): Declare opaque.
53 * linux-nat.h (target_waitstatus): Declare opaque.
54
55 2003-09-14 Mark Kettenis <kettenis@gnu.org>
56
57 * cris-tdep.c (cris_gdbarch_init): Set
58 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
59 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
60 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
61 * mips-tdep.c (mips_gdbarch_init): Likewise.
62 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
63 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
64
65 2003-09-13 Andrew Cagney <cagney@redhat.com>
66
67 * values.c (using_struct_return): Delete "function" and "funcaddr"
68 parameters.
69 * value.h (using_struct_return): Update declaration.
70 * infcmd.c (finish_command_continuation): Update.
71 (finish_command): Update.
72 * infcall.c (call_function_by_hand): Update.
73 * eval.c (evaluate_subexp_standard): Update.
74
75 2003-09-13 Christopher Faylor <cgf@redhat.com>
76
77 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
78 SSE registers since gdb will not operate correctly without this.
79 Restore include file ordering munged in previous change.
80 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
81
82 2003-09-13 Mark Kettenis <kettenis@gnu.org>
83
84 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
85 REG_STRUCT_HAS_ADDR.
86 * gdbarch.c, gdbarch.h: Updated.
87 * infcall.c (call_function_by_hand): Update.
88 * stabsread.c (define_symbol): Updated.
89
90 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
91
92 2003-09-12 Christopher Faylor <cgf@redhat.com>
93
94 * win32-nat.c: Reorganize so that defines used by target headers are
95 actually defined by the system headers.
96 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
97 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
98
99 2003-09-12 Jim Blandy <jimb@redhat.com>
100
101 * dbxread.c (read_dbx_symtab): Don't report an internal error if
102 the file has no .data, .bss, or .rodata sections. Instead wait
103 until we see a variable alleged to live in one of those sections.
104
105 * dbxread.c (read_dbx_symtab): If we have no .data section and no
106 .bss section, presume that any variables we find live in the
107 .rodata section.
108
109 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
110 offsets for global and static variables.
111
112 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
113 symbol types are, by definition, in the .data section, so it is
114 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
115 If there is no .data section, there should be no N_DATA or N_DATA
116 | N_EXT symbols.
117
118 2003-09-12 Mark Kettenis <kettenis@gnu.org>
119
120 * amd64fbsd-tdep.c: Fix sigtramp recognition.
121 (amd64fbsd_sigcontext_addr): Rewrite.
122 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
123 with correct values.
124 (amd64fbsd_sc_reg_offset): Initialize with correct values.
125 (amd64fbsd_init_abi): Fix typo.
126
127 2003-09-12 Andrew Cagney <cagney@redhat.com>
128
129 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
130 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
131
132 2003-09-12 Andrew Cagney <cagney@redhat.com>
133
134 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
135 "entry_file_highpc". Update comments.
136 * defs.h (deprecated_inside_entry_file): Rename
137 "inside_entry_file".
138 * blockframe.c (deprecated_inside_entry_file): Rename
139 "inside_entry_file".
140 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
141 * vax-tdep.c (vax_frame_chain): Update.
142 * sh64-tdep.c (sh64_frame_chain): Update.
143 * sh-tdep.c (sh_frame_chain): Update.
144 * rs6000-tdep.c (rs6000_frame_chain): Update.
145 * ns32k-tdep.c (ns32k_frame_chain): Update.
146 * mips-tdep.c (mips_frame_chain): Update.
147 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
148 * m32r-tdep.c (m32r_frame_this_id): Update.
149 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
150 * frv-tdep.c (frv_frame_this_id): Update.
151 * d10v-tdep.c (d10v_frame_this_id): Update.
152 * cris-tdep.c (cris_frame_chain): Update.
153 * blockframe.c (legacy_frame_chain_valid): Update.
154 * avr-tdep.c (avr_frame_this_id): Update.
155 * arm-tdep.c (arm_prologue_this_id): Update.
156 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
157 * objfiles.c (objfile_relocate): Update.
158 * mipsread.c (mipscoff_symfile_read): Update.
159 (mipscoff_symfile_read): Update.
160 * mdebugread.c (parse_partial_symbols): Update.
161 * dwarfread.c (read_file_scope): Update.
162 * dwarf2read.c (read_file_scope): Update.
163 * dbxread.c (read_dbx_symtab): Update.
164 (read_dbx_symtab): Update.
165 * coffread.c (complete_symtab): Update.
166
167 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
168
169 * top.c (quit_target): New static helper function.
170 (quit_force): Moved code to quit_target(). Call quit_target()
171 via catch_errors() to catch errors during quit.
172
173 2003-09-11 David Carlton <carlton@kealia.com>
174
175 * buildsym.c (finish_block): Use allocate_block to allocate the
176 block.
177 * mdebugread.c (new_block): Add FIXME.
178
179 2003-09-11 David Carlton <carlton@kealia.com>
180
181 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
182 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
183 (recursive_dump_type): Ditto.
184 * printcmd.c (print_formatted): Ditto.
185 * typeprint.c (print_type_scalar): Ditto.
186 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
187 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
188 * cp-support.h: Declare cp_check_possible_namespace_symbols,
189 maint_cplus_cmd_list.
190 * cp-support.c: Make maint_cplus_cmd_list extern.
191 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
192 command.h.
193 (lookup_symbol_file): Look in possible namespace blocks when
194 appropriate.
195 (initialize_namespace_symtab): New.
196 (get_possible_namespace_block, free_namespace_block)
197 (check_possible_namespace_symbols)
198 (check_possible_namespace_symbols_loop)
199 (check_one_possible_namespace_symbol)
200 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
201 (_initialize_cp_namespace): Ditto.
202 * block.h: Declare allocate_block.
203 * block.c (allocate_block): New.
204 * jv-lang.c (get_java_class_symtab): Allocate blocks via
205 allocate_block.
206 * symfile.h: Update declaration of add_psymbol_to_list.
207 * symfile.c (add_psymbol_to_list): Return the partial symbol in
208 question.
209 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
210 scan_partial_symbols_call.
211 (scan_partial_symbols): Add NAMESPACE argument; update calls to
212 helper functions.
213 (add_partial_symbol): If necessary, scan mangled names for names
214 of namespaces.
215 (add_partial_namespace): Add NAMESPACE argument; generate partial
216 symbols associated to namespaces.
217 (add_partial_enumeration): Add NAMESPACE argument.
218 (new_symbol): Allow namespace syms.
219 (read_namespace): Generate namespace syms.
220 * objfiles.h: Add opaque declaration of struct symtab.
221 (struct objfile): Add cp_namespace_symtab member.
222 * objfiles.c (allocate_objfile): Set
223 objfile->cp_namespace_symtab.
224 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
225 dictionary_h, command_h.
226
227 2003-09-11 Andrew Cagney <cagney@redhat.com>
228
229 * rs6000-tdep.c (rs6000_push_dummy_call): Use
230 regcache_raw_write_signed to set SP_REGNUM, move the operation to
231 near the function's end.
232 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
233 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
234 regcache_raw_write_signed to set SP_REGNUM.
235
236 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
237
238 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
239 orig_addrs is set up properly.
240
241 2003-09-11 Andrew Cagney <cagney@redhat.com>
242
243 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
244 * gdbarch.h, gdbarch.c: Re-generate.
245 * infcall.c (call_function_by_hand): Update.
246 * hppa-tdep.c (hppa_push_arguments): Update.
247 * ada-lang.c (place_on_stack): Update.
248 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
249 * sparc-tdep.c (sparc_gdbarch_init): Update.
250 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
251 * hppa-tdep.c (hppa_gdbarch_init): Update.
252 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
253 stack_align.
254
255 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
256
257 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
258 register do need a frame.
259
260 2003-09-11 Andrew Cagney <cagney@redhat.com>
261
262 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
263 buildable since GDB 5.0.
264 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
265 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
266 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
267 * irix4-nat.c: Delete file.
268 * config/mips/irix4.mh: Delete file.
269 * config/mips/irix3.mh: Delete file.
270 * config/mips/irix3.mt: Delete file.
271 * config/mips/tm-irix3.h: Delete file.
272 * config/mips/nm-irix3.h: Delete file.
273 * config/mips/xm-irix3.h: Delete file.
274 * config/mips/nm-irix4.h: Delete file.
275 * config/mips/xm-irix4.h: Delete file.
276 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
277
278 2003-09-10 J. Brobecker <brobecker@gnat.com>
279
280 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
281 * Makefile.in (hppa-tdep.o): Update dependencies.
282
283 2003-09-10 James E Wilson <wilson@specifixinc.com>
284
285 * MAINTAINERS: Change my e-mail address. Move to paper trail
286 section.
287
288 2003-09-10 Kevin Buettner <kevinb@redhat.com>
289
290 * MAINTAINERS (frv): New ISA entry.
291
292 2003-09-10 Kevin Buettner <kevinb@redhat.com>
293
294 * frv-tdep.c (dis-asm.h): Include.
295 * Makefile.in (frv-tdep.o): Update dependencies.
296
297 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
298
299 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
300 Fix typo for high range of floating registers.
301
302 2003-09-09 David Carlton <carlton@kealia.com>
303
304 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
305 highpc initialization here out of scan_partial_symbols.
306 (scan_partial_symbols): Restructure into a recursive version,
307 calling add_partial_namespace and add_partial_enumeration when
308 appropriate.
309 (add_partial_namespace): New.
310 (add_partial_enumeration, locate_pdi_sibling): Ditto.
311
312 2003-09-09 Andrew Cagney <cagney@redhat.com>
313
314 * rs6000-tdep.c (ppc_push_return_address): Delete function.
315 (rs6000_push_dummy_call): Set LR to BP_ADDR.
316 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
317 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
318
319 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
320 (rs6000_push_dummy_call): Set the "TOC" register.
321
322 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
323 methods "max_register_raw_size", "max_register_virtual_size" or
324 "register_virtual_size".
325
326 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
327
328 * MAINTAINERS: Update my e-mail address.
329
330 2003-09-09 Andrew Cagney <cagney@redhat.com>
331
332 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
333 (rs6000_push_dummy_call): Store the struct return address.
334 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
335
336 2003-09-09 Andrew Cagney <cagney@redhat.com>
337
338 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
339 "ppc_sysv_abi_push_arguments".
340 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
341 "ppc_sysv_abi_push_arguments".
342 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
343 instead of "push_arguments".
344 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
345
346 2003-09-09 Andrew Cagney <cagney@redhat.com>
347
348 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
349 instead of CALL_DUMMY_ADDRESS.
350
351 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
352
353 * p-lang.c: Eliminate "register".
354 * c-lang.c: Ditto.
355 * expprint.c: Ditto.
356 * f-lang.c: Ditto.
357 * jv-lang.c: Ditto.
358 * language.c: Ditto.
359 * m2-lang.c: Ditto.
360 * parse.c: Ditto.
361 * scm-lang.c: Ditto.
362 * objc-lang.c: Ditto.
363
364 2003-09-09 Nick Clifton <nickc@redhat.com>
365
366 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
367
368 2003-09-04 Andrew Cagney <cagney@redhat.com>
369
370 * avr-tdep.c: Include "dis-asm.h".
371 * cris-tdep.c: Include "dis-asm.h".
372 (cris_delayed_get_disassembler): Use "struct disassemble_info"
373 instead of corresponding typedef.
374 * h8300-tdep.c: Include "dis-asm.h".
375 * ia64-tdep.c: Include "dis-asm.h".
376 * i386-tdep.c: Include "dis-asm.h".
377 (i386_print_insn): Use "struct disassemble_info" instead of
378 corresponding typedef.
379 * m68k-tdep.c: Include "dis-asm.h".
380 * mcore-tdep.c: Include "dis-asm.h".
381 * mips-tdep.c: Include "dis-asm.h".
382 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
383 instead of corresponding typedef.
384 * ns32k-tdep.c: Include "dis-asm.h".
385 * s390-tdep.c: Include "dis-asm.h".
386 * sparc-tdep.c: Include "dis-asm.h".
387 * vax-tdep.c: Include "dis-asm.h".
388 * v850-tdep.c: Include "dis-asm.h".
389 * mn10300-tdep.c: Include "dis-asm.h".
390 * rs6000-tdep.c: Include "dis-asm.h".
391 * xstormy16-tdep.c: Include "dis-asm.h".
392 (_initialize_xstormy16_tdep): Delete "extern" declaration of
393 print_insn_xstormy16.
394 * Makefile.in (v850-tdep.o): Update dependencies.
395 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
396 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
397 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
398 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
399 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
400 (gdbarch_h): Remove $(dis_asm_h).
401 * disasm.c: Include "dis-asm.h".
402 (dis_asm_read_memory): Use "struct disassemble_info" instead of
403 corresponding typedef.
404 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
405 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
406 * gdbarch.sh: Do not include "dis-asm.h".
407 (struct disassemble_info): Declare opaque.
408 (TARGET_PRINT_INSN): Update declaration.
409 * gdbarch.h, gdbarch.c: Re-generate.
410
411 2003-09-08 Andrew Cagney <cagney@redhat.com>
412
413 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
414 CALL_DUMMY_ADDRESS, change to a predicate.
415 * gdbarch.h, gdbarch.c: Re-generate.
416 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
417 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
418 * infcall.c (call_function_by_hand): Ditto.
419 * sparc-tdep.c (sparc_push_return_address): Ditto.
420 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
421 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
422 CALL_DUMMY_ADDRESS with entry_point_address.
423 * v850-tdep.c (v850_push_return_address): Ditto.
424 * s390-tdep.c (s390_push_return_address): Ditto.
425 * rs6000-tdep.c (ppc_push_return_address): Ditto.
426 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
427 * mcore-tdep.c (mcore_push_return_address): Ditto.
428 * cris-tdep.c (cris_push_return_address): Ditto.
429 * arm-tdep.c (arm_push_return_address): Ditto.
430
431 2003-09-08 Andrew Cagney <cagney@redhat.com>
432
433 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
434 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
435 and REG_UNMODIFIED to REG_SAME_VALUE.
436 (execute_cfa_program): Update.
437 (dwarf2_frame_cache): Update. Initialize table to
438 REG_UNSPECIFIED, complain if CFI fails to specify a register's
439 location.
440 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
441
442 2003-09-08 Andrew Cagney <cagney@redhat.com>
443
444 * gnu-nat.c: Remove "inline" function attribute.
445 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
446
447 2003-09-08 Kevin Buettner <kevinb@redhat.com>
448
449 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
450 target.
451
452 2003-09-08 Kevin Buettner <kevinb@redhat.com>
453
454 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
455 (frame_extra_info): Rename this struct to frv_unwind_cache.
456 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
457 Add fields ``prev_sp'' and ``base''.
458 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
459 (frv_saved_pc_after_call, frv_init_extra_frame_info)
460 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
461 Delete.
462 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
463 Revise all callers. Fill in the unwind cache argument and make
464 other adjustments to account for new frame mechanisms.
465 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
466 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
467 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
468 (frv_frame_unwind, frv_frame_base): New structs.
469 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
470 additional arguments expected by this method and adjust function
471 body accordingly.
472 (frv_gdbarch_init): Remove calls to the following functions:
473 set_gdbarch_deprecated_init_frame_pc(),
474 set_gdbarch_deprecated_saved_pc_after_call(),
475 set_gdbarch_deprecated_frame_chain(),
476 set_gdbarch_deprecated_frame_saved_pc(),
477 set_gdbarch_deprecated_frame_init_saved_regs(),
478 set_gdbarch_deprecated_push_arguments(),
479 set_gdbarch_deprecated_push_return_address(),
480 set_gdbarch_deprecated_pop_frame(),
481 set_gdbarch_deprecated_call_dummy_words(),
482 set_gdbarch_deprecated_sizeof_call_dummy_words(),
483 set_gdbarch_deprecated_init_extra_frame_info(),
484 set_gdbarch_deprecated_dummy_write_sp(), and
485 set_gdbarch_deprecated_pc_in_call_dummy().
486 Add calls to the following functions:
487 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
488 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
489 frame_base_set_default().
490 * Makefile.in (frv-tdep.o): Update dependencies.
491
492 2003-09-09 Mark Kettenis <kettenis@gnu.org>
493
494 * dwarf2-frame.c (read_encoded_value): Add support for
495 DW_EH_PE_aligned encoding.
496
497 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
498
499 * infrun.c (normal_stop): Don't print a message if the inferior
500 has exited.
501
502 2003-09-08 Jim Blandy <jimb@redhat.com>
503
504 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
505 * dbxread.c: #include "gdb_assert.h".
506 (read_dbx_symtab): If the objfile has no .data section, use the
507 section index for the .bss section instead.
508
509 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
510
511 * frame.c (deprecated_safe_get_selected_frame): New function.
512 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
513 * findvar.c (read_var_value): Call it.
514
515 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
516
517 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
518 (sh64-tdep.o): Add dependencies.
519 * configure.tgt: Add FIXME to sh-*-linux*.
520 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
521 (sh_gdbarch_init): Always set correct sh_show_regs function
522 pointer. Call sh64_gdbarch_init() if machine type is sh5.
523 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
524 * sh64-tdep.c: New file, containing all sh64 related code from
525 sh-tdep.c.
526 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
527 * config/sh/linux.mt (TDEPFILES): Ditto.
528 * config/sh/nbsd.mt (TDEPFILES): Ditto.
529 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
530 * config/sh/wince.mt (TDEPFILES): Ditto.
531
532 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
533
534 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
535 (stop_wait_callback): Handle !lp->signalled also.
536 (lin_lwp_has_pending, flush_callback): New functions.
537 (lin_lwp_wait): Call flush_callback.
538 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
539 (linux_proc_pending_signals): New function.
540 * linux-nat.h (linux_proc_pending_signals): Add prototype.
541
542 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
543
544 From Nick Kelsey <nickk@ubicom.com>:
545 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
546 when the stop PC is at the beginning of a function also.
547
548 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
549
550 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
551 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
552
553 2003-09-06 Mark Kettenis <kettenis@gnu.org>
554
555 * sol-thread.c: Include "gdb_string.h".
556
557 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
558
559 * gcore.c: Reorder include files in alphabetical order. Include
560 "gdb_assert.h". Various coding style fixes.
561 (derive_stack_segment, derive_heap_segment): Replace check for
562 non-null BOTTOM and TOP with gdb_assert.
563 (derive_heap_segment): Replace check for successful creation of
564 ZERO with gdb_assert.
565 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
566
567 2003-09-04 Andrew Cagney <cagney@redhat.com>
568
569 * thread-db.c (verbose_dlsym): New function.
570 (thread_db_load): Use verbose_dlsym
571 (thread_db_new_objfile): Print that libthread_db was loaded, and
572 that thread debugging was enabled.
573
574 2003-09-04 Andrew Cagney <cagney@redhat.com>
575
576 * configure.tgt: Add "mips64*-*-*" target. Delete
577 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
578 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
579 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
580 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
581 mips*-sony-*, and mips64*-*-elf* targets.
582 * config/mips/embedl.mt: Delete file.
583 * config/mips/embedl64.mt: Delete file.
584 * config/mips/mips.mt: Delete file.
585 * config/mips/mips64.mt: Delete file.
586 * config/mips/tm-embed.h: Delete file.
587 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
588 * config/mips/embed64.mt: Delete out-of-date comment.
589
590 2003-09-04 Andrew Cagney <cagney@redhat.com>
591
592 * hppa-tdep.c (hppa_gdbarch_init): Set
593 "have_nonsteppable_watchpoint".
594 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
595 * mips-tdep.c (mips_dump_tdep): Do not print
596 HAVE_NONSTEPPABLE_WATCHPOINT.
597 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
598 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
599 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
600 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
601
602 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
603
604 * breakpoint.c (watchpoint_check): Remove accidentally checked in
605 unused code. Add comment.
606
607 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
608
609 * breakpoint.c (watchpoint_check): Check for pc being in an
610 epilogue if watchpoint frame couldn't be found.
611
612 2003-09-04 Andrew Cagney <cagney@redhat.com>
613
614 * Makefile.in: Re-generate all dependencies.
615
616 2003-09-03 Andrew Cagney <cagney@redhat.com>
617
618 * arch-utils.h (legacy_print_insn): Delete declaration.
619 * arch-utils.c (legacy_print_insn): Delete function.
620 * disasm.c (deprecated_tm_print_insn_info): Delete.
621 (_initialize_disasm): Delete function, contained code initializing
622 deprecated_tm_print_insn_info.
623 * gdbarch.sh (deprecated_tm_print_insn): Delete.
624 (deprecated_tm_print_insn_info): Delete.
625 (TARGET_PRINT_INSN): Do not provide a default.
626 * gdbarch.h, gdbarch.c: Re-generate.
627
628 2003-09-03 Andrew Cagney <cagney@redhat.com>
629
630 * disasm.c (fprintf_disasm): New function.
631 (gdb_disassemble_info): Call "init_disassemble_info", instead of
632 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
633 reverts 2003-08-14 change.
634 (_initialize_disasm): Call "init_disassemble_info", instead of
635 INIT_DISASSEMBLE_INFO_NO_ARCH.
636
637 2003-09-03 Michael Snyder <msnyder@redhat.com>
638
639 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
640
641 2003-09-03 Andrew Cagney <cagney@redhat.com>
642
643 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
644 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
645 * symfile.c (syms_from_objfile): Update.
646 (reread_symbols): `Update
647 * exec.c (exec_file_attach): Update.
648 (exec_file_attach): Update.
649 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
650 2003-08-29 change.
651 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
652
653 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
654
655 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
656 trad-frame.h.
657 (arm_get_cache): Delete macro.
658 (struct arm_prologue_cache): Update comments. Make saved_regs into
659 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
660 to prev_sp.
661 (thumb_scan_prologue): Update for cache changes. Don't call
662 DEPRECATED_PC_IN_CALL_DUMMY.
663 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
664 argument and use it in desperation search for our prologue. Do not
665 search past the specified PC.
666 (arm_make_prologue_cache): Simplify.
667
668 (arm_prologue_this_id, arm_prologue_prev_register)
669 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
670 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
671 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
672 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
673 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
674
675 (arm_frame_chain_valid, arm_find_callers_reg)
676 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
677 (arm_pop_frame): Delete obsolete methods.
678 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
679
680 (arm_gdbarch_init): Update for new frame methods. Register prologue
681 and sigtramp unwinders. Set the default frame base method.
682
683 * Makefile.in (arm-tdep.o): Update dependencies.
684 * varobj.c (find_frame_addr_in_frame_chain): Call
685 get_frame_base_address.
686 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
687
688 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
689
690 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
691 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
692 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
693 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
694 Take NEXT_FRAME and CACHE arguments. Call
695 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
696 Set unwound_pc in CACHE instead of modifying the frame argument.
697 Don't bother checking the frame type when looking for sigtramp
698 frames.
699 (arm_make_prologue_cache, arm_frame_chain)
700 (arm_init_extra_frame_info): New functions.
701
702 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
703
704 * arm-tdep.c (arm_get_cache): Define.
705 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
706 unwound_sp, unwound_pc, and saved_regs.
707 (thumb_scan_prologue): Take a cache instead of the frame.
708 (arm_scan_prologue): Likewise.
709 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
710 instead of a temporary frame.
711 (arm_init_extra_frame_info): Allocate and use a cache.
712 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
713
714 2003-09-03 Andrew Cagney <cagney@redhat.com>
715
716 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
717 * config/mips/wince.mt (TM_CLIBS): Ditto.
718 * config/sh/wince.mt (TM_CLIBS): Ditto.
719 * config/pa/hppa64.mt (TM_CLIBS): Delete.
720 * config/sparc/sp64.mt (CC): Delete.
721
722 2003-09-03 Andrew Cagney <cagney@redhat.com>
723
724 * defs.h: Do not include "arch-utils.h".
725 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
726 GDB_MULTI_ARCH_PURE.
727 * configure.in (GDB_MULTI_ARCH): Do not define.
728 * configure, config.in: Regenerate.
729 * configure.tgt: Do not set variable "gdb_multi_arch".
730 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
731 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
732 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
733 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
734 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
735 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
736 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
737 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
738 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
739 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
740 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
741 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
742 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
743 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
744 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
745 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
746 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
747 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
748
749 2003-08-30 Michael Chastain <mec@shout.net>
750
751 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
752 * config/m68k/nm-hp300hpux.h: Delete.
753 * config/m68k/tm-hp300hpux.h: Delete.
754 * config/m68k/xm-hp300hpux.h: Delete.
755 * config/m68k/xm-hp300bsd.h: Delete.
756 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
757 tm-hp300hpux.h, xm-hp300hpux.h.
758 * somsolib.c: Remove comment about hp300 shared libraries.
759
760 2003-08-31 Mark Kettenis <kettenis@gnu.org>
761
762 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
763 Only define PTRACE_GET_THREAD_AREA is not already defined.
764 Various style fixes in code and comments and some additional
765 spelling fixes in comments. Move after functions dealing with
766 debug registers.
767 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
768 Fix coding-style.
769
770 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
771 frame_unwind_register_unsigned instead of
772 frame_unwind_unsigned_register.
773
774 2003-08-30 Mark Kettenis <kettenis@gnu.org>
775
776 * configure.in: Search for gethostbyname in libnsl.
777 * configure: Regenerated.
778
779 2003-08-29 Mark Kettenis <kettenis@gnu.org>
780
781 * configure.in: Remove redundant AC_MSG_RESULT in check for
782 uintptr_t in stdint.h.
783 * configure: Regenerated.
784
785 * amd64-nat.h (struct regcache): Add opaque declaration.
786
787 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
788 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
789 Change "register array" to "register cache" in comments.
790 (x86_64_linux_gregset64_reg_offset): New variable.
791 (GETREGS_SUPPLIES): Remove macro.
792 (supply_gregset): Call amd64_supply_native_gregset instead of
793 x86_64_linux_supply_gregset.
794 (fill_gregset): Rename `regno' to `regnum'. Call
795 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
796 (store_regs): Rename `regno' to `regnum'.
797 (store_fpregs): Rename `regno' to `regnum'.
798 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
799 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
800 Reorganize function a bit.
801 (store_inferior_registers): Rename `regno' to `regnum'. Use
802 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
803 Reorganize function a bit.
804 (_initialize_x86_64_linux_nat): New function.
805 * config/i386/x86-64linux.mh.
806
807 2003-08-29 Andrew Cagney <cagney@redhat.com>
808
809 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
810 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
811 (target_remove_watchpoint): Delete macro.
812 (target_insert_watchpoint): Delete macro.
813 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
814 (remote_mips_stopped_by_watchpoint): Delete declaration.
815 (remote_mips_remove_watchpoint): Delete declaration.
816 (remote_mips_set_watchpoint): Delete declaration.
817 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
818 * remote-mips.c (_initialize_remote_mips): Set
819 "to_insert_watchpoint", "to_stopped_by_watchpoint",
820 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
821 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
822 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
823 (mips_stopped_by_watchpoint): Rename
824 remote_mips_stopped_by_watchpoint.
825 (mips_can_hardware_watchpoint): Rename
826 remote_mips_can_use_hardware_watchpoint, update function
827 signature.
828
829 2003-08-29 Mark Kettenis <kettenis@gnu.org>
830
831 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
832 USER_DS. We haven't given them a register number yet.
833
834 * amd64-nat.h: New file.
835 * amd64-nat.c: New file.
836 * amd64fbsd-nat.c: Include "amd64-nat.h".
837 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
838 (amd64fbsd32_r_reg_offset): New variable.
839 (supply_gregset): Simply call amd64_supply_native_gregset.
840 (fill_gregset): Rename `regno' to `regnum'. Simply call
841 amd64_collect_native_gregset.
842 (fill_fpregset): Rename `regno' to `regnum'.
843 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
844 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
845 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
846 `fpregset_t'. Call amd64_supply_native_gregset instead of
847 supply_gregset. Call x86_64_supply_fxsave instead of
848 supply_fpregset.
849 (store_inferior_registers): Rename `regno' to `regnum'. Replace
850 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
851 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
852 `fpregset_t'. Call amd64_collect_native_gregset instead of
853 fill_gregset. Call x86_64_collect_fxsave instead of
854 fill_fpregset.
855 (_initialize_am64fbsd_nat): Initialize
856 amd64_native_gregset32_reg_offset and
857 amd64_native_gregset64_reg_offset.
858 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
859
860 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
861 null pointer. Fix typo in comment.
862
863 * regcache.c (supply_register): Reimplement to call
864 regcache_raw_supply.
865 (regcache_collect): Reimplement by calling regcache_raw_collect.
866
867 2003-08-28 Mark Kettenis <kettenis@gnu.org>
868
869 * regcache.c (register_buffer): Consitify first argument.
870 (regcache_raw_supply, regcache_raw_collect): New
871 functions.
872
873 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
874
875 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
876 by Nathan J. Williams.
877
878 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
879
880 * lin-lwp.c (wait_lwp): New function, copied from
881 stop_wait_callback. Clean up.
882 (stop_wait_callback): Use wait_lwp.
883
884 2003-08-28 Andrew Cagney <cagney@redhat.com>
885
886 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
887 flavour and disassembler options.
888 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
889 (mips_gdbarch_init): Set "print_insn". Delete initialization of
890 deprecated_tm_print_insn_info.
891
892 2003-08-27 Andrew Cagney <cagney@redhat.com>
893
894 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
895 Use target_read_memory.
896 (s390_get_frame_info): Update. Do not reference
897 deprecated_tm_print_insn_info.
898 (s390_check_function_end, s390_is_sigreturn): Ditto.
899
900 2003-08-27 Andrew Cagney <cagney@redhat.com>
901
902 * Makefile.in (cris-tdep.o): Update dependencies.
903 * cris-tdep.c: Include "gdb_assert.h".
904 (cris_gdbarch_init): Set print_insn.
905 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
906 (cris_delayed_get_disassembler): Simplify, directly call the
907 disassembler returned by cris_get_disassembler.
908 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
909 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
910 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
911 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
912 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
913 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
914 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
915 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
916 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
917 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
918 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
919 (gdb_print_insn_sparc): Delete function.
920 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
921 deprecated_tm_print_insn_info.
922 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
923 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
924 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
925 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
926 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
927 * s390-tdep.c (gdb_print_insn_s390): Delete function.
928 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
929 (s390_gdbarch_init): Set print_insn.
930
931 2003-08-27 Andrew Cagney <cagney@redhat.com>
932
933 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
934 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
935 * infcall.c (call_function_by_hand): Convert the entry point
936 address into a code address.
937
938 2003-08-27 Andrew Cagney <cagney@redhat.com>
939
940 * dsrec.c: Include "gdb_string.h".
941 * Makefile.in (dsrec.o): Update dependencies.
942
943 2003-08-27 Michael Chastain <mec@shout.net>
944
945 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
946
947 2003-08-27 Andrew Cagney <cagney@redhat.com>
948
949 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
950 (alpha_osf1_init_abi): Do not set call_dummy_address.
951
952 2003-08-27 David Carlton <carlton@kealia.com>
953
954 From Randolph Chung <tausq@debian.org>:
955 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
956 compiles with -Wformat-nonliteral -Werror.
957
958 2003-08-26 Jim Blandy <jimb@redhat.com>
959
960 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
961 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
962 bfd_lookup_symbol, since we only want symbols in code sections.
963 (look_for_base): Pass zero as the SECT_FLAGS argument to
964 bfd_lookup_symbol, since we're not concerned about which section
965 the symbol is in.
966
967 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
968
969 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
970 we are frameless or the return address register is already known.
971
972 2003-08-26 Andrew Cagney <cagney@redhat.com>
973
974 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
975 in size. Add comments.
976
977 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
978
979 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
980 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
981
982 2003-08-26 Jason Merrill <jason@redhat.com>
983
984 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
985 case out of #ifdef MIPS block.
986
987 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
988
989 PR java/1322
990 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
991 available before calling SECT_OFF_TEXT.
992 * PROBLEMS: Remove description of java/1322.
993
994 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
995
996 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
997 bof, and nat0-nat127 as pseudo-registers.
998 (ia64_frame_cache): New struct used to cache frame info.
999 (ia64_register_reggroup_p): New routine used to override default
1000 register grouping so registers without names are still saved and
1001 restored.
1002 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1003 pseudo values.
1004 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1005 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1006 (ia64_alloc_frame_cache): New routine to create a new
1007 ia64_frame_cache.
1008 (examine_prologue): Change prototype to add next_frame pointer.
1009 Assume frameless until otherwise proven. Verify that the cfm for
1010 current frame matches the cfm that should occur for the prologues
1011 alloc insn and if equal, mark as not frameless. At end of routine,
1012 if not frameless, calculate registers for the previous frame and store
1013 in the cache, if a cache is provided.
1014 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1015 and pass 0 for next_frame.
1016 (ia64_store_return_value): Change to use convert_typed_floating()
1017 instead of calling ia64_convert_to_raw().
1018 (ia64_extract_return_value): Change to use convert_typed_floating()
1019 instead of calling ia64_convert_to_virtual().
1020 (ia64_frame_cache): New routine to support new frame model.
1021 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1022 (ia64_frame_sniffer): Ditto.
1023 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1024 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1025 (ia64_sigtramp_frame_prev_register): Ditto.
1026 (ia64_sigtramp_frame_sniffer): Ditto.
1027 (ia64_frame_base_address): Ditto.
1028 (ia64_extract_struct_value_address): Change to issue error message.
1029 (ia64_frame_align): New routine to align sp.
1030 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1031 (ia64_push_arguments): Removed. Logic moved to
1032 ia64_push_dummy_call().
1033 (ia64_push_return_address): Ditto.
1034 (ia64_unwind_dummy_id): New function.
1035 (ia64_unwind_pc): Ditto.
1036 (ia64_convert_register_p): Ditto.
1037 (ia64_register_to_value): Ditto.
1038 (ia64_value_to_register): Ditto.
1039 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1040 (ia64_register_byte, ia64_register_raw_size): Ditto.
1041 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1042 (ia64_saved_pc_after_call): Ditto.
1043 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1044 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1045 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1046 (ia64_register_convert_to_raw): Ditto.
1047 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1048 (ia64_init_extra_frame_info): Ditto.
1049 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1050 (ia64_gdbarch_init): Remove registering of deprecated functions that
1051 are no longer used. Add registration of new gdbarch functions.
1052 Remove registering deprecated_write_sp. Replace
1053 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1054 Delete set_gdbarch_deprecated_register_convertible(),
1055 set_gdbarch_deprecated_register_convert_to_virtual(), and
1056 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1057 set_gdbarch_deprecated_register_size(),
1058 set_gdbarch_deprecated_register_bytes(),
1059 set_gdbarch_pcregnum(),
1060 set_gdbarch_deprecated_register_byte(),
1061 set_gdbarch_deprecated_register_raw_size(),
1062 set_gdbarch_deprecated_max_register_raw_size(),
1063 set_gdbarch_deprecated_register_virtual_size(),
1064 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1065 Replace set_gdbarch_deprecated_extract_return_value() with
1066 set_gdbarch_extract_return_value(). Remove calls to:
1067 set_gdbarch_deprecated_saved_pc_after_call();
1068 set_gdbarch_deprecated_frame_chain(),
1069 set_gdbarch_deprecated_frame_saved_pc(),
1070 set_gdbarch_deprecated_frame_init_saved_regs(),
1071 set_gdbarch_deprecated_get_saved_register(),
1072 set_gdbarch_deprecated_call_dummy_words(),
1073 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1074 set_gdbarch_deprecated_init_extra_frame_info(),
1075 set_gdbarch_deprecated_frame_args_address(),
1076 set_gdbarch_deprecated_frame_locals_address(),
1077 and set_gdbarch_deprecated_dummy_write_sp().
1078 Add set_gdbarch_convert_register_p(),
1079 set_gdbarch_register_to_value(),
1080 set_gdbarch_value_to_register(),
1081 set_gdbarch_push_dummy_call(),
1082 set_gdbarch_frame_align(),
1083 set_gdbarch_unwind_dummy_id(),
1084 set_gdbarch_unwind_pc(),
1085 frame_unwind_append_sniffer(),
1086 frame_unwind_append_sniffer(),
1087 and frame_base_set_default().
1088
1089 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1090
1091 * configure.tgt: Document need for special "mipsisa64" handling.
1092 (mipsisa64*-*-linux64): Handle as target linux64.
1093 (mipsisa64*-*-*): Handle as target embed64.
1094
1095 2003-08-18 Michael Chastain <mec@shout.net>
1096
1097 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1098 objfile bug.
1099
1100 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1101
1102 * i387-tdep.h: Update copyright date.
1103 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1104
1105 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1106 CFLAGS games to reflect reality.
1107
1108 2003-08-24 Andrew Cagney <cagney@redhat.com>
1109
1110 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1111 GDB_MULTI_ARCH is always non-zero.
1112 * osabi.c (_initialize_gdb_osabi): Ditto.
1113 (gdbarch_init_osabi): Ditto.
1114 * sparc-tdep.c: Ditto for #if code.
1115
1116 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1117
1118 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1119 Update comments.
1120 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1121 comments.
1122 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1123 x86_64_supply_fxsave.
1124 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1125 x86_64_supply_fxsave.
1126 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1127 x86_64_supply_fxsave.
1128
1129 2003-08-23 Andreas Jaeger <aj@suse.de>
1130
1131 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1132 i387_supply_fxsave.
1133
1134 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1135
1136 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1137 i387_supply_register.
1138 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1139 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1140 i387_supply_fsave.
1141 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1142 i387_supply_fxsave.
1143 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1144 i387_supply_fsave.
1145 * i386bsd-nat.c (supply_fpregset): Adjust call to
1146 i387_supply_fsave.
1147 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1148 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1149 supply_fpregset.
1150 (store_inferior_registers): Remove extraneous whitespace. Call
1151 i387_fill_fsave instead of fill_fpregset.
1152 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1153 (supply_fpregset): Likewise.
1154 * i386v4-nat.c (supply_fpregset): Adjust call to
1155 i387_supply_fsave.
1156 * i386-interix-nat.c (supply_fpregset): Adjust call to
1157 i387_supply_fsave.
1158 * i386-linux-nat.c (supply_fpregset): Adjust call to
1159 i387_supply_fsave.
1160 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1161 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1162 i387supply_fsave and i387_supply_fxsave.
1163 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1164 Incorporate code from `i387_supply_register.
1165 (i387_supply_register): Remove.
1166 (i387_supply_fxsave): Add `regnum' argument.
1167 Update comments.
1168 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1169 prototype.
1170 (i387_supply_register): remove prototype.
1171 Update comments.
1172
1173 2003-08-22 Michael Chastain <mec@shout.net>
1174
1175 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1176 Add lines for files in gdb/testsuite/gdb.cp/* that are
1177 still not 8.3 unique.
1178
1179 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1180
1181 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1182 TYPE_VPTR_FIELDNO is valid.
1183
1184 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1185
1186 * utils.c (set_width_command): Remove prototypes.
1187 (set_screen_size): New prototype.
1188 (init_page_info): Simplify by fetching the screen size from
1189 Readline. Call set_screen_size.
1190 (set_screen_size): New function.
1191 (set_width): Add missing whitespace in comment.
1192 (set_width_command): Call set_screen_size.
1193 (set_height_command): New function.
1194 (initialize_utils): Fix formatting. Make "set height" command
1195 call set_height_command. Remove redundant code that turns off
1196 pagination if output isn't a terminal. Remove redundant call to
1197 set_width_command.
1198
1199 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1200
1201 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1202 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1203 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1204 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1205 `case' keyword.
1206 (sparc64_register_info): Give the reister with number
1207 SPARC64_STATE_REGNUM a name.
1208 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1209 %asi and %ccr.
1210 (sparc64_push_dummy_call): Take BIAS into account when checking
1211 stcak alignment.
1212 (sparc_software_single_step): Remove assertions that check whether
1213 NPC and NNPC were zero.
1214 (sparc_supply_rwindow): Make public. Merge functionality with
1215 sparc64_supply_rwindow.
1216 (sparc_fill_rwindow): Make public. Merge functionality with
1217 sparc64_fill_rwindow.
1218 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1219 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1220 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1221 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1222 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1223
1224 * reggroups.c: Add whitespace after declarations of local
1225 variables in functions.
1226
1227 2003-08-21 Michael Chastain <mec@shout.net>
1228
1229 * gdbtypes.h: Change array bound type from an int to enum.
1230
1231 2003-08-21 Andrew Cagney <cagney@redhat.com>
1232
1233 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1234 * config/sparc/tm-sparc.h: Ditto.
1235 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1236 unconditionally.
1237 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1238
1239 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1240
1241 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1242 (register_objfile_data, set_objfile_data, objfile_data): New
1243 prototypes.
1244 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1245 prototypes.
1246 (allocate_objfile): Call objfile_alloc_data.
1247 (free_objfile): Call objfile_free_data.
1248 (struct objfile_data): New.
1249 (struct objfile_data_registration): New.
1250 (struct objfile_data_registry): New.
1251 (objfile_data_registry): New variable.
1252 (register_objfile_data): New function.
1253 (objfile_alloc_data, objfile_free_data): New functions.
1254 (set_objfile_data, objfile_data): New functions.
1255 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1256 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1257 (_initialize_dwarf2_frame): New function and prototype.
1258
1259 2003-08-21 Andrew Cagney <cagney@redhat.com>
1260
1261 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1262 a specific architecture.
1263 * arch-utils.h (set_architecture_from_arch_mach): Delete
1264 declaration.
1265 (target_architecture_hook): Delete declaration.
1266 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1267 (default_float_format): Assume GDB_MULTI_ARCH.
1268 (default_double_format): Assume GDB_MULTI_ARCH.
1269 (set_endian_from_file): Delete function.
1270 (arch_ok): Delete function.
1271 (set_arch): Delete function.
1272 (set_architecture_from_arch_mach): Delete function.
1273 (set_architecture_from_file): Delete function.
1274 (set_architecture): Assume GDB_MULTI_ARCH.
1275 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1276
1277 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1278
1279 Rewrite FreeBSD/sparc64 native configuration.
1280 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1281 * sparc64fbsd-nat.c: New file.
1282 * sparc64fbsd-tdep.c: New file.
1283 * sparc64-tdep.c sparc64-tdep.h: New files.
1284 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1285 sparc64fbsd-tdep.o): New dependencies.
1286 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1287 and sparc64fbsd-tdep.c.
1288 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1289 * config/sparc/fbsd.mh: Remove copyright notice.
1290 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1291 sparcbsd-nat.o.
1292 * config/sparc/fbsd.mt: Remove copyright notice.
1293 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1294 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1295 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1296 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1297 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1298 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1299 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1300 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1301 "sparc/tm-sp64.h".
1302 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1303 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1304
1305 2003-08-21 Michael Chastain <mec@shout.net>
1306
1307 * symtab.h: Add doco on the space critical structures and
1308 some measurements of space usage.
1309
1310 2003-08-21 Michael Snyder <msnyder@redhat.com>
1311
1312 * tracepoint.c (trace_dump_command): Trace break address
1313 is subject to DECR_PC_AFTER_BREAK.
1314 (set_traceframe_context): Make "trace_line" an int.
1315 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1316
1317 2003-08-20 Michael Snyder <msnyder@redhat.com>
1318
1319 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1320 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1321 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1322 argument passing.
1323 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1324 functions, replace sh_push_dummy_call.
1325 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1326
1327 2003-08-20 Michael Chastain <mec@shout.net>
1328
1329 * gdbtypes.h (struct main_type): Rearrange to save space.
1330
1331 2003-08-20 Michael Snyder <msnyder@redhat.com>
1332
1333 * trad-frame.c: Comment typo fix.
1334
1335 2003-08-20 Michael Snyder <msnyder@redhat.com>
1336 Kevin Buettner <kevinb@redhat.com>
1337
1338 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1339 (frv_frame_init_saved_regs): Add declaration.
1340 (frame_extra_info): Add new field ``saved_regs''.
1341 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1342 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1343 Update frame related code.
1344 (frv_extract_struct_value_address): Adjust formatting.
1345 * Makefile.in (frv-tdep.o): Update dependencies.
1346 * config/frv/tm-frv.h (target_insert_watchpoint)
1347 (target_remove_watchpoint, target_insert_hw_breakpoint)
1348 (target_remove_hw_breakpoint): Delete these macros.
1349 (remote_insert_watchpoint, remote_remove_watchpoint)
1350 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1351 these declarations.
1352
1353 2003-08-20 Michael Chastain <mec@shout.net>
1354
1355 * defs.h (ENUM_BITFIELD): New macro.
1356 * symtab.h (ENUM_BITFIELD): Use it.
1357 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1358
1359 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1360
1361 * MAINTAINERS (write after approval): Add myself.
1362
1363 2003-08-18 Andrew Cagney <cagney@redhat.com>
1364
1365 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1366 * gdbarch.h, gdbarch.c: Re-generate.
1367 * infcall.c (call_function_by_hand): Adjust the SP by
1368 frame_red_zone_size before allocating any stack space.
1369 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1370 * x86-64-tdep.c (x86_64_frame_align): New function.
1371 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1372
1373 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1374 Remove code adjusting SP so that it skips over the Red Zone.
1375
1376 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1377
1378 * NEWS (New native configurations): Mention FreeBSD/amd64.
1379
1380 2003-08-18 Andrew Cagney <cagney@redhat.com>
1381
1382 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1383 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1384 "m68k_frame_p".
1385 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1386
1387 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1388
1389 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1390
1391 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1392
1393 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1394 Define.
1395 * i386-linux-nat.c: Include "linux-nat.h".
1396 (child_post_startup_inferior): New function.
1397
1398 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1399
1400 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1401 at the start of a frameless function. This probably fixes PR
1402 backtrace/1338.
1403
1404 2003-08-17 Michael Chastain <mec@shout.net>
1405
1406 * symfile.c (find_sym_fns): Remove special case for apollo target.
1407
1408 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1409
1410 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1411 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1412 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1413 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1414 (linux_supports_tracevforkdone): New function.
1415 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1416 TRACEVFORKDONE.
1417 (child_follow_fork): Handle vfork.
1418 (linux_handle_extended_wait): Likewise. Also handle exec.
1419 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1420 * NEWS: Mention fork tracing.
1421
1422 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1423
1424 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1425
1426 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1427
1428 * Makefile.in (i386-linux-nat.o): Update dependencies.
1429 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1430 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1431 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1432 * i386-linux-nat.c: Include "linux-nat.h".
1433 (child_post_startup_inferior): New function.
1434 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1435 * infptrace.c (kill_inferior): Wrap in #ifdef.
1436 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1437 attaching to each LWP.
1438 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1439 (init_lin_lwp_ops): Fill in some more operations.
1440 * linux-nat.h (linux_enable_event_reporting)
1441 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1442 prototypes.
1443 * linux-nat.c (linux_enable_event_reporting): New function.
1444 (child_post_attach, linux_child_post_startup_inferior)
1445 (child_post_startup_inferior, child_follow_fork)
1446 (linux_handle_extended_wait, kill_inferior): New functions.
1447
1448 2003-08-16 Andrew Cagney <cagney@redhat.com>
1449
1450 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1451 * gdbarch.h, gdbarch.c: Re-generate.
1452
1453 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1454
1455 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1456
1457 2003-08-16 Andrew Cagney <cagney@redhat.com>
1458
1459 * NEWS: Mention that "set prompt-escape-char" was deleted.
1460 * top.c (get_prompt_1): Delete function.
1461 (gdb_prompt_escape):
1462 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1463 prompt-escape-char" command.
1464 (MAX_PROMPT_SIZE): Delete macro.
1465 (get_prompt): Simplify, do not call get_prompt_1.
1466
1467 2003-08-16 Andrew Cagney <cagney@redhat.com>
1468
1469 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1470 -Werror. -Wformat-nonliteral problems.
1471
1472 2003-08-15 J. Brobecker <brobecker@gnat.com>
1473
1474 Further multiarching work mostly for hppa64-*-hpux11:
1475 * hppa-tdep.h: New file.
1476 * hppa-tdep.c: #include hppa-tdep.c.
1477 (hppa32_num_regs): Renamed from hppa_num_regs.
1478 (hppa64_num_regs): New constant.
1479 (hppa64_call_dummy_breakpoint_offset): New constant.
1480 (hppa32_call_dummy_length): New constant.
1481 (hppa64_call_dummy_length): New constant.
1482 (hppa32_stack_align): Make name 32bit explicit.
1483 (hppa32_register_virtual_type): Likewise.
1484 (hppa32_extract_return_value): Likewise.
1485 (hppa32_use_struct_convention): Likewise.
1486 (hppa32_store_return_value): Likewise.
1487 (hppa64_register_virtual_type): New function.
1488 (hppa64_extract_return_value): New function.
1489 (hppa64_use_struct_convention): New function.
1490 (hppa64_store_return_value): New function.
1491 (hppa_frame_locals_address): Remove declaration, function does
1492 not exist anymore.
1493 (hppa_register_byte): Add support for PA64 ABI.
1494 (hppa_gdbarch_init): Add support for PA64 ABI.
1495 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1496 Make name 32bit explicit.
1497 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1498 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1499 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1500 (hppa64_hpux_frame_base_before_sigtramp): New function.
1501 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1502 * config/pa/tm-hppa64.h: Remove macros that are no longer
1503 necessary now that the gdbarch vector is properly setup.
1504 Transform some macros into function calls. Some minor cleanup.
1505 * config/pa/tm-hppah.h: Update function calls in macros
1506 following the function renaming in hppa-hpux-tdep.c.
1507 * Makefile.in (hppa_tdep_h): New variable.
1508 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1509
1510 2003-08-14 Michael Snyder <msnyder@redhat.com>
1511
1512 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1513
1514 2003-08-13 J. Brobecker <brobecker@gnat.com>
1515
1516 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1517 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1518 routine.
1519
1520 2003-08-13 Michael Snyder <msnyder@redhat.com>
1521
1522 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1523 (frv_saved_pc_after_call): Use deprecated ftype.
1524 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1525 (frv_remote_translate_xfer_address): Remove.
1526 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1527
1528 2003-08-13 J. Brobecker <brobecker@gnat.com>
1529
1530 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1531 initialization after the common gdbarch initialization, not before.
1532
1533 2003-08-13 J. Brobecker <brobecker@gnat.com>
1534
1535 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1536 (ADDR_BITS_REMOVE): Remove, redundant.
1537
1538 2003-08-13 J. Brobecker <brobecker@gnat.com>
1539
1540 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1541 gdbarch method to clear the 2 low bits of text addresses.
1542
1543 2003-08-12 Andrew Cagney <cagney@redhat.com>
1544
1545 * Makefile.in (dsrec.o): Update dependencies.
1546 * dsrec.c: Include "gdb_assert.h".
1547 (make_srec): Use snprintf instead of sprintf, use a literal format
1548 string.
1549
1550 2003-08-12 Andrew Cagney <cagney@redhat.com>
1551
1552 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1553 FRAME_OBSTACK_ZALLOC.
1554
1555 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1556
1557 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1558 SSE registers.
1559
1560 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1561
1562 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1563 amd64fbsd_sc_reg_offset): Add extern declarations.
1564 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1565 declarations.
1566
1567 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1568
1569 * MAINTAINERS (write after approval): Update my mail address.
1570
1571 2003-08-10 Andrew Cagney <cagney@redhat.com>
1572
1573 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1574
1575 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1576
1577 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1578 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1579 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1580 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1581 i386bsd_sc_reg_offset): Add extern declarations.
1582 * i386obsd-nat.c: Include "i386-tdep.h"
1583 (_initialize_i386obsd_nat): Remove extern declarations.
1584 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1585 declarations.
1586 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1587 declarations.
1588
1589 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1590 instead of frame_read_register.
1591 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1592 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1593 SP_REGNUM.
1594 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1595 instead of frame_unwind_unsigned_register. Use
1596 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1597 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1598 instead of read_register. Use builtin_type_void_data_ptr instead
1599 of builtin_type_void_func_ptr when extracting the address of the
1600 jmp_buf.
1601 (i386_extract_return_value, i386_store_return_value,
1602 i386_pseudo_register_read, i386_pseudo_register_write): Use
1603 register_size instead REGISTER_RAW_SIZE.
1604
1605 2003-08-10 Andrew Cagney <cagney@redhat.com>
1606
1607 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1608 sprintf. Make "name" constant.
1609
1610 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1611
1612 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1613 instead of frame_read_register.
1614 (i387_print_float_info): Use get_frame_register and
1615 get_frame_register_unsigned instead of frame_register_read.
1616
1617 * i386fbsd-nat.c: Include "i386-tdep.h".
1618 (child_resume): Make `eflags' an ULONGEST. Use
1619 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1620 instead of register_read and register_write.
1621
1622 * i386bsd-nat.c (fetch_inferior_registers,
1623 store_inferior_registers): Don't use && at the end of a line.
1624 (_initialize_i386bsd_nat): Fix typo.
1625
1626 * frame.c (_initialize_frame): Add missing backslash.
1627
1628 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1629 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1630 and supply_register instead of manipulating the register buffer
1631 directly.
1632
1633 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1634 * config/i386/nm-i386sol2.h
1635 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1636
1637 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1638 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1639 instructions that GCC likes to mingle into the prologue. Fixes
1640 gdb/1253 and gdb/1255.
1641
1642 2003-08-09 Andrew Cagney <cagney@redhat.com>
1643
1644 Fix GDB PR cli/926.
1645 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1646 * command.h (add_setshow_uinteger_cmd): Declare.
1647 * frame.c (set_backtrace_cmd): New function.
1648 (show_backtrace_cmd): New function.
1649 * frame.c (_initialize_frame): Replace "set/show
1650 backtrace-below-main" with "set/show backtrace past-main". Add
1651 command "set/show backtrace limit".
1652 (backtrace_past_main): Rename "backtrace_below_main".
1653 (backtrace_limit): New variable.
1654 (get_prev_frame): Update. Check the backtrace_limit.
1655
1656 2003-08-09 Andrew Cagney <cagney@redhat.com>
1657
1658 * defs.h (xstrprintf): Declare.
1659 * utils.c (xstrprintf): New function.
1660 * breakpoint.c (insert_breakpoints): Replace sprintf and
1661 non-literal format strings, with xstrprintf and cleanups.
1662 (delete_breakpoint,breakpoint_re_set): Ditto.
1663 (commands_command, insert_breakpoints): Ditto.
1664 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1665 (break_at_finish_command_1): Ditto.
1666
1667 2003-08-09 Andrew Cagney <cagney@redhat.com>
1668
1669 * MAINTAINERS (language support): List Adam Fedor as Objective C
1670 maintainer.
1671
1672 2003-08-08 J. Brobecker <brobecker@gnat.com>
1673
1674 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1675 are now multiarched.
1676
1677 2003-08-08 J. Brobecker <brobecker@gnat.com>
1678
1679 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1680 longer necessary now that hppa64 is partially multiarch'ed.
1681
1682 2003-08-08 Andrew Cagney <cagney@redhat.com>
1683
1684 * interps.c (interp_set): Check for a NULL "old_interp".
1685
1686 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1687
1688 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1689 (install-only): Support DESTDIR.
1690 (uninstall): Likewise.
1691 (install-gdbtk): Likewise.
1692
1693 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1694
1695 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1696 contains something meaningful at all times.
1697
1698 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1699
1700 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1701
1702 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1703
1704 * MAINTAINERS (write after approval): Added self.
1705
1706 2003-08-07 Andrew Cagney <cagney@redhat.com>
1707
1708 * inferior.h (AT_SYMBOL): Define.
1709 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1710 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1711 * mips-tdep.c (mips_call_dummy_address): Delete function.
1712 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1713 set call_dummy_address.
1714
1715 2003-08-07 Andrew Cagney <cagney@redhat.com>
1716
1717 * language.c (op_error): Delete function.
1718 (binop_type_check): Delete function.
1719 * language.h (type_op_error, range_op_error): Delete macros.
1720 (op_error): Delete declaration.
1721
1722 2003-08-07 Andrew Cagney <cagney@redhat.com>
1723
1724 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1725
1726 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1727
1728 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1729 (x86_64_push_arguments): Skip the red zone.
1730
1731 2003-08-05 Andrew Cagney <cagney@redhat.com>
1732
1733 * reggroups.c (reggroup_next): Check for the final entry.
1734
1735 2003-08-04 Andrew Cagney <cagney@redhat.com>
1736
1737 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1738 * cli/cli-script.c (define_command): Call query directly, instead
1739 of passing it a buffer.
1740 * ocd.c (ocd_error): Pass error a constant format string.
1741 * remote-mips.c (mips_error): Use fputs_filtered.
1742
1743 * solib-svr4.c (_initialize_svr4_solib): Update
1744 register_gdbarch_data call.
1745 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1746
1747 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1748 (register_gdbarch_data): Delete "free" parameter. Update
1749 comments.
1750 * gdbarch.h, gdbarch.c: Re-generate.
1751 * reggroups.c (_initialize_reggroup): Update.
1752 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1753 * frame-base.c (_initialize_frame_base): Update.
1754 * frame-unwind.c (_initialize_frame_unwind): Update.
1755 * user-regs.c (_initialize_user_regs): Update.
1756 * remote.c (_initialize_remote): Update.
1757 * regcache.c (_initialize_regcache): Update.
1758
1759 * regcache.c (xfree_regcache_descr): Delete function.
1760 (_initialize_regcache): Update call to register_gdbarch_data.
1761 (init_regcache_descr, init_legacy_regcache_descr): Use
1762 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1763
1764 * remote.c (free_remote_state): Delete function.
1765 (_initialize_remote): Update register_gdbarch_data.
1766 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1767 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1768
1769 2003-08-04 Andrew Cagney <cagney@redhat.com>
1770
1771 * reggroups.c (struct reggroup_el): Define.
1772 (struct reggroups): Delete field "nr_group". Replace array
1773 "group" with a "first" to "last" linked list.
1774 (reggroups_init): Update. Allocate using gdbarch's obstack.
1775 (reggroups_free): Delete function.
1776 (add_group): Update. Add "el" parameter.
1777 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1778 (default_groups): Update.
1779 (reggroup_next): Replace reggroups.
1780 (reggroups_dump): Update.
1781 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1782 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1783 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1784
1785 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1786
1787 * Makefile.in (tui-interp.o): Update dependencies.
1788
1789 2003-08-04 David Carlton <carlton@kealia.com>
1790
1791 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1792 to internal_error call.
1793 * source.c (forward_search_command): Add "%s" format argument.
1794 (reverse_search_command): Ditto.
1795 * top.c (quit_confirm): Ditto.
1796 * cli/cli-setshow.c (do_setshow_command): Ditto.
1797 * cp-valprint.c (cp_print_class_method): Replace
1798 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1799 (cp_print_class_member): Ditto.
1800 * event-top.c (command_line_handler): Ditto.
1801 * linux-proc.c (linux_info_proc_cmd): Ditto.
1802 * p-typeprint.c (pascal_type_print_base): Ditto.
1803 * p-valprint.c (pascal_object_print_class_method): Ditto.
1804 (pascal_object_print_class_member): Ditto.
1805 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1806 * remote.c (remote_cisco_section_offsets): Ditto.
1807 * top.c (command_line_input): Ditto.
1808 * utils.c (vwarning,error_stream,quit): Ditto.
1809 * valprint.c (print_floating,print_binary_chars)
1810 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1811
1812 2003-08-04 Andrew Cagney <cagney@redhat.com>
1813
1814 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1815
1816 2003-08-02 Andrew Cagney <cagney@redhat.com>
1817
1818 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1819 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1820 amd64fbsd-nat.c.
1821
1822 2003-08-02 Andrew Cagney <cagney@redhat.com>
1823
1824 * Makefile.in: Update all dependencies and definitions.
1825
1826 2003-08-02 Adam Fedor <fedor@gnu.org>
1827
1828 * linespec.c (is_objc_method_format): New function
1829 (decode_line_1, locate_first_half): Use it.
1830 Fixes PR objc/1298
1831
1832 2003-08-01 Andrew Cagney <cagney@redhat.com>
1833
1834 * NEWS: Mention that m32r is multi-arch.
1835 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1836 * configure.tgt: Recognize m32r-*-*.
1837 * config/m32r/tm-m32r.h: Delete file.
1838 * config/m32r/m32r.mt: New file.
1839 * m32r-rom.c (m32r_upload_command): Use hostent only when
1840 gethostname succeeds, in order to avoid a compilation
1841 warning.
1842 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1843 compiler warning.
1844
1845 2003-08-01 Michael Snyder <msnyder@redhat.com>
1846
1847 * sh-tdep.c (sh_frame_align): New gdbarch method.
1848 (sh_gdbarch_init): Set up frame_align method.
1849
1850 2003-07-31 Michael Snyder <msnyder@redhat.com>
1851
1852 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1853 which is already covered by the new frames infrastructure.
1854
1855 2003-07-31 Andrew Cagney <cagney@redhat.com>
1856
1857 * user-regs.c (struct user_reg): Add "next" link.
1858 (struct user_regs): Replace "user" with "first" and "last" links.
1859 (append_user_reg): Add pre-allocated "reg" parameter.
1860 (builtin_user_regs): Provide initial value for "last".
1861 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1862 (user_regs_init): Allocate memory from the gdbarch obstack.
1863 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1864 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1865 linked list.
1866 (usernum_to_user_reg): New function.
1867 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1868 (value_of_user_reg): Use usernum_to_user_reg.
1869 (user_regs_free): Delete function.
1870 (_initialize_user_regs): Update register_gdbarch_data call.
1871
1872 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1873
1874 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1875
1876 2003-07-30 Michael Snyder <msnyder@redhat.com>
1877
1878 * value.h (value_being_returned): Add a struct_addr argument.
1879 * infcall.c (call_function_by_hand): Pass struct_addr to
1880 value_being_returned.
1881 * infcmd.c (print_return_value): Pass zero as struct_addr.
1882 * values.c (value_being_returned): If struct_addr is passed,
1883 use it instead of trying to recover it from the inferior.
1884
1885 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1886
1887 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1888 the prologue analyzer won't need to attempt to extract the pc
1889 value from the woefully incomplete dummy frame.
1890 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1891 possible. Disable code which modifies the frame.
1892
1893 2003-07-28 Andrew Cagney <cagney@redhat.com>
1894
1895 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1896 to level 2.
1897 (annotate_breakpoints_table, annotate_record): Ditto.
1898 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1899 (annotate_field_name_end, annotate_field_value): Ditto.
1900 (annotate_field_end, annotate_frame_source_begin): Ditto.
1901 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1902 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1903 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1904 (annotate_frame_address_end, annotate_frame_address): Ditto.
1905 (annotate_frame_args, annotate_frame_end): Ditto.
1906 (annotate_frame_where, annotate_arg_begin): Ditto.
1907 (annotate_arg_name_end, annotate_arg_value): Ditto.
1908 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1909 (annotate_function_call, annotate_signal_name): Ditto.
1910 (annotate_signal_string, annotate_signal_name_end): Ditto.
1911 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1912 (annotate_value_begin, annotate_value_history_value): Ditto.
1913 (annotate_value_history_end, annotate_value_end): Ditto.
1914 (annotate_display_begin, annotate_display_number_end): Ditto.
1915 (annotate_display_format, annotate_display_expression): Ditto.
1916 (annotate_display_expression_end, annotate_display_value): Ditto.
1917 (annotate_display_end, annotate_array_section_begin): Ditto.
1918 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1919 (annotate_elt, annotate_array_section_end): Ditto.
1920
1921 2003-07-28 Andrew Cagney <cagney@redhat.com>
1922
1923 * regcache.c (struct regcache_descr): Update comments on
1924 nr_raw_registers.
1925 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1926 sizeof_raw_register_valid_p.
1927 (init_regcache_descr): Set nr_raw_registers and
1928 sizeof_raw_register_valid_p before calling
1929 init_legacy_regcache_descr.
1930
1931 2003-07-28 Andrew Cagney <cagney@redhat.com>
1932
1933 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1934 MOD NUM_REGS.
1935
1936 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1937
1938 * thread.c (info_threads_command): Use get_selected_frame ().
1939 Check that there is at least one non-sentinel frame.
1940
1941 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1942
1943 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1944 (m68hc11_pop_frame): Remove.
1945 (m68hc11_frame_saved_pc): Remove.
1946 (m68hc11_frame_chain): Remove.
1947 (m68hc11_frame_init_saved_regs): Remove.
1948 (m68hc11_init_extra_frame_info): Remove.
1949 (m68hc11_store_struct_return): Remove.
1950 (m68hc11_saved_pc_after_call): Remove.
1951
1952 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1953
1954 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1955 frame unwind information.
1956 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1957 and adapted for frame unwinding.
1958 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1959 (m68hc11_unwind_pc): New function.
1960 (m68hc11_frame_unwind_cache): New function to analyze frames.
1961 (m68hc11_frame_this_id): New function to create new frame struct.
1962 (m68hc11_frame_prev_register): New function to unwind a register from
1963 the frame.
1964 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1965 (m68hc11_frame_p): New function for the above.
1966 (m68hc11_frame_base_address): New function to return fp of frame.
1967 (m68hc11_frame_args_address): Update for frame.
1968 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1969 (m68hc11_unwind_sp): New function.
1970 (m68hc11_unwind_dummy_id): New function.
1971 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1972 calls.
1973
1974 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1975
1976 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1977 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1978 when we are beyond the current pc.
1979
1980 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1981
1982 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1983 from m68hc11_push_arguments.
1984 (m68hc11_push_arguments): Remove.
1985 (m68hc11_push_return_address): Remove.
1986 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1987 handlers; remove deprecated_extra_stack_alignment_needed.
1988
1989 2003-07-27 Andrew Cagney <cagney@redhat.com>
1990
1991 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1992 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1993 REAL_PC and not the pointer.
1994 * hppa-hpux-tdep.c: Include frame.h
1995
1996 2003-07-27 Andrew Cagney <cagney@redhat.com>
1997
1998 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1999 GDB_MULTI_ACH_PARTIAL.
2000
2001 2003-07-27 Andrew Cagney <cagney@redhat.com>
2002
2003 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2004 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2005 operator at start and not end of line.
2006 (decode_prologue): Ditto.
2007 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2008 frame_unwind_register_unsigned instead of
2009 frame_unwind_unsigned_register.
2010 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2011 read_register.
2012 (m32r_push_dummy_call): Use register_size instead of
2013 REGISTER_RAW_SIZE.
2014 (m32r_frame_sniffer): Replace m32r_frame_p.
2015 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2016 * m32r-rom.c (report_transfer_performance): Delete extern
2017 declaration.
2018 (m32r_load, m32r_upload_command): Use print_transfer_performance
2019 instead of report_transfer_performance.
2020 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2021 / add_show_from_set.
2022
2023 2003-07-26 Andrew Cagney <cagney@redhat.com>
2024
2025 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2026 store_return_value and extract_struct_value_address.
2027
2028 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2029
2030 PR c++/1267
2031 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2032 NULL, default to the section containing PC.
2033
2034 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2035
2036 * NEWS: Mention "regs" deprecated for m68hc11 too.
2037
2038 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2039 (m68hc11_print_register): New function to print out one register.
2040 (m68hc11_print_registers_info): New function to print registers.
2041 (show_regs): Deprecate and use the above.
2042 (m68hc11_gdbarch_init): Install the print_registers_info.
2043
2044 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2045
2046 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2047 that we have a SIGTRAP before returning non-zero.
2048
2049 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2050 Elena Zannoni <ezannoni@redhat.com>
2051
2052 * linespec.c (decode_line_2): Avoid crash if
2053 find_function_start_sal() returns empty record.
2054
2055 2003-07-23 Andreas Schwab <schwab@suse.de>
2056
2057 * ia64-tdep.c (ia64_print_insn): New function.
2058 (ia64_gdbarch_init): Set print_insn to it.
2059 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2060 deprecated_tm_print_insn_info.
2061
2062 2003-07-22 Michael Snyder <msnyder@redhat.com>
2063
2064 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2065 handle 8-bit returns (long long).
2066 (h8300h_extract_return_value): Ditto.
2067 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2068
2069 2003-07-22 Andrew Cagney <cagney@redhat.com>
2070
2071 * gdbarch.c Include "gdb_obstack.h".
2072 (struct gdbarch): Add an "obstack".
2073 (alloc_gdbarch_data): Allocate the gdbarch data using
2074 GDBARCH_OBSTACK_CALLOC.
2075 (free_gdbarch_data): Delete function.
2076 (gdbarch_obstack_zalloc): New function.
2077 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2078 Assert that the architecture is not initialized.
2079 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2080 vector from the obstack.
2081 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2082 architecture obstack.
2083 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2084 (set_gdbarch_data): Assert that the data is not initialized.
2085 (struct gdbarch_data): Delete member "free".
2086 (register_gdbarch_data): Do not initialize "free".
2087 * gdbarch.h, gdbarch.c: Re-generate.
2088
2089 2003-07-22 Andrew Cagney <cagney@redhat.com>
2090
2091 * configure.in (build_warnings): Add -Wformat-nonliteral.
2092 * configure: Re-generate.
2093
2094 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2095
2096 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2097
2098 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2099
2100 * findvar.c (read_var_value): Remove case for thread local storage
2101 variables. It is now entirely handled by the dwarf2 location
2102 expression code.
2103 * printcmd.c (address_info): Ditto.
2104 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2105 enumeration value.
2106 (struct symbol): Remove objfile field, which was used by
2107 LOC_THREAD_LOCAL_STATIC only.
2108 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2109 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2110 usage of objfile pointer.
2111 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2112 thread local variables.
2113 Add include of objfiles.h.
2114 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2115 storage variables.
2116 * Makefile.in (dwarf2loc.o): Update dependencies.
2117
2118 2003-07-22 Andrew Cagney <cagney@redhat.com>
2119
2120 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2121 get_frame_base.
2122 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2123 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2124 (struct value): Add opaque declaration.
2125 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2126
2127 2003-07-21 Andrew Cagney <cagney@redhat.com>
2128
2129 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2130 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2131
2132 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2133
2134 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2135 regcache_cooked_read_unsigned instead of read_register.
2136 (m68hc11_saved_pc_after_call): Likewise.
2137 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2138 instead of write_register.
2139 (m68hc11_register_type): New function.
2140 (m68hc11_register_virtual_type): Remove.
2141 (m68hc11_store_return_value): Convert to use the regcache.
2142 (m68hc11_extract_struct_value_address): Likewise.
2143 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2144 m68hc11_register_type; undeprecate store_return_value and
2145 extract_struct_value_address.
2146
2147 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2148
2149 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2150 and translate to use regcache.
2151 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2152
2153 2003-07-18 Andrew Cagney <cagney@redhat.com>
2154
2155 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2156 * gdbarch.h, gdbarch.c: Re-generate.
2157 * i386-tdep.c (i386_gdbarch_init): Do not set
2158 DWARF2_BUILD_FRAME_INFO.
2159 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2160 unconditionally.
2161 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2162 DWARF2_BUILD_FRAME_INFO.
2163
2164 2003-07-18 Andrew Cagney <cagney@redhat.com>
2165
2166 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2167 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2168
2169 2003-07-18 Andrew Cagney <cagney@redhat.com>
2170
2171 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2172 frame_unwind_address_in_block, instead of frame_pc_unwind.
2173 (dwarf2_frame_cache): Ditto.
2174
2175 2003-07-18 Andrew Cagney <cagney@redhat.com>
2176
2177 * user-regs.h (struct gdbarch): Declare opaque.
2178 * ui-out.h (struct ui_file): Declare opaque.
2179 * dwarf2-frame.h (struct frame_info): Declare opaque.
2180
2181 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2182
2183 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2184 #include "...".
2185 (procfs_meminfo): Change strerror to safe_strerror.
2186 (procfs_can_run): Remove K&R badness.
2187
2188 2003-07-17 Michael Snyder <msnyder@redhat.com>
2189
2190 * remote-sim.c: Comment typo fix.
2191
2192 2003-07-17 Andrew Cagney <cagney@redhat.com>
2193
2194 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2195 configure.
2196 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2197 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2198 GDB_MULTI_ARCH_PARTIAL.
2199
2200 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2201
2202 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2203 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2204 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2205
2206 2003-07-16 Theodore A. Roth <troth@openavr.org>
2207
2208 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2209 found.
2210 (avr_frame_unwind_cache): Don't unwind FP for main.
2211 Update a comment.
2212 Save the computed prev_sp.
2213 (avr_saved_regs_unwinder): Remove function.
2214 (avr_frame_prev_register): Use PC unwind logic from
2215 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2216
2217 2003-07-16 Andrew Cagney <cagney@redhat.com>
2218
2219 * frame-base.h (frame_base_p_ftype): Delete definition.
2220 (frame_base_append_predicate): Delete declaration.
2221 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2222 (frame_unwind_append_predicate): Delete declaration.
2223 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2224 (append_predicate): Delete parameter "p".
2225 (frame_unwind_append_predicate): Delete function.
2226 (frame_unwind_append_sniffer): Update call to append_predicate.
2227 (frame_unwind_free): Delete function.
2228 (_initialize_frame_unwind): Pass NULL as "free" to
2229 register_gdbarch_data.
2230 (frame_unwind_init): Append the dummy_frame_sniffer.
2231 (frame_unwind_find_by_frame): Simplify.
2232 * frame-base.c (struct frame_base_table): Delete field "p".
2233 (append_predicate): Delete parameter "p".
2234 (frame_base_append_predicate): Delete function.
2235 (frame_base_append_sniffer): Update call to append_predicate.
2236 (frame_base_free): Delete function.
2237 (frame_base_find_by_frame): Simplify.
2238 (_initialize_frame_base): Pass NULL as "free" to
2239 register_gdbarch_data.
2240 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2241 (x86_64_sigtramp_frame_sniffer): Replace
2242 "x86_64_sigtramp_frame_p".
2243 (x86_64_init_abi): Set the frame unwind sniffers.
2244 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2245 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2246 (m68k_gdbarch_init): Set the frame unwind sniffers.
2247 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2248 "i386_sigtramp_frame_p".
2249 (i386_frame_sniffer): Replace "i386_frame_p".
2250 (i386_gdbarch_init): Set the frame unwind sniffers.
2251 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2252 (avr_gdbarch_init): Set the frame unwind sniffers.
2253 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2254 "alpha_sigtramp_frame_p"
2255 (alpha_heuristic_frame_sniffer): Replace
2256 "alpha_heuristic_frame_p".
2257 (alpha_gdbarch_init): Set the frame unwind sniffers.
2258 (alpha_dwarf2_init_abi): Ditto.
2259 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2260 "alpha_debug_frame_p".
2261 (alpha_mdebug_frame_base_sniffer): Replace
2262 "alpha_mdebug_frame_base_p".
2263 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2264 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2265 (d10v_gdbarch_init): Set the frame unwind sniffer.
2266 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2267 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2268 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2269 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2270 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2271 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2272
2273 2003-07-16 Michael Snyder <msnyder@redhat.com>
2274
2275 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2276 should go thru sh_dsp_register_sim_regno, else the dsp regs
2277 will not get the right values.
2278
2279 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2280
2281 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2282 deprecated_store_floating by call to store_typed_floating.
2283 (sh_sh4_register_convert_to_raw): Substitute call to
2284 deprecated_extract_floating by call to extract_typed_floating.
2285
2286 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2287
2288 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2289
2290 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2291
2292 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2293 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2294 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2295 as possible.
2296 (do_pseudo_register): Remove.
2297 (sh_push_dummy_code): New function.
2298 (sh64_store_struct_return): Rename from sh_store_struct_return.
2299 Only called for sh64 now.
2300 (sh_extract_struct_value_address): Regcache'ify.
2301 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2302 and accomodate new tasks.
2303 (sh64_push_return_address): Rename from sh_push_return_address.
2304 Only called for sh64 now.
2305 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2306 Regcache'ify.
2307 (sh3e_sh4_extract_return_value): Regcache'ify.
2308 (sh_default_store_return_value): Ditto.
2309 (sh3e_sh4_store_return_value): Ditto.
2310 (sh_default_register_byte): Remove.
2311 (sh_sh4_register_byte): Remove.
2312 (sh_default_register_raw_size): Remove.
2313 (sh_sh4_register_raw_size): Remove.
2314 (sh_register_virtual_size): Remove.
2315 (sh_sh3e_register_virtual_type): Remove.
2316 (sh_sh3e_register_type): New function.
2317 (sh_sh4_register_virtual_type): Remove.
2318 (sh_sh4_register_type): New function.
2319 (sh_default_register_virtual_type): Remove.
2320 (sh_default_register_type): New function.
2321 (do_fv_register_info): Add parameters to accomodate call from
2322 sh_print_registers_info.
2323 (do_dr_register_info): Ditto.
2324 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2325 Add parameters to accomodate call from sh_print_registers_info.
2326 (sh_do_fp_register): Ditto.
2327 (sh64_do_pseudo_register): Call do_dr_register_info,
2328 do_fv_register_info and sh_do_fp_register with default parameters.
2329 (sh_do_register): Add parameters to accomodate call from
2330 sh_print_registers_info.
2331 (sh_print_register): Ditto.
2332 (sh_print_registers_info): Rename from sh_do_registers_info.
2333 Add parameters to be used as gdbarch_print_registers_info
2334 implementation. Accomodate removed do_pseudo_register function
2335 pointer.
2336 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2337 function pointer. Call sh_print_register with default parameters.
2338 (sh64_do_registers_info): Call sh_print_registers_info instead of
2339 sh_do_registers_info.
2340 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2341 detection of deprecated vs. non-deprecated functionality.
2342 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2343 function pointer assignments by direct function calls.
2344
2345 2003-07-15 Andrew Cagney <cagney@redhat.com>
2346
2347 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2348 (frame_register_unwind, create_new_frame): Ditto.
2349 (legacy_get_prev_frame, get_frame_type): Ditto.
2350 (get_frame_base_address): Use frame_base_find_by_frame.
2351 (get_frame_locals_address): Use frame_base_find_by_frame.
2352 (get_frame_args_address): Use frame_base_find_by_frame.
2353 * frame-base.h (frame_base_sniffer_ftype): Declare.
2354 (frame_base_append_sniffer): Declare.
2355 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2356 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2357 (frame_base_append_sniffer): New function.
2358 (frame_base_append_predicate): Add a NULL sniffer.
2359 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2360 (struct frame_base_table): Add "sniffer".
2361 (frame_base_free): Free the "sniffer" table.
2362 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2363 (frame_unwind_append_sniffer): Declare.
2364 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2365 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2366 (struct frame_unwind_table): Add "sniffer", delete "middle".
2367 (append_predicate): Add "sniffer" parameter, append the sniffer.
2368 (frame_unwind_init): Update append_predicate call.
2369 (frame_unwind_append_sniffer): New function.
2370 (frame_unwind_append_predicate): Update append_predicate call.
2371 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2372
2373 2003-07-15 Andrew Cagney <cagney@redhat.com>
2374
2375 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2376 before code inhibiting repeated unwind attempts. Add to
2377 commentary on that test's problems.
2378 * blockframe.c (inside_main_func): Look for "main" in the minimal
2379 symbol table.
2380 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2381 identical.
2382
2383 2003-07-15 Andrew Cagney <cagney@redhat.com>
2384
2385 * complaints.c (struct explanation): Define.
2386 (struct complaints): Change type of "explanation" to "struct
2387 explanation".
2388 (symfile_explanations): Convert to a "struct explanation" table.
2389 (vcomplaint): Update.
2390
2391 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2392
2393 * x86-64-linux-nat.c (regmap): Removed.
2394 (supply_gregset, fill_gregset): Call
2395 x86_64_linux_(fill,supply)_gregset functions.
2396 * x86-64-linux-tdep.c (USER_*): New defines.
2397 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2398 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2399 New functions.
2400 (fetch_core_registers): Ditto.
2401 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2402 * x86-64-linux-tdep.h: New file.
2403 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2404 and core-regset.o.
2405 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2406
2407 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2408
2409 * x86-64-tdep.c (x86_64_store_return_value): Use
2410 regcache_cooked_write_part instead of regcache_cooked_write.
2411
2412 * configure.host: Add x86_64-*-freebsd*.
2413 * configure.tgt: Add x86_64-*-freebsd*.
2414 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2415 * amd64fbsd-nat.c: New file.
2416 * amd64fbsd-tdep.c: New file.
2417 * config/i386/nm-fbsd64.h: New file.
2418 * config/i386/fbsd64.mh: New file.
2419 * config/i386/fbsd64.mt: New file.
2420
2421 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2422
2423 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2424 `sc_regs_offset' and `sc_fpregs_offset'.
2425 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2426 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2427 (alpha_sigtramp_register_address): Rewrite to use new members of
2428 `struct gdbarch_tdep'.
2429 (alpha_gdbarch_init): Initialize new members of struct
2430 gdbarch_tdep'.
2431 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2432 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2433 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2434 (alphafbsd_pc_in_sigtramp): Implement.
2435 (alphafbsd_sigtramp_offset): New function.
2436 (alphafbsd_sigcontext_addr): New function.
2437 (alphafbsd_init_abi): Initialize signal trampoline related members
2438 of `struct gdbarch_tdep'.
2439 (_initialize_alphafbsd_tdep): Add prototype.
2440
2441 2003-07-11 Theodore A. Roth <troth@openavr.org>
2442
2443 * Makefile.in (install-only): Quote sed expression when generating
2444 transformed_name.
2445
2446 2003-07-11 Richard Henderson <rth@redhat.com>
2447
2448 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2449 * dwarf2-frame.c: Include complaints.h.
2450 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2451 variable initialization; return NULL on error.
2452 (decode_frame_entry): New.
2453
2454 2003-07-11 Andrew Cagney <cagney@redhat.com>
2455
2456 * frame.h (frame_address_in_block): Delete declaration.
2457 * blockframe.c (frame_address_in_block): Delete function.
2458 (get_frame_block): Use get_frame_address_in_block.
2459 (block_innermost_frame): Ditto.
2460 * stack.c (print_frame, backtrace_command_1): Ditto.
2461
2462 * frame.h (get_frame_address_in_block): Declare.
2463 (frame_unwind_address_in_block): Declare.
2464 * frame.c (frame_unwind_address_in_block): New function.
2465 (get_frame_address_in_block): New function.
2466
2467 2003-07-10 Andrew Cagney <cagney@redhat.com>
2468
2469 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2470 pre-default. Note: re-generate has no effect.
2471
2472 2003-07-10 Andrew Cagney <cagney@redhat.com>
2473
2474 * gdbarch.sh: When a variable, but not a function, compare against
2475 0. Fix problem in previous patch.
2476 * gdbarch.c: Re-generate.
2477
2478 2003-07-10 Andrew Cagney <cagney@redhat.com>
2479
2480 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2481 functions against NULL, not 0.
2482 * gdbarch.c: Re-generate.
2483
2484 2003-07-10 Fred Fish <fnf@ninemoons.com>
2485
2486 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2487 null string instead of a null pointer.
2488 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2489
2490 2003-07-09 Michael Snyder <msnyder@redhat.com>
2491
2492 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2493
2494 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2495
2496 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2497 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2498 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2499 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2500 * x86-64-tdep.c: ... from here.
2501
2502 2003-07-09 Andreas Schwab <schwab@suse.de>
2503
2504 * m68k-tdep.h (enum struct_return): Define.
2505 (struct gdbarch_tdep): Add struct_return.
2506 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2507 bytes are padded to the right, not to the left. Pass struct value
2508 address in register %a1, not on stack.
2509 (m68k_use_struct_convention): New function.
2510 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2511 struct_return in tdep to pcc_struct_return.
2512 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2513 reg_struct_return.
2514
2515 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2516
2517 * somread.c (som_symfile_offsets): Fix compilation error.
2518
2519 2003-07-09 Andrew Cagney <cagney@redhat.com>
2520
2521 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2522 Add comments about the checks.
2523
2524 2003-07-08 Andrew Cagney <cagney@redhat.com>
2525
2526 * Makefile.in: Make dependency section headers consistent.
2527 (config_h): Move to $BUILD headers section.
2528 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2529 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2530 (ada-exp.tab.c): Move to YACC/LEX section.
2531 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2532 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2533
2534 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2535
2536 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2537 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2538 of strerror with safe_strerror, use ISO C function definitions,
2539 and replace instances of sprintf with snprintf.
2540
2541 2003-07-07 Andrew Cagney <cagney@redhat.com>
2542
2543 * frame.c (get_prev_frame): Enable check for identical frames.
2544 Update comments. Update error messages.
2545
2546 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2547
2548 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2549
2550 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2551
2552 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2553 sort_symtab_syms, no longer necessary.
2554
2555 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2556
2557 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2558
2559 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2560
2561 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2562 (mips_register_byte): Likewise.
2563
2564 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2565
2566 * Makefile.in (sparc_tdep_h): New.
2567 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2568 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2569 * sparc-linux-nat.c: Include "sparc-tdep.h".
2570 * sparc-nat.c: Likewise.
2571 * sparc-tdep.c: Likewise.
2572 * sparc64nbsd-nat.c: Likewise.
2573 * sparcnbsd-nat.c: Likewise.
2574 * sparcnbsd-tdep.c: Likewise.
2575 * sparc-tdep.h: New file.
2576 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2577 and sparc_npc_regnum.
2578
2579 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2580
2581 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2582 (mips_linux_cannot_store_register): List supported instead of
2583 unsupported registers.
2584
2585 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2586
2587 * disasm.c (dump_insns): Separate instructions from addresses.
2588
2589 2003-07-07 Andreas Schwab <schwab@suse.de>
2590
2591 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2592 dependencies.
2593 * m68k-tdep.c (NUM_FREGS): Delete.
2594 (SIG_PC_FP_OFFSET): Delete.
2595 (TARGET_M68K): Delete.
2596 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2597 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2598 P_MOVEL_SP, P_MOVEML_SP): Define.
2599 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2600 P_TRAP): Delete.
2601 (m68k_register_raw_size): Delete.
2602 (m68k_register_virtual_size): Delete.
2603 (m68k_register_type): Renamed from m68k_register_virtual_type and
2604 add gdbarch argument.
2605 (m68k_store_struct_return): Delete.
2606 (m68k_deprecated_extract_return_value): Delete.
2607 (m68k_deprecated_extract_struct_value_address): Delete.
2608 (m68k_frame_chain): Delete.
2609 (m68k_frame_saved_pc): Delete.
2610 (m68k_fix_call_dummy): Delete.
2611 (m68k_push_dummy_frame): Delete.
2612 (m68k_pop_frame): Delete.
2613 (m68k_extract_return_value): New function.
2614 (m68k_store_return_value): Rewrite using regcache.
2615 (m68k_extract_struct_value_address): Rewrite using regcache.
2616 (m68k_push_dummy_call): New function.
2617 (struct m68k_frame_cache): Define.
2618 (m68k_alloc_frame_cache): New function.
2619 (m68k_analyze_frame_setup): New function.
2620 (m68k_analyze_register_saves): New function.
2621 (m68k_analyze_prologue): New function.
2622 (m68k_skip_prologue): Rewrite using above functions.
2623 (m68k_unwind_pc): New function.
2624 (m68k_frame_cache): New function.
2625 (m68k_frame_this_id): New function.
2626 (m68k_frame_prev_register): New function.
2627 (m68k_frame_unwind): New variable.
2628 (m68k_frame_p): New function.
2629 (m68k_sigtramp_frame_cache): New function.
2630 (m68k_sigtramp_frame_this_id): New function.
2631 (m68k_sigtramp_frame_prev_register): New function.
2632 (m68k_sigtramp_frame_unwind): New variable.
2633 (m68k_sigtramp_frame_p): New function.
2634 (m68k_frame_base_address): New function.
2635 (m68k_frame_base): New function.
2636 (m68k_unwind_dummy_id): New function.
2637 (fill_gregset): Use regcache_collect.
2638 (fill_fpregset): Likewise.
2639 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2640 defined.
2641 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2642 deprecated_init_frame_pc, deprecated_store_struct_return,
2643 deprecated_extract_return_value, deprecated_store_return_value,
2644 deprecated_frame_chain, deprecated_frame_saved_pc,
2645 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2646 deprecated_register_virtual_size,
2647 deprecated_max_register_raw_size,
2648 deprecated_max_register_virtual_size,
2649 deprecated_register_virtual_type, deprecated_register_size,
2650 deprecated_register_byte, deprecated_register_bytes,
2651 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2652 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2653 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2654 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2655 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2656 deprecated_push_dummy_frame, deprecated_pop_frame,
2657 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2658 only if SYSCALL_TRAP is defined. Set extract_return_value,
2659 store_return_value, extract_struct_value_address, register_type,
2660 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2661 predicates.
2662 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2663 M68K_MAX_REGISTER_SIZE): Define.
2664 (struct m68k_sigtramp_info): Define.
2665 (struct gdbarch_tdep): Add get_sigtramp_info.
2666 * m68klinux-nat.c (fetch_register): Use register_size instead of
2667 REGISTER_RAW_SIZE. Don't put assignment in if.
2668 (store_register): Likewise.
2669 (fetch_inferior_registers): Likewise.
2670 (store_inferior_registers): Likewise.
2671 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2672 (m68k_linux_frame_saved_pc): Delete.
2673 (m68k_linux_sigcontext_reg_offset,
2674 m68k_linux_ucontext_reg_offset): Define.
2675 (m68k_linux_get_sigtramp_info): New function.
2676 (m68k_linux_extract_return_value): Rewrite using regcache.
2677 (m68k_linux_store_return_value): Likewise.
2678 (m68k_linux_extract_struct_value_address): Likewise.
2679 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2680 Don't set deprecated_frame_saved_pc,
2681 deprecated_extract_return_value, deprecated_store_return_value,
2682 deprecated_extract_struct_value_address. Set
2683 extract_return_value, store_return_value,
2684 extract_struct_value_address.
2685
2686 2003-07-07 Andrew Cagney <cagney@redhat.com>
2687
2688 * expprint.c: Include "user-regs.h" instead of "frame.h".
2689 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2690 frame_map_regnum_to_name.
2691 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2692 (frame_map_name_to_regnum): Simplify, call
2693 user_reg_map_name_to_regnum.
2694 (frame_map_regnum_to_name): Simplify, call
2695 user_reg_map_regnum_to_name.
2696 (frame_register_unwind): Update.
2697 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2698 (_initialize_frame_reg): Call user_reg_add_builtin.
2699 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2700 (value_of_register): Use value_of_user_reg.
2701 * eval.c (evaluate_subexp_standard): Update.
2702 * parse.c (write_dollar_variable): Update.
2703 * d10v-tdep.c (d10v_print_registers_info): Update.
2704 * infcmd.c (registers_info): Update.
2705 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2706 (builtin_regs_h): Delete macro.
2707 (user_regs_h): Define.
2708 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2709 (builtin-regs.o): Delete target.
2710 (user-regs.o): Specify dependencies.
2711 (expprint.o): Update dependencies.
2712 (findvar.o): Update dependencies.
2713 (frame.o): Update dependencies.
2714 (std-regs.o): Update dependencies.
2715
2716 2003-07-06 Christopher Faylor <cgf@redhat.com>
2717
2718 * win32-nat.c (solib_symbols_add): Use one variable for all section
2719 address stuff. Pass variable rather than address of variable to
2720 safe_symbol_file_add.
2721
2722 2003-07-06 Andreas Schwab <schwab@suse.de>
2723
2724 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2725
2726 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2727
2728 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2729
2730 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2731
2732 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2733
2734 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2735
2736 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2737 * config/i386/nto.mh: New file.
2738 * config/i386/nm-nto.h: New file.
2739 * configure.host: Add i[3456]86-*-nto*.
2740
2741 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2742
2743 * remote-vx.c (vx_add_symbols): Fix compilation error.
2744
2745 2003-07-03 Andrew Cagney <cagney@redhat.com>
2746
2747 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2748 * gdbarch.h, gdbarch.c: Re-generate.
2749 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2750 (legacy_register_name): Declare.
2751 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2752 (REGISTER_NAME): Define.
2753 * sparc-tdep.c (legacy_register_name): New function.
2754 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2755 (REGISTER_NAME): Define.
2756 (hppa64_register_name): Declare.
2757 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2758 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2759 (hppa64_register_name): New function.
2760 (hppa_register_name): New function.
2761 * arch-utils.c (legacy_register_name): Delete.
2762 * arch-utils.h (legacy_register_name): Delete.
2763
2764 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2765
2766 * cli/cli-interp.c (cli_interpreter_resume): Update the
2767 cli_uiout's stream to gdb_stdout.
2768
2769 2003-07-03 Andrew Cagney <cagney@redhat.com>
2770
2771 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2772 predicate.
2773 * gdbarch.h, gdbarch.c: Re-generate.
2774 * regcache.c (init_regcache_descr): Use legacy code when either
2775 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2776
2777 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2778
2779 * NEWS: Move "set logging" entry into GDB 6.0 section.
2780
2781 2003-07-02 Jim Blandy <jimb@redhat.com>
2782
2783 * s390-tdep.c (struct frame_extra_info): new member:
2784 'stack_bought_valid'.
2785 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2786 initialize fextra_info->stack_bought.
2787 (s390_frameless_function_invocation): Don't trust the value of
2788 fextra_info_ptr->stack_bought unless
2789 fextra_info->stack_bought_valid is set.
2790
2791 New S390 prologue analyzer.
2792 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2793 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2794 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2795 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2796 compute_x_addr, s390_on_stack, s390_store,
2797 s390_get_signal_frame_info): New functions.
2798 (S390_NUM_SPILL_SLOTS): New macro.
2799 (s390_get_frame_info): Rewritten.
2800 (is_arg_reg): Deleted.
2801
2802 Break out the decoding of S/390 instructions into separate
2803 functions, to make it more legible, and easier to check
2804 against the spec.
2805 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2806 is_rx, is_rxe): New functions.
2807 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2808 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2809 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2810 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2811 enums for opcode values. (Is this an improvement?)
2812
2813 2003-07-02 Andrew Cagney <cagney@redhat.com>
2814
2815 * i386-tdep.c: Revert change committed as part of trad-frame code
2816 below.
2817
2818 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2819
2820 * breakpoint.c (insert_catchpoint): Make static.
2821
2822 2003-07-02 Andreas Schwab <schwab@suse.de>
2823
2824 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2825 former ia64_push_arguments and ia64_push_return_address, and use
2826 regcache functions instead of read/write_register.
2827 (ia64_gdbarch_init): Set push_dummy_call instead of
2828 deprecated_push_arguments and deprecated_push_return_address.
2829
2830 2003-07-01 Andreas Jaeger <aj@suse.de>
2831
2832 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2833 before the call.
2834 Set %rax only to number of SSE registers used.
2835
2836 2003-07-01 Andrew Cagney <cagney@redhat.com>
2837
2838 * trad-frame.h: Update comments, a -1 .addr is reserved.
2839 (trad_frame_value_p, trad_frame_addr_p): Declare.
2840 (trad_frame_reg_p): Declare.
2841 (trad_frame_set_value): Rename trad_frame_register_value.
2842 (trad_frame_set_unknown): Declare.
2843 * trad-frame.c (trad_frame_realreg_p): New function.
2844 (trad_frame_addr_p, trad_frame_value_p): New function.
2845 (trad_frame_set_unknown): New function.
2846 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2847 (trad_frame_prev_register): Use trad_frame_realreg_p,
2848 trad_frame_addr_p and trad_frame_value_p.
2849 (trad_frame_set_value): Rename trad_frame_register_value.
2850 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2851 and trad_frame_set_value.
2852
2853 2003-06-30 Jim Blandy <jimb@redhat.com>
2854
2855 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2856 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2857 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2858 for 16 registers, and then 32 more bytes.
2859 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2860 New macros.
2861 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2862 Move up in the file, since it's now used by is_simple_arg.
2863 (is_simple_arg): Don't assume registers are four bytes long.
2864 Exclude all double arguments. Extended floats are not simple
2865 args.
2866 (is_power_of_two): New function.
2867 (pass_by_copy_ref): Call is_power_of_two, and check that the
2868 length fits in a register, rather than listing all the acceptable
2869 sizes. Extended floats are not passed by reference.
2870 (s390_push_arguments): Don't assume registers are four bytes long.
2871 Reserve an argument register to point to the buffer for structures
2872 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2873 S390_STACK_FRAME_OVERHEAD.
2874
2875 2003-06-30 Andreas Schwab <schwab@suse.de>
2876
2877 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2878 format error message.
2879
2880 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2881
2882 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2883
2884 2003-06-30 David Carlton <carlton@kealia.com>
2885
2886 Band-aid for PR c++/1245.
2887 * Makefile.in (cp-support.o): Depend on complaints_h.
2888 * cp-support.c: Include complaints.h. Add declaration for
2889 find_last_component.
2890 (cp_find_first_component): Separate code into
2891 cp_find_first_component_aux.
2892 (cp_find_first_component_aux): Call demangled_name_complaint.
2893 (demangled_name_complaint): New.
2894
2895 2003-06-30 Andrew Cagney <cagney@redhat.com>
2896
2897 * remote.c (remote_write_bytes): Explicitly compute and then use
2898 the payload size. Update comments to reflect. Fixes problem of
2899 GDB not sending small packets as found by Fred Fish.
2900
2901 2003-06-30 Andrew Cagney <cagney@redhat.com>
2902
2903 * remote.c (remote_async_wait): Fix -Wformat problem.
2904
2905 2003-06-29 Andrew Cagney <cagney@redhat.com>
2906
2907 * remote.c (remote_wait): Call error, and not warning, when the
2908 packet is corrupt.
2909 (remote_async_wait): Ditto.
2910
2911 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2912
2913 * sparc-tdep.c (sparc_y_regnum): Make external again.
2914
2915 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2916
2917 * cli/cli-logging.c (pop_output_files): Add void to function
2918 definition.
2919
2920 2003-06-29 Andrew Cagney <cagney@redhat.com>
2921
2922 * frame.c (frame_register_unwind): Use unsigned char when dumping
2923 the buffer contents.
2924
2925 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2926
2927 * cli/cli-logging.c: New file.
2928 * cli-out.c (struct ui_out_data): Add original_stream.
2929 (cli_redirect): New function.
2930 (cli_ui_out_impl): Add cli_redirect.
2931 (cli_out_new): Initialize original_stream.
2932 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2933 (uo_redirect, ui_out_redirect): New.
2934 * ui-out.h (struct ui_out_impl): Add redirect member.
2935 (redirect_ftype): New.
2936 (ui_out_redirect): Add prototype.
2937 * Makefile.in: Add rules for cli-logging.c.
2938 * NEWS: Mention "set logging".
2939
2940 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2941
2942 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2943
2944 2003-06-27 Andrew Cagney <cagney@redhat.com>
2945
2946 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2947 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2948 * avr-tdep.c (avr_call_dummy_address): Delete function.
2949 (avr_gdbarch_init): Do not set call_dummy_address.
2950
2951 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2952
2953 * symfile.c (syms_from_objfile): Move variables to inner block.
2954 Move the checks for the non-mainline case a bit earlier to avoid
2955 doing some useless computations.
2956
2957 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2958
2959 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2960
2961 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2962
2963 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2964 sections.
2965
2966 2003-06-26 Michael Chastain <mec@shout.net>
2967
2968 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2969 gdb/testsuite/gdb.c++/pr-1210.exp.
2970
2971 2003-06-26 Andrew Cagney <cagney@redhat.com>
2972
2973 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2974 altivec_expression.h and altivec_registers.h.
2975
2976 2003-06-26 Andrew Cagney <cagney@redhat.com>
2977
2978 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2979 info->mach when MIPS16. Patch suggested by Fred Fish.
2980
2981 2003-06-26 Andrew Cagney <cagney@redhat.com>
2982
2983 * utils.c (internal_vproblem): Print the problem to a reason
2984 buffer and then pass to query. Make the msg variable more local.
2985
2986 2003-06-26 Andrew Cagney <cagney@redhat.com>
2987
2988 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2989 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2990 * gdbarch.h, gdbarch.c: Re-generate.
2991 * frame-base.c (default_frame_args_address): Update. Use
2992 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2993 not available.
2994 (default_frame_locals_address): Ditto for
2995 DEPRECATED_FRAME_LOCALS_ADDRESS.
2996 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2997 (vax_frame_num_args): Update.
2998 (vax_gdbarch_init): Update.
2999 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3000 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3001 * mcore-tdep.c (mcore_gdbarch_init): Update.
3002 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3003 * ia64-tdep.c (ia64_gdbarch_init): Update.
3004 * symtab.h (address_class): Update comments.
3005 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3006 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3007 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3008 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3009 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3010 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3011 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3012 * alpha-mdebug-tdep.c: Update.
3013 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3014
3015 2003-06-26 Andreas Jaeger <aj@suse.de>
3016
3017 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3018 of SSE registers so that varargs functions work. Rework handling
3019 of passing arguments on the stack.
3020 (x86_64_store_return_value): Return double and float values in SSE
3021 register.
3022
3023 2003-06-24 Michael Chastain <mec@shout.net>
3024
3025 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3026 the "constructor breakpoints ignored" bug.
3027
3028 2003-06-25 David Carlton <carlton@kealia.com>
3029
3030 * MAINTAINERS: Update e-mail address.
3031
3032 2003-06-24 Jim Blandy <jimb@redhat.com>
3033
3034 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3035
3036 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3037 function.
3038 (ppc_linux_init_abi): Register it as the
3039 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3040
3041 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3042 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3043 method.
3044
3045 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3046 (ppc64_standard_linkage_target): Use it.
3047
3048 2003-06-23 Andrew Cagney <cagney@redhat.com>
3049
3050 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3051 for 0 "int0" and 4 "int32" sized registers.
3052 * gdbtypes.c (builtin_type_int0): Define.
3053 (build_gdbtypes): Initialize builtin_type_int0.
3054 * gdbtypes.h (builtin_type_int0): Declare.
3055
3056 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3057
3058 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3059 as characters are unsigned.
3060
3061 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3062
3063 PR gdb/1179
3064 * dwarfread.c (struct_type): Skip static fields without crashing.
3065
3066 2003-06-22 Andrew Cagney <cagney@redhat.com>
3067
3068 GDB 6.0 branch created.
3069 * README: Update.
3070 * PROBLEMS: Update. Empty.
3071 * NEWS: Update.
3072
3073 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3074
3075 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3076 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3077
3078 2003-06-22 Andrew Cagney <cagney@redhat.com>
3079
3080 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3081 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3082 Velikov.
3083
3084 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3085
3086 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3087 compilers.
3088
3089 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3090
3091 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3092 argument of val_print.
3093 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3094 to the address argument of baseclass_offset or target_read_memory.
3095 Do add it to the argument of cp_print_value_fields.
3096
3097 2003-06-21 Andrew Cagney <cagney@redhat.com>
3098
3099 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3100 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3101 instead of 0..NUM_REGS.
3102 (mips_register_reggroup_p): New function.
3103 (mips_pseudo_register_write): New function.
3104 (mips_pseudo_register_read): New function.
3105 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3106 based on the register's type.
3107 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3108 cooked.
3109 (mips_get_saved_register): Simplify. Assert that REGNO is a
3110 pseudo / cooked.
3111 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3112 (mips_register_type): Replace mips_register_virtual_type. Map
3113 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3114 when available.
3115 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3116 that the register is cooked / virtual.
3117 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3118 Only get the extra info when needed.
3119 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3120 (mips32_heuristic_proc_desc): Fetch the cooked register.
3121 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3122 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3123 (mips_print_register): Use gdbarch_register_type, instead of
3124 REGISTER_VIRTUAL_TYPE.
3125 (print_gp_register_row): Use gdbarch_register_type, instead of
3126 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3127 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3128 Print the pseudo / cooked registers.
3129 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3130 Print the pseudo / cooked registers.
3131 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3132 REG_NUM is pseudo / cooked.
3133 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3134 (mips_n32n64_xfer_return_value): Ditto.
3135 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3136 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3137 (mips_register_sim_regno): New function.
3138 (mips_gdbarch_init): Set deprecated_register_byte,
3139 register_group_p, pseudo_register_write, pseudo_register_read,
3140 register_sim_regno, and num_pseudo_regs. Set register_type,
3141 instead of register_virtual_type.
3142 * Makefile.in (mips-tdep.o): Update dependencies.
3143 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3144 REGISTER_VIRTUAL_TYPE.
3145 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3146 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3147 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3148 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3149 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3150
3151 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3152
3153 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3154 * cli/cli-cmds.c: Include "gdb_vfork.h".
3155 (shell_escape): Use vfork.
3156
3157 2003-06-21 Andrew Cagney <cagney@redhat.com>
3158
3159 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3160 32 bit floating-point register saves.
3161
3162 * frame.h (deprecated_unwind_get_saved_register): Delete.
3163 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3164 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3165 and deprecated_get_next_frame_hack instead of
3166 deprecated_unwind_get_saved_register.
3167
3168 * mips-tdep.c (mips_dump_tdep): Do not print
3169 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3170
3171 * frame.c (get_frame_register): New function.
3172 (frame_unwind_register_signed): New function.
3173 (get_frame_register_signed): New function.
3174 (frame_unwind_register_unsigned): New function.
3175 (get_frame_register_unsigned): New function.
3176 * frame.h: Add comments on naming schema.
3177 (get_frame_register, frame_unwind_register_signed): Declare.
3178 (get_frame_register_signed, get_frame_register_signed): Declare.
3179 (frame_unwind_register_unsigned): Declare.
3180 (get_frame_register_unsigned): Declare.
3181
3182 2003-06-20 Theodore A. Roth <troth@openavr.org>
3183
3184 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3185
3186 2003-06-20 Theodore A. Roth <troth@openavr.org>
3187
3188 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3189 (avr_read_sp): Ditto.
3190
3191 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3192
3193 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3194 * config/arm/nm-linux.h: Likewise.
3195 * config/arm/tm-linux.h: Likewise.
3196 * config/ia64/nm-linux.h: Likewise.
3197 * config/ia64/tm-ia64.h: Likewise.
3198 * config/s390/tm-linux.h: Likewise.
3199 * config/s390/tm-s390.h: Likewise.
3200 * s390-nat.c: Likewise.
3201 * s390-tdep.c: Likewise.
3202
3203 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3204 * config/ia64/linux.mt: Likewise.
3205 * config/m68k/linux.mh: Likewise.
3206 * config/mips/linux.mt: Likewise.
3207 * config/powerpc/linux.mh: Likewise.
3208 * config/sh/linux.mt: Likewise.
3209
3210 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3211
3212 * solib.c (solib_open): Change tests for whether to search
3213 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3214 comments.
3215
3216 2003-06-19 Theodore A. Roth <troth@openavr.org>
3217
3218 * avr-tdep.c (avr_frame_address): Delete function.
3219 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3220 set_gdbarch_frame_args_address.
3221
3222 2003-06-19 Andrew Cagney <cagney@redhat.com>
3223
3224 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3225 (REGISTER_CONVERT_FROM_TYPE): Delete.
3226 (mips_register_convert_to_type): Delete declaration.
3227 (mips_register_convert_from_type): Delete declaration.
3228 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3229 kernel/.
3230
3231 2003-06-19 Michael Snyder <msnyder@redhat.com>
3232
3233 * linux-nat.h: New file.
3234 * linux-nat.c: Include linux-nat.h.
3235 * lin-lwp.c: Include linux-nat.h.
3236 Move struct lwp_info def to linux-nat.h.
3237 * linux-proc.c: Include linux-nat.h.
3238 (linux_make_note_section): Iterate over lwps instead of threads.
3239 (linux_do_thread_registers): Use lwp instead of merged pid.
3240 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3241 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3242 Add dependency on linux_nat_h.
3243
3244 2003-06-19 Theodore A. Roth <troth@openavr.org>
3245
3246 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3247
3248 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3249
3250 * varobj.c (get_type, get_target_type): Use check_typedef.
3251
3252 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3253
3254 * breakpoint.c (insert_catchpoint): Call internal_error.
3255
3256 2003-06-19 Theodore A. Roth <troth@openavr.org>
3257
3258 * avr-tdep.c (avr_push_dummy_code): Delete function.
3259 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3260
3261 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3262
3263 * arch-utils.c (default_prepare_to_proceed): Remove.
3264 (generic_prepare_to_proceed): Remove.
3265 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3266 (generic_prepare_to_proceed): Remove prototype.
3267 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3268 * gdbarch.c: Regenerate.
3269 * gdbarch.h: Regenerate.
3270 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3271 * hppah-nat.c (hppa_switched_threads): Remove.
3272 * infrun.c (prepare_to_proceed): New static function, copied from
3273 generic_prepare_to_proceed. Remove select_it argument.
3274 (proceed): Call prepare_to_proceed.
3275 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3276 variables.
3277 (ptrace_wait): Don't set the removed variables.
3278 (hppa_switched_threads): Remove.
3279 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3280 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3281 (lin_lwp_prepare_to_proceed): Remove prototype.
3282 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3283 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3284
3285 2003-06-18 Theodore A. Roth <troth@openavr.org>
3286
3287 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3288 trad-frame.h.
3289 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3290 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3291 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3292 (AVR_PROLOGUE_*): Enumerate prologue types.
3293 (struct frame_extra_info): Remove.
3294 (struct avr_unwind_cache): Define.
3295 (avr_write_sp): Delete function.
3296 (avr_read_fp): Ditto.
3297 (avr_init_extra_frame_info): Ditto.
3298 (avr_pop_frame): Ditto.
3299 (avr_frame_saved_pc): Ditto.
3300 (avr_saved_pc_after_call): Ditto.
3301 (avr_push_return_address): Ditto.
3302 (avr_frame_chain): Ditto.
3303 (avr_store_struct_return): Ditto.
3304 (avr_push_arguments): Ditto.
3305 (avr_scan_prologue): Update comments. Changed to set up the info for
3306 cache unwinding. Now returns end of prologue PC.
3307 (avr_skip_prologue): Better handling of functions lacking a prologue
3308 by using avr_scan_prologue.
3309 (avr_scan_arg_moves): New function.
3310 (avr_saved_regs_unwinder): Ditto.
3311 (avr_frame_unwind_cache): Ditto.
3312 (avr_unwind_pc): Ditto.
3313 (avr_frame_this_id): Ditto.
3314 (avr_frame_prev_register): Ditto.
3315 (avr_frame_p): Ditto.
3316 (avr_frame_base_address ): Ditto.
3317 (avr_unwind_dummy_id): Ditto.
3318 (avr_push_dummy_code): Ditto.
3319 (push_stack_item): Ditto.
3320 (pop_stack_item): Ditto.
3321 (avr_push_dummy_call): Ditto.
3322 (struct stack_item): Define.
3323 (avr_frame_unwind): Declare structure.
3324 (avr_frame_base): Ditto.
3325 (avr_gdbarch_init): Remove calls to
3326 set_gdbarch_deprecated_init_frame_pc,
3327 set_gdbarch_deprecated_target_read_fp,
3328 set_gdbarch_deprecated_dummy_write_sp,
3329 set_gdbarch_deprecated_fp_regnum,
3330 set_gdbarch_deprecated_push_arguments,
3331 set_gdbarch_deprecated_push_return_address,
3332 set_gdbarch_deprecated_pop_frame,
3333 set_gdbarch_deprecated_store_struct_return,
3334 set_gdbarch_deprecated_frame_init_saved_regs,
3335 set_gdbarch_deprecated_init_extra_frame_info,
3336 set_gdbarch_deprecated_frame_chain,
3337 set_gdbarch_deprecated_frame_saved_pc,
3338 set_gdbarch_deprecated_saved_pc_after_call.
3339 Add calls to set_gdbarch_push_dummy_call,
3340 set_gdbarch_push_dummy_code,
3341 frame_unwind_append_predicate,
3342 frame_base_set_default,
3343 set_gdbarch_unwind_dummy_id,
3344 set_gdbarch_unwind_pc.
3345 Wrap a long line.
3346
3347 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3348
3349 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3350 registers for H8/300S.
3351 (h8300_print_registers_info): Ditto.
3352 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3353
3354 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3355
3356 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3357 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3358 (lin_lwp_wait): Likewise. Update comments.
3359 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3360 (pull_pid_from_list, linux_record_stopped_pid): New.
3361
3362 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3363
3364 * ada-lang.c (scan_discrim_bound): Name first argument.
3365 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3366 declared by ALL_BLOCK_SYMBOLS.
3367
3368 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3369
3370 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3371 ("regcache.h"): Include it.
3372 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3373
3374 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3375
3376 * NEWS: Mention gdbserver detach change and "disconnect" command.
3377 * infcmd.c (disconnect_command): New function.
3378 (_initialize_infcmd): Add ``disconnect'' command.
3379 * remote.c (remote_async_detach): Delete.
3380 (remote_detach): Merge remote_async_detach.
3381 (remote_disconnect): New.
3382 (init_remote_ops): Set to_disconnect.
3383 (init_remote_cisco_ops): Likewise.
3384 (init_remote_async_ops): Likewise. Use remote_detach.
3385 * target.c (cleanup_target): Default to_disconnect.
3386 (update_current_target): Inherit to_disconnect.
3387 (target_disconnect, debug_to_disconnect): New functions.
3388 (setup_target_debug): Set to_disconnect.
3389 * target.h (struct target_ops): Add to_disconnect.
3390 (target_disconnect): Add prototype.
3391
3392 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3393
3394 * breakpoint.c (insert_catchpoint): New function.
3395 (insert_breakpoints): Use catch_exceptions to call
3396 insert_catchpoint. Disable catchpoints if they fail to insert.
3397
3398 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3399
3400 * symfile.c (reread_symbols): Clear sym_private.
3401
3402 2003-06-17 Andrew Cagney <cagney@redhat.com>
3403
3404 * trad-frame.h (struct frame_info): Add opaque declaration.
3405 * remote-fileio.h (struct cmd_list_element): Add opaque
3406 declaration.
3407 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3408 comments.
3409
3410 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3411
3412 * remote.c (remote_prepare_to_store): Replace call to
3413 deprecated_read_register_bytes with multiple regcache_raw_read
3414 calls.
3415
3416 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3417
3418 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3419 (nto_find_and_open_solib): Likewise.
3420 (nto_init_solib_absolute_prefix): Likewise.
3421 (_initialize_nto_tdep): Fix indentation.
3422
3423 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3424
3425 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3426
3427 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3428
3429 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3430
3431 2003-06-17 Jim Blandy <jimb@redhat.com>
3432
3433 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3434
3435 2003-06-16 Theodore A. Roth <troth@openavr.org>
3436
3437 * avr-tdep.c (avr_extract_return_value): New function.
3438 (avr_gdbarch_init): Set extract_return_value method.
3439
3440 2003-06-16 Andrew Cagney <cagney@redhat.com>
3441
3442 * frame.h (deprecated_get_next_frame_hack): Declare.
3443 * frame.c (legacy_saved_regs_prev_register): Only require
3444 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3445 there are always saved regs.
3446 (deprecated_generic_get_saved_register): Do not require
3447 DEPRECATED_FRAME_INIT_SAVED_REGS.
3448 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3449 use frame ID unwind instead.
3450 (deprecated_get_next_frame_hack): New function.
3451
3452 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3453
3454 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3455 (h8300_push_dummy_call): ...this function. Some minor optimization.
3456 (h8300_push_return_address): Remove.
3457 (h8300_gdbarch_init): Remove calls to
3458 set_gdbarch_deprecated_dummy_write_sp,
3459 set_gdbarch_deprecated_push_arguments and
3460 set_gdbarch_deprecated_push_return_address.
3461 Add call to set_gdbarch_push_dummy_call.
3462
3463 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3464
3465 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3466 (E_PSEUDO_EXR_REGNUM): Ditto.
3467 (h8300_is_argument_spill): Check for instructions moving argument
3468 registers into safe registers.
3469 (h8300_skip_prologue): Check for stm instruction to push registers
3470 used for register variables onto stack.
3471 (gdb_print_insn_h8300): Remove.
3472 (h8300_examine_prologue): Add a comment.
3473 (h8300_register_name): Take pseudo registers into account.
3474 (h8300s_register_name): Ditto.
3475 (h8300sx_register_name): Ditto.
3476 (h8300_print_register): Ditto.
3477 (h8300_print_registers_info): Define "nice" printing order.
3478 (h8300_saved_pc_after_call): Take pseudo registers into account.
3479 (h8300_register_type): Ditto. Return type used for remote connection
3480 when requesting real CCR or EXR register, return actual type when
3481 requesting pseudo CCR or EXR.
3482 (h8300_pseudo_register_read): New function.
3483 (h8300_pseudo_register_write): Ditto.
3484 (h8300_dbg_reg_to_regnum): Ditto.
3485 (h8300s_dbg_reg_to_regnum): Ditto.
3486 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3487 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3488 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3489 set_gdbarch_print_insn architecture dependent.
3490 Call set_gdbarch_pseudo_register_read and
3491 set_gdbarch_pseudo_register_write.
3492 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3493
3494 2003-06-16 Andrew Cagney <cagney@redhat.com>
3495
3496 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3497 * gdbarch.h, gdbarch.c: Re-generate.
3498 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3499 * s390-tdep.c (s390_gdbarch_init): Update.
3500 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3501 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3502 * mips-tdep.c (mips_gdbarch_init): Update.
3503 * mcore-tdep.c (mcore_gdbarch_init): Update.
3504 * cris-tdep.c (cris_gdbarch_init): Update.
3505 * infcall.c (call_function_by_hand): Update.
3506 * ia64-tdep.c (ia64_push_arguments): Update comment.
3507 * frame.c (legacy_get_prev_frame): Do not assume
3508 SAVE_DUMMY_FRAME_TOS_P.
3509 * dummy-frame.c (find_dummy_frame): Update comment.
3510
3511 2003-06-16 Andrew Cagney <cagney@redhat.com>
3512
3513 * regcache.c (do_cooked_read): Do not use register_valid_p.
3514
3515 2003-06-15 Theodore A. Roth <troth@openavr.org>
3516
3517 * avr-tdep.c (avr_register_type): Remove a blank line.
3518 (avr_scan_prologue): Correct some comments.
3519
3520 2003-06-15 Theodore A. Roth <troth@openavr.org>
3521
3522 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3523 prologue types.
3524 Properly scan prologues generated by gcc with the -mcall-prologues
3525 option.
3526 Add code to scan -mcall-prologues for mega devices.
3527
3528 2003-06-15 Theodore A. Roth <troth@openavr.org>
3529
3530 * avr-tdep.c (avr_register_byte): Delete function.
3531 (avr_register_raw_size): Delete function.
3532 (avr_register_virtual_size): Delete function.
3533 (avr_register_virtual_type): Delete function.
3534 (avr_register_type): New function.
3535 (avr_address_to_pointer): Remove unused code.
3536 (avr_read_fp): Need to read FP as two separate bytes due to change to
3537 avr_register_type() usage.
3538 (avr_gdbarch_init): Don't set deprecated_register_size.
3539 Don't set deprecated_register_bytes.
3540 Don't set deprecated_register_byte.
3541 Don't set deprecated_register_raw_size.
3542 Don't set deprecated_max_register_raw_size.
3543 Don't set deprecated_register_virtual_size.
3544 Don't set deprecated_max_register_virtual_size.
3545 Don't set deprecated_register_virtual_type.
3546 Set register_type method.
3547
3548 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3549
3550 * Makefile.in (linux-nat.o): Add rule.
3551 * linux-nat.c: New file.
3552 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3553 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3554 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3555 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3556 * config/arm/linux.mh (NATDEPFILES): Likewise.
3557 * config/i386/linux.mh (NATDEPFILES): Likewise.
3558 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3559 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3560 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3561 * config/mips/linux.mh (NATDEPFILES): Likewise.
3562 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3563 * config/s390/s390.mh (NATDEPFILES): Likewise.
3564 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3565
3566 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3567
3568 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3569 replace out-of-date comment.
3570
3571 2003-06-15 Andrew Cagney <cagney@redhat.com>
3572
3573 * rdi-share/host.h (Fail): Change to a varargs function.
3574 * remote-rdi.c (Fail): Update.
3575
3576 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3577
3578 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3579 (i386_convert_register_p, i386_register_to_value,
3580 i386_register_from_value): Handle types longer than 8 bytes.
3581
3582 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3583
3584 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3585 Move floating-point code to new function in i387-tdep.c.
3586 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3587 New functions containing code moved here from i386-tdep.c.
3588 * i387-tdep.h: Add opaque declaration for `struct type'.
3589 (i387_register_to_value, i387_value_to_register): New prototypes.
3590 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3591 (x86_64_init_abi): Set convert_register_p, register_to_value and
3592 value_to_register here.
3593
3594 2003-06-14 Andrew Cagney <cagney@redhat.com>
3595
3596 * mips-tdep.c (mips_register_to_value): Make static.
3597 (mips_value_to_register): Make static.
3598 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3599 * ia64-tdep.c (ia64_register_raw_size): Make static.
3600 (ia64_register_virtual_size): Make static.
3601 (ia64_register_byte): Make static.
3602 * i387-tdep.c: Include "i387-tdep.h".
3603 (print_387_control_word): Delete function.
3604 (print_387_status_word): Delete function.
3605 (print_387_status_bits): Delete function.
3606 (print_387_control_bits): Delete function.
3607 * Makefile.in (i387-tdep.o): Update dependencies.
3608 * rdi-share/host.h (Fail): Declare.
3609 * remote-rdi.c (Fail): Update to match declaration.
3610
3611 2003-06-14 Andrew Cagney <cagney@redhat.com>
3612
3613 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3614 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3615 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3616 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3617 * README: Delete reference to remote-array.
3618 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3619 (remote-array.o): Delete target.
3620 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3621 * remote-array.c: Delete file.
3622
3623 2003-06-14 Andrew Cagney <cagney@redhat.com>
3624 Mark Kettenis <kettenis@gnu.org>
3625
3626 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3627 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3628 parameter with "frame".
3629 * gdbarch.h, gdbarch.c: Re-generate.
3630 * frame.h (put_frame_register): Declare.
3631 * frame.c (put_frame_register): New function.
3632 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3633 (legacy_register_to_value): Rewrite, use "frame" to get the
3634 register value.
3635 (legacy_value_to_register): Rewrite, use "frame" to find the
3636 register's location before storing.
3637 * arch-utils.h (legacy_convert_register_p): Update.
3638 (legacy_register_to_value, legacy_value_to_register): Update.
3639 * findvar.c (value_from_register): Rewrite, eliminate use of
3640 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3641 "frame" to REGISTER_TO_VALUE.
3642 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3643 lval_reg_frame_relative + lval_register branch of the switch. Do
3644 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3645 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3646 I386_EDI_REGNUM): New defines.
3647 (i386_next_regnum, i386_convert_register_p,
3648 i386_register_to_value, i386_value_to_register): New functions.
3649 (i386_register_convertible, i386_register_convert_to_virtual,
3650 i386_convert_to_raw): Remove functions.
3651 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3652 value_to_register instead of register_convertible,
3653 register_convert_to_virtual and register_convert_to_raw.
3654 * mips-tdep.c (mips_convert_register_p): New function.
3655 (mips_value_to_register): Replace mips_register_convert_from_type.
3656 (mips_register_to_value): Replace mips_register_convert_to_type.
3657 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3658 register_to_value.
3659 * alpha-tdep.c (alpha_convert_register_p): Update.
3660 (alpha_value_to_register): Update, store the register.
3661 (alpha_register_to_value): Update, fetch the register.
3662
3663 2003-06-14 Theodore A. Roth <troth@openavr.org>
3664
3665 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3666 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3667 Don't set deprecated_call_dummy_words.
3668 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3669 Don't set remote_translate_xfer_address.
3670 (avr_io_reg_read_command): Remove commented out debug printf.
3671 Wrap a long line.
3672
3673 2003-06-14 Theodore A. Roth <troth@openavr.org>
3674
3675 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3676 causes gdb to seg fault.
3677
3678 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3679
3680 * sparc-nat.c (fetch_inferior_registers): Correct
3681 a reference to "registers".
3682
3683 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3684
3685 * Makefile.in (exc_request_U_h): Define
3686 (exc_request_S_h): Likewise.
3687 (msg_reply_S_h): Likewise.
3688 (msg_U_h): Likewise.
3689 (notify_S_h): Likewise.
3690 (process_reply_S_h): Likewise.
3691 (gnu-nat.o): Depend on gdb_obstack_h
3692 * gnu-nat.c: Include "gdb_obstack.h".
3693
3694 2003-06-13 Andrew Cagney <cagney@redhat.com>
3695
3696 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3697 * gdbarch.h, gdbarch.c: Re-generate.
3698
3699 2003-06-13 Andrew Cagney <cagney@redhat.com>
3700
3701 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3702 when deprecated REGISTER macros can be deleted.
3703 * gdbarch.h, gdbarch.c: Re-generate.
3704
3705 2003-06-13 Jim Blandy <jimb@redhat.com>
3706
3707 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3708 Linux entry point symbols for _dl_debug_state, too.
3709
3710 2003-06-13 Andrew Cagney <cagney@redhat.com>
3711
3712 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3713 available, do not use the FP register, and always save the TOS.
3714 * dummy-frame.c (dummy_frame_this_id): Do not assert
3715 SAVE_DUMMY_FRAME_TOS.
3716 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3717 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3718 (i386_push_dummy_call): Add 8 to the returned SP.
3719 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3720 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3721 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3722 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3723 (x86_64_push_dummy_call): Return "sp + 16".
3724 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3725 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3726 save_dummy_frame_tos.
3727
3728 2003-06-13 Jim Blandy <jimb@redhat.com>
3729
3730 * frv-tdep.c (frv_use_struct_convention): Delete static
3731 declaration for function deleted in my change of 2003-06-12.
3732
3733 2003-06-13 Theodore A. Roth <troth@openavr.org>
3734
3735 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3736 (avr_pointer_to_address): Shift code addrs left 1 bit.
3737 (avr_convert_from_func_ptr_addr): Delete function since operation is
3738 better handled by avr_address_to_pointer and avr_pointer_to_address.
3739 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3740
3741 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3742
3743 From Kelley Cook <kelleycook@wideopenwest.com>:
3744 * configure.host: Accept i[34567]86 variants.
3745 * configure.tgt: Likewise.
3746 * nlm/configure.in: Likewise.
3747 * nlm/configure: Regenerated.
3748
3749 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3750
3751 * arm-tdep.c (solib-svr4.h): Dont' include it.
3752 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3753 * arm-linux-tdep.c: ... here. Make static.
3754 (arm_linux_init_abi): Register it.
3755 (solib-svr4.h): Include it.
3756 * Makefile.in: Update dependencies.
3757 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3758 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3759
3760 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3761
3762 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3763 indicate registers used for return values.
3764 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3765 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3766 members.
3767 (h8300_init_extra_frame_info): Ditto.
3768 (h8300_frame_locals_address): Removed.
3769 (h8300_frame_args_address): Removed.
3770 (h8300_extract_return_value): Use new regcache structure. Only care
3771 for 16 bit CPUs.
3772 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3773 (h8300_store_return_value): Use new regcache structure. Only care
3774 for 16 bit CPUs.
3775 (h8300h_store_return_value): Same function for 32 bit CPUs.
3776 (h8300_store_struct_return): Removed.
3777 (h8300_extract_struct_value_address): Use new regcache structure.
3778 (h8300h_extract_struct_value_address): Removed.
3779 (h8300_push_dummy_code): New function.
3780 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3781 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3782 set_gdbarch_store_return_value architecture dependent.
3783 Call set_gdbarch_push_dummy_code and
3784 set_gdbarch_extract_struct_value_address.
3785 Remove calls to set_gdbarch_frame_args_address,
3786 set_gdbarch_frame_locals_address,
3787 set_gdbarch_deprecated_store_struct_return,
3788 set_gdbarch_deprecated_extract_return_value,
3789 set_gdbarch_deprecated_extract_struct_value_address,
3790 set_gdbarch_deprecated_call_dummy_words and
3791 set_gdbarch_deprecated_sizeof_call_dummy_words.
3792
3793 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3794
3795 * h8300-tdep.c (h8300_register_byte): Remove.
3796 (h8300h_register_byte): Remove.
3797 (h8300_register_virtual_type): Remove. Substitute by...
3798 (h8300_register_type): New function.
3799 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3800 (h8300h_extract_struct_value_address): Ditto.
3801 (h8300_gdbarch_init): Drop calls to
3802 set_gdbarch_deprecated_register_byte and
3803 set_gdbarch_deprecated_register_virtual_type.
3804 Add call to set_gdbarch_register_type.
3805
3806 2003-06-13 Andrew Cagney <cagney@redhat.com>
3807
3808 * gdbarch.sh: Update comments on registers.
3809 (deprecated_register_byte): Rename register_byte.
3810 (deprecated_register_raw_size): Rename register_raw_size.
3811 (deprecated_register_virtual_size): Rename register_virtual_size.
3812 (deprecated_register_virtual_type): Rename register_virtual_type.
3813 * gdbarch.h, gdbarch.c: Re-generate.
3814 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3815 * vax-tdep.c (vax_gdbarch_init): Update.
3816 * v850-tdep.c (v850_gdbarch_init): Update.
3817 * sparc-tdep.c (sparc_gdbarch_init): Update.
3818 * sh-tdep.c (sh_gdbarch_init): Update.
3819 * s390-tdep.c (s390_gdbarch_init): Update.
3820 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3821 * ns32k-tdep.c: Update.
3822 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3823 * mips-tdep.c (mips_gdbarch_init): Update.
3824 * mcore-tdep.c (mcore_gdbarch_init): Update.
3825 * m68k-tdep.c (m68k_gdbarch_init): Update.
3826 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3827 * ia64-tdep.c (ia64_gdbarch_init): Update.
3828 * hppa-tdep.c (hppa_gdbarch_init): Update.
3829 * h8300-tdep.c (h8300_gdbarch_init): Update.
3830 * frv-tdep.c (frv_gdbarch_init): Update.
3831 * cris-tdep.c (cris_gdbarch_init): Update.
3832 * avr-tdep.c (avr_gdbarch_init): Update.
3833 * alpha-tdep.c (alpha_gdbarch_init): Update.
3834 * arm-tdep.c (arm_gdbarch_init): Update.
3835
3836 2003-06-13 Andrew Cagney <cagney@redhat.com>
3837
3838 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3839 mips_o32_use_struct_convention with always_use_struct_convention.
3840
3841 2003-06-12 David Carlton <carlton@kealia.com>
3842
3843 * cp-namespace.c (cp_set_block_scope): Comment out
3844 processing_has_namespace_info branch.
3845
3846 2003-06-12 Jim Blandy <jimb@redhat.com>
3847
3848 Recognize and skip 64-bit PowerPC Linux linkage functions.
3849 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3850 insn_pattern, insns_match_pattern, d_field, ds_field): New
3851 functions, macros, and types for working with PPC instructions.
3852 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3853 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3854 ppc64_skip_trampoline_code): New functions, variables, and macros
3855 for recognizing and skipping linkage functions.
3856 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3857 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3858
3859 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3860 register offsets for both the 32- and 64-bit interfaces.
3861
3862 Actually finish the job started by my change of 2003-05-29.
3863 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3864 other #definition of this.
3865 (ppc_linux_skip_trampoline_code): Remove declaration.
3866 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3867 static.
3868 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3869 method for GDBARCH.
3870
3871 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3872 'long' on ppc64-*-linux*.
3873
3874 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3875 isn't #defined, assume the register doesn't exist: act as if
3876 tdep->ppc_mq_regnum were -1.
3877
3878 * configure.host, configure.tgt: Add entries for
3879 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3880 powerpc/linux.mt.
3881 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3882 New files.
3883
3884 * arch-utils.c (always_use_struct_convention): New function.
3885 * arch-utils.h (always_use_struct_convention): New prototype.
3886 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3887 (alpha_gdbarch_init): Register always_use_struct_convention,
3888 instead of alpha_use_struct_convention.
3889 * cris-tdep.c (cris_use_struct_convention): Delete.
3890 (cris_gdbarch_init): Register always_use_struct_convention,
3891 instead of cris_use_struct_convention.
3892 * frv-tdep.c (frv_use_struct_convention): Delete.
3893 (frv_gdbarch_init): Register always_use_struct_convention,
3894 instead of frv_use_struct_convention.
3895 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3896 (h8300_gdbarch_init): Register always_use_struct_convention,
3897 instead of h8300_use_struct_convention.
3898 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3899 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3900 instead of mips_o32_use_struct_convention.
3901
3902 2003-06-12 Andrew Cagney <cagney@redhat.com>
3903
3904 * wince.c: Include "mips-tdep.h".
3905 * mips-tdep.h (mips_next_pc): Declare.
3906 * mcore-tdep.c: Make more local functions static.
3907 * Makefile.in (wince.o): Update dependencies.
3908
3909 2003-06-12 David Carlton <carlton@kealia.com>
3910
3911 * symtab.c (lookup_symbol_aux_minsyms): Replace
3912 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3913 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3914 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3915 SYMBOL_NATURAL_NAME.
3916
3917 2003-06-12 Andreas Schwab <schwab@suse.de>
3918
3919 * Makefile.in (tuiDisassem.o): Update dependencies.
3920
3921 2003-06-12 David Carlton <carlton@bactrian.org>
3922
3923 * symtab.h: Delete declaration of make_symbol_overload_list.
3924 Add declaration of lookup_partial_symbol.
3925 * symtab.c (remove_params): Move to cp-support.c.
3926 (overload_list_add_symbol, make_symbol_overload_list)
3927 (sym_return_val_size, sym_return_val_index): Ditto.
3928 (lookup_partial_symbol): Make extern.
3929 * cp-support.h: Add declaration of make_symbol_overload_list.
3930 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3931 symtab.h, and block.h.
3932 (remove_params): Move here from symtab.c.
3933 (overload_list_add_symbol, make_symbol_overload_list)
3934 (sym_return_val_size, sym_return_val_index): Ditto.
3935 * valops.c: Include cp-support.h.
3936 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3937 frame_h, and block_h.
3938 (valops.o): Depend on cp_support_h.
3939
3940 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
3941
3942 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3943 substitute by NUM_REGS throughout.
3944 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3945 (h8300s_register_name): New function for H8S registers.
3946 (h8300sx_register_name): Ditto for H8SX registers.
3947 (h8300_print_register): Revise register printing, avoid depending
3948 on 32 bit long.
3949 (h8300_register_byte): Only care for H8/300 registers.
3950 (h8300h_register_byte): New function for any other architecture.
3951 (h8300_register_raw_size): Remove.
3952 (h8300_register_virtual_type): Revise to return actually useful
3953 type.
3954 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3955 (h8300h_extract_struct_value_address): New function for any other
3956 architecture.
3957 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3958 set_gdbarch_register_name, set_gdbarch_register_byte,
3959 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3960 Remove calls to set_gdbarch_deprecated_register_size,
3961 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3962 set_gdbarch_deprecated_max_register_raw_size,
3963 set_gdbarch_register_virtual_size and
3964 set_gdbarch_deprecated_max_register_virtual_size entirely.
3965 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3966 set_gdbarch_long_double_bit.
3967
3968 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3969
3970 * doublest.c (convert_doublest_to_floatformat): When dealing
3971 with the implied integer bit, only alter mant_bits if we are
3972 processing a full 32 bits of mantissa.
3973
3974 2003-06-11 David Carlton <carlton@bactrian.org>
3975
3976 * dictionary.h: New.
3977 * dictionary.c: New.
3978 * block.h: Add opaque declaration for struct dictionary.
3979 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3980 'sym' members.
3981 (BLOCK_DICT): New macro.
3982 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3983 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3984 BLOCK_SHOULD_SORT.
3985 (ALL_BLOCK_SYMBOLS): Update definition.
3986 * Makefile.in (SFILES): Add dictionary.c.
3987 (dictionary_h): New.
3988 (COMMON_OBS): Add dictionary.o.
3989 (dictionary.o): New.
3990 (ada-lang.o): Depend on dictionary_h.
3991 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3992 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3993 (mi-cmd-stack.o): Ditto.
3994 (gdbtk-cmds.o): Update dependencies.
3995 (gdbtk-stack.o): Ditto.
3996 * ada-lang.c: Include dictionary.h.
3997 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3998 (fill_in_ada_prototype, debug_print_block): Ditto.
3999 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4000 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4001 'is_sorted'.
4002 * mdebugread.c: Include dictionary.h.
4003 (struct parse_stack): Delete 'maxsyms' member.
4004 (parse_symbol): Update calls to new_block. Delete calls to
4005 shrink_block. Use dictionary methods.
4006 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4007 Update calls to new_symtab. Don't maintain maxsyms data.
4008 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4009 (add_symbol): Just call dict_add_symbol.
4010 (new_symtab): Delete 'maxsyms' argument.
4011 (new_symtab): Update calls to new_block.
4012 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4013 (shrink_block): Delete function.
4014 (fixup_sigtramp): Update call to new_block. Add symbol via
4015 dict_add_symbol.
4016 * jv-lang.c: Include dictionary.h.
4017 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4018 appropriately. Set class_symtab->free_func. Make sure the
4019 blockvector is big enough to hold two blocks.
4020 (add_class_symtab_symbol): Use dictionary methods.
4021 (free_class_block): New function.
4022 (type_from_class): Replace explicit iteration by
4023 ALL_BLOCK_SYMBOLS.
4024 * symtab.h (struct symtab): Replace 'free_ptr' method by
4025 'free_func'.
4026 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4027 sort_symtab_syms.
4028 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4029 sort_symtab_syms.
4030 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4031 Include dictionary.h.
4032 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4033 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4034 sort_symtab_syms.
4035 * objfiles.c: Include dictionary.h.
4036 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4037 * buildsym.c: Include dictionary.h.
4038 (finish_block): Use dictionary methods.
4039 (end_symtab): Set free_func to NULL, not free_ptr.
4040 * tracepoint.c: Include dictionary.h.
4041 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4042 (scope_info): Ditto.
4043 * stack.c: Include dictionary.h.
4044 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4045 (print_block_frame_labels, print_frame_arg_vars)
4046 (print_frame_args): Ditto.
4047 * symmisc.c (free_symtab_block): Use dictionary methods.
4048 (dump_symtab): Ditto.
4049 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4050 Include dictionary.h.
4051 * symfile.h: Delete declarations of sort_block_syms,
4052 sort_symtab_syms.
4053 * symfile.c (sort_block_syms): Delete.
4054 (sort_symtab_syms): Delete.
4055 * symtab.c: Include dictionary.h.
4056 (lookup_block_symbol): Use dictionary iterators.
4057 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4058 (search_symbols, make_symbol_completion_list): Ditto.
4059 (make_symbol_overload_list): Ditto.
4060 * valops.c (value_of_local): Use dict_empty.
4061 Include dictionary.h.
4062
4063 2003-06-11 J. Brobecker <brobecker@gnat.com>
4064
4065 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4066
4067 2003-06-11 David Carlton <carlton@bactrian.org>
4068
4069 * block.h (BLOCK_SHOULD_SORT): Delete.
4070 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4071 blocks.
4072 * ada-lang.c (ada_add_block_symbols): Ditto.
4073 * symfile.c (sort_block_syms): Delete.
4074 (sort_symtab_syms): Ditto.
4075 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4076 declarations.
4077 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4078 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4079 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4080 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4081 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4082 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4083 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4084
4085 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4086
4087 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4088 bits to 128.
4089
4090 2003-06-11 Andrew Cagney <cagney@redhat.com>
4091
4092 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4093 REGISTER_CONVERTIBLE.
4094 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4095 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4096 * gdbarch.h, gdbarch.c: Re-generate.
4097 * arch-utils.h (deprecated_register_convertible_not): Rename
4098 generic_register_convertible_not.
4099 * arch-utils.c (deprecated_register_convertible_not): Rename
4100 generic_register_convertible.
4101 (legacy_convert_register_p, legacy_register_to_value): Update.
4102 * sh-tdep.c (sh64_push_arguments): Update.
4103 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4104 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4105 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4106 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4107 * arch-utils.c (legacy_value_to_register): Update.
4108 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4109 (rs6000_register_convert_to_raw): Make parameter "from" const.
4110 * mips-tdep.c (mips_gdbarch_init): Update.
4111 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4112 * infcmd.c (default_print_registers_info): Update.
4113 * ia64-tdep.c (ia64_gdbarch_init): Update.
4114 (ia64_register_convert_to_raw): Make parameter "from" const.
4115 * i386-tdep.c (i386_gdbarch_init): Update.
4116 (i386_register_convert_to_raw): Update.
4117
4118 2003-06-11 Andrew Cagney <cagney@redhat.com>
4119
4120 * remote-fileio.c: Include "remote-fileio.h".
4121 * Makefile.in (remote-fileio.o): Update dependencies.
4122 (remote_fileio_h): Fix typo.
4123
4124 2003-06-11 Andrew Cagney <cagney@redhat.com>
4125
4126 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4127 (xstormy16_save_dummy_frame_tos): Make static.
4128 (_initialize_xstormy16_tdep): Add declaration.
4129 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4130 * v850-tdep.c: Make local functions static.
4131 (_initialize_v850_tdep): Add declaration.
4132 * sparc-tdep.c: Make local functions static.
4133 (_initialize_sparc_tdep): Add declaration.
4134 * sh-tdep.c: Make local functions static.
4135 (_initialize_sh_tdep): Add declaration.
4136 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4137 * s390-tdep.c: Make local functions static.
4138 (_initialize_s390_tdep): Add declaration.
4139 * dbxread.c (find_stab_function_addr): Make static.
4140 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4141 * ocd.c (_initialize_remote_ocd): Add declaration.
4142 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4143 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4144 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4145 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4146 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4147 * remote-array.c (_initialize_array): Add declaration.
4148 (_initialize_remote_monitors): Add declaration.
4149 * remote-mips.c: Make local functions static.
4150 (_initialize_remote_mips): Add declaration.
4151 * mcore-tdep.c: Make all local functions static.
4152 (_initialize_mcore_tdep): Add declaration.
4153 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4154 * abug-rom.c (_initialize_abug_rom): Add declaration.
4155 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4156 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4157 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4158 * remote-est.c (_initialize_est): Add declaration.
4159 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4160 (m68hc11_call_dummy_address): Make static.
4161 * ia64-tdep.c: Make local functions static.
4162 (_initialize_ia64_tdep): Add declaration.
4163 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4164 * monitor.c (monitor_wait_filter): Make static.
4165 (_initialize_remote_monitors): Add declaration.
4166 * remote-hms.c (_initialize_remote_hms): Add declaration.
4167 * remote-e7000.c (fetch_regs_from_dump): Make static.
4168 (expect_n): Make static.
4169 (_initialize_remote_e7000): Add declaration.
4170 * ser-e7kpc.c: Always include "defs.h".
4171 (_initialize_ser_e7000pc): Add declaration.
4172 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4173 * cris-tdep.c: Make all but one function static.
4174 (_initialize_cris_tdep): Add declaration.
4175 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4176 * solib.c (update_solib_list): Make static.
4177 (_initialize_solib): Add declaration.
4178 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4179 (_initialize_avr_tdep): Add declaration.
4180 * remote-rdi.c (voiddummy): Make static.
4181 (_initialize_remote_rdi): Add declaration.
4182 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4183 * remote-rdp.c (send_rdp): Make static.
4184 (_initialize_remote_rdp): Add declaration.
4185 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4186
4187 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4188
4189 * remote-fileio.c: Make ari happy.
4190
4191 2003-06-10 J. Brobecker <brobecker@gnat.com>
4192
4193 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4194 fetching the trailing bytes of the buffer we are about to write.
4195
4196 2003-06-10 Andrew Cagney <cagney@redhat.com>
4197
4198 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4199 * Makefile.in (remote-fileio.o): Update dependencies.
4200 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4201 include <setjmp.h>, or <sys/types.h> conditional on USG.
4202 (remote_fio_jmp_buf): Delete global variable.
4203
4204 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4205 Martin M. Hunt <hunt@redhat.com>
4206
4207 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4208 (SFILES): Add remote-fileio.c.
4209 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4210 dependencies for building remote.o.
4211 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4212 * remote-fileio.h: New header file defining remote File-I/O interface.
4213 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4214 static storage class.
4215 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4216 'F' packet.
4217 (_initialize_remote): Call initialize_remote_fileio().
4218 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4219 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4220 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4221 (captured_main): Initialize new ui_files.
4222 * ui-file.c: Add read and fgets input functions.
4223 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4224 (null_file_read): New function.
4225 (ui_file_read): New function.
4226 (set_ui_file_read): New function.
4227 (stdio_file_read): New function.
4228 * ui-file.h: New type ui_file_read_ftype.
4229 (set_ui_file_read): Declare.
4230 (ui_file_read): Declare.
4231
4232 2003-06-09 Andrew Cagney <cagney@redhat.com>
4233
4234 * frame.h (deprecated_unwind_get_saved_register): Rename
4235 generic_unwind_get_saved_register, update comments.
4236 * mips-tdep.c (mips_get_saved_register): Update.
4237 * frame.c (deprecated_unwind_get_saved_register): Update.
4238
4239 2003-06-09 Andrew Cagney <cagney@redhat.com>
4240
4241 * vax-tdep.c (vax_frame_locals_address): Delete function.
4242 (vax_gdbarch_init): Do not set frame_locals_address.
4243 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4244 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4245 * s390-tdep.c (s390_frame_args_address): Delete function.
4246 (s390_gdbarch_init): Do not set frame_args_address or
4247 frame_locals_address.
4248 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4249 (ns32k_gdbarch_init): Do not set frame_locals_address.
4250 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4251 (hppa_frame_locals_address): Delete function.
4252 (hppa_gdbarch_init): Do not set frame_args_address, or
4253 frame_locals_address.
4254 * arm-tdep.c (arm_frame_args_address): Delete.
4255 (arm_frame_locals_address): Delete.
4256 (arm_gdbarch_init): Do not set frame_args_address, or
4257 frame_locals_address.
4258
4259 2003-06-09 Andrew Cagney <cagney@redhat.com>
4260
4261 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4262 * gdbarch.h, gdbarch.c: Re-generate.
4263 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4264 * arch-utils.c (frame_num_args_unknown): Delete function.
4265 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4266 (frame_info): Use FRAME_NUM_ARGS_P.
4267 * arm-tdep.c (arm_frame_num_args): Delete function.
4268 (arm_gdbarch_init): Do not set frame_num_args.
4269 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4270 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4271 (hppa_gdbarch_init): Do not set frame_num_args.
4272 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4273 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4274 frame_num_args to default frame_num_args_unknown.
4275 * v850-tdep.c (v850_gdbarch_init): Ditto.
4276 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4277 * sh-tdep.c (sh_gdbarch_init): Ditto.
4278 * s390-tdep.c (s390_gdbarch_init): Ditto.
4279 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4280 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4281 * mips-tdep.c (mips_gdbarch_init): Ditto.
4282 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4283 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4284 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4285 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4286 * i386-tdep.c (i386_gdbarch_init): Ditto.
4287 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4288 * frv-tdep.c (frv_gdbarch_init): Ditto.
4289 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4290 * cris-tdep.c (cris_gdbarch_init): Ditto.
4291 * avr-tdep.c (avr_gdbarch_init): Ditto.
4292 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4293
4294 2003-06-09 Andrew Cagney <cagney@redhat.com>
4295
4296 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4297 (print_frame_args): Moved to "stack.c".
4298 * stack.c: Include "gdb_assert.h".
4299 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4300 (print_frame_args): Moved from "printcmd.c".
4301 * frame.h (print_frame_args): Delete declaration.
4302 * Makefile.in (stack.o): Update dependencies.
4303
4304 2003-06-08 Andrew Cagney <cagney@redhat.com>
4305
4306 * frame.c (get_prev_frame): Remove reference to
4307 frame_args_address_correct in comments.
4308 * frame-base.c (default_frame_args_address): Delete code
4309 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4310 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4311 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4312 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4313 (vax_frame_args_address_correct): Delete declaration.
4314
4315 2003-06-08 Andrew Cagney <cagney@redhat.com>
4316
4317 * gdbarch.sh (UNWIND_SP): Add.
4318 * gdbarch.h, gdbarch.c: Re-generate.
4319 * frame.c (frame_sp_unwind): New function.
4320 (get_frame_sp): New function.
4321 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4322 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4323 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4324 value.
4325 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4326 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4327
4328 2003-06-08 Andrew Cagney <cagney@redhat.com>
4329
4330 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4331 REMOTE_BREAKPOINT.
4332 * remote.c: Update.
4333 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4334 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4335 * config/m68k/tm-sun3.h: Update.
4336 * config/m68k/tm-m68klynx.h: Update.
4337 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4338
4339 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4340 trad_frame". Update comments.
4341 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4342 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4343 (trad_frame_register_value, trad_frame_prev_register): Update.
4344
4345 2003-06-08 Andrew Cagney <cagney@redhat.com>
4346
4347 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4348 from GCC's acinclude.m4.
4349 * configure.in: Check for getopt's delcaration.
4350 * aclocal.m4, config.in, configure: Re-generate.
4351 * main.c (error_init): Delete declaration.
4352 * defs.h (error_init): Declare.
4353 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4354 (rs6000_convert_from_func_ptr_addr): Make static.
4355 (_initialize_rs6000_tdep): Add declaration.
4356 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4357 (show_commands, set_verbose, show_history): Delete declaration.
4358 * top.h (set_verbose): Add declaration.
4359 (show_history, set_history, show_commands): Add declaration.
4360 (do_restore_instream_cleanup): Add declaration.
4361 * objc-lang.c (specialcmp): Make static.
4362 (print_object_command): Make static.
4363 (find_objc_msgsend): Make static.
4364 (find_objc_msgcall_submethod_helper): Make static.
4365 (find_objc_msgcall_submethod): Make static.
4366 (_initialize_objc_language): Add declaration.
4367 (find_implementation_from_class): Make static.
4368 (find_implementation): Make static.
4369 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4370 * objc-lang.h (lookup_struct_typedef): Add declaration.
4371 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4372 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4373 (do_restore_user_call_depth): Make static.
4374 (do_restore_instream_cleanup): Delete declaration.
4375 (dont_repeat): Delete declaration.
4376 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4377 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4378 * reggroups.c (_initialize_reggroup): Add declaration.
4379 * cp-support.c (_initialize_cp_support): Add declaration.
4380 * cp-abi.c (_initialize_cp_abi): Add declaration.
4381 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4382 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4383 (_initialize_gnu_v3_abi): Add declaration.
4384 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4385 (_initialize_gnu_v2_abi): Add declaration.
4386 * frame-base.c (_initialize_frame_base): Add declaration.
4387 * doublest.c (floatformat_from_length): Make static.
4388 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4389 * frame.c (create_sentinel_frame): Make static.
4390 (_initialize_frame): Add declaration.
4391 * top.c (do_catch_errors): Make static.
4392 (gdb_rl_operate_and_get_next_completion): Make static.
4393 * typeprint.c: Include "typeprint.h".
4394 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4395 (sentinel_frame_this_id): Make static.
4396 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4397 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4398 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4399 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4400 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4401 * maint.c (maintenance_print_architecture): Make static.
4402 * signals/signals.c (_initialize_signals): Add declaration.
4403 * std-regs.c (_initialize_frame_reg): Add declaration.
4404 * jv-exp.y (push_variable): ISO C definition.
4405 (push_qualified_expression_name): Ditto.
4406 * memattr.c (_initialize_mem): Add declaration.
4407 * remote.c (remote_check_watch_resources): Make static.
4408 (remote_stopped_by_watchpoint): Make static.
4409 (remote_stopped_data_address): Make static.
4410 * d10v-tdep.c (nr_dmap_regs): Make static.
4411 (a0_regnum): Make static.
4412 (d10v_frame_unwind_cache): Make static.
4413 (d10v_frame_p): Make static.
4414 * osabi.c (show_osabi): Make static.
4415 (_initialize_gdb_osabi): Add extern declaration.
4416 * gdbtypes.c (make_qualified_type): Make static.
4417 (safe_parse_type): Make static.
4418 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4419 * macrotab.c (macro_bcache_free): Make static.
4420 * interps.c (interp_set_quiet): Make static.
4421 (interpreter_exec_cmd): Make static.
4422 * stack.h (select_frame_command): New file.
4423 * stack.c: Include "stack.h".
4424 (select_frame_command_wrapper): Delete function.
4425 (select_frame_command): Make global.
4426 * infcall.c: Include "infcall.h".
4427 * linespec.c: Include "linespec.h".
4428 * symfile.c (sections_overlap): Make static.
4429 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4430 * charset.c (_initialize_charset): Add missing prototype.
4431 * regcache.c (init_legacy_regcache_descr): Make static.
4432 (do_regcache_xfree): Make static.
4433 (regcache_xfer_part): Make static.
4434 (_initialize_regcache): Add missing prototype.
4435 * breakpoint.c (parse_breakpoint_sals): Make static.
4436 (breakpoint_sals_to_pc): Make static.
4437 * interps.h (clear_interpreter_hooks): ISO C declaration.
4438 * Makefile.in (stack_h): Define.
4439 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4440 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4441
4442 2003-06-08 Andrew Cagney <cagney@redhat.com>
4443
4444 * Makefile.in (d10v-tdep.o): Update dependencies.
4445 (SFILES): Add trad-frame.c.
4446 (trad_frame_h): Define.
4447 (COMMON_OBS): Add trad-frame.o.
4448 (trad-frame.o): Specify dependencies.
4449 * d10v-tdep.c: Include "trad-frame.h".
4450 (saved_regs_unwinder): Delete function.
4451 (d10v_frame_prev_register): Use trad_frame_prev_register.
4452 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4453 trad_frame", delete "regs" and "prev_sp".
4454 (prologue_find_regs): Use trad-frame.
4455 * trad-frame.h, trad-frame.c: New files.
4456
4457 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4458
4459 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4460
4461 2003-06-07 Adam Fedor <fedor@gnu.org>
4462
4463 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4464 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4465 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4466 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4467 resolve_msgsend_super, resolve_msgsend_super_stret):
4468 Use it.
4469
4470 2003-06-07 Andrew Cagney <cagney@redhat.com>
4471
4472 * symfile.h: Re-indent, clean up comments.
4473
4474 2003-06-07 Andrew Cagney <cagney@redhat.com>
4475
4476 * inferior.h (deprecated_write_sp): Replace
4477 generic_target_write_sp.
4478 * regcache.c (deprecated_write_sp): Replace
4479 generic_target_write_sp.
4480 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4481 * vax-tdep.c (vax_gdbarch_init): Update.
4482 * v850-tdep.c (v850_gdbarch_init): Update.
4483 * sparc-tdep.c (sparc_gdbarch_init): Update.
4484 * sh-tdep.c (sh_gdbarch_init): Update.
4485 * s390-tdep.c (s390_gdbarch_init): Update.
4486 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4487 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4488 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4489 * mcore-tdep.c (mcore_gdbarch_init): Update.
4490 * m68k-tdep.c (m68k_gdbarch_init): Update.
4491 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4492 * ia64-tdep.c (ia64_gdbarch_init): Update.
4493 * h8300-tdep.c (h8300_gdbarch_init): Update.
4494 * frv-tdep.c (frv_gdbarch_init): Update.
4495 * cris-tdep.c (cris_gdbarch_init): Update.
4496 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4497
4498 2003-06-07 Andrew Cagney <cagney@redhat.com>
4499
4500 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4501 Assert that PC_REGNUM is valid.
4502 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4503
4504 2003-06-07 Andrew Cagney <cagney@redhat.com>
4505
4506 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4507 * gdbarch.h, gdbarch.c: Regenerate.
4508 * mn10300-tdep.c: Include "gdb_assert.h".
4509 (mn10300_read_fp): New function.
4510 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4511 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4512 * ia64-tdep.c: Include "gdb_assert.h".
4513 (ia64_read_fp): New function.
4514 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4515 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4516 * regcache.c (generic_target_read_sp): Delete function.
4517 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4518 * inferior.h (generic_target_read_sp): Delete declaration.
4519 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4520 generic_target_read_sp.
4521 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4522 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4523 * sh-tdep.c (sh_gdbarch_init): Ditto.
4524 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4525 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4526
4527 2003-06-07 Andrew Cagney <cagney@redhat.com>
4528
4529 * gdbarch.sh: Comment each field of startup_gdbarch.
4530 * gdbarch.h, gdbarch.c: Re-generate.
4531
4532 2003-06-07 Andrew Cagney <cagney@redhat.com>
4533
4534 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4535 * gdbarch.h, gdbarch.c: Re-generate.
4536 * regcache.c: Update comments on read_pc et.al.
4537 (generic_target_read_pc): Delete function.
4538 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4539 * inferior.h (generic_target_read_pc): Delete declaration.
4540 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4541 generic_target_read_pc.
4542 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4543 * sh-tdep.c (sh_gdbarch_init): Ditto.
4544 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4545 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4546
4547 2003-06-07 Andrew Cagney <cagney@redhat.com>
4548
4549 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4550 "index" with "special_local_sect". Use strcmp instead of STREQ.
4551 Append period to coments.
4552
4553 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4554
4555 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4556 (elfstab_offset_sections): Likewise.
4557 * gdb-stabs.h (stab_section_info): Likewise.
4558 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4559 * objfiles.c (objfile_relocate): Likewise.
4560 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4561 * remote.c (get_offsets): Likewise.
4562 (remote_cisco_objfile_relocate): Likewise.
4563 * somread.c (som_symfile_offsets): Likewise.
4564 * symfile.c (alloc_section_addr_info): New function.
4565 (build_section_addr_info_from_section_tab): Use it.
4566 (free_section_addr_info): Adjust.
4567 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4568 (syms_from_objfile): Allocate local_addr dynamically.
4569 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4570 dynamically.
4571 (add_symbol_file_command): Allocate sect_opts dynamically.
4572 (reread_symbols): Avoid use of SECT_OFF_MAX.
4573 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4574 (alloc_section_addr_info): Declare it.
4575 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4576 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4577 dynamically.
4578 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4579
4580 2003-06-06 Andrew Cagney <cagney@redhat.com>
4581
4582 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4583 (d10v_frame_unwind_cache): Do not set "return_pc".
4584
4585 2003-06-06 Michael Snyder <msnyder@redhat.com>
4586
4587 * h8300-tdep.c: Make tidy (long lines).
4588
4589 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4590
4591 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4592 to regcache_collect().
4593
4594 2003-06-05 J. Brobecker <brobecker@gnat.com>
4595
4596 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4597 pc_in_sigtramp multiarch method.
4598 (hppa_hpux_som_init_abi): Use it.
4599 (hppa_hpux_elf_init_abi): Likewise.
4600 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4601 macro has been multiarched.
4602 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4603 macro here, as hppa64 isn't multiarched yet.
4604
4605 2003-06-05 Andrew Cagney <cagney@redhat.com>
4606
4607 * Makefile.in (value_h): Add $(frame_h).
4608 * value.h: Include "frame.h".
4609 (struct value): Replace "frame_addr" with "frame_id".
4610 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4611 * values.c (allocate_value): Use VALUE_FRAME_ID.
4612 (value_copy): Use VALUE_FRAME_ID.
4613 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4614 * valops.c (value_assign): Update. Use frame_find_by_id.
4615
4616 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4617
4618 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4619 in each pass.
4620
4621 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4622
4623 * thread-db.c (check_event): For create/death event breakpoints,
4624 loop through all messages to ensure that we read the message
4625 corresponding to the breakpoint we are at.
4626
4627 2003-06-04 Michael Snyder <msnyder@redhat.com>
4628
4629 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4630
4631 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4632
4633 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4634 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4635 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4636 when handling .eh_frame sections.
4637
4638 2003-06-04 J. Brobecker <brobecker@gnat.com>
4639
4640 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4641 prepare_to_proceed procedure instead of the hppa-specific one.
4642 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4643
4644 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4645
4646 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4647 * config.in: Regenerated.
4648 * configure.in: Add test for syscall function and check for
4649 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4650 * configure: Regenerated.
4651 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4652 <sys/syscall.h>.
4653 (kill_lwp): New function that uses tkill syscall or
4654 uses kill, depending on whether threading model is nptl or not.
4655 All callers of kill() changed to use kill_lwp().
4656 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4657 see if all threads have already exited in the nptl model.
4658 (stop_and_resume_callback): New callback function used by the
4659 lin_lwp_wait thread exit handling code.
4660 (stop_wait_callback): Check for threads already having exited and
4661 delete such threads fromt the lwp list when discovered.
4662 (stop_callback): Don't assert retcode of kill call.
4663
4664 Roland McGrath <roland@redhat.com>
4665 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4666 nptl libthread_db.
4667
4668 2003-06-03 Richard Henderson <rth@redhat.com>
4669
4670 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4671 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4672 (alpha_sigtramp_frame_prev_register): Likewise.
4673 (alpha_heuristic_frame_prev_register): Likewise.
4674 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4675
4676 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4677 alpha-specific register id names.
4678 (alpha_mdebug_frame_unwind_cache): Likewise.
4679 (alpha_mdebug_frame_prev_register): Likewise.
4680
4681 2003-06-03 Richard Henderson <rth@redhat.com>
4682
4683 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4684 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4685 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4686 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4687 unwind routines.
4688 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4689 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4690 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4691
4692 * alpha-linux-tdep.c: Remove unnecessary includes.
4693 * Makefile.in (alpha-linux-tdep.o): Update.
4694
4695 2003-06-03 Richard Henderson <rth@redhat.com>
4696
4697 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4698 (alphabsd_fill_fpreg): Likewise.
4699
4700 2003-06-03 J. Brobecker <brobecker@gnat.com>
4701
4702 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4703 references to struct frame_info fields by calls to the equivalent
4704 accessors. Necessary now that frame_info is opaque.
4705
4706 2003-06-03 J. Brobecker <brobecker@gnat.com>
4707
4708 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4709 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4710 structure, field no longer exists.
4711
4712 2003-06-03 J. Brobecker <brobecker@gnat.com>
4713
4714 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4715 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4716
4717 2003-06-03 J. Brobecker <brobecker@gnat.com>
4718
4719 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4720 references to struct frame_info fields by calls to the equivalent
4721 accessors. Necessary now that frame_info is opaque.
4722
4723 2003-06-03 J. Brobecker <brobecker@gnat.com>
4724
4725 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4726 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4727 structure, field no longer exists.
4728
4729 2003-06-03 Theodore A. Roth <troth@openavr.org>
4730
4731 * remote.c (init_remote_state): Compute sizeof_g_packet by
4732 accumulation of the size of all registers instead of blindly using
4733 DEPRECATED_REGISTER_BYTES.
4734
4735 2003-06-03 Michael Snyder <msnyder@redhat.com>
4736
4737 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4738 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4739 for h8300sx.
4740
4741 2003-06-03 J. Brobecker <brobecker@gnat.com>
4742
4743 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4744 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4745
4746 2003-06-03 Andrew Cagney <cagney@redhat.com>
4747
4748 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4749 (sparc_convert_to_raw): Delete function.
4750 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4751 register_convert_to_virtual.
4752
4753 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4754
4755 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4756 layer if not dealing with a statically-linked threaded program.
4757
4758 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4759
4760 * solib.c (solib_open): Update comment to reflect actual search order.
4761
4762 2003-06-03 Andrew Cagney <cagney@redhat.com>
4763
4764 * frame.c (get_frame_memory_signed): New function.
4765 (get_frame_memory, get_frame_memory_unsigned): New function.
4766 (get_frame_arch): New function.
4767 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4768 (get_frame_memory, get_frame_unsigned_memory): Declare.
4769 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4770 get_frame_memory_unsigned and get_frame_arch.
4771 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4772
4773 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4774
4775 * MAINTAINERS (write after approval): Add myself.
4776
4777 2003-06-03 Jim Blandy <jimb@redhat.com>
4778
4779 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4780 elements of gregset_t are 64 bits each, but access registers
4781 are still 32 bits, so they're packed two per gregset_t
4782 element. Unpack/pack them properly.
4783
4784 2003-06-02 David Carlton <carlton@bactrian.org>
4785
4786 * linespec.c (find_methods): Break out code into
4787 add_matching_methods and add_constructors.
4788 (add_matching_methods): New.
4789 (add_constructors): Ditto.
4790
4791 2003-06-02 Andrew Cagney <cagney@redhat.com>
4792
4793 * sparc-tdep.c (sparc_print_registers): Delete call to
4794 REGISTER_CONVERTIBLE.
4795 (sparc_gdbarch_init): Do not set register_convertible.
4796 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4797 * frv-tdep.c (frv_gdbarch_init): Ditto.
4798 * cris-tdep.c (cris_gdbarch_init): Ditto.
4799
4800 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4801
4802 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4803 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4804 (syms_from_objfile): Ditto.
4805
4806 2003-06-03 Andreas Schwab <schwab@suse.de>
4807
4808 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4809 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4810
4811 2003-06-02 Richard Henderson <rth@redhat.com>
4812
4813 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4814 a member of all_reggroup.
4815
4816 2003-06-02 Richard Henderson <rth@redhat.com>
4817
4818 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4819 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4820 (alpha_lds, alpha_sts): New.
4821 (alpha_convert_register_p): Change from _register_convertible.
4822 (alpha_register_to_value): Change from _convert_to_virtual;
4823 restructure and fail for type sizes other than 4 or 8.
4824 (alpha_value_to_register): Similarly.
4825 (alpha_extract_return_value): Use alpha_sts.
4826 (alpha_store_return_value): Use alpha_lds.
4827 (alpha_gdbarch_init): Update hooks.
4828
4829 2003-06-02 Richard Henderson <rth@redhat.com>
4830
4831 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4832 regnum identifiers.
4833 (alpha_sigtramp_register_address): Likewise.
4834
4835 2003-06-02 Richard Henderson <rth@redhat.com>
4836
4837 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4838 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4839 * alpha-tdep.h: Declare them.
4840
4841 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4842 Remove zerobuf. Don't error on UNIQUE.
4843 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4844 (ALPHA_REGSET_UNIQUE): Provide default.
4845 (supply_gregset): Use alpha_supply_int_regs.
4846 (fill_gregset): Use alpha_fill_int_regs.
4847 (supply_fpregset): Use alpha_supply_fp_regs.
4848 (fill_fpregset): Use alpha_fill_fp_regs.
4849 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4850 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4851 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4852 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4853 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4854 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4855
4856 2003-06-02 Richard Henderson <rth@redhat.com>
4857
4858 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4859
4860 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4861 (alpha_store_return_value): Likewise.
4862
4863 2003-06-02 David Carlton <carlton@math.stanford.edu>
4864
4865 * block.c (contained_in): Add 'const' to arguments.
4866 (block_function): Ditto.
4867 * block.h: Update declarations for block_function and
4868 contained_in.
4869
4870 2003-06-02 David Carlton <carlton@math.stanford.edu>
4871
4872 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4873 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4874 * p-valprint.c (pascal_val_print): Ditto.
4875 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4876
4877 2003-06-02 Richard Henderson <rth@redhat.com>
4878
4879 * alpha-tdep.c (alpha_push_dummy_call): Use
4880 builtin_type_ieee_double_little instead of builtin_type_double.
4881
4882 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4883 sign-extension of 32-bit values.
4884 (alpha_store_return_value): Similarly.
4885
4886 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4887 (alpha_extract_return_value): Likewise.
4888 (alpha_store_return_value): Likewise.
4889
4890 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4891 (alpha_store_return_value): Error on IEEE Quad floats.
4892
4893 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4894 (alpha_extract_struct_value_address): Likewise.
4895 (alpha_store_return_value): Likewise.
4896 (alpha_store_struct_return): Remove.
4897 (alpha_gdbarch_init): Update hook registration to match.
4898
4899 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4900 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4901 macros where appropriate.
4902 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4903 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4904
4905 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4906 for SP, GP; void_func_ptr for PC; non-language-specific types
4907 for all others.
4908 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4909
4910 2003-06-02 Richard Henderson <rth@redhat.com>
4911
4912 * top.h (lim_at_start): Declare.
4913 * main.c (captured_main): Set it.
4914 * top.c (lim_at_start): Define.
4915 (command_loop): Use it instead of &environ.
4916 * event-top.c (command_handler): Likewise.
4917
4918 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4919
4920 * mipsnbsd-tdep.c: Update copyright years.
4921 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4922
4923 2003-06-01 Richard Henderson <rth@redhat.com>
4924
4925 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4926 (alpha-linux-tdep.o): Update dependencies.
4927 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4928 * alpha-mdebug-tdep.c: Remove unneeded includes.
4929
4930 2003-06-01 Richard Henderson <rth@redhat.com>
4931
4932 * alpha-tdep.c (alpha_register_reggroup_p): New.
4933 (alpha_gdbarch_init): Register it.
4934
4935 2003-06-02 Andrew Cagney <cagney@redhat.com>
4936
4937 * dwarfread.c: Eliminate "register"
4938 (decode_die_type): Eliminate assignment within "if".
4939 (struct_type, decode_array_element_type): Ditto.
4940 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4941 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4942 (decode_modified_type, completedieinfo): Ditto.
4943 * block.c: Eliminate "register".
4944 (blockvector_for_pc_sect): Eliminate assignment within "if".
4945 * cp-support.h (struct symbol): Opaque declaration.
4946 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4947
4948 2003-06-01 Richard Henderson <rth@redhat.com>
4949
4950 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4951 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4952
4953 2003-06-01 Adam Fedor <fedor@gnu.org>
4954
4955 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4956 * gdbarch.[ch]: Regenerate.
4957 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4958 (hppa_gdbarch_init): Set it in the gdbarch vector.
4959 * i386-tdep.c (i386_fetch_pointer_argument): New
4960 (i386_gdbarch_init): Set it into gdbarch.
4961 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4962 (rs6000_gdbarch_init): Set it in gdbarch.
4963 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4964 (sparc_gdbarch_init): Set it in gdbarch.
4965
4966 2003-06-01 Andrew Cagney <cagney@redhat.com>
4967
4968 * defs.h (extract_address): Delete declaration.
4969 * findvar.c (extract_address): Delete function.
4970 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4971 extract_address with the inline equivalent,
4972 extract_unsigned_integer.
4973 (xstormy16_extract_struct_value_address): Ditto.
4974 (xstormy16_pointer_to_address): Ditto.
4975 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4976 * v850-tdep.c (v850_push_arguments): Ditto.
4977 (v850_extract_return_value): Ditto.
4978 (v850_extract_struct_value_address): Ditto.
4979 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4980 (sparcnbsd_get_longjmp_target_64): Ditto.
4981 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4982 (get_longjmp_target): Ditto.
4983 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4984 (sh64_extract_struct_value_address): Ditto.
4985 (sh_push_arguments): Ditto.
4986 (sh64_push_arguments): Ditto.
4987 * remote-vxsparc.c (vx_read_register): Ditto.
4988 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4989 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4990 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4991 * mipsv4-nat.c (get_longjmp_target): Ditto.
4992 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4993 * mips-nat.c (get_longjmp_target): Ditto.
4994 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4995 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4996 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4997 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4998 * irix5-nat.c (get_longjmp_target): Ditto.
4999 * irix4-nat.c (get_longjmp_target): Ditto.
5000 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5001 (ia64_push_arguments): Ditto.
5002 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5003 * h8300-tdep.c (h8300_push_arguments): Ditto.
5004 (h8300_store_return_value): Ditto.
5005 (h8300_extract_struct_value_address): Ditto.
5006 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5007 (frv_push_arguments): Ditto.
5008 * avr-tdep.c (avr_pointer_to_address): Ditto.
5009 (avr_push_arguments): Ditto.
5010 * arm-tdep.c (arm_push_dummy_call): Ditto.
5011 (arm_get_longjmp_target): Ditto.
5012 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5013 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5014 (alpha_get_longjmp_target): Ditto.
5015
5016 * solib-irix.c (extract_mips_address): Inline extract_address,
5017 replacing it with extract_signed_integer.
5018 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5019 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5020 (first_link_map_member, open_symbol_file_object): Ditto.
5021 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5022 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5023 (LM_NEXT, LM_NAME): Ditto.
5024
5025 2003-06-01 Richard Henderson <rth@redhat.com>
5026
5027 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5028 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5029 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5030 (alpha_cannot_store_register): Likewise.
5031 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5032 * alpha-nat.c (supply_gregset): Likewise.
5033 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5034
5035 2003-06-01 Andrew Cagney <cagney@redhat.com>
5036
5037 * infcall.c (call_function_by_hand): Update comment on
5038 DEPRECATED_DUMMY_WRITE_SP.
5039
5040 * mips-tdep.c (mips_gdbarch_init): Do not set
5041 deprecated_dummy_write_sp.
5042 (mips_eabi_push_dummy_call): Set the SP register.
5043 (mips_o64_push_dummy_call): Set the SP register.
5044 (mips_o32_push_dummy_call): Set the SP register.
5045 (mips_n32n64_push_dummy_call): Set the SP register.
5046
5047 2003-06-01 Richard Henderson <rth@redhat.com>
5048
5049 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5050 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5051 (supply_gregset): Likewise.
5052 * alpha-tdep.c (alpha_store_return_value): Likewise.
5053 (alpha_get_longjmp_target): Likewise.
5054 (alpha_register_name): Constify array.
5055 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5056 deprecated_register_size, deprecated_register_bytes,
5057 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5058 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5059 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5060
5061 2003-06-01 Richard Henderson <rth@redhat.com>
5062
5063 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5064 from arg_reg_buffer to regcache to avoid double conversion.
5065
5066 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5067
5068 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5069 SP_REGNUM.
5070 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5071 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5072
5073 2003-06-01 Richard Henderson <rth@redhat.com>
5074
5075 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5076 (decode_frame_entry): Set it. Skip FDE augmentation.
5077
5078 2003-06-01 Richard Henderson <rth@redhat.com>
5079
5080 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5081 not overlapping PC_REGNUM.
5082
5083 2003-06-01 Richard Henderson <rth@redhat.com>
5084
5085 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5086 alpha_push_arguments. Don't dump argument register data to
5087 the target stack. Fix float and 128-bit long double semantics.
5088 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5089 (alpha_fix_call_dummy): Remove.
5090 (alpha_call_dummy_words): Remove.
5091 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5092
5093 2003-06-01 Richard Henderson <rth@redhat.com>
5094
5095 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5096
5097 2003-06-01 Andrew Cagney <cagney@redhat.com>
5098
5099 * mips-tdep.c (is_mips16_addr): New function.
5100 (make_mips16_addr, unmake_mips16_addr): New functions.
5101 (pc_is_mips16, mips_fetch_instruction): Use.
5102 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5103 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5104 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5105 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5106 TARGET_MIPS.
5107 * config/mips/tm-mips.h: Update copyright.
5108 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5109 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5110 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5111 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5112 (TM_PRINT_INSN_MACH): Delete.
5113 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5114
5115 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5116 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5117 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5118 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5119 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5120 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5121 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5122 mips*-*-riscos* and mips*-*-sysv* onto mips.
5123 * config/mips/mips64.mt: New file.
5124 * config/mips/mips.mt: New file.
5125 * config/mips/littlemips.mt: Delete file.
5126 * config/mips/decstation.mt: Delete file.
5127 * config/mips/vr4300el.mt: Delete file.
5128 * config/mips/vr5000el.mt: Delete file.
5129 * config/mips/vr5000.mt: Delete file.
5130 * config/mips/vr4100.mt: Delete file.
5131 * config/mips/vr4xxxel.mt: Delete file.
5132 * config/mips/vr4300.mt: Delete file.
5133 * config/mips/vr4xxx.mt: Delete file.
5134 * config/mips/bigmips.mt: Delete file.
5135 * config/mips/bigmips64.mt: Delete file.
5136 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5137 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5138 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5139 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5140 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5141 "tm-bigmips.h".
5142 * config/mips/tm-irix3.h: Ditto.
5143 * config/mips/tm-mipsv4.h: Ditto.
5144 * config/mips/tm-embed.h: Ditto.
5145 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5146 "tm-bigmips64.h".
5147 * config/mips/tm-vr5000el.h: Delete file.
5148 * config/mips/tm-tx39l.h: Delete file.
5149 * config/mips/tm-vr4300el.h: Delete file.
5150 * config/mips/tm-vr4xxxel.h: Delete file.
5151 * config/mips/tm-vr4300.h: Delete file.
5152 * config/mips/tm-vr4100.h: Delete file.
5153 * config/mips/tm-vr4xxx.h: Delete file.
5154 * config/mips/tm-vr5000.h: Delete file.
5155 * config/mips/tm-embedl64.h: Delete file.
5156 * config/mips/tm-embedl.h: Delete file.
5157 * config/mips/tm-embed64.h: Delete file.
5158 * config/mips/tm-bigmips64.h: Delete file.
5159 * config/mips/tm-bigmips.h: Delete file.
5160
5161 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5162
5163 Fix gdb/1216.
5164 * shnbsd-nat.c: Include "sh-tdep.h".
5165
5166 From Richard Henderson <rth@redhat.com>:
5167 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5168
5169 2003-05-31 Andrew Cagney <cagney@redhat.com>
5170
5171 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5172 forward declaration.
5173 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5174 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5175 (mips_find_saved_regs): Use set_reg_offset.
5176 (mips_frame_init_saved_regs): Delete function.
5177 (mips_pop_frame): Call mips_find_saved_regs instead of
5178 DEPRECATED_FRAME_INIT_SAVED_REGS.
5179
5180 2003-05-31 Andrew Cagney <cagney@redhat.com>
5181
5182 * mips-tdep.c (mips_gdbarch_init): Do not set
5183 deprecated_max_register_raw_size, register_virtual_size, and
5184 deprecated_max_register_virtual_size.
5185
5186 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5187
5188 * i386-tdep.c: Include "dwarf2-frame.h".
5189 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5190 * Makefile.in (i386-tdep.o): Update dependencies.
5191
5192 * dwarf2-frame.c, dwarf2-frame.h: New files.
5193 * Makefile.in (SFILES): Add dwarf2-frame.c.
5194 (dwarf2_frame_h): Define.
5195 (COMMON_OBS): Add dwarf2-frame.o.
5196 (dwarf2-frame.o): Add dependencies.
5197
5198 2003-05-31 Andreas Jaeger <aj@suse.de>
5199
5200 * x86-64-linux-nat.c: Fix comment.
5201
5202 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5203
5204 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5205 function signature.
5206
5207 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5208 have a sigcontext_addr handler.
5209 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5210 sigcontext_addr handler.
5211
5212 2003-05-31 Andrew Cagney <cagney@redhat.com>
5213
5214 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5215 (print_fp_register_row): Replace do_fp_register_row.
5216 (mips_print_fp_register): Add "file" and "frame" parameters.
5217 (mips_print_register): Add "file" and "frame" parameters.
5218 (mips_print_registers_info): Replace mips_do_registers_info.
5219 (mips_gdbarch_init): Set print_registers_info instead of
5220 deprecated_do_registers_info.
5221 (mips_read_fp_register_single): Add "frame" parameter.
5222 (mips_read_fp_register_double): Add "frame" parameter.
5223
5224 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5225
5226 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5227 Fixes a bug where GDB would print the wrong register names for
5228 targets without SSE.
5229
5230 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5231 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5232 registers.
5233
5234 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5235 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5236 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5237 TDEP->sc_sp_offset.
5238
5239 From Michal Ludvig <mludvig@suse.cz>:
5240 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5241 and `sc_num_regs'.
5242 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5243 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5244 I386_ST0_REGNUM): Move here from...
5245 * i386-tdep.c: ... here.
5246 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5247 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5248 registers if possible.
5249 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5250 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5251 Remove variables.
5252 (i386bsd_sc_reg_offset): New variable.
5253 (i386bsd_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 (i386fbsd_sc_reg_offset): New variable.
5257 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5258 TDEP->sc_num_regs.
5259 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5260 variables.
5261 (i386fbsd4_sc_reg_offset): New variable.
5262 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5263 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5264 TDEP->sc_sp_offset.
5265 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5266 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5267 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5268 Remove variables.
5269 (i386nbsd_sc_reg_offset): New variable.
5270 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5271 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5272 TDEP->sc_sp_offset.
5273 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5274 Remove variables.
5275 (i386obsd_sc_reg_offset): New variable.
5276 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5277 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5278 TDEP->sc_sp_offset.
5279 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5280 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5281 for frame pointer offset in `struct sigcontext'.
5282
5283 2003-05-31 Andrew Cagney <cagney@redhat.com>
5284
5285 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5286 architecture methods call_dummy_words, sizeof_call_dummy_words,
5287 push_return_address, store_struct_return, and fix_call_dummy. Set
5288 push_dummy_call instead of deprecated_push_arguments.
5289 (mips_store_struct_return): Delete function.
5290 (mips_fix_call_dummy): Delete function.
5291 (mips_push_return_address): Delete function.
5292 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5293 RA_REGNUM and T9_REGNUM.
5294 (mips_n32n64_push_dummy_call): Ditto for
5295 mips_n32n64_push_arguments.
5296 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5297 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5298
5299 2003-05-31 Andrew Cagney <cagney@redhat.com>
5300
5301 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5302 "dummy_addr" to "bp_addr".
5303 * infcall.c (call_function_by_hand): Pass "funaddr" to
5304 gdbarch_push_dummy_call.
5305 * gdbarch.h, gdbarch.c: Re-generate.
5306 * i386-tdep.c (i386_push_dummy_call): Update.
5307 * arm-tdep.c (arm_push_dummy_call): Update.
5308 * d10v-tdep.c (d10v_push_dummy_call): Update.
5309
5310 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5311
5312 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5313 variable declarations.
5314 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5315 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5316 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5317 x86_64_init_frame_pc, x86_64_init_frame_pc,
5318 x86_64_function_has_prologue): Remove prototypes.
5319 (X86_64_NUM_GREGS): New define.
5320 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5321 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5322 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5323 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5324 XMM1_REGNUM): Remove defines.
5325 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5326 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5327 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5328 X86_64_XMM1_REGNUM): New defines.
5329 (struct x86_64_register_info): Renamed from `struct
5330 register_info'. Remove `size' member.
5331 (x86_64_register_info_table): Remove variable.
5332 (x86_64_register_info): New variable.
5333 (X86_64_NUM_REGS): New define.
5334 (X86_64_NUM_GREGS): Remove define.
5335 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5336 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5337 Remove variables.
5338 (x86_54_dwarf2_reg_to_regnum): Remove function.
5339 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5340 (x86_64_dwarf_reg_to_regnum): New function.
5341 (x86_64_register_name): Rewrite.
5342 (x86_64_register_raw_size): Remove function.
5343 (x86_64_register_byte_table): Remove variable.
5344 (x86_64_register_byte): Remove function.
5345 (x86_64_register_virtual_type): Remove function.
5346 (x86_64_register_type): New function.
5347 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5348 x86_64_register_convert_to_raw): Remove functions.
5349 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5350 (x86_64_use_struct_convention): Make static. Adjust for renamed
5351 defines.
5352 (x86_64_frame_init_saved_regs): Remove function.
5353 (x86_64_push_arguments): Make static. Change to accept a regcache
5354 as argument.
5355 (x86_64_store_return_value, x86_64_extract_return_value): Make
5356 static. Rewrite based on i386 counterparts.
5357 (x86_64_push_dummy_call): New function.
5358 (X86_64_NUM_SAVED_REGS): New define.
5359 (x86_64_register_number): Remove function.
5360 (x86_64_store_struct_return): Remove function.
5361 (x86_64_frameless_function_invocation,
5362 x86_64_function_has_prologue): Remove functions.
5363 (PROLOG_BUFSIZE): Remove define.
5364 (struct x86_64_frame_cache): New structure.
5365 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5366 x86_64_frame_cache, x86_64_frame_this_id,
5367 x86_64_frame_prev_register, x86_64_frame_p,
5368 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5369 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5370 functions.
5371 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5372 variables.
5373 (x86_64_skip_prologue): Rewrite in terms of
5374 x86_64_analyze_prologue.
5375 (x86_64_frame_base_address): New function.
5376 (x86_64_frame_base): New variable.
5377 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5378 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5379 set deprecated_fp_regnum, deprecated_register_size,
5380 deprecated_register_bytes, register_raw_size, register_byte,
5381 register_virtual_type, register_convertiable,
5382 register_convert_to_virtual, convert_to_raw,
5383 deprecated_get_saved_register, deprecated_target_read_fp,
5384 deprecated_push_arguments, deprecated_push_return_address,
5385 deprecated_pop_frame, deprecated_store_struct_return,
5386 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5387 frameless_function_invocation, deprecated_frame_saved_pc,
5388 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5389 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5390 deprecated_init_frame_pc and virtual_frame_pointer. Call
5391 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5392 and x86_64_frame_p. Call frame_base_set_default to register
5393 x86_64_frame_base.
5394 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5395 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5396 (_initialize_x86_64_tdep): Remove function.
5397 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5398 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5399 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5400 define.
5401 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5402 (x86_64_linux_sigcontext_addr): Rewrite.
5403 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5404 x86_64_linux_frame_saved_pc): Remove functions.
5405 (x86_64_linux_pc_in_sigtramp): Renamed from
5406 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5407 trampoline.
5408 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5409 Remove_functions.
5410 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5411 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5412 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5413 (x86_64_regmap): Rename to regmap.
5414 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5415 x86_64_num_gregs.
5416 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5417 x86_64_regmap.
5418 (x86_64_fxsave_offset): Remove function.
5419 (supply_fpregset): Simply call x86_64_supply_fxsave.
5420 (fill_fpregset): Simply call x86_64_fill_fxsave.
5421 (fetch_inferior_registers, store_inferior_registers): Avoid
5422 asignment in if-statement.
5423 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5424 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5425 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5426 (fetch_core_registers): Remove function.
5427 (linux_elf_core_fns): Remove.
5428 (offsetoff): Don't define.
5429 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5430 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5431 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5432 add core-regset.o.
5433 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5434 protection against multiple includes instead of NM_X86_64_h. Add
5435 various comments. Include "config/nm-linux.h". Don't include
5436 <signal.h>.
5437 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5438 GET_THREAD_SIGNALS): Remove defines.
5439 (x86_64_register_u_addr, kernel_u_size,
5440 lin_thread_get_thread_signals): Remove prototypes.
5441 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5442 [HAVE_LINK_H]: Don't include "solib.h".
5443 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5444 * config/i386/tm-x86-64linux.h: Fix comments.
5445 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5446 x86-64-tdep.o): Update dependencies.
5447
5448 2003-05-30 Andrew Cagney <cagney@redhat.com>
5449
5450 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5451 Change parameter type to a "struct regcache *".
5452
5453 * gdbarch.sh: Regardless of the multi-arch level, always define
5454 the macro when not already defined.
5455 * gdbarch.h, gdbarch.c: Re-generate.
5456
5457 2003-05-30 Richard Henderson <rth@redhat.com>
5458
5459 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5460 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5461 (alpha_mdebug_frame_this_id): Likewise.
5462 (alpha_mdebug_frame_prev_register): Likewise.
5463 (alpha_mdebug_frame_base_address): Likewise.
5464 (alpha_mdebug_frame_locals_address): Likewise.
5465 (alpha_mdebug_frame_args_address): Likewise.
5466 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5467 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5468 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5469 loop increment.
5470 (alpha_heuristic_frame_this_id): Make static.
5471 (alpha_heuristic_frame_prev_register): Likewise.
5472 (alpha_heuristic_frame_base_address): Likewise.
5473 * alpha-tdep.h: Update.
5474
5475 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5476
5477 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5478 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5479 defenitions.
5480 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5481 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5482 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5483 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5484 I386_ST0_REGNUM): New defines.
5485 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5486 codestream_get): Remove define.
5487 (codestream_next_addr, condestream_addr, condestream_buf,
5488 codestream_off, codestream_cnt): Remove variables.
5489 (codestream_fill, codestream_seek, codestream_read): Remove
5490 functions.
5491 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5492 functionality.
5493 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5494 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5495 i386_frame_saved_pc, i386_saved_pc_after_call,
5496 i386_frame_num_args, i386_frame_init_saved_regs,
5497 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5498 i386_push_arguments): Remove functions.
5499 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5500 functionality. Use i386_analyze_prologue instead of
5501 i386_get_frame_setup.
5502 (I386_NUM_SAVED_REGS): New define.
5503 (struct i386_frame_cache): New structure.
5504 (i386_alloc_frame_cache, i386_analyze_struct_return,
5505 i386_skip_probe, i386_analyze_frame_setup,
5506 i386_analyze_register_saves, i386_analyze_prologue,
5507 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5508 i386_frame_prev_register, i386_sigtramp_frame_cache,
5509 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5510 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5511 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5512 New functions.
5513 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5514 New variables.
5515 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5516 I386_EAX_REGNUM and I386_EDX_REGNUM.
5517 (i386_extract_return_value, i386_store_return_value): Use
5518 I386_ST0_REGNUM where appropriate.
5519 (i386_extract_struct_value_address): Rewrite to use extract_address.
5520 (i386_svr4_pc_in_sigtramp): Add comment.
5521 (i386_svr4_sigcontext_addr): Rewrite.
5522 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5523 TDEP->sc_sp_offset.
5524 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5525 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5526 of new defines. Set push_dummy_call, don't set
5527 deprecated_push_arguments, deprecated_push_return_address,
5528 deprecated_pop_frame. Don't set parm_boundary. Don't set
5529 deprecated_frame_chain, deprecated_frame_saved_pc,
5530 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5531 save_dummy_frame_tos, unwind_pc. Call
5532 frame_unwind_append_predicate and frame_base_set_default. Don't
5533 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5534 Don't set frameless_function_invocation. Don't set
5535 deprecated_register_bytes, deprecated_register_size,
5536 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5537 * i386-linux-tdep.c: Fix formatting in some comments.
5538 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5539 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5540 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5541 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5542 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5543 redundant parentheses.
5544 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5545 (i386_linux_sigcontext_addr): Use it. Rewrite.
5546 (find_minsym_and_objfile): Change name of second argument.
5547 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5548 changed. Use frame_pc_unwind instead of
5549 DEPRECATED_SAVED_PC_AFTER_CALL.
5550 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5551 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5552 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5553 unwinder.
5554 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5555 "dummy-frame.h".
5556 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5557 (_initialize_i386_cygwin_tdep): New prototype.
5558 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5559 deprecated_frame_chain_valid.
5560 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5561 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5562 Rely on the SVR4 defaults.
5563 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5564 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5565
5566 2003-05-30 Andrew Cagney <cagney@redhat.com>
5567
5568 * infcall.c (call_function_by_hand): Always call
5569 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5570
5571 2003-05-30 Richard Henderson <rth@redhat.com>
5572
5573 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5574 increment.
5575
5576 2003-05-29 Jim Blandy <jimb@redhat.com>
5577
5578 Use gdbarch methods for solib stuff on PowerPC Linux.
5579 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5580 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5581 show through.
5582 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5583 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5584 giving the same effect as the #definitions above.
5585
5586 2003-05-29 Adam Fedor <fedor@gnu.org>
5587
5588 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5589 (find_implementation_from_class): Replace it with the standard
5590 case i.e. do nothing.
5591
5592 2003-05-29 Richard Henderson <rth@redhat.com>
5593
5594 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5595 (alpha_linux_sigtramp_offset): Use it. Make static.
5596 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5597 update for new frame model.
5598 * alpha-mdebug-tdep.c: New file.
5599 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5600 (alpha_osf1_init_abi): Install it.
5601 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5602 (linked_proc_desc_table): Remove.
5603 (alpha_frame_past_sigtramp_frame): Remove.
5604 (alpha_dynamic_sigtramp_offset): Remove.
5605 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5606 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5607 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5608 (push_sigtramp_desc): Remove.
5609 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5610 (alpha_cannot_store_register): Likewise.
5611 (alpha_sigcontext_addr): Remove.
5612 (alpha_find_saved_regs): Remove.
5613 (alpha_frame_init_saved_regs): Remove.
5614 (alpha_init_frame_pc_first): Remove.
5615 (read_next_frame_reg): Remove.
5616 (alpha_frame_saved_pc): Remove.
5617 (alpha_saved_pc_after_call): Remove.
5618 (temp_proc_desc, temp_saved_regs): Remove.
5619 (alpha_about_to_return): Remove.
5620 (cached_proc_desc): Remove.
5621 (alpha_frame_chain): Remove.
5622 (alpha_print_extra_frame_info): Remove.
5623 (alpha_init_extra_frame_info): Remove.
5624 (alpha_frame_locals_address): Remove.
5625 (alpha_frame_args_address): Remove.
5626 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5627 (alpha_push_dummy_frame): Remove.
5628 (alpha_pop_frame): Remove.
5629 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5630 (alpha_read_insn): New.
5631 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5632 for different insn encodings.
5633 (alpha_in_lenient_prologue): Remove.
5634 (struct alpha_sigtramp_unwind_cache): New.
5635 (alpha_sigtramp_frame_unwind_cache): New.
5636 (alpha_sigtramp_register_address): New.
5637 (alpha_sigtramp_frame_this_id): New.
5638 (alpha_sigtramp_frame_prev_register): New.
5639 (alpha_sigtramp_frame_unwind): New.
5640 (alpha_sigtramp_frame_p): New.
5641 (struct alpha_heuristic_unwind_cache): New.
5642 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5643 don't count nop insns that occur between functions.
5644 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5645 heuristic_proc_desc, but without the mdebug wrapping.
5646 (alpha_heuristic_frame_this_id): New.
5647 (alpha_heuristic_frame_prev_register): New.
5648 (alpha_heuristic_frame_unwind): New.
5649 (alpha_heuristic_frame_p): New.
5650 (alpha_heuristic_frame_base_address): New.
5651 (alpha_heuristic_frame_base): New.
5652 (alpha_unwind_dummy_id): New.
5653 (alpha_unwind_pc): New.
5654 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5655 frame related deprecated initializations; install replacements.
5656 (alpha_dump_tdep): Remove.
5657 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5658 (alpha_read_insn, alpha_after_prologue,
5659 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5660 alpha_heuristic_frame_prev_register,
5661 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5662 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5663 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5664 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5665
5666 2003-05-29 Andrew Cagney <cagney@redhat.com>
5667
5668 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5669 dependant on the availability of ASSERT_FUNCTION.
5670 (ASSERT_FUNCTION): Do not define when there is no function name.
5671
5672 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5673
5674 From Jimi X <jimix@watson.ibm.com>:
5675 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5676
5677 2003-05-28 Jim Blandy <jimb@redhat.com>
5678
5679 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5680 argument to ptrace to int; the system headers should give it the
5681 right type, and pointers don't fit in ints on powerpc64-*-*.
5682
5683 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5684
5685 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5686 DW_TAG_catch_block.
5687
5688 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5689
5690 * stabsread.c (dbx_lookup_type): Make static.
5691 (read_type): Ditto.
5692 (add_undefined_type): Ditto.
5693 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5694 not export.
5695
5696 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5697
5698 * hpread.c (hpread_has_name): Make static.
5699 (hpread_psymtab_to_symtab): Ditto.
5700 (file_exists): Ditto.
5701 (hpread_call_pxdb): Ditto.
5702 (hpread_pxdb_needed): Ditto.
5703 (hpread_quick_traverse): Ditto.
5704 (hpread_get_header): Ditto.
5705 (hpread_get_lntt): Ditto.
5706 (hpread_get_slt): Ditto.
5707 (class_of): Ditto.
5708
5709 2003-05-25 Andreas Schwab <schwab@suse.de>
5710
5711 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5712 stack_align and deprecated_extra_stack_alignment_needed.
5713 (m68k_stack_align): Delete.
5714
5715 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5716 (m68k_register_virtual_size): Likewise.
5717 (altos_skip_prologue): Remove obsolete function.
5718 (isi_frame_num_args): Likewise.
5719 (news_frame_num_args): Likewise.
5720 (m68k_fix_call_dummy): Make static.
5721 (m68k_push_dummy_frame): Likewise.
5722 (m68k_pop_frame): Likewise.
5723 (m68k_skip_prologue): Likewise.
5724 (m68k_frame_init_saved_regs): Likewise.
5725 (m68k_saved_pc_after_call): Likewise.
5726 (m68k_get_longjmp_target): Make multi-arch.
5727 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5728 structure. Register m68k_get_longjmp_target if enabled.
5729 * m68k-tdep.h (struct gdbarch_tdep): Define.
5730 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5731
5732 * Makefile.in (config.status): Also depend on configure.tgt
5733 and configure.host.
5734 (m68klinux-tdep.o): Update dependencies.
5735 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5736 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5737 (M68K_LINUX_JB_PC): Define.
5738 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5739 and take additional parameter.
5740 (m68k_linux_sigtramp_saved_pc): Update.
5741 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5742 m68k_linux_pc_in_sigtramp, in_plt_section,
5743 find_solib_trampoline_target.
5744 * config/m68k/tm-linux.h: Don't include any tm headers.
5745 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5746 (JB_ELEMENT_SIZE): Likewise.
5747 (JB_PC): Likewise.
5748 (GET_LONGJMP_TARGET): Likewise.
5749 (IN_SIGTRAMP): Likewise.
5750 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5751
5752 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5753
5754 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5755 (sparc32_push_arguments): Re-implement by calling
5756 sparc32_do_push_arguments.
5757
5758 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5759
5760 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5761 SPARC_O1_REGNUM): New defines.
5762 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5763 (sparc32_store_return_value): New function.
5764 (sparc_extract_struct_value_address): Rewrite to operate on a
5765 regcache.
5766 (sparc_gdbarch_init): Don't set
5767 deprecated_extract_struct_value_address. Set
5768 extract_struct_value_address instead. Don't set
5769 deprecated_extract_return_value and deprecated_store_return_value
5770 for 32-bit targets. Set extract_return_value and
5771 store_return_value instead.
5772 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5773 DEPRECTAED_EXTRACT_RETURN_VALUE,
5774 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5775 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5776 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5777 (sparc_store_return_value): Remove prototype.
5778 (sparc32_store_return_value): New prototype.
5779 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5780 Adjust prototypes.
5781
5782 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5783
5784 * sparcnbsd-tdep.c: Include "gdb_string.h".
5785
5786 2003-05-23 Andrew Cagney <cagney@redhat.com>
5787
5788 * p-valprint.c (pascal_val_print): Replace extract_address with
5789 the inline equivalent extract_unsigned_integer.
5790 * jv-valprint.c (java_value_print): Ditto.
5791 * ada-valprint.c (ada_val_print_1): Ditto.
5792 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5793
5794 2003-05-23 Theodore A. Roth <troth@openavr.org>
5795
5796 * blockframe.c (frameless_look_for_prologue): Remove unused
5797 after_prologue variable.
5798
5799 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5800
5801 * blockframe.c (get_pc_function_start): Rewrite to avoid
5802 asignments in if-statements.
5803
5804 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5805
5806 Committed by Elena Zannoni <ezannoni@redhat.com>.
5807 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5808 files, don't relocate absolute symbols (and do use mst_abs).
5809
5810 2003-05-23 Andrew Cagney <cagney@redhat.com>
5811
5812 * objc-lang.c: Include "gdb_assert.h".
5813 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5814 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5815 (gdb_check, gdb_check_fatal): Delete functions.
5816 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5817 gdb_assert.
5818 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5819 * Makefile.in (objc-lang.o): Update dependencies.
5820
5821 2003-05-22 Ian Lance Taylor <ian@airs.com>
5822
5823 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5824 with fprintf_filtered, not fprintf_unfiltered.
5825
5826 2003-05-22 Andrew Cagney <cagney@redhat.com>
5827
5828 * stack.c (frame_info): Inline extract_address, replacing it with
5829 extract_unsigned_integer.
5830 * findvar.c (unsigned_pointer_to_address): Ditto.
5831 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5832 * dwarf2expr.c (dwarf2_read_address): Ditto.
5833 * frame.c (frame_pc_unwind): Update comment.
5834 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5835
5836 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5837
5838 * infptrace.c (detach): Call print_sys_errmsg rather than
5839 perror_with_name to issue warning message when errno is non-zero
5840 after calling ptrace detach.
5841
5842 2003-05-21 J. Brobecker <brobecker@gnat.com>
5843
5844 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5845 macro definitions from here...
5846 * hppa-tdep.c: ...to there.
5847
5848 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5849
5850 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5851 register_ptrace_addr(). Fix all callers.
5852
5853 2003-05-21 Andreas Schwab <schwab@suse.de>
5854
5855 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5856 dependencies.
5857 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5858 end.
5859 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5860 (_initialize_m68k_linux_tdep): New function.
5861 (m68k_linux_frame_saved_pc): Make static.
5862 (m68k_linux_extract_return_value): Likewise.
5863 (m68k_linux_store_return_value): Likewise.
5864 (m68k_linux_extract_struct_value_address): Likewise.
5865 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5866 Remove.
5867 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5868 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5869 (DEPRECATED_FRAME_SAVED_PC): Remove.
5870
5871 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5872
5873 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5874 regset numbering rather than our own.
5875
5876 2003-05-19 David Carlton <carlton@bactrian.org>
5877
5878 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5879
5880 2003-05-19 David Carlton <carlton@bactrian.org>
5881
5882 Partial fix for PR c++/827.
5883 * cp-support.h: Include symtab.h.
5884 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5885 * cp-namespace.c: Update contributors.
5886 (cp_lookup_symbol_nonlocal): New.
5887 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5888 (lookup_symbol_file): Ditto.
5889 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5890 * block.h: Declare block_scope, block_using, block_global_block.
5891 * block.c (block_scope): New.
5892 (block_using, block_global_block): Ditto.
5893 * Makefile.in (cp_support_h): Depend on symtab_h.
5894 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5895
5896 2003-05-19 David Carlton <carlton@bactrian.org>
5897
5898 * language.h (struct language_defn): Add 'la_value_of_this'
5899 and 'la_lookup_symbol_nonlocal' members.
5900 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5901 lookup_symbol_static, lookup_symbol_global,
5902 lookup_symbol_aux_block.
5903 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5904 if we should search fields of this and how to do static/global
5905 lookup.
5906 (lookup_symbol_aux_block): Make extern.
5907 (basic_lookup_symbol_nonlocal): New.
5908 (lookup_symbol_static, lookup_symbol_global): Ditto.
5909 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5910 'la_lookup_symbol_nonlocal' members.
5911 * c-lang.c (c_language_defn, cplus_language_defn)
5912 (asm_language_defn, minimal_language_defn): Ditto.
5913 * jv-lang.c (java_language_defn): Ditto.
5914 * language.c (unknown_language_defn, auto_language_defn)
5915 (local_language_defn): Ditto.
5916 * m2-lang.c (m2_language_defn): Ditto.
5917 * objc-lang.c (objc_language_defn): Ditto.
5918 * scm-lang.c (scm_language_defn): Ditto.
5919 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5920 * p-lang.c (pascal_language_defn): Ditto for both.
5921 * Makefile.in (f-lang.o): Depend on value_h.
5922 (p-lang.o): Ditto.
5923
5924 2003-05-19 David Carlton <carlton@bactrian.org>
5925
5926 * block.h: Declare block_static_block.
5927 * block.c (block_static_block): New.
5928 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5929 lookup_symbol_aux_local, calling block_static_block instead.
5930 (lookup_symbol_aux_local): Delete 'static_block' argument.
5931
5932 2003-05-19 David Carlton <carlton@bactrian.org>
5933
5934 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5935
5936 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5937
5938 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5939 register numbers mapping.
5940
5941 2003-05-18 Adam Fedor <fedor@gnu.org>
5942
5943 * symtab.c (completion_list_objc_symbol): New function.
5944 (make_symbol_completion_list): Use it to add ObjC symbols
5945 when looking though the list.
5946 (language_search_unquoted_string): New function.
5947 (make_file_symbol_completion_list): Use it.
5948
5949 2003-05-18 Andreas Schwab <schwab@suse.de>
5950
5951 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5952 dependencies.
5953 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5954 as m68k_linux_extract_return_value.
5955 (DEPRECATED_STORE_RETURN_VALUE): Define as
5956 m68k_linux_store_return_value.
5957 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5958 m68k_linux_extract_struct_value_address.
5959 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5960 get_next_frame, get_frame_base, get_frame_pc.
5961 (m68k_linux_frame_saved_pc): Use get_frame_base.
5962 (m68k_linux_extract_return_value): New function.
5963 (m68k_linux_store_return_value): New function.
5964 (m68k_linux_extract_struct_value_address): New function.
5965 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5966
5967 * c-exp.y (typebase): Remove duplicate occurence of
5968 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5969 of lookup_signed_typename.
5970
5971 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5972
5973 * dwarf2loc.c (find_location_expression): Change type of second
5974 argument to `size_t *'.
5975 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5976 for size variable.
5977
5978 2003-05-18 David Carlton <carlton@bactrian.org>
5979
5980 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5981 'linkage_name'. Add comment.
5982 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5983 'linkage_name'.
5984 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5985 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5986 (lookup_block_symbol): Ditto.
5987
5988 2003-05-16 Andrew Cagney <cagney@redhat.com>
5989
5990 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5991 * gdbarch.h, gdbarch.c: Re-generate.
5992 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5993 * TODO (REGISTER_BYTES): Delete reference.
5994 * alpha-tdep.c (alpha_gdbarch_init): Update.
5995 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5996 * x86-64-tdep.c (x86_64_init_abi): Update.
5997 * vax-tdep.c (vax_gdbarch_init): Update.
5998 * v850-tdep.c (v850_gdbarch_init): Update.
5999 * sparc-tdep.c (sparc_gdbarch_init): Update.
6000 * sh-tdep.c (sh_gdbarch_init): Update.
6001 * s390-tdep.c (s390_gdbarch_init): Update.
6002 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6003 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6004 (ns32k_gdbarch_init_32382): Update.
6005 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6006 * mcore-tdep.c (mcore_gdbarch_init): Update.
6007 * m68k-tdep.c (m68k_gdbarch_init): Update.
6008 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6009 * ia64-tdep.c (ia64_gdbarch_init): Update.
6010 * i386-tdep.c (i386_gdbarch_init): Update.
6011 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6012 * hppa-tdep.c (hppa_gdbarch_init): Update.
6013 * h8300-tdep.c (h8300_gdbarch_init): Update.
6014 * frv-tdep.c (frv_gdbarch_init): Update.
6015 * cris-tdep.c (cris_gdbarch_init): Update.
6016 * avr-tdep.c (avr_gdbarch_init): Update.
6017 * arm-tdep.c (arm_gdbarch_init): Update.
6018 * sparc-tdep.c (sparc_pop_frame): Update.
6019 * rs6000-tdep.c (rs6000_pop_frame): Update.
6020 * remote.c (init_remote_state): Update.
6021 (remote_prepare_to_store): Update.
6022 * remote-vx.c (vx_prepare_to_store): Update.
6023 * remote-sds.c (sds_fetch_registers): Update.
6024 (sds_prepare_to_store): Update.
6025 * remote-array.c: Update.
6026 * regcache.c (init_legacy_regcache_descr): Update.
6027 (init_regcache_descr): Update.
6028 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6029 (mips_o64_extract_return_value): Update.
6030 * irix5-nat.c (fetch_core_registers): Update.
6031 * irix4-nat.c (fetch_core_registers): Update.
6032 * i386-tdep.h: Update.
6033 * hppa-tdep.c (pa_do_registers_info): Update.
6034 (pa_do_strcat_registers_info): Update.
6035 * cris-tdep.c (cris_register_bytes_ok): Update.
6036 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6037 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6038 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6039 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6040 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6041 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6042 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6043 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6044 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6045 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6046 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6047 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6048 (REGISTER_BYTES_OK): Update.
6049 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6050 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6051
6052 2003-05-16 Ian Lance Taylor <ian@airs.com>
6053
6054 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6055 (vax_print_insn, print_insn_arg): Remove static functions.
6056 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6057 print_insn_vax from opcodes library.
6058 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6059
6060 2003-05-15 Andrew Cagney <cagney@redhat.com>
6061
6062 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6063 * target.h (memory_breakpoint_from_pc): Delete declaration.
6064 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6065 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6066 * monitor.c (monitor_insert_breakpoint): Use
6067 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6068 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6069 * gdbarch.h, gdbarch.c: Re-generate.
6070 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6071 (sparc_gdbarch_init): Set breakpoint_from_pc to
6072 sparc_breakpoint_from_pc.
6073 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6074 (BREAKPOINT_FROM_PC): Define.
6075 (sparc_breakpoint_from_pc): Declare.
6076 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6077 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6078 (BREAKPOINT_FROM_PC): Define.
6079 (BREAKPOINT): Delete macro.
6080 * target.h: Update comment.
6081 * s390-tdep.c (s390_gdbarch_init): Update comments.
6082 * remote.c: Update comments.
6083 * remote-mips.c: Update comments.
6084 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6085 * mem-break.c: Update comment.
6086 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6087 (ia64_memory_insert_breakpoint): Update.
6088 * config/sparc/tm-sparc.h: Update comment.
6089 * config/pa/tm-hppa64.h: Update comment.
6090 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6091 (rs6000_breakpoint_from_pc): Update.
6092 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6093 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6094 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6095 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6096 (mips_breakpoint_from_pc): Update.
6097 (mips_dump_tdep): Update.
6098
6099 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6100 * minsyms.c (lookup_minimal_symbol): Inline
6101 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6102
6103 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6104 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6105 * p-lang.c (pascal_printstr): Ditto.
6106 * objc-lang.c (objc_printstr): Ditto.
6107 * m2-lang.c (m2_printstr): Ditto.
6108 * jv-valprint.c (java_print_value_fields): Ditto.
6109 * f-lang.c (f_printstr): Ditto.
6110 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6111 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6112 for repeat_count_threshold.
6113 * Makefile.in (cp-valprint.o): Update dependencies.
6114
6115 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6116
6117 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6118 (examine_prologue): Support looking through leaf functions, knowing
6119 they start with mov r2,r12. Support skipping over indirect stores
6120 of the input registers. Upon hitting a non-nop branch instruction
6121 or predicated instruction, bail out by setting lim_pc to the current
6122 pc value in the loop. At the end, if the lim_pc value is still
6123 beyond our calculated value and we have trust_limit set,
6124 use the lim_pc value.
6125
6126 2003-05-15 Andrew Cagney <cagney@redhat.com>
6127
6128 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6129 generic_find_dummy_frame.
6130 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6131 (deprecated_generic_find_dummy_frame): Update.
6132 (deprecated_read_register_dummy): Update.
6133 * frame.c (deprecated_generic_get_saved_register): Update.
6134
6135 2003-05-15 Theodore A. Roth <troth@openavr.org>
6136
6137 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6138 (avr_gdbarch_init): Set breakpoint_from_pc method.
6139
6140 2003-05-15 Andrew Cagney <cagney@redhat.com>
6141
6142 * regcache.c (build_regcache): Set deprecated_register_valid
6143 directly.
6144 (deprecated_grub_regcache_for_register_valid): Delete function.
6145 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6146 declaration.
6147
6148 2003-05-15 David Carlton <carlton@bactrian.org>
6149
6150 Committed by Elena Zannoni <ezannoni@redhat.com>
6151 * symtab.c (lookup_symbol_aux): Delete calls to
6152 lookup_symbol_aux_minsyms.
6153 (lookup_symbol_aux_minsyms): Comment out function and
6154 prototype. Delete lookup by mangled name.
6155
6156 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6157
6158 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6159 correctly indicate an empty stack and ``stack_allocated'' to the
6160 indicate the number of elements initially allocated.
6161 (dwarf_expr_grow_stack): Simplify method for computing new
6162 stack size. Don't loop infinitely if ``stack_len'' is zero.
6163 (execute_stack_op): Move ``ctx->in_reg'' initialization
6164 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6165 be used in conjuction with DW_OP_piece. Revise error message
6166 accordingly.
6167
6168 2003-05-14 Theodore A. Roth <troth@openavr.org>
6169
6170 * MAINTAINERS: Update my email address.
6171 * avr-tdep.c: Ditto.
6172
6173 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6174
6175 * symtab.h (enum domain_enum): Rename from namespace_enum.
6176 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6177 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6178 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6179 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6180 TYPES_NAMESPACE, METHODS_NAMESPACE.
6181 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6182 (struct symbol, struct partial_symbol): Rename field
6183 'namespace_enum namespace' to 'domain_enum domain'.
6184 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6185 Delete old define kludge for namespace.
6186
6187 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6188 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6189 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6190 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6191 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6192 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6193 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6194 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6195 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6196 occurrences of the above.
6197
6198 2003-05-14 Ian Lance Taylor <ian@airs.com>
6199
6200 * Makefile.in (install-only): Use $(SHELL) when running
6201 mkinstalldirs.
6202
6203 2003-05-13 Ian Lance Taylor <ian@airs.com>
6204
6205 * MAINTAINERS (write after approval): Add myself.
6206
6207 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6208 second and third arguments.
6209 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6210 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6211
6212 2003-05-13 Andrew Cagney <cagney@redhat.com>
6213
6214 * defs.h (store_address): Delete declaration.
6215 findvar.c (store_address): Delete function.
6216 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6217 store_unsigned_integer.
6218 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6219 * v850-tdep.c (v850_push_arguments): Ditto.
6220 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6221 * sh-tdep.c (sh64_get_saved_register): Ditto.
6222 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6223 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6224 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6225 (mips_get_saved_register): Ditto.
6226 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6227 (find_func_descr, ia64_push_arguments): Ditto.
6228 * i386-tdep.c (i386_push_arguments): Ditto.
6229 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6230 * frv-tdep.c (frv_push_arguments): Ditto.
6231 * frame.c (legacy_saved_regs_prev_register): Ditto.
6232 (deprecated_generic_get_saved_register): Ditto.
6233 * findvar.c (unsigned_address_to_pointer): Ditto.
6234 * dwarf2read.c (dwarf2_const_value): Ditto.
6235 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6236 * alpha-tdep.c (alpha_push_arguments): Ditto.
6237
6238 2003-05-12 J. Brobecker <brobecker@gnat.com>
6239
6240 * NEWS: Mention that the hppa-hpux port has been partially
6241 multiarched (32bit ABIT only, so far).
6242
6243 2003-05-11 Andrew Cagney <cagney@redhat.com>
6244
6245 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6246 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6247 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6248 sim/testsuite/sim/arm/misaligned2.ms, and
6249 sim/testsuite/sim/arm/misaligned3.ms.
6250 * disasm.h (struct ui_file): Add opaque struct declaration.
6251 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6252 * frame.h (struct ui_file): Ditto.
6253
6254 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6255
6256 * value.h: Pretty print.
6257
6258 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6259
6260 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6261
6262 2003-05-08 Andrew Cagney <cagney@redhat.com>
6263
6264 * regcache.h (max_register_size): Delete declaration.
6265 * regcache.c (max_register_size): Delete function.
6266 (struct regcache_descr): Delete field "max_register_size".
6267 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6268 registers fit in MAX_REGISTER_SIZE.
6269 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6270 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6271 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6272 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6273 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6274 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6275 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6276 * dve3900-rom.c, hppa-tdep.c: Ditto.
6277
6278 2003-05-08 David Carlton <carlton@math.stanford.edu>
6279
6280 * valops.c (push_word): Fix typo.
6281
6282 2003-05-08 Andrew Cagney <cagney@redhat.com>
6283
6284 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6285 * gdbarch.h: Re-generate.
6286 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6287 (legacy_max_register_raw_size): Delete declaration.
6288 * regcache.c (legacy_max_register_raw_size): Delete function.
6289 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6290 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6291 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6292 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6293 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6294 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6295 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6296 * findvar.c, dwarf2cfi.c: Ditto.
6297
6298 2003-05-08 Andrew Cagney <cagney@redhat.com>
6299
6300 * mips-tdep.c (read_signed_register): New function, moved to here
6301 from "regcache.c".
6302 (read_signed_register_pid): Ditto.
6303 * regcache.c (read_signed_register_pid): Delete function, moved to
6304 "mips-tdep.c".
6305 (read_signed_register): Ditto.
6306 * regcache.h (read_signed_register): Delete declaration.
6307 (read_signed_register_pid): Delete declaration.
6308
6309 2003-05-08 Andrew Cagney <cagney@redhat.com>
6310
6311 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6312 * gdbarch.h: Re-generate.
6313 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6314 (legacy_max_register_virtual_size): Delete declaration.
6315 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6316 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6317 * tracepoint.c (memrange_sortmerge): Ditto.
6318 * sparc-tdep.c (sparc_print_registers): Ditto.
6319 * regcache.c (legacy_max_register_virtual_size): Delete function.
6320
6321 2002-05-08 J. Brobecker <brobecker@gnat.com>
6322
6323 * fork-child.c (escape_bang_in_quoted_argument): New function.
6324 (fork_inferior): Escape '!' characters in quoted arguments
6325 only when needed.
6326
6327 2003-05-08 J. Brobecker <brobecker@gnat.com>
6328
6329 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6330 the language of the CU is not currently supported by GDB.
6331
6332 2003-05-08 J. Brobecker <brobecker@gnat.com>
6333
6334 * defs.h (language): Add language_minimal enum value.
6335 * c-lang.c (minimal_language_defn): New language definition.
6336 (_initialize_c_language): Add the new minimal language to the list
6337 of languages known to GDB.
6338
6339 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6340
6341 * frame.c (get_frame_type): Don't attempt to lazily initialize
6342 frame's unwinder for legacy frames.
6343
6344 2003-05-07 Andrew Cagney <cagney@redhat.com>
6345
6346 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6347 and "regcache" parameters.
6348 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6349
6350 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6351
6352 * dwarf2read.c (dwarf_decode_lines): Only use output of
6353 check_cu_functions() when calling record_line(). Do not update
6354 the current address.
6355
6356 2003-05-07 Andrew Cagney <cagney@redhat.com>
6357
6358 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6359 code.
6360
6361 2003-05-07 Jim Blandy <jimb@redhat.com>
6362
6363 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6364 'maint info symtabs' and 'maint info psymtabs'.
6365 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6366 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6367 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6368 Declarations updated.
6369 * maint.c (maintenance_list_command): Delete.
6370 (_initialize_maint_cmds): Update calls to add_cmd.
6371 * gdbcmd.h (maintenancelistlist): Delete declaration.
6372 * cli/cli-cmds.c (maintenancelistlist): Delete.
6373 (init_cmd_lists): Don't initialize it.
6374 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6375
6376 2003-05-07 Andrew Cagney <cagney@redhat.com>
6377
6378 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6379 "regcache".
6380 (d10v_print_registers_info): Update.
6381 (d10v_dmap_register, d10v_imap_register): Delete functions.
6382 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6383 and "imap_register".
6384 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6385 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6386 * arch-utils.c (generic_remote_translate_xfer_address): Add
6387 "regcache" and "gdbarch" parameters.
6388 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6389 parameter. Change class to multi-arch.
6390 * gdbarch.h, gdbarch.c: Re-generate.
6391 * remote.c (remote_xfer_memory): Use
6392 gdbarch_remote_translate_xfer_address.
6393
6394 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6395
6396 * infrun.c (prev_pc): Move declaration ahead of proceed().
6397 (proceed): Refresh prev_pc value before resuming.
6398 (stop_stepping): Remove code to refresh prev_pc.
6399
6400 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6401
6402 * nto-tdep.c: Removed stray comment.
6403
6404 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6405
6406 * i386-nto-tdep.c: Fix old K&R function definitions.
6407 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6408 Also change add_show_from_set() call to add_setshow_cmd().
6409 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6410
6411 2003-05-05 Andrew Cagney <cagney@redhat.com>
6412
6413 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6414 (fprint_dummy_frames): New function.
6415 (maintenance_print_dummy_frames): New function.
6416 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6417 * frame.c (fprint_frame_id): Make global.
6418 * frame.h (fprint_frame_id): Declare.
6419 * Makefile.in (dummy-frame.o): Update dependencies.
6420
6421 2003-05-05 Andrew Cagney <cagney@redhat.com>
6422
6423 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6424 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6425 SIZEOF_CALL_DUMMY_WORDS.
6426 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6427 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6428 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6429 CALL_DUMMY_BREAKPOINT_OFFSET.
6430 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6431 CALL_DUMMY_START_OFFSET.
6432 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6433 * gdbarch.h, gdbarch.c: Re-generate.
6434 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6435 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6436 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6437 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6438 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6439 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6440 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6441 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6442 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6443 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6444 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6445 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6446 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6447 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6448 * config/sparc/tm-sparc.h: Update.
6449
6450 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6451
6452 * configure.tgt: Add i[3456]86-*-nto*.
6453 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6454 * nto-tdep.c: New file. Neutrino target support routines.
6455 * nto-tdep.h: New file. Neutrino target header.
6456 * config/tm-qnxnto.h: New file.
6457 * config/i386/i386nto.mt: New file.
6458 * config/i386/tm-i386nto.h: New file.
6459
6460 2003-05-04 Andrew Cagney <cagney@redhat.com>
6461
6462 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6463 (load_infrun_state): Ditto.
6464 (struct thread_info): Drop "prev_func_name" field.
6465 * thread.c (load_infrun_state): Update.
6466 (save_infrun_state): Update.
6467 * infrun.c (prev_func_name): Delete variable.
6468 (init_wait_for_inferior): Do not clear prev_func_name.
6469 (stop_stepping, keep_going, context_switch): Do not swap
6470 prev_func_name.
6471 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6472 instead of PC_IN_SIGTRAMP.
6473
6474 2003-05-04 Andrew Cagney <cagney@redhat.com>
6475
6476 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6477 REGISTER_BYTE with register_offset_hack.
6478 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6479 that REGISTER_BYTE is consistent with the regcache.
6480 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6481 * gdbarch.h, gdbarch.c: Regenerate.
6482
6483 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6484
6485 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6486 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6487
6488 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6489
6490 2003-05-03 J. Brobecker <brobecker@gnat.com>
6491
6492 From Thierry Schneider <tpschneider1@yahoo.com>
6493 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6494 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6495 (mi-cmd-symbol.o): Add rule.
6496
6497 2003-05-03 Andrew Cagney <cagney@redhat.com>
6498
6499 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6500 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6501 * gdbarch.h, gdbarch.c: Re-generate.
6502 * d10v-tdep.c (d10v_push_dummy_code): New function.
6503 (d10v_gdbarch_init): Set push_dummy_code.
6504 * infcall.c (legacy_push_dummy_code): New function.
6505 (generic_push_dummy_code): New function.
6506 (push_dummy_code): New function.
6507 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6508 instead of dummy_addr, to push_dummy_call. Move call to
6509 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6510 switch.
6511 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6512
6513 2003-05-03 Andrew Cagney <cagney@redhat.com>
6514
6515 * disasm.h (print_insn): Declare.
6516 * disasm.c (init_gdb_disassemble_info): New function.
6517 (gdb_disassembly): Call init_gdb_disassemble_info.
6518 (gdb_print_insn): New function.
6519 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6520 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6521 * mcore-tdep.c: Include "disasm.h"
6522 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6523 * d10v-tdep.c: Include "disasm.h".
6524 (display_trace): Call gdb_print_insn, instead of print_insn.
6525 (print_insn): Delete function.
6526 * printcmd.c: Include "disasm.h".
6527 (print_insn): Delete function.
6528 (print_formatted): Call gdb_print_insn, instead of print_insn.
6529 * Makefile.in (printcmd.o): Update dependencies.
6530 (mcore-tdep.o, d10v-tdep.o): Ditto.
6531
6532 2003-05-02 Andrew Cagney <cagney@redhat.com>
6533
6534 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6535 PC_REGNUM, re-indent.
6536 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6537 PC_REGNUM isn't set.
6538
6539 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6540 * gdbarch.h, gdbarch.c: Re-generate.
6541 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6542 register_virtual_size, pc_regnum, or register_bytes.
6543 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6544 (d10v_register_type): Use D10V_PC_REGNUM.
6545 (d10v_print_registers_info, d10v_read_pc): Ditto.
6546 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6547 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6548
6549 2003-05-02 David Carlton <carlton@bactrian.org>
6550
6551 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6552 the name with mstrsave.
6553
6554 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6555
6556 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6557 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6558 (host_charset_name, target_charset_name): New vars for use by
6559 set/show commands.
6560 (host_charset_enum, target_charset_enum): New enums for set/show
6561 commands.
6562 (set_charset_sfunc, set_host_charset_sfunc,
6563 set_target_charset_sfunc): New functions.
6564 (set_host_charset, set_target_charset): Make static.
6565 (list_charsets, set_host_charset_command,
6566 set_target_charset_command): Delete functions.
6567 (show_charset_command): Rewrite as....
6568 (show_charset): Hook this up with the set/show command mechanism.
6569 (_initialize_charset): Change names of charsets to match the
6570 set/show enums. Use host_charset_name and target_charset_name.
6571 Use set/show mechanism for charset, host-charset, target-charset
6572 commands. Do not make 'show host-charset' and 'show
6573 target-charset' be aliases of 'show charset'.
6574
6575 * charset.h (set_host_charset, set_target_charset): Don't export,
6576 they are not used outside the file.
6577
6578 2003-05-01 Andrew Cagney <cagney@redhat.com>
6579
6580 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6581 (gdb_disassembly): Make "di" non static, always initialize and
6582 cleanup. Always use dis_asm_read_memory.
6583 (gdb_dis_asm_read_memory): Delete function.
6584
6585 2003-05-01 Andrew Cagney <cagney@redhat.com>
6586
6587 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6588 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6589
6590 2003-04-30 Andrew Cagney <cagney@redhat.com>
6591
6592 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6593 "tm_print_insn_info".
6594 (TARGET_PRINT_INSN_INFO): Delete macro.
6595 (dis_asm_read_memory): Delete function declaration.
6596 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6597 (tm_print_insn_info): Delete variable definition.
6598 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6599 * gdbarch.h, gdbarch.c: Re-generate.
6600 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6601 "deprecated_tm_print_insn_info".
6602 * mcore-tdep.c (mcore_dump_insn): Ditto.
6603 * mips-tdep.c (mips_gdbarch_init): Ditto.
6604 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6605 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6606 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6607 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6608 instead of TARGET_PRINT_INSN_INFO, add comment.
6609 * s390-tdep.c (s390_get_frame_info): Instead of
6610 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6611 (s390_check_function_end, s390_is_sigreturn): Ditto.
6612 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6613 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6614 * disasm.c: Include "gdbcore.h".
6615 (_initialize_disasm): New function, initialize
6616 "deprecated_tm_print_insn_info".
6617 (deprecated_tm_print_insn_info): New variable.
6618 (dis_asm_read_memory): Moved from "corefile.c", made static.
6619 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6620 * Makefile.in (disasm.o): Update dependencies.
6621
6622 2003-04-30 Andrew Cagney <cagney@redhat.com>
6623
6624 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6625
6626 2003-04-29 Adam Fedor <fedor@gnu.org>
6627
6628 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6629 * infcall.c (find_function_addr): Make non-static.
6630 * infcall.h (find_function_addr): Declare.
6631 * Makefile.in (eval.o): Update dependencies.
6632
6633 2003-04-28 Adam Fedor <fedor@gnu.org>
6634
6635 * symtab.c (symbol_find_demangled_name): Check for and demangle
6636 ObjC symbols.
6637 (symbol_init_demangled_name): Init for language_objc as well.
6638
6639 2003-04-28 Andrew Cagney <cagney@redhat.com>
6640
6641 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6642 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6643 * gdbarch.h, gdbarch.c: Re-generate.
6644 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6645 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6646 * inferior.h (deprecated_read_fp): Rename read_fp.
6647 (generic_target_read_fp): Delete declaration.
6648 * regcache.c (generic_target_read_fp): Delete function.
6649 (deprecated_read_fp): Replace read_fp, use
6650 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6651 * d10v-tdep.c (d10v_read_fp): Delete function.
6652 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6653
6654 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6655 deprecated_target_read_fp to generic_target_read_fp.
6656 * sh-tdep.c (sh_gdbarch_init): Ditto.
6657 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6658 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6659 * frv-tdep.c (frv_gdbarch_init): Ditto.
6660
6661 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6662 deprecated_fp_regnum.
6663 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6664 * vax-tdep.c (vax_gdbarch_init): Ditto.
6665 * v850-tdep.c (v850_gdbarch_init): Ditto.
6666 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6667 * sh-tdep.c (sh_gdbarch_init): Ditto.
6668 * s390-tdep.c (s390_gdbarch_init): Ditto.
6669 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6670 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6671 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6672 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6673 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6674 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6675 * i386-tdep.c (i386_gdbarch_init): Ditto.
6676 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6677 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6678 * frv-tdep.c (frv_gdbarch_init): Ditto.
6679 * cris-tdep.c (cris_gdbarch_init): Ditto.
6680 * avr-tdep.c (avr_gdbarch_init): Ditto.
6681 * arm-tdep.c (arm_gdbarch_init): Ditto.
6682 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6683
6684 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6685 * v850-tdep.c (v850_gdbarch_init): Ditto.
6686 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6687 * sh-tdep.c (sh_gdbarch_init): Ditto.
6688 * s390-tdep.c (s390_gdbarch_init): Ditto.
6689 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6690 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6691 * mips-tdep.c (mips_gdbarch_init): Ditto.
6692 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6693 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6694 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6695 * frv-tdep.c (frv_gdbarch_init): Ditto.
6696 * avr-tdep.c (avr_gdbarch_init): Ditto.
6697 * arm-tdep.c (arm_gdbarch_init): Ditto.
6698
6699 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6700 DEPRECATED_FP_REGNUM.
6701 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6702 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6703 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6704 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6705 (sparc32_register_virtual_type): Ditto.
6706 * sh-tdep.c (sh64_frame_chain): Ditto.
6707 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6708 (sh_nofp_frame_init_saved_regs): Ditto.
6709 (sh64_nofp_frame_init_saved_regs): Ditto.
6710 (sh_fp_frame_init_saved_regs): Ditto.
6711 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6712 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6713 * procfs.c (procfs_fetch_registers): Ditto.
6714 (procfs_store_registers): Ditto.
6715 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6716 (store_inferior_registers, fetch_core_registers): Ditto.
6717 (fetch_kcore_registers, clear_regs): Ditto.
6718 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6719 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6720 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6721 * nlm/i386.c (do_status): Ditto.
6722 * mipsv4-nat.c (supply_gregset): Ditto.
6723 * mips-tdep.c: Ditto for comments.
6724 * mips-nat.c (fetch_inferior_registers): Ditto.
6725 (store_inferior_registers, fetch_core_registers): Ditto.
6726 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6727 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6728 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6729 (i386_do_pop_frame, i386_register_type): Ditto.
6730 * hppa-tdep.c (hppa_frame_chain): Ditto.
6731 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6732 (hppa_pop_frame, hppa_read_fp): Ditto.
6733 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6734 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6735 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6736 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6737 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6738 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6739 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6740 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6741 * blockframe.c: Ditto for comments.
6742 * arch-utils.h: Ditto for comments.
6743 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6744 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6745 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6746 * alpha-tdep.h: Ditto for comments.
6747 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6748 (alpha_cannot_store_register): Ditto.
6749 (alpha_push_dummy_frame): Ditto.
6750 * alpha-nat.c (supply_gregset): Ditto.
6751
6752 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6753 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6754 * config/sparc/tm-sparc.h: Update comment.
6755
6756 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6757 deprecated_read_fp instead of TARGET_READ_FP.
6758 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6759 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6760 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6761 deprecated_read_fp instead of read_fp.
6762 * s390-tdep.c (s390_push_arguments): Ditto.
6763 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6764 * frame.h: Ditto in comments.
6765 * frame.c (legacy_get_prev_frame): Ditto.
6766 * dummy-frame.c (dummy_frame_this_id): Ditto.
6767 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6768
6769 2003-04-28 Andrew Cagney <cagney@redhat.com>
6770
6771 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6772 * gdbarch.h, gdbarch.c: Re-generate.
6773 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6774 * vax-tdep.c (_initialize_vax_tdep): Update.
6775 * v850-tdep.c (_initialize_v850_tdep): Update.
6776 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6777 * s390-tdep.c (_initialize_s390_tdep): Update.
6778 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6779 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6780 * mips-tdep.c (_initialize_mips_tdep): Update.
6781 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6782 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6783 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6784 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6785 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6786 * frv-tdep.c (_initialize_frv_tdep): Update.
6787 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6788 (_initialize_cris_tdep): Update.
6789 * arch-utils.c (legacy_print_insn): Update.
6790 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6791
6792 2003-04-26 Adam Fedor <fedor@gnu.org>
6793
6794 * linespec.c (decode_objc): New function to decode ObjC calls
6795 (decode_line_1): Check for ObjC calls (using decode_objc)
6796 * Makefile (linespec.o): Update dependencies.
6797
6798 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6799
6800 * breakpoint.h (struct breakpoint_ops): New.
6801 (struct breakpoint): Add ops member.
6802
6803 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6804 (mention): Use new breakpoint ops member.
6805 (set_raw_breakpoint): Initialize ops field to NULL.
6806 (print_exception_catchpoint, print_one_exception_catchpoint)
6807 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6808 (gnu_v3_exception_catchpoint_ops): New.
6809 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6810
6811 2003-04-25 Adam Fedor <fedor@gnu.org>
6812
6813 * Makefile.in (COMMON_OBS): Add objc-lang.o
6814
6815 2003-04-25 Andrew Cagney <cagney@redhat.com>
6816
6817 * d10v-tdep.c (print_insn): Delete function.
6818 (display_trace): Use TARGET_PRINT_INSN.
6819 (_initialize_d10v_tdep): Do not set tm_print_insn.
6820 (d10v_gdbarch_init): Set print_insn.
6821
6822 2003-04-25 Andrew Cagney <cagney@redhat.com>
6823
6824 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6825 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6826 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6827 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6828 (nr_dmap_regs, a0_regnum): ... new functions.
6829 (d10v_print_registers_info): Use a0_regnum, use register_size.
6830 (d10v_register_byte): Delete function.
6831 (d10v_register_raw_size): Delete function.
6832 (d10v_register_type): Use a0_regnum.
6833 (d10v_print_registers_info): Use a0_regnum.
6834 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6835 (d10v_gdbarch_init): Do not set register_byte or
6836 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6837 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6838 extract_address.
6839 (trace_command): Use XCALLOC.
6840 (print_insn): Delete reference to tm_print_insn.
6841 (saved_regs_unwinder): Use store_unsigned_integer instead of
6842 store_address.
6843 * frame.h (FRAME_OBSTACK_CALLOC): Define
6844
6845 2003-04-25 David Carlton <carlton@bactrian.org>
6846
6847 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6848
6849 2003-04-24 Adam Fedor <fedor@gnu.org>
6850
6851 * objc-lang.c: Include "valprint.h"
6852 * Makefile.in (objc-lang.o): Update dependencies.
6853
6854 2003-04-24 Adam Fedor <fedor@gnu.org>
6855
6856 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6857 architecture dependant compilation and mark as unimplemented
6858 (until they get put in the gdbarch vector).
6859
6860 2003-04-23 David Carlton <carlton@bactrian.org>
6861
6862 * cp-support.c (cp_find_first_component): Accept 'operator' in
6863 more locations.
6864
6865 2003-04-23 Andrew Cagney <cagney@redhat.com>
6866
6867 * infcall.c (call_function_by_hand): Eliminate redundant
6868 indentation. Move "saved_async" and "old_cleanups" to where they
6869 are needed.
6870
6871 2003-04-23 Andrew Cagney <cagney@redhat.com>
6872
6873 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6874 and "buffer". Move the "name" code to where it is needed.
6875
6876 2003-04-23 Andrew Cagney <cagney@redhat.com>
6877
6878 * infcall.c (call_function_by_hand): Move variables "start_sp",
6879 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6880 code to ON_STACK switch branch.
6881
6882 2003-04-23 Andrew Cagney <cagney@redhat.com>
6883
6884 * infcall.c (call_function_by_hand): Make declaration of "i",
6885 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6886 lint.
6887
6888 2003-04-23 Andrew Cagney <cagney@redhat.com>
6889
6890 * infcall.c (call_function_by_hand): Delete variable
6891 "n_method_args". Localize "param_type"'s declaration to the loop
6892 that it is used. Reinstate code assigning to said variable -
6893 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6894 Rationalize code using "param_type".
6895
6896 2003-04-22 Andrew Cagney <cagney@redhat.com>
6897
6898 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6899 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6900 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6901 to DEPRECATED_PUSH_RETURN_ADDRESS.
6902
6903 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6904
6905 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6906 on the DWARF2 register number prior to fetching a register.
6907
6908 2003-04-22 J. Brobecker <brobecker@gnat.com>
6909
6910 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6911 Update all the tests using SOFT_FLOAT considering the fact that
6912 this macro was always set to 0.
6913 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6914 considering the fact that this macro was always set to 0.
6915 * hppa-tdep.h (hppa_store_return_value): Likewise.
6916 (hppa_extract_return_value): Likewise.
6917
6918 2003-04-22 J. Brobecker <brobecker@gnat.com>
6919
6920 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6921 the hppa-pro target only.
6922
6923 2003-04-21 J. Brobecker <brobecker@gnat.com>
6924
6925 Ongoing multi-arch conversion effort for HP/UX:
6926 * config/pa/tm-hppa.h: Move all macro that are no longer
6927 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6928 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6929
6930 2003-04-21 J. Brobecker <brobecker@gnat.com>
6931
6932 * config/pa/tm-hppa.h: Obsolete a section that was only used
6933 for hppa-pro.
6934
6935 2003-04-21 J. Brobecker <brobecker@gnat.com>
6936
6937 Ongoing multi-arch conversion for HP/UX.
6938 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6939 if already defined (allows hppa64 to stay non-multiarched for now).
6940 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6941
6942 2003-04-21 Andrew Cagney <cagney@redhat.com>
6943
6944 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6945
6946 2003-04-21 Andrew Cagney <cagney@redhat.com>
6947
6948 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6949 "i386_num_mmx_regs".
6950
6951 2003-04-21 Andrew Cagney <cagney@redhat.com>
6952
6953 * infcall.c: New file.
6954 * infcall.h: New file.
6955 * valarith.c: Include "infcall.h".
6956 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6957 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6958 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6959 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6960 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6961 (SFILES): Add "infcall.c"
6962 (COMMON_OBS): Add "infcall.o".
6963 (infcall.o): Specify dependencies.
6964 * value.h (call_function_by_hand): Delete declaration.
6965 * inferior.h (run_stack_dummy): Delete declaration.
6966 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6967 (run_stack_dummy): Move to "infcall.c", merged into
6968 call_function_by_hand.
6969 * valops.c (call_function_by_hand): Moved to "infcall.c".
6970 (find_function_addr, value_arg_coerce): Ditto.
6971 (unwindonsignal_p, coerce_float_to_double): Ditto.
6972 (_initialize_valops): Move "set/show coerce-float-to-double", and
6973 "set/show unwindonsignal" commands to "infcall.c".
6974 * v850-tdep.c, target.h: Update comments.
6975 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6976 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6977 (sh64_init_extra_frame_info): Update comments.
6978 * mn10300-tdep.c: Update comments.
6979 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6980 * config/sparc/tm-sparc.h: Update comments.
6981 * breakpoint.h: Update comments.
6982 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6983 * arm-tdep.c: Update comment.
6984
6985 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6986
6987 * i386-tdep.c (i386_num_register_names): New variable.
6988 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6989 (MM0_REGNUM): Remove redundant parentheses in define.
6990 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6991 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6992 i386_mxcsr_regnum_p): Remove redundant parentheses.
6993 (i386_register_name): Use i386_num_register_names.
6994
6995 * i386-tdep.c (i386_extract_return_value,
6996 i386_store_return_value): Correct check for availability of
6997 floating-point registers.
6998
6999 * i386-tdep.c (i386_frame_num_args): Remove function.
7000 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7001
7002 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7003 mmx_regnum_to_fp_regnum. Adjust all callers.
7004
7005 * i386-tdep.c (i386_get_longjmp_target): Use
7006 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7007 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7008 extract_address.
7009
7010 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7011
7012 * core-regset.c: Update comments to reflect reality. Re-order
7013 includes.
7014 (fetch_core_registers): Use switch instead of if. Remove
7015 redundant prototype.
7016
7017 2003-04-18 Jim Blandy <jimb@redhat.com>
7018
7019 * s390-tdep.c (s390_frame_align): New function.
7020 (s390_gdbarch_init): Register it with the gdbarch object.
7021
7022 2003-04-17 Richard Henderson <rth@redhat.com>
7023
7024 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7025
7026 2003-04-17 Michael Snyder <msnyder@redhat.com>
7027 Karen Bennet <bennet@redhat.com>
7028
7029 Committed by Elena Zannoni <ezannoni@redhat.com>
7030 * gdb_gcore.sh: New script to create a core dump of a process.
7031
7032 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7033
7034 * values.c (value_being_returned): Don't fetch the return
7035 value if the return type is void.
7036
7037 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7038
7039 * thread-db.c: Reindented.
7040
7041 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7042
7043 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7044 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7045 as types.
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7072
7073 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7074 the size of ``long double'' to 16, instead of 8.
7075
7076 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7077
7078 * i386-linux-nat.c: Add some whitespace to make things more
7079 readable.
7080 (fetch_register, store_register, fetch_inferior_registers,
7081 store_inferior_registers): Get rid of assignment in if-statement.
7082 (store_register): Fix typo in error message.
7083
7084 2003-04-16 Andrew Cagney <cagney@redhat.com>
7085
7086 * utils.c (xmmalloc): Always allocate something, matches
7087 libiberty/xmalloc's semantics.
7088 (xmrealloc, xmcalloc): Ditto.
7089
7090 2003-04-16 Andrew Cagney <cagney@redhat.com>
7091
7092 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7093 update comments.
7094 (get_frame_type): Initialize unwind and type when needed.
7095 (get_frame_id, frame_register_unwind): Ditto.
7096
7097 2003-04-16 Andrew Cagney <cagney@redhat.com>
7098
7099 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7100 obsolete.
7101 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7102 * sparcl-stub.c: Obsolete file.
7103 * config/sparc/tm-sparclet.h: Obsolete file.
7104 * sparclet-stub.c: Obsolete file.
7105 * sparclet-rom.c: Obsolete file.
7106 * sparcl-tdep.c: Obsolete file.
7107 * config/sparc/tm-sparclite.h: Obsolete file.
7108 * config/sparc/sparclite.mt: Obsolete file.
7109 * config/sparc/sparclet.mt: Obsolete file.
7110 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7111 sparc86x-*-* obsolete.
7112
7113 2003-04-15 David Carlton <carlton@math.stanford.edu>
7114
7115 * Makefile.in (SFILES): Add cp-namespace.c.
7116 (COMMON_OBS): Add cp-namespace.o.
7117 (block.o): Depend on gdb_obstack_h and cp_support_h.
7118 (buildsym.o): Depend on cp_support_h.
7119 (cp-namespace.o): New.
7120 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7121 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7122 (dwarf2read.o): Depend on cp_support_h.
7123 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7124 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7125 processing_current_namespace.
7126 (read_namespace): Update processing_current_namespace; check for
7127 anonymous namespaces.
7128 (dwarf2_name): New function.
7129 (dwarf2_extension): Ditto.
7130 * cp-support.h: Update copyright, contributors.
7131 Add inclusion guards.
7132 Add opaque declaration for structs obstack, block, symbol.
7133 (struct using_direct): New struct.
7134 Add declarations for cp_find_first_component,
7135 cp_entire_prefix_len, processing_has_namespace_info,
7136 processing_current_namespace, cp_is_anonymous,
7137 cp_add_using_directive, cp_initialize_namespace,
7138 cp_finalize_namespace, cp_set_block_scope,
7139 cp_scan_for_anonymous_namespaces.
7140 * cp-namespace.c: New file.
7141 * cp-support.c: Update copyright.
7142 Include ctype.h, gdb_assert.h, gdbcmd.h.
7143 New variable maint_cplus_cmd_list.
7144 (cp_find_first_component): New function.
7145 (cp_entire_prefix_len, maint_cplus_command)
7146 (first_component_command, _initialize_cp_support): Ditto.
7147 * buildsym.c: Include cp-support.h.
7148 New variable using_list.
7149 (add_symbol_to_list): Check for anonymous namespaces.
7150 (finish_block): Set block's scope.
7151 (start_symtab): Initialize C++ namespace support.
7152 (end_symtab): Finalize C++ namespace support.
7153 * block.h: Add opaque declarations for structs
7154 block_namespace_info, using_direct, and obstack.
7155 Add declarations for block_set_scope and block_set_using.
7156 (struct block): Add 'language_specific' member.
7157 (BLOCK_NAMESPACE): New macro.
7158 * block.c: Include gdb_obstack.h and cp-support.h.
7159 (struct block_namespace_info): New struct.
7160 (block_set_scope): New function.
7161 (block_set_using, block_initialize_namespace): Ditto.
7162
7163 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7164
7165 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7166 (locate_base): Return early if there aren't any link map offsets.
7167 (svr4_solib_create_inferior_hook): Warn if shared library support
7168 is unavailable.
7169
7170 2003-04-14 David Carlton <carlton@math.stanford.edu>
7171
7172 * symtab.c (symbol_set_names): Add prefix when storing Java names
7173 in hash table. Fix for PR java/1039.
7174
7175 2003-04-14 David Carlton <carlton@math.stanford.edu>
7176
7177 * symtab.c (symbol_set_names): Rename 'name' arg to
7178 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7179 * symtab.h: Change 'name' argument in declaration of
7180 symbol_set_names to 'linkage_name'.
7181 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7182
7183 2003-04-14 Andrew Cagney <cagney@redhat.com>
7184
7185 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7186 return the fully sign-extended register value.
7187 (get_frame_pointer): Ditto.
7188 (mips_pop_frame): Initialize "proc_desc" after checking for a
7189 dummy frame.
7190
7191 2003-04-14 Andrew Cagney <cagney@redhat.com>
7192
7193 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7194 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7195 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7196 (mips_push_register): Delete function.
7197 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7198 PUSH_FP_REGNUM.
7199
7200 2003-04-14 Jim Blandy <jimb@redhat.com>
7201
7202 * symmisc.c: #include "gdb_regex.h".
7203 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7204 functions.
7205 * maint.c (maintenance_list_command): New function.
7206 (_initialize_maint_cmds): Register the above as commands.
7207 * symtab.h (maintenance_list_symtabs,
7208 maintenance_list_psymtabs): New declarations.
7209 * cli/cli-cmds.c (maintenancelistlist): New variable.
7210 (init_cmd_lists): Initialize it.
7211 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7212 * gdbcmd.h (maintenancelistlist): New declaration.
7213 * Makefile.in (symmisc.o): Update dependencies.
7214
7215 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7216
7217 * s390-nat.c: Include asm/types.h for addr_t.
7218
7219 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7220
7221 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7222 actually incoming type.
7223
7224 2003-04-13 Andrew Cagney <cagney@redhat.com>
7225
7226 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7227 get_next_frame and get_frame_saved_regs.
7228
7229 2003-04-13 Andrew Cagney <cagney@redhat.com>
7230
7231 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7232 of gdbarch_num_regs.
7233
7234 2003-04-13 Andrew Cagney <cagney@redhat.com>
7235
7236 * frame.h: Mention what replaced what in "struct frame_info".
7237 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7238 deprecated_update_frame_base_hack and
7239 deprecated_update_frame_pc_hack.
7240 * hppa-tdep.c: Ditto.
7241
7242 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7243
7244 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7245 to read_reg and update its comment. Remove regnum member.
7246 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7247 Don't call read_reg when setting in_reg. Call read_reg to get
7248 the frame base if it's in a register. Return the register number
7249 on the stack instead of in the context. Remove extra arguments
7250 to read_reg.
7251 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7252 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7253 the register number on the expression stack.
7254 (needs_frame_read_reg): Remove extra arguments.
7255
7256 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7257
7258 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7259 made non-static.
7260 (execute_stack_op): All callers updated.
7261 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7262 * dwarf2loc.c (find_location_expression): New function.
7263 (dwarf_expr_frame_base): Call it.
7264 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7265 (dwarf2_tracepoint_var_ref): New function, broken out from
7266 locexpr_tracepoint_var_ref.
7267 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7268 Make static.
7269 (loclist_read_variable, loclist_read_needs_frame): New functions.
7270 (loclist_describe_location, loclist_tracepoint_var_ref): New
7271 functions.
7272 (dwarf2_loclist_funcs): New struct location_funcs.
7273 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7274 (struct dwarf2_locexpr_baton): Add comments.
7275 (dwarf2_loclist_funcs): New extern.
7276 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7277 base_address and base_known.
7278 (dwarf_loc_buffer): New variable.
7279 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7280 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7281 (dwarf2_has_info): Initialize dwarf_loc_offset.
7282 (dwarf2_build_psymtabs): Read in .debug_loc.
7283 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7284 DWARF_LOC_SIZE.
7285 (psymtab_to_symtab_1): Likewise. Move base address calculation
7286 here, from...
7287 (dwarf2_get_pc_bounds): ... here. Use the base address from
7288 cu_header.
7289 (dwarf2_symbol_mark_computed): Handle location lists.
7290
7291 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7292
7293 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7294 if the linkage name demangled successfully.
7295
7296 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7297
7298 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7299 disassmbly_flavour): Removed.
7300
7301 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7302
7303 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7304
7305 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7306
7307 2003-04-12 Andrew Cagney <cagney@redhat.com>
7308
7309 * frame.h (struct frame_info): Move definition from here ...
7310 * frame.c (struct frame_info): ... to here.
7311
7312 2003-04-12 Andrew Cagney <cagney@redhat.com>
7313
7314 * gdbthread.h (save_infrun_state): Delete parameter
7315 "prev_func_start".
7316 (struct thread_info): Delete field "prev_func_start".
7317 (load_infrun_state): Ditto.
7318 * thread.c (load_infrun_state, save_infrun_state): Update.
7319 * infrun.c (prev_func_start): Delete variable.
7320 (context_switch, init_wait_for_inferior): Update.
7321 (stop_stepping, keep_going): Update.
7322
7323 2003-04-12 Andrew Cagney <cagney@redhat.com>
7324
7325 * gdbarch.sh: Add missing opaque declarations.
7326 * gdbarch.h: Regnerate.
7327 * symtab.h: Add missing opaque declarations.
7328 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7329 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7330 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7331 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7332 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7333 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7334 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7335 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7336 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7337 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7338 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7339 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7340 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7341
7342 2003-04-11 Andrew Cagney <cagney@redhat.com>
7343
7344 * frame.c (get_frame_id): Return this frame's "id".
7345 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7346 function start.
7347 (legacy_saved_regs_this_id): Replace function body with
7348 internal-error.
7349 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7350 FRAME_OBSTACK_ZALLOC.
7351 (create_new_frame): Mark the frame ID as valid.
7352
7353 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7354
7355 * Makefile.in (libbfd_h): Added missing setting.
7356 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7357 according to the selected ABI.
7358
7359 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7360
7361 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7362
7363 2003-04-11 Andrew Cagney <cagney@redhat.com>
7364
7365 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7366 SAVED_PC_AFTER_CALL.
7367 * gdbarch.h, gdbarch.c: Regenerate.
7368 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7369 * x86-64-tdep.c (x86_64_init_abi): Update.
7370 * vax-tdep.c (vax_gdbarch_init): Update.
7371 * v850-tdep.c (v850_gdbarch_init): Update.
7372 * sparc-tdep.c (sparc_gdbarch_init): Update.
7373 * sh-tdep.c (sh_gdbarch_init): Update.
7374 * s390-tdep.c (s390_gdbarch_init): Update.
7375 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7376 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7377 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7378 * mips-tdep.c (mips_gdbarch_init): Update.
7379 * mcore-tdep.c (mcore_gdbarch_init): Update.
7380 * m68k-tdep.c (m68k_gdbarch_init): Update.
7381 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7382 * ia64-tdep.c (ia64_gdbarch_init): Update.
7383 (ia64_saved_pc_after_call): Update declaration.
7384 * i386ly-tdep.c (i386lynx_init_abi): Update.
7385 * i386-tdep.c (i386_gdbarch_init): Update.
7386 * hppa-tdep.c (hppa_gdbarch_init): Update.
7387 * h8300-tdep.c (h8300_gdbarch_init): Update.
7388 * frv-tdep.c (frv_gdbarch_init): Update.
7389 * cris-tdep.c (cris_gdbarch_init): Update.
7390 * avr-tdep.c (avr_gdbarch_init): Update.
7391 * arm-tdep.c (arm_gdbarch_init): Update.
7392 * alpha-tdep.c (alpha_gdbarch_init): Update.
7393 * ns32knbsd-nat.c (frame_num_args): Update.
7394 * ns32k-tdep.c (umax_frame_num_args): Update.
7395 * mips-tdep.c (mips_init_frame_pc_first): Update.
7396 * infrun.c (step_over_function): Update.
7397 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7398 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7399 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7400 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7401 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7402 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7403 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7404 * arch-utils.c (init_frame_pc_default): Update.
7405 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7406 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7407 declaration.
7408
7409 2003-04-11 Andrew Cagney <cagney@redhat.com>
7410
7411 * i387-tdep.c: Update copyright.
7412 (i387_to_double): Delete function.
7413 (double_to_i387): Delete function.
7414
7415 2003-04-10 Andrew Cagney <cagney@redhat.com>
7416
7417 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7418 frame's function's address. Simplify.
7419 (d10v_frame_unwind_cache): Check that the frame's function is
7420 non-zero.
7421
7422 2003-04-10 Jim Blandy <jimb@redhat.com>
7423
7424 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7425 call to set_gdbarch_deprecated_push_arguments.
7426
7427 2003-04-10 Andrew Cagney <cagney@redhat.com>
7428
7429 * frame.c (fprint_frame_id): New function.
7430 (fprint_frame_type, fprint_frame): New function.
7431 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7432 (create_sentinel_frame, get_frame_id): Ditto.
7433 (frame_id_p, frame_id_eq): Ditto.
7434 (frame_id_inner, create_new_frame): Ditto.
7435 (legacy_get_prev_frame, get_prev_frame): Ditto.
7436 (deprecated_update_frame_pc_hack): Ditto.
7437 (frame_register_unwind): Ditto.
7438 (deprecated_update_frame_base_hack): Ditto.
7439
7440 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7441
7442 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7443 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7444 frame_chain function.
7445 * Makefile.in: Add dependencies due to above change.
7446
7447 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7448
7449 * blockframe.c (legacy_frame_chain_valid): Move call to
7450 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7451 inside_entry_file.
7452
7453 2003-04-09 Andrew Cagney <cagney@redhat.com>
7454
7455 * frame.h (struct frame_id): Replace "pc" and "base" with
7456 "stack_addr" and "code_addr". Update comments.
7457 (frame_id_build): Update parameter names and comment.
7458 (struct frame_info): Replace "id_p" and "id" with "this_id".
7459 * dummy-frame.c (dummy_frame_this_id): Update.
7460 * breakpoint.c (print_one_breakpoint): Update.
7461 * frame.c (get_frame_id): Update.
7462 (get_frame_base, frame_id_build): Update.
7463 (create_sentinel_frame, legacy_get_prev_frame): Update.
7464 (deprecated_update_frame_base_hack): Update.
7465 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7466 (frame_id_inner): Ditto.
7467
7468 2003-04-09 Andrew Cagney <cagney@redhat.com>
7469
7470 * defs.h (gdb_print_host_address): Make "addr" parameter a
7471 pointer constant.
7472 * utils.c (gdb_print_host_address): Update.
7473
7474 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7475
7476 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7477 register number for R0 is 0.
7478
7479 2003-04-09 J. Brobecker <brobecker@gnat.com>
7480
7481 * frame.h (struct gdbarch): Add opaque structure definition
7482 to avoid a compilation warning on LynxOS 4.0.
7483
7484 2003-04-09 Andrew Cagney <cagney@redhat.com>
7485
7486 * frame.h (struct frame_info): Delete field "pc". Replace
7487 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7488 structure.
7489 * frame.c (frame_pc_unwind): Update.
7490 (create_sentinel_frame): Do not set "pc".
7491 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7492 (get_frame_pc): Call frame_pc_unwind.
7493 (deprecated_update_frame_pc_hack): Update.
7494 (create_new_frame): Use "pc" not "->pc".
7495
7496 2003-04-09 Andrew Cagney <cagney@redhat.com>
7497
7498 * frame.c (get_frame_id): Eliminate code updating "frame".
7499 (legacy_get_prev_frame): Ditto.
7500 (get_frame_base): Return id.base directly.
7501 (deprecated_update_frame_base_hack): Update "id.base".
7502 * frame.h (struct frame_info): Delete field "frame".
7503
7504 2003-04-09 Andrew Cagney <cagney@redhat.com>
7505
7506 * NEWS: Mention that the "Sequent family" is obsolete.
7507 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7508 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7509 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7510 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7511 * config/i386/tm-ptx4.h: Obsolete file.
7512 * config/i386/tm-ptx.h: Obsolete file.
7513 * symm-tdep.c: Obsolete file.
7514 * config/i386/symmetry.mt: Obsolete file.
7515 * config/i386/tm-symmetry.h: Obsolete file.
7516 * symm-nat.c: Obsolete file.
7517 * config/i386/nm-symmetry.h: Obsolete file.
7518 * config/i386/xm-symmetry.h: Obsolete file.
7519 * config/i386/symmetry.mh: Obsolete file.
7520 * config/i386/nm-ptx4.h: Obsolete file.
7521 * config/i386/ptx4.mh: Obsolete file.
7522 * config/i386/ptx.mt: Obsolete file.
7523 * config/i386/ptx.mh: Obsolete file.
7524 * config/i386/xm-ptx4.h: Obsolete file.
7525 * config/i386/xm-ptx.h: Obsolete file.
7526
7527 2003-04-09 Andrew Cagney <cagney@redhat.com>
7528
7529 Obsolete mips*-*-mach3*.
7530 * NEWS: Mention that mips*-*-mach3* is obsolete.
7531 * m3-nat.c: Obsolete file.
7532 * config/nm-m3.h: Obsolete file.
7533 * config/mips/tm-mipsm3.h: Obsolete file.
7534 * config/mips/mipsm3.mt: Obsolete file.
7535 * config/mips/mipsm3.mh: Obsolete file.
7536 * config/mips/xm-mipsm3.h: Obsolete file.
7537 * mipsm3-nat.c: Obsolete file.
7538 * configure.host: Obsolete mips-dec-mach3*.
7539 * configure.tgt: Obsolete mips*-*-mach3*.
7540
7541 2003-04-09 Andrew Cagney <cagney@redhat.com>
7542
7543 * doublest.h: Update copyright.
7544 (deprecated_store_floating, deprecated_extract_floating): Rename
7545 store_floating and extract_floating. Update comments.
7546 * doublest.c: Update copyright.
7547 (extract_floating_by_length): Replace extract_floating.
7548 (store_floating_by_length): Replace store_floating.
7549 (deprecated_extract_floating): New function.
7550 (deprecated_store_floating): New function.
7551 (extract_typed_floating): Call extract_floating_by_length.
7552 (store_typed_floating): Call store_floating_by_length.
7553 * x86-64-tdep.c (x86_64_store_return_value): Update.
7554 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7555 (sh64_extract_return_value): Update.
7556 (sh_sh4_register_convert_to_virtual): Update.
7557 (sh_sh64_register_convert_to_virtual): Update.
7558 (sh_sh4_register_convert_to_raw): Update.
7559 (sh_sh64_register_convert_to_raw): Update.
7560 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7561 (rs6000_register_convert_to_raw): Update.
7562 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7563 (ia64_register_convert_to_raw): Update.
7564 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7565 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7566 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7567 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7568 (alpha_register_convert_to_raw): Update.
7569
7570 2003-04-08 Andrew Cagney <cagney@redhat.com>
7571
7572 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7573 * gdbarch.h, gdbarch.c: Re-generate.
7574 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7575 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7576 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7577 conditionally, use frame_pc_unwind as an alternative. Add
7578 comments.
7579 * arch-utils.c (init_frame_pc_default): Only call
7580 SAVED_PC_AFTER_CALL when available.
7581
7582 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7583
7584 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7585 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7586 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7587 (start_remote): Ditto.
7588 (handle_inferior_event): Ditto.
7589 (save_inferior_status): Ditto.
7590 (restore_inferior_status): Ditto.
7591 * infcmd.c (attach_command): Ditto.
7592 * fork-child.c (startup_inferior): Ditto.
7593 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7594 * alpha-tdep.c (heuristic_proc_start): Ditto.
7595 * mips-tdep.c (heuristic_proc_start): Ditto.
7596 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7597 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7598 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7599 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7600 * remote-vx.c (vx_create_inferior): Ditto.
7601
7602 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7603
7604 * infrun.c (stop_soon_quietly): Make it an enum, to better
7605 override the default behavior of handle_inferior_event.
7606 (clear_proceed_status): Update uses of stop_soon_quietly to
7607 reflect that it is now an enum.
7608 (start_remote): Ditto.
7609 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7610 is set to handle the new GNU/Linux kernel behavior for
7611 attach/sigstop. Update uses of stop_soon_quietly.
7612 * inferior.h (enum stop_kind): New enum.
7613 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7614 Reset normal handle_inferior_event behavior, afterwards.
7615 * fork-child.c (startup_inferior): Update.
7616 * alpha-tdep.c (heuristic_proc_start): Update.
7617 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7618 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7619 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7620 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7621 * remote-vx.c (vx_create_inferior): Update.
7622 * mips-tdep.c (heuristic_proc_start): Update.
7623
7624 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7625
7626 * disasm.c (dump_insns): Move variables inside loop, or they will
7627 be freed more than once, causing wild memory corruptions.
7628 (gdb_disassembly): Look for the substring "-thread",
7629 instead of "-threads" in the target name, to make sure to find
7630 the 'multi-thread' target. Also, make sure we do the right thing
7631 with the "core" target.
7632
7633 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7634
7635 * mips-tdep.c (mips_print_fp_register): New function, created from
7636 do_fp_register_row(). Registers are now (also) printed as hex.
7637 Only one register is printed per row.
7638 (mips_print_register, do_fp_register_row): Print floating point
7639 registers with mips_print_fp_register().
7640
7641 2003-04-06 Andrew Cagney <cagney@redhat.com>
7642
7643 * valprint.h (inspect_it): Add extern declaration.
7644 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7645 (selectors_info, classes_info): Ditto.
7646 (find_objc_msgcall): Fix indentation.
7647 (objc_printstr): Delete extern declarations.
7648
7649 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7650
7651 2003-04-06 Andrew Cagney <cagney@redhat.com>
7652
7653 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7654 Update comment.
7655 * frame.c (legacy_saved_regs_this_id): Update.
7656 (legacy_get_prev_frame): Update.
7657 * xstormy16-tdep.c: Update comment.
7658 * sparc-tdep.c (sparc_frame_chain): Update comment.
7659 * blockframe.c (legacy_frame_chain_valid): Update.
7660
7661 2003-04-06 Andrew Cagney <cagney@redhat.com>
7662
7663 * valprint.c (val_print_type_code_int): Delete #ifdef
7664 PRINT_TYPELESS_INTEGER code.
7665
7666 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7667 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7668 multi-arch definition.
7669 * gdbarch.h: Re-generate.
7670
7671 2003-04-05 Andrew Cagney <cagney@redhat.com>
7672
7673 Eliminate FRAME_FIND_SAVED_REGS.
7674 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7675 Change FSR parameter to a pointer.
7676 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7677 Assume FSR parameter is a pointer.
7678 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7679 Make fsr a pointer.
7680 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7681 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7682 saved_regs a pointer.
7683 (hppa_frame_saved_pc): Ditto.
7684 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7685 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7686 pointer.
7687 (restore_pc_queue): Make fsr a pointer.
7688 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7689 (hppa_frame_chain): Make saved_regs a pointer, call
7690 hppa_frame_init_saved_regs.
7691 * sparc-tdep.c: Include "gdb_assert.h".
7692 (sparc_frame_find_saved_regs): Replace internal_error with
7693 gdb_assert.
7694 * remote-vxsparc.c (vx_read_register): Delete reference to
7695 FRAME_FIND_SAVED_REGS.
7696 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7697 * gdbarch.h: Regenerate.
7698 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7699 (deprecated_get_frame_saved_regs): Delete declaration.
7700 (struct frame_saved_regs): Delete definition.
7701 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7702 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7703 (hppa_frame_find_saved_regs): Delete declaration.
7704 (FRAME_FIND_SAVED_REGS): Delete macro.
7705 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7706 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7707 FRAME_FIND_SAVED_REGS in comment.
7708
7709 2003-04-05 Andrew Cagney <cagney@redhat.com>
7710
7711 * frame.c (frame_func_unwind, get_frame_func): New functions.
7712 * frame.h (get_frame_func, frame_func_unwind): Declare.
7713 (struct frame_info): Add field "prev_func" for caching the
7714 previous frame's function address.
7715 * arm-tdep.c (arm_frameless_function_invocation): Combine
7716 get_pc_function_start and get_frame_pc into get_frame_func.
7717 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7718 (sh64_nofp_frame_init_saved_regs): Ditto.
7719 * s390-tdep.c (s390_function_start): Ditto.
7720 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7721 (rs6000_frameless_function_invocation): Ditto.
7722 (rs6000_frame_saved_pc): Ditto.
7723 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7724 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7725 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7726 (i386_frame_init_saved_regs): Ditto.
7727 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7728 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7729 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7730 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7731 * blockframe.c (frameless_look_for_prologue): Ditto.
7732
7733 2003-04-05 Andrew Cagney <cagney@redhat.com>
7734
7735 * frame.c (legacy_get_prev_frame): Link prev to next at the
7736 function start. Update comments.
7737
7738 2003-04-05 Andrew Cagney <cagney@redhat.com>
7739
7740 * frame.c (get_frame_id): Update comment.
7741 (legacy_get_prev_frame): Update comment.
7742 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7743 * gdbarch.h: Regenerate.
7744 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7745 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7746
7747 2003-04-05 Andrew Cagney <cagney@redhat.com>
7748
7749 * stack.c (print_frame_info): Use get_frame_pc.
7750
7751 2003-04-04 Andrew Cagney <cagney@redhat.com>
7752
7753 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7754 the frame's type from the unwinder.
7755 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7756 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7757 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7758 (get_frame_base_address): Use get_frame_type.
7759 (get_frame_locals_address, get_frame_args_address): Ditto.
7760 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7761 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7762 (struct frame_info): Add comment explaining why the frame contains
7763 a "type" field.
7764 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7765 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7766 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7767 NORMAL_FRAME.
7768 * frame-unwind.h: Include "frame.h".
7769 (struct frame_unwind): Add "type" field.
7770 * Makefile.in (frame_unwind_h): Add $(frame_h).
7771
7772 2003-04-04 Andrew Cagney <cagney@redhat.com>
7773
7774 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7775 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7776 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7777 get_frame_base.
7778 (d10v_unwind_dummy_id): Use frame_id_build.
7779 * frame.c (find_frame_sal): Use get_frame_pc.
7780 (create_new_frame): Use deprecated_update_frame_pc_hack and
7781 deprecated_update_frame_base_hack.
7782 (create_sentinel_frame): Add comment about ->pc going away.
7783 (get_prev_frame): Add comment about ->pc going away.
7784 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7785 frame_id_build, deprecated_update_frame_pc_hack and
7786 deprecated_update_frame_base_hack.
7787 (select_frame): Use get_frame_pc.
7788 (legacy_saved_regs_this_id): Use frame_id_build.
7789
7790 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7791
7792 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7793 signed integer case.
7794 (classify_argument): Handle enumerations and references.
7795
7796 2003-04-04 Andrew Cagney <cagney@redhat.com>
7797
7798 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7799 ID to NULL.
7800
7801 2003-04-01 Adam Fedor <fedor@gnu.org>
7802
7803 * gdb/objc-lang.c (selectors_info): Replace calls to
7804 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7805 SYMBOL_NATURAL_NAME.
7806 (classes_info, find_methods): Likewise.
7807
7808 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7809
7810 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7811 ``mach'' to the value determined by bfd_default_set_arch_mach().
7812
7813 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7814
7815 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7816 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7817 (mi-cmd-file.o): Update dependencies.
7818
7819 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7820
7821 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7822 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7823
7824 2003-04-01 Adam Fedor <fedor@gnu.org>
7825
7826 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7827 * language.h (struct language_defn): Add la_demangle.
7828 (language_demangle): Declare.
7829 * language.c (language_demangle): New function.
7830 (unk_lang_demangle): Likewise.
7831 (unknown_language_defn, auto_language_defn, local_language_defn):
7832 Add ukn_lang_demangle.
7833 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7834 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7835 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7836 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7837 * jv-lang.c (java_demangle): New function
7838 (java_language_defn): Use it for la_demangle element.
7839 * objc-lang.c (objc_demangle): Add options argument
7840 (objc_language_defn): Use objc_demangle for la_demangle element.
7841 * maint.c (maintenance_demangle): Replace switch with
7842 call to language_demangle.
7843 * utils.c (fprintf_symbol_filtered): Likewise.
7844
7845 2003-04-01 Andrew Cagney <cagney@redhat.com>
7846
7847 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7848 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7849 PRINT_TYPELESS_INTEGER.
7850 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7851 PUSH_RETURN_ADDRESS.
7852
7853 2003-04-01 Andrew Cagney <cagney@redhat.com>
7854
7855 * Makefile.in (d10v-tdep.o): Update dependencies.
7856 * d10v-tdep.c: Include "frame-base.h".
7857 (d10v_frame_unwind): Make constant.
7858 (d10v_frame_base_address): New function.
7859 (d10v_frame_base): New variable.
7860 (d10v_gdbarch_init): Set frame_base default.
7861 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7862 comment for base.
7863 (d10v_frame_unwind_cache): Set and use "prev_sp".
7864 (d10v_frame_this_id): Use the previous frame's inner most stack
7865 address and this frame's func address for the frame ID. Use
7866 frame_id_build. Don't analyze beyond the current instruction.
7867
7868 2003-04-01 Andrew Cagney <cagney@redhat.com>
7869
7870 * frame.h (get_frame_locals_address, get_frame_args_address):
7871 Refer to the base address, instead of the address of the first
7872 local or parameter.
7873
7874 2003-04-01 Andrew Cagney <cagney@redhat.com>
7875
7876 Add frame debug info addresses:
7877 * frame-base.c: New file.
7878 * frame-base.h: New file.
7879 * frame.h (struct frame_base): Add opaque declaration.
7880 (get_frame_base): Update comment.
7881 (get_frame_base_address): Declare.
7882 (get_frame_locals_address): Declare.
7883 (get_frame_args_address): Declare.
7884 (struct frame_info): Add "base" and "base_cache". Update
7885 comments on the unwinder.
7886 * frame.c: Include "frame-base.h".
7887 (get_frame_locals_address): New function.
7888 (get_frame_base_address): New function.
7889 (get_frame_args_address): New function.
7890 * findvar.c (read_var_value): Use get_frame_locals_address and
7891 get_frame_args_address.
7892 * stack.c (frame_info): Use get_frame_locals_address and
7893 get_frame_args_address.
7894 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7895 moved to "frame-base.c".
7896 * printcmd.c (print_frame_nameless_args): Ditto.
7897 * symtab.h (address_class): Update comments.
7898 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7899 get_frame_base_address.
7900 * dwarf2expr.c (execute_stack_op): Ditto.
7901 * Makefile.in (frame_base_h): Define.
7902 (frame.o): Update dependencies.
7903 (frame-base.o): Add dependencies.
7904 (SFILES): Add frame-base.c.
7905 (COMMON_OBS): Add frame-base.o.
7906
7907 2003-04-01 Andrew Cagney <cagney@redhat.com>
7908
7909 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7910 CALL_DUMMY_LENGTH): Ditto.
7911 * gdbarch.c: Re-generate.
7912 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7913 (CALL_DUMMY_LENGTH): Delete macro.
7914 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7915 * arm-tdep.c (arm_gdbarch_init): Ditto.
7916 * avr-tdep.c (avr_gdbarch_init): Ditto.
7917 * cris-tdep.c (cris_gdbarch_init): Ditto.
7918 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7919 * frv-tdep.c (frv_gdbarch_init): Ditto.
7920 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7921 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7922 * i386-tdep.c (i386_gdbarch_init): Ditto.
7923 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7924 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7925 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7926 * mips-tdep.c (mips_gdbarch_init): Ditto.
7927 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7928 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7929 * s390-tdep.c (s390_gdbarch_init): Ditto.
7930 * sh-tdep.c (sh_gdbarch_init): Ditto.
7931 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7932 * v850-tdep.c (v850_gdbarch_init): Ditto.
7933 * vax-tdep.c (vax_gdbarch_init): Ditto.
7934 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7935
7936 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7937
7938 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7939
7940 2003-04-01 Andrew Cagney <cagney@redhat.com>
7941
7942 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7943 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7944 * gdbarch.h, gdbarch.c: Re-generate.
7945 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7946 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7947 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7948 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7949 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7950 * infcmd.c (run_stack_dummy): Simplify assuming
7951 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7952 * infrun.c (handle_inferior_event): Ditto.
7953 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7954 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7955 * arm-tdep.c (arm_gdbarch_init): Ditto.
7956 * avr-tdep.c (avr_gdbarch_init): Ditto.
7957 * cris-tdep.c (cris_gdbarch_init): Ditto.
7958 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7959 * frv-tdep.c (frv_gdbarch_init): Ditto.
7960 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7961 * i386-tdep.c (i386_gdbarch_init): Ditto.
7962 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7963 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7964 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7965 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7966 * mips-tdep.c (mips_gdbarch_init): Ditto.
7967 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7968 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7969 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7970 * s390-tdep.c (s390_gdbarch_init): Ditto.
7971 * sh-tdep.c (sh_gdbarch_init): Ditto.
7972 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7973 * v850-tdep.c (v850_gdbarch_init): Ditto.
7974 * vax-tdep.c (vax_gdbarch_init): Ditto.
7975 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7976
7977 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7978
7979 * symfile.c (symfile_relocate_debug_section): Update call to
7980 bfd_simple_get_relocated_section_contents.
7981
7982 2003-03-31 Andrew Cagney <cagney@redhat.com>
7983
7984 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7985 * gdbarch.h, gdbarch.c: Regenerate.
7986 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7987 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7988 available.
7989 * frame.h (generic_fix_call_dummy): Delete declaration.
7990 * dummy-frame.h: Update comment.
7991 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7992 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7993 fix_call_dummy.
7994 * sh-tdep.c (sh_gdbarch_init): Ditto.
7995 * s390-tdep.c (s390_gdbarch_init): Ditto.
7996 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7997 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7998 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7999 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8000 * i386-tdep.c (i386_gdbarch_init): Ditto.
8001 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8002 * frv-tdep.c (frv_gdbarch_init): Ditto.
8003 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8004 * cris-tdep.c (cris_gdbarch_init): Ditto.
8005 * avr-tdep.c (avr_gdbarch_init): Ditto.
8006 * arm-tdep.c (arm_gdbarch_init): Ditto.
8007
8008 2003-03-31 J. Brobecker <brobecker@gnat.com>
8009
8010 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8011 (INIT_FRAME_AP): Likewise.
8012 (EXTRA_FRAME_INFO): Likewise.
8013
8014 2003-03-31 Andrew Cagney <cagney@redhat.com>
8015
8016 * gdbarch.sh: Include "symfile.h".
8017 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8018 * gdbarch.h, gdbarch.c: Re-generate.
8019 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8020 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8021 call_dummy_address, the default is at entry_point_address.
8022 * v850-tdep.c (v850_gdbarch_init): Ditto.
8023 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8024 * sh-tdep.c (sh_gdbarch_init): Ditto.
8025 * s390-tdep.c (s390_gdbarch_init): Ditto.
8026 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8027 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8028 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8029 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8030 * i386-tdep.c (i386_gdbarch_init): Ditto.
8031 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8032 * frv-tdep.c (frv_gdbarch_init): Ditto.
8033 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8034 * cris-tdep.c (cris_gdbarch_init): Ditto.
8035 * arm-tdep.c (arm_gdbarch_init): Ditto.
8036
8037 2003-03-31 Andrew Cagney <cagney@redhat.com>
8038
8039 * gdbarch.sh (CALL_DUMMY_P): Delete.
8040 * gdbarch.h, gdbarch.c: Re-generate.
8041 * inferior.h (CALL_DUMMY_P): Delete macro.
8042 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8043 * vax-tdep.c (vax_gdbarch_init): Update.
8044 * v850-tdep.c (v850_gdbarch_init): Update.
8045 * sparc-tdep.c (sparc_gdbarch_init): Update.
8046 * sh-tdep.c (sh_gdbarch_init): Update.
8047 * s390-tdep.c (s390_gdbarch_init): Update.
8048 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8049 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8050 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8051 * mips-tdep.c (mips_gdbarch_init): Update.
8052 * mcore-tdep.c (mcore_gdbarch_init): Update.
8053 * m68k-tdep.c (m68k_gdbarch_init): Update.
8054 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8055 * ia64-tdep.c (ia64_gdbarch_init): Update.
8056 * i386-tdep.c (i386_gdbarch_init): Update.
8057 * h8300-tdep.c (h8300_gdbarch_init): Update.
8058 * frv-tdep.c (frv_gdbarch_init): Update.
8059 * d10v-tdep.c (d10v_gdbarch_init): Update.
8060 * cris-tdep.c (cris_gdbarch_init): Update.
8061 * breakpoint.c (deprecated_frame_in_dummy): Update.
8062 * avr-tdep.c (avr_gdbarch_init): Update.
8063 * alpha-tdep.c (alpha_gdbarch_init): Update.
8064 * arm-tdep.c (arm_gdbarch_init): Update.
8065 * dummy-frame.c (dummy_frame_this_id): Update comments.
8066 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8067 * frame.c (legacy_get_prev_frame): Ditto.
8068 * valops.c (call_function_by_hand): Delete function.
8069 (hand_function_call): Rename to call_function_by_hand
8070
8071 2003-03-30 Andrew Cagney <cagney@redhat.com>
8072
8073 2002-11-10 Klee Dienes <kdienes@apple.com>
8074 * value.h (struct value): Update comment.
8075
8076 2003-03-30 Andrew Cagney <cagney@redhat.com>
8077
8078 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8079 D10V_FP_REGNUM.
8080 (d10v_gdbarch_init): Do not set fp_regnum.
8081
8082 * frame.c (get_frame_base): Force ID initialization.
8083 (get_prev_frame): Move computation of the frame ID from here ...
8084 (get_frame_id): ... to here.
8085 (legacy_get_prev_frame): Mark the frame ID as valid.
8086 * frame.h (struct frame_info): Add field "id_p".
8087
8088 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8089
8090 * i386-tdep.c (i386_store_struct_return): Removed.
8091 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8092
8093 2003-03-30 Andrew Cagney <cagney@redhat.com>
8094
8095 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8096 * gdbarch.h, gdbarch.c: Regenerate.
8097 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8098 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8099 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8100 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8101 * i386-tdep.c (i386_gdbarch_init): Ditto.
8102 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8103 * cris-tdep.c (cris_gdbarch_init): Ditto.
8104 * vax-tdep.c (vax_gdbarch_init): Ditto.
8105 * s390-tdep.c (s390_gdbarch_init): Ditto.
8106 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8107 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8108 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8109 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8110 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8111 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8112 * sparc-tdep.c (sparc_gdbarch_init): Update.
8113 * sh-tdep.c (sh_gdbarch_init): Update.
8114 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8115 * mips-tdep.c (mips_gdbarch_init): Update.
8116 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8117 * ia64-tdep.c (ia64_gdbarch_init): Update.
8118 * frv-tdep.c (frv_gdbarch_init): Update.
8119 * avr-tdep.c (avr_gdbarch_init): Update.
8120 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8121 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8122 instead of when push_dummy_call is not available.
8123
8124 2003-03-30 Andrew Cagney <cagney@redhat.com>
8125
8126 * infttrace.c: Include "gdbthread.h".
8127 (parent_attach_all): Fix function signature.
8128 (call_ptrace): Update call.
8129 * Makefile.in (infttrace.o): Update dependencies.
8130
8131 2003-03-30 Andrew Cagney <cagney@redhat.com>
8132
8133 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8134 PUSH_RETURN_ADDRESS.
8135 * gdbarch.h, gdbarch.c: Regenerate.
8136 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8137 * x86-64-tdep.c (x86_64_init_abi): Update.
8138 * v850-tdep.c (v850_gdbarch_init): Update.
8139 * sparc-tdep.c (sparc_gdbarch_init): Update.
8140 * sh-tdep.c (sh_gdbarch_init): Update.
8141 * s390-tdep.c (s390_gdbarch_init): Update.
8142 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8143 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8144 * mips-tdep.c (mips_gdbarch_init): Update.
8145 * mcore-tdep.c (mcore_gdbarch_init): Update.
8146 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8147 * ia64-tdep.c (ia64_gdbarch_init): Update.
8148 * i386-tdep.c (i386_gdbarch_init): Update.
8149 * h8300-tdep.c (h8300_gdbarch_init): Update.
8150 * frv-tdep.c (frv_gdbarch_init): Update.
8151 * cris-tdep.c (cris_gdbarch_init): Update.
8152 * avr-tdep.c (avr_gdbarch_init): Update.
8153 * arm-tdep.c (arm_gdbarch_init): Update.
8154 * valops.c (hand_function_call): Update.
8155
8156 2003-03-29 Andrew Cagney <cagney@redhat.com>
8157
8158 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8159 sizeof_call_dummy_words.
8160 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8161 define.
8162 * gdbarch.h: Regenerate.
8163
8164 2003-03-29 Andrew Cagney <cagney@redhat.com>
8165
8166 * infttrace.h: New file.
8167 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8168 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8169 (hpread_read_doc_function_type): Detect an initialized type1.
8170 (hpread_quick_traverse): Initialize mod_name_string.
8171 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8172 (som_solib_get_solib_by_pc): Declare.
8173 (so_lib_thread_start_addr): Declare.
8174 (no_shared_libraries): Declare.
8175 * somread.c (init_import_symbols): Make static. Add forward
8176 declaration.
8177 * config/pa/nm-hppah.h: Include "infttrace.h" for
8178 parent_attach_all.
8179 (hppa_insert_hw_watchpoint): Declare.
8180 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8181 * hppah-nat.c: Include "gdb_string.h".
8182 (parent_attach_all): Delete extern declaration, moved to
8183 "infttrace.h".
8184 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8185 int.
8186 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8187 * Makefile.in (infttrace_h): Define.
8188 (hpread.o): Update dependencies.
8189 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8190 * hppa-hpux-tdep.c: Include "gdb_string.h".
8191 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8192 * infrun.c (handle_inferior_event): Always initialize
8193 stepped_after_stopped_by_watchpoint. Add default and remove
8194 fallthrough in switch statement.
8195 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8196 parameter to int.
8197 (hppa_remove_hw_watchpoint): Ditto.
8198
8199 2003-03-29 Andrew Cagney <cagney@redhat.com>
8200
8201 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8202 offset.
8203
8204 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8205
8206 * arm-tdep.c (arm_push_arguments): Delete.
8207 (struct stack_item): New type.
8208 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8209 (arm_store_struct_return): Delte.
8210 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8211 arm_push_arguments or arm_store_struct_return.
8212
8213 2003-03-28 Andrew Cagney <cagney@redhat.com>
8214
8215 * Makefile.in (d10v-tdep.o): Update dependencies.
8216 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8217 * d10v-tdep.c: Include "remote.h".
8218 (target_resume_hook): Delete extern declaration.
8219 (target_wait_loop_hook): Ditto.
8220 (tdisassemble_command): Eliminate assignment in "if" conditional.
8221 (d10v_ts2_register_sim_regno): Eliminate call to
8222 legacy_register_sim_regno.
8223 (d10v_ts3_register_sim_regno): Ditto.
8224
8225 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8226
8227 * thread.c: Reindented.
8228 * lin-lwp.c: Ditto.
8229 * linux-proc.c: Ditto.
8230
8231 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8232
8233 * MAINTAINERS (write after approval): Add myself.
8234
8235 2003-03-27 Theodore A. Roth <troth@openavr.org>
8236
8237 * objc-exp.y: Add missing semi-colons.
8238
8239 2003-03-27 Andrew Cagney <cagney@redhat.com>
8240
8241 * regcache.c (write_sp): Delete function and references.
8242 * inferior.h (write_sp): Delete declaration.
8243 * valops.c (hand_function_call): Replace write_sp with
8244 TARGET_WRITE_SP.
8245 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8246 (sparc_pop_frame): Ditto.
8247
8248 2003-03-27 Andrew Cagney <cagney@redhat.com>
8249
8250 * NEWS: Mention removal of support for hppa*-*-bsd* and
8251 hppa*-*-osf* natives, and hppa*-*-pro* target.
8252 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8253 * config/pa/xm-pa.h: Obsolete file.
8254 * config/pa/xm-hppab.h: Obsolete file.
8255 * config/pa/nm-hppab.h: Obsolete file.
8256 * config/pa/tm-hppab.h: Obsolete file.
8257 * config/pa/tm-hppao.h: Obsolete file.
8258 * config/pa/nm-hppao.h: Obsolete file.
8259 * config/pa/tm-pro.h: Obsolete file.
8260 * config/pa/hppaosf.mt: Obsolete file.
8261 * config/pa/hppaosf.mh: Obsolete file.
8262 * config/pa/hppapro.mt: Obsolete file.
8263 * config/pa/hppabsd.mt: Obsolete file.
8264 * config/pa/hppabsd.mh: Obsolete file.
8265 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8266 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8267 hppa*-*-osf*.
8268
8269 2003-03-27 Andrew Cagney <cagney@redhat.com>
8270
8271 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8272 push_arguments. Don't set push_return_address or write_sp.
8273 (d10v_push_dummy_call): Replace d10v_push_arguments.
8274 (d10v_push_return_address, d10v_write_sp): Delete function,
8275 handled by push_dummy_call.
8276
8277 2003-03-26 Andrew Cagney <cagney@redhat.com>
8278
8279 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8280 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8281 regcache and dummy_addr parameters.
8282 * gdbarch.h, gdbarch.c: Re-generate.
8283 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8284 available; assume it will handle stack alignment and return
8285 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8286 legacy_push_arguments.
8287 (legacy_push_arguments): Rename default_push_arguments.
8288 * value.h (legacy_push_arguments): Rename default_push_arguments.
8289 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8290 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8291 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8292 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8293 * config/i386/tm-symmetry.h: Update.
8294 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8295 * x86-64-tdep.c (x86_64_init_abi): Update.
8296 * v850-tdep.c (v850_gdbarch_init): Update.
8297 * sparc-tdep.c (sparc_gdbarch_init): Update.
8298 * sh-tdep.c (sh_gdbarch_init): Update.
8299 * s390-tdep.c (s390_gdbarch_init): Update.
8300 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8301 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8302 * mips-tdep.c (mips_gdbarch_init): Update.
8303 * mcore-tdep.c (mcore_gdbarch_init): Update.
8304 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8305 * ia64-tdep.c (ia64_gdbarch_init): Update.
8306 * i386-tdep.c (i386_gdbarch_init): Update.
8307 * hppa-tdep.c (hppa_gdbarch_init): Update.
8308 * h8300-tdep.c (h8300_gdbarch_init): Update.
8309 * frv-tdep.c (frv_gdbarch_init): Update.
8310 * d10v-tdep.c (d10v_gdbarch_init): Update.
8311 * cris-tdep.c (cris_gdbarch_init): Update.
8312 * avr-tdep.c (avr_gdbarch_init): Update.
8313 * arm-tdep.c (arm_gdbarch_init): Update.
8314 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8315 * alpha-tdep.c (alpha_gdbarch_init): Update.
8316
8317 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8318
8319 * signals/signals.c (do_target_signal_to_host): Correct realtime
8320 signal range test.
8321
8322 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8323
8324 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8325 (struct sal_chain, map_catch_names): Remove.
8326 (catch_exception_command_1): Don't call
8327 handle_gnu_4_16_catch_command.
8328
8329 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8330
8331 From Mark Dettinger <dettinge@de.ibm.com>:
8332 * dwarf2cfi.c (read_2u): Increment pointer by two.
8333
8334 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8335
8336 * signals/signals.c: Fix typos in last change.
8337
8338 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8339
8340 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8341 not already defined. Use __SIGRTMIN if available.
8342 (target_signal_from_host): Remove SIGRTMIN block.
8343 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8344 the signal is within the realtime range.
8345
8346 2003-03-25 Adam Fedor <fedor@gnu.org>
8347
8348 * Makefile.in (infrun.o): Add $(language_h)
8349 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8350 for language specific trampolines.
8351 * language.h (struct language_defn): Add skip_trampoline.
8352 (skip_language_trampoline): Declare.
8353 * language.c (unk_lang_trampoline, skip_language_trampoline):
8354 New functions.
8355 (unknown_language_defn, auto_language_defn, local_language_defn):
8356 Add ukn_lang_trampoline.
8357 * ada-lang.c (ada_language_defn): Add NULL for language
8358 specific skip_trampoline.
8359 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8360 scm-lang.c: Likewise.
8361 * objc-lang.c (objc_skip_trampoline): New function.
8362 (objc_language_defn): Add objc_skip_trampoline.
8363
8364 2003-03-25 Andrew Cagney <cagney@redhat.com>
8365
8366 * frame.c (get_prev_frame): Delay validating a frame's ID -
8367 non-NULL, didn't go backwards - until an attempt to unwind it to
8368 the previous frame.
8369
8370 2003-03-25 Andrew Cagney <cagney@redhat.com>
8371
8372 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8373 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8374 * gdbarch.h, gdbarch.c: Re-generate.
8375 * config/sparc/tm-sparc.h
8376 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8377 * sparc-tdep.c (sparc_gdbarch_init): Set
8378 deprecated_extra_stack_alignment_needed.
8379 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8380 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8381 extra_stack_alignment_needed.
8382 * v850-tdep.c (v850_gdbarch_init): Ditto.
8383 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8384 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8385 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8386 * cris-tdep.c (cris_gdbarch_init): Ditto.
8387 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8388 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8389
8390 2003-03-25 Andrew Cagney <cagney@redhat.com>
8391
8392 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8393 STORE_STRUCT_RETURN.
8394 * gdbarch.h, gdbarch.c: Regenerate.
8395 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8396 (d10v_push_arguments): Set the struct return register.
8397 (d10v_gdbarch_init): Update.
8398 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8399 * x86-64-tdep.c (x86_64_init_abi): Update.
8400 * vax-tdep.c (vax_gdbarch_init): Update.
8401 * v850-tdep.c (v850_gdbarch_init): Update.
8402 * sparc-tdep.c (sparc_gdbarch_init): Update.
8403 * sh-tdep.c (sh_gdbarch_init): Update.
8404 * s390-tdep.c (s390_gdbarch_init): Update.
8405 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8406 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8407 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8408 * mips-tdep.c (mips_gdbarch_init): Update.
8409 * mcore-tdep.c (mcore_gdbarch_init): Update.
8410 * m68k-tdep.c (m68k_gdbarch_init): Update.
8411 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8412 * ia64-tdep.c (ia64_gdbarch_init): Update.
8413 * i386-tdep.c (i386_gdbarch_init): Update.
8414 * hppa-tdep.c (hppa_gdbarch_init): Update.
8415 * h8300-tdep.c (h8300_gdbarch_init): Update.
8416 * frv-tdep.c (frv_gdbarch_init): Update.
8417 * cris-tdep.c (cris_gdbarch_init): Update.
8418 * avr-tdep.c (avr_gdbarch_init): Update.
8419 * arm-tdep.c (arm_gdbarch_init): Update.
8420 * alpha-tdep.c (alpha_gdbarch_init): Update.
8421
8422 2003-03-25 Andrew Cagney <cagney@redhat.com>
8423
8424 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8425 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8426 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8427 * gdbarch.h, gdbarch.c: Regenerate.
8428 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8429 call_dummy_stack_adjust_p.
8430 * vax-tdep.c (vax_gdbarch_init): Ditto.
8431 * v850-tdep.c (v850_gdbarch_init): Ditto.
8432 * sh-tdep.c (sh_gdbarch_init): Ditto.
8433 * s390-tdep.c (s390_gdbarch_init): Ditto.
8434 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8435 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8436 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8437 * mips-tdep.c (mips_gdbarch_init): Ditto.
8438 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8439 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8440 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8441 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8442 * i386-tdep.c (i386_gdbarch_init): Ditto.
8443 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8444 * frv-tdep.c (frv_gdbarch_init): Ditto.
8445 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8446 * cris-tdep.c (cris_gdbarch_init): Ditto.
8447 * avr-tdep.c (avr_gdbarch_init): Ditto.
8448 * arm-tdep.c (arm_gdbarch_init): Ditto.
8449 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8450 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8451 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8452 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8453 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8454 call_dummy_stack_adjust_p.
8455 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8456 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8457 * sparc-tdep.c (sparc32_push_arguments): Update.
8458 * valops.c (hand_function_call): Update.
8459
8460 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8461
8462 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8463 set_gdbarch_char_signed.
8464
8465 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8466
8467 PR cli/548
8468 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8469
8470 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8471
8472 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8473 (_initialize_arm_tdep): Don't set tm_print_insn.
8474
8475 2003-03-24 Adam Fedor <fedor@gnu.org>
8476
8477 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8478 * objc-lang.h: Add multiple inclusion protection.
8479 (start_msglist, add_msglist, end_msglist): Additional declarations.
8480
8481 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8482
8483 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8484 value was renamed to ARM_FLOAT_SOFT_FPA.
8485
8486 2003-03-23 Andrew Cagney <cagney@redhat.com>
8487
8488 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8489 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8490 * gdbarch.h, gdbarch.c: Regenerate.
8491 * valops.c (hand_function_call): Update.
8492 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8493 * frame.c (legacy_saved_regs_this_id): Update.
8494 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8495 * dummy-frame.h: Update.
8496 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8497 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8498 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8499 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8500 * config/m68k/tm-sun3.h: Update.
8501 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8502 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8503 * x86-64-tdep.c (x86_64_init_abi): Update.
8504 * vax-tdep.c (vax_gdbarch_init): Update.
8505 * v850-tdep.c (v850_gdbarch_init): Update.
8506 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8507 * sh-tdep.c (sh_gdbarch_init): Update.
8508 * s390-tdep.c (s390_gdbarch_init): Update.
8509 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8510 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8511 (frame_get_saved_regs): Update.
8512 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8513 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8514 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8515 * mips-tdep.c (mips_gdbarch_init): Update.
8516 * mcore-tdep.c (mcore_gdbarch_init): Update.
8517 * m68k-tdep.c (m68k_gdbarch_init): Update.
8518 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8519 * ia64-tdep.c (ia64_gdbarch_init): Update.
8520 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8521 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8522 (i386_interix_back_one_frame): Update.
8523 * hppa-tdep.c (hppa_gdbarch_init): Update.
8524 (hppa_init_extra_frame_info): Update.
8525 * h8300-tdep.c (h8300_gdbarch_init): Update.
8526 * frv-tdep.c (frv_gdbarch_init): Update.
8527 * cris-tdep.c (cris_gdbarch_init): Update.
8528 * avr-tdep.c (avr_gdbarch_init): Update.
8529 * arm-tdep.c (arm_gdbarch_init): Update.
8530 * alpha-tdep.c (alpha_gdbarch_init): Update.
8531
8532 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8533
8534 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8535 (arm_get_fp_model): Declare.
8536 * arm-tdep.c (fp_model_strings): New string array.
8537 (arm_fp_model, current_fp_model): New variables.
8538 (arm_get_fp_model): New function.
8539 (arm_set_fp): New function.
8540 (set_fp_model_sfunc): New function.
8541 (show_fp_model): New function.
8542 (_initialize_arm_tdep): Add new command to set/show the FPU.
8543 (arm_extract_return_value): Use arm_get_fp_model.
8544 (arm_store_return_value): Likewise.
8545 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8546 to initialize the floating-point data types.
8547 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8548 model is FPA.
8549
8550 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8551
8552 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8553 the current setting of each value.
8554 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8555 new_set and new_show. Use add_setshow_cmd_full and
8556 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8557 commands and add new version as subcommands of "set/show arm".
8558
8559 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8560
8561 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8562 (set_arm_command, show_arm_command): New functions.
8563 (_initialize_arm_tdep): Add them.
8564 (num_disassembly_options): Renamed from num_flavor_options.
8565 (valid_disassembly_styles): Renamed from valid_flavors.
8566 (disassembly_style): Renamed from disassembly_flavor.
8567 (set_disassembly_style_sfunc): Renamed from
8568 set_disassembly_flavor_sfunc.
8569 (set_disassembly_style): Renamed from set_disassembly_flavor.
8570 (arm_othernames): Updated.
8571 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8572 command. Add "set/show arm disassembly" commands. Deprecate
8573 "othernames" command.
8574
8575 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8576
8577 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8578 (arm-tdep.o): Depend on elf_arm_h.
8579
8580 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8581
8582 * Makefile.in (coff_internal_h): Define.
8583 (arm-tdep.o): Update dependencies.
8584
8585 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8586
8587 * arm-tdep.c (prologue_cache): Delete.
8588 (check_prologue_cache, save_prologue_cache): Delete.
8589 (arm_scan_prologue): Don't check or update the prologue_cache.
8590 (arm_gdb_arch_init): Don't initialize it.
8591 (_initialize_arm_tdep): Likewise.
8592
8593 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8594
8595 * MAINTAINERS (tui): Maintainer of tui code.
8596
8597 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8598
8599 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8600 (i386-cygwin-tdep.o): Add dependencies.
8601 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8602 * i386-cygwin-tdep.c: New file.
8603 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8604 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8605
8606 2003-03-20 Andrew Cagney <cagney@redhat.com>
8607
8608 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8609 (handle_inferior_event): Remove code calling
8610 DYNAMIC_TRAMPOLINE_NEXTPC.
8611
8612 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8613 already has a full path.
8614
8615 * main.c (gdb_main): Return 1.
8616 (captured_main): Call error to report an invalid interpreter.
8617
8618 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8619 * alpha-osf1-tdep.c: Include "gdb_string.h".
8620
8621 2003-03-19 J. Brobecker <brobecker@gnat.com>
8622
8623 Continuing work to convert the hppa targets to multiarch partial.
8624
8625 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8626 method, now that hppa_push_dummy_frame has a conformant prototype.
8627 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8628 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8629 for the switch to multiarch partial.
8630
8631 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8632
8633 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8634 when iss is issNull.
8635
8636 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8637
8638 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8639 NUM_REGS bounds check.
8640
8641 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8642
8643 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8644 * mips-tdep.c (gdb_assert.h): Include.
8645 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8646 (mips_register_name): Handle integer registers explicitly. Add
8647 bounds checking.
8648 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8649 (mips_lsi33k_reg_names): Don't list integer registers; they're
8650 handled by mips_register_name() now.
8651 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8652 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8653 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8654 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8655 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8656
8657 2003-03-18 Andrew Cagney <cagney@redhat.com>
8658
8659 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8660 a void pointer.
8661 * gdbtypes.h (print_scalar_formatted): Update declaration.
8662 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8663
8664 2003-03-18 J. Brobecker <brobecker@gnat.com>
8665
8666 * infrun.c (observer.h): Add #include.
8667 (normal_stop): Add call to observer_notify_normal_stop.
8668 * Makefile.in (infrun.o): Add dependency on observer.h.
8669
8670 2003-03-18 J. Brobecker <brobecker@gnat.com>
8671
8672 Continuing work to convert the hppa targets to multiarch partial.
8673 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8674 parameter. Reformat comment.
8675 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8676 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8677 to match new profile.
8678
8679 2003-03-18 J. Brobecker <brobecker@gnat.com>
8680
8681 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8682 appear to be working in any case.
8683
8684 2003-03-18 J. Brobecker <brobecker@gnat.com>
8685
8686 * observer.c (observer_test_first_observer): New static variable.
8687 (observer_test_second_observer): Likewise.
8688 (observer_test_third_observer): Likewise.
8689 (observer_test_first_notification_function): New static function.
8690 (observer_test_second_notification_function): Likewise.
8691 (observer_test_third_notification_function): Likewise.
8692
8693 2003-03-17 J. Brobecker <brobecker@gnat.com>
8694
8695 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8696 * somsolib.c (gdb_assert.h): Likewise.
8697 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8698 (somsolib.o): Likewise.
8699
8700 2003-03-17 Andrew Cagney <cagney@redhat.com>
8701
8702 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8703 BFD. Simplify setting of di.endian.
8704
8705 2003-03-17 Andrew Cagney <cagney@redhat.com>
8706
8707 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8708 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8709
8710 From Elena Zannoni <ezannoni@redhat.com>
8711 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8712 vector and floating-point parameters.
8713 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8714 convention.
8715 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8716
8717 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8718
8719 * MAINTAINERS: Remove my name from several maintainership roles.
8720
8721 2003-03-17 Andrew Cagney <cagney@redhat.com>
8722
8723 Fix frame off-by-one bug.
8724 * frame-unwind.h (frame_this_id_ftype): Replace
8725 frame_unwind_id_ftype.
8726 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8727 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8728 with "prev_register".
8729 * frame-unwind.c (frame_unwind_find_by_pc): Return
8730 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8731 comment.
8732 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8733 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8734 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8735 (dummy_frame_unwind): Update.
8736 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8737 sentinel_frame_register_unwind.
8738 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8739 (sentinel_frame_unwinder): Update.
8740 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8741 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8742 * frame.c (create_sentinel_frame): Update. Initialize
8743 "prologue_cache" instead of "unwind_cache".
8744 (frame_register_unwind): Call this frame's prev_register with the
8745 next frame and this frame's prologue cache.
8746 (get_prev_frame): Simplify. Always call prev frame's this_id with
8747 this frame and prev frame's prologue cache. Document that this
8748 call is shifted one to the left when compared to the
8749 frame_register_unwind call.
8750 (legacy_saved_regs_prev_register): Replace
8751 frame_saved_regs_register_unwind.
8752 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8753 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8754 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8755 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8756 (d10v_frame_unwind): Update.
8757 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8758 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8759 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8760 "saved_regs" with "this_saved_regs".
8761
8762 2003-03-16 Andrew Cagney <cagney@redhat.com>
8763
8764 * frame.c (frame_pop): Don't call target_store_registers. Fix
8765 problem reported by Mark Kettenis.
8766
8767 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8768
8769 * i386-tdep.c (i386_register_type): Renamed from
8770 i386_register_virtual_type. Adjust function signature.
8771 (i386_gdbarch_init): Set register_type instead of
8772 deprecated_max_register_raw_size,
8773 deprecated_max_register_virtual_size and register_virtual_type.
8774
8775 2003-03-14 Andrew Cagney <cagney@redhat.com>
8776
8777 * frame.c (get_prev_frame): When a legacy frame, always call
8778 legacy_get_prev_frame. Simplify unwind code using assumption that
8779 the unwinder is new.
8780 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8781 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8782 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8783
8784 2003-03-14 Andrew Cagney <cagney@redhat.com>
8785
8786 * frame.c (get_saved_register): Delete function.
8787 * frame.h (get_saved_register): Delete declaration.
8788 * xstormy16-tdep.c: Update comment.
8789 * regcache.h: Update comments.
8790 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8791 get_saved_register and extract_address, use
8792 frame_read_unsigned_register.
8793 (sparc_frame_saved_pc): Ditto.
8794 (sparc_get_saved_register): Instead of get_saved_register, use
8795 frame_register.
8796 (sparc_pop_frame): Ditto.
8797 * findvar.c: Update comments.
8798 (value_of_register): Call frame_register instead of
8799 get_saved_register.
8800 (value_from_register): Ditto.
8801 * config/sparc/tm-sparc.h: Update comment.
8802 * breakpoint.c: Update comment.
8803
8804 2003-03-14 Andrew Cagney <cagney@redhat.com>
8805
8806 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8807 GET_SAVED_REGISTER.
8808 * gdbarch.h, gdbarch.c: Re-generate.
8809 * frame.h: Update comments.
8810 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8811 * x86-64-tdep.c (x86_64_init_abi): Update.
8812 * sparc-tdep.c (sparc_gdbarch_init): Update.
8813 * sh-tdep.c (sh_gdbarch_init): Update.
8814 * mips-tdep.c (mips_gdbarch_init): Update.
8815 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8816 * cris-tdep.c (cris_gdbarch_init): Update.
8817 * ia64-tdep.c (ia64_gdbarch_init): Update.
8818 * frame.c (frame_register): Update.
8819 (get_saved_register): Update.
8820 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8821
8822 2003-03-13 Andrew Cagney <cagney@redhat.com>
8823
8824 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8825 * gdbarch.h, gdbarch.c: Regenerate.
8826 * valops.c (hand_function_call): Update comment.
8827 * stack.c (return_command): Update comment.
8828 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8829 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8830 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8831 * x86-64-tdep.c (x86_64_init_abi): Update.
8832 * vax-tdep.c (vax_gdbarch_init): Update.
8833 * v850-tdep.c (v850_gdbarch_init): Update.
8834 * sparc-tdep.c (sparc_gdbarch_init): Update.
8835 * sh-tdep.c (sh_gdbarch_init): Update.
8836 * s390-tdep.c (s390_gdbarch_init): Update.
8837 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8838 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8839 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8840 * mips-tdep.c (mips_gdbarch_init): Update.
8841 * mcore-tdep.c (mcore_gdbarch_init): Update.
8842 * m68k-tdep.c (m68k_gdbarch_init): Update.
8843 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8844 * ia64-tdep.c (ia64_gdbarch_init): Update.
8845 * i386-tdep.c (i386_gdbarch_init): Update.
8846 * hppa-tdep.c (hppa_gdbarch_init): Update.
8847 * h8300-tdep.c (h8300_gdbarch_init): Update.
8848 * frv-tdep.c (frv_gdbarch_init): Update.
8849 * cris-tdep.c (cris_gdbarch_init): Update.
8850 * avr-tdep.c (avr_gdbarch_init): Update.
8851 * arm-tdep.c (arm_gdbarch_init): Update.
8852 * alpha-tdep.c (alpha_gdbarch_init): Update.
8853
8854 2003-03-13 Andrew Cagney <cagney@redhat.com>
8855
8856 * frame.c (legacy_frame_p): New function.
8857 (get_prev_frame): Use legacy_frame_p.
8858 * frame.h (legacy_frame_p): Declare.
8859
8860 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8861
8862 * MAINTAINERS (write after approval): Alphabetically
8863 listing corrected.
8864
8865 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8866
8867 * MAINTAINERS (write after approval): Add myself.
8868
8869 2003-03-12 Andrew Cagney <cagney@redhat.com>
8870
8871 * frame.c (get_prev_frame): Rename the frame parameter to
8872 "this_frame".
8873 (get_next_frame, legacy_get_prev_frame): Ditto.
8874
8875 2003-03-12 Andrew Cagney <cagney@redhat.com>
8876
8877 * frame.c (get_current_frame): Check target_has_registers before
8878 checking target_has_stack.
8879 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8880 instead of deprecated_selected_frame.
8881 * findvar.c (value_of_register): Pass "frame", not
8882 deprecated_selected_frame, to value_of_builtin_reg.
8883
8884 2003-03-12 Andrew Cagney <cagney@redhat.com>
8885
8886 * regcache.c (regcache_cooked_write_signed): New function.
8887 (regcache_cooked_write_unsigned): New function.
8888 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8889 (regcache_cooked_read_signed): Fix regnum in range assertion.
8890 * regcache.h (regcache_cooked_write_signed): Declare.
8891 (regcache_cooked_write_unsigned): Declare.
8892
8893 2003-03-12 Andrew Cagney <cagney@redhat.com>
8894
8895 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8896 * gdbarch.h, gdbarch.c: Re-generate.
8897 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8898 * x86-64-tdep.h: Update.
8899 * x86-64-tdep.c (x86_64_init_abi): Update.
8900 * v850-tdep.c (v850_gdbarch_init): Update.
8901 * sparc-tdep.c (sparc_gdbarch_init): Update.
8902 * sh-tdep.c (sh_gdbarch_init): Update.
8903 * s390-tdep.c (s390_gdbarch_init): Update.
8904 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8905 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8906 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8907 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8908 * mips-tdep.c (mips_gdbarch_init): Update.
8909 * mcore-tdep.c (mcore_gdbarch_init): Update.
8910 * m68k-tdep.c (m68k_gdbarch_init): Update.
8911 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8912 * ia64-tdep.c (ia64_gdbarch_init): Update.
8913 * i386-tdep.c (i386_gdbarch_init): Update.
8914 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8915 * hppa-tdep.c (hppa_gdbarch_init): Update.
8916 * h8300-tdep.c (h8300_gdbarch_init): Update.
8917 * frv-tdep.c (frv_gdbarch_init): Update.
8918 * cris-tdep.c (cris_gdbarch_init): Update.
8919 * avr-tdep.c (avr_gdbarch_init): Update.
8920 * arm-tdep.c (arm_gdbarch_init): Update.
8921 * alpha-tdep.c (alpha_gdbarch_init): Update.
8922 * sh-tdep.c (sh_init_extra_frame_info): Update.
8923 (sh64_init_extra_frame_info): Update.
8924 * ns32knbsd-nat.c (frame_num_args): Update.
8925 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8926 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8927 (xstormy16_frame_chain_valid): Update.
8928 * vax-tdep.c (vax_saved_pc_after_call): Update.
8929 * v850-tdep.c (v850_frame_chain): Update.
8930 (v850_pop_frame): Update.
8931 (v850_init_extra_frame_info): Update.
8932 * sparc-tdep.c (setup_arbitrary_frame): Update.
8933 * ns32k-tdep.c (umax_frame_num_args): Update.
8934 * s390-tdep.c (s390_pop_frame_regular): Update.
8935 * mn10300-tdep.c (mn10300_frame_chain): Update.
8936 (mn10300_pop_frame_regular): Update.
8937 (mn10300_init_extra_frame_info): Update.
8938 * mips-tdep.c (mips_init_frame_pc_first): Update.
8939 (mips_frame_chain): Update.
8940 (mips_pop_frame): Update.
8941 * mcore-tdep.c (mcore_frame_chain): Update.
8942 (mcore_pop_frame): Update.
8943 (mcore_init_extra_frame_info): Update.
8944 * arch-utils.c (init_frame_pc_default): Update.
8945 * m68k-tdep.c (isi_frame_num_args): Update.
8946 (delta68_frame_num_args): Update.
8947 (news_frame_num_args): Update.
8948 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8949 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8950 (alpha_frame_chain): Update.
8951 (alpha_pop_frame): Update.
8952 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8953 (hppa_init_extra_frame_info): Update.
8954 (hppa_frame_chain): Update.
8955 (hppa_frame_chain_valid): Update.
8956 * cris-tdep.c (cris_init_extra_frame_info): Update.
8957 * avr-tdep.c (avr_init_extra_frame_info): Update.
8958 * arm-tdep.c (arm_frame_chain_valid): Update.
8959 (arm_init_extra_frame_info): Update.
8960 (arm_pop_frame): Update.
8961 * frame.c (frame_pc_unwind): Update.
8962 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8963 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8964 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8965 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8966 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8967 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8968
8969 2003-03-12 Andrew Cagney <cagney@redhat.com>
8970
8971 Eliminate the need for POP_FRAME.
8972 * frame.c (do_frame_unwind_register): New function.
8973 (frame_pop): When no POP_FRAME, pop the frame using register
8974 unwind and a scratch regcache.
8975 (frame_saved_regs_pop): Delete function.
8976 (trad_frame_unwinder): Update.
8977 * d10v-tdep.c (d10v_frame_pop): Delete function.
8978 (d10v_frame_unwind): Update.
8979 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8980 (sentinel_frame_unwinder): Update.
8981 * dummy-frame.c (dummy_frame_pop): Delete function.
8982 (dummy_frame_unwind): Update.
8983 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8984 (struct frame_unwind): Update.
8985
8986 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8987
8988 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8989 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8990 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8991 Do range checks on register number obtained from debugging info.
8992 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8993 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8994 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8995 mapping function.
8996 (do_fp_register_row): Fix typo which caused double type to be
8997 used when attempting to unpack a float.
8998
8999 2003-03-11 J. Brobecker <brobecker@gnat.com>
9000
9001 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9002
9003 2003-03-11 Andrew Cagney <cagney@redhat.com>
9004
9005 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9006 frame. Problem found by Corinna Vinschen.
9007
9008 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9009
9010 * doublest.c (floatformat_from_length): Accept also
9011 the real size of 'long double' type.
9012
9013 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9014
9015 From Klee Dienes <kdienes@apple.com>:
9016 * breakpoint.c (bpstat_copy): Copy the command lines as well
9017 as the old value, to match what is freed in bpstat_clear.
9018
9019 2003-03-10 David Carlton <carlton@math.stanford.edu>
9020
9021 * minsyms.c (add_minsym_to_hash_table): Replace
9022 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9023 (compare_minimal_symbols, compact_minimal_symbols)
9024 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9025 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9026 of DEPRECATED_SYMBOL_MATCHES_NAME.
9027 (lookup_minimal_symbol_solib_trampoline): Ditto.
9028
9029 2003-03-10 Andrew Cagney <cagney@redhat.com>
9030
9031 * regcache.h (regcache_cooked_read_ftype): Define.
9032 (regcache_save, regcache_restore): Add a cooked_read parameter.
9033 * regcache.c (regcache_save, regcache_restore): Update.
9034 (do_cooked_read): New function.
9035 (regcache_cpy): Pass do_cooked_read to regcache_save and
9036 regcache_restore.
9037
9038 2003-03-10 Andrew Cagney <cagney@redhat.com>
9039
9040 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9041 * gdbarch.h, gdbarch.c: Re-generate.
9042 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9043 * x86-64-tdep.h: Update.
9044 * x86-64-tdep.c (x86_64_init_abi): Update.
9045 * v850-tdep.c (v850_gdbarch_init): Update.
9046 * sparc-tdep.c (sparc_gdbarch_init): Update.
9047 * sh-tdep.c (sh_gdbarch_init): Update.
9048 * s390-tdep.c (s390_gdbarch_init): Update.
9049 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9050 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9051 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9052 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9053 * mips-tdep.c (mips_gdbarch_init): Update.
9054 * mcore-tdep.c (mcore_gdbarch_init): Update.
9055 * m68k-tdep.c (m68k_gdbarch_init): Update.
9056 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9057 * ia64-tdep.c (ia64_gdbarch_init): Update.
9058 * i386-tdep.c (i386_gdbarch_init): Update.
9059 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9060 * hppa-tdep.c (hppa_gdbarch_init): Update.
9061 * h8300-tdep.c (h8300_gdbarch_init): Update.
9062 * frv-tdep.c (frv_gdbarch_init): Update.
9063 * cris-tdep.c (cris_gdbarch_init): Update.
9064 * avr-tdep.c (avr_gdbarch_init): Update.
9065 * arm-tdep.c (arm_gdbarch_init): Update.
9066 * alpha-tdep.c (alpha_gdbarch_init): Update.
9067 * sh-tdep.c (sh_init_extra_frame_info): Update.
9068 (sh64_init_extra_frame_info): Update.
9069 * ns32knbsd-nat.c (frame_num_args): Update.
9070 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9071 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9072 (xstormy16_frame_chain_valid): Update.
9073 * vax-tdep.c (vax_saved_pc_after_call): Update.
9074 * v850-tdep.c (v850_frame_chain): Update.
9075 (v850_pop_frame): Update.
9076 (v850_init_extra_frame_info): Update.
9077 * sparc-tdep.c (setup_arbitrary_frame): Update.
9078 * ns32k-tdep.c (umax_frame_num_args): Update.
9079 * s390-tdep.c (s390_pop_frame_regular): Update.
9080 * mn10300-tdep.c (mn10300_frame_chain): Update.
9081 (mn10300_pop_frame_regular): Update.
9082 (mn10300_init_extra_frame_info): Update.
9083 * mips-tdep.c (mips_init_frame_pc_first): Update.
9084 (mips_frame_chain): Update.
9085 (mips_pop_frame): Update.
9086 * mcore-tdep.c (mcore_frame_chain): Update.
9087 (mcore_pop_frame): Update.
9088 (mcore_init_extra_frame_info): Update.
9089 * arch-utils.c (init_frame_pc_default): Update.
9090 * m68k-tdep.c (isi_frame_num_args): Update.
9091 (delta68_frame_num_args): Update.
9092 (news_frame_num_args): Update.
9093 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9094 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9095 (alpha_frame_chain): Update.
9096 (alpha_pop_frame): Update.
9097 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9098 (hppa_init_extra_frame_info): Update.
9099 (hppa_frame_chain): Update.
9100 (hppa_frame_chain_valid): Update.
9101 * cris-tdep.c (cris_init_extra_frame_info): Update.
9102 * avr-tdep.c (avr_init_extra_frame_info): Update.
9103 * arm-tdep.c (arm_frame_chain_valid): Update.
9104 (arm_init_extra_frame_info): Update.
9105 (arm_pop_frame): Update.
9106 * frame.c (frame_pc_unwind): Update.
9107 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9108 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9109 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9110 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9111 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9112 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9113
9114 2003-03-10 Andrew Cagney <cagney@redhat.com>
9115
9116 * gdbarch.sh (gdbarch_unwind_pc): New method.
9117 * gdbarch.h, gdbarch.c: Regenerate.
9118 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9119 but use read_pc and FRAME_SAVED_PC as fall backs.
9120 (frame_saved_regs_pc_unwind): Delete function.
9121 (trad_frame_unwinder): Update.
9122 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9123 (struct frame_unwind): Update.
9124 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9125 (dummy_frame_unwind): Update.
9126 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9127 (sentinel_frame_unwinder): Update.
9128 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9129 (d10v_frame_unwind): Update.
9130 (d10v_unwind_pc): New function.
9131 (d10v_gdbarch_init): Set unwind_pc.
9132
9133 2003-03-10 Andrew Cagney <cagney@redhat.com>
9134
9135 * gdbarch.h: Re-generate.
9136
9137 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9138 PC.
9139 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9140 the PC register.
9141
9142 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9143
9144 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9145
9146 2003-03-08 Andrew Cagney <cagney@redhat.com>
9147
9148 * cli-out.c: Update copyright.
9149 (cli_out_data): Define typedef. Use instead of ui_out_data.
9150
9151 2003-03-08 Andrew Cagney <cagney@redhat.com>
9152
9153 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9154 the result.
9155
9156 2003-03-07 Andrew Cagney <cagney@redhat.com>
9157
9158 * gdbarch.sh: Don't generate two macro definitions when an
9159 undefined macro taking no arguments.
9160 * gdbarch.h: Regenerate.
9161
9162 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9163
9164 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9165 (x86_64_unwind_dummy_id): New functions.
9166 (x86_64_init_abi): Register these two new functions.
9167
9168 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9169
9170 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9171 (x86_64_skip_prologue): Move prologue detection to
9172 separate function.
9173 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9174
9175 2003-03-05 Andrew Cagney <cagney@redhat.com>
9176
9177 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9178 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9179 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9180 to use unwind_dummy_id when a dummy frame.
9181 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9182 predicate.
9183 * gdbarch.h, gdbarch.c: Regneerate.
9184
9185 2003-03-05 Andrew Cagney <cagney@redhat.com>
9186
9187 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9188 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9189 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9190 values.
9191
9192 2003-03-05 Andrew Cagney <cagney@redhat.com>
9193
9194 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9195 (struct d10v_unwind_cache): Delete field "frameless". Replace
9196 "next_addr" with "sp_offset". Add "r11_offset".
9197 (d10v_frame_unwind_cache): Update.
9198 (prologue_find_regs): Update. When "mv r11, sp", save the
9199 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9200 RN was saved in r11_offset.
9201
9202 2003-03-05 Andrew Cagney <cagney@redhat.com>
9203
9204 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9205 cached PC value in the next frame.
9206
9207 2003-03-05 Andrew Cagney <cagney@redhat.com>
9208
9209 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9210 "id_unwind_cache" with "id".
9211 (frame_id_unwind): Delete declaration.
9212 * frame.c (frame_id_unwind): Delete function.
9213 (get_prev_frame): Call the frame id unwind method directly. Store
9214 the returned next frame's ID value in NEXT_FRAME. Note that there
9215 is a problem with the wrong unwind ID being called with the wrong
9216 unwind cache.
9217
9218 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9219
9220 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9221
9222 2003-03-05 James Ingham <jingham@apple.com>
9223 Daniel Jacobowitz <drow@mvista.com>
9224
9225 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9226 (auto_cp_abi): New variable.
9227 (current_cp_abi, num_cp_abis): Make static.
9228 (CP_ABI_MAX): Define.
9229 (cp_abis): Turn into an array.
9230 (value_virtual_fn_field): Fix formatting.
9231 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9232 takes a pointer.
9233 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9234 (list_cp_abis, _initialize_cp_abi): New functions.
9235 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9236 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9237 switch_to_cp_abi. Update prototype for register_cp_abi.
9238 * Makefile.in (cp-abi.o): Update dependencies.
9239 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9240 instead of switch_to_cp_abi.
9241 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9242 register_cp_abi.
9243 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9244 register_cp_abi.
9245 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9246
9247 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9248
9249 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9250 * dwarf2loc.c: Include "regcache.h".
9251 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9252 register_size.
9253 * Makefile.in (dwarf2loc.o): Update dependencies.
9254
9255 2003-03-04 Theodore A. Roth <troth@openavr.org>
9256
9257 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9258 number of io registers reported by remote target is not a multiple of
9259 step.
9260
9261 2003-03-04 David Carlton <carlton@math.stanford.edu>
9262
9263 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9264 (lookup_symbol_aux_psymtabs): Update call to
9265 lookup_partial_symbol.
9266 (lookup_transparent_type, find_main_psymtab)
9267 (make_symbol_overload_list): Ditto.
9268
9269 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9270
9271 * MAINTAINERS (Write after approval): Update my email address.
9272
9273 2003-03-03 Andrew Cagney <cagney@redhat.com>
9274
9275 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9276 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9277 predicate. Replace MAX_REGISTER_RAW_SIZE.
9278 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9279 MAX_REGISTER_VIRTUAL_SIZE.
9280 * regcache.c (legacy_max_register_raw_size): New function.
9281 (legacy_max_register_virtual_size): New function.
9282 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9283 (MAX_REGISTER_RAW_SIZE): Define.
9284 (legacy_max_register_raw_size): Declare.
9285 (legacy_max_register_virtual_size): Declare.
9286 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9287 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9288 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9289 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9290 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9291 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9292 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9293 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9294 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9295 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9296 * vax-tdep.c (vax_gdbarch_init): Update.
9297 * v850-tdep.c (v850_gdbarch_init): Update.
9298 * sparc-tdep.c (sparc_gdbarch_init): Update.
9299 * sh-tdep.c (sh_gdbarch_init): Update.
9300 * s390-tdep.c (s390_gdbarch_init): Update.
9301 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9302 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9303 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9304 * mips-tdep.c (mips_gdbarch_init): Update.
9305 * mcore-tdep.c (mcore_gdbarch_init): Update.
9306 * m68k-tdep.c (m68k_gdbarch_init): Update.
9307 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9308 * ia64-tdep.c (ia64_gdbarch_init): Update.
9309 * i386-tdep.c (i386_gdbarch_init): Update.
9310 * hppa-tdep.c (hppa_gdbarch_init): Update.
9311 * h8300-tdep.c (h8300_gdbarch_init): Update.
9312 * frv-tdep.c (frv_gdbarch_init): Update.
9313 * cris-tdep.c (cris_gdbarch_init): Update.
9314 * avr-tdep.c (avr_gdbarch_init): Update.
9315 * arm-tdep.c (arm_gdbarch_init): Update.
9316 * alpha-tdep.c (alpha_gdbarch_init): Update.
9317 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9318 max_register_raw_size or max_register_virtual_size.
9319
9320 2003-03-03 David Carlton <carlton@math.stanford.edu>
9321
9322 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9323 SYMBOL_MATCHES_NAME, add comment.
9324 (SYMBOL_MATCHES_NATURAL_NAME): New.
9325 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9326 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9327 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9328 * symtab.c (lookup_partial_symbol): Use
9329 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9330 unhelpful comment.
9331 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9332 SYMBOL_MATCHES_NAME.
9333 Fix for PR c++/33.
9334
9335 2003-03-03 David Carlton <carlton@math.stanford.edu>
9336
9337 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9338 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9339 by regexp matching against SYMBOL_NATURAL_NAME.
9340
9341 2003-03-03 David Carlton <carlton@math.stanford.edu>
9342
9343 * linespec.c (find_method): Extract code into collect_methods.
9344 (collect_methods): New.
9345
9346 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9347
9348 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9349 get_frame_base.
9350
9351 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9352 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9353
9354 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9355
9356 * arch-utils.c (generic_register_byte): Fix to use the loop index
9357 and not regnum when summing the size of all registers up to regnum.
9358
9359 2003-03-01 Andrew Cagney <cagney@redhat.com>
9360
9361 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9362 FRAME_INIT_SAVED_REGS.
9363 * gdbarch.h, gdbarch.c: Regenerate.
9364 * stack.c (frame_info): Update.
9365 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9366 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9367 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9368 * ns32k-tdep.c (ns32k_pop_frame): Update.
9369 * mips-tdep.c (mips_pop_frame): Update.
9370 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9371 * ia64-tdep.c (ia64_frame_chain): Update.
9372 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9373 (ia64_frameless_function_invocation): Update.
9374 (ia64_init_extra_frame_info): Update.
9375 (ia64_pop_frame_regular): Update.
9376 * frame.h (struct frame_info): Update comment.
9377 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9378 * frame.c (frame_saved_regs_register_unwind): Update.
9379 (frame_saved_regs_register_unwind): Update.
9380 (deprecated_generic_get_saved_register): Update.
9381 * cris-tdep.c: Update comment.
9382 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9383 Rename macro.
9384 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9385 * x86-64-tdep.c (x86_64_init_abi): Update.
9386 * vax-tdep.c (vax_gdbarch_init): Update.
9387 * v850-tdep.c (v850_gdbarch_init): Update.
9388 * sparc-tdep.c (sparc_gdbarch_init): Update.
9389 * sh-tdep.c (sh_gdbarch_init): Update.
9390 * s390-tdep.c (s390_gdbarch_init): Update.
9391 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9392 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9393 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9394 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9395 * mips-tdep.c (mips_gdbarch_init): Update.
9396 * mcore-tdep.c (mcore_gdbarch_init): Update.
9397 * m68k-tdep.c (m68k_gdbarch_init): Update.
9398 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9399 * ia64-tdep.c (ia64_gdbarch_init): Update.
9400 * i386-tdep.c (i386_gdbarch_init): Update.
9401 * frv-tdep.c (frv_gdbarch_init): Update.
9402 * avr-tdep.c (avr_gdbarch_init): Update.
9403 * arm-tdep.c (arm_gdbarch_init): Update.
9404 * alpha-tdep.c (alpha_gdbarch_init): Update.
9405
9406 2003-03-01 Andrew Cagney <cagney@redhat.com>
9407
9408 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9409 option enum and switch. When no windows, set the interpreter to
9410 INTERP_CONSOLE.
9411
9412 2003-03-01 Andrew Cagney <cagney@redhat.com>
9413
9414 * main.c (captured_main): Replace magic option characters with an
9415 enum.
9416
9417 2003-03-01 Andrew Cagney <cagney@redhat.com>
9418
9419 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9420 INIT_EXTRA_FRAME_INFO.
9421 * gdbarch.h, gdbarch.c: Regenerate.
9422 * arm-tdep.c: Update comments.
9423 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9424 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9425 * frame.h, avr-tdep.c: Ditto.
9426 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9427 (create_new_frame, legacy_get_prev_frame): Ditto.
9428 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9429 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9430 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9431 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9432 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9433 * v850-tdep.c (v850_gdbarch_init): Ditto.
9434 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9435 * sh-tdep.c (sh_gdbarch_init): Ditto.
9436 * s390-tdep.c (s390_gdbarch_init): Ditto.
9437 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9438 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9439 * mips-tdep.c (mips_gdbarch_init): Ditto.
9440 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9441 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9442 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9443 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9444 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9445 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9446 * frv-tdep.c (frv_gdbarch_init): Ditto.
9447 * cris-tdep.c (cris_gdbarch_init): Ditto.
9448 * avr-tdep.c (avr_gdbarch_init): Ditto.
9449 * arm-tdep.c (arm_gdbarch_init): Ditto.
9450 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9451 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9452
9453 2003-03-01 Andrew Cagney <cagney@redhat.com>
9454
9455 * gdbarch.sh (register_type): New function with predicate.
9456 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9457 * gdbarch.h, gdbarch.c: Re-generate.
9458 * arch-utils.c (generic_register_byte): Use generic_register_size.
9459 (generic_register_size): When available, use
9460 gdbarch_register_type.
9461 * regcache.c (init_regcache_descr): When available, initialize the
9462 register type array using gdbarch_register_type. If the
9463 architecture supplies gdbarch_register_type, do not use the legacy
9464 regcache layout.
9465 * d10v-tdep.c (d10v_register_type): Replace
9466 d10v_register_virtual_type.
9467 (d10v_gdbarch_init): Set register_type instead of
9468 register_virtual_type.
9469
9470 2003-03-01 Andrew Cagney <cagney@redhat.com>
9471
9472 * Makefile.in (ax-gdb.o): Update dependencies.
9473 * ax-gdb.c: Include "regcache.h".
9474 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9475 * findvar.c (value_of_register): Ditto.
9476 * infcmd.c (default_print_registers_info): Ditto.
9477
9478 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9479
9480 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9481 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9482
9483 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9484
9485 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9486 of STREQ.
9487
9488 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9489
9490 * Makefile.in (dwarf2loc.o): Update dependencies.
9491 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9492 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9493 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9494 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9495 (locexpr_tracepoint_var_ref): New function.
9496 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9497
9498 2003-02-28 Andrew Cagney <cagney@redhat.com>
9499
9500 * regcache.c (register_size): New function.
9501 * regcache.h (register_size): Declare
9502 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9503 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9504
9505 2003-02-28 David Carlton <carlton@math.stanford.edu>
9506
9507 * linespec.c (decode_compound): Extract code into find_method.
9508 (find_method): New.
9509
9510 2003-02-28 J. Brobecker <brobecker@gnat.com>
9511
9512 * Makefile.in: Add rules to build and link in observer.o.
9513
9514 2003-02-27 J. Brobecker <brobecker@gnat.com>
9515
9516 * observer.c: Minor comments edits.
9517
9518 2003-02-27 J. Brobecker <brobecker@gnat.com>
9519
9520 * observer.h, observer.c: New file.
9521
9522 2003-02-27 Andrew Cagney <cagney@redhat.com>
9523
9524 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9525
9526 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9527
9528 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9529 (M6812_OP_STS_EXT): Likewise.
9530 (m6811_prologue): Use the above to recognize prologue.
9531 (m6812_prologue): Likewise.
9532
9533 2003-02-27 David Carlton <carlton@math.stanford.edu>
9534
9535 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9536 SYMBOL_PRINT_NAME.
9537 (compare_psymbols): Ditto.
9538 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9539
9540 2003-02-27 Michael Snyder <msnyder@redhat.com>
9541
9542 * f-lang.c (build_fortran_types): New function.
9543 (_initialize_f_language): Gdbarch-register built-in fortran types.
9544 * doublest.c (extract_floating): Fix warning text.
9545
9546 2003-02-27 Andrew Cagney <cagney@redhat.com>
9547
9548 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9549 predicate. Replaces PUSH_DUMMY_FRAME.
9550 * gdbarch.h, gdbarch.c: Regnerate.
9551 * valops.c (hand_function_call): Update. Call
9552 generic_push_dummy_frame directly.
9553 * vax-tdep.c (vax_gdbarch_init): Update.
9554 * sparc-tdep.c (sparc_gdbarch_init): Update.
9555 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9556 * m68k-tdep.c (m68k_gdbarch_init): Update.
9557 * hppa-tdep.c (hppa_gdbarch_init): Update.
9558 * alpha-tdep.c (alpha_gdbarch_init): Update.
9559 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9560 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9561 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9562 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9563 push_dummy_frame to generic_push_dummy_frame.
9564 * v850-tdep.c (v850_gdbarch_init): Ditto.
9565 * sh-tdep.c (sh_gdbarch_init): Ditto.
9566 * s390-tdep.c (s390_gdbarch_init): Ditto.
9567 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9568 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9569 * mips-tdep.c (mips_gdbarch_init): Ditto.
9570 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9571 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9572 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9573 * i386-tdep.c (i386_gdbarch_init): Ditto.
9574 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9575 * frv-tdep.c (frv_gdbarch_init): Ditto.
9576 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9577 * cris-tdep.c (cris_gdbarch_init): Ditto.
9578 * avr-tdep.c (avr_gdbarch_init): Ditto.
9579 * arm-tdep.c (arm_gdbarch_init): Ditto.
9580
9581 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9582
9583 * mips-tdep.c (show_mips_abi): New function.
9584 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9585 command ``show mips abi''.
9586
9587 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9588
9589 From Elena Zannoni <ezannoni@redhat.com>
9590 * dbxread.c (process_one_symbol): Only record line 0 if one or
9591 more sline entries have been seen for the function.
9592
9593 2003-02-26 Michael Chastain <mec@shout.net>
9594
9595 * configure: Regenerate with autoconf 000227.
9596
9597 2003-02-26 Michael Chastain <mec@shout.net>
9598
9599 Close PR build/660.
9600 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9601 for old libc5/glibc.
9602 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9603
9604 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9605
9606 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9607 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9608
9609 2003-02-26 Michael Chastain <mec@shout.net>
9610
9611 * configure.in: New variable HAVE_UINTPTR_T.
9612 * configure, config.in: Regenerated.
9613
9614 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9615
9616 Fix PR build/1097.
9617 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9618
9619 2003-02-25 Andrew Cagney <cagney@redhat.com>
9620
9621 * frame.c (get_prev_frame): Add comment on check for
9622 inside_entry_func. Only check for inside_entry_file when not a
9623 dummy and not a sentinel. Check that the new frame is not inner
9624 to the old frame.
9625
9626 2003-02-25 Andrew Cagney <cagney@redhat.com>
9627
9628 * frame.c (frame_debug): New variable.
9629 (_initialize_frame): Add "set/show debug frame" command.
9630 (get_prev_frame): When frame_debug, print reason why unwind
9631 failed.
9632
9633 2003-02-25 Michael Chastain <mec@shout.net>
9634
9635 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9636 to avoid uintptr_t definition problems.
9637
9638 2003-02-25 David Carlton <carlton@math.stanford.edu>
9639
9640 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9641 (SYMBOL_LINKAGE_NAME): Ditto.
9642 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9643 SYMBOL_LINKAGE_NAME.
9644 (struct general_symbol_info): Expand comment.
9645 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9646 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9647 (SYMBOL_MATCHES_REGEXP): Ditto.
9648 * symtab.c (symbol_natural_name): New function.
9649 * objfiles.h: Replace all uses of SYMBOL_NAME by
9650 DEPRECATED_SYMBOL_NAME.
9651 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9652 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9653 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9654 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9655 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9656 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9657 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9658 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9659 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9660 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9661 * ada-exp.y: Ditto.
9662 * ada-exp.y: Update copyright.
9663 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9664 * cp-valprint.c: Ditto.
9665
9666 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9667
9668 * infptrace.c (detach): Do not flag error if ptrace detach fails
9669 and errno is set to ESRCH.
9670
9671 2003-02-24 Andrew Cagney <cagney@redhat.com>
9672
9673 * infptrace.c (udot_info): Change type of udot_off to long. Use
9674 paddr when printing udot_off's value.
9675
9676 2003-02-24 David Carlton <carlton@math.stanford.edu>
9677
9678 * symtab.c (make_symbol_overload_list): Only read in partial
9679 symtabs containing a matching partial symbol.
9680
9681 2003-02-24 David Carlton <carlton@math.stanford.edu>
9682
9683 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9684 do the comparison, not strcmp.
9685 * symfile.c (compare_psymbols): Ditto.
9686 * defs.h: Declare strcmp_iw_ordered.
9687 * utils.c (strcmp_iw_ordered): New function.
9688
9689 2003-02-24 Jim Blandy <jimb@redhat.com>
9690
9691 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9692 support, shared libs): Remove my name from here, to better reflect
9693 reality.
9694
9695 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9696
9697 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9698 (target_ops): Add to_have_continuable_watchpoint.
9699 * target.c (update_current_target): Add INHERIT line for
9700 to_have_continuable_watchpoint.
9701 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9702 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9703 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9704 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9705
9706 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9707
9708 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9709 maintainership.
9710
9711 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9712
9713 * solib.c (solib_open): Call target defined search function after
9714 failing with solib-search-path.
9715 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9716 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9717
9718 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9719
9720 * MAINTAINERS: Add myself to Write After section.
9721
9722 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9723
9724 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9725
9726 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9727
9728 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9729 (m68hc11_add_reggroups): New function.
9730 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9731 (m68hc11_gdbarch_init): Install the reggroups.
9732 (_initialize_m68hc11_tdep): Initialize them.
9733
9734 2003-02-21 James E Wilson <wilson@tuliptree.org>
9735
9736 * MAINTAINERS: Update my email address.
9737
9738 2003-02-21 David Carlton <carlton@math.stanford.edu>
9739
9740 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9741
9742 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9743
9744 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9745 * symtab.h: Add opaque declarations of struct axs_value and
9746 struct agent_expr.
9747 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9748 (struct location_funcs): New type.
9749 (struct symbol): Add "loc" to aux_value.
9750 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9751 * dwarf2read.c: Include "dwarf2expr.h".
9752 (dwarf2_symbol_mark_computed): New function.
9753 (read_func_scope): Use it.
9754 (var_decode_location): New function.
9755 (new_symbol): Use it.
9756 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9757
9758 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9759 (dwarf2expr_h, dwarf2loc_h): New variables.
9760 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9761 (dwarf2expr.o, dwarf2loc.o): New rules.
9762 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9763 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9764 LOC_COMPUTED_ARG.
9765 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9766 * m2-exp.y (yylex): Likewise.
9767 * printcmd.c (address_info, print_frame_args): Likewise.
9768 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9769 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9770 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9771 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9772 * symtab.c (lookup_block_symbol): Likewise.
9773
9774 2003-02-20 Adam Fedor <fedor@gnu.org>
9775
9776 * symtab.h: Remove objc_specific struct
9777 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9778 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9779 Have language_objc use cplus_specific struct.
9780
9781 2003-02-20 Tom Tromey <tromey@redhat.com>
9782
9783 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9784 TYPE_NAME, when printing a String value. PR java/1075.
9785
9786 2003-02-20 Adam Fedor <fedor@gnu.org>
9787
9788 * objc-lang.h (find_methods): Remove declaration.
9789 * objc-lang.c (find_methods): Make static.
9790
9791 2003-02-20 Christopher Faylor <cgf@redhat.com>
9792
9793 * win32-nat.c (get_image_name): Check return value from
9794 ReadProcessMemory.
9795 (child_xfer_memory): Ditto.
9796
9797 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9798
9799 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9800 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9801 '${exec_prefix}' (in addition to the expansion thereof) as
9802 relocatable.
9803 * configure: Rebuilt.
9804
9805 2003-02-20 David Carlton <carlton@math.stanford.edu>
9806
9807 * symtab.c (search_symbols): Revert the search_symbols part of my
9808 2002-12-23 patch. Add comment.
9809
9810 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9811
9812 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9813 * dbxread.c (elfstab_build_psymtabs): Don't call
9814 install_minimal_symbols.
9815 (stabsect_build_psymtabs): Likewise.
9816 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9817 earlier.
9818 * somread.c (som_symfile_read): Call install_minimal_symbols
9819 and do_cleanups earlier.
9820 * nlmread.c (nlm_symfile_read): Likewise.
9821 * mdebugread.c (elfmdebug_build_psymtabs): Call
9822 install_minimal_symbols and make appropriate cleanups.
9823
9824 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9825
9826 * solib.c (reload_shared_libraries): New function.
9827 (_initialize_solib): Add callbacks for ``set solib-search-path''
9828 and ``set solib-absolute-prefix''.
9829
9830 2003-02-20 David Carlton <carlton@math.stanford.edu>
9831
9832 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9833 expand comment.
9834 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9835 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9836 * ada-typeprint.c (ada_typedef_print): Ditto.
9837 * ax-gdb.c (gen_var_ref): Ditto.
9838 * breakpoint.c (print_one_breakpoint): Ditto.
9839 * buildsym.c (finish_block): Ditto.
9840 * c-valprint.c (c_val_print): Ditto.
9841 * expprint.c (print_subexp): Ditto.
9842 * findvar.c (locate_var_value): Ditto.
9843 * infcmd.c (jump_command): Ditto.
9844 * linespec.c (decode_line_2, decode_compound): Ditto.
9845 * maint.c (maintenance_translate_address): Ditto.
9846 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9847 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9848 Ditto.
9849 * p-valprint.c (pascal_val_print): Ditto.
9850 * stabsread.c (define_symbol): Ditto.
9851 * stack.c (print_frame, frame_info, print_block_frame_locals)
9852 (print_frame_arg_vars, return_command): Ditto.
9853 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9854 * symmisc.c (print_symbol): Ditto.
9855 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9856 (compare_search_syms, print_symbol_info, print_msymbol_info)
9857 (rbreak_command): Ditto.
9858 * tracepoint.c (tracepoints_info): Ditto.
9859 * typeprint.c (typedef_print): Ditto.
9860 * valops.c (value_of_variable, hand_function_call): Ditto.
9861 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9862 * ada-typeprint.c: Update Copyright.
9863 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9864 * tracepoint.c, cli/cli-cmds.c: Ditto.
9865
9866 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9867
9868 * frame.c (generic_unwind_get_saved_register): Make non-static.
9869 * frame.h (generic_unwind_get_saved_register): Declare.
9870 * mips-tdep.c (read_next_frame_reg): Fetch register from
9871 current regcache when frame is NULL.
9872 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9873 that must be NULL.
9874 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9875 instead of frame_register_unwind().
9876
9877 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9878
9879 * remote-sim.c (gdbsim_insert_breakpoint)
9880 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9881 code.
9882
9883 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9884
9885 * remote.c (_initialize_remote): Add commands "set/show remote
9886 hardware-watchpoint-limit" and "set/show remote
9887 hardware-breakpoint-limit".
9888 (remote_hw_watchpoint_limit): Initialize to -1.
9889 (remote_hw_breakpoint_limit): Ditto.
9890 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9891
9892 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9893
9894 * coff-pe-read.c: New file - support reading of minimal symbols from a
9895 portable executable using the export table.
9896 * coff-pe-read.h: New file.
9897 * coffread.c: Include coff-pe-read.h.
9898 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9899 debugging symbols found.
9900 * Makefile.in (SFILES): Add coff-pe-read.o.
9901 (coff_pe_read_h): Define.
9902 (COMMON_OBS): Add coff-pe-read.o.
9903 (coffread.o): Add coff_pe_read_h dependency.
9904 (coff-pe-read.o): New target.
9905
9906 2003-02-19 David Carlton <carlton@math.stanford.edu>
9907
9908 * Makefile.in (SFILES): Add block.c.
9909 (block_h): New.
9910 (COMMON_OBS): Add block.o.
9911 (block.o): New.
9912 (x86-64-tdep.o): Add $(block_h).
9913 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9914 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9915 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9916 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9917 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9918 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9919 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9920 * value.h: Add opaque declaration for struct block.
9921 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9922 * ada-lang.h: Ditto.
9923 * x86-64-tdep.c: #include "block.h"
9924 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9925 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9926 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9927 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9928 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9929 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9930 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9931 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9932 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9933 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9934 * symtab.c (block_function): Ditto.
9935 (contained_in): Ditto.
9936 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9937 block.h. Add opaque declaration for struct block.
9938 * symtab.h: Move block_function and contained_in declarations to
9939 block.h. Add opaque declarations for struct block, struct
9940 blockvector.
9941 (struct block): Move to block.h.
9942 (struct blockvector): Ditto.
9943 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9944 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9945 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9946 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9947 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9948 Ditto.
9949 * block.c: New file.
9950 * block.h: New file.
9951
9952 2003-02-19 Theodore A. Roth <troth@openavr.org>
9953
9954 * avr-tdep.c (avr_extract_return_value): Remove function.
9955 (avr_store_return_value): Remove function.
9956 (avr_extract_struct_value_address): Remove function.
9957 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9958
9959 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9960
9961 * rs6000-tdep.c: Include "gdb_assert.h".
9962 (registers_e500): Add "acc" and "spefscr".
9963 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9964 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9965 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9966 really is "r0".
9967 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9968
9969 2003-02-18 Keith Seitz <keiths@redhat.com>
9970
9971 * Makefile.in: Add gdbtk-interps.c.
9972
9973 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9974
9975 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9976 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9977
9978 2003-02-18 Andrew Cagney <cagney@redhat.com>
9979
9980 * symtab.h (struct objfile): Add opaque declaration.
9981
9982 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9983
9984 From Jim Ingham <jingham@apple.com>:
9985 * dbxread.c (process_one_symbol): Use last_function_start rather
9986 than function_start_offset to find the real beginning of the
9987 current function. The latter is just the text section offset on
9988 some systems, the former is always the real function start.
9989
9990 2003-02-17 Andrew Cagney <cagney@redhat.com>
9991
9992 * configure.in: Revert ${target} != ${host}.
9993
9994 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9995
9996 * configure.in (Makefile): Use the test ${target} != ${host},
9997 instead of the absence of the "nm.h" file, to determine of the
9998 configuration non-native.
9999 * configure: Regenerate.
10000
10001 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10002
10003 From Brian Ford <ford@vss.fsi.com>
10004
10005 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10006 conditionalize tui_active test.
10007 (lookup_cmd_1): Ditto.
10008
10009 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10010
10011 * configure.in: Add check for _etext.
10012 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10013 available.
10014 * config.in, configure: regenerated.
10015
10016 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10017
10018 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10019
10020 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10021
10022 * main.c (tui_version): Delete variable.
10023 (captured_main): When --tui, set interpreter_p to "tui" instead of
10024 enabling tui_version.
10025 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10026 tui_version.
10027 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10028 * cli/cli-cmds.c (disassemble_command): Ditto.
10029 * defs.h (tui_version): Delete declaration.
10030 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10031 (tui-interp.o): Add rules.
10032 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10033
10034 2003-02-14 Christopher Faylor <cgf@redhat.com>
10035
10036 * win32-nat.c (register_loaded_dll): Correctly set address range for
10037 just-loaded dll.
10038
10039 2003-02-12 Jason Molenda (jmolenda@apple.com)
10040
10041 * symmisc.c (print_objfile_statistics): Include information about
10042 the number of psymtabs and symtabs in each object file.
10043
10044 2003-02-13 Keith R Seitz <keiths@redhat.com>
10045
10046 * main.h (struct captured_main_args): Add interpreter_p.
10047 * main.c (captured_main): Initialize interpreter_p from context.
10048 * gdb.c (main): Set interpreter_p argument.
10049 * Makefile.in (gdb.o): Add dependency for interps.h.
10050
10051 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10052
10053 * event-top.c (cli_command_loop): Delete declaration.
10054 (_initialize_event_loop): Delete function setting event_loop_hook.
10055 * event-top.h (cli_command_loop): Declare. Update copyright.
10056 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10057 * interps.c (current_interp_command_loop): When event_loop_p, call
10058 cli_command_loop.
10059
10060 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10061
10062 * interps.h (interp_command_loop_ftype): Change return type to
10063 void.
10064
10065 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10066
10067 * x86-64-tdep.c (x86_64_extract_return_value)
10068 (x86_64_store_return_value): Use regcache instead of regbuf.
10069 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10070 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10071
10072 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10073
10074 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10075 * aclocal.m4: Regenerate.
10076 * configure: Regenerate.
10077
10078 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10079 TCL_LD_SEARCH_FLAGS.
10080
10081 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10082
10083 * dwarf2cfi.c: Reindented.
10084
10085 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10086
10087 * interps.c (clear_interpreter_hooks): Convert function definition
10088 to ISO C.
10089
10090 2003-02-07 David Carlton <carlton@math.stanford.edu>
10091
10092 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10093
10094 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10095
10096 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10097 (struct type): ...to here.
10098 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10099 field.
10100 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10101 (replace_type): Set length on all type variants for a given type.
10102
10103 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10104
10105 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10106 <sys/stat.h>.
10107 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10108
10109 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10110
10111 * Makefile.in (symm-nat.o): Update dependencies.
10112 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10113 (lynx-nat.o, ia64-linux-nat.): Ditto.
10114 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10115 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10116 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10117
10118 * Makefile.in (inflow_h): Define.
10119 (procfs.o, inflow.o, procfs.o): Update dependencies.
10120 * inftarg.c (child_stop): Delete extern declaration of
10121 inferior_process_group. Include "inflow.h".
10122 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10123 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10124 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10125 (our_process_group, inferior_process_group): Extern declarations.
10126
10127 * procfs.c: Include "gdb_assert.h".
10128
10129 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10130 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10131 * jv-typeprint.c (java_type_print_base): Ditto.
10132 * typeprint.c (typedef_print): Eliminate STREQ.
10133 * cli/cli-script.c (define_command, define_command): Ditto.
10134 * main.c (captured_main): Ditto.
10135 * values.c (lookup_internalvar): Ditto.
10136 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10137 within `if' conditional.
10138 * linespec.c (decode_line_2): Ditto.
10139 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10140 (bfd_openw_with_cleanup): Ditto.
10141
10142 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10143
10144 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10145 legacy_extract_return_value and store_return_value to
10146 legacy_return_value.
10147
10148 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10149
10150 * win32-nat.c (get_relocated_section_addrs): New function. Find
10151 section load addresses for symbol handling in relocated DLLs.
10152 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10153
10154 2003-02-05 Fred Fish <fnf@intrinsity.com>
10155
10156 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10157 '=' and '!='.
10158 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10159 with '&' and '=='.
10160 (angel_RDI_info): Ditto.
10161 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10162 with '&' and '!='.
10163 (threads_continue_all_with_signals): Ditto.
10164
10165 2003-02-05 Jim Ingham <jingham@apple.com>
10166 Keith Seitz <keiths@redhat.com>
10167 Elena Zannoni <ezannoni@redhat.com>
10168 Andrew Cagney <ac131313@redhat.com>
10169
10170 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10171 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10172 (SUBDIR_MI_OBS): Add "mi-interp.o".
10173 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10174 (SFILES): Add "interps.c".
10175 (COMMON_OBS): Add "interps.o".
10176 (interps_h, mi_main_h): Define.
10177 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10178 (mi-main.o, main.o, event-top.o): Update dependencies.
10179 * cli/cli-interp.c: New file.
10180 * interps.h, interps.c: New files.
10181 * top.c: (gdb_init): Don't install the default interpreter, handed
10182 by captured_main.
10183 * main.c: Include "interps.h".
10184 (interpreter_p): Note that it should malloc'ed.
10185 (captured_command_loop): Call current_interp_command_loop.
10186 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10187 xfree and xstrdup when updating interpreter_p. Install the
10188 default interpreter. Add hack to stop mi1's copyright notice
10189 being encoded.
10190 * event-top.h (gdb_setup_readline): Declare.
10191 (gdb_disable_readline): Declare.
10192 * event-top.c: Include "interps.h".
10193 (display_gdb_prompt): Call current_interp_display_prompt_p.
10194 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10195 gdb_stdlog, and gdb_stdtarg.
10196 (_initialize_event_loop): Don't call gdb_setup_readline.
10197 * cli-out.c (cli_out_set_stream): New function.
10198 * cli-out.h (cli_out_set_stream): Declare.
10199
10200 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10201
10202 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10203 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10204 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10205 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10206 config/i386/i386v42mp.mt: Removed.
10207
10208 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10209
10210 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10211 GDB_OSABI_SOLARIS.
10212
10213 2003-02-05 Michael Chastain <mec@shout.net>
10214
10215 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10216 2.12.1 and earlier versions.
10217
10218 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10219
10220 Remove orphaned hosts, targets and files.
10221 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10222 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10223 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10224 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10225 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10226 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10227 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10228 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10229 * config/sparc/tm-sp64sim.h: Delete.
10230 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10231 hosts.
10232 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10233 mips*-dec-mach3* targets.
10234
10235 2003-02-04 Michael Chastain <mec@shout.net>
10236
10237 * NEWS: Fix typo: sepcifying -> specifying.
10238
10239 2003-02-04 Michael Chastain <mec@shout.net>
10240
10241 * dwarfread.c: Add documentation on the state of dwarf-1,
10242 looking towards obsoletion.
10243
10244 2003-02-03 Michael Chastain <mec@shout.net>
10245
10246 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10247 gdb/testsuite/gdb.c++/pr-1023.exp.
10248
10249 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10250
10251 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10252 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10253
10254 * utils.c (init_page_info): Delete reference to MPW in comments.
10255 * main.c (captured_main): Delete #ifdef MPW.
10256
10257 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10258
10259 * NEWS: Note that the m32r-*-elf* is obsolete.
10260 * monitor.c (monitor_expect): Obsolete reference to m32r.
10261 * configure.tgt: Mark m32r-*-elf* as obsolete.
10262 * MAINTAINERS: Mark m32k as obsolete.
10263 * m32r-rom.c: Obsolete file.
10264 * config/m32r/m32r.mt: Obsolete file.
10265 * config/m32r/tm-m32r.h: Obsolete file.
10266 * m32r-stub.c: Obsolete file.
10267 * m32r-tdep.c: Obsolete file.
10268
10269 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10270
10271 * NEWS: Mention that the z8k-zilog-none is obsolete.
10272 * MAINTAINERS: Mark z8k as obsolete.
10273 * configure.tgt: Obsolete the z8k-*-coff* target.
10274 * config/z8k/z8k.mt: Obsolete file.
10275 * config/z8k/tm-z8k.h: Obsolete file.
10276 * z8k-tdep.c: Obsolete file.
10277
10278 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10279
10280 * NEWS: Mention that the mn10200-elf is obsolete.
10281 * configure.tgt: Obsolete mn10200-*-* target.
10282 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10283 mention that the mn10200 is obsolete.
10284 * breakpoint.h: Ditto.
10285 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10286 * config/mn10200/mn10200.mt: Obsolete file.
10287 * config/mn10200/tm-mn10200.h: Obsolete file.
10288 * mn10200-tdep.c: Obsolete file.
10289
10290 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10291
10292 * MAINTAINERS: Mark h8500 as obsolete.
10293 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10294 * findvar.c (value_from_register): Ditto.
10295 * h8500-tdep.c: Mark file as obsolete.
10296 * config/h8500/h8500.mt: Ditto.
10297 * config/h8500/tm-h8500.h: Ditto.
10298 * NEWS: Mention that h8500 is obsolete.
10299
10300 2003-02-04 David Carlton <carlton@math.stanford.edu>
10301
10302 * objfiles.c (allocate_objfile): Always set name. Add comment at
10303 start of function.
10304 * jv-lang.c (get_dynamics_objfile): Add comment.
10305
10306 2003-02-04 David Carlton <carlton@math.stanford.edu>
10307
10308 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10309 * printcmd.c (build_address_symbolic): Replace uses of
10310 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10311 SYMBOL_NAME, and asm_demangle.
10312 Update copyright.
10313
10314 2003-02-04 David Carlton <carlton@math.stanford.edu>
10315
10316 * linespec.c (decode_compound): Extract code into
10317 lookup_prefix_sym.
10318 (lookup_prefix_sym): New function.
10319
10320 2003-02-04 David Carlton <carlton@math.stanford.edu>
10321
10322 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10323 FLOAT_COERCION_BADNESS.
10324 * gdbtypes.c (rank_one_type): Replace all uses of
10325 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10326
10327 2003-02-04 Jim Blandy <jimb@redhat.com>
10328
10329 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10330 section, let dwarf_macinfo_section point to it, not
10331 dwarf_loc_section.
10332
10333 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10334
10335 Pointed out by Anton Blanchard <anton@samba.org>.
10336 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10337 (ppc_linux_at_sigtramp_return_path): Use it.
10338
10339 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10340
10341 * defs.h (streq): Add prototype.
10342 * utils.c (streq): New function.
10343
10344 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10345 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10346 * mdebugread.c (new_symbol): Likewise.
10347 * stabsread.c (define_symbol): Likewise.
10348 * coffread.c (process_coff_symbol): Likewise.
10349 * dwarfread.c (new_symbol): Likewise.
10350
10351 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10352 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10353 here.
10354 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10355 SYMBOL_INIT_DEMANGLED_NAME.
10356 * objfiles.c: Include "hashtab.h".
10357 (allocate_objfile): Call htab_set_functions_ex for the
10358 demangled_names_hash.
10359 (free_objfile): Call htab_delete for the demangled_names_hash.
10360 * objfiles.h (struct htab): Add declaration.
10361 (struct objfile): Add demangled_names_hash.
10362 * symfile.c: Include "hashtab.h".
10363 (reread_symbols): Call htab_delete for the demangled_names_hash.
10364 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10365 SYMBOL_NAME in the bcache.
10366 * symtab.c: Include "hashtab.h". Update comments.
10367 (create_demangled_names_hash, symbol_set_names): New functions.
10368 (symbol_find_demangled_name): New function, broken out from
10369 symbol_init_demangled_names.
10370 (symbol_init_demangled_names): Use it.
10371 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10372 (SYMBOL_SET_NAMES): New macro.
10373 (symbol_set_names): Add prototype.
10374
10375 2003-02-03 Jim Blandy <jimb@redhat.com>
10376
10377 Use a single, consistent representation for an empty minimal
10378 symbol table in an objfile.
10379 * objfiles.c (terminate_minimal_symbol_table): New function.
10380 (allocate_objfile): Call it.
10381 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10382 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10383 non-NULL.
10384 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10385 objfile has minimal symbols, compare minimal_symbol_count to zero,
10386 instead of comparing msymbols with NULL.
10387 * objfiles.c (have_minimal_symbols): Same.
10388 * solib-sunos.c (solib_add_common_symbols): Call
10389 terminate_minimal_symbol_table.
10390 * symfile.c (reread_symbols): Same.
10391
10392 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10393
10394 * s390-tdep.c (s390_address_class_type_flags)
10395 (s390_address_class_type_flags_to_name)
10396 (s390_address_class_name_to_type_flags): New functions.
10397 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10398 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10399
10400 2003-02-03 Michael Snyder <msnyder@redhat.com>
10401
10402 * arm-tdep.c: Fix spell-o in comment.
10403
10404 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10405
10406 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10407 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10408 error messages to contain BFD filename.
10409
10410 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10411
10412 Fix PR gdb/742 gdb/743 gdb/877
10413 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10414 (do_mixed_source_and_assembly): Use
10415 make_cleanup_ui_out_tuple_begin_end and
10416 make_cleanup_ui_out_tuple_begin_end.
10417 (do_mixed_source_and_assembly): Ditto.
10418 * thread.c (do_captured_list_thread_ids): Ditto.
10419 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10420 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10421 ui_out_tuple_end): Delete prototypes.
10422 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10423 ui_out_list_end, ui_out_tuple_end): Delete.
10424
10425 From Kevin Buettner <kevinb@redhat.com>:
10426 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10427 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10428 (do_cleanup_table_end): New functions.
10429 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10430 Use cleanups to invoke_ui_out_tuple_end().
10431 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10432 * cli/cli-setshow.c (cmd_show_list): Use
10433 make_cleanup_ui_out_tuple_begin_end.
10434
10435 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10436
10437 * frame.c (frame_unwind_register): New function.
10438 (frame_unwind_unsigned_register): Use.
10439 (frame_unwind_signed_register): Use.
10440 (frame_read_register): New function.
10441 * frame.h (frame_unwind_register): Declare.
10442 (frame_read_register): Declare.
10443
10444 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10445 and frame_unwind_register instead of read_memory, write_register
10446 and deprecated_write_register_bytes.
10447
10448 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10449
10450 * frame.h: Note that namelen can be negative.
10451 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10452 NAME's length.
10453
10454 * NEWS: Mention that the d10v's `regs' command is deprecated.
10455 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10456 (d10v_print_registers_info): New function.
10457 (show_regs): Call d10v_print_registers_info.
10458 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10459
10460 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10461
10462 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10463 lost in the previous patch.
10464
10465 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10466
10467 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10468 * stack.c (print_frame_info_base): Output complete FRAME tuple
10469 for synthesized frames.
10470
10471 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10472
10473 * mips-nat.c (zerobuf): Delete.
10474 (fetch_inferior_registers): Alloc local zerobuf.
10475 (fetch_core_registers): Alloc local zerobuf.
10476 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10477 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10478 * thread-db.c (thread_db_store_registers): Ditto.
10479 * sh-tdep.c (sh_do_register): Ditto.
10480 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10481 * remote-sim.c (gdbsim_store_register): Ditto.
10482 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10483 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10484 * monitor.c (monitor_supply_register): Ditto.
10485 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10486 * mips-nat.c (fetch_inferior_registers): Ditto.
10487 * m68klinux-nat.c (fetch_register): Ditto.
10488 * lynx-nat.c (fetch_inferior_registers): Ditto.
10489 (fetch_inferior_registers): Ditto.
10490 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10491 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10492 (hpux_thread_store_registers): Ditto.
10493 * hppah-nat.c (fetch_register): Ditto.
10494 * hppab-nat.c (fetch_register): Ditto.
10495 * hppa-tdep.c (pa_register_look_aside): Ditto.
10496 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10497 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10498
10499 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10500
10501 * gdbarch.sh: Explictly specify all method levels. When a
10502 variable with an empty level, provide a non-multi-arch default.
10503 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10504 * gdbarch.h: Re-generate.
10505 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10506 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10507
10508 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10509
10510 * defs.h (host_pointer_to_address): Delete declaration.
10511 (address_to_host_pointer): Delete declaration.
10512 * utils.c (host_pointer_to_address): Delete function.
10513 (address_to_host_pointer): Delete function.
10514 * procfs.c (procfs_address_to_host_pointer): New function.
10515 * procfs.c (proc_set_watchpoint): Use.
10516 (procfs_can_use_hw_breakpoint): Update comments.
10517 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10518 (som_solib_add): Use.
10519 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10520 * hppa-tdep.c (unwind_command): Use.
10521
10522 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10523
10524 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10525 strlen d_name.
10526
10527 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10528 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10529 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10530 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10531 (define_symbol): Update.
10532 * symfile.c (generic_load): Remove references to nindy.
10533 * symtab.c: Remove references to nindy.
10534
10535 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10536
10537 * infcmd.c (print_float_info): Delete code conditional on
10538 FLOAT_INFO.
10539 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10540 * config/m68k/nm-apollo68b.h: Ditto.
10541 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10542 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10543 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10544
10545 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10546
10547 * config/i386/tm-i386os9k.h: Removed.
10548
10549 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10550 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10551 they're identical to i[3456]86-*-sysv* now.
10552 * config/i386/i386v32.mh: Removed.
10553 * config/i386/xm-i386v32.h: Removed.
10554 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10555
10556 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10557
10558 * config/i386/i386dgux.mh: Removed.
10559 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10560
10561 * configure.in: Fix typo.
10562 * configure: Regenerated.
10563
10564 2003-01-31 David Carlton <carlton@math.stanford.edu>
10565
10566 * dwarf2read.c (dwarf2_locate_sections): Set
10567 dwarf_ranges_section.
10568
10569 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10570
10571 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10572 * utils.c: Update comments documenting legitimate uses of PTR.
10573
10574 * utils.c: Re-indent.
10575
10576 * config/djgpp/fnchange.lst: Delete nindy files.
10577 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10578 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10579 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10580 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10581 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10582 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10583 * Makefile.in (init.c): Remove nindy references.
10584 (saber_gdb): Delete rule.
10585 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10586 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10587 and a68v-nat.c.
10588 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10589 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10590 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10591 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10592 nindy-share/stop.h.
10593 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10594 * saber.suppress: Delete file.
10595
10596 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10597
10598 * dbxread.c (stabs_data): New static variable.
10599 (fill_symbuf): Support an in-memory buffer for stabs data.
10600 (stabs_seek): New function.
10601 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10602 (read_ofile_symtab): Use stabs_seek.
10603 (elfstab_build_psymtabs): Take an asection* instead of
10604 an offset and size. Relocate the stabs data if necessary.
10605 Save the section* for dbx_psymtab_to_symtab.
10606 * dwarf2read.c: Add section variables for each debug section.
10607 (dwarf2_locate_sections): Fill them in.
10608 (dwarf2_read_section): Take an asection* argument.
10609 Relocate the section contents if necessary.
10610 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10611 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10612 it to dwarf2_read_section.
10613 (dwarf2_build_frame_info): Update callers.
10614 * elfread.c (elf_symfile_read): Update call to
10615 elfstab_build_psymtabs.
10616 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10617 (DBX_STAB_SECTION): New macro.
10618 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10619 * symfile.c (symfile_dummy_outputs): New function.
10620 (symfile_relocate_debug_section): New function.
10621 * symfile.h (symfile_relocate_debug_section): Add prototype.
10622
10623 2003-01-31 Richard Henderson <rth@redhat.com>
10624
10625 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10626 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10627 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10628 * alpha-tdep.c (alpha_register_name): Add "unique".
10629 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10630 (ALPHA_UNIQUE_REGNUM): New.
10631 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10632
10633 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10634
10635 * README: Remove reference to Ericsson 1800 monitor.
10636 * Makefile.in (remote-es.o): Delete rule.
10637 (ALLDEPFILES): Delete remote-es.c.
10638 * remote-es.c: Delete file.
10639 * config/m68k/es1800.mt: Delete file.
10640 * config/djgpp/fnchange.lst: Update.
10641 * configure.tgt: Delete m68*-ericsson-* target.
10642
10643 2003-01-31 Adam Fedor <fedor@gnu.org>
10644
10645 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10646 Remove duplicate/shadowing variable of same name.
10647
10648 2003-01-30 Jim Blandy <jimb@redhat.com>
10649
10650 * symfile.c (find_separate_debug_file): Assert that the objfile's
10651 directory name we compute ends with a slash, and then assume that
10652 that's so everywhere we use it.
10653
10654 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10655
10656 * valops.c (value_assign): Flush frame cache after stores to memory
10657 also.
10658
10659 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10660
10661 * Makefile.in (mon960-rom.o): Delete rule.
10662 * mon960-rom.c: Delete file.
10663
10664 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10665
10666 * d10v-tdep.c: Include "frame-unwind.h".
10667 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10668 list.
10669 (next_addr, uses_frame): Delete.
10670 (struct d10v_unwind_cache): Define.
10671 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10672 Use info instead of next_addr and uses_frame globals.
10673 (d10v_frame_init_saved_regs): Delete function.
10674 (d10v_init_extra_frame_info): Delete function.
10675 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10676 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10677 init_frame_pc or frame_saved_pc.
10678 (d10v_pop_frame): Delete function.
10679 (do_d10v_pop_frame): Delete function.
10680 (d10v_frame_chain): Delete function.
10681 (d10v_frame_chain_valid): Delete function.
10682 (d10v_frame_pc_unwind): New function.
10683 (d10v_frame_id_unwind): New function.
10684 (saved_regs_unwinder): New function.
10685 (d10v_frame_register_unwind): New function.
10686 (d10v_frame_pop): New function.
10687 (d10v_frame_unwind): New variable.
10688 (d10v_frame_p): New function.
10689 (d10v_frame_saved_pc): Delete function.
10690 * Makefile.in (d10v-tdep.o): Update dependencies.
10691
10692 2003-01-30 J. Brobecker <brobecker@gnat.com>
10693
10694 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10695 causing some regressions due to a change in the default value
10696 for this macro.
10697
10698 2003-01-29 Richard Henderson <rth@redhat.com>
10699 Elena Zannoni <ezannoni@redhat.com>
10700 Daniel Jacobowitz <drow@mvista.com>
10701
10702 Fix PR gdb/961.
10703 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10704 variables.
10705 (RANGES_SECTION): New.
10706 (dwarf_ranges_buffer): New variable.
10707 (struct comp_unit_head): Add member "die".
10708 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10709 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10710 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10711 (dwarf2_locate_sections): Likewise.
10712 (dwarf2_build_psymtabs): Read .debug_ranges.
10713 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10714 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10715 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10716 Look for DW_AT_ranges and return the bounding box.
10717
10718 2003-01-29 Brian Ford <ford@vss.fsi.com>
10719
10720 * win32-nat.c (cygwin_pid): Removed as unused.
10721 (child_attach): Try fall back to Cygwin pid.
10722
10723 2003-01-29 Jim Blandy <jimb@redhat.com>
10724
10725 * objfiles.h (struct objfile): Doc fix.
10726
10727 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10728
10729 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10730 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10731 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10732 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10733 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10734 (FRAME_SAVED_PC): Change to a function with predicate.
10735 * gdbarch.h, gdbarch.c: Re-generate.
10736
10737 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10738
10739 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10740
10741 * complaints.c (complain): Delete function.
10742 * complaints.h (struct deprecated_complaint): Delete definition.
10743 (complain): Delete declaration.
10744
10745 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10746
10747 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10748 dummy frames.
10749
10750 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10751
10752 * sentinel-frame.h, sentinel-frame.c: New files.
10753 * Makefile.in (frame.o): Update dependencies.
10754 (SFILES): Add sentinel-frame.c.
10755 (sentinel_frame_h): Define.
10756 (COMMON_OBS): Add sentinel-frame.o.
10757 (sentinel-frame.o): Specify dependencies.
10758 * frame.c: Include "sentinel-frame.h".
10759 (frame_register_unwind): Rewrite assuming that there is always a a
10760 ->next frame.
10761 (frame_register, generic_unwind_get_saved_register): Ditto.
10762 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10763 (create_sentinel_frame, unwind_to_current_frame): New functions.
10764 (get_current_frame): Rewrite using create_sentinel_frame and
10765 unwind_to_current_frame. When possible, always create a frame.
10766 (create_new_frame): Set next to the sentinel frame.
10767 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10768 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10769 ID cache when necessary.
10770 (frame_saved_regs_id_unwind): Use frame_relative_level.
10771 (deprecated_generic_get_saved_register): Use frame_relative_level,
10772 get_frame_saved_regs, get_frame_pc, get_frame_base and
10773 get_next_frame.
10774 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10775 frame_register.
10776
10777 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10778
10779 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10780
10781 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10782
10783 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10784 (maintenance_set_profile_cmd): Use error () instead of warning ().
10785
10786 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10787
10788 * configure.in: Check that -pg works if using --enable-profiling.
10789 Check for monstartup and _mcleanup regardless of --enable-profiling.
10790 * maint.c: Check for monstartup and _mcleanup before using them.
10791 * config.in: Regenerated.
10792 * configure: Regenerated.
10793
10794 2003-01-24 Nick Clifton <nickc@redhat.com>
10795
10796 * Add sh2e support:
10797
10798 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10799
10800 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10801 (sh2e_show_regs): New.
10802 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10803 * config/sh/tm-sh.h: Added sh2e to comments.
10804
10805 2003-01-23 Jim Blandy <jimb@redhat.com>
10806
10807 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10808 symbols found)" message here; we haven't checked for a separate
10809 debug info file yet, so we don't know yet.
10810 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10811 we've looked everywhere. Also, there's no need to print a special
10812 message when we're loading the separate debug info file: the one
10813 symbol_file_add prints is fine.
10814
10815 2003-01-23 Alexander Larsson <alexl@redhat.com>
10816 Jim Blandy <jimb@redhat.com>
10817
10818 Add support for executables whose debug info has been separated
10819 out into a separate file, leaving only a link behind.
10820 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10821 and separate_debug_objfile_backlink.
10822 (put_objfile_before): New declaration.
10823 * symfile.c: #include "filenames.h".
10824 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10825 debug info in a separate file, read that, too. Save the addrs
10826 argument, so we can use it again to read the separated debug info;
10827 syms_from_objfile modifies the table we pass it.
10828 (reread_symbols): After re-reading an objfile, call
10829 reread_separate_symbols to refresh its separate debug info
10830 objfile, if it has one.
10831 (reread_separate_symbols, find_separate_debug_file,
10832 get_debug_link_info, separate_debug_file_exists): New functions.
10833 (debug_file_directory): New global var.
10834 (_initialize_symfile): Initialize debug_file_directory, and
10835 provide the new `set debug-file-directory' command to let the user
10836 change it.
10837 * objfiles.c (free_objfile): If this objfile has its debug info in
10838 a separate objfile, free that one too. If this is itself a
10839 separate debug info objfile, clear our parent's backlink.
10840 (put_objfile_before): New function.
10841 * utils.c (gnu_debuglink_crc32): New function.
10842 * defs.h (gnu_debuglink_crc32): New declaration.
10843 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10844 * configure.in: Handle --with-separate-debug-dir config option.
10845 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10846 * acconfig.h (DEBUGDIR): New macro.
10847 * configure, aclocal.m4, config.in: Regenerated.
10848
10849 2003-01-22 Jim Blandy <jimb@redhat.com>
10850
10851 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10852 like the old symbol_file_add, but taking new arguments: you can
10853 now pass in either a `struct section_addr_info' list to say where
10854 each section is loaded, or a `struct section_offsets' table. Pass
10855 these new arguments through to syms_from_objfile as appropriate.
10856 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10857 with the appropriate quiescent values for the new arguments.
10858
10859 * symfile.c: #include "gdb_assert.h".
10860 (syms_from_objfile): Add the ability to pass in a section offset
10861 table directly, as an alternative to the section_addr_info table.
10862 Document arguments better.
10863 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10864 * symfile.h (syms_from_objfile): Update declaration.
10865 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10866 syms_from_objfile.
10867 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10868
10869 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10870
10871 Original patch by Tom Tromey <tromey@cygnus.com> and
10872 Jason Molenda <jmolenda@apple.com>.
10873 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10874 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10875 * NEWS: Mention profiling.
10876 * configure.in (--enable-gdbtk): Fix typo.
10877 (--enable-profiling): New. Set PROFILE_CFLAGS.
10878 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10879 Fill in function.
10880 (profiling_state): New variable.
10881 (mcleanup_wrapper): New function.
10882 (_initialize_maint): Remove NOTYET, fix call to
10883 add_setshow_boolean_cmd for "maint set profile".
10884 * configure: Regenerated.
10885
10886 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10887
10888 * Makefile.in (install-gdbtk): Install PNG images too.
10889
10890 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10891
10892 * exec.c (text_start): Delete global variable.
10893 (exec_file_attach): Make text_start local to the function.
10894 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10895 * valops.c (hand_function_call): Delete code that handles
10896 BEFORE_TEXT_END and AFTER_TEXT_END.
10897 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10898 of CALL_DUMMY_LOCATION.
10899 * gdbarch.c: Regenerate.
10900 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10901 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10902 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10903 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10904 (text_end): Delete extern declaration.
10905
10906 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10907
10908 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10909 * blockframe.c (backtrace_below_main): Move to "frame.c".
10910 (frame_chain_valid): Delete check for backtrace_below_main.
10911 (_initialize_blockframe): Delete initialization, move ``set
10912 backtrace-below-main'' command to "frame.c".
10913 (do_flush_frames_sfunc): Delete function.
10914 * frame.c: Include "command.h" and "gdbcmd.h".
10915 (frame_type_from_pc): New function.
10916 (create_new_frame): Use frame_type_from_pc.
10917 (legacy_get_prev_frame): New function.
10918 (get_prev_frame): Rewrite. When an old style frame, call
10919 legacy_get_prev_frame. Otherwize, unwind the PC first.
10920 (_initialize_frame): Add ``set backtrace-below-main'' command.
10921 * Makefile.in (frame.o): Update dependencies.
10922
10923 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10924
10925 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10926 DEPRECATED_REGISTERS_INFO.
10927
10928 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10929
10930 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10931 Maintainers'. Update `Various Maintainers'.
10932
10933 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10934
10935 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10936 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10937 Suppress actual parameters when `-'.
10938 * gdbarch.h, gdbarch.c: Regenerate.
10939
10940 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10941
10942 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10943 code handling dummy frames.
10944
10945 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10946
10947 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10948 (struct frame_unwind): Add field pop.
10949 * frame.h (frame_pop): Declare.
10950 * frame.c (frame_saved_regs_pop): New function.
10951 (trad_frame_unwinder): Add frame_saved_regs_pop.
10952 (frame_pop): New function.
10953 * dummy-frame.c (dummy_frame_pop): New function.
10954 (discard_innermost_dummy): New function.
10955 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10956 (dummy_frame_unwind): Add dummy_frame_pop.
10957 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10958 * valops.c (hand_function_call): Ditto.
10959 * stack.c (return_command): Ditto.
10960
10961 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10962
10963 * cris-tdep.c: Fix function declaration indentation.
10964 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10965 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10966 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10967 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10968 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10969 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10970
10971 2003-01-18 Michael Chastain <mec@shout.net>
10972
10973 * README (Unpacking and Installation -- quick overview):
10974 Warn against ".../gdb-5.3/gdb/configure".
10975
10976 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10977
10978 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10979 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10980 (struct frame_unwind): Declare opaque.
10981 (dummy_frame_p): Declare function.
10982 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10983 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10984 * dummy-frame.c: Include "frame-unwind.h".
10985 (dummy_frame_p): New function.
10986 (dummy_frame_unwind): New variable.
10987 * frame.c: Include "frame-unwind.h".
10988 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10989 to use the new unwind field.
10990 (set_unwind_by_pc): Delete function.
10991 (create_new_frame, get_prev_frame): Set unwind field using
10992 frame_unwind_find_by_pc.
10993 (trad_frame_unwind, trad_frame_unwinder): New variables.
10994 * frame.h (trad_frame_unwind): Declare variable.
10995 (frame_id_unwind_ftype): Delete declaration.
10996 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10997 (struct frame_unwind): Declare opaque.
10998 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10999 register_unwind with a single unwind pointer.
11000 * frame-unwind.h, frame-unwind.c: New files.
11001 * Makefile.in (SFILES): Add frame-unwind.c.
11002 (frame_unwind_h): Define.
11003 (COMMON_OBS): Add frame-unwind.o.
11004 (frame-unwind.o): Specify dependencies.
11005 (frame.o, dummy-frame.o): Update dependencies.
11006
11007 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11008
11009 * ada-valprint.c: Eliminate PTR.
11010 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11011 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11012 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11013 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11014 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11015 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11016 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11017
11018 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11019
11020 * main.c (captured_main): Don't use PTR.
11021 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11022 * gdbtypes.c (lookup_primitive_typename): Ditto.
11023 (lookup_struct_elt_type): Ditto.
11024 * f-valprint.c (info_common_command): Ditto.
11025 (list_all_visible_commons): Ditto.
11026 * jv-typeprint.c (java_type_print_base): Ditto.
11027
11028 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11029 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11030 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11031 i386-interix-nat.c and i386-interix-tdep.c. Rename
11032 m68klinux-nat.c and m68klinux-tdep.c. Rename
11033 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11034 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11035 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11036 * main.c (captured_main): Use xfree, not free.
11037
11038 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11039
11040 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11041 ID back using a parameter.
11042 * frame.c (frame_id_unwind): Update call.
11043 (frame_saved_regs_id_unwind): Update.
11044 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11045 * dummy-frame.h (struct frame_id): Add opaque declaration.
11046 (dummy_frame_id_unwind): Update declaration.
11047
11048 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11049
11050 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11051
11052 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11053
11054 * MAINTAINERS (Stephen P. Smith): Updated email address.
11055
11056 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11057
11058 Fix PR gdb/898
11059 * breakpoint.c (until_break_command): Add new argument. Use it to
11060 decide whether to stop only at the current frame or not.
11061 * breakpoint.h (until_break_command): Update prototype.
11062 * infcmd.c (until_command): Add new argument to until_break_command
11063 call.
11064 (advance_command): New function.
11065 (_initialize_infcmd): Update help string for 'until' command.
11066 Add new 'advance' command.
11067
11068 2003-01-14 David Carlton <carlton@math.stanford.edu>
11069
11070 * linespec.c (decode_line_1): Normalize comments.
11071 (set_flags): Ditto.
11072 (locate_first_half): Ditto.
11073 (decode_compound): Ditto.
11074 (symtab_from_filename): Ditto.
11075 (decode_all_digits): Ditto.
11076 (decode_dollar): Ditto.
11077 (find_methods): Ditto.
11078 (find_toplevel_char): Ditto.
11079
11080 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11081
11082 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11083 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11084 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11085 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11086 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11087 * language.c, language.h, m32r-tdep.c: Update copyright.
11088 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11089 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11090 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11091 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11092 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11093 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11094
11095 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11096
11097 * stabsread.h (process_later, resolve_cfront_continuation):
11098 Obsolete.
11099 Update copyright years.
11100 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11101 Update copyright year.
11102 * dbxread.c(struct cont_elem): Obsolete.
11103 (process_later, process_now): Obsolete functions.
11104 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11105 Update copyright year.
11106 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11107 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11108 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11109 (parse_partial_symbols): Obsolete cfront support.
11110 * stabsread.c
11111 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11112 macros.
11113 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11114 read_cfront_baseclasses, read_cfront_member_functions,
11115 resolve_cfront_continuation,read_cfront_static_fields,
11116 copy_cfront_struct_fields): Obsolete functions.
11117 (define_symbol, read_one_struct_field): Obsolete cfront support.
11118 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11119 Update Copyright year.
11120
11121 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11122
11123 * stack.c (print_frame_info, print_stack_frame_base_stub,
11124 print_stack_frame_base, show_and_print_stack_frame_stub,
11125 show_and_print_stack_frame, print_only_stack_frame_stub,
11126 print_only_stack_frame): Delete functions.
11127 (print_stack_frame_stub): Call print_frame_info instead of
11128 print_frame_info_base.
11129 (print_frame_info_base): Rename to print_frame_info.
11130 (backtrace_command_1): Call print_frame_info, instead of
11131 print_frame_info_base.
11132 (current_frame_command): Call print_stack_frame, instead of
11133 print_only_stack_frame.
11134 (frame_command): Call print_stack_frame, instead of
11135 show_and_print_stack_frame.
11136 (up_command): Ditto.
11137 (down_command): Ditto.
11138 * frame.h (print_only_stack_frame): Delete prototype.
11139 * infrun.c (normal_stop): Call print_stack_frame, instead of
11140 show_and_print_stack_frame.
11141 * thread.c (info_threads_command): Call print_stack_frame, instead
11142 of print_only_stack_frame.
11143
11144 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11145
11146 * README (Graphical interface to GDB): Update URL. Point at
11147 gdb/links/.
11148
11149 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11150 version match.
11151
11152 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11153
11154 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11155 lines.
11156
11157 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11158
11159 * thread-db.c (attach_thread): Prototype.
11160 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11161 thread information (ti), and valid flags (th_valid, ti_valid).
11162 (attach_thread): Move target_pid_to_str call to after the thread
11163 is added to GDB's list. Initialize the cache.
11164 (thread_get_info_callback, thread_db_map_id2thr)
11165 (thread_db_get_info): New functions.
11166 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11167 (thread_db_store_registers, thread_db_thread_alive)
11168 (thread_db_get_thread_local_address): Use them.
11169 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11170 of calling error() for threads in unknown state.
11171
11172 (clear_lwpid_callback): New function.
11173 (thread_db_resume): Use it to clear the cache.
11174
11175 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11176
11177 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11178 (resume_callback): Remove dead code.
11179
11180 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11181
11182 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11183 predicate.
11184 * gdbarch.h, gdbarch.c: Regenerate.
11185 * stack.c (frame_info): Only initialize the saved registers when
11186 FRAME_INIT_SAVED_REGS_P.
11187 * frame.c (frame_saved_regs_register_unwind): Assert
11188 FRAME_INIT_SAVED_REGS_P.
11189 (deprecated_generic_get_saved_register): Ditto.
11190
11191 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11192
11193 * source.c (openp): Squelch warning about "filename".
11194
11195 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11196
11197 * source.c (openp): If the file does not exist don't necessarily
11198 search the path.
11199
11200 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11201
11202 Fix PR gdb/872.
11203 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11204 (integer_types_same_name_p): New function.
11205 (rank_one_type): Use it.
11206 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11207
11208 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11209
11210 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11211 variables.
11212 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11213 * configure.in: Add --with-sysroot.
11214 * configure: Regenerated.
11215 * main.c (gdb_sysroot): New variable.
11216 (captured_main): Initialize gdb_sysroot.
11217 * defs.h (gdb_sysroot): New extern declaration.
11218 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11219
11220 2003-01-12 Michael Chastain <mec@shout.net>
11221
11222 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11223
11224 2003-01-12 Michael Chastain <mec@shout.net>
11225
11226 * top.c (print_gdb_version): Bump copyright year to 2003.
11227
11228 2003-01-12 David Carlton <carlton@bactrian.org>
11229
11230 * linespec.c (symtab_from_filename): Rename variable 's' to
11231 'file_symtab'.
11232
11233 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11234
11235 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11236 dummy frame.
11237 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11238
11239 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11240
11241 * d10v-tdep.c: Include "gdb_assert.h".
11242 (d10v_store_return_value): Rewrite to match current interface.
11243 (d10v_extract_struct_value_address): Ditto.
11244 (d10v_extract_return_value): Ditto.
11245 (d10v_gdbarch_init): Set store_restore_value,
11246 extract_struct_value_address and extract_return_value.
11247
11248 2003-01-12 J. Brobecker <brobecker@gnat.com>
11249
11250 * hpread.c (set_namestring): New procedure replacing the
11251 SET_NAMESTRING macro.
11252 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11253 by calls to set_namestring.
11254
11255 2003-01-11 J. Brobecker <brobecker@gnat.com>
11256
11257 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11258 a compilation warning.
11259 (hpread_process_one_debug_symbol): Likewise.
11260
11261 2003-01-10 David Carlton <carlton@math.stanford.edu>
11262
11263 * linespec.c (decode_line_1): Rename variable 's' to
11264 'file_symtab'.
11265 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11266 (decode_dollar): Ditto.
11267 (decode_variable): Ditto.
11268 (symbol_found): Ditto.
11269
11270 2003-01-09 Michael Chastain <mec@shout.net>
11271
11272 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11273
11274 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11275
11276 * win32-nat.c (set_process_privilege): New function.
11277 (child_attach): Call set_process_privilege() to enable the
11278 SE_DEBUG_NAME user privilege if available in process token.
11279
11280 2003-01-10 J. Brobecker <brobecker@gnat.com>
11281
11282 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11283 compilation error in the previous revision.
11284
11285 2003-01-09 David Carlton <carlton@math.stanford.edu>
11286
11287 * linespec.c: Update copyright.
11288
11289 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11290
11291 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11292 than inferior_ptid.
11293 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11294
11295 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11296
11297 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11298 Update comments.
11299 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11300 (frame_saved_regs_zalloc): Update.
11301 (frame_saved_regs_register_unwind): Update.
11302 (create_new_frame): Update.
11303 (get_prev_frame): Update.
11304 (frame_extra_info_zalloc): Update.
11305 (deprecated_get_frame_saved_regs): Update.
11306 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11307 * cris-tdep.c: Update comment.
11308
11309 * somsolib.h: Fix function indentation.
11310 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11311 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11312 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11313 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11314 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11315
11316 * infrun.c (follow_fork): Use ISO C definition.
11317 * expprint.c (print_subexp): Use xfree instead of free.
11318 * charset.c: Include "gdb_string.h" instead of <string.h>.
11319 (register_iconv_charsets): Use ISO C definition.
11320 (host_charset, target_charset): Ditto.
11321 * Makefile.in (charset.o): Update dependencies.
11322 (mi-cmd-env.o): Update dependencies.
11323
11324 2003-01-08 Andrew Cagney <cagney@redhat.com>
11325
11326 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11327 get_frame_base.
11328
11329 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11330
11331 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11332 build directories. Save edited gdb output in Mbuild.log. If a
11333 build fails, remove any final GDB executable.
11334
11335 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11336
11337 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11338 replacing hex constants with function names and stripping leading
11339 file name directory prefixes.
11340
11341 2003-01-08 Andrew Cagney <cagney@redhat.com>
11342
11343 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11344 get_frame_base.
11345
11346 2003-01-08 David Carlton <carlton@math.stanford.edu>
11347
11348 * linespec.c (decode_line_1): Move code into decode_variable.
11349 (decode_variable): New function.
11350
11351 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11352
11353 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11354
11355 2003-01-08 Andrew Cagney <cagney@redhat.com>
11356
11357 * cris-tdep.c (cris_frame_init_saved_regs): Use
11358 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11359 saved_regs buffer.
11360 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11361 (sh64_nofp_frame_init_saved_regs): Ditto.
11362 (sh_fp_frame_init_saved_regs): Ditto.
11363 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11364 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11365 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11366 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11367
11368 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11369
11370 * minsyms.c (lookup_minimal_symbol): Update comment.
11371 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11372 (lookup_minimal_symbol_solib_trampoline): Likewise.
11373
11374 2003-01-08 Andrew Cagney <cagney@redhat.com>
11375
11376 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11377 frame_relative_level.
11378
11379 * alpha-tdep.c: Use get_frame_extra_info.
11380 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11381 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11382 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11383 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11384
11385 * alpha-tdep.c: Use get_next_frame.
11386 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11387 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11388 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11389 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11390 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11391 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11392 * xstormy16-tdep.c: Ditto.
11393
11394 2003-01-07 Andrew Cagney <cagney@redhat.com>
11395
11396 * alpha-tdep.c: Use get_frame_base.
11397 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11398 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11399 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11400 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11401 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11402 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11403 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11404 * config/sparc/tm-sparc.h: Ditto.
11405
11406 2003-01-07 Andrew Cagney <cagney@redhat.com>
11407
11408 * frame.c (deprecated_get_frame_context): New function.
11409 (deprecated_set_frame_context): New function.
11410 * frame.h (deprecated_get_frame_context): Declare.
11411 (deprecated_set_frame_context): Declare.
11412 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11413 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11414
11415 2003-01-07 Andrew Cagney <cagney@redhat.com>
11416
11417 * frame.c (deprecated_set_frame_next_hack): New function.
11418 (deprecated_set_frame_prev_hack): New function.
11419 * frame.h (deprecated_set_frame_next_hack): Declare.
11420 (deprecated_set_frame_prev_hack): Declare.
11421 * mcore-tdep.c (analyze_dummy_frame): Use
11422 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11423 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11424
11425 2003-01-07 David Carlton <carlton@math.stanford.edu>
11426
11427 * linespec.c (decode_line_1): Move code into decode_dollar.
11428 (decode_dollar): New function.
11429
11430 2003-01-07 Andrew Cagney <cagney@redhat.com>
11431
11432 * arm-tdep.c (arm_init_extra_frame_info): Use
11433 deprecated_update_frame_base_hack.
11434 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11435 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11436 (fix_frame_pointer): Ditto.
11437 (mn10300_analyze_prologue): Ditto.
11438
11439 2003-01-07 Andrew Cagney <cagney@redhat.com>
11440
11441 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11442 extra_info using frame_extra_info_zalloc.
11443 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11444 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11445 (sh64_init_extra_frame_info): Ditto.
11446 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11447 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11448 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11449 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11450 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11451 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11452 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11453 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11454 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11455 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11456 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11457 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11458
11459 * mn10300-tdep.c (analyze_dummy_frame): Use
11460 deprecated_set_frame_extra_info_hack.
11461 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11462
11463 2003-01-07 J. Brobecker <brobecker@gnat.com>
11464
11465 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11466 class is not scText. These do not define "real" procedures.
11467 (parse_partial_symbols): Likewise.
11468
11469 2003-01-06 Michael Snyder <msnyder@redhat.com>
11470
11471 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11472
11473 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11474
11475 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11476 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11477 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11478 deprecated_frame_xmalloc_with_cleanup.
11479 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11480 deprecated_frame_xmalloc.
11481 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11482 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11483
11484 2003-01-06 Andrew Cagney <cagney@redhat.com>
11485
11486 * x86-64-linux-tdep.c: Include "osabi.h".
11487 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11488
11489 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11490
11491 2003-01-06 Andrew Cagney <cagney@redhat.com>
11492
11493 * MAINTAINERS (Target Instruction Set Architectures): Update
11494 arm-elf. Can be built with -Werror, has been multiarched.
11495
11496 * value.h (unpack_long): Make buffer parameter constant.
11497 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11498 * scm-lang.h (scm_parse): Ditto.
11499 * defs.h (extract_typed_address, extract_address): Ditto.
11500 (extract_long_unsigned_integer): Ditto.
11501 * inferior.h (unsigned_pointer_to_address): Ditto.
11502 (signed_pointer_to_address): Ditto.
11503 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11504 * gdbarch.h, gdbarch.c: Regenerate.
11505 * findvar.c (extract_long_unsigned_integer): Update.
11506 (extract_address): Update.
11507 (extract_typed_address): Update.
11508 (unsigned_pointer_to_address): Update.
11509 * values.c (unpack_long): Update.
11510 (unpack_double): Update.
11511 (unpack_pointer): Update.
11512 (unpack_field_as_long): Update.
11513 * d10v-tdep.c (d10v_pointer_to_address): Update.
11514 * avr-tdep.c (avr_pointer_to_address): Update.
11515 * scm-lang.c (scm_unpack): Update.
11516 * findvar.c (signed_pointer_to_address): Update.
11517
11518 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11519
11520 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11521 since it is in i386-tdep.c.
11522
11523 2003-01-06 J. Brobecker <brobecker@gnat.com>
11524
11525 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11526 failure introduced in the previous change.
11527
11528 2003-01-05 Michael Chastain <mec@shout.net>
11529
11530 * README: Remove references to deleted remote-*.c files:
11531 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11532 remote-nrom.c, remote-os9k.c, remote-udi.c.
11533
11534 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11535
11536 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11537 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11538 i386_get_longjmp_target.
11539
11540 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11541
11542 * arm-tdep.c (prologue_cache): Change to a pointer.
11543 (_initialize_arm_tdep): Allocate prologue_cache.
11544 (check_prologue_cache): Update.
11545 (save_prologue_cache): Update.
11546 (arm_gdbarch_init): Update.
11547
11548 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11549
11550 * stabsread.c (update_method_name_from_physname): Call complaint()
11551 instead of error.
11552
11553 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11554
11555 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11556 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11557 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11558
11559 * blockframe.c: Include "gdbcmd.h" and "command.h".
11560 (backtrace_below_main): New variable.
11561 (file_frame_chain_valid, func_frame_chain_valid)
11562 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11563 (generic_func_frame_chain_valid): Remove functions.
11564 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11565 (_initialize_blockframe): New function.
11566 * Makefile.in (blockframe.o): Update dependencies.
11567 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11568 comment. Call frame_chain_valid ().
11569 * frame.h: Remove old prototypes. Add prototype for
11570 frame_chain_valid and update comments to match.
11571 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11572 Remove old comment.
11573 * gdbarch.h: Regenerated.
11574 * gdbarch.c: Regenerated.
11575
11576 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11577 set_gdbarch_frame_chain_valid.
11578 * avr-tdep.c (avr_gdbarch_init): Likewise.
11579 * cris-tdep.c (cris_gdbarch_init): Likewise.
11580 * frv-tdep.c (frv_gdbarch_init): Likewise.
11581 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11582 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11583 (i386_nw_init_abi): Likewise.
11584 (i386_gdbarch_init): Likewise.
11585 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11586 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11587 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11588 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11589 * mips-tdep.c (mips_gdbarch_init): Likewise.
11590 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11591 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11592 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11593 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11594 * s390-tdep.c (s390_gdbarch_init): Likewise.
11595 * sh-tdep.c (sh_gdbarch_init): Likewise.
11596 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11597 * v850-tdep.c (v850_gdbarch_init): Likewise.
11598 * vax-tdep.c (vax_gdbarch_init): Likewise.
11599 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11600
11601 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11602 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11603 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11604 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11605 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11606 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11607 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11608 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11609
11610 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11611
11612 * Makefile.in (acconfig_h): Remove incorrect macro.
11613 (config_h): Define.
11614 (osabi.o): Update dependencies.
11615 * configure.tgt: Set gdb_osabi based on target triplet.
11616 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11617 * configure: Regenerated.
11618 * config.in: Regenerated.
11619 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11620 (GDB_OSABI_DEFAULT): Define if not already defined.
11621 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11622 (set_osabi_string): New variables.
11623 (gdbarch_register_osabi): Add new OS ABI to
11624 gdb_osabi_available_names.
11625 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11626 (set_osabi, show_osabi): New functions.
11627 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11628
11629 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11630
11631 * arch-utils.c (gdbarch_info_init): Set osabi to
11632 GDB_OSABI_UNINITIALIZED.
11633 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11634 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11635 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11636 * gdbarch.c: Regenerated.
11637 * gdbarch.h: Regenerated.
11638 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11639 there's no BFD.
11640 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11641 * osabi.h (enum gdb_osabi): Move to defs.h.
11642 (gdbarch_init_osabi): Update prototype.
11643 * defs.h (enum gdb_osabi): Moved here.
11644 * Makefile.in: Update dependencies.
11645
11646 * alpha-tdep.h: Don't include "osabi.h".
11647 (struct gdbarch_tdep): Remove osabi member.
11648 * alpha-tdep.c: Include "osabi.h".
11649 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11650 iterate over arches. Update call to gdbarch_init_osabi.
11651 (alpha_dump_tdep): Don't dump osabi.
11652 * alpha-linux-tdep.c: Include "osabi.h".
11653 * alpha-osf1-tdep.c: Include "osabi.h".
11654 * alphafbsd-tdep.c: Include "osabi.h".
11655 * alphanbsd-tdep.c: Include "osabi.h".
11656
11657 * arm-tdep.h: Don't include "osabi.h".
11658 (struct gdbarch_tdep): Remove osabi member.
11659 * arm-tdep.c: Include "osabi.h".
11660 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11661 iterate over arches. Update call to gdbarch_init_osabi.
11662 (arm_dump_tdep): Don't dump osabi.
11663 * arm-linux-tdep.c: Include "osabi.h".
11664 * armnbsd-tdep.c: Include "osabi.h".
11665
11666 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11667 Update call to gdbarch_init_osabi.
11668
11669 * i386-tdep.h: Don't include "osabi.h".
11670 (struct gdbarch_tdep): Remove osabi member.
11671 * i386-tdep.c: Include "osabi.h".
11672 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11673 iterate over arches. Update call to gdbarch_init_osabi.
11674 (i386_dump_tdep): Don't dump osabi.
11675 * i386-linux-tdep.c: Include "osabi.h".
11676 * i386-sol2-tdep.c: Include "osabi.h".
11677 * i386bsd-tdep.c: Include "osabi.h".
11678 * i386gnu-tdep.c: Include "osabi.h".
11679 * i386ly-tdep.c: Include "osabi.h".
11680 * i386nbsd-tdep.c: Include "osabi.h".
11681 * i386obsd-tdep.c: Include "osabi.h".
11682
11683 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11684 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11685 check osabi when iterating over arches. Update call to
11686 gdbarch_init_osabi.
11687 (mips_dump_tdep): Don't dump osabi.
11688
11689 * ns32k-tdep.h: Don't include "osabi.h".
11690 (struct gdbarch_tdep): Remove.
11691 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11692 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11693 allocate tdep. Update call to gdbarch_init_osabi.
11694 (ns32k_dump_tdep): Remove.
11695 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11696 * ns32knbsd-tdep.c: Include "osabi.h".
11697
11698 * ppc-tdep.h: Don't include "osabi.h".
11699 (struct gdbarch_tdep): Remove osabi member.
11700 * rs6000-tdep.c: Include "osabi.h".
11701 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11702 osabi when iterating over arches. Update call to
11703 gdbarch_init_osabi.
11704 (rs6000_dump_tdep): Don't dump osabi.
11705 * ppc-linux-tdep.c: Include "osabi.h".
11706 * ppcnbsd-tdep.c: Include "osabi.h".
11707
11708 * sh-tdep.h: Don't include "osabi.h".
11709 (struct gdbarch_tdep): Remove osabi member.
11710 * sh-tdep.c: Include "osabi.h".
11711 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11712 iterate over arches. Update call to gdbarch_init_osabi.
11713 (sh_dump_tdep): Don't dump osabi.
11714 * shnbsd-tdep.c: Include "osabi.h".
11715
11716 * sparc-tdep.c: Include "osabi.h".
11717 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11718 iterate over arches. Update call to gdbarch_init_osabi.
11719 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11720 tdep structure.
11721
11722 * vax-tdep.h: Don't include "osabi.h".
11723 (struct gdbarch_tdep): Remove.
11724 * vax-tdep.c: Include "osabi.h".
11725 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11726 iterate over arches. Don't allocate tdep. Update call
11727 to gdbarch_init_osabi.
11728 (vax_dump_tdep): Remove.
11729 (_initialize_vax_tdep): Update call to gdbarch_register.
11730
11731 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11732
11733 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11734 entirely.
11735 (breakpoint_re_set_one): Don't fetch the value for a disabled
11736 watchpoint.
11737
11738 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11739
11740 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11741 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11742 (COERCE_FLOAT_TO_DOUBLE): Remove.
11743 * gdbarch.c: Regenerate.
11744 * gdbarch.h: Regenerate.
11745 * Makefile.in: Remove value_h from gdbarch_h.
11746 * valops.c (coerce_float_to_double): New variable.
11747 (default_coerce_float_to_double): Remove.
11748 (standard_coerce_float_to_double): Remove.
11749 (value_arg_coerce): Use coerce_float_to_double.
11750 (_initialize_valops): Add "set coerce-float-to-double".
11751 * value.h (default_coerce_float_to_double): Remove prototype.
11752 (standard_coerce_float_to_double): Remove prototype.
11753
11754 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11755 prototyped.
11756 * mdebugread.c (parse_symbol): Likewise.
11757 * stabsread.c (define_symbol): Mark all functions as prototyped.
11758
11759 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11760 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11761 set_gdbarch_coerce_float_to_double.
11762 * arm-tdep.c (arm_gdbarch_init): Likewise.
11763 * frv-tdep.c (frv_gdbarch_init): Likewise.
11764 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11765 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11766 * mips-tdep.c (mips_gdbarch_init): Likewise.
11767 (mips_coerce_float_to_double): Remove.
11768 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11769 (rs6000_coerce_float_to_double): Remove.
11770 * s390-tdep.c (s390_gdbarch_init): Likewise.
11771 * sh-tdep.c (sh_gdbarch_init): Likewise.
11772 (sh_coerce_float_to_double): Remove.
11773 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11774 (sparc_coerce_float_to_double): Remove.
11775 * v850-tdep.c (v850_gdbarch_init): Likewise.
11776 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11777 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11778 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11779 (hppa_coerce_float_to_double): Remove prototype.
11780 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11781
11782 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11783
11784 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11785
11786 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11787
11788 Suggested by Stewart Brown <sb24@avaya.com>:
11789 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11790 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11791 (c_type_print_varspec_suffix): Likewise.
11792
11793 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11794
11795 * configure.in: Don't set and AC_SUBST SUBDIRS.
11796 * configure: Regenerated.
11797
11798 * configure.in: Remove code dealing with shared libraries.
11799 * Makefile.in: Remove HLDFLAGS and HLDENV.
11800 * configure: Regenerated.
11801
11802 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11803
11804 * frame.c (deprecated_frame_xmalloc): New function.
11805 (deprecated_set_frame_saved_regs_hack): New function.
11806 (deprecated_set_frame_extra_info_hack): New function.
11807 * frame.h (deprecated_frame_xmalloc): Declare.
11808 (deprecated_set_frame_saved_regs_hack): Declare.
11809 (deprecated_set_frame_extra_info_hack): Declare.
11810
11811 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11812
11813 * configure.in: Move code that provides the --enable-gdbtk option
11814 right after the code that handles the --enable-tui option, and
11815 polish it somewhat.
11816 * configure: Regenerated.
11817
11818 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11819 AC_CHECK_FUNCS and remove the old check for pread64.
11820 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11821 * acconfig.h (_GNU_SOURCE): Add.
11822 (HAVE_PREAD64): Remove.
11823 * configure, aclocal.m4, config.in: Regenerated.
11824
11825 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11826
11827 * alpha-tdep.c: Use get_frame_saved_regs.
11828 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11829 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11830 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11831 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11832 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11833
11834 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11835
11836 * configure.in: Remove all use of the SUBDIRS variable; add
11837 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11838 code providing the --enable-multi-ice option, and move it right in
11839 front of the code that checks whether gdbserver is supported.
11840 Polish that too.
11841 * configure: Regenerated.
11842 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11843 @SUBDIRS@.
11844
11845 2003-01-03 Andrew Cagney <cagney@redhat.com>
11846
11847 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11848 * avr-tdep.c, cris-tdep.c: Ditto.
11849 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11850 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11851
11852 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11853
11854 * configure.in: Remove --enable-netrom option.
11855 * configure: Regenerated.
11856
11857 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11858
11859 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11860 declaration for `struct re_pattern_buffer' instead.
11861 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11862
11863 2003-01-03 J. Brobecker <brobecker@gnat.com>
11864
11865 * mdebugread.c (parse_symbol): Count until the stEnd matching
11866 the structure name.
11867
11868 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11869
11870 * configure.in: Remove --with-cpu option.
11871 subscripts. Remove evil changequotes here.
11872 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11873 * config.in, configure: Regenerated.
11874
11875 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11876 * configure.in: Cleanup section that sources GDB and BFD configure
11877 subscripts. Remove evil changequotes here.
11878 * config.in, configure: Regenerated.
11879
11880 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11881
11882 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11883 frame accessor methods.
11884 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11885 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11886 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11887 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11888 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11889 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11890 * z8k-tdep.c: Ditto.
11891
11892 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11893
11894 * configure.in: Remove UI_OUT configuration code.
11895 * ada-lang.c: Update assuming UI_OUT is always true.
11896 * Makefile.in (UIOUT_CFLAGS): Remove.
11897 * configure: Regenerated.
11898 * TODO: Remove blurb about elimination of -DUI_OUT.
11899
11900 * configure.in: Move code that provides the --enable-gdbcli,
11901 --enable-gdbmi options right before the code that handles the
11902 --enable-tui option. Polish a bit.
11903 * configure: Regenerated.
11904
11905 * configure.in: Rewrite check for GNU regex and the
11906 --without-included regex option, and move it into the "Checks for
11907 library functions" section. This makes us use the system regex
11908 again by default on systems with version 2 of the GNU C library.
11909 This was apparently broken.
11910 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11911 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11912 * config.in, configure: Regenerated.
11913
11914 * configure.in: Move code that provides the --enable-tui option
11915 before the "Checks for libraries" section. Polish the code
11916 somewhat and set need_curses to yes if we build the TUI. Rewrite
11917 code that looks for a library providing termcap functionality to
11918 match more closely what's done in the Readline library, and move
11919 it into to the "Checks for libraries" section.
11920 * configure: Regenerated.
11921 * Makefile.in (TERMCAP): Remove variable.
11922 * config/i386/go32.mh (TERMCAP): Remove variable.
11923
11924 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11925
11926 * MAINTAINERS: Mention gdb_mbuild.sh.
11927 * gdb_mbuild.sh: Rewrite.
11928
11929 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11930
11931 * configure.in: Fix typo in last change.
11932 * config.in, configure: Regenerated.
11933
11934 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11935
11936 * valarith.c (value_binop): Delete obsolete code and comments.
11937 * configure.host: Ditto.
11938 * buildsym.h (make_blockvector): Ditto.
11939 * buildsym.c (make_blockvector): Ditto.
11940 * defs.h (enum language): Ditto.
11941 (chill_demangle): Ditto.
11942 * elfread.c (elf_symtab_read): Ditto.
11943 * dwarfread.c (CHILL_PRODUCER): Ditto.
11944 (set_cu_language): Ditto.
11945 (handle_producer): Ditto.
11946 * expprint.c (print_subexp): Ditto.
11947 * gdbtypes.c (chill_varying_type): Ditto.
11948 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11949 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11950 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11951 (chill_varying_type): Ditto.
11952 * language.h (_LANG_chill): Ditto.
11953 * language.c (binop_result_type, integral_type): Ditto.
11954 (character_type, string_type, structured_type): Ditto.
11955 (lang_bool_type, binop_type_check): Ditto.
11956 * stabsread.h (os9k_stabs): Ditto.
11957 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11958 (define_symbol, read_type, read_struct_fields): Ditto.
11959 (read_array_type, read_enum_type, read_huge_number): Ditto.
11960 (read_range_type, start_stabs): Ditto.
11961 * symfile.c (init_filename_language_table): Ditto.
11962 (add_psymbol_with_dem_name_to_list): Ditto.
11963 * symtab.c (symbol_init_language_specific): Ditto.
11964 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11965 * symtab.h (struct general_symbol_info): Ditto.
11966 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11967 * typeprint.c (typedef_print): Ditto.
11968 * utils.c (fprintf_symbol_filtered): Ditto.
11969 * valops.c (value_cast, search_struct_field, value_slice): Delete
11970 obsolete code.
11971 (varying_to_slice): Delete function.
11972 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11973 (varying_to_slice): Delete declaration.
11974 * MAINTAINERS: Update.
11975
11976 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11977
11978 * configure.in: Reorganize "Checks for library functions section"
11979 a bit. Remove check for `btowc' and `isascii' functions.
11980 * configure: Regenerated.
11981
11982 * acconfig.h (_MSE_INT_H): Remove.
11983 * configure.in: Create "Checks for header files" section, and move
11984 appropriate tests there. Don't check for objlist.h, wchar.h,
11985 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11986 misdetection fix. Also add "Checks for types", "Checks for
11987 compiler characteristics" and "Checks for library functions"
11988 sections.
11989 * config.in, configure: Regenerated.
11990
11991 * configure.in: Create "Checks for programs" section, and move
11992 appropriate tests there.
11993
11994 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11995
11996 * configure.in: Create "Checks for libraries" section, and move
11997 appropriate tests there. Cleanup check for wctype in libw. Use
11998 AC_SEARCH_LIBS to see whether we need libsocket.
11999 * configure: Regenerated.
12000
12001 For older changes see ChangeLog-2002
12002 \f
12003 Local Variables:
12004 mode: change-log
12005 left-margin: 8
12006 fill-column: 74
12007 version-control: never
12008 End:
This page took 0.289376 seconds and 5 git commands to generate.