2003-09-17 Andrew Cagney <cagney@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2003-09-17 Andrew Cagney <cagney@redhat.com>
2
3 * sparc-tdep.c (legacy_register_name): Delete function.
4 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
5 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
6 * infcmd.c (gdb_register_name): Delete variable.
7 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
8 REGISTER_NAME and "tm.h".
9 * gdbarch.h, gdbarch.c: Regenerate.
10 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
11 REGISTER_NAMES in comments.
12 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
13 * m68klinux-nat.c (regmap): Ditto.
14
15 2003-09-17 Jim Blandy <jimb@redhat.com>
16
17 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
18
19 2003-09-17 Andrew Cagney <cagney@redhat.com>
20
21 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
22 (ppcnbsd_init_abi): Set "use_struct_convention" to
23 "ppcnbsd_use_struct_convention".
24
25 2003-09-17 Mark Kettenis <kettenis@gnu.org>
26
27 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
28 * gdbarch.h, gdbarch.c: Regenerate.
29 (stabs_argument_has_addr): New architecture method.
30 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
31 * arch-utils.c: Include "buildsym.h".
32 (default_stabs_argument_has_addr): New function.
33 * stabsread.c (define_symbol): Use stabs_argument_has_addr
34 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
35
36 2003-09-17 Andrew Cagney <cagney@redhat.com>
37
38 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
39 * gdbarch.h, gdbarch.c: Regenerate.
40 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
41 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
42 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
43 * sparcnbsd-tdep.c: Update.
44
45 2003-09-17 Andrew Cagney <cagney@redhat.com>
46
47 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
48 * gdbarch.h, gdbarch.c: Regenerate.
49 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
50 * d10v-tdep.c, frame.c: Update.
51 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
52 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
53 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
54 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
55 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
56 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
57 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
58 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
59 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
60 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
61 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
62 * config/pa/nm-hppah.h: Update.
63
64 2003-09-16 Andrew Cagney <cagney@redhat.com>
65
66 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
67 "use_struct_convention" to "ppc_linux_use_struct_convention".
68 (ppc_linux_use_struct_convention): New function.
69 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
70 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
71 "rs6000_use_struct_convention".
72 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
73 declaration.
74 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
75 Delete function.
76
77 2003-09-16 Andrew Cagney <cagney@redhat.com>
78
79 * buildsym.c: Remove more occurances of "register".
80 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
81 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
82 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
83 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
84 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
85 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
86 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
87 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
88
89 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
90
91 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
92 numbers to enumeration values.
93 * sh-tdep.c: Accomodate above change.
94 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
95 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
96 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
97 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
98 (IS_FPUSH): Rename from IS_FMOV.
99 (sh_extract_struct_value_address): Remove useless comment.
100 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
101 instead of own local values.
102 (sh_dump_tdep): Remove.
103 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
104 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
105
106 2003-09-15 Andrew Cagney <cagney@redhat.com>
107
108 * doublest.c (convert_floatformat_to_doublest): No longer need to
109 cast "exp_bias" to an int. Reverts 2002-12-04 change.
110
111 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
112
113 * values.c (unpack_double): Call floatformat_is_valid.
114
115 2003-09-15 Mark Kettenis <kettenis@gnu.org>
116
117 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
118 ps_strings into a long.
119
120 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
121 _initialize_am64fbsd_nat.
122
123 2003-09-15 Kevin Buettner <kevinb@redhat.com>
124
125 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
126 associated with DW_AT_ranges attribute is out of bounds.
127
128 2003-09-15 David Lecomber <dsl@sources.redhat.com>
129
130 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
131
132 2003-09-14 Michael Chastain <mec@shout.net>
133
134 * config/m68k/nm-apollo68v.h: Delete.
135 * config/m68k/xm-apollo68v.h: Delete.
136
137 2003-09-14 Andrew Cagney <cagney@redhat.com>
138
139 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
140 * dcache.c: Update copyrights and descriptions.
141 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
142
143 2003-09-14 Andrew Cagney <cagney@redhat.com>
144
145 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
146 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
147
148 2003-09-14 Andrew Cagney <cagney@redhat.com>
149
150 * alpha-nat.c: Remove some occurances of "register".
151 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
152 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
153 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
154 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
155 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
156 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
157 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
158 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
159 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
160 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
161 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
162 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
163 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
164 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
165 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
166 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
167 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
168 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
169 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
170 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
171 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
172 * values.c, vax-tdep.c, xcoffread.c: Ditto.
173
174 2003-09-13 Andrew Cagney <cagney@redhat.com>
175
176 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
177 * ppc-tdep.h (struct regcache): Declare opaque.
178 * objfiles.h (struct objfile_data): Declare opaque.
179 * cp-support.h (struct objfile): Declare opaque.
180 * linux-nat.h (target_waitstatus): Declare opaque.
181
182 2003-09-14 Mark Kettenis <kettenis@gnu.org>
183
184 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
185 (stabs_argument_has_addr): New architecture method.
186 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
187 * arch-utils.c: Include "buildsym.h".
188 (default_stabs_argument_has_addr): New function.
189 * stabsread.c (define_symbol): Use stabs_argument_has_addr
190 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
191
192 * cris-tdep.c (cris_gdbarch_init): Set
193 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
194 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
195 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
196 * mips-tdep.c (mips_gdbarch_init): Likewise.
197 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
198 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
199
200 2003-09-13 Andrew Cagney <cagney@redhat.com>
201
202 * values.c (using_struct_return): Delete "function" and "funcaddr"
203 parameters.
204 * value.h (using_struct_return): Update declaration.
205 * infcmd.c (finish_command_continuation): Update.
206 (finish_command): Update.
207 * infcall.c (call_function_by_hand): Update.
208 * eval.c (evaluate_subexp_standard): Update.
209
210 2003-09-13 Christopher Faylor <cgf@redhat.com>
211
212 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
213 SSE registers since gdb will not operate correctly without this.
214 Restore include file ordering munged in previous change.
215 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
216
217 2003-09-13 Mark Kettenis <kettenis@gnu.org>
218
219 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
220 REG_STRUCT_HAS_ADDR.
221 * gdbarch.c, gdbarch.h: Updated.
222 * infcall.c (call_function_by_hand): Update.
223 * stabsread.c (define_symbol): Updated.
224
225 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
226
227 2003-09-12 Christopher Faylor <cgf@redhat.com>
228
229 * win32-nat.c: Reorganize so that defines used by target headers are
230 actually defined by the system headers.
231 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
232 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
233
234 2003-09-12 Jim Blandy <jimb@redhat.com>
235
236 * dbxread.c (read_dbx_symtab): Don't report an internal error if
237 the file has no .data, .bss, or .rodata sections. Instead wait
238 until we see a variable alleged to live in one of those sections.
239
240 * dbxread.c (read_dbx_symtab): If we have no .data section and no
241 .bss section, presume that any variables we find live in the
242 .rodata section.
243
244 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
245 offsets for global and static variables.
246
247 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
248 symbol types are, by definition, in the .data section, so it is
249 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
250 If there is no .data section, there should be no N_DATA or N_DATA
251 | N_EXT symbols.
252
253 2003-09-12 Mark Kettenis <kettenis@gnu.org>
254
255 * amd64fbsd-tdep.c: Fix sigtramp recognition.
256 (amd64fbsd_sigcontext_addr): Rewrite.
257 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
258 with correct values.
259 (amd64fbsd_sc_reg_offset): Initialize with correct values.
260 (amd64fbsd_init_abi): Fix typo.
261
262 2003-09-12 Andrew Cagney <cagney@redhat.com>
263
264 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
265 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
266
267 2003-09-12 Andrew Cagney <cagney@redhat.com>
268
269 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
270 "entry_file_highpc". Update comments.
271 * defs.h (deprecated_inside_entry_file): Rename
272 "inside_entry_file".
273 * blockframe.c (deprecated_inside_entry_file): Rename
274 "inside_entry_file".
275 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
276 * vax-tdep.c (vax_frame_chain): Update.
277 * sh64-tdep.c (sh64_frame_chain): Update.
278 * sh-tdep.c (sh_frame_chain): Update.
279 * rs6000-tdep.c (rs6000_frame_chain): Update.
280 * ns32k-tdep.c (ns32k_frame_chain): Update.
281 * mips-tdep.c (mips_frame_chain): Update.
282 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
283 * m32r-tdep.c (m32r_frame_this_id): Update.
284 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
285 * frv-tdep.c (frv_frame_this_id): Update.
286 * d10v-tdep.c (d10v_frame_this_id): Update.
287 * cris-tdep.c (cris_frame_chain): Update.
288 * blockframe.c (legacy_frame_chain_valid): Update.
289 * avr-tdep.c (avr_frame_this_id): Update.
290 * arm-tdep.c (arm_prologue_this_id): Update.
291 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
292 * objfiles.c (objfile_relocate): Update.
293 * mipsread.c (mipscoff_symfile_read): Update.
294 (mipscoff_symfile_read): Update.
295 * mdebugread.c (parse_partial_symbols): Update.
296 * dwarfread.c (read_file_scope): Update.
297 * dwarf2read.c (read_file_scope): Update.
298 * dbxread.c (read_dbx_symtab): Update.
299 (read_dbx_symtab): Update.
300 * coffread.c (complete_symtab): Update.
301
302 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
303
304 * top.c (quit_target): New static helper function.
305 (quit_force): Moved code to quit_target(). Call quit_target()
306 via catch_errors() to catch errors during quit.
307
308 2003-09-11 David Carlton <carlton@kealia.com>
309
310 * buildsym.c (finish_block): Use allocate_block to allocate the
311 block.
312 * mdebugread.c (new_block): Add FIXME.
313
314 2003-09-11 David Carlton <carlton@kealia.com>
315
316 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
317 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
318 (recursive_dump_type): Ditto.
319 * printcmd.c (print_formatted): Ditto.
320 * typeprint.c (print_type_scalar): Ditto.
321 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
322 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
323 * cp-support.h: Declare cp_check_possible_namespace_symbols,
324 maint_cplus_cmd_list.
325 * cp-support.c: Make maint_cplus_cmd_list extern.
326 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
327 command.h.
328 (lookup_symbol_file): Look in possible namespace blocks when
329 appropriate.
330 (initialize_namespace_symtab): New.
331 (get_possible_namespace_block, free_namespace_block)
332 (check_possible_namespace_symbols)
333 (check_possible_namespace_symbols_loop)
334 (check_one_possible_namespace_symbol)
335 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
336 (_initialize_cp_namespace): Ditto.
337 * block.h: Declare allocate_block.
338 * block.c (allocate_block): New.
339 * jv-lang.c (get_java_class_symtab): Allocate blocks via
340 allocate_block.
341 * symfile.h: Update declaration of add_psymbol_to_list.
342 * symfile.c (add_psymbol_to_list): Return the partial symbol in
343 question.
344 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
345 scan_partial_symbols_call.
346 (scan_partial_symbols): Add NAMESPACE argument; update calls to
347 helper functions.
348 (add_partial_symbol): If necessary, scan mangled names for names
349 of namespaces.
350 (add_partial_namespace): Add NAMESPACE argument; generate partial
351 symbols associated to namespaces.
352 (add_partial_enumeration): Add NAMESPACE argument.
353 (new_symbol): Allow namespace syms.
354 (read_namespace): Generate namespace syms.
355 * objfiles.h: Add opaque declaration of struct symtab.
356 (struct objfile): Add cp_namespace_symtab member.
357 * objfiles.c (allocate_objfile): Set
358 objfile->cp_namespace_symtab.
359 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
360 dictionary_h, command_h.
361
362 2003-09-11 Andrew Cagney <cagney@redhat.com>
363
364 * rs6000-tdep.c (rs6000_push_dummy_call): Use
365 regcache_raw_write_signed to set SP_REGNUM, move the operation to
366 near the function's end.
367 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
368 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
369 regcache_raw_write_signed to set SP_REGNUM.
370
371 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
372
373 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
374 orig_addrs is set up properly.
375
376 2003-09-11 Andrew Cagney <cagney@redhat.com>
377
378 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
379 * gdbarch.h, gdbarch.c: Re-generate.
380 * infcall.c (call_function_by_hand): Update.
381 * hppa-tdep.c (hppa_push_arguments): Update.
382 * ada-lang.c (place_on_stack): Update.
383 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
384 * sparc-tdep.c (sparc_gdbarch_init): Update.
385 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
386 * hppa-tdep.c (hppa_gdbarch_init): Update.
387 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
388 stack_align.
389
390 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
391
392 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
393 register do need a frame.
394
395 2003-09-11 Andrew Cagney <cagney@redhat.com>
396
397 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
398 buildable since GDB 5.0.
399 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
400 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
401 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
402 * irix4-nat.c: Delete file.
403 * config/mips/irix4.mh: Delete file.
404 * config/mips/irix3.mh: Delete file.
405 * config/mips/irix3.mt: Delete file.
406 * config/mips/tm-irix3.h: Delete file.
407 * config/mips/nm-irix3.h: Delete file.
408 * config/mips/xm-irix3.h: Delete file.
409 * config/mips/nm-irix4.h: Delete file.
410 * config/mips/xm-irix4.h: Delete file.
411 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
412
413 2003-09-10 J. Brobecker <brobecker@gnat.com>
414
415 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
416 * Makefile.in (hppa-tdep.o): Update dependencies.
417
418 2003-09-10 James E Wilson <wilson@specifixinc.com>
419
420 * MAINTAINERS: Change my e-mail address. Move to paper trail
421 section.
422
423 2003-09-10 Kevin Buettner <kevinb@redhat.com>
424
425 * MAINTAINERS (frv): New ISA entry.
426
427 2003-09-10 Kevin Buettner <kevinb@redhat.com>
428
429 * frv-tdep.c (dis-asm.h): Include.
430 * Makefile.in (frv-tdep.o): Update dependencies.
431
432 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
433
434 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
435 Fix typo for high range of floating registers.
436
437 2003-09-09 David Carlton <carlton@kealia.com>
438
439 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
440 highpc initialization here out of scan_partial_symbols.
441 (scan_partial_symbols): Restructure into a recursive version,
442 calling add_partial_namespace and add_partial_enumeration when
443 appropriate.
444 (add_partial_namespace): New.
445 (add_partial_enumeration, locate_pdi_sibling): Ditto.
446
447 2003-09-09 Andrew Cagney <cagney@redhat.com>
448
449 * rs6000-tdep.c (ppc_push_return_address): Delete function.
450 (rs6000_push_dummy_call): Set LR to BP_ADDR.
451 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
452 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
453
454 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
455 (rs6000_push_dummy_call): Set the "TOC" register.
456
457 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
458 methods "max_register_raw_size", "max_register_virtual_size" or
459 "register_virtual_size".
460
461 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
462
463 * MAINTAINERS: Update my e-mail address.
464
465 2003-09-09 Andrew Cagney <cagney@redhat.com>
466
467 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
468 (rs6000_push_dummy_call): Store the struct return address.
469 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
470
471 2003-09-09 Andrew Cagney <cagney@redhat.com>
472
473 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
474 "ppc_sysv_abi_push_arguments".
475 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
476 "ppc_sysv_abi_push_arguments".
477 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
478 instead of "push_arguments".
479 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
480
481 2003-09-09 Andrew Cagney <cagney@redhat.com>
482
483 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
484 instead of CALL_DUMMY_ADDRESS.
485
486 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
487
488 * p-lang.c: Eliminate "register".
489 * c-lang.c: Ditto.
490 * expprint.c: Ditto.
491 * f-lang.c: Ditto.
492 * jv-lang.c: Ditto.
493 * language.c: Ditto.
494 * m2-lang.c: Ditto.
495 * parse.c: Ditto.
496 * scm-lang.c: Ditto.
497 * objc-lang.c: Ditto.
498
499 2003-09-09 Nick Clifton <nickc@redhat.com>
500
501 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
502
503 2003-09-04 Andrew Cagney <cagney@redhat.com>
504
505 * avr-tdep.c: Include "dis-asm.h".
506 * cris-tdep.c: Include "dis-asm.h".
507 (cris_delayed_get_disassembler): Use "struct disassemble_info"
508 instead of corresponding typedef.
509 * h8300-tdep.c: Include "dis-asm.h".
510 * ia64-tdep.c: Include "dis-asm.h".
511 * i386-tdep.c: Include "dis-asm.h".
512 (i386_print_insn): Use "struct disassemble_info" instead of
513 corresponding typedef.
514 * m68k-tdep.c: Include "dis-asm.h".
515 * mcore-tdep.c: Include "dis-asm.h".
516 * mips-tdep.c: Include "dis-asm.h".
517 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
518 instead of corresponding typedef.
519 * ns32k-tdep.c: Include "dis-asm.h".
520 * s390-tdep.c: Include "dis-asm.h".
521 * sparc-tdep.c: Include "dis-asm.h".
522 * vax-tdep.c: Include "dis-asm.h".
523 * v850-tdep.c: Include "dis-asm.h".
524 * mn10300-tdep.c: Include "dis-asm.h".
525 * rs6000-tdep.c: Include "dis-asm.h".
526 * xstormy16-tdep.c: Include "dis-asm.h".
527 (_initialize_xstormy16_tdep): Delete "extern" declaration of
528 print_insn_xstormy16.
529 * Makefile.in (v850-tdep.o): Update dependencies.
530 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
531 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
532 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
533 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
534 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
535 (gdbarch_h): Remove $(dis_asm_h).
536 * disasm.c: Include "dis-asm.h".
537 (dis_asm_read_memory): Use "struct disassemble_info" instead of
538 corresponding typedef.
539 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
540 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
541 * gdbarch.sh: Do not include "dis-asm.h".
542 (struct disassemble_info): Declare opaque.
543 (TARGET_PRINT_INSN): Update declaration.
544 * gdbarch.h, gdbarch.c: Re-generate.
545
546 2003-09-08 Andrew Cagney <cagney@redhat.com>
547
548 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
549 CALL_DUMMY_ADDRESS, change to a predicate.
550 * gdbarch.h, gdbarch.c: Re-generate.
551 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
552 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
553 * infcall.c (call_function_by_hand): Ditto.
554 * sparc-tdep.c (sparc_push_return_address): Ditto.
555 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
556 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
557 CALL_DUMMY_ADDRESS with entry_point_address.
558 * v850-tdep.c (v850_push_return_address): Ditto.
559 * s390-tdep.c (s390_push_return_address): Ditto.
560 * rs6000-tdep.c (ppc_push_return_address): Ditto.
561 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
562 * mcore-tdep.c (mcore_push_return_address): Ditto.
563 * cris-tdep.c (cris_push_return_address): Ditto.
564 * arm-tdep.c (arm_push_return_address): Ditto.
565
566 2003-09-08 Andrew Cagney <cagney@redhat.com>
567
568 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
569 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
570 and REG_UNMODIFIED to REG_SAME_VALUE.
571 (execute_cfa_program): Update.
572 (dwarf2_frame_cache): Update. Initialize table to
573 REG_UNSPECIFIED, complain if CFI fails to specify a register's
574 location.
575 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
576
577 2003-09-08 Andrew Cagney <cagney@redhat.com>
578
579 * gnu-nat.c: Remove "inline" function attribute.
580 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
581
582 2003-09-08 Kevin Buettner <kevinb@redhat.com>
583
584 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
585 target.
586
587 2003-09-08 Kevin Buettner <kevinb@redhat.com>
588
589 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
590 (frame_extra_info): Rename this struct to frv_unwind_cache.
591 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
592 Add fields ``prev_sp'' and ``base''.
593 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
594 (frv_saved_pc_after_call, frv_init_extra_frame_info)
595 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
596 Delete.
597 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
598 Revise all callers. Fill in the unwind cache argument and make
599 other adjustments to account for new frame mechanisms.
600 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
601 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
602 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
603 (frv_frame_unwind, frv_frame_base): New structs.
604 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
605 additional arguments expected by this method and adjust function
606 body accordingly.
607 (frv_gdbarch_init): Remove calls to the following functions:
608 set_gdbarch_deprecated_init_frame_pc(),
609 set_gdbarch_deprecated_saved_pc_after_call(),
610 set_gdbarch_deprecated_frame_chain(),
611 set_gdbarch_deprecated_frame_saved_pc(),
612 set_gdbarch_deprecated_frame_init_saved_regs(),
613 set_gdbarch_deprecated_push_arguments(),
614 set_gdbarch_deprecated_push_return_address(),
615 set_gdbarch_deprecated_pop_frame(),
616 set_gdbarch_deprecated_call_dummy_words(),
617 set_gdbarch_deprecated_sizeof_call_dummy_words(),
618 set_gdbarch_deprecated_init_extra_frame_info(),
619 set_gdbarch_deprecated_dummy_write_sp(), and
620 set_gdbarch_deprecated_pc_in_call_dummy().
621 Add calls to the following functions:
622 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
623 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
624 frame_base_set_default().
625 * Makefile.in (frv-tdep.o): Update dependencies.
626
627 2003-09-09 Mark Kettenis <kettenis@gnu.org>
628
629 * dwarf2-frame.c (read_encoded_value): Add support for
630 DW_EH_PE_aligned encoding.
631
632 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
633
634 * infrun.c (normal_stop): Don't print a message if the inferior
635 has exited.
636
637 2003-09-08 Jim Blandy <jimb@redhat.com>
638
639 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
640 * dbxread.c: #include "gdb_assert.h".
641 (read_dbx_symtab): If the objfile has no .data section, use the
642 section index for the .bss section instead.
643
644 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
645
646 * frame.c (deprecated_safe_get_selected_frame): New function.
647 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
648 * findvar.c (read_var_value): Call it.
649
650 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
651
652 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
653 (sh64-tdep.o): Add dependencies.
654 * configure.tgt: Add FIXME to sh-*-linux*.
655 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
656 (sh_gdbarch_init): Always set correct sh_show_regs function
657 pointer. Call sh64_gdbarch_init() if machine type is sh5.
658 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
659 * sh64-tdep.c: New file, containing all sh64 related code from
660 sh-tdep.c.
661 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
662 * config/sh/linux.mt (TDEPFILES): Ditto.
663 * config/sh/nbsd.mt (TDEPFILES): Ditto.
664 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
665 * config/sh/wince.mt (TDEPFILES): Ditto.
666
667 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
668
669 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
670 (stop_wait_callback): Handle !lp->signalled also.
671 (lin_lwp_has_pending, flush_callback): New functions.
672 (lin_lwp_wait): Call flush_callback.
673 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
674 (linux_proc_pending_signals): New function.
675 * linux-nat.h (linux_proc_pending_signals): Add prototype.
676
677 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
678
679 From Nick Kelsey <nickk@ubicom.com>:
680 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
681 when the stop PC is at the beginning of a function also.
682
683 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
684
685 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
686 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
687
688 2003-09-06 Mark Kettenis <kettenis@gnu.org>
689
690 * sol-thread.c: Include "gdb_string.h".
691
692 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
693
694 * gcore.c: Reorder include files in alphabetical order. Include
695 "gdb_assert.h". Various coding style fixes.
696 (derive_stack_segment, derive_heap_segment): Replace check for
697 non-null BOTTOM and TOP with gdb_assert.
698 (derive_heap_segment): Replace check for successful creation of
699 ZERO with gdb_assert.
700 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
701
702 2003-09-04 Andrew Cagney <cagney@redhat.com>
703
704 * thread-db.c (verbose_dlsym): New function.
705 (thread_db_load): Use verbose_dlsym
706 (thread_db_new_objfile): Print that libthread_db was loaded, and
707 that thread debugging was enabled.
708
709 2003-09-04 Andrew Cagney <cagney@redhat.com>
710
711 * configure.tgt: Add "mips64*-*-*" target. Delete
712 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
713 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
714 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
715 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
716 mips*-sony-*, and mips64*-*-elf* targets.
717 * config/mips/embedl.mt: Delete file.
718 * config/mips/embedl64.mt: Delete file.
719 * config/mips/mips.mt: Delete file.
720 * config/mips/mips64.mt: Delete file.
721 * config/mips/tm-embed.h: Delete file.
722 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
723 * config/mips/embed64.mt: Delete out-of-date comment.
724
725 2003-09-04 Andrew Cagney <cagney@redhat.com>
726
727 * hppa-tdep.c (hppa_gdbarch_init): Set
728 "have_nonsteppable_watchpoint".
729 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
730 * mips-tdep.c (mips_dump_tdep): Do not print
731 HAVE_NONSTEPPABLE_WATCHPOINT.
732 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
733 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
734 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
735 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
736
737 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
738
739 * breakpoint.c (watchpoint_check): Remove accidentally checked in
740 unused code. Add comment.
741
742 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
743
744 * breakpoint.c (watchpoint_check): Check for pc being in an
745 epilogue if watchpoint frame couldn't be found.
746
747 2003-09-04 Andrew Cagney <cagney@redhat.com>
748
749 * Makefile.in: Re-generate all dependencies.
750
751 2003-09-03 Andrew Cagney <cagney@redhat.com>
752
753 * arch-utils.h (legacy_print_insn): Delete declaration.
754 * arch-utils.c (legacy_print_insn): Delete function.
755 * disasm.c (deprecated_tm_print_insn_info): Delete.
756 (_initialize_disasm): Delete function, contained code initializing
757 deprecated_tm_print_insn_info.
758 * gdbarch.sh (deprecated_tm_print_insn): Delete.
759 (deprecated_tm_print_insn_info): Delete.
760 (TARGET_PRINT_INSN): Do not provide a default.
761 * gdbarch.h, gdbarch.c: Re-generate.
762
763 2003-09-03 Andrew Cagney <cagney@redhat.com>
764
765 * disasm.c (fprintf_disasm): New function.
766 (gdb_disassemble_info): Call "init_disassemble_info", instead of
767 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
768 reverts 2003-08-14 change.
769 (_initialize_disasm): Call "init_disassemble_info", instead of
770 INIT_DISASSEMBLE_INFO_NO_ARCH.
771
772 2003-09-03 Michael Snyder <msnyder@redhat.com>
773
774 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
775
776 2003-09-03 Andrew Cagney <cagney@redhat.com>
777
778 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
779 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
780 * symfile.c (syms_from_objfile): Update.
781 (reread_symbols): `Update
782 * exec.c (exec_file_attach): Update.
783 (exec_file_attach): Update.
784 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
785 2003-08-29 change.
786 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
787
788 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
789
790 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
791 trad-frame.h.
792 (arm_get_cache): Delete macro.
793 (struct arm_prologue_cache): Update comments. Make saved_regs into
794 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
795 to prev_sp.
796 (thumb_scan_prologue): Update for cache changes. Don't call
797 DEPRECATED_PC_IN_CALL_DUMMY.
798 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
799 argument and use it in desperation search for our prologue. Do not
800 search past the specified PC.
801 (arm_make_prologue_cache): Simplify.
802
803 (arm_prologue_this_id, arm_prologue_prev_register)
804 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
805 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
806 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
807 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
808 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
809
810 (arm_frame_chain_valid, arm_find_callers_reg)
811 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
812 (arm_pop_frame): Delete obsolete methods.
813 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
814
815 (arm_gdbarch_init): Update for new frame methods. Register prologue
816 and sigtramp unwinders. Set the default frame base method.
817
818 * Makefile.in (arm-tdep.o): Update dependencies.
819 * varobj.c (find_frame_addr_in_frame_chain): Call
820 get_frame_base_address.
821 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
822
823 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
824
825 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
826 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
827 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
828 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
829 Take NEXT_FRAME and CACHE arguments. Call
830 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
831 Set unwound_pc in CACHE instead of modifying the frame argument.
832 Don't bother checking the frame type when looking for sigtramp
833 frames.
834 (arm_make_prologue_cache, arm_frame_chain)
835 (arm_init_extra_frame_info): New functions.
836
837 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
838
839 * arm-tdep.c (arm_get_cache): Define.
840 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
841 unwound_sp, unwound_pc, and saved_regs.
842 (thumb_scan_prologue): Take a cache instead of the frame.
843 (arm_scan_prologue): Likewise.
844 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
845 instead of a temporary frame.
846 (arm_init_extra_frame_info): Allocate and use a cache.
847 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
848
849 2003-09-03 Andrew Cagney <cagney@redhat.com>
850
851 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
852 * config/mips/wince.mt (TM_CLIBS): Ditto.
853 * config/sh/wince.mt (TM_CLIBS): Ditto.
854 * config/pa/hppa64.mt (TM_CLIBS): Delete.
855 * config/sparc/sp64.mt (CC): Delete.
856
857 2003-09-03 Andrew Cagney <cagney@redhat.com>
858
859 * defs.h: Do not include "arch-utils.h".
860 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
861 GDB_MULTI_ARCH_PURE.
862 * configure.in (GDB_MULTI_ARCH): Do not define.
863 * configure, config.in: Regenerate.
864 * configure.tgt: Do not set variable "gdb_multi_arch".
865 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
866 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
867 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
868 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
869 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
870 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
871 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
872 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
873 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
874 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
875 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
876 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
877 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
878 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
879 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
880 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
881 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
882 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
883
884 2003-08-30 Michael Chastain <mec@shout.net>
885
886 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
887 * config/m68k/nm-hp300hpux.h: Delete.
888 * config/m68k/tm-hp300hpux.h: Delete.
889 * config/m68k/xm-hp300hpux.h: Delete.
890 * config/m68k/xm-hp300bsd.h: Delete.
891 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
892 tm-hp300hpux.h, xm-hp300hpux.h.
893 * somsolib.c: Remove comment about hp300 shared libraries.
894
895 2003-08-31 Mark Kettenis <kettenis@gnu.org>
896
897 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
898 Only define PTRACE_GET_THREAD_AREA is not already defined.
899 Various style fixes in code and comments and some additional
900 spelling fixes in comments. Move after functions dealing with
901 debug registers.
902 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
903 Fix coding-style.
904
905 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
906 frame_unwind_register_unsigned instead of
907 frame_unwind_unsigned_register.
908
909 2003-08-30 Mark Kettenis <kettenis@gnu.org>
910
911 * configure.in: Search for gethostbyname in libnsl.
912 * configure: Regenerated.
913
914 2003-08-29 Mark Kettenis <kettenis@gnu.org>
915
916 * configure.in: Remove redundant AC_MSG_RESULT in check for
917 uintptr_t in stdint.h.
918 * configure: Regenerated.
919
920 * amd64-nat.h (struct regcache): Add opaque declaration.
921
922 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
923 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
924 Change "register array" to "register cache" in comments.
925 (x86_64_linux_gregset64_reg_offset): New variable.
926 (GETREGS_SUPPLIES): Remove macro.
927 (supply_gregset): Call amd64_supply_native_gregset instead of
928 x86_64_linux_supply_gregset.
929 (fill_gregset): Rename `regno' to `regnum'. Call
930 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
931 (store_regs): Rename `regno' to `regnum'.
932 (store_fpregs): Rename `regno' to `regnum'.
933 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
934 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
935 Reorganize function a bit.
936 (store_inferior_registers): Rename `regno' to `regnum'. Use
937 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
938 Reorganize function a bit.
939 (_initialize_x86_64_linux_nat): New function.
940 * config/i386/x86-64linux.mh.
941
942 2003-08-29 Andrew Cagney <cagney@redhat.com>
943
944 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
945 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
946 (target_remove_watchpoint): Delete macro.
947 (target_insert_watchpoint): Delete macro.
948 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
949 (remote_mips_stopped_by_watchpoint): Delete declaration.
950 (remote_mips_remove_watchpoint): Delete declaration.
951 (remote_mips_set_watchpoint): Delete declaration.
952 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
953 * remote-mips.c (_initialize_remote_mips): Set
954 "to_insert_watchpoint", "to_stopped_by_watchpoint",
955 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
956 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
957 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
958 (mips_stopped_by_watchpoint): Rename
959 remote_mips_stopped_by_watchpoint.
960 (mips_can_hardware_watchpoint): Rename
961 remote_mips_can_use_hardware_watchpoint, update function
962 signature.
963
964 2003-08-29 Mark Kettenis <kettenis@gnu.org>
965
966 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
967 USER_DS. We haven't given them a register number yet.
968
969 * amd64-nat.h: New file.
970 * amd64-nat.c: New file.
971 * amd64fbsd-nat.c: Include "amd64-nat.h".
972 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
973 (amd64fbsd32_r_reg_offset): New variable.
974 (supply_gregset): Simply call amd64_supply_native_gregset.
975 (fill_gregset): Rename `regno' to `regnum'. Simply call
976 amd64_collect_native_gregset.
977 (fill_fpregset): Rename `regno' to `regnum'.
978 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
979 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
980 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
981 `fpregset_t'. Call amd64_supply_native_gregset instead of
982 supply_gregset. Call x86_64_supply_fxsave instead of
983 supply_fpregset.
984 (store_inferior_registers): Rename `regno' to `regnum'. Replace
985 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
986 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
987 `fpregset_t'. Call amd64_collect_native_gregset instead of
988 fill_gregset. Call x86_64_collect_fxsave instead of
989 fill_fpregset.
990 (_initialize_am64fbsd_nat): Initialize
991 amd64_native_gregset32_reg_offset and
992 amd64_native_gregset64_reg_offset.
993 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
994
995 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
996 null pointer. Fix typo in comment.
997
998 * regcache.c (supply_register): Reimplement to call
999 regcache_raw_supply.
1000 (regcache_collect): Reimplement by calling regcache_raw_collect.
1001
1002 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1003
1004 * regcache.c (register_buffer): Consitify first argument.
1005 (regcache_raw_supply, regcache_raw_collect): New
1006 functions.
1007
1008 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1009
1010 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1011 by Nathan J. Williams.
1012
1013 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1014
1015 * lin-lwp.c (wait_lwp): New function, copied from
1016 stop_wait_callback. Clean up.
1017 (stop_wait_callback): Use wait_lwp.
1018
1019 2003-08-28 Andrew Cagney <cagney@redhat.com>
1020
1021 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1022 flavour and disassembler options.
1023 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1024 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1025 deprecated_tm_print_insn_info.
1026
1027 2003-08-27 Andrew Cagney <cagney@redhat.com>
1028
1029 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1030 Use target_read_memory.
1031 (s390_get_frame_info): Update. Do not reference
1032 deprecated_tm_print_insn_info.
1033 (s390_check_function_end, s390_is_sigreturn): Ditto.
1034
1035 2003-08-27 Andrew Cagney <cagney@redhat.com>
1036
1037 * Makefile.in (cris-tdep.o): Update dependencies.
1038 * cris-tdep.c: Include "gdb_assert.h".
1039 (cris_gdbarch_init): Set print_insn.
1040 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1041 (cris_delayed_get_disassembler): Simplify, directly call the
1042 disassembler returned by cris_get_disassembler.
1043 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1044 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1045 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1046 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1047 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1048 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1049 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1050 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1051 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1052 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1053 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1054 (gdb_print_insn_sparc): Delete function.
1055 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1056 deprecated_tm_print_insn_info.
1057 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1058 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1059 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1060 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1061 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1062 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1063 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1064 (s390_gdbarch_init): Set print_insn.
1065
1066 2003-08-27 Andrew Cagney <cagney@redhat.com>
1067
1068 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1069 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1070 * infcall.c (call_function_by_hand): Convert the entry point
1071 address into a code address.
1072
1073 2003-08-27 Andrew Cagney <cagney@redhat.com>
1074
1075 * dsrec.c: Include "gdb_string.h".
1076 * Makefile.in (dsrec.o): Update dependencies.
1077
1078 2003-08-27 Michael Chastain <mec@shout.net>
1079
1080 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1081
1082 2003-08-27 Andrew Cagney <cagney@redhat.com>
1083
1084 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1085 (alpha_osf1_init_abi): Do not set call_dummy_address.
1086
1087 2003-08-27 David Carlton <carlton@kealia.com>
1088
1089 From Randolph Chung <tausq@debian.org>:
1090 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1091 compiles with -Wformat-nonliteral -Werror.
1092
1093 2003-08-26 Jim Blandy <jimb@redhat.com>
1094
1095 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1096 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1097 bfd_lookup_symbol, since we only want symbols in code sections.
1098 (look_for_base): Pass zero as the SECT_FLAGS argument to
1099 bfd_lookup_symbol, since we're not concerned about which section
1100 the symbol is in.
1101
1102 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1103
1104 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1105 we are frameless or the return address register is already known.
1106
1107 2003-08-26 Andrew Cagney <cagney@redhat.com>
1108
1109 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1110 in size. Add comments.
1111
1112 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1113
1114 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1115 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1116
1117 2003-08-26 Jason Merrill <jason@redhat.com>
1118
1119 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1120 case out of #ifdef MIPS block.
1121
1122 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1123
1124 PR java/1322
1125 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1126 available before calling SECT_OFF_TEXT.
1127 * PROBLEMS: Remove description of java/1322.
1128
1129 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1130
1131 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1132 bof, and nat0-nat127 as pseudo-registers.
1133 (ia64_frame_cache): New struct used to cache frame info.
1134 (ia64_register_reggroup_p): New routine used to override default
1135 register grouping so registers without names are still saved and
1136 restored.
1137 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1138 pseudo values.
1139 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1140 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1141 (ia64_alloc_frame_cache): New routine to create a new
1142 ia64_frame_cache.
1143 (examine_prologue): Change prototype to add next_frame pointer.
1144 Assume frameless until otherwise proven. Verify that the cfm for
1145 current frame matches the cfm that should occur for the prologues
1146 alloc insn and if equal, mark as not frameless. At end of routine,
1147 if not frameless, calculate registers for the previous frame and store
1148 in the cache, if a cache is provided.
1149 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1150 and pass 0 for next_frame.
1151 (ia64_store_return_value): Change to use convert_typed_floating()
1152 instead of calling ia64_convert_to_raw().
1153 (ia64_extract_return_value): Change to use convert_typed_floating()
1154 instead of calling ia64_convert_to_virtual().
1155 (ia64_frame_cache): New routine to support new frame model.
1156 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1157 (ia64_frame_sniffer): Ditto.
1158 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1159 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1160 (ia64_sigtramp_frame_prev_register): Ditto.
1161 (ia64_sigtramp_frame_sniffer): Ditto.
1162 (ia64_frame_base_address): Ditto.
1163 (ia64_extract_struct_value_address): Change to issue error message.
1164 (ia64_frame_align): New routine to align sp.
1165 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1166 (ia64_push_arguments): Removed. Logic moved to
1167 ia64_push_dummy_call().
1168 (ia64_push_return_address): Ditto.
1169 (ia64_unwind_dummy_id): New function.
1170 (ia64_unwind_pc): Ditto.
1171 (ia64_convert_register_p): Ditto.
1172 (ia64_register_to_value): Ditto.
1173 (ia64_value_to_register): Ditto.
1174 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1175 (ia64_register_byte, ia64_register_raw_size): Ditto.
1176 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1177 (ia64_saved_pc_after_call): Ditto.
1178 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1179 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1180 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1181 (ia64_register_convert_to_raw): Ditto.
1182 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1183 (ia64_init_extra_frame_info): Ditto.
1184 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1185 (ia64_gdbarch_init): Remove registering of deprecated functions that
1186 are no longer used. Add registration of new gdbarch functions.
1187 Remove registering deprecated_write_sp. Replace
1188 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1189 Delete set_gdbarch_deprecated_register_convertible(),
1190 set_gdbarch_deprecated_register_convert_to_virtual(), and
1191 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1192 set_gdbarch_deprecated_register_size(),
1193 set_gdbarch_deprecated_register_bytes(),
1194 set_gdbarch_pcregnum(),
1195 set_gdbarch_deprecated_register_byte(),
1196 set_gdbarch_deprecated_register_raw_size(),
1197 set_gdbarch_deprecated_max_register_raw_size(),
1198 set_gdbarch_deprecated_register_virtual_size(),
1199 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1200 Replace set_gdbarch_deprecated_extract_return_value() with
1201 set_gdbarch_extract_return_value(). Remove calls to:
1202 set_gdbarch_deprecated_saved_pc_after_call();
1203 set_gdbarch_deprecated_frame_chain(),
1204 set_gdbarch_deprecated_frame_saved_pc(),
1205 set_gdbarch_deprecated_frame_init_saved_regs(),
1206 set_gdbarch_deprecated_get_saved_register(),
1207 set_gdbarch_deprecated_call_dummy_words(),
1208 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1209 set_gdbarch_deprecated_init_extra_frame_info(),
1210 set_gdbarch_deprecated_frame_args_address(),
1211 set_gdbarch_deprecated_frame_locals_address(),
1212 and set_gdbarch_deprecated_dummy_write_sp().
1213 Add set_gdbarch_convert_register_p(),
1214 set_gdbarch_register_to_value(),
1215 set_gdbarch_value_to_register(),
1216 set_gdbarch_push_dummy_call(),
1217 set_gdbarch_frame_align(),
1218 set_gdbarch_unwind_dummy_id(),
1219 set_gdbarch_unwind_pc(),
1220 frame_unwind_append_sniffer(),
1221 frame_unwind_append_sniffer(),
1222 and frame_base_set_default().
1223
1224 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1225
1226 * configure.tgt: Document need for special "mipsisa64" handling.
1227 (mipsisa64*-*-linux64): Handle as target linux64.
1228 (mipsisa64*-*-*): Handle as target embed64.
1229
1230 2003-08-18 Michael Chastain <mec@shout.net>
1231
1232 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1233 objfile bug.
1234
1235 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1236
1237 * i387-tdep.h: Update copyright date.
1238 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1239
1240 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1241 CFLAGS games to reflect reality.
1242
1243 2003-08-24 Andrew Cagney <cagney@redhat.com>
1244
1245 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1246 GDB_MULTI_ARCH is always non-zero.
1247 * osabi.c (_initialize_gdb_osabi): Ditto.
1248 (gdbarch_init_osabi): Ditto.
1249 * sparc-tdep.c: Ditto for #if code.
1250
1251 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1252
1253 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1254 Update comments.
1255 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1256 comments.
1257 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1258 x86_64_supply_fxsave.
1259 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1260 x86_64_supply_fxsave.
1261 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1262 x86_64_supply_fxsave.
1263
1264 2003-08-23 Andreas Jaeger <aj@suse.de>
1265
1266 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1267 i387_supply_fxsave.
1268
1269 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1270
1271 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1272 i387_supply_register.
1273 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1274 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1275 i387_supply_fsave.
1276 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1277 i387_supply_fxsave.
1278 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1279 i387_supply_fsave.
1280 * i386bsd-nat.c (supply_fpregset): Adjust call to
1281 i387_supply_fsave.
1282 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1283 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1284 supply_fpregset.
1285 (store_inferior_registers): Remove extraneous whitespace. Call
1286 i387_fill_fsave instead of fill_fpregset.
1287 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1288 (supply_fpregset): Likewise.
1289 * i386v4-nat.c (supply_fpregset): Adjust call to
1290 i387_supply_fsave.
1291 * i386-interix-nat.c (supply_fpregset): Adjust call to
1292 i387_supply_fsave.
1293 * i386-linux-nat.c (supply_fpregset): Adjust call to
1294 i387_supply_fsave.
1295 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1296 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1297 i387supply_fsave and i387_supply_fxsave.
1298 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1299 Incorporate code from `i387_supply_register.
1300 (i387_supply_register): Remove.
1301 (i387_supply_fxsave): Add `regnum' argument.
1302 Update comments.
1303 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1304 prototype.
1305 (i387_supply_register): remove prototype.
1306 Update comments.
1307
1308 2003-08-22 Michael Chastain <mec@shout.net>
1309
1310 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1311 Add lines for files in gdb/testsuite/gdb.cp/* that are
1312 still not 8.3 unique.
1313
1314 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1315
1316 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1317 TYPE_VPTR_FIELDNO is valid.
1318
1319 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1320
1321 * utils.c (set_width_command): Remove prototypes.
1322 (set_screen_size): New prototype.
1323 (init_page_info): Simplify by fetching the screen size from
1324 Readline. Call set_screen_size.
1325 (set_screen_size): New function.
1326 (set_width): Add missing whitespace in comment.
1327 (set_width_command): Call set_screen_size.
1328 (set_height_command): New function.
1329 (initialize_utils): Fix formatting. Make "set height" command
1330 call set_height_command. Remove redundant code that turns off
1331 pagination if output isn't a terminal. Remove redundant call to
1332 set_width_command.
1333
1334 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1335
1336 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1337 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1338 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1339 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1340 `case' keyword.
1341 (sparc64_register_info): Give the reister with number
1342 SPARC64_STATE_REGNUM a name.
1343 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1344 %asi and %ccr.
1345 (sparc64_push_dummy_call): Take BIAS into account when checking
1346 stcak alignment.
1347 (sparc_software_single_step): Remove assertions that check whether
1348 NPC and NNPC were zero.
1349 (sparc_supply_rwindow): Make public. Merge functionality with
1350 sparc64_supply_rwindow.
1351 (sparc_fill_rwindow): Make public. Merge functionality with
1352 sparc64_fill_rwindow.
1353 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1354 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1355 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1356 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1357 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1358
1359 * reggroups.c: Add whitespace after declarations of local
1360 variables in functions.
1361
1362 2003-08-21 Michael Chastain <mec@shout.net>
1363
1364 * gdbtypes.h: Change array bound type from an int to enum.
1365
1366 2003-08-21 Andrew Cagney <cagney@redhat.com>
1367
1368 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1369 * config/sparc/tm-sparc.h: Ditto.
1370 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1371 unconditionally.
1372 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1373
1374 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1375
1376 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1377 (register_objfile_data, set_objfile_data, objfile_data): New
1378 prototypes.
1379 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1380 prototypes.
1381 (allocate_objfile): Call objfile_alloc_data.
1382 (free_objfile): Call objfile_free_data.
1383 (struct objfile_data): New.
1384 (struct objfile_data_registration): New.
1385 (struct objfile_data_registry): New.
1386 (objfile_data_registry): New variable.
1387 (register_objfile_data): New function.
1388 (objfile_alloc_data, objfile_free_data): New functions.
1389 (set_objfile_data, objfile_data): New functions.
1390 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1391 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1392 (_initialize_dwarf2_frame): New function and prototype.
1393
1394 2003-08-21 Andrew Cagney <cagney@redhat.com>
1395
1396 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1397 a specific architecture.
1398 * arch-utils.h (set_architecture_from_arch_mach): Delete
1399 declaration.
1400 (target_architecture_hook): Delete declaration.
1401 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1402 (default_float_format): Assume GDB_MULTI_ARCH.
1403 (default_double_format): Assume GDB_MULTI_ARCH.
1404 (set_endian_from_file): Delete function.
1405 (arch_ok): Delete function.
1406 (set_arch): Delete function.
1407 (set_architecture_from_arch_mach): Delete function.
1408 (set_architecture_from_file): Delete function.
1409 (set_architecture): Assume GDB_MULTI_ARCH.
1410 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1411
1412 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1413
1414 Rewrite FreeBSD/sparc64 native configuration.
1415 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1416 * sparc64fbsd-nat.c: New file.
1417 * sparc64fbsd-tdep.c: New file.
1418 * sparc64-tdep.c sparc64-tdep.h: New files.
1419 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1420 sparc64fbsd-tdep.o): New dependencies.
1421 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1422 and sparc64fbsd-tdep.c.
1423 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1424 * config/sparc/fbsd.mh: Remove copyright notice.
1425 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1426 sparcbsd-nat.o.
1427 * config/sparc/fbsd.mt: Remove copyright notice.
1428 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1429 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1430 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1431 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1432 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1433 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1434 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1435 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1436 "sparc/tm-sp64.h".
1437 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1438 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1439
1440 2003-08-21 Michael Chastain <mec@shout.net>
1441
1442 * symtab.h: Add doco on the space critical structures and
1443 some measurements of space usage.
1444
1445 2003-08-21 Michael Snyder <msnyder@redhat.com>
1446
1447 * tracepoint.c (trace_dump_command): Trace break address
1448 is subject to DECR_PC_AFTER_BREAK.
1449 (set_traceframe_context): Make "trace_line" an int.
1450 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1451
1452 2003-08-20 Michael Snyder <msnyder@redhat.com>
1453
1454 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1455 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1456 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1457 argument passing.
1458 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1459 functions, replace sh_push_dummy_call.
1460 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1461
1462 2003-08-20 Michael Chastain <mec@shout.net>
1463
1464 * gdbtypes.h (struct main_type): Rearrange to save space.
1465
1466 2003-08-20 Michael Snyder <msnyder@redhat.com>
1467
1468 * trad-frame.c: Comment typo fix.
1469
1470 2003-08-20 Michael Snyder <msnyder@redhat.com>
1471 Kevin Buettner <kevinb@redhat.com>
1472
1473 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1474 (frv_frame_init_saved_regs): Add declaration.
1475 (frame_extra_info): Add new field ``saved_regs''.
1476 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1477 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1478 Update frame related code.
1479 (frv_extract_struct_value_address): Adjust formatting.
1480 * Makefile.in (frv-tdep.o): Update dependencies.
1481 * config/frv/tm-frv.h (target_insert_watchpoint)
1482 (target_remove_watchpoint, target_insert_hw_breakpoint)
1483 (target_remove_hw_breakpoint): Delete these macros.
1484 (remote_insert_watchpoint, remote_remove_watchpoint)
1485 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1486 these declarations.
1487
1488 2003-08-20 Michael Chastain <mec@shout.net>
1489
1490 * defs.h (ENUM_BITFIELD): New macro.
1491 * symtab.h (ENUM_BITFIELD): Use it.
1492 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1493
1494 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1495
1496 * MAINTAINERS (write after approval): Add myself.
1497
1498 2003-08-18 Andrew Cagney <cagney@redhat.com>
1499
1500 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1501 * gdbarch.h, gdbarch.c: Re-generate.
1502 * infcall.c (call_function_by_hand): Adjust the SP by
1503 frame_red_zone_size before allocating any stack space.
1504 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1505 * x86-64-tdep.c (x86_64_frame_align): New function.
1506 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1507
1508 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1509 Remove code adjusting SP so that it skips over the Red Zone.
1510
1511 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1512
1513 * NEWS (New native configurations): Mention FreeBSD/amd64.
1514
1515 2003-08-18 Andrew Cagney <cagney@redhat.com>
1516
1517 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1518 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1519 "m68k_frame_p".
1520 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1521
1522 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1523
1524 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1525
1526 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1527
1528 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1529 Define.
1530 * i386-linux-nat.c: Include "linux-nat.h".
1531 (child_post_startup_inferior): New function.
1532
1533 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1534
1535 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1536 at the start of a frameless function. This probably fixes PR
1537 backtrace/1338.
1538
1539 2003-08-17 Michael Chastain <mec@shout.net>
1540
1541 * symfile.c (find_sym_fns): Remove special case for apollo target.
1542
1543 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1544
1545 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1546 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1547 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1548 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1549 (linux_supports_tracevforkdone): New function.
1550 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1551 TRACEVFORKDONE.
1552 (child_follow_fork): Handle vfork.
1553 (linux_handle_extended_wait): Likewise. Also handle exec.
1554 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1555 * NEWS: Mention fork tracing.
1556
1557 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1558
1559 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1560
1561 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1562
1563 * Makefile.in (i386-linux-nat.o): Update dependencies.
1564 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1565 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1566 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1567 * i386-linux-nat.c: Include "linux-nat.h".
1568 (child_post_startup_inferior): New function.
1569 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1570 * infptrace.c (kill_inferior): Wrap in #ifdef.
1571 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1572 attaching to each LWP.
1573 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1574 (init_lin_lwp_ops): Fill in some more operations.
1575 * linux-nat.h (linux_enable_event_reporting)
1576 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1577 prototypes.
1578 * linux-nat.c (linux_enable_event_reporting): New function.
1579 (child_post_attach, linux_child_post_startup_inferior)
1580 (child_post_startup_inferior, child_follow_fork)
1581 (linux_handle_extended_wait, kill_inferior): New functions.
1582
1583 2003-08-16 Andrew Cagney <cagney@redhat.com>
1584
1585 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1586 * gdbarch.h, gdbarch.c: Re-generate.
1587
1588 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1589
1590 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1591
1592 2003-08-16 Andrew Cagney <cagney@redhat.com>
1593
1594 * NEWS: Mention that "set prompt-escape-char" was deleted.
1595 * top.c (get_prompt_1): Delete function.
1596 (gdb_prompt_escape):
1597 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1598 prompt-escape-char" command.
1599 (MAX_PROMPT_SIZE): Delete macro.
1600 (get_prompt): Simplify, do not call get_prompt_1.
1601
1602 2003-08-16 Andrew Cagney <cagney@redhat.com>
1603
1604 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1605 -Werror. -Wformat-nonliteral problems.
1606
1607 2003-08-15 J. Brobecker <brobecker@gnat.com>
1608
1609 Further multiarching work mostly for hppa64-*-hpux11:
1610 * hppa-tdep.h: New file.
1611 * hppa-tdep.c: #include hppa-tdep.c.
1612 (hppa32_num_regs): Renamed from hppa_num_regs.
1613 (hppa64_num_regs): New constant.
1614 (hppa64_call_dummy_breakpoint_offset): New constant.
1615 (hppa32_call_dummy_length): New constant.
1616 (hppa64_call_dummy_length): New constant.
1617 (hppa32_stack_align): Make name 32bit explicit.
1618 (hppa32_register_virtual_type): Likewise.
1619 (hppa32_extract_return_value): Likewise.
1620 (hppa32_use_struct_convention): Likewise.
1621 (hppa32_store_return_value): Likewise.
1622 (hppa64_register_virtual_type): New function.
1623 (hppa64_extract_return_value): New function.
1624 (hppa64_use_struct_convention): New function.
1625 (hppa64_store_return_value): New function.
1626 (hppa_frame_locals_address): Remove declaration, function does
1627 not exist anymore.
1628 (hppa_register_byte): Add support for PA64 ABI.
1629 (hppa_gdbarch_init): Add support for PA64 ABI.
1630 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1631 Make name 32bit explicit.
1632 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1633 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1634 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1635 (hppa64_hpux_frame_base_before_sigtramp): New function.
1636 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1637 * config/pa/tm-hppa64.h: Remove macros that are no longer
1638 necessary now that the gdbarch vector is properly setup.
1639 Transform some macros into function calls. Some minor cleanup.
1640 * config/pa/tm-hppah.h: Update function calls in macros
1641 following the function renaming in hppa-hpux-tdep.c.
1642 * Makefile.in (hppa_tdep_h): New variable.
1643 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1644
1645 2003-08-14 Michael Snyder <msnyder@redhat.com>
1646
1647 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1648
1649 2003-08-13 J. Brobecker <brobecker@gnat.com>
1650
1651 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1652 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1653 routine.
1654
1655 2003-08-13 Michael Snyder <msnyder@redhat.com>
1656
1657 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1658 (frv_saved_pc_after_call): Use deprecated ftype.
1659 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1660 (frv_remote_translate_xfer_address): Remove.
1661 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1662
1663 2003-08-13 J. Brobecker <brobecker@gnat.com>
1664
1665 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1666 initialization after the common gdbarch initialization, not before.
1667
1668 2003-08-13 J. Brobecker <brobecker@gnat.com>
1669
1670 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1671 (ADDR_BITS_REMOVE): Remove, redundant.
1672
1673 2003-08-13 J. Brobecker <brobecker@gnat.com>
1674
1675 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1676 gdbarch method to clear the 2 low bits of text addresses.
1677
1678 2003-08-12 Andrew Cagney <cagney@redhat.com>
1679
1680 * Makefile.in (dsrec.o): Update dependencies.
1681 * dsrec.c: Include "gdb_assert.h".
1682 (make_srec): Use snprintf instead of sprintf, use a literal format
1683 string.
1684
1685 2003-08-12 Andrew Cagney <cagney@redhat.com>
1686
1687 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1688 FRAME_OBSTACK_ZALLOC.
1689
1690 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1691
1692 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1693 SSE registers.
1694
1695 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1696
1697 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1698 amd64fbsd_sc_reg_offset): Add extern declarations.
1699 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1700 declarations.
1701
1702 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1703
1704 * MAINTAINERS (write after approval): Update my mail address.
1705
1706 2003-08-10 Andrew Cagney <cagney@redhat.com>
1707
1708 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1709
1710 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1711
1712 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1713 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1714 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1715 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1716 i386bsd_sc_reg_offset): Add extern declarations.
1717 * i386obsd-nat.c: Include "i386-tdep.h"
1718 (_initialize_i386obsd_nat): Remove extern declarations.
1719 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1720 declarations.
1721 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1722 declarations.
1723
1724 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1725 instead of frame_read_register.
1726 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1727 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1728 SP_REGNUM.
1729 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1730 instead of frame_unwind_unsigned_register. Use
1731 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1732 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1733 instead of read_register. Use builtin_type_void_data_ptr instead
1734 of builtin_type_void_func_ptr when extracting the address of the
1735 jmp_buf.
1736 (i386_extract_return_value, i386_store_return_value,
1737 i386_pseudo_register_read, i386_pseudo_register_write): Use
1738 register_size instead REGISTER_RAW_SIZE.
1739
1740 2003-08-10 Andrew Cagney <cagney@redhat.com>
1741
1742 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1743 sprintf. Make "name" constant.
1744
1745 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1746
1747 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1748 instead of frame_read_register.
1749 (i387_print_float_info): Use get_frame_register and
1750 get_frame_register_unsigned instead of frame_register_read.
1751
1752 * i386fbsd-nat.c: Include "i386-tdep.h".
1753 (child_resume): Make `eflags' an ULONGEST. Use
1754 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1755 instead of register_read and register_write.
1756
1757 * i386bsd-nat.c (fetch_inferior_registers,
1758 store_inferior_registers): Don't use && at the end of a line.
1759 (_initialize_i386bsd_nat): Fix typo.
1760
1761 * frame.c (_initialize_frame): Add missing backslash.
1762
1763 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1764 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1765 and supply_register instead of manipulating the register buffer
1766 directly.
1767
1768 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1769 * config/i386/nm-i386sol2.h
1770 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1771
1772 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1773 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1774 instructions that GCC likes to mingle into the prologue. Fixes
1775 gdb/1253 and gdb/1255.
1776
1777 2003-08-09 Andrew Cagney <cagney@redhat.com>
1778
1779 Fix GDB PR cli/926.
1780 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1781 * command.h (add_setshow_uinteger_cmd): Declare.
1782 * frame.c (set_backtrace_cmd): New function.
1783 (show_backtrace_cmd): New function.
1784 * frame.c (_initialize_frame): Replace "set/show
1785 backtrace-below-main" with "set/show backtrace past-main". Add
1786 command "set/show backtrace limit".
1787 (backtrace_past_main): Rename "backtrace_below_main".
1788 (backtrace_limit): New variable.
1789 (get_prev_frame): Update. Check the backtrace_limit.
1790
1791 2003-08-09 Andrew Cagney <cagney@redhat.com>
1792
1793 * defs.h (xstrprintf): Declare.
1794 * utils.c (xstrprintf): New function.
1795 * breakpoint.c (insert_breakpoints): Replace sprintf and
1796 non-literal format strings, with xstrprintf and cleanups.
1797 (delete_breakpoint,breakpoint_re_set): Ditto.
1798 (commands_command, insert_breakpoints): Ditto.
1799 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1800 (break_at_finish_command_1): Ditto.
1801
1802 2003-08-09 Andrew Cagney <cagney@redhat.com>
1803
1804 * MAINTAINERS (language support): List Adam Fedor as Objective C
1805 maintainer.
1806
1807 2003-08-08 J. Brobecker <brobecker@gnat.com>
1808
1809 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1810 are now multiarched.
1811
1812 2003-08-08 J. Brobecker <brobecker@gnat.com>
1813
1814 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1815 longer necessary now that hppa64 is partially multiarch'ed.
1816
1817 2003-08-08 Andrew Cagney <cagney@redhat.com>
1818
1819 * interps.c (interp_set): Check for a NULL "old_interp".
1820
1821 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1822
1823 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1824 (install-only): Support DESTDIR.
1825 (uninstall): Likewise.
1826 (install-gdbtk): Likewise.
1827
1828 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1829
1830 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1831 contains something meaningful at all times.
1832
1833 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1834
1835 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1836
1837 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1838
1839 * MAINTAINERS (write after approval): Added self.
1840
1841 2003-08-07 Andrew Cagney <cagney@redhat.com>
1842
1843 * inferior.h (AT_SYMBOL): Define.
1844 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1845 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1846 * mips-tdep.c (mips_call_dummy_address): Delete function.
1847 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1848 set call_dummy_address.
1849
1850 2003-08-07 Andrew Cagney <cagney@redhat.com>
1851
1852 * language.c (op_error): Delete function.
1853 (binop_type_check): Delete function.
1854 * language.h (type_op_error, range_op_error): Delete macros.
1855 (op_error): Delete declaration.
1856
1857 2003-08-07 Andrew Cagney <cagney@redhat.com>
1858
1859 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1860
1861 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1862
1863 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1864 (x86_64_push_arguments): Skip the red zone.
1865
1866 2003-08-05 Andrew Cagney <cagney@redhat.com>
1867
1868 * reggroups.c (reggroup_next): Check for the final entry.
1869
1870 2003-08-04 Andrew Cagney <cagney@redhat.com>
1871
1872 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1873 * cli/cli-script.c (define_command): Call query directly, instead
1874 of passing it a buffer.
1875 * ocd.c (ocd_error): Pass error a constant format string.
1876 * remote-mips.c (mips_error): Use fputs_filtered.
1877
1878 * solib-svr4.c (_initialize_svr4_solib): Update
1879 register_gdbarch_data call.
1880 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1881
1882 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1883 (register_gdbarch_data): Delete "free" parameter. Update
1884 comments.
1885 * gdbarch.h, gdbarch.c: Re-generate.
1886 * reggroups.c (_initialize_reggroup): Update.
1887 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1888 * frame-base.c (_initialize_frame_base): Update.
1889 * frame-unwind.c (_initialize_frame_unwind): Update.
1890 * user-regs.c (_initialize_user_regs): Update.
1891 * remote.c (_initialize_remote): Update.
1892 * regcache.c (_initialize_regcache): Update.
1893
1894 * regcache.c (xfree_regcache_descr): Delete function.
1895 (_initialize_regcache): Update call to register_gdbarch_data.
1896 (init_regcache_descr, init_legacy_regcache_descr): Use
1897 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1898
1899 * remote.c (free_remote_state): Delete function.
1900 (_initialize_remote): Update register_gdbarch_data.
1901 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1902 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1903
1904 2003-08-04 Andrew Cagney <cagney@redhat.com>
1905
1906 * reggroups.c (struct reggroup_el): Define.
1907 (struct reggroups): Delete field "nr_group". Replace array
1908 "group" with a "first" to "last" linked list.
1909 (reggroups_init): Update. Allocate using gdbarch's obstack.
1910 (reggroups_free): Delete function.
1911 (add_group): Update. Add "el" parameter.
1912 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1913 (default_groups): Update.
1914 (reggroup_next): Replace reggroups.
1915 (reggroups_dump): Update.
1916 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1917 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1918 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1919
1920 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1921
1922 * Makefile.in (tui-interp.o): Update dependencies.
1923
1924 2003-08-04 David Carlton <carlton@kealia.com>
1925
1926 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1927 to internal_error call.
1928 * source.c (forward_search_command): Add "%s" format argument.
1929 (reverse_search_command): Ditto.
1930 * top.c (quit_confirm): Ditto.
1931 * cli/cli-setshow.c (do_setshow_command): Ditto.
1932 * cp-valprint.c (cp_print_class_method): Replace
1933 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1934 (cp_print_class_member): Ditto.
1935 * event-top.c (command_line_handler): Ditto.
1936 * linux-proc.c (linux_info_proc_cmd): Ditto.
1937 * p-typeprint.c (pascal_type_print_base): Ditto.
1938 * p-valprint.c (pascal_object_print_class_method): Ditto.
1939 (pascal_object_print_class_member): Ditto.
1940 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1941 * remote.c (remote_cisco_section_offsets): Ditto.
1942 * top.c (command_line_input): Ditto.
1943 * utils.c (vwarning,error_stream,quit): Ditto.
1944 * valprint.c (print_floating,print_binary_chars)
1945 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1946
1947 2003-08-04 Andrew Cagney <cagney@redhat.com>
1948
1949 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1950
1951 2003-08-02 Andrew Cagney <cagney@redhat.com>
1952
1953 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1954 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1955 amd64fbsd-nat.c.
1956
1957 2003-08-02 Andrew Cagney <cagney@redhat.com>
1958
1959 * Makefile.in: Update all dependencies and definitions.
1960
1961 2003-08-02 Adam Fedor <fedor@gnu.org>
1962
1963 * linespec.c (is_objc_method_format): New function
1964 (decode_line_1, locate_first_half): Use it.
1965 Fixes PR objc/1298
1966
1967 2003-08-01 Andrew Cagney <cagney@redhat.com>
1968
1969 * NEWS: Mention that m32r is multi-arch.
1970 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1971 * configure.tgt: Recognize m32r-*-*.
1972 * config/m32r/tm-m32r.h: Delete file.
1973 * config/m32r/m32r.mt: New file.
1974 * m32r-rom.c (m32r_upload_command): Use hostent only when
1975 gethostname succeeds, in order to avoid a compilation
1976 warning.
1977 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1978 compiler warning.
1979
1980 2003-08-01 Michael Snyder <msnyder@redhat.com>
1981
1982 * sh-tdep.c (sh_frame_align): New gdbarch method.
1983 (sh_gdbarch_init): Set up frame_align method.
1984
1985 2003-07-31 Michael Snyder <msnyder@redhat.com>
1986
1987 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1988 which is already covered by the new frames infrastructure.
1989
1990 2003-07-31 Andrew Cagney <cagney@redhat.com>
1991
1992 * user-regs.c (struct user_reg): Add "next" link.
1993 (struct user_regs): Replace "user" with "first" and "last" links.
1994 (append_user_reg): Add pre-allocated "reg" parameter.
1995 (builtin_user_regs): Provide initial value for "last".
1996 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1997 (user_regs_init): Allocate memory from the gdbarch obstack.
1998 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1999 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2000 linked list.
2001 (usernum_to_user_reg): New function.
2002 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2003 (value_of_user_reg): Use usernum_to_user_reg.
2004 (user_regs_free): Delete function.
2005 (_initialize_user_regs): Update register_gdbarch_data call.
2006
2007 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2008
2009 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2010
2011 2003-07-30 Michael Snyder <msnyder@redhat.com>
2012
2013 * value.h (value_being_returned): Add a struct_addr argument.
2014 * infcall.c (call_function_by_hand): Pass struct_addr to
2015 value_being_returned.
2016 * infcmd.c (print_return_value): Pass zero as struct_addr.
2017 * values.c (value_being_returned): If struct_addr is passed,
2018 use it instead of trying to recover it from the inferior.
2019
2020 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2021
2022 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2023 the prologue analyzer won't need to attempt to extract the pc
2024 value from the woefully incomplete dummy frame.
2025 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2026 possible. Disable code which modifies the frame.
2027
2028 2003-07-28 Andrew Cagney <cagney@redhat.com>
2029
2030 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2031 to level 2.
2032 (annotate_breakpoints_table, annotate_record): Ditto.
2033 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2034 (annotate_field_name_end, annotate_field_value): Ditto.
2035 (annotate_field_end, annotate_frame_source_begin): Ditto.
2036 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2037 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2038 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2039 (annotate_frame_address_end, annotate_frame_address): Ditto.
2040 (annotate_frame_args, annotate_frame_end): Ditto.
2041 (annotate_frame_where, annotate_arg_begin): Ditto.
2042 (annotate_arg_name_end, annotate_arg_value): Ditto.
2043 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2044 (annotate_function_call, annotate_signal_name): Ditto.
2045 (annotate_signal_string, annotate_signal_name_end): Ditto.
2046 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2047 (annotate_value_begin, annotate_value_history_value): Ditto.
2048 (annotate_value_history_end, annotate_value_end): Ditto.
2049 (annotate_display_begin, annotate_display_number_end): Ditto.
2050 (annotate_display_format, annotate_display_expression): Ditto.
2051 (annotate_display_expression_end, annotate_display_value): Ditto.
2052 (annotate_display_end, annotate_array_section_begin): Ditto.
2053 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2054 (annotate_elt, annotate_array_section_end): Ditto.
2055
2056 2003-07-28 Andrew Cagney <cagney@redhat.com>
2057
2058 * regcache.c (struct regcache_descr): Update comments on
2059 nr_raw_registers.
2060 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2061 sizeof_raw_register_valid_p.
2062 (init_regcache_descr): Set nr_raw_registers and
2063 sizeof_raw_register_valid_p before calling
2064 init_legacy_regcache_descr.
2065
2066 2003-07-28 Andrew Cagney <cagney@redhat.com>
2067
2068 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2069 MOD NUM_REGS.
2070
2071 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2072
2073 * thread.c (info_threads_command): Use get_selected_frame ().
2074 Check that there is at least one non-sentinel frame.
2075
2076 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2077
2078 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2079 (m68hc11_pop_frame): Remove.
2080 (m68hc11_frame_saved_pc): Remove.
2081 (m68hc11_frame_chain): Remove.
2082 (m68hc11_frame_init_saved_regs): Remove.
2083 (m68hc11_init_extra_frame_info): Remove.
2084 (m68hc11_store_struct_return): Remove.
2085 (m68hc11_saved_pc_after_call): Remove.
2086
2087 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2088
2089 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2090 frame unwind information.
2091 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2092 and adapted for frame unwinding.
2093 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2094 (m68hc11_unwind_pc): New function.
2095 (m68hc11_frame_unwind_cache): New function to analyze frames.
2096 (m68hc11_frame_this_id): New function to create new frame struct.
2097 (m68hc11_frame_prev_register): New function to unwind a register from
2098 the frame.
2099 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2100 (m68hc11_frame_p): New function for the above.
2101 (m68hc11_frame_base_address): New function to return fp of frame.
2102 (m68hc11_frame_args_address): Update for frame.
2103 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2104 (m68hc11_unwind_sp): New function.
2105 (m68hc11_unwind_dummy_id): New function.
2106 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2107 calls.
2108
2109 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2110
2111 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2112 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2113 when we are beyond the current pc.
2114
2115 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2116
2117 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2118 from m68hc11_push_arguments.
2119 (m68hc11_push_arguments): Remove.
2120 (m68hc11_push_return_address): Remove.
2121 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2122 handlers; remove deprecated_extra_stack_alignment_needed.
2123
2124 2003-07-27 Andrew Cagney <cagney@redhat.com>
2125
2126 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2127 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2128 REAL_PC and not the pointer.
2129 * hppa-hpux-tdep.c: Include frame.h
2130
2131 2003-07-27 Andrew Cagney <cagney@redhat.com>
2132
2133 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2134 GDB_MULTI_ACH_PARTIAL.
2135
2136 2003-07-27 Andrew Cagney <cagney@redhat.com>
2137
2138 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2139 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2140 operator at start and not end of line.
2141 (decode_prologue): Ditto.
2142 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2143 frame_unwind_register_unsigned instead of
2144 frame_unwind_unsigned_register.
2145 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2146 read_register.
2147 (m32r_push_dummy_call): Use register_size instead of
2148 REGISTER_RAW_SIZE.
2149 (m32r_frame_sniffer): Replace m32r_frame_p.
2150 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2151 * m32r-rom.c (report_transfer_performance): Delete extern
2152 declaration.
2153 (m32r_load, m32r_upload_command): Use print_transfer_performance
2154 instead of report_transfer_performance.
2155 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2156 / add_show_from_set.
2157
2158 2003-07-26 Andrew Cagney <cagney@redhat.com>
2159
2160 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2161 store_return_value and extract_struct_value_address.
2162
2163 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2164
2165 PR c++/1267
2166 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2167 NULL, default to the section containing PC.
2168
2169 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2170
2171 * NEWS: Mention "regs" deprecated for m68hc11 too.
2172
2173 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2174 (m68hc11_print_register): New function to print out one register.
2175 (m68hc11_print_registers_info): New function to print registers.
2176 (show_regs): Deprecate and use the above.
2177 (m68hc11_gdbarch_init): Install the print_registers_info.
2178
2179 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2180
2181 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2182 that we have a SIGTRAP before returning non-zero.
2183
2184 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2185 Elena Zannoni <ezannoni@redhat.com>
2186
2187 * linespec.c (decode_line_2): Avoid crash if
2188 find_function_start_sal() returns empty record.
2189
2190 2003-07-23 Andreas Schwab <schwab@suse.de>
2191
2192 * ia64-tdep.c (ia64_print_insn): New function.
2193 (ia64_gdbarch_init): Set print_insn to it.
2194 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2195 deprecated_tm_print_insn_info.
2196
2197 2003-07-22 Michael Snyder <msnyder@redhat.com>
2198
2199 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2200 handle 8-bit returns (long long).
2201 (h8300h_extract_return_value): Ditto.
2202 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2203
2204 2003-07-22 Andrew Cagney <cagney@redhat.com>
2205
2206 * gdbarch.c Include "gdb_obstack.h".
2207 (struct gdbarch): Add an "obstack".
2208 (alloc_gdbarch_data): Allocate the gdbarch data using
2209 GDBARCH_OBSTACK_CALLOC.
2210 (free_gdbarch_data): Delete function.
2211 (gdbarch_obstack_zalloc): New function.
2212 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2213 Assert that the architecture is not initialized.
2214 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2215 vector from the obstack.
2216 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2217 architecture obstack.
2218 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2219 (set_gdbarch_data): Assert that the data is not initialized.
2220 (struct gdbarch_data): Delete member "free".
2221 (register_gdbarch_data): Do not initialize "free".
2222 * gdbarch.h, gdbarch.c: Re-generate.
2223
2224 2003-07-22 Andrew Cagney <cagney@redhat.com>
2225
2226 * configure.in (build_warnings): Add -Wformat-nonliteral.
2227 * configure: Re-generate.
2228
2229 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2230
2231 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2232
2233 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2234
2235 * findvar.c (read_var_value): Remove case for thread local storage
2236 variables. It is now entirely handled by the dwarf2 location
2237 expression code.
2238 * printcmd.c (address_info): Ditto.
2239 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2240 enumeration value.
2241 (struct symbol): Remove objfile field, which was used by
2242 LOC_THREAD_LOCAL_STATIC only.
2243 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2244 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2245 usage of objfile pointer.
2246 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2247 thread local variables.
2248 Add include of objfiles.h.
2249 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2250 storage variables.
2251 * Makefile.in (dwarf2loc.o): Update dependencies.
2252
2253 2003-07-22 Andrew Cagney <cagney@redhat.com>
2254
2255 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2256 get_frame_base.
2257 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2258 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2259 (struct value): Add opaque declaration.
2260 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2261
2262 2003-07-21 Andrew Cagney <cagney@redhat.com>
2263
2264 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2265 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2266
2267 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2268
2269 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2270 regcache_cooked_read_unsigned instead of read_register.
2271 (m68hc11_saved_pc_after_call): Likewise.
2272 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2273 instead of write_register.
2274 (m68hc11_register_type): New function.
2275 (m68hc11_register_virtual_type): Remove.
2276 (m68hc11_store_return_value): Convert to use the regcache.
2277 (m68hc11_extract_struct_value_address): Likewise.
2278 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2279 m68hc11_register_type; undeprecate store_return_value and
2280 extract_struct_value_address.
2281
2282 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2283
2284 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2285 and translate to use regcache.
2286 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2287
2288 2003-07-18 Andrew Cagney <cagney@redhat.com>
2289
2290 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2291 * gdbarch.h, gdbarch.c: Re-generate.
2292 * i386-tdep.c (i386_gdbarch_init): Do not set
2293 DWARF2_BUILD_FRAME_INFO.
2294 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2295 unconditionally.
2296 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2297 DWARF2_BUILD_FRAME_INFO.
2298
2299 2003-07-18 Andrew Cagney <cagney@redhat.com>
2300
2301 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2302 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2303
2304 2003-07-18 Andrew Cagney <cagney@redhat.com>
2305
2306 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2307 frame_unwind_address_in_block, instead of frame_pc_unwind.
2308 (dwarf2_frame_cache): Ditto.
2309
2310 2003-07-18 Andrew Cagney <cagney@redhat.com>
2311
2312 * user-regs.h (struct gdbarch): Declare opaque.
2313 * ui-out.h (struct ui_file): Declare opaque.
2314 * dwarf2-frame.h (struct frame_info): Declare opaque.
2315
2316 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2317
2318 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2319 #include "...".
2320 (procfs_meminfo): Change strerror to safe_strerror.
2321 (procfs_can_run): Remove K&R badness.
2322
2323 2003-07-17 Michael Snyder <msnyder@redhat.com>
2324
2325 * remote-sim.c: Comment typo fix.
2326
2327 2003-07-17 Andrew Cagney <cagney@redhat.com>
2328
2329 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2330 configure.
2331 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2332 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2333 GDB_MULTI_ARCH_PARTIAL.
2334
2335 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2336
2337 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2338 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2339 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2340
2341 2003-07-16 Theodore A. Roth <troth@openavr.org>
2342
2343 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2344 found.
2345 (avr_frame_unwind_cache): Don't unwind FP for main.
2346 Update a comment.
2347 Save the computed prev_sp.
2348 (avr_saved_regs_unwinder): Remove function.
2349 (avr_frame_prev_register): Use PC unwind logic from
2350 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2351
2352 2003-07-16 Andrew Cagney <cagney@redhat.com>
2353
2354 * frame-base.h (frame_base_p_ftype): Delete definition.
2355 (frame_base_append_predicate): Delete declaration.
2356 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2357 (frame_unwind_append_predicate): Delete declaration.
2358 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2359 (append_predicate): Delete parameter "p".
2360 (frame_unwind_append_predicate): Delete function.
2361 (frame_unwind_append_sniffer): Update call to append_predicate.
2362 (frame_unwind_free): Delete function.
2363 (_initialize_frame_unwind): Pass NULL as "free" to
2364 register_gdbarch_data.
2365 (frame_unwind_init): Append the dummy_frame_sniffer.
2366 (frame_unwind_find_by_frame): Simplify.
2367 * frame-base.c (struct frame_base_table): Delete field "p".
2368 (append_predicate): Delete parameter "p".
2369 (frame_base_append_predicate): Delete function.
2370 (frame_base_append_sniffer): Update call to append_predicate.
2371 (frame_base_free): Delete function.
2372 (frame_base_find_by_frame): Simplify.
2373 (_initialize_frame_base): Pass NULL as "free" to
2374 register_gdbarch_data.
2375 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2376 (x86_64_sigtramp_frame_sniffer): Replace
2377 "x86_64_sigtramp_frame_p".
2378 (x86_64_init_abi): Set the frame unwind sniffers.
2379 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2380 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2381 (m68k_gdbarch_init): Set the frame unwind sniffers.
2382 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2383 "i386_sigtramp_frame_p".
2384 (i386_frame_sniffer): Replace "i386_frame_p".
2385 (i386_gdbarch_init): Set the frame unwind sniffers.
2386 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2387 (avr_gdbarch_init): Set the frame unwind sniffers.
2388 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2389 "alpha_sigtramp_frame_p"
2390 (alpha_heuristic_frame_sniffer): Replace
2391 "alpha_heuristic_frame_p".
2392 (alpha_gdbarch_init): Set the frame unwind sniffers.
2393 (alpha_dwarf2_init_abi): Ditto.
2394 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2395 "alpha_debug_frame_p".
2396 (alpha_mdebug_frame_base_sniffer): Replace
2397 "alpha_mdebug_frame_base_p".
2398 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2399 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2400 (d10v_gdbarch_init): Set the frame unwind sniffer.
2401 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2402 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2403 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2404 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2405 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2406 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2407
2408 2003-07-16 Michael Snyder <msnyder@redhat.com>
2409
2410 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2411 should go thru sh_dsp_register_sim_regno, else the dsp regs
2412 will not get the right values.
2413
2414 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2415
2416 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2417 deprecated_store_floating by call to store_typed_floating.
2418 (sh_sh4_register_convert_to_raw): Substitute call to
2419 deprecated_extract_floating by call to extract_typed_floating.
2420
2421 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2422
2423 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2424
2425 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2426
2427 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2428 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2429 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2430 as possible.
2431 (do_pseudo_register): Remove.
2432 (sh_push_dummy_code): New function.
2433 (sh64_store_struct_return): Rename from sh_store_struct_return.
2434 Only called for sh64 now.
2435 (sh_extract_struct_value_address): Regcache'ify.
2436 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2437 and accomodate new tasks.
2438 (sh64_push_return_address): Rename from sh_push_return_address.
2439 Only called for sh64 now.
2440 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2441 Regcache'ify.
2442 (sh3e_sh4_extract_return_value): Regcache'ify.
2443 (sh_default_store_return_value): Ditto.
2444 (sh3e_sh4_store_return_value): Ditto.
2445 (sh_default_register_byte): Remove.
2446 (sh_sh4_register_byte): Remove.
2447 (sh_default_register_raw_size): Remove.
2448 (sh_sh4_register_raw_size): Remove.
2449 (sh_register_virtual_size): Remove.
2450 (sh_sh3e_register_virtual_type): Remove.
2451 (sh_sh3e_register_type): New function.
2452 (sh_sh4_register_virtual_type): Remove.
2453 (sh_sh4_register_type): New function.
2454 (sh_default_register_virtual_type): Remove.
2455 (sh_default_register_type): New function.
2456 (do_fv_register_info): Add parameters to accomodate call from
2457 sh_print_registers_info.
2458 (do_dr_register_info): Ditto.
2459 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2460 Add parameters to accomodate call from sh_print_registers_info.
2461 (sh_do_fp_register): Ditto.
2462 (sh64_do_pseudo_register): Call do_dr_register_info,
2463 do_fv_register_info and sh_do_fp_register with default parameters.
2464 (sh_do_register): Add parameters to accomodate call from
2465 sh_print_registers_info.
2466 (sh_print_register): Ditto.
2467 (sh_print_registers_info): Rename from sh_do_registers_info.
2468 Add parameters to be used as gdbarch_print_registers_info
2469 implementation. Accomodate removed do_pseudo_register function
2470 pointer.
2471 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2472 function pointer. Call sh_print_register with default parameters.
2473 (sh64_do_registers_info): Call sh_print_registers_info instead of
2474 sh_do_registers_info.
2475 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2476 detection of deprecated vs. non-deprecated functionality.
2477 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2478 function pointer assignments by direct function calls.
2479
2480 2003-07-15 Andrew Cagney <cagney@redhat.com>
2481
2482 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2483 (frame_register_unwind, create_new_frame): Ditto.
2484 (legacy_get_prev_frame, get_frame_type): Ditto.
2485 (get_frame_base_address): Use frame_base_find_by_frame.
2486 (get_frame_locals_address): Use frame_base_find_by_frame.
2487 (get_frame_args_address): Use frame_base_find_by_frame.
2488 * frame-base.h (frame_base_sniffer_ftype): Declare.
2489 (frame_base_append_sniffer): Declare.
2490 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2491 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2492 (frame_base_append_sniffer): New function.
2493 (frame_base_append_predicate): Add a NULL sniffer.
2494 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2495 (struct frame_base_table): Add "sniffer".
2496 (frame_base_free): Free the "sniffer" table.
2497 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2498 (frame_unwind_append_sniffer): Declare.
2499 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2500 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2501 (struct frame_unwind_table): Add "sniffer", delete "middle".
2502 (append_predicate): Add "sniffer" parameter, append the sniffer.
2503 (frame_unwind_init): Update append_predicate call.
2504 (frame_unwind_append_sniffer): New function.
2505 (frame_unwind_append_predicate): Update append_predicate call.
2506 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2507
2508 2003-07-15 Andrew Cagney <cagney@redhat.com>
2509
2510 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2511 before code inhibiting repeated unwind attempts. Add to
2512 commentary on that test's problems.
2513 * blockframe.c (inside_main_func): Look for "main" in the minimal
2514 symbol table.
2515 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2516 identical.
2517
2518 2003-07-15 Andrew Cagney <cagney@redhat.com>
2519
2520 * complaints.c (struct explanation): Define.
2521 (struct complaints): Change type of "explanation" to "struct
2522 explanation".
2523 (symfile_explanations): Convert to a "struct explanation" table.
2524 (vcomplaint): Update.
2525
2526 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2527
2528 * x86-64-linux-nat.c (regmap): Removed.
2529 (supply_gregset, fill_gregset): Call
2530 x86_64_linux_(fill,supply)_gregset functions.
2531 * x86-64-linux-tdep.c (USER_*): New defines.
2532 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2533 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2534 New functions.
2535 (fetch_core_registers): Ditto.
2536 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2537 * x86-64-linux-tdep.h: New file.
2538 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2539 and core-regset.o.
2540 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2541
2542 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2543
2544 * x86-64-tdep.c (x86_64_store_return_value): Use
2545 regcache_cooked_write_part instead of regcache_cooked_write.
2546
2547 * configure.host: Add x86_64-*-freebsd*.
2548 * configure.tgt: Add x86_64-*-freebsd*.
2549 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2550 * amd64fbsd-nat.c: New file.
2551 * amd64fbsd-tdep.c: New file.
2552 * config/i386/nm-fbsd64.h: New file.
2553 * config/i386/fbsd64.mh: New file.
2554 * config/i386/fbsd64.mt: New file.
2555
2556 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2557
2558 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2559 `sc_regs_offset' and `sc_fpregs_offset'.
2560 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2561 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2562 (alpha_sigtramp_register_address): Rewrite to use new members of
2563 `struct gdbarch_tdep'.
2564 (alpha_gdbarch_init): Initialize new members of struct
2565 gdbarch_tdep'.
2566 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2567 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2568 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2569 (alphafbsd_pc_in_sigtramp): Implement.
2570 (alphafbsd_sigtramp_offset): New function.
2571 (alphafbsd_sigcontext_addr): New function.
2572 (alphafbsd_init_abi): Initialize signal trampoline related members
2573 of `struct gdbarch_tdep'.
2574 (_initialize_alphafbsd_tdep): Add prototype.
2575
2576 2003-07-11 Theodore A. Roth <troth@openavr.org>
2577
2578 * Makefile.in (install-only): Quote sed expression when generating
2579 transformed_name.
2580
2581 2003-07-11 Richard Henderson <rth@redhat.com>
2582
2583 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2584 * dwarf2-frame.c: Include complaints.h.
2585 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2586 variable initialization; return NULL on error.
2587 (decode_frame_entry): New.
2588
2589 2003-07-11 Andrew Cagney <cagney@redhat.com>
2590
2591 * frame.h (frame_address_in_block): Delete declaration.
2592 * blockframe.c (frame_address_in_block): Delete function.
2593 (get_frame_block): Use get_frame_address_in_block.
2594 (block_innermost_frame): Ditto.
2595 * stack.c (print_frame, backtrace_command_1): Ditto.
2596
2597 * frame.h (get_frame_address_in_block): Declare.
2598 (frame_unwind_address_in_block): Declare.
2599 * frame.c (frame_unwind_address_in_block): New function.
2600 (get_frame_address_in_block): New function.
2601
2602 2003-07-10 Andrew Cagney <cagney@redhat.com>
2603
2604 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2605 pre-default. Note: re-generate has no effect.
2606
2607 2003-07-10 Andrew Cagney <cagney@redhat.com>
2608
2609 * gdbarch.sh: When a variable, but not a function, compare against
2610 0. Fix problem in previous patch.
2611 * gdbarch.c: Re-generate.
2612
2613 2003-07-10 Andrew Cagney <cagney@redhat.com>
2614
2615 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2616 functions against NULL, not 0.
2617 * gdbarch.c: Re-generate.
2618
2619 2003-07-10 Fred Fish <fnf@ninemoons.com>
2620
2621 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2622 null string instead of a null pointer.
2623 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2624
2625 2003-07-09 Michael Snyder <msnyder@redhat.com>
2626
2627 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2628
2629 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2630
2631 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2632 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2633 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2634 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2635 * x86-64-tdep.c: ... from here.
2636
2637 2003-07-09 Andreas Schwab <schwab@suse.de>
2638
2639 * m68k-tdep.h (enum struct_return): Define.
2640 (struct gdbarch_tdep): Add struct_return.
2641 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2642 bytes are padded to the right, not to the left. Pass struct value
2643 address in register %a1, not on stack.
2644 (m68k_use_struct_convention): New function.
2645 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2646 struct_return in tdep to pcc_struct_return.
2647 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2648 reg_struct_return.
2649
2650 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2651
2652 * somread.c (som_symfile_offsets): Fix compilation error.
2653
2654 2003-07-09 Andrew Cagney <cagney@redhat.com>
2655
2656 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2657 Add comments about the checks.
2658
2659 2003-07-08 Andrew Cagney <cagney@redhat.com>
2660
2661 * Makefile.in: Make dependency section headers consistent.
2662 (config_h): Move to $BUILD headers section.
2663 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2664 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2665 (ada-exp.tab.c): Move to YACC/LEX section.
2666 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2667 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2668
2669 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2670
2671 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2672 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2673 of strerror with safe_strerror, use ISO C function definitions,
2674 and replace instances of sprintf with snprintf.
2675
2676 2003-07-07 Andrew Cagney <cagney@redhat.com>
2677
2678 * frame.c (get_prev_frame): Enable check for identical frames.
2679 Update comments. Update error messages.
2680
2681 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2682
2683 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2684
2685 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2686
2687 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2688 sort_symtab_syms, no longer necessary.
2689
2690 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2691
2692 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2693
2694 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2695
2696 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2697 (mips_register_byte): Likewise.
2698
2699 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2700
2701 * Makefile.in (sparc_tdep_h): New.
2702 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2703 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2704 * sparc-linux-nat.c: Include "sparc-tdep.h".
2705 * sparc-nat.c: Likewise.
2706 * sparc-tdep.c: Likewise.
2707 * sparc64nbsd-nat.c: Likewise.
2708 * sparcnbsd-nat.c: Likewise.
2709 * sparcnbsd-tdep.c: Likewise.
2710 * sparc-tdep.h: New file.
2711 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2712 and sparc_npc_regnum.
2713
2714 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2715
2716 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2717 (mips_linux_cannot_store_register): List supported instead of
2718 unsupported registers.
2719
2720 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2721
2722 * disasm.c (dump_insns): Separate instructions from addresses.
2723
2724 2003-07-07 Andreas Schwab <schwab@suse.de>
2725
2726 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2727 dependencies.
2728 * m68k-tdep.c (NUM_FREGS): Delete.
2729 (SIG_PC_FP_OFFSET): Delete.
2730 (TARGET_M68K): Delete.
2731 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2732 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2733 P_MOVEL_SP, P_MOVEML_SP): Define.
2734 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2735 P_TRAP): Delete.
2736 (m68k_register_raw_size): Delete.
2737 (m68k_register_virtual_size): Delete.
2738 (m68k_register_type): Renamed from m68k_register_virtual_type and
2739 add gdbarch argument.
2740 (m68k_store_struct_return): Delete.
2741 (m68k_deprecated_extract_return_value): Delete.
2742 (m68k_deprecated_extract_struct_value_address): Delete.
2743 (m68k_frame_chain): Delete.
2744 (m68k_frame_saved_pc): Delete.
2745 (m68k_fix_call_dummy): Delete.
2746 (m68k_push_dummy_frame): Delete.
2747 (m68k_pop_frame): Delete.
2748 (m68k_extract_return_value): New function.
2749 (m68k_store_return_value): Rewrite using regcache.
2750 (m68k_extract_struct_value_address): Rewrite using regcache.
2751 (m68k_push_dummy_call): New function.
2752 (struct m68k_frame_cache): Define.
2753 (m68k_alloc_frame_cache): New function.
2754 (m68k_analyze_frame_setup): New function.
2755 (m68k_analyze_register_saves): New function.
2756 (m68k_analyze_prologue): New function.
2757 (m68k_skip_prologue): Rewrite using above functions.
2758 (m68k_unwind_pc): New function.
2759 (m68k_frame_cache): New function.
2760 (m68k_frame_this_id): New function.
2761 (m68k_frame_prev_register): New function.
2762 (m68k_frame_unwind): New variable.
2763 (m68k_frame_p): New function.
2764 (m68k_sigtramp_frame_cache): New function.
2765 (m68k_sigtramp_frame_this_id): New function.
2766 (m68k_sigtramp_frame_prev_register): New function.
2767 (m68k_sigtramp_frame_unwind): New variable.
2768 (m68k_sigtramp_frame_p): New function.
2769 (m68k_frame_base_address): New function.
2770 (m68k_frame_base): New function.
2771 (m68k_unwind_dummy_id): New function.
2772 (fill_gregset): Use regcache_collect.
2773 (fill_fpregset): Likewise.
2774 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2775 defined.
2776 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2777 deprecated_init_frame_pc, deprecated_store_struct_return,
2778 deprecated_extract_return_value, deprecated_store_return_value,
2779 deprecated_frame_chain, deprecated_frame_saved_pc,
2780 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2781 deprecated_register_virtual_size,
2782 deprecated_max_register_raw_size,
2783 deprecated_max_register_virtual_size,
2784 deprecated_register_virtual_type, deprecated_register_size,
2785 deprecated_register_byte, deprecated_register_bytes,
2786 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2787 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2788 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2789 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2790 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2791 deprecated_push_dummy_frame, deprecated_pop_frame,
2792 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2793 only if SYSCALL_TRAP is defined. Set extract_return_value,
2794 store_return_value, extract_struct_value_address, register_type,
2795 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2796 predicates.
2797 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2798 M68K_MAX_REGISTER_SIZE): Define.
2799 (struct m68k_sigtramp_info): Define.
2800 (struct gdbarch_tdep): Add get_sigtramp_info.
2801 * m68klinux-nat.c (fetch_register): Use register_size instead of
2802 REGISTER_RAW_SIZE. Don't put assignment in if.
2803 (store_register): Likewise.
2804 (fetch_inferior_registers): Likewise.
2805 (store_inferior_registers): Likewise.
2806 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2807 (m68k_linux_frame_saved_pc): Delete.
2808 (m68k_linux_sigcontext_reg_offset,
2809 m68k_linux_ucontext_reg_offset): Define.
2810 (m68k_linux_get_sigtramp_info): New function.
2811 (m68k_linux_extract_return_value): Rewrite using regcache.
2812 (m68k_linux_store_return_value): Likewise.
2813 (m68k_linux_extract_struct_value_address): Likewise.
2814 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2815 Don't set deprecated_frame_saved_pc,
2816 deprecated_extract_return_value, deprecated_store_return_value,
2817 deprecated_extract_struct_value_address. Set
2818 extract_return_value, store_return_value,
2819 extract_struct_value_address.
2820
2821 2003-07-07 Andrew Cagney <cagney@redhat.com>
2822
2823 * expprint.c: Include "user-regs.h" instead of "frame.h".
2824 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2825 frame_map_regnum_to_name.
2826 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2827 (frame_map_name_to_regnum): Simplify, call
2828 user_reg_map_name_to_regnum.
2829 (frame_map_regnum_to_name): Simplify, call
2830 user_reg_map_regnum_to_name.
2831 (frame_register_unwind): Update.
2832 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2833 (_initialize_frame_reg): Call user_reg_add_builtin.
2834 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2835 (value_of_register): Use value_of_user_reg.
2836 * eval.c (evaluate_subexp_standard): Update.
2837 * parse.c (write_dollar_variable): Update.
2838 * d10v-tdep.c (d10v_print_registers_info): Update.
2839 * infcmd.c (registers_info): Update.
2840 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2841 (builtin_regs_h): Delete macro.
2842 (user_regs_h): Define.
2843 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2844 (builtin-regs.o): Delete target.
2845 (user-regs.o): Specify dependencies.
2846 (expprint.o): Update dependencies.
2847 (findvar.o): Update dependencies.
2848 (frame.o): Update dependencies.
2849 (std-regs.o): Update dependencies.
2850
2851 2003-07-06 Christopher Faylor <cgf@redhat.com>
2852
2853 * win32-nat.c (solib_symbols_add): Use one variable for all section
2854 address stuff. Pass variable rather than address of variable to
2855 safe_symbol_file_add.
2856
2857 2003-07-06 Andreas Schwab <schwab@suse.de>
2858
2859 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2860
2861 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2862
2863 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2864
2865 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2866
2867 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2868
2869 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2870
2871 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2872 * config/i386/nto.mh: New file.
2873 * config/i386/nm-nto.h: New file.
2874 * configure.host: Add i[3456]86-*-nto*.
2875
2876 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2877
2878 * remote-vx.c (vx_add_symbols): Fix compilation error.
2879
2880 2003-07-03 Andrew Cagney <cagney@redhat.com>
2881
2882 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2883 * gdbarch.h, gdbarch.c: Re-generate.
2884 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2885 (legacy_register_name): Declare.
2886 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2887 (REGISTER_NAME): Define.
2888 * sparc-tdep.c (legacy_register_name): New function.
2889 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2890 (REGISTER_NAME): Define.
2891 (hppa64_register_name): Declare.
2892 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2893 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2894 (hppa64_register_name): New function.
2895 (hppa_register_name): New function.
2896 * arch-utils.c (legacy_register_name): Delete.
2897 * arch-utils.h (legacy_register_name): Delete.
2898
2899 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2900
2901 * cli/cli-interp.c (cli_interpreter_resume): Update the
2902 cli_uiout's stream to gdb_stdout.
2903
2904 2003-07-03 Andrew Cagney <cagney@redhat.com>
2905
2906 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2907 predicate.
2908 * gdbarch.h, gdbarch.c: Re-generate.
2909 * regcache.c (init_regcache_descr): Use legacy code when either
2910 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2911
2912 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2913
2914 * NEWS: Move "set logging" entry into GDB 6.0 section.
2915
2916 2003-07-02 Jim Blandy <jimb@redhat.com>
2917
2918 * s390-tdep.c (struct frame_extra_info): new member:
2919 'stack_bought_valid'.
2920 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2921 initialize fextra_info->stack_bought.
2922 (s390_frameless_function_invocation): Don't trust the value of
2923 fextra_info_ptr->stack_bought unless
2924 fextra_info->stack_bought_valid is set.
2925
2926 New S390 prologue analyzer.
2927 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2928 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2929 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2930 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2931 compute_x_addr, s390_on_stack, s390_store,
2932 s390_get_signal_frame_info): New functions.
2933 (S390_NUM_SPILL_SLOTS): New macro.
2934 (s390_get_frame_info): Rewritten.
2935 (is_arg_reg): Deleted.
2936
2937 Break out the decoding of S/390 instructions into separate
2938 functions, to make it more legible, and easier to check
2939 against the spec.
2940 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2941 is_rx, is_rxe): New functions.
2942 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2943 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2944 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2945 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2946 enums for opcode values. (Is this an improvement?)
2947
2948 2003-07-02 Andrew Cagney <cagney@redhat.com>
2949
2950 * i386-tdep.c: Revert change committed as part of trad-frame code
2951 below.
2952
2953 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2954
2955 * breakpoint.c (insert_catchpoint): Make static.
2956
2957 2003-07-02 Andreas Schwab <schwab@suse.de>
2958
2959 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2960 former ia64_push_arguments and ia64_push_return_address, and use
2961 regcache functions instead of read/write_register.
2962 (ia64_gdbarch_init): Set push_dummy_call instead of
2963 deprecated_push_arguments and deprecated_push_return_address.
2964
2965 2003-07-01 Andreas Jaeger <aj@suse.de>
2966
2967 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2968 before the call.
2969 Set %rax only to number of SSE registers used.
2970
2971 2003-07-01 Andrew Cagney <cagney@redhat.com>
2972
2973 * trad-frame.h: Update comments, a -1 .addr is reserved.
2974 (trad_frame_value_p, trad_frame_addr_p): Declare.
2975 (trad_frame_reg_p): Declare.
2976 (trad_frame_set_value): Rename trad_frame_register_value.
2977 (trad_frame_set_unknown): Declare.
2978 * trad-frame.c (trad_frame_realreg_p): New function.
2979 (trad_frame_addr_p, trad_frame_value_p): New function.
2980 (trad_frame_set_unknown): New function.
2981 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2982 (trad_frame_prev_register): Use trad_frame_realreg_p,
2983 trad_frame_addr_p and trad_frame_value_p.
2984 (trad_frame_set_value): Rename trad_frame_register_value.
2985 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2986 and trad_frame_set_value.
2987
2988 2003-06-30 Jim Blandy <jimb@redhat.com>
2989
2990 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2991 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2992 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2993 for 16 registers, and then 32 more bytes.
2994 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2995 New macros.
2996 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2997 Move up in the file, since it's now used by is_simple_arg.
2998 (is_simple_arg): Don't assume registers are four bytes long.
2999 Exclude all double arguments. Extended floats are not simple
3000 args.
3001 (is_power_of_two): New function.
3002 (pass_by_copy_ref): Call is_power_of_two, and check that the
3003 length fits in a register, rather than listing all the acceptable
3004 sizes. Extended floats are not passed by reference.
3005 (s390_push_arguments): Don't assume registers are four bytes long.
3006 Reserve an argument register to point to the buffer for structures
3007 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3008 S390_STACK_FRAME_OVERHEAD.
3009
3010 2003-06-30 Andreas Schwab <schwab@suse.de>
3011
3012 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3013 format error message.
3014
3015 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3016
3017 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3018
3019 2003-06-30 David Carlton <carlton@kealia.com>
3020
3021 Band-aid for PR c++/1245.
3022 * Makefile.in (cp-support.o): Depend on complaints_h.
3023 * cp-support.c: Include complaints.h. Add declaration for
3024 find_last_component.
3025 (cp_find_first_component): Separate code into
3026 cp_find_first_component_aux.
3027 (cp_find_first_component_aux): Call demangled_name_complaint.
3028 (demangled_name_complaint): New.
3029
3030 2003-06-30 Andrew Cagney <cagney@redhat.com>
3031
3032 * remote.c (remote_write_bytes): Explicitly compute and then use
3033 the payload size. Update comments to reflect. Fixes problem of
3034 GDB not sending small packets as found by Fred Fish.
3035
3036 2003-06-30 Andrew Cagney <cagney@redhat.com>
3037
3038 * remote.c (remote_async_wait): Fix -Wformat problem.
3039
3040 2003-06-29 Andrew Cagney <cagney@redhat.com>
3041
3042 * remote.c (remote_wait): Call error, and not warning, when the
3043 packet is corrupt.
3044 (remote_async_wait): Ditto.
3045
3046 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3047
3048 * sparc-tdep.c (sparc_y_regnum): Make external again.
3049
3050 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3051
3052 * cli/cli-logging.c (pop_output_files): Add void to function
3053 definition.
3054
3055 2003-06-29 Andrew Cagney <cagney@redhat.com>
3056
3057 * frame.c (frame_register_unwind): Use unsigned char when dumping
3058 the buffer contents.
3059
3060 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3061
3062 * cli/cli-logging.c: New file.
3063 * cli-out.c (struct ui_out_data): Add original_stream.
3064 (cli_redirect): New function.
3065 (cli_ui_out_impl): Add cli_redirect.
3066 (cli_out_new): Initialize original_stream.
3067 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3068 (uo_redirect, ui_out_redirect): New.
3069 * ui-out.h (struct ui_out_impl): Add redirect member.
3070 (redirect_ftype): New.
3071 (ui_out_redirect): Add prototype.
3072 * Makefile.in: Add rules for cli-logging.c.
3073 * NEWS: Mention "set logging".
3074
3075 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3076
3077 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3078
3079 2003-06-27 Andrew Cagney <cagney@redhat.com>
3080
3081 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3082 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3083 * avr-tdep.c (avr_call_dummy_address): Delete function.
3084 (avr_gdbarch_init): Do not set call_dummy_address.
3085
3086 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3087
3088 * symfile.c (syms_from_objfile): Move variables to inner block.
3089 Move the checks for the non-mainline case a bit earlier to avoid
3090 doing some useless computations.
3091
3092 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3093
3094 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3095
3096 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3097
3098 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3099 sections.
3100
3101 2003-06-26 Michael Chastain <mec@shout.net>
3102
3103 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3104 gdb/testsuite/gdb.c++/pr-1210.exp.
3105
3106 2003-06-26 Andrew Cagney <cagney@redhat.com>
3107
3108 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3109 altivec_expression.h and altivec_registers.h.
3110
3111 2003-06-26 Andrew Cagney <cagney@redhat.com>
3112
3113 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3114 info->mach when MIPS16. Patch suggested by Fred Fish.
3115
3116 2003-06-26 Andrew Cagney <cagney@redhat.com>
3117
3118 * utils.c (internal_vproblem): Print the problem to a reason
3119 buffer and then pass to query. Make the msg variable more local.
3120
3121 2003-06-26 Andrew Cagney <cagney@redhat.com>
3122
3123 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3124 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3125 * gdbarch.h, gdbarch.c: Re-generate.
3126 * frame-base.c (default_frame_args_address): Update. Use
3127 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3128 not available.
3129 (default_frame_locals_address): Ditto for
3130 DEPRECATED_FRAME_LOCALS_ADDRESS.
3131 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3132 (vax_frame_num_args): Update.
3133 (vax_gdbarch_init): Update.
3134 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3135 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3136 * mcore-tdep.c (mcore_gdbarch_init): Update.
3137 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3138 * ia64-tdep.c (ia64_gdbarch_init): Update.
3139 * symtab.h (address_class): Update comments.
3140 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3141 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3142 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3143 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3144 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3145 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3146 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3147 * alpha-mdebug-tdep.c: Update.
3148 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3149
3150 2003-06-26 Andreas Jaeger <aj@suse.de>
3151
3152 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3153 of SSE registers so that varargs functions work. Rework handling
3154 of passing arguments on the stack.
3155 (x86_64_store_return_value): Return double and float values in SSE
3156 register.
3157
3158 2003-06-24 Michael Chastain <mec@shout.net>
3159
3160 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3161 the "constructor breakpoints ignored" bug.
3162
3163 2003-06-25 David Carlton <carlton@kealia.com>
3164
3165 * MAINTAINERS: Update e-mail address.
3166
3167 2003-06-24 Jim Blandy <jimb@redhat.com>
3168
3169 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3170
3171 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3172 function.
3173 (ppc_linux_init_abi): Register it as the
3174 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3175
3176 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3177 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3178 method.
3179
3180 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3181 (ppc64_standard_linkage_target): Use it.
3182
3183 2003-06-23 Andrew Cagney <cagney@redhat.com>
3184
3185 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3186 for 0 "int0" and 4 "int32" sized registers.
3187 * gdbtypes.c (builtin_type_int0): Define.
3188 (build_gdbtypes): Initialize builtin_type_int0.
3189 * gdbtypes.h (builtin_type_int0): Declare.
3190
3191 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3192
3193 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3194 as characters are unsigned.
3195
3196 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3197
3198 PR gdb/1179
3199 * dwarfread.c (struct_type): Skip static fields without crashing.
3200
3201 2003-06-22 Andrew Cagney <cagney@redhat.com>
3202
3203 GDB 6.0 branch created.
3204 * README: Update.
3205 * PROBLEMS: Update. Empty.
3206 * NEWS: Update.
3207
3208 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3209
3210 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3211 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3212
3213 2003-06-22 Andrew Cagney <cagney@redhat.com>
3214
3215 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3216 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3217 Velikov.
3218
3219 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3220
3221 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3222 compilers.
3223
3224 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3225
3226 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3227 argument of val_print.
3228 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3229 to the address argument of baseclass_offset or target_read_memory.
3230 Do add it to the argument of cp_print_value_fields.
3231
3232 2003-06-21 Andrew Cagney <cagney@redhat.com>
3233
3234 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3235 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3236 instead of 0..NUM_REGS.
3237 (mips_register_reggroup_p): New function.
3238 (mips_pseudo_register_write): New function.
3239 (mips_pseudo_register_read): New function.
3240 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3241 based on the register's type.
3242 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3243 cooked.
3244 (mips_get_saved_register): Simplify. Assert that REGNO is a
3245 pseudo / cooked.
3246 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3247 (mips_register_type): Replace mips_register_virtual_type. Map
3248 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3249 when available.
3250 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3251 that the register is cooked / virtual.
3252 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3253 Only get the extra info when needed.
3254 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3255 (mips32_heuristic_proc_desc): Fetch the cooked register.
3256 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3257 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3258 (mips_print_register): Use gdbarch_register_type, instead of
3259 REGISTER_VIRTUAL_TYPE.
3260 (print_gp_register_row): Use gdbarch_register_type, instead of
3261 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3262 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3263 Print the pseudo / cooked registers.
3264 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3265 Print the pseudo / cooked registers.
3266 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3267 REG_NUM is pseudo / cooked.
3268 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3269 (mips_n32n64_xfer_return_value): Ditto.
3270 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3271 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3272 (mips_register_sim_regno): New function.
3273 (mips_gdbarch_init): Set deprecated_register_byte,
3274 register_group_p, pseudo_register_write, pseudo_register_read,
3275 register_sim_regno, and num_pseudo_regs. Set register_type,
3276 instead of register_virtual_type.
3277 * Makefile.in (mips-tdep.o): Update dependencies.
3278 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3279 REGISTER_VIRTUAL_TYPE.
3280 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3281 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3282 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3283 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3284 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3285
3286 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3287
3288 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3289 * cli/cli-cmds.c: Include "gdb_vfork.h".
3290 (shell_escape): Use vfork.
3291
3292 2003-06-21 Andrew Cagney <cagney@redhat.com>
3293
3294 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3295 32 bit floating-point register saves.
3296
3297 * frame.h (deprecated_unwind_get_saved_register): Delete.
3298 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3299 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3300 and deprecated_get_next_frame_hack instead of
3301 deprecated_unwind_get_saved_register.
3302
3303 * mips-tdep.c (mips_dump_tdep): Do not print
3304 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3305
3306 * frame.c (get_frame_register): New function.
3307 (frame_unwind_register_signed): New function.
3308 (get_frame_register_signed): New function.
3309 (frame_unwind_register_unsigned): New function.
3310 (get_frame_register_unsigned): New function.
3311 * frame.h: Add comments on naming schema.
3312 (get_frame_register, frame_unwind_register_signed): Declare.
3313 (get_frame_register_signed, get_frame_register_signed): Declare.
3314 (frame_unwind_register_unsigned): Declare.
3315 (get_frame_register_unsigned): Declare.
3316
3317 2003-06-20 Theodore A. Roth <troth@openavr.org>
3318
3319 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3320
3321 2003-06-20 Theodore A. Roth <troth@openavr.org>
3322
3323 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3324 (avr_read_sp): Ditto.
3325
3326 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3327
3328 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3329 * config/arm/nm-linux.h: Likewise.
3330 * config/arm/tm-linux.h: Likewise.
3331 * config/ia64/nm-linux.h: Likewise.
3332 * config/ia64/tm-ia64.h: Likewise.
3333 * config/s390/tm-linux.h: Likewise.
3334 * config/s390/tm-s390.h: Likewise.
3335 * s390-nat.c: Likewise.
3336 * s390-tdep.c: Likewise.
3337
3338 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3339 * config/ia64/linux.mt: Likewise.
3340 * config/m68k/linux.mh: Likewise.
3341 * config/mips/linux.mt: Likewise.
3342 * config/powerpc/linux.mh: Likewise.
3343 * config/sh/linux.mt: Likewise.
3344
3345 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3346
3347 * solib.c (solib_open): Change tests for whether to search
3348 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3349 comments.
3350
3351 2003-06-19 Theodore A. Roth <troth@openavr.org>
3352
3353 * avr-tdep.c (avr_frame_address): Delete function.
3354 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3355 set_gdbarch_frame_args_address.
3356
3357 2003-06-19 Andrew Cagney <cagney@redhat.com>
3358
3359 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3360 (REGISTER_CONVERT_FROM_TYPE): Delete.
3361 (mips_register_convert_to_type): Delete declaration.
3362 (mips_register_convert_from_type): Delete declaration.
3363 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3364 kernel/.
3365
3366 2003-06-19 Michael Snyder <msnyder@redhat.com>
3367
3368 * linux-nat.h: New file.
3369 * linux-nat.c: Include linux-nat.h.
3370 * lin-lwp.c: Include linux-nat.h.
3371 Move struct lwp_info def to linux-nat.h.
3372 * linux-proc.c: Include linux-nat.h.
3373 (linux_make_note_section): Iterate over lwps instead of threads.
3374 (linux_do_thread_registers): Use lwp instead of merged pid.
3375 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3376 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3377 Add dependency on linux_nat_h.
3378
3379 2003-06-19 Theodore A. Roth <troth@openavr.org>
3380
3381 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3382
3383 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3384
3385 * varobj.c (get_type, get_target_type): Use check_typedef.
3386
3387 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3388
3389 * breakpoint.c (insert_catchpoint): Call internal_error.
3390
3391 2003-06-19 Theodore A. Roth <troth@openavr.org>
3392
3393 * avr-tdep.c (avr_push_dummy_code): Delete function.
3394 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3395
3396 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3397
3398 * arch-utils.c (default_prepare_to_proceed): Remove.
3399 (generic_prepare_to_proceed): Remove.
3400 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3401 (generic_prepare_to_proceed): Remove prototype.
3402 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3403 * gdbarch.c: Regenerate.
3404 * gdbarch.h: Regenerate.
3405 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3406 * hppah-nat.c (hppa_switched_threads): Remove.
3407 * infrun.c (prepare_to_proceed): New static function, copied from
3408 generic_prepare_to_proceed. Remove select_it argument.
3409 (proceed): Call prepare_to_proceed.
3410 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3411 variables.
3412 (ptrace_wait): Don't set the removed variables.
3413 (hppa_switched_threads): Remove.
3414 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3415 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3416 (lin_lwp_prepare_to_proceed): Remove prototype.
3417 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3418 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3419
3420 2003-06-18 Theodore A. Roth <troth@openavr.org>
3421
3422 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3423 trad-frame.h.
3424 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3425 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3426 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3427 (AVR_PROLOGUE_*): Enumerate prologue types.
3428 (struct frame_extra_info): Remove.
3429 (struct avr_unwind_cache): Define.
3430 (avr_write_sp): Delete function.
3431 (avr_read_fp): Ditto.
3432 (avr_init_extra_frame_info): Ditto.
3433 (avr_pop_frame): Ditto.
3434 (avr_frame_saved_pc): Ditto.
3435 (avr_saved_pc_after_call): Ditto.
3436 (avr_push_return_address): Ditto.
3437 (avr_frame_chain): Ditto.
3438 (avr_store_struct_return): Ditto.
3439 (avr_push_arguments): Ditto.
3440 (avr_scan_prologue): Update comments. Changed to set up the info for
3441 cache unwinding. Now returns end of prologue PC.
3442 (avr_skip_prologue): Better handling of functions lacking a prologue
3443 by using avr_scan_prologue.
3444 (avr_scan_arg_moves): New function.
3445 (avr_saved_regs_unwinder): Ditto.
3446 (avr_frame_unwind_cache): Ditto.
3447 (avr_unwind_pc): Ditto.
3448 (avr_frame_this_id): Ditto.
3449 (avr_frame_prev_register): Ditto.
3450 (avr_frame_p): Ditto.
3451 (avr_frame_base_address ): Ditto.
3452 (avr_unwind_dummy_id): Ditto.
3453 (avr_push_dummy_code): Ditto.
3454 (push_stack_item): Ditto.
3455 (pop_stack_item): Ditto.
3456 (avr_push_dummy_call): Ditto.
3457 (struct stack_item): Define.
3458 (avr_frame_unwind): Declare structure.
3459 (avr_frame_base): Ditto.
3460 (avr_gdbarch_init): Remove calls to
3461 set_gdbarch_deprecated_init_frame_pc,
3462 set_gdbarch_deprecated_target_read_fp,
3463 set_gdbarch_deprecated_dummy_write_sp,
3464 set_gdbarch_deprecated_fp_regnum,
3465 set_gdbarch_deprecated_push_arguments,
3466 set_gdbarch_deprecated_push_return_address,
3467 set_gdbarch_deprecated_pop_frame,
3468 set_gdbarch_deprecated_store_struct_return,
3469 set_gdbarch_deprecated_frame_init_saved_regs,
3470 set_gdbarch_deprecated_init_extra_frame_info,
3471 set_gdbarch_deprecated_frame_chain,
3472 set_gdbarch_deprecated_frame_saved_pc,
3473 set_gdbarch_deprecated_saved_pc_after_call.
3474 Add calls to set_gdbarch_push_dummy_call,
3475 set_gdbarch_push_dummy_code,
3476 frame_unwind_append_predicate,
3477 frame_base_set_default,
3478 set_gdbarch_unwind_dummy_id,
3479 set_gdbarch_unwind_pc.
3480 Wrap a long line.
3481
3482 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3483
3484 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3485 registers for H8/300S.
3486 (h8300_print_registers_info): Ditto.
3487 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3488
3489 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3490
3491 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3492 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3493 (lin_lwp_wait): Likewise. Update comments.
3494 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3495 (pull_pid_from_list, linux_record_stopped_pid): New.
3496
3497 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3498
3499 * ada-lang.c (scan_discrim_bound): Name first argument.
3500 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3501 declared by ALL_BLOCK_SYMBOLS.
3502
3503 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3504
3505 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3506 ("regcache.h"): Include it.
3507 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3508
3509 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3510
3511 * NEWS: Mention gdbserver detach change and "disconnect" command.
3512 * infcmd.c (disconnect_command): New function.
3513 (_initialize_infcmd): Add ``disconnect'' command.
3514 * remote.c (remote_async_detach): Delete.
3515 (remote_detach): Merge remote_async_detach.
3516 (remote_disconnect): New.
3517 (init_remote_ops): Set to_disconnect.
3518 (init_remote_cisco_ops): Likewise.
3519 (init_remote_async_ops): Likewise. Use remote_detach.
3520 * target.c (cleanup_target): Default to_disconnect.
3521 (update_current_target): Inherit to_disconnect.
3522 (target_disconnect, debug_to_disconnect): New functions.
3523 (setup_target_debug): Set to_disconnect.
3524 * target.h (struct target_ops): Add to_disconnect.
3525 (target_disconnect): Add prototype.
3526
3527 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3528
3529 * breakpoint.c (insert_catchpoint): New function.
3530 (insert_breakpoints): Use catch_exceptions to call
3531 insert_catchpoint. Disable catchpoints if they fail to insert.
3532
3533 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3534
3535 * symfile.c (reread_symbols): Clear sym_private.
3536
3537 2003-06-17 Andrew Cagney <cagney@redhat.com>
3538
3539 * trad-frame.h (struct frame_info): Add opaque declaration.
3540 * remote-fileio.h (struct cmd_list_element): Add opaque
3541 declaration.
3542 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3543 comments.
3544
3545 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3546
3547 * remote.c (remote_prepare_to_store): Replace call to
3548 deprecated_read_register_bytes with multiple regcache_raw_read
3549 calls.
3550
3551 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3552
3553 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3554 (nto_find_and_open_solib): Likewise.
3555 (nto_init_solib_absolute_prefix): Likewise.
3556 (_initialize_nto_tdep): Fix indentation.
3557
3558 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3559
3560 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3561
3562 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3563
3564 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3565
3566 2003-06-17 Jim Blandy <jimb@redhat.com>
3567
3568 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3569
3570 2003-06-16 Theodore A. Roth <troth@openavr.org>
3571
3572 * avr-tdep.c (avr_extract_return_value): New function.
3573 (avr_gdbarch_init): Set extract_return_value method.
3574
3575 2003-06-16 Andrew Cagney <cagney@redhat.com>
3576
3577 * frame.h (deprecated_get_next_frame_hack): Declare.
3578 * frame.c (legacy_saved_regs_prev_register): Only require
3579 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3580 there are always saved regs.
3581 (deprecated_generic_get_saved_register): Do not require
3582 DEPRECATED_FRAME_INIT_SAVED_REGS.
3583 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3584 use frame ID unwind instead.
3585 (deprecated_get_next_frame_hack): New function.
3586
3587 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3588
3589 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3590 (h8300_push_dummy_call): ...this function. Some minor optimization.
3591 (h8300_push_return_address): Remove.
3592 (h8300_gdbarch_init): Remove calls to
3593 set_gdbarch_deprecated_dummy_write_sp,
3594 set_gdbarch_deprecated_push_arguments and
3595 set_gdbarch_deprecated_push_return_address.
3596 Add call to set_gdbarch_push_dummy_call.
3597
3598 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3599
3600 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3601 (E_PSEUDO_EXR_REGNUM): Ditto.
3602 (h8300_is_argument_spill): Check for instructions moving argument
3603 registers into safe registers.
3604 (h8300_skip_prologue): Check for stm instruction to push registers
3605 used for register variables onto stack.
3606 (gdb_print_insn_h8300): Remove.
3607 (h8300_examine_prologue): Add a comment.
3608 (h8300_register_name): Take pseudo registers into account.
3609 (h8300s_register_name): Ditto.
3610 (h8300sx_register_name): Ditto.
3611 (h8300_print_register): Ditto.
3612 (h8300_print_registers_info): Define "nice" printing order.
3613 (h8300_saved_pc_after_call): Take pseudo registers into account.
3614 (h8300_register_type): Ditto. Return type used for remote connection
3615 when requesting real CCR or EXR register, return actual type when
3616 requesting pseudo CCR or EXR.
3617 (h8300_pseudo_register_read): New function.
3618 (h8300_pseudo_register_write): Ditto.
3619 (h8300_dbg_reg_to_regnum): Ditto.
3620 (h8300s_dbg_reg_to_regnum): Ditto.
3621 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3622 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3623 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3624 set_gdbarch_print_insn architecture dependent.
3625 Call set_gdbarch_pseudo_register_read and
3626 set_gdbarch_pseudo_register_write.
3627 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3628
3629 2003-06-16 Andrew Cagney <cagney@redhat.com>
3630
3631 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3632 * gdbarch.h, gdbarch.c: Re-generate.
3633 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3634 * s390-tdep.c (s390_gdbarch_init): Update.
3635 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3636 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3637 * mips-tdep.c (mips_gdbarch_init): Update.
3638 * mcore-tdep.c (mcore_gdbarch_init): Update.
3639 * cris-tdep.c (cris_gdbarch_init): Update.
3640 * infcall.c (call_function_by_hand): Update.
3641 * ia64-tdep.c (ia64_push_arguments): Update comment.
3642 * frame.c (legacy_get_prev_frame): Do not assume
3643 SAVE_DUMMY_FRAME_TOS_P.
3644 * dummy-frame.c (find_dummy_frame): Update comment.
3645
3646 2003-06-16 Andrew Cagney <cagney@redhat.com>
3647
3648 * regcache.c (do_cooked_read): Do not use register_valid_p.
3649
3650 2003-06-15 Theodore A. Roth <troth@openavr.org>
3651
3652 * avr-tdep.c (avr_register_type): Remove a blank line.
3653 (avr_scan_prologue): Correct some comments.
3654
3655 2003-06-15 Theodore A. Roth <troth@openavr.org>
3656
3657 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3658 prologue types.
3659 Properly scan prologues generated by gcc with the -mcall-prologues
3660 option.
3661 Add code to scan -mcall-prologues for mega devices.
3662
3663 2003-06-15 Theodore A. Roth <troth@openavr.org>
3664
3665 * avr-tdep.c (avr_register_byte): Delete function.
3666 (avr_register_raw_size): Delete function.
3667 (avr_register_virtual_size): Delete function.
3668 (avr_register_virtual_type): Delete function.
3669 (avr_register_type): New function.
3670 (avr_address_to_pointer): Remove unused code.
3671 (avr_read_fp): Need to read FP as two separate bytes due to change to
3672 avr_register_type() usage.
3673 (avr_gdbarch_init): Don't set deprecated_register_size.
3674 Don't set deprecated_register_bytes.
3675 Don't set deprecated_register_byte.
3676 Don't set deprecated_register_raw_size.
3677 Don't set deprecated_max_register_raw_size.
3678 Don't set deprecated_register_virtual_size.
3679 Don't set deprecated_max_register_virtual_size.
3680 Don't set deprecated_register_virtual_type.
3681 Set register_type method.
3682
3683 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3684
3685 * Makefile.in (linux-nat.o): Add rule.
3686 * linux-nat.c: New file.
3687 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3688 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3689 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3690 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3691 * config/arm/linux.mh (NATDEPFILES): Likewise.
3692 * config/i386/linux.mh (NATDEPFILES): Likewise.
3693 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3694 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3695 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3696 * config/mips/linux.mh (NATDEPFILES): Likewise.
3697 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3698 * config/s390/s390.mh (NATDEPFILES): Likewise.
3699 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3700
3701 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3702
3703 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3704 replace out-of-date comment.
3705
3706 2003-06-15 Andrew Cagney <cagney@redhat.com>
3707
3708 * rdi-share/host.h (Fail): Change to a varargs function.
3709 * remote-rdi.c (Fail): Update.
3710
3711 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3712
3713 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3714 (i386_convert_register_p, i386_register_to_value,
3715 i386_register_from_value): Handle types longer than 8 bytes.
3716
3717 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3718
3719 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3720 Move floating-point code to new function in i387-tdep.c.
3721 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3722 New functions containing code moved here from i386-tdep.c.
3723 * i387-tdep.h: Add opaque declaration for `struct type'.
3724 (i387_register_to_value, i387_value_to_register): New prototypes.
3725 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3726 (x86_64_init_abi): Set convert_register_p, register_to_value and
3727 value_to_register here.
3728
3729 2003-06-14 Andrew Cagney <cagney@redhat.com>
3730
3731 * mips-tdep.c (mips_register_to_value): Make static.
3732 (mips_value_to_register): Make static.
3733 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3734 * ia64-tdep.c (ia64_register_raw_size): Make static.
3735 (ia64_register_virtual_size): Make static.
3736 (ia64_register_byte): Make static.
3737 * i387-tdep.c: Include "i387-tdep.h".
3738 (print_387_control_word): Delete function.
3739 (print_387_status_word): Delete function.
3740 (print_387_status_bits): Delete function.
3741 (print_387_control_bits): Delete function.
3742 * Makefile.in (i387-tdep.o): Update dependencies.
3743 * rdi-share/host.h (Fail): Declare.
3744 * remote-rdi.c (Fail): Update to match declaration.
3745
3746 2003-06-14 Andrew Cagney <cagney@redhat.com>
3747
3748 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3749 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3750 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3751 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3752 * README: Delete reference to remote-array.
3753 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3754 (remote-array.o): Delete target.
3755 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3756 * remote-array.c: Delete file.
3757
3758 2003-06-14 Andrew Cagney <cagney@redhat.com>
3759 Mark Kettenis <kettenis@gnu.org>
3760
3761 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3762 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3763 parameter with "frame".
3764 * gdbarch.h, gdbarch.c: Re-generate.
3765 * frame.h (put_frame_register): Declare.
3766 * frame.c (put_frame_register): New function.
3767 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3768 (legacy_register_to_value): Rewrite, use "frame" to get the
3769 register value.
3770 (legacy_value_to_register): Rewrite, use "frame" to find the
3771 register's location before storing.
3772 * arch-utils.h (legacy_convert_register_p): Update.
3773 (legacy_register_to_value, legacy_value_to_register): Update.
3774 * findvar.c (value_from_register): Rewrite, eliminate use of
3775 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3776 "frame" to REGISTER_TO_VALUE.
3777 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3778 lval_reg_frame_relative + lval_register branch of the switch. Do
3779 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3780 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3781 I386_EDI_REGNUM): New defines.
3782 (i386_next_regnum, i386_convert_register_p,
3783 i386_register_to_value, i386_value_to_register): New functions.
3784 (i386_register_convertible, i386_register_convert_to_virtual,
3785 i386_convert_to_raw): Remove functions.
3786 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3787 value_to_register instead of register_convertible,
3788 register_convert_to_virtual and register_convert_to_raw.
3789 * mips-tdep.c (mips_convert_register_p): New function.
3790 (mips_value_to_register): Replace mips_register_convert_from_type.
3791 (mips_register_to_value): Replace mips_register_convert_to_type.
3792 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3793 register_to_value.
3794 * alpha-tdep.c (alpha_convert_register_p): Update.
3795 (alpha_value_to_register): Update, store the register.
3796 (alpha_register_to_value): Update, fetch the register.
3797
3798 2003-06-14 Theodore A. Roth <troth@openavr.org>
3799
3800 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3801 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3802 Don't set deprecated_call_dummy_words.
3803 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3804 Don't set remote_translate_xfer_address.
3805 (avr_io_reg_read_command): Remove commented out debug printf.
3806 Wrap a long line.
3807
3808 2003-06-14 Theodore A. Roth <troth@openavr.org>
3809
3810 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3811 causes gdb to seg fault.
3812
3813 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3814
3815 * sparc-nat.c (fetch_inferior_registers): Correct
3816 a reference to "registers".
3817
3818 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3819
3820 * Makefile.in (exc_request_U_h): Define
3821 (exc_request_S_h): Likewise.
3822 (msg_reply_S_h): Likewise.
3823 (msg_U_h): Likewise.
3824 (notify_S_h): Likewise.
3825 (process_reply_S_h): Likewise.
3826 (gnu-nat.o): Depend on gdb_obstack_h
3827 * gnu-nat.c: Include "gdb_obstack.h".
3828
3829 2003-06-13 Andrew Cagney <cagney@redhat.com>
3830
3831 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3832 * gdbarch.h, gdbarch.c: Re-generate.
3833
3834 2003-06-13 Andrew Cagney <cagney@redhat.com>
3835
3836 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3837 when deprecated REGISTER macros can be deleted.
3838 * gdbarch.h, gdbarch.c: Re-generate.
3839
3840 2003-06-13 Jim Blandy <jimb@redhat.com>
3841
3842 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3843 Linux entry point symbols for _dl_debug_state, too.
3844
3845 2003-06-13 Andrew Cagney <cagney@redhat.com>
3846
3847 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3848 available, do not use the FP register, and always save the TOS.
3849 * dummy-frame.c (dummy_frame_this_id): Do not assert
3850 SAVE_DUMMY_FRAME_TOS.
3851 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3852 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3853 (i386_push_dummy_call): Add 8 to the returned SP.
3854 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3855 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3856 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3857 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3858 (x86_64_push_dummy_call): Return "sp + 16".
3859 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3860 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3861 save_dummy_frame_tos.
3862
3863 2003-06-13 Jim Blandy <jimb@redhat.com>
3864
3865 * frv-tdep.c (frv_use_struct_convention): Delete static
3866 declaration for function deleted in my change of 2003-06-12.
3867
3868 2003-06-13 Theodore A. Roth <troth@openavr.org>
3869
3870 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3871 (avr_pointer_to_address): Shift code addrs left 1 bit.
3872 (avr_convert_from_func_ptr_addr): Delete function since operation is
3873 better handled by avr_address_to_pointer and avr_pointer_to_address.
3874 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3875
3876 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3877
3878 From Kelley Cook <kelleycook@wideopenwest.com>:
3879 * configure.host: Accept i[34567]86 variants.
3880 * configure.tgt: Likewise.
3881 * nlm/configure.in: Likewise.
3882 * nlm/configure: Regenerated.
3883
3884 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3885
3886 * arm-tdep.c (solib-svr4.h): Dont' include it.
3887 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3888 * arm-linux-tdep.c: ... here. Make static.
3889 (arm_linux_init_abi): Register it.
3890 (solib-svr4.h): Include it.
3891 * Makefile.in: Update dependencies.
3892 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3893 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3894
3895 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3896
3897 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3898 indicate registers used for return values.
3899 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3900 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3901 members.
3902 (h8300_init_extra_frame_info): Ditto.
3903 (h8300_frame_locals_address): Removed.
3904 (h8300_frame_args_address): Removed.
3905 (h8300_extract_return_value): Use new regcache structure. Only care
3906 for 16 bit CPUs.
3907 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3908 (h8300_store_return_value): Use new regcache structure. Only care
3909 for 16 bit CPUs.
3910 (h8300h_store_return_value): Same function for 32 bit CPUs.
3911 (h8300_store_struct_return): Removed.
3912 (h8300_extract_struct_value_address): Use new regcache structure.
3913 (h8300h_extract_struct_value_address): Removed.
3914 (h8300_push_dummy_code): New function.
3915 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3916 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3917 set_gdbarch_store_return_value architecture dependent.
3918 Call set_gdbarch_push_dummy_code and
3919 set_gdbarch_extract_struct_value_address.
3920 Remove calls to set_gdbarch_frame_args_address,
3921 set_gdbarch_frame_locals_address,
3922 set_gdbarch_deprecated_store_struct_return,
3923 set_gdbarch_deprecated_extract_return_value,
3924 set_gdbarch_deprecated_extract_struct_value_address,
3925 set_gdbarch_deprecated_call_dummy_words and
3926 set_gdbarch_deprecated_sizeof_call_dummy_words.
3927
3928 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3929
3930 * h8300-tdep.c (h8300_register_byte): Remove.
3931 (h8300h_register_byte): Remove.
3932 (h8300_register_virtual_type): Remove. Substitute by...
3933 (h8300_register_type): New function.
3934 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3935 (h8300h_extract_struct_value_address): Ditto.
3936 (h8300_gdbarch_init): Drop calls to
3937 set_gdbarch_deprecated_register_byte and
3938 set_gdbarch_deprecated_register_virtual_type.
3939 Add call to set_gdbarch_register_type.
3940
3941 2003-06-13 Andrew Cagney <cagney@redhat.com>
3942
3943 * gdbarch.sh: Update comments on registers.
3944 (deprecated_register_byte): Rename register_byte.
3945 (deprecated_register_raw_size): Rename register_raw_size.
3946 (deprecated_register_virtual_size): Rename register_virtual_size.
3947 (deprecated_register_virtual_type): Rename register_virtual_type.
3948 * gdbarch.h, gdbarch.c: Re-generate.
3949 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3950 * vax-tdep.c (vax_gdbarch_init): Update.
3951 * v850-tdep.c (v850_gdbarch_init): Update.
3952 * sparc-tdep.c (sparc_gdbarch_init): Update.
3953 * sh-tdep.c (sh_gdbarch_init): Update.
3954 * s390-tdep.c (s390_gdbarch_init): Update.
3955 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3956 * ns32k-tdep.c: Update.
3957 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3958 * mips-tdep.c (mips_gdbarch_init): Update.
3959 * mcore-tdep.c (mcore_gdbarch_init): Update.
3960 * m68k-tdep.c (m68k_gdbarch_init): Update.
3961 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3962 * ia64-tdep.c (ia64_gdbarch_init): Update.
3963 * hppa-tdep.c (hppa_gdbarch_init): Update.
3964 * h8300-tdep.c (h8300_gdbarch_init): Update.
3965 * frv-tdep.c (frv_gdbarch_init): Update.
3966 * cris-tdep.c (cris_gdbarch_init): Update.
3967 * avr-tdep.c (avr_gdbarch_init): Update.
3968 * alpha-tdep.c (alpha_gdbarch_init): Update.
3969 * arm-tdep.c (arm_gdbarch_init): Update.
3970
3971 2003-06-13 Andrew Cagney <cagney@redhat.com>
3972
3973 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3974 mips_o32_use_struct_convention with always_use_struct_convention.
3975
3976 2003-06-12 David Carlton <carlton@kealia.com>
3977
3978 * cp-namespace.c (cp_set_block_scope): Comment out
3979 processing_has_namespace_info branch.
3980
3981 2003-06-12 Jim Blandy <jimb@redhat.com>
3982
3983 Recognize and skip 64-bit PowerPC Linux linkage functions.
3984 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3985 insn_pattern, insns_match_pattern, d_field, ds_field): New
3986 functions, macros, and types for working with PPC instructions.
3987 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3988 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3989 ppc64_skip_trampoline_code): New functions, variables, and macros
3990 for recognizing and skipping linkage functions.
3991 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3992 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3993
3994 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3995 register offsets for both the 32- and 64-bit interfaces.
3996
3997 Actually finish the job started by my change of 2003-05-29.
3998 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3999 other #definition of this.
4000 (ppc_linux_skip_trampoline_code): Remove declaration.
4001 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4002 static.
4003 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4004 method for GDBARCH.
4005
4006 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4007 'long' on ppc64-*-linux*.
4008
4009 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4010 isn't #defined, assume the register doesn't exist: act as if
4011 tdep->ppc_mq_regnum were -1.
4012
4013 * configure.host, configure.tgt: Add entries for
4014 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4015 powerpc/linux.mt.
4016 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4017 New files.
4018
4019 * arch-utils.c (always_use_struct_convention): New function.
4020 * arch-utils.h (always_use_struct_convention): New prototype.
4021 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4022 (alpha_gdbarch_init): Register always_use_struct_convention,
4023 instead of alpha_use_struct_convention.
4024 * cris-tdep.c (cris_use_struct_convention): Delete.
4025 (cris_gdbarch_init): Register always_use_struct_convention,
4026 instead of cris_use_struct_convention.
4027 * frv-tdep.c (frv_use_struct_convention): Delete.
4028 (frv_gdbarch_init): Register always_use_struct_convention,
4029 instead of frv_use_struct_convention.
4030 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4031 (h8300_gdbarch_init): Register always_use_struct_convention,
4032 instead of h8300_use_struct_convention.
4033 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4034 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4035 instead of mips_o32_use_struct_convention.
4036
4037 2003-06-12 Andrew Cagney <cagney@redhat.com>
4038
4039 * wince.c: Include "mips-tdep.h".
4040 * mips-tdep.h (mips_next_pc): Declare.
4041 * mcore-tdep.c: Make more local functions static.
4042 * Makefile.in (wince.o): Update dependencies.
4043
4044 2003-06-12 David Carlton <carlton@kealia.com>
4045
4046 * symtab.c (lookup_symbol_aux_minsyms): Replace
4047 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4048 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4049 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4050 SYMBOL_NATURAL_NAME.
4051
4052 2003-06-12 Andreas Schwab <schwab@suse.de>
4053
4054 * Makefile.in (tuiDisassem.o): Update dependencies.
4055
4056 2003-06-12 David Carlton <carlton@bactrian.org>
4057
4058 * symtab.h: Delete declaration of make_symbol_overload_list.
4059 Add declaration of lookup_partial_symbol.
4060 * symtab.c (remove_params): Move to cp-support.c.
4061 (overload_list_add_symbol, make_symbol_overload_list)
4062 (sym_return_val_size, sym_return_val_index): Ditto.
4063 (lookup_partial_symbol): Make extern.
4064 * cp-support.h: Add declaration of make_symbol_overload_list.
4065 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4066 symtab.h, and block.h.
4067 (remove_params): Move here from symtab.c.
4068 (overload_list_add_symbol, make_symbol_overload_list)
4069 (sym_return_val_size, sym_return_val_index): Ditto.
4070 * valops.c: Include cp-support.h.
4071 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4072 frame_h, and block_h.
4073 (valops.o): Depend on cp_support_h.
4074
4075 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4076
4077 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4078 substitute by NUM_REGS throughout.
4079 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4080 (h8300s_register_name): New function for H8S registers.
4081 (h8300sx_register_name): Ditto for H8SX registers.
4082 (h8300_print_register): Revise register printing, avoid depending
4083 on 32 bit long.
4084 (h8300_register_byte): Only care for H8/300 registers.
4085 (h8300h_register_byte): New function for any other architecture.
4086 (h8300_register_raw_size): Remove.
4087 (h8300_register_virtual_type): Revise to return actually useful
4088 type.
4089 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4090 (h8300h_extract_struct_value_address): New function for any other
4091 architecture.
4092 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4093 set_gdbarch_register_name, set_gdbarch_register_byte,
4094 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4095 Remove calls to set_gdbarch_deprecated_register_size,
4096 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4097 set_gdbarch_deprecated_max_register_raw_size,
4098 set_gdbarch_register_virtual_size and
4099 set_gdbarch_deprecated_max_register_virtual_size entirely.
4100 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4101 set_gdbarch_long_double_bit.
4102
4103 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4104
4105 * doublest.c (convert_doublest_to_floatformat): When dealing
4106 with the implied integer bit, only alter mant_bits if we are
4107 processing a full 32 bits of mantissa.
4108
4109 2003-06-11 David Carlton <carlton@bactrian.org>
4110
4111 * dictionary.h: New.
4112 * dictionary.c: New.
4113 * block.h: Add opaque declaration for struct dictionary.
4114 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4115 'sym' members.
4116 (BLOCK_DICT): New macro.
4117 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4118 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4119 BLOCK_SHOULD_SORT.
4120 (ALL_BLOCK_SYMBOLS): Update definition.
4121 * Makefile.in (SFILES): Add dictionary.c.
4122 (dictionary_h): New.
4123 (COMMON_OBS): Add dictionary.o.
4124 (dictionary.o): New.
4125 (ada-lang.o): Depend on dictionary_h.
4126 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4127 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4128 (mi-cmd-stack.o): Ditto.
4129 (gdbtk-cmds.o): Update dependencies.
4130 (gdbtk-stack.o): Ditto.
4131 * ada-lang.c: Include dictionary.h.
4132 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4133 (fill_in_ada_prototype, debug_print_block): Ditto.
4134 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4135 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4136 'is_sorted'.
4137 * mdebugread.c: Include dictionary.h.
4138 (struct parse_stack): Delete 'maxsyms' member.
4139 (parse_symbol): Update calls to new_block. Delete calls to
4140 shrink_block. Use dictionary methods.
4141 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4142 Update calls to new_symtab. Don't maintain maxsyms data.
4143 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4144 (add_symbol): Just call dict_add_symbol.
4145 (new_symtab): Delete 'maxsyms' argument.
4146 (new_symtab): Update calls to new_block.
4147 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4148 (shrink_block): Delete function.
4149 (fixup_sigtramp): Update call to new_block. Add symbol via
4150 dict_add_symbol.
4151 * jv-lang.c: Include dictionary.h.
4152 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4153 appropriately. Set class_symtab->free_func. Make sure the
4154 blockvector is big enough to hold two blocks.
4155 (add_class_symtab_symbol): Use dictionary methods.
4156 (free_class_block): New function.
4157 (type_from_class): Replace explicit iteration by
4158 ALL_BLOCK_SYMBOLS.
4159 * symtab.h (struct symtab): Replace 'free_ptr' method by
4160 'free_func'.
4161 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4162 sort_symtab_syms.
4163 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4164 sort_symtab_syms.
4165 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4166 Include dictionary.h.
4167 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4168 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4169 sort_symtab_syms.
4170 * objfiles.c: Include dictionary.h.
4171 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4172 * buildsym.c: Include dictionary.h.
4173 (finish_block): Use dictionary methods.
4174 (end_symtab): Set free_func to NULL, not free_ptr.
4175 * tracepoint.c: Include dictionary.h.
4176 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4177 (scope_info): Ditto.
4178 * stack.c: Include dictionary.h.
4179 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4180 (print_block_frame_labels, print_frame_arg_vars)
4181 (print_frame_args): Ditto.
4182 * symmisc.c (free_symtab_block): Use dictionary methods.
4183 (dump_symtab): Ditto.
4184 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4185 Include dictionary.h.
4186 * symfile.h: Delete declarations of sort_block_syms,
4187 sort_symtab_syms.
4188 * symfile.c (sort_block_syms): Delete.
4189 (sort_symtab_syms): Delete.
4190 * symtab.c: Include dictionary.h.
4191 (lookup_block_symbol): Use dictionary iterators.
4192 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4193 (search_symbols, make_symbol_completion_list): Ditto.
4194 (make_symbol_overload_list): Ditto.
4195 * valops.c (value_of_local): Use dict_empty.
4196 Include dictionary.h.
4197
4198 2003-06-11 J. Brobecker <brobecker@gnat.com>
4199
4200 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4201
4202 2003-06-11 David Carlton <carlton@bactrian.org>
4203
4204 * block.h (BLOCK_SHOULD_SORT): Delete.
4205 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4206 blocks.
4207 * ada-lang.c (ada_add_block_symbols): Ditto.
4208 * symfile.c (sort_block_syms): Delete.
4209 (sort_symtab_syms): Ditto.
4210 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4211 declarations.
4212 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4213 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4214 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4215 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4216 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4217 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4218 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4219
4220 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4221
4222 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4223 bits to 128.
4224
4225 2003-06-11 Andrew Cagney <cagney@redhat.com>
4226
4227 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4228 REGISTER_CONVERTIBLE.
4229 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4230 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4231 * gdbarch.h, gdbarch.c: Re-generate.
4232 * arch-utils.h (deprecated_register_convertible_not): Rename
4233 generic_register_convertible_not.
4234 * arch-utils.c (deprecated_register_convertible_not): Rename
4235 generic_register_convertible.
4236 (legacy_convert_register_p, legacy_register_to_value): Update.
4237 * sh-tdep.c (sh64_push_arguments): Update.
4238 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4239 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4240 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4241 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4242 * arch-utils.c (legacy_value_to_register): Update.
4243 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4244 (rs6000_register_convert_to_raw): Make parameter "from" const.
4245 * mips-tdep.c (mips_gdbarch_init): Update.
4246 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4247 * infcmd.c (default_print_registers_info): Update.
4248 * ia64-tdep.c (ia64_gdbarch_init): Update.
4249 (ia64_register_convert_to_raw): Make parameter "from" const.
4250 * i386-tdep.c (i386_gdbarch_init): Update.
4251 (i386_register_convert_to_raw): Update.
4252
4253 2003-06-11 Andrew Cagney <cagney@redhat.com>
4254
4255 * remote-fileio.c: Include "remote-fileio.h".
4256 * Makefile.in (remote-fileio.o): Update dependencies.
4257 (remote_fileio_h): Fix typo.
4258
4259 2003-06-11 Andrew Cagney <cagney@redhat.com>
4260
4261 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4262 (xstormy16_save_dummy_frame_tos): Make static.
4263 (_initialize_xstormy16_tdep): Add declaration.
4264 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4265 * v850-tdep.c: Make local functions static.
4266 (_initialize_v850_tdep): Add declaration.
4267 * sparc-tdep.c: Make local functions static.
4268 (_initialize_sparc_tdep): Add declaration.
4269 * sh-tdep.c: Make local functions static.
4270 (_initialize_sh_tdep): Add declaration.
4271 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4272 * s390-tdep.c: Make local functions static.
4273 (_initialize_s390_tdep): Add declaration.
4274 * dbxread.c (find_stab_function_addr): Make static.
4275 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4276 * ocd.c (_initialize_remote_ocd): Add declaration.
4277 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4278 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4279 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4280 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4281 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4282 * remote-array.c (_initialize_array): Add declaration.
4283 (_initialize_remote_monitors): Add declaration.
4284 * remote-mips.c: Make local functions static.
4285 (_initialize_remote_mips): Add declaration.
4286 * mcore-tdep.c: Make all local functions static.
4287 (_initialize_mcore_tdep): Add declaration.
4288 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4289 * abug-rom.c (_initialize_abug_rom): Add declaration.
4290 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4291 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4292 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4293 * remote-est.c (_initialize_est): Add declaration.
4294 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4295 (m68hc11_call_dummy_address): Make static.
4296 * ia64-tdep.c: Make local functions static.
4297 (_initialize_ia64_tdep): Add declaration.
4298 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4299 * monitor.c (monitor_wait_filter): Make static.
4300 (_initialize_remote_monitors): Add declaration.
4301 * remote-hms.c (_initialize_remote_hms): Add declaration.
4302 * remote-e7000.c (fetch_regs_from_dump): Make static.
4303 (expect_n): Make static.
4304 (_initialize_remote_e7000): Add declaration.
4305 * ser-e7kpc.c: Always include "defs.h".
4306 (_initialize_ser_e7000pc): Add declaration.
4307 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4308 * cris-tdep.c: Make all but one function static.
4309 (_initialize_cris_tdep): Add declaration.
4310 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4311 * solib.c (update_solib_list): Make static.
4312 (_initialize_solib): Add declaration.
4313 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4314 (_initialize_avr_tdep): Add declaration.
4315 * remote-rdi.c (voiddummy): Make static.
4316 (_initialize_remote_rdi): Add declaration.
4317 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4318 * remote-rdp.c (send_rdp): Make static.
4319 (_initialize_remote_rdp): Add declaration.
4320 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4321
4322 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4323
4324 * remote-fileio.c: Make ari happy.
4325
4326 2003-06-10 J. Brobecker <brobecker@gnat.com>
4327
4328 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4329 fetching the trailing bytes of the buffer we are about to write.
4330
4331 2003-06-10 Andrew Cagney <cagney@redhat.com>
4332
4333 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4334 * Makefile.in (remote-fileio.o): Update dependencies.
4335 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4336 include <setjmp.h>, or <sys/types.h> conditional on USG.
4337 (remote_fio_jmp_buf): Delete global variable.
4338
4339 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4340 Martin M. Hunt <hunt@redhat.com>
4341
4342 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4343 (SFILES): Add remote-fileio.c.
4344 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4345 dependencies for building remote.o.
4346 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4347 * remote-fileio.h: New header file defining remote File-I/O interface.
4348 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4349 static storage class.
4350 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4351 'F' packet.
4352 (_initialize_remote): Call initialize_remote_fileio().
4353 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4354 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4355 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4356 (captured_main): Initialize new ui_files.
4357 * ui-file.c: Add read and fgets input functions.
4358 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4359 (null_file_read): New function.
4360 (ui_file_read): New function.
4361 (set_ui_file_read): New function.
4362 (stdio_file_read): New function.
4363 * ui-file.h: New type ui_file_read_ftype.
4364 (set_ui_file_read): Declare.
4365 (ui_file_read): Declare.
4366
4367 2003-06-09 Andrew Cagney <cagney@redhat.com>
4368
4369 * frame.h (deprecated_unwind_get_saved_register): Rename
4370 generic_unwind_get_saved_register, update comments.
4371 * mips-tdep.c (mips_get_saved_register): Update.
4372 * frame.c (deprecated_unwind_get_saved_register): Update.
4373
4374 2003-06-09 Andrew Cagney <cagney@redhat.com>
4375
4376 * vax-tdep.c (vax_frame_locals_address): Delete function.
4377 (vax_gdbarch_init): Do not set frame_locals_address.
4378 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4379 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4380 * s390-tdep.c (s390_frame_args_address): Delete function.
4381 (s390_gdbarch_init): Do not set frame_args_address or
4382 frame_locals_address.
4383 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4384 (ns32k_gdbarch_init): Do not set frame_locals_address.
4385 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4386 (hppa_frame_locals_address): Delete function.
4387 (hppa_gdbarch_init): Do not set frame_args_address, or
4388 frame_locals_address.
4389 * arm-tdep.c (arm_frame_args_address): Delete.
4390 (arm_frame_locals_address): Delete.
4391 (arm_gdbarch_init): Do not set frame_args_address, or
4392 frame_locals_address.
4393
4394 2003-06-09 Andrew Cagney <cagney@redhat.com>
4395
4396 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4397 * gdbarch.h, gdbarch.c: Re-generate.
4398 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4399 * arch-utils.c (frame_num_args_unknown): Delete function.
4400 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4401 (frame_info): Use FRAME_NUM_ARGS_P.
4402 * arm-tdep.c (arm_frame_num_args): Delete function.
4403 (arm_gdbarch_init): Do not set frame_num_args.
4404 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4405 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4406 (hppa_gdbarch_init): Do not set frame_num_args.
4407 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4408 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4409 frame_num_args to default frame_num_args_unknown.
4410 * v850-tdep.c (v850_gdbarch_init): Ditto.
4411 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4412 * sh-tdep.c (sh_gdbarch_init): Ditto.
4413 * s390-tdep.c (s390_gdbarch_init): Ditto.
4414 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4415 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4416 * mips-tdep.c (mips_gdbarch_init): Ditto.
4417 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4418 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4419 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4420 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4421 * i386-tdep.c (i386_gdbarch_init): Ditto.
4422 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4423 * frv-tdep.c (frv_gdbarch_init): Ditto.
4424 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4425 * cris-tdep.c (cris_gdbarch_init): Ditto.
4426 * avr-tdep.c (avr_gdbarch_init): Ditto.
4427 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4428
4429 2003-06-09 Andrew Cagney <cagney@redhat.com>
4430
4431 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4432 (print_frame_args): Moved to "stack.c".
4433 * stack.c: Include "gdb_assert.h".
4434 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4435 (print_frame_args): Moved from "printcmd.c".
4436 * frame.h (print_frame_args): Delete declaration.
4437 * Makefile.in (stack.o): Update dependencies.
4438
4439 2003-06-08 Andrew Cagney <cagney@redhat.com>
4440
4441 * frame.c (get_prev_frame): Remove reference to
4442 frame_args_address_correct in comments.
4443 * frame-base.c (default_frame_args_address): Delete code
4444 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4445 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4446 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4447 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4448 (vax_frame_args_address_correct): Delete declaration.
4449
4450 2003-06-08 Andrew Cagney <cagney@redhat.com>
4451
4452 * gdbarch.sh (UNWIND_SP): Add.
4453 * gdbarch.h, gdbarch.c: Re-generate.
4454 * frame.c (frame_sp_unwind): New function.
4455 (get_frame_sp): New function.
4456 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4457 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4458 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4459 value.
4460 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4461 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4462
4463 2003-06-08 Andrew Cagney <cagney@redhat.com>
4464
4465 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4466 REMOTE_BREAKPOINT.
4467 * remote.c: Update.
4468 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4469 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4470 * config/m68k/tm-sun3.h: Update.
4471 * config/m68k/tm-m68klynx.h: Update.
4472 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4473
4474 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4475 trad_frame". Update comments.
4476 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4477 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4478 (trad_frame_register_value, trad_frame_prev_register): Update.
4479
4480 2003-06-08 Andrew Cagney <cagney@redhat.com>
4481
4482 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4483 from GCC's acinclude.m4.
4484 * configure.in: Check for getopt's delcaration.
4485 * aclocal.m4, config.in, configure: Re-generate.
4486 * main.c (error_init): Delete declaration.
4487 * defs.h (error_init): Declare.
4488 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4489 (rs6000_convert_from_func_ptr_addr): Make static.
4490 (_initialize_rs6000_tdep): Add declaration.
4491 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4492 (show_commands, set_verbose, show_history): Delete declaration.
4493 * top.h (set_verbose): Add declaration.
4494 (show_history, set_history, show_commands): Add declaration.
4495 (do_restore_instream_cleanup): Add declaration.
4496 * objc-lang.c (specialcmp): Make static.
4497 (print_object_command): Make static.
4498 (find_objc_msgsend): Make static.
4499 (find_objc_msgcall_submethod_helper): Make static.
4500 (find_objc_msgcall_submethod): Make static.
4501 (_initialize_objc_language): Add declaration.
4502 (find_implementation_from_class): Make static.
4503 (find_implementation): Make static.
4504 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4505 * objc-lang.h (lookup_struct_typedef): Add declaration.
4506 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4507 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4508 (do_restore_user_call_depth): Make static.
4509 (do_restore_instream_cleanup): Delete declaration.
4510 (dont_repeat): Delete declaration.
4511 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4512 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4513 * reggroups.c (_initialize_reggroup): Add declaration.
4514 * cp-support.c (_initialize_cp_support): Add declaration.
4515 * cp-abi.c (_initialize_cp_abi): Add declaration.
4516 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4517 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4518 (_initialize_gnu_v3_abi): Add declaration.
4519 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4520 (_initialize_gnu_v2_abi): Add declaration.
4521 * frame-base.c (_initialize_frame_base): Add declaration.
4522 * doublest.c (floatformat_from_length): Make static.
4523 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4524 * frame.c (create_sentinel_frame): Make static.
4525 (_initialize_frame): Add declaration.
4526 * top.c (do_catch_errors): Make static.
4527 (gdb_rl_operate_and_get_next_completion): Make static.
4528 * typeprint.c: Include "typeprint.h".
4529 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4530 (sentinel_frame_this_id): Make static.
4531 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4532 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4533 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4534 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4535 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4536 * maint.c (maintenance_print_architecture): Make static.
4537 * signals/signals.c (_initialize_signals): Add declaration.
4538 * std-regs.c (_initialize_frame_reg): Add declaration.
4539 * jv-exp.y (push_variable): ISO C definition.
4540 (push_qualified_expression_name): Ditto.
4541 * memattr.c (_initialize_mem): Add declaration.
4542 * remote.c (remote_check_watch_resources): Make static.
4543 (remote_stopped_by_watchpoint): Make static.
4544 (remote_stopped_data_address): Make static.
4545 * d10v-tdep.c (nr_dmap_regs): Make static.
4546 (a0_regnum): Make static.
4547 (d10v_frame_unwind_cache): Make static.
4548 (d10v_frame_p): Make static.
4549 * osabi.c (show_osabi): Make static.
4550 (_initialize_gdb_osabi): Add extern declaration.
4551 * gdbtypes.c (make_qualified_type): Make static.
4552 (safe_parse_type): Make static.
4553 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4554 * macrotab.c (macro_bcache_free): Make static.
4555 * interps.c (interp_set_quiet): Make static.
4556 (interpreter_exec_cmd): Make static.
4557 * stack.h (select_frame_command): New file.
4558 * stack.c: Include "stack.h".
4559 (select_frame_command_wrapper): Delete function.
4560 (select_frame_command): Make global.
4561 * infcall.c: Include "infcall.h".
4562 * linespec.c: Include "linespec.h".
4563 * symfile.c (sections_overlap): Make static.
4564 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4565 * charset.c (_initialize_charset): Add missing prototype.
4566 * regcache.c (init_legacy_regcache_descr): Make static.
4567 (do_regcache_xfree): Make static.
4568 (regcache_xfer_part): Make static.
4569 (_initialize_regcache): Add missing prototype.
4570 * breakpoint.c (parse_breakpoint_sals): Make static.
4571 (breakpoint_sals_to_pc): Make static.
4572 * interps.h (clear_interpreter_hooks): ISO C declaration.
4573 * Makefile.in (stack_h): Define.
4574 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4575 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4576
4577 2003-06-08 Andrew Cagney <cagney@redhat.com>
4578
4579 * Makefile.in (d10v-tdep.o): Update dependencies.
4580 (SFILES): Add trad-frame.c.
4581 (trad_frame_h): Define.
4582 (COMMON_OBS): Add trad-frame.o.
4583 (trad-frame.o): Specify dependencies.
4584 * d10v-tdep.c: Include "trad-frame.h".
4585 (saved_regs_unwinder): Delete function.
4586 (d10v_frame_prev_register): Use trad_frame_prev_register.
4587 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4588 trad_frame", delete "regs" and "prev_sp".
4589 (prologue_find_regs): Use trad-frame.
4590 * trad-frame.h, trad-frame.c: New files.
4591
4592 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4593
4594 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4595
4596 2003-06-07 Adam Fedor <fedor@gnu.org>
4597
4598 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4599 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4600 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4601 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4602 resolve_msgsend_super, resolve_msgsend_super_stret):
4603 Use it.
4604
4605 2003-06-07 Andrew Cagney <cagney@redhat.com>
4606
4607 * symfile.h: Re-indent, clean up comments.
4608
4609 2003-06-07 Andrew Cagney <cagney@redhat.com>
4610
4611 * inferior.h (deprecated_write_sp): Replace
4612 generic_target_write_sp.
4613 * regcache.c (deprecated_write_sp): Replace
4614 generic_target_write_sp.
4615 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4616 * vax-tdep.c (vax_gdbarch_init): Update.
4617 * v850-tdep.c (v850_gdbarch_init): Update.
4618 * sparc-tdep.c (sparc_gdbarch_init): Update.
4619 * sh-tdep.c (sh_gdbarch_init): Update.
4620 * s390-tdep.c (s390_gdbarch_init): Update.
4621 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4622 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4623 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4624 * mcore-tdep.c (mcore_gdbarch_init): Update.
4625 * m68k-tdep.c (m68k_gdbarch_init): Update.
4626 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4627 * ia64-tdep.c (ia64_gdbarch_init): Update.
4628 * h8300-tdep.c (h8300_gdbarch_init): Update.
4629 * frv-tdep.c (frv_gdbarch_init): Update.
4630 * cris-tdep.c (cris_gdbarch_init): Update.
4631 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4632
4633 2003-06-07 Andrew Cagney <cagney@redhat.com>
4634
4635 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4636 Assert that PC_REGNUM is valid.
4637 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4638
4639 2003-06-07 Andrew Cagney <cagney@redhat.com>
4640
4641 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4642 * gdbarch.h, gdbarch.c: Regenerate.
4643 * mn10300-tdep.c: Include "gdb_assert.h".
4644 (mn10300_read_fp): New function.
4645 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4646 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4647 * ia64-tdep.c: Include "gdb_assert.h".
4648 (ia64_read_fp): New function.
4649 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4650 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4651 * regcache.c (generic_target_read_sp): Delete function.
4652 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4653 * inferior.h (generic_target_read_sp): Delete declaration.
4654 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4655 generic_target_read_sp.
4656 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4657 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4658 * sh-tdep.c (sh_gdbarch_init): Ditto.
4659 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4660 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4661
4662 2003-06-07 Andrew Cagney <cagney@redhat.com>
4663
4664 * gdbarch.sh: Comment each field of startup_gdbarch.
4665 * gdbarch.h, gdbarch.c: Re-generate.
4666
4667 2003-06-07 Andrew Cagney <cagney@redhat.com>
4668
4669 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4670 * gdbarch.h, gdbarch.c: Re-generate.
4671 * regcache.c: Update comments on read_pc et.al.
4672 (generic_target_read_pc): Delete function.
4673 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4674 * inferior.h (generic_target_read_pc): Delete declaration.
4675 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4676 generic_target_read_pc.
4677 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4678 * sh-tdep.c (sh_gdbarch_init): Ditto.
4679 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4680 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4681
4682 2003-06-07 Andrew Cagney <cagney@redhat.com>
4683
4684 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4685 "index" with "special_local_sect". Use strcmp instead of STREQ.
4686 Append period to coments.
4687
4688 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4689
4690 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4691 (elfstab_offset_sections): Likewise.
4692 * gdb-stabs.h (stab_section_info): Likewise.
4693 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4694 * objfiles.c (objfile_relocate): Likewise.
4695 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4696 * remote.c (get_offsets): Likewise.
4697 (remote_cisco_objfile_relocate): Likewise.
4698 * somread.c (som_symfile_offsets): Likewise.
4699 * symfile.c (alloc_section_addr_info): New function.
4700 (build_section_addr_info_from_section_tab): Use it.
4701 (free_section_addr_info): Adjust.
4702 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4703 (syms_from_objfile): Allocate local_addr dynamically.
4704 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4705 dynamically.
4706 (add_symbol_file_command): Allocate sect_opts dynamically.
4707 (reread_symbols): Avoid use of SECT_OFF_MAX.
4708 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4709 (alloc_section_addr_info): Declare it.
4710 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4711 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4712 dynamically.
4713 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4714
4715 2003-06-06 Andrew Cagney <cagney@redhat.com>
4716
4717 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4718 (d10v_frame_unwind_cache): Do not set "return_pc".
4719
4720 2003-06-06 Michael Snyder <msnyder@redhat.com>
4721
4722 * h8300-tdep.c: Make tidy (long lines).
4723
4724 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4725
4726 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4727 to regcache_collect().
4728
4729 2003-06-05 J. Brobecker <brobecker@gnat.com>
4730
4731 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4732 pc_in_sigtramp multiarch method.
4733 (hppa_hpux_som_init_abi): Use it.
4734 (hppa_hpux_elf_init_abi): Likewise.
4735 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4736 macro has been multiarched.
4737 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4738 macro here, as hppa64 isn't multiarched yet.
4739
4740 2003-06-05 Andrew Cagney <cagney@redhat.com>
4741
4742 * Makefile.in (value_h): Add $(frame_h).
4743 * value.h: Include "frame.h".
4744 (struct value): Replace "frame_addr" with "frame_id".
4745 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4746 * values.c (allocate_value): Use VALUE_FRAME_ID.
4747 (value_copy): Use VALUE_FRAME_ID.
4748 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4749 * valops.c (value_assign): Update. Use frame_find_by_id.
4750
4751 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4752
4753 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4754 in each pass.
4755
4756 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4757
4758 * thread-db.c (check_event): For create/death event breakpoints,
4759 loop through all messages to ensure that we read the message
4760 corresponding to the breakpoint we are at.
4761
4762 2003-06-04 Michael Snyder <msnyder@redhat.com>
4763
4764 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4765
4766 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4767
4768 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4769 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4770 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4771 when handling .eh_frame sections.
4772
4773 2003-06-04 J. Brobecker <brobecker@gnat.com>
4774
4775 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4776 prepare_to_proceed procedure instead of the hppa-specific one.
4777 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4778
4779 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4780
4781 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4782 * config.in: Regenerated.
4783 * configure.in: Add test for syscall function and check for
4784 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4785 * configure: Regenerated.
4786 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4787 <sys/syscall.h>.
4788 (kill_lwp): New function that uses tkill syscall or
4789 uses kill, depending on whether threading model is nptl or not.
4790 All callers of kill() changed to use kill_lwp().
4791 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4792 see if all threads have already exited in the nptl model.
4793 (stop_and_resume_callback): New callback function used by the
4794 lin_lwp_wait thread exit handling code.
4795 (stop_wait_callback): Check for threads already having exited and
4796 delete such threads fromt the lwp list when discovered.
4797 (stop_callback): Don't assert retcode of kill call.
4798
4799 Roland McGrath <roland@redhat.com>
4800 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4801 nptl libthread_db.
4802
4803 2003-06-03 Richard Henderson <rth@redhat.com>
4804
4805 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4806 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4807 (alpha_sigtramp_frame_prev_register): Likewise.
4808 (alpha_heuristic_frame_prev_register): Likewise.
4809 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4810
4811 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4812 alpha-specific register id names.
4813 (alpha_mdebug_frame_unwind_cache): Likewise.
4814 (alpha_mdebug_frame_prev_register): Likewise.
4815
4816 2003-06-03 Richard Henderson <rth@redhat.com>
4817
4818 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4819 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4820 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4821 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4822 unwind routines.
4823 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4824 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4825 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4826
4827 * alpha-linux-tdep.c: Remove unnecessary includes.
4828 * Makefile.in (alpha-linux-tdep.o): Update.
4829
4830 2003-06-03 Richard Henderson <rth@redhat.com>
4831
4832 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4833 (alphabsd_fill_fpreg): Likewise.
4834
4835 2003-06-03 J. Brobecker <brobecker@gnat.com>
4836
4837 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4838 references to struct frame_info fields by calls to the equivalent
4839 accessors. Necessary now that frame_info is opaque.
4840
4841 2003-06-03 J. Brobecker <brobecker@gnat.com>
4842
4843 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4844 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4845 structure, field no longer exists.
4846
4847 2003-06-03 J. Brobecker <brobecker@gnat.com>
4848
4849 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4850 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4851
4852 2003-06-03 J. Brobecker <brobecker@gnat.com>
4853
4854 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4855 references to struct frame_info fields by calls to the equivalent
4856 accessors. Necessary now that frame_info is opaque.
4857
4858 2003-06-03 J. Brobecker <brobecker@gnat.com>
4859
4860 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4861 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4862 structure, field no longer exists.
4863
4864 2003-06-03 Theodore A. Roth <troth@openavr.org>
4865
4866 * remote.c (init_remote_state): Compute sizeof_g_packet by
4867 accumulation of the size of all registers instead of blindly using
4868 DEPRECATED_REGISTER_BYTES.
4869
4870 2003-06-03 Michael Snyder <msnyder@redhat.com>
4871
4872 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4873 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4874 for h8300sx.
4875
4876 2003-06-03 J. Brobecker <brobecker@gnat.com>
4877
4878 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4879 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4880
4881 2003-06-03 Andrew Cagney <cagney@redhat.com>
4882
4883 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4884 (sparc_convert_to_raw): Delete function.
4885 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4886 register_convert_to_virtual.
4887
4888 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4889
4890 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4891 layer if not dealing with a statically-linked threaded program.
4892
4893 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4894
4895 * solib.c (solib_open): Update comment to reflect actual search order.
4896
4897 2003-06-03 Andrew Cagney <cagney@redhat.com>
4898
4899 * frame.c (get_frame_memory_signed): New function.
4900 (get_frame_memory, get_frame_memory_unsigned): New function.
4901 (get_frame_arch): New function.
4902 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4903 (get_frame_memory, get_frame_unsigned_memory): Declare.
4904 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4905 get_frame_memory_unsigned and get_frame_arch.
4906 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4907
4908 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4909
4910 * MAINTAINERS (write after approval): Add myself.
4911
4912 2003-06-03 Jim Blandy <jimb@redhat.com>
4913
4914 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4915 elements of gregset_t are 64 bits each, but access registers
4916 are still 32 bits, so they're packed two per gregset_t
4917 element. Unpack/pack them properly.
4918
4919 2003-06-02 David Carlton <carlton@bactrian.org>
4920
4921 * linespec.c (find_methods): Break out code into
4922 add_matching_methods and add_constructors.
4923 (add_matching_methods): New.
4924 (add_constructors): Ditto.
4925
4926 2003-06-02 Andrew Cagney <cagney@redhat.com>
4927
4928 * sparc-tdep.c (sparc_print_registers): Delete call to
4929 REGISTER_CONVERTIBLE.
4930 (sparc_gdbarch_init): Do not set register_convertible.
4931 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4932 * frv-tdep.c (frv_gdbarch_init): Ditto.
4933 * cris-tdep.c (cris_gdbarch_init): Ditto.
4934
4935 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4936
4937 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4938 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4939 (syms_from_objfile): Ditto.
4940
4941 2003-06-03 Andreas Schwab <schwab@suse.de>
4942
4943 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4944 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4945
4946 2003-06-02 Richard Henderson <rth@redhat.com>
4947
4948 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4949 a member of all_reggroup.
4950
4951 2003-06-02 Richard Henderson <rth@redhat.com>
4952
4953 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4954 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4955 (alpha_lds, alpha_sts): New.
4956 (alpha_convert_register_p): Change from _register_convertible.
4957 (alpha_register_to_value): Change from _convert_to_virtual;
4958 restructure and fail for type sizes other than 4 or 8.
4959 (alpha_value_to_register): Similarly.
4960 (alpha_extract_return_value): Use alpha_sts.
4961 (alpha_store_return_value): Use alpha_lds.
4962 (alpha_gdbarch_init): Update hooks.
4963
4964 2003-06-02 Richard Henderson <rth@redhat.com>
4965
4966 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4967 regnum identifiers.
4968 (alpha_sigtramp_register_address): Likewise.
4969
4970 2003-06-02 Richard Henderson <rth@redhat.com>
4971
4972 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4973 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4974 * alpha-tdep.h: Declare them.
4975
4976 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4977 Remove zerobuf. Don't error on UNIQUE.
4978 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4979 (ALPHA_REGSET_UNIQUE): Provide default.
4980 (supply_gregset): Use alpha_supply_int_regs.
4981 (fill_gregset): Use alpha_fill_int_regs.
4982 (supply_fpregset): Use alpha_supply_fp_regs.
4983 (fill_fpregset): Use alpha_fill_fp_regs.
4984 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4985 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4986 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4987 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4988 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4989 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4990
4991 2003-06-02 Richard Henderson <rth@redhat.com>
4992
4993 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4994
4995 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4996 (alpha_store_return_value): Likewise.
4997
4998 2003-06-02 David Carlton <carlton@math.stanford.edu>
4999
5000 * block.c (contained_in): Add 'const' to arguments.
5001 (block_function): Ditto.
5002 * block.h: Update declarations for block_function and
5003 contained_in.
5004
5005 2003-06-02 David Carlton <carlton@math.stanford.edu>
5006
5007 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5008 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5009 * p-valprint.c (pascal_val_print): Ditto.
5010 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5011
5012 2003-06-02 Richard Henderson <rth@redhat.com>
5013
5014 * alpha-tdep.c (alpha_push_dummy_call): Use
5015 builtin_type_ieee_double_little instead of builtin_type_double.
5016
5017 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5018 sign-extension of 32-bit values.
5019 (alpha_store_return_value): Similarly.
5020
5021 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5022 (alpha_extract_return_value): Likewise.
5023 (alpha_store_return_value): Likewise.
5024
5025 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5026 (alpha_store_return_value): Error on IEEE Quad floats.
5027
5028 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5029 (alpha_extract_struct_value_address): Likewise.
5030 (alpha_store_return_value): Likewise.
5031 (alpha_store_struct_return): Remove.
5032 (alpha_gdbarch_init): Update hook registration to match.
5033
5034 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5035 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5036 macros where appropriate.
5037 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5038 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5039
5040 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5041 for SP, GP; void_func_ptr for PC; non-language-specific types
5042 for all others.
5043 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5044
5045 2003-06-02 Richard Henderson <rth@redhat.com>
5046
5047 * top.h (lim_at_start): Declare.
5048 * main.c (captured_main): Set it.
5049 * top.c (lim_at_start): Define.
5050 (command_loop): Use it instead of &environ.
5051 * event-top.c (command_handler): Likewise.
5052
5053 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5054
5055 * mipsnbsd-tdep.c: Update copyright years.
5056 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5057
5058 2003-06-01 Richard Henderson <rth@redhat.com>
5059
5060 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5061 (alpha-linux-tdep.o): Update dependencies.
5062 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5063 * alpha-mdebug-tdep.c: Remove unneeded includes.
5064
5065 2003-06-01 Richard Henderson <rth@redhat.com>
5066
5067 * alpha-tdep.c (alpha_register_reggroup_p): New.
5068 (alpha_gdbarch_init): Register it.
5069
5070 2003-06-02 Andrew Cagney <cagney@redhat.com>
5071
5072 * dwarfread.c: Eliminate "register"
5073 (decode_die_type): Eliminate assignment within "if".
5074 (struct_type, decode_array_element_type): Ditto.
5075 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5076 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5077 (decode_modified_type, completedieinfo): Ditto.
5078 * block.c: Eliminate "register".
5079 (blockvector_for_pc_sect): Eliminate assignment within "if".
5080 * cp-support.h (struct symbol): Opaque declaration.
5081 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5082
5083 2003-06-01 Richard Henderson <rth@redhat.com>
5084
5085 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5086 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5087
5088 2003-06-01 Adam Fedor <fedor@gnu.org>
5089
5090 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5091 * gdbarch.[ch]: Regenerate.
5092 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5093 (hppa_gdbarch_init): Set it in the gdbarch vector.
5094 * i386-tdep.c (i386_fetch_pointer_argument): New
5095 (i386_gdbarch_init): Set it into gdbarch.
5096 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5097 (rs6000_gdbarch_init): Set it in gdbarch.
5098 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5099 (sparc_gdbarch_init): Set it in gdbarch.
5100
5101 2003-06-01 Andrew Cagney <cagney@redhat.com>
5102
5103 * defs.h (extract_address): Delete declaration.
5104 * findvar.c (extract_address): Delete function.
5105 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5106 extract_address with the inline equivalent,
5107 extract_unsigned_integer.
5108 (xstormy16_extract_struct_value_address): Ditto.
5109 (xstormy16_pointer_to_address): Ditto.
5110 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5111 * v850-tdep.c (v850_push_arguments): Ditto.
5112 (v850_extract_return_value): Ditto.
5113 (v850_extract_struct_value_address): Ditto.
5114 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5115 (sparcnbsd_get_longjmp_target_64): Ditto.
5116 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5117 (get_longjmp_target): Ditto.
5118 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5119 (sh64_extract_struct_value_address): Ditto.
5120 (sh_push_arguments): Ditto.
5121 (sh64_push_arguments): Ditto.
5122 * remote-vxsparc.c (vx_read_register): Ditto.
5123 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5124 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5125 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5126 * mipsv4-nat.c (get_longjmp_target): Ditto.
5127 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5128 * mips-nat.c (get_longjmp_target): Ditto.
5129 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5130 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5131 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5132 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5133 * irix5-nat.c (get_longjmp_target): Ditto.
5134 * irix4-nat.c (get_longjmp_target): Ditto.
5135 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5136 (ia64_push_arguments): Ditto.
5137 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5138 * h8300-tdep.c (h8300_push_arguments): Ditto.
5139 (h8300_store_return_value): Ditto.
5140 (h8300_extract_struct_value_address): Ditto.
5141 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5142 (frv_push_arguments): Ditto.
5143 * avr-tdep.c (avr_pointer_to_address): Ditto.
5144 (avr_push_arguments): Ditto.
5145 * arm-tdep.c (arm_push_dummy_call): Ditto.
5146 (arm_get_longjmp_target): Ditto.
5147 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5148 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5149 (alpha_get_longjmp_target): Ditto.
5150
5151 * solib-irix.c (extract_mips_address): Inline extract_address,
5152 replacing it with extract_signed_integer.
5153 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5154 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5155 (first_link_map_member, open_symbol_file_object): Ditto.
5156 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5157 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5158 (LM_NEXT, LM_NAME): Ditto.
5159
5160 2003-06-01 Richard Henderson <rth@redhat.com>
5161
5162 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5163 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5164 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5165 (alpha_cannot_store_register): Likewise.
5166 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5167 * alpha-nat.c (supply_gregset): Likewise.
5168 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5169
5170 2003-06-01 Andrew Cagney <cagney@redhat.com>
5171
5172 * infcall.c (call_function_by_hand): Update comment on
5173 DEPRECATED_DUMMY_WRITE_SP.
5174
5175 * mips-tdep.c (mips_gdbarch_init): Do not set
5176 deprecated_dummy_write_sp.
5177 (mips_eabi_push_dummy_call): Set the SP register.
5178 (mips_o64_push_dummy_call): Set the SP register.
5179 (mips_o32_push_dummy_call): Set the SP register.
5180 (mips_n32n64_push_dummy_call): Set the SP register.
5181
5182 2003-06-01 Richard Henderson <rth@redhat.com>
5183
5184 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5185 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5186 (supply_gregset): Likewise.
5187 * alpha-tdep.c (alpha_store_return_value): Likewise.
5188 (alpha_get_longjmp_target): Likewise.
5189 (alpha_register_name): Constify array.
5190 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5191 deprecated_register_size, deprecated_register_bytes,
5192 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5193 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5194 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5195
5196 2003-06-01 Richard Henderson <rth@redhat.com>
5197
5198 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5199 from arg_reg_buffer to regcache to avoid double conversion.
5200
5201 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5202
5203 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5204 SP_REGNUM.
5205 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5206 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5207
5208 2003-06-01 Richard Henderson <rth@redhat.com>
5209
5210 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5211 (decode_frame_entry): Set it. Skip FDE augmentation.
5212
5213 2003-06-01 Richard Henderson <rth@redhat.com>
5214
5215 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5216 not overlapping PC_REGNUM.
5217
5218 2003-06-01 Richard Henderson <rth@redhat.com>
5219
5220 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5221 alpha_push_arguments. Don't dump argument register data to
5222 the target stack. Fix float and 128-bit long double semantics.
5223 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5224 (alpha_fix_call_dummy): Remove.
5225 (alpha_call_dummy_words): Remove.
5226 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5227
5228 2003-06-01 Richard Henderson <rth@redhat.com>
5229
5230 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5231
5232 2003-06-01 Andrew Cagney <cagney@redhat.com>
5233
5234 * mips-tdep.c (is_mips16_addr): New function.
5235 (make_mips16_addr, unmake_mips16_addr): New functions.
5236 (pc_is_mips16, mips_fetch_instruction): Use.
5237 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5238 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5239 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5240 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5241 TARGET_MIPS.
5242 * config/mips/tm-mips.h: Update copyright.
5243 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5244 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5245 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5246 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5247 (TM_PRINT_INSN_MACH): Delete.
5248 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5249
5250 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5251 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5252 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5253 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5254 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5255 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5256 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5257 mips*-*-riscos* and mips*-*-sysv* onto mips.
5258 * config/mips/mips64.mt: New file.
5259 * config/mips/mips.mt: New file.
5260 * config/mips/littlemips.mt: Delete file.
5261 * config/mips/decstation.mt: Delete file.
5262 * config/mips/vr4300el.mt: Delete file.
5263 * config/mips/vr5000el.mt: Delete file.
5264 * config/mips/vr5000.mt: Delete file.
5265 * config/mips/vr4100.mt: Delete file.
5266 * config/mips/vr4xxxel.mt: Delete file.
5267 * config/mips/vr4300.mt: Delete file.
5268 * config/mips/vr4xxx.mt: Delete file.
5269 * config/mips/bigmips.mt: Delete file.
5270 * config/mips/bigmips64.mt: Delete file.
5271 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5272 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5273 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5274 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5275 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5276 "tm-bigmips.h".
5277 * config/mips/tm-irix3.h: Ditto.
5278 * config/mips/tm-mipsv4.h: Ditto.
5279 * config/mips/tm-embed.h: Ditto.
5280 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5281 "tm-bigmips64.h".
5282 * config/mips/tm-vr5000el.h: Delete file.
5283 * config/mips/tm-tx39l.h: Delete file.
5284 * config/mips/tm-vr4300el.h: Delete file.
5285 * config/mips/tm-vr4xxxel.h: Delete file.
5286 * config/mips/tm-vr4300.h: Delete file.
5287 * config/mips/tm-vr4100.h: Delete file.
5288 * config/mips/tm-vr4xxx.h: Delete file.
5289 * config/mips/tm-vr5000.h: Delete file.
5290 * config/mips/tm-embedl64.h: Delete file.
5291 * config/mips/tm-embedl.h: Delete file.
5292 * config/mips/tm-embed64.h: Delete file.
5293 * config/mips/tm-bigmips64.h: Delete file.
5294 * config/mips/tm-bigmips.h: Delete file.
5295
5296 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5297
5298 Fix gdb/1216.
5299 * shnbsd-nat.c: Include "sh-tdep.h".
5300
5301 From Richard Henderson <rth@redhat.com>:
5302 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5303
5304 2003-05-31 Andrew Cagney <cagney@redhat.com>
5305
5306 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5307 forward declaration.
5308 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5309 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5310 (mips_find_saved_regs): Use set_reg_offset.
5311 (mips_frame_init_saved_regs): Delete function.
5312 (mips_pop_frame): Call mips_find_saved_regs instead of
5313 DEPRECATED_FRAME_INIT_SAVED_REGS.
5314
5315 2003-05-31 Andrew Cagney <cagney@redhat.com>
5316
5317 * mips-tdep.c (mips_gdbarch_init): Do not set
5318 deprecated_max_register_raw_size, register_virtual_size, and
5319 deprecated_max_register_virtual_size.
5320
5321 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5322
5323 * i386-tdep.c: Include "dwarf2-frame.h".
5324 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5325 * Makefile.in (i386-tdep.o): Update dependencies.
5326
5327 * dwarf2-frame.c, dwarf2-frame.h: New files.
5328 * Makefile.in (SFILES): Add dwarf2-frame.c.
5329 (dwarf2_frame_h): Define.
5330 (COMMON_OBS): Add dwarf2-frame.o.
5331 (dwarf2-frame.o): Add dependencies.
5332
5333 2003-05-31 Andreas Jaeger <aj@suse.de>
5334
5335 * x86-64-linux-nat.c: Fix comment.
5336
5337 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5338
5339 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5340 function signature.
5341
5342 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5343 have a sigcontext_addr handler.
5344 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5345 sigcontext_addr handler.
5346
5347 2003-05-31 Andrew Cagney <cagney@redhat.com>
5348
5349 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5350 (print_fp_register_row): Replace do_fp_register_row.
5351 (mips_print_fp_register): Add "file" and "frame" parameters.
5352 (mips_print_register): Add "file" and "frame" parameters.
5353 (mips_print_registers_info): Replace mips_do_registers_info.
5354 (mips_gdbarch_init): Set print_registers_info instead of
5355 deprecated_do_registers_info.
5356 (mips_read_fp_register_single): Add "frame" parameter.
5357 (mips_read_fp_register_double): Add "frame" parameter.
5358
5359 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5360
5361 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5362 Fixes a bug where GDB would print the wrong register names for
5363 targets without SSE.
5364
5365 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5366 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5367 registers.
5368
5369 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5370 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5371 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5372 TDEP->sc_sp_offset.
5373
5374 From Michal Ludvig <mludvig@suse.cz>:
5375 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5376 and `sc_num_regs'.
5377 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5378 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5379 I386_ST0_REGNUM): Move here from...
5380 * i386-tdep.c: ... here.
5381 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5382 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5383 registers if possible.
5384 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5385 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5386 Remove variables.
5387 (i386bsd_sc_reg_offset): New variable.
5388 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5389 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5390 TDEP->sc_sp_offset.
5391 (i386fbsd_sc_reg_offset): New variable.
5392 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5393 TDEP->sc_num_regs.
5394 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5395 variables.
5396 (i386fbsd4_sc_reg_offset): New variable.
5397 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5398 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5399 TDEP->sc_sp_offset.
5400 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5401 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5402 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5403 Remove variables.
5404 (i386nbsd_sc_reg_offset): New variable.
5405 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5406 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5407 TDEP->sc_sp_offset.
5408 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5409 Remove variables.
5410 (i386obsd_sc_reg_offset): New variable.
5411 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5412 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5413 TDEP->sc_sp_offset.
5414 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5415 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5416 for frame pointer offset in `struct sigcontext'.
5417
5418 2003-05-31 Andrew Cagney <cagney@redhat.com>
5419
5420 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5421 architecture methods call_dummy_words, sizeof_call_dummy_words,
5422 push_return_address, store_struct_return, and fix_call_dummy. Set
5423 push_dummy_call instead of deprecated_push_arguments.
5424 (mips_store_struct_return): Delete function.
5425 (mips_fix_call_dummy): Delete function.
5426 (mips_push_return_address): Delete function.
5427 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5428 RA_REGNUM and T9_REGNUM.
5429 (mips_n32n64_push_dummy_call): Ditto for
5430 mips_n32n64_push_arguments.
5431 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5432 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5433
5434 2003-05-31 Andrew Cagney <cagney@redhat.com>
5435
5436 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5437 "dummy_addr" to "bp_addr".
5438 * infcall.c (call_function_by_hand): Pass "funaddr" to
5439 gdbarch_push_dummy_call.
5440 * gdbarch.h, gdbarch.c: Re-generate.
5441 * i386-tdep.c (i386_push_dummy_call): Update.
5442 * arm-tdep.c (arm_push_dummy_call): Update.
5443 * d10v-tdep.c (d10v_push_dummy_call): Update.
5444
5445 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5446
5447 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5448 variable declarations.
5449 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5450 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5451 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5452 x86_64_init_frame_pc, x86_64_init_frame_pc,
5453 x86_64_function_has_prologue): Remove prototypes.
5454 (X86_64_NUM_GREGS): New define.
5455 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5456 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5457 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5458 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5459 XMM1_REGNUM): Remove defines.
5460 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5461 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5462 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5463 X86_64_XMM1_REGNUM): New defines.
5464 (struct x86_64_register_info): Renamed from `struct
5465 register_info'. Remove `size' member.
5466 (x86_64_register_info_table): Remove variable.
5467 (x86_64_register_info): New variable.
5468 (X86_64_NUM_REGS): New define.
5469 (X86_64_NUM_GREGS): Remove define.
5470 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5471 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5472 Remove variables.
5473 (x86_54_dwarf2_reg_to_regnum): Remove function.
5474 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5475 (x86_64_dwarf_reg_to_regnum): New function.
5476 (x86_64_register_name): Rewrite.
5477 (x86_64_register_raw_size): Remove function.
5478 (x86_64_register_byte_table): Remove variable.
5479 (x86_64_register_byte): Remove function.
5480 (x86_64_register_virtual_type): Remove function.
5481 (x86_64_register_type): New function.
5482 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5483 x86_64_register_convert_to_raw): Remove functions.
5484 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5485 (x86_64_use_struct_convention): Make static. Adjust for renamed
5486 defines.
5487 (x86_64_frame_init_saved_regs): Remove function.
5488 (x86_64_push_arguments): Make static. Change to accept a regcache
5489 as argument.
5490 (x86_64_store_return_value, x86_64_extract_return_value): Make
5491 static. Rewrite based on i386 counterparts.
5492 (x86_64_push_dummy_call): New function.
5493 (X86_64_NUM_SAVED_REGS): New define.
5494 (x86_64_register_number): Remove function.
5495 (x86_64_store_struct_return): Remove function.
5496 (x86_64_frameless_function_invocation,
5497 x86_64_function_has_prologue): Remove functions.
5498 (PROLOG_BUFSIZE): Remove define.
5499 (struct x86_64_frame_cache): New structure.
5500 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5501 x86_64_frame_cache, x86_64_frame_this_id,
5502 x86_64_frame_prev_register, x86_64_frame_p,
5503 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5504 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5505 functions.
5506 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5507 variables.
5508 (x86_64_skip_prologue): Rewrite in terms of
5509 x86_64_analyze_prologue.
5510 (x86_64_frame_base_address): New function.
5511 (x86_64_frame_base): New variable.
5512 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5513 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5514 set deprecated_fp_regnum, deprecated_register_size,
5515 deprecated_register_bytes, register_raw_size, register_byte,
5516 register_virtual_type, register_convertiable,
5517 register_convert_to_virtual, convert_to_raw,
5518 deprecated_get_saved_register, deprecated_target_read_fp,
5519 deprecated_push_arguments, deprecated_push_return_address,
5520 deprecated_pop_frame, deprecated_store_struct_return,
5521 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5522 frameless_function_invocation, deprecated_frame_saved_pc,
5523 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5524 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5525 deprecated_init_frame_pc and virtual_frame_pointer. Call
5526 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5527 and x86_64_frame_p. Call frame_base_set_default to register
5528 x86_64_frame_base.
5529 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5530 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5531 (_initialize_x86_64_tdep): Remove function.
5532 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5533 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5534 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5535 define.
5536 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5537 (x86_64_linux_sigcontext_addr): Rewrite.
5538 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5539 x86_64_linux_frame_saved_pc): Remove functions.
5540 (x86_64_linux_pc_in_sigtramp): Renamed from
5541 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5542 trampoline.
5543 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5544 Remove_functions.
5545 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5546 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5547 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5548 (x86_64_regmap): Rename to regmap.
5549 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5550 x86_64_num_gregs.
5551 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5552 x86_64_regmap.
5553 (x86_64_fxsave_offset): Remove function.
5554 (supply_fpregset): Simply call x86_64_supply_fxsave.
5555 (fill_fpregset): Simply call x86_64_fill_fxsave.
5556 (fetch_inferior_registers, store_inferior_registers): Avoid
5557 asignment in if-statement.
5558 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5559 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5560 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5561 (fetch_core_registers): Remove function.
5562 (linux_elf_core_fns): Remove.
5563 (offsetoff): Don't define.
5564 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5565 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5566 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5567 add core-regset.o.
5568 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5569 protection against multiple includes instead of NM_X86_64_h. Add
5570 various comments. Include "config/nm-linux.h". Don't include
5571 <signal.h>.
5572 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5573 GET_THREAD_SIGNALS): Remove defines.
5574 (x86_64_register_u_addr, kernel_u_size,
5575 lin_thread_get_thread_signals): Remove prototypes.
5576 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5577 [HAVE_LINK_H]: Don't include "solib.h".
5578 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5579 * config/i386/tm-x86-64linux.h: Fix comments.
5580 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5581 x86-64-tdep.o): Update dependencies.
5582
5583 2003-05-30 Andrew Cagney <cagney@redhat.com>
5584
5585 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5586 Change parameter type to a "struct regcache *".
5587
5588 * gdbarch.sh: Regardless of the multi-arch level, always define
5589 the macro when not already defined.
5590 * gdbarch.h, gdbarch.c: Re-generate.
5591
5592 2003-05-30 Richard Henderson <rth@redhat.com>
5593
5594 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5595 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5596 (alpha_mdebug_frame_this_id): Likewise.
5597 (alpha_mdebug_frame_prev_register): Likewise.
5598 (alpha_mdebug_frame_base_address): Likewise.
5599 (alpha_mdebug_frame_locals_address): Likewise.
5600 (alpha_mdebug_frame_args_address): Likewise.
5601 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5602 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5603 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5604 loop increment.
5605 (alpha_heuristic_frame_this_id): Make static.
5606 (alpha_heuristic_frame_prev_register): Likewise.
5607 (alpha_heuristic_frame_base_address): Likewise.
5608 * alpha-tdep.h: Update.
5609
5610 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5611
5612 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5613 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5614 defenitions.
5615 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5616 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5617 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5618 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5619 I386_ST0_REGNUM): New defines.
5620 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5621 codestream_get): Remove define.
5622 (codestream_next_addr, condestream_addr, condestream_buf,
5623 codestream_off, codestream_cnt): Remove variables.
5624 (codestream_fill, codestream_seek, codestream_read): Remove
5625 functions.
5626 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5627 functionality.
5628 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5629 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5630 i386_frame_saved_pc, i386_saved_pc_after_call,
5631 i386_frame_num_args, i386_frame_init_saved_regs,
5632 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5633 i386_push_arguments): Remove functions.
5634 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5635 functionality. Use i386_analyze_prologue instead of
5636 i386_get_frame_setup.
5637 (I386_NUM_SAVED_REGS): New define.
5638 (struct i386_frame_cache): New structure.
5639 (i386_alloc_frame_cache, i386_analyze_struct_return,
5640 i386_skip_probe, i386_analyze_frame_setup,
5641 i386_analyze_register_saves, i386_analyze_prologue,
5642 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5643 i386_frame_prev_register, i386_sigtramp_frame_cache,
5644 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5645 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5646 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5647 New functions.
5648 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5649 New variables.
5650 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5651 I386_EAX_REGNUM and I386_EDX_REGNUM.
5652 (i386_extract_return_value, i386_store_return_value): Use
5653 I386_ST0_REGNUM where appropriate.
5654 (i386_extract_struct_value_address): Rewrite to use extract_address.
5655 (i386_svr4_pc_in_sigtramp): Add comment.
5656 (i386_svr4_sigcontext_addr): Rewrite.
5657 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5658 TDEP->sc_sp_offset.
5659 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5660 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5661 of new defines. Set push_dummy_call, don't set
5662 deprecated_push_arguments, deprecated_push_return_address,
5663 deprecated_pop_frame. Don't set parm_boundary. Don't set
5664 deprecated_frame_chain, deprecated_frame_saved_pc,
5665 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5666 save_dummy_frame_tos, unwind_pc. Call
5667 frame_unwind_append_predicate and frame_base_set_default. Don't
5668 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5669 Don't set frameless_function_invocation. Don't set
5670 deprecated_register_bytes, deprecated_register_size,
5671 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5672 * i386-linux-tdep.c: Fix formatting in some comments.
5673 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5674 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5675 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5676 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5677 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5678 redundant parentheses.
5679 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5680 (i386_linux_sigcontext_addr): Use it. Rewrite.
5681 (find_minsym_and_objfile): Change name of second argument.
5682 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5683 changed. Use frame_pc_unwind instead of
5684 DEPRECATED_SAVED_PC_AFTER_CALL.
5685 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5686 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5687 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5688 unwinder.
5689 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5690 "dummy-frame.h".
5691 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5692 (_initialize_i386_cygwin_tdep): New prototype.
5693 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5694 deprecated_frame_chain_valid.
5695 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5696 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5697 Rely on the SVR4 defaults.
5698 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5699 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5700
5701 2003-05-30 Andrew Cagney <cagney@redhat.com>
5702
5703 * infcall.c (call_function_by_hand): Always call
5704 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5705
5706 2003-05-30 Richard Henderson <rth@redhat.com>
5707
5708 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5709 increment.
5710
5711 2003-05-29 Jim Blandy <jimb@redhat.com>
5712
5713 Use gdbarch methods for solib stuff on PowerPC Linux.
5714 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5715 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5716 show through.
5717 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5718 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5719 giving the same effect as the #definitions above.
5720
5721 2003-05-29 Adam Fedor <fedor@gnu.org>
5722
5723 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5724 (find_implementation_from_class): Replace it with the standard
5725 case i.e. do nothing.
5726
5727 2003-05-29 Richard Henderson <rth@redhat.com>
5728
5729 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5730 (alpha_linux_sigtramp_offset): Use it. Make static.
5731 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5732 update for new frame model.
5733 * alpha-mdebug-tdep.c: New file.
5734 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5735 (alpha_osf1_init_abi): Install it.
5736 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5737 (linked_proc_desc_table): Remove.
5738 (alpha_frame_past_sigtramp_frame): Remove.
5739 (alpha_dynamic_sigtramp_offset): Remove.
5740 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5741 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5742 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5743 (push_sigtramp_desc): Remove.
5744 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5745 (alpha_cannot_store_register): Likewise.
5746 (alpha_sigcontext_addr): Remove.
5747 (alpha_find_saved_regs): Remove.
5748 (alpha_frame_init_saved_regs): Remove.
5749 (alpha_init_frame_pc_first): Remove.
5750 (read_next_frame_reg): Remove.
5751 (alpha_frame_saved_pc): Remove.
5752 (alpha_saved_pc_after_call): Remove.
5753 (temp_proc_desc, temp_saved_regs): Remove.
5754 (alpha_about_to_return): Remove.
5755 (cached_proc_desc): Remove.
5756 (alpha_frame_chain): Remove.
5757 (alpha_print_extra_frame_info): Remove.
5758 (alpha_init_extra_frame_info): Remove.
5759 (alpha_frame_locals_address): Remove.
5760 (alpha_frame_args_address): Remove.
5761 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5762 (alpha_push_dummy_frame): Remove.
5763 (alpha_pop_frame): Remove.
5764 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5765 (alpha_read_insn): New.
5766 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5767 for different insn encodings.
5768 (alpha_in_lenient_prologue): Remove.
5769 (struct alpha_sigtramp_unwind_cache): New.
5770 (alpha_sigtramp_frame_unwind_cache): New.
5771 (alpha_sigtramp_register_address): New.
5772 (alpha_sigtramp_frame_this_id): New.
5773 (alpha_sigtramp_frame_prev_register): New.
5774 (alpha_sigtramp_frame_unwind): New.
5775 (alpha_sigtramp_frame_p): New.
5776 (struct alpha_heuristic_unwind_cache): New.
5777 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5778 don't count nop insns that occur between functions.
5779 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5780 heuristic_proc_desc, but without the mdebug wrapping.
5781 (alpha_heuristic_frame_this_id): New.
5782 (alpha_heuristic_frame_prev_register): New.
5783 (alpha_heuristic_frame_unwind): New.
5784 (alpha_heuristic_frame_p): New.
5785 (alpha_heuristic_frame_base_address): New.
5786 (alpha_heuristic_frame_base): New.
5787 (alpha_unwind_dummy_id): New.
5788 (alpha_unwind_pc): New.
5789 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5790 frame related deprecated initializations; install replacements.
5791 (alpha_dump_tdep): Remove.
5792 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5793 (alpha_read_insn, alpha_after_prologue,
5794 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5795 alpha_heuristic_frame_prev_register,
5796 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5797 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5798 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5799 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5800
5801 2003-05-29 Andrew Cagney <cagney@redhat.com>
5802
5803 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5804 dependant on the availability of ASSERT_FUNCTION.
5805 (ASSERT_FUNCTION): Do not define when there is no function name.
5806
5807 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5808
5809 From Jimi X <jimix@watson.ibm.com>:
5810 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5811
5812 2003-05-28 Jim Blandy <jimb@redhat.com>
5813
5814 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5815 argument to ptrace to int; the system headers should give it the
5816 right type, and pointers don't fit in ints on powerpc64-*-*.
5817
5818 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5819
5820 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5821 DW_TAG_catch_block.
5822
5823 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5824
5825 * stabsread.c (dbx_lookup_type): Make static.
5826 (read_type): Ditto.
5827 (add_undefined_type): Ditto.
5828 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5829 not export.
5830
5831 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5832
5833 * hpread.c (hpread_has_name): Make static.
5834 (hpread_psymtab_to_symtab): Ditto.
5835 (file_exists): Ditto.
5836 (hpread_call_pxdb): Ditto.
5837 (hpread_pxdb_needed): Ditto.
5838 (hpread_quick_traverse): Ditto.
5839 (hpread_get_header): Ditto.
5840 (hpread_get_lntt): Ditto.
5841 (hpread_get_slt): Ditto.
5842 (class_of): Ditto.
5843
5844 2003-05-25 Andreas Schwab <schwab@suse.de>
5845
5846 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5847 stack_align and deprecated_extra_stack_alignment_needed.
5848 (m68k_stack_align): Delete.
5849
5850 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5851 (m68k_register_virtual_size): Likewise.
5852 (altos_skip_prologue): Remove obsolete function.
5853 (isi_frame_num_args): Likewise.
5854 (news_frame_num_args): Likewise.
5855 (m68k_fix_call_dummy): Make static.
5856 (m68k_push_dummy_frame): Likewise.
5857 (m68k_pop_frame): Likewise.
5858 (m68k_skip_prologue): Likewise.
5859 (m68k_frame_init_saved_regs): Likewise.
5860 (m68k_saved_pc_after_call): Likewise.
5861 (m68k_get_longjmp_target): Make multi-arch.
5862 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5863 structure. Register m68k_get_longjmp_target if enabled.
5864 * m68k-tdep.h (struct gdbarch_tdep): Define.
5865 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5866
5867 * Makefile.in (config.status): Also depend on configure.tgt
5868 and configure.host.
5869 (m68klinux-tdep.o): Update dependencies.
5870 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5871 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5872 (M68K_LINUX_JB_PC): Define.
5873 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5874 and take additional parameter.
5875 (m68k_linux_sigtramp_saved_pc): Update.
5876 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5877 m68k_linux_pc_in_sigtramp, in_plt_section,
5878 find_solib_trampoline_target.
5879 * config/m68k/tm-linux.h: Don't include any tm headers.
5880 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5881 (JB_ELEMENT_SIZE): Likewise.
5882 (JB_PC): Likewise.
5883 (GET_LONGJMP_TARGET): Likewise.
5884 (IN_SIGTRAMP): Likewise.
5885 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5886
5887 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5888
5889 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5890 (sparc32_push_arguments): Re-implement by calling
5891 sparc32_do_push_arguments.
5892
5893 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5894
5895 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5896 SPARC_O1_REGNUM): New defines.
5897 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5898 (sparc32_store_return_value): New function.
5899 (sparc_extract_struct_value_address): Rewrite to operate on a
5900 regcache.
5901 (sparc_gdbarch_init): Don't set
5902 deprecated_extract_struct_value_address. Set
5903 extract_struct_value_address instead. Don't set
5904 deprecated_extract_return_value and deprecated_store_return_value
5905 for 32-bit targets. Set extract_return_value and
5906 store_return_value instead.
5907 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5908 DEPRECTAED_EXTRACT_RETURN_VALUE,
5909 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5910 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5911 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5912 (sparc_store_return_value): Remove prototype.
5913 (sparc32_store_return_value): New prototype.
5914 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5915 Adjust prototypes.
5916
5917 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5918
5919 * sparcnbsd-tdep.c: Include "gdb_string.h".
5920
5921 2003-05-23 Andrew Cagney <cagney@redhat.com>
5922
5923 * p-valprint.c (pascal_val_print): Replace extract_address with
5924 the inline equivalent extract_unsigned_integer.
5925 * jv-valprint.c (java_value_print): Ditto.
5926 * ada-valprint.c (ada_val_print_1): Ditto.
5927 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5928
5929 2003-05-23 Theodore A. Roth <troth@openavr.org>
5930
5931 * blockframe.c (frameless_look_for_prologue): Remove unused
5932 after_prologue variable.
5933
5934 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5935
5936 * blockframe.c (get_pc_function_start): Rewrite to avoid
5937 asignments in if-statements.
5938
5939 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5940
5941 Committed by Elena Zannoni <ezannoni@redhat.com>.
5942 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5943 files, don't relocate absolute symbols (and do use mst_abs).
5944
5945 2003-05-23 Andrew Cagney <cagney@redhat.com>
5946
5947 * objc-lang.c: Include "gdb_assert.h".
5948 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5949 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5950 (gdb_check, gdb_check_fatal): Delete functions.
5951 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5952 gdb_assert.
5953 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5954 * Makefile.in (objc-lang.o): Update dependencies.
5955
5956 2003-05-22 Ian Lance Taylor <ian@airs.com>
5957
5958 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5959 with fprintf_filtered, not fprintf_unfiltered.
5960
5961 2003-05-22 Andrew Cagney <cagney@redhat.com>
5962
5963 * stack.c (frame_info): Inline extract_address, replacing it with
5964 extract_unsigned_integer.
5965 * findvar.c (unsigned_pointer_to_address): Ditto.
5966 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5967 * dwarf2expr.c (dwarf2_read_address): Ditto.
5968 * frame.c (frame_pc_unwind): Update comment.
5969 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5970
5971 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5972
5973 * infptrace.c (detach): Call print_sys_errmsg rather than
5974 perror_with_name to issue warning message when errno is non-zero
5975 after calling ptrace detach.
5976
5977 2003-05-21 J. Brobecker <brobecker@gnat.com>
5978
5979 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5980 macro definitions from here...
5981 * hppa-tdep.c: ...to there.
5982
5983 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5984
5985 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5986 register_ptrace_addr(). Fix all callers.
5987
5988 2003-05-21 Andreas Schwab <schwab@suse.de>
5989
5990 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5991 dependencies.
5992 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5993 end.
5994 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5995 (_initialize_m68k_linux_tdep): New function.
5996 (m68k_linux_frame_saved_pc): Make static.
5997 (m68k_linux_extract_return_value): Likewise.
5998 (m68k_linux_store_return_value): Likewise.
5999 (m68k_linux_extract_struct_value_address): Likewise.
6000 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6001 Remove.
6002 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6003 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6004 (DEPRECATED_FRAME_SAVED_PC): Remove.
6005
6006 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6007
6008 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6009 regset numbering rather than our own.
6010
6011 2003-05-19 David Carlton <carlton@bactrian.org>
6012
6013 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6014
6015 2003-05-19 David Carlton <carlton@bactrian.org>
6016
6017 Partial fix for PR c++/827.
6018 * cp-support.h: Include symtab.h.
6019 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6020 * cp-namespace.c: Update contributors.
6021 (cp_lookup_symbol_nonlocal): New.
6022 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6023 (lookup_symbol_file): Ditto.
6024 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6025 * block.h: Declare block_scope, block_using, block_global_block.
6026 * block.c (block_scope): New.
6027 (block_using, block_global_block): Ditto.
6028 * Makefile.in (cp_support_h): Depend on symtab_h.
6029 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6030
6031 2003-05-19 David Carlton <carlton@bactrian.org>
6032
6033 * language.h (struct language_defn): Add 'la_value_of_this'
6034 and 'la_lookup_symbol_nonlocal' members.
6035 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6036 lookup_symbol_static, lookup_symbol_global,
6037 lookup_symbol_aux_block.
6038 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6039 if we should search fields of this and how to do static/global
6040 lookup.
6041 (lookup_symbol_aux_block): Make extern.
6042 (basic_lookup_symbol_nonlocal): New.
6043 (lookup_symbol_static, lookup_symbol_global): Ditto.
6044 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6045 'la_lookup_symbol_nonlocal' members.
6046 * c-lang.c (c_language_defn, cplus_language_defn)
6047 (asm_language_defn, minimal_language_defn): Ditto.
6048 * jv-lang.c (java_language_defn): Ditto.
6049 * language.c (unknown_language_defn, auto_language_defn)
6050 (local_language_defn): Ditto.
6051 * m2-lang.c (m2_language_defn): Ditto.
6052 * objc-lang.c (objc_language_defn): Ditto.
6053 * scm-lang.c (scm_language_defn): Ditto.
6054 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6055 * p-lang.c (pascal_language_defn): Ditto for both.
6056 * Makefile.in (f-lang.o): Depend on value_h.
6057 (p-lang.o): Ditto.
6058
6059 2003-05-19 David Carlton <carlton@bactrian.org>
6060
6061 * block.h: Declare block_static_block.
6062 * block.c (block_static_block): New.
6063 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6064 lookup_symbol_aux_local, calling block_static_block instead.
6065 (lookup_symbol_aux_local): Delete 'static_block' argument.
6066
6067 2003-05-19 David Carlton <carlton@bactrian.org>
6068
6069 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6070
6071 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6072
6073 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6074 register numbers mapping.
6075
6076 2003-05-18 Adam Fedor <fedor@gnu.org>
6077
6078 * symtab.c (completion_list_objc_symbol): New function.
6079 (make_symbol_completion_list): Use it to add ObjC symbols
6080 when looking though the list.
6081 (language_search_unquoted_string): New function.
6082 (make_file_symbol_completion_list): Use it.
6083
6084 2003-05-18 Andreas Schwab <schwab@suse.de>
6085
6086 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6087 dependencies.
6088 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6089 as m68k_linux_extract_return_value.
6090 (DEPRECATED_STORE_RETURN_VALUE): Define as
6091 m68k_linux_store_return_value.
6092 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6093 m68k_linux_extract_struct_value_address.
6094 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6095 get_next_frame, get_frame_base, get_frame_pc.
6096 (m68k_linux_frame_saved_pc): Use get_frame_base.
6097 (m68k_linux_extract_return_value): New function.
6098 (m68k_linux_store_return_value): New function.
6099 (m68k_linux_extract_struct_value_address): New function.
6100 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6101
6102 * c-exp.y (typebase): Remove duplicate occurence of
6103 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6104 of lookup_signed_typename.
6105
6106 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6107
6108 * dwarf2loc.c (find_location_expression): Change type of second
6109 argument to `size_t *'.
6110 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6111 for size variable.
6112
6113 2003-05-18 David Carlton <carlton@bactrian.org>
6114
6115 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6116 'linkage_name'. Add comment.
6117 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6118 'linkage_name'.
6119 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6120 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6121 (lookup_block_symbol): Ditto.
6122
6123 2003-05-16 Andrew Cagney <cagney@redhat.com>
6124
6125 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6126 * gdbarch.h, gdbarch.c: Re-generate.
6127 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6128 * TODO (REGISTER_BYTES): Delete reference.
6129 * alpha-tdep.c (alpha_gdbarch_init): Update.
6130 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6131 * x86-64-tdep.c (x86_64_init_abi): Update.
6132 * vax-tdep.c (vax_gdbarch_init): Update.
6133 * v850-tdep.c (v850_gdbarch_init): Update.
6134 * sparc-tdep.c (sparc_gdbarch_init): Update.
6135 * sh-tdep.c (sh_gdbarch_init): Update.
6136 * s390-tdep.c (s390_gdbarch_init): Update.
6137 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6138 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6139 (ns32k_gdbarch_init_32382): Update.
6140 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6141 * mcore-tdep.c (mcore_gdbarch_init): Update.
6142 * m68k-tdep.c (m68k_gdbarch_init): Update.
6143 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6144 * ia64-tdep.c (ia64_gdbarch_init): Update.
6145 * i386-tdep.c (i386_gdbarch_init): Update.
6146 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6147 * hppa-tdep.c (hppa_gdbarch_init): Update.
6148 * h8300-tdep.c (h8300_gdbarch_init): Update.
6149 * frv-tdep.c (frv_gdbarch_init): Update.
6150 * cris-tdep.c (cris_gdbarch_init): Update.
6151 * avr-tdep.c (avr_gdbarch_init): Update.
6152 * arm-tdep.c (arm_gdbarch_init): Update.
6153 * sparc-tdep.c (sparc_pop_frame): Update.
6154 * rs6000-tdep.c (rs6000_pop_frame): Update.
6155 * remote.c (init_remote_state): Update.
6156 (remote_prepare_to_store): Update.
6157 * remote-vx.c (vx_prepare_to_store): Update.
6158 * remote-sds.c (sds_fetch_registers): Update.
6159 (sds_prepare_to_store): Update.
6160 * remote-array.c: Update.
6161 * regcache.c (init_legacy_regcache_descr): Update.
6162 (init_regcache_descr): Update.
6163 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6164 (mips_o64_extract_return_value): Update.
6165 * irix5-nat.c (fetch_core_registers): Update.
6166 * irix4-nat.c (fetch_core_registers): Update.
6167 * i386-tdep.h: Update.
6168 * hppa-tdep.c (pa_do_registers_info): Update.
6169 (pa_do_strcat_registers_info): Update.
6170 * cris-tdep.c (cris_register_bytes_ok): Update.
6171 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6172 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6173 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6174 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6175 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6176 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6177 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6178 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6179 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6180 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6181 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6182 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6183 (REGISTER_BYTES_OK): Update.
6184 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6185 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6186
6187 2003-05-16 Ian Lance Taylor <ian@airs.com>
6188
6189 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6190 (vax_print_insn, print_insn_arg): Remove static functions.
6191 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6192 print_insn_vax from opcodes library.
6193 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6194
6195 2003-05-15 Andrew Cagney <cagney@redhat.com>
6196
6197 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6198 * target.h (memory_breakpoint_from_pc): Delete declaration.
6199 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6200 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6201 * monitor.c (monitor_insert_breakpoint): Use
6202 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6203 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6204 * gdbarch.h, gdbarch.c: Re-generate.
6205 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6206 (sparc_gdbarch_init): Set breakpoint_from_pc to
6207 sparc_breakpoint_from_pc.
6208 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6209 (BREAKPOINT_FROM_PC): Define.
6210 (sparc_breakpoint_from_pc): Declare.
6211 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6212 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6213 (BREAKPOINT_FROM_PC): Define.
6214 (BREAKPOINT): Delete macro.
6215 * target.h: Update comment.
6216 * s390-tdep.c (s390_gdbarch_init): Update comments.
6217 * remote.c: Update comments.
6218 * remote-mips.c: Update comments.
6219 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6220 * mem-break.c: Update comment.
6221 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6222 (ia64_memory_insert_breakpoint): Update.
6223 * config/sparc/tm-sparc.h: Update comment.
6224 * config/pa/tm-hppa64.h: Update comment.
6225 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6226 (rs6000_breakpoint_from_pc): Update.
6227 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6228 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6229 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6230 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6231 (mips_breakpoint_from_pc): Update.
6232 (mips_dump_tdep): Update.
6233
6234 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6235 * minsyms.c (lookup_minimal_symbol): Inline
6236 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6237
6238 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6239 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6240 * p-lang.c (pascal_printstr): Ditto.
6241 * objc-lang.c (objc_printstr): Ditto.
6242 * m2-lang.c (m2_printstr): Ditto.
6243 * jv-valprint.c (java_print_value_fields): Ditto.
6244 * f-lang.c (f_printstr): Ditto.
6245 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6246 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6247 for repeat_count_threshold.
6248 * Makefile.in (cp-valprint.o): Update dependencies.
6249
6250 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6251
6252 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6253 (examine_prologue): Support looking through leaf functions, knowing
6254 they start with mov r2,r12. Support skipping over indirect stores
6255 of the input registers. Upon hitting a non-nop branch instruction
6256 or predicated instruction, bail out by setting lim_pc to the current
6257 pc value in the loop. At the end, if the lim_pc value is still
6258 beyond our calculated value and we have trust_limit set,
6259 use the lim_pc value.
6260
6261 2003-05-15 Andrew Cagney <cagney@redhat.com>
6262
6263 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6264 generic_find_dummy_frame.
6265 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6266 (deprecated_generic_find_dummy_frame): Update.
6267 (deprecated_read_register_dummy): Update.
6268 * frame.c (deprecated_generic_get_saved_register): Update.
6269
6270 2003-05-15 Theodore A. Roth <troth@openavr.org>
6271
6272 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6273 (avr_gdbarch_init): Set breakpoint_from_pc method.
6274
6275 2003-05-15 Andrew Cagney <cagney@redhat.com>
6276
6277 * regcache.c (build_regcache): Set deprecated_register_valid
6278 directly.
6279 (deprecated_grub_regcache_for_register_valid): Delete function.
6280 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6281 declaration.
6282
6283 2003-05-15 David Carlton <carlton@bactrian.org>
6284
6285 Committed by Elena Zannoni <ezannoni@redhat.com>
6286 * symtab.c (lookup_symbol_aux): Delete calls to
6287 lookup_symbol_aux_minsyms.
6288 (lookup_symbol_aux_minsyms): Comment out function and
6289 prototype. Delete lookup by mangled name.
6290
6291 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6292
6293 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6294 correctly indicate an empty stack and ``stack_allocated'' to the
6295 indicate the number of elements initially allocated.
6296 (dwarf_expr_grow_stack): Simplify method for computing new
6297 stack size. Don't loop infinitely if ``stack_len'' is zero.
6298 (execute_stack_op): Move ``ctx->in_reg'' initialization
6299 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6300 be used in conjuction with DW_OP_piece. Revise error message
6301 accordingly.
6302
6303 2003-05-14 Theodore A. Roth <troth@openavr.org>
6304
6305 * MAINTAINERS: Update my email address.
6306 * avr-tdep.c: Ditto.
6307
6308 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6309
6310 * symtab.h (enum domain_enum): Rename from namespace_enum.
6311 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6312 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6313 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6314 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6315 TYPES_NAMESPACE, METHODS_NAMESPACE.
6316 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6317 (struct symbol, struct partial_symbol): Rename field
6318 'namespace_enum namespace' to 'domain_enum domain'.
6319 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6320 Delete old define kludge for namespace.
6321
6322 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6323 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6324 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6325 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6326 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6327 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6328 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6329 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6330 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6331 occurrences of the above.
6332
6333 2003-05-14 Ian Lance Taylor <ian@airs.com>
6334
6335 * Makefile.in (install-only): Use $(SHELL) when running
6336 mkinstalldirs.
6337
6338 2003-05-13 Ian Lance Taylor <ian@airs.com>
6339
6340 * MAINTAINERS (write after approval): Add myself.
6341
6342 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6343 second and third arguments.
6344 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6345 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6346
6347 2003-05-13 Andrew Cagney <cagney@redhat.com>
6348
6349 * defs.h (store_address): Delete declaration.
6350 findvar.c (store_address): Delete function.
6351 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6352 store_unsigned_integer.
6353 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6354 * v850-tdep.c (v850_push_arguments): Ditto.
6355 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6356 * sh-tdep.c (sh64_get_saved_register): Ditto.
6357 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6358 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6359 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6360 (mips_get_saved_register): Ditto.
6361 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6362 (find_func_descr, ia64_push_arguments): Ditto.
6363 * i386-tdep.c (i386_push_arguments): Ditto.
6364 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6365 * frv-tdep.c (frv_push_arguments): Ditto.
6366 * frame.c (legacy_saved_regs_prev_register): Ditto.
6367 (deprecated_generic_get_saved_register): Ditto.
6368 * findvar.c (unsigned_address_to_pointer): Ditto.
6369 * dwarf2read.c (dwarf2_const_value): Ditto.
6370 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6371 * alpha-tdep.c (alpha_push_arguments): Ditto.
6372
6373 2003-05-12 J. Brobecker <brobecker@gnat.com>
6374
6375 * NEWS: Mention that the hppa-hpux port has been partially
6376 multiarched (32bit ABIT only, so far).
6377
6378 2003-05-11 Andrew Cagney <cagney@redhat.com>
6379
6380 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6381 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6382 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6383 sim/testsuite/sim/arm/misaligned2.ms, and
6384 sim/testsuite/sim/arm/misaligned3.ms.
6385 * disasm.h (struct ui_file): Add opaque struct declaration.
6386 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6387 * frame.h (struct ui_file): Ditto.
6388
6389 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6390
6391 * value.h: Pretty print.
6392
6393 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6394
6395 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6396
6397 2003-05-08 Andrew Cagney <cagney@redhat.com>
6398
6399 * regcache.h (max_register_size): Delete declaration.
6400 * regcache.c (max_register_size): Delete function.
6401 (struct regcache_descr): Delete field "max_register_size".
6402 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6403 registers fit in MAX_REGISTER_SIZE.
6404 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6405 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6406 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6407 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6408 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6409 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6410 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6411 * dve3900-rom.c, hppa-tdep.c: Ditto.
6412
6413 2003-05-08 David Carlton <carlton@math.stanford.edu>
6414
6415 * valops.c (push_word): Fix typo.
6416
6417 2003-05-08 Andrew Cagney <cagney@redhat.com>
6418
6419 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6420 * gdbarch.h: Re-generate.
6421 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6422 (legacy_max_register_raw_size): Delete declaration.
6423 * regcache.c (legacy_max_register_raw_size): Delete function.
6424 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6425 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6426 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6427 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6428 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6429 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6430 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6431 * findvar.c, dwarf2cfi.c: Ditto.
6432
6433 2003-05-08 Andrew Cagney <cagney@redhat.com>
6434
6435 * mips-tdep.c (read_signed_register): New function, moved to here
6436 from "regcache.c".
6437 (read_signed_register_pid): Ditto.
6438 * regcache.c (read_signed_register_pid): Delete function, moved to
6439 "mips-tdep.c".
6440 (read_signed_register): Ditto.
6441 * regcache.h (read_signed_register): Delete declaration.
6442 (read_signed_register_pid): Delete declaration.
6443
6444 2003-05-08 Andrew Cagney <cagney@redhat.com>
6445
6446 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6447 * gdbarch.h: Re-generate.
6448 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6449 (legacy_max_register_virtual_size): Delete declaration.
6450 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6451 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6452 * tracepoint.c (memrange_sortmerge): Ditto.
6453 * sparc-tdep.c (sparc_print_registers): Ditto.
6454 * regcache.c (legacy_max_register_virtual_size): Delete function.
6455
6456 2002-05-08 J. Brobecker <brobecker@gnat.com>
6457
6458 * fork-child.c (escape_bang_in_quoted_argument): New function.
6459 (fork_inferior): Escape '!' characters in quoted arguments
6460 only when needed.
6461
6462 2003-05-08 J. Brobecker <brobecker@gnat.com>
6463
6464 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6465 the language of the CU is not currently supported by GDB.
6466
6467 2003-05-08 J. Brobecker <brobecker@gnat.com>
6468
6469 * defs.h (language): Add language_minimal enum value.
6470 * c-lang.c (minimal_language_defn): New language definition.
6471 (_initialize_c_language): Add the new minimal language to the list
6472 of languages known to GDB.
6473
6474 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6475
6476 * frame.c (get_frame_type): Don't attempt to lazily initialize
6477 frame's unwinder for legacy frames.
6478
6479 2003-05-07 Andrew Cagney <cagney@redhat.com>
6480
6481 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6482 and "regcache" parameters.
6483 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6484
6485 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6486
6487 * dwarf2read.c (dwarf_decode_lines): Only use output of
6488 check_cu_functions() when calling record_line(). Do not update
6489 the current address.
6490
6491 2003-05-07 Andrew Cagney <cagney@redhat.com>
6492
6493 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6494 code.
6495
6496 2003-05-07 Jim Blandy <jimb@redhat.com>
6497
6498 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6499 'maint info symtabs' and 'maint info psymtabs'.
6500 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6501 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6502 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6503 Declarations updated.
6504 * maint.c (maintenance_list_command): Delete.
6505 (_initialize_maint_cmds): Update calls to add_cmd.
6506 * gdbcmd.h (maintenancelistlist): Delete declaration.
6507 * cli/cli-cmds.c (maintenancelistlist): Delete.
6508 (init_cmd_lists): Don't initialize it.
6509 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6510
6511 2003-05-07 Andrew Cagney <cagney@redhat.com>
6512
6513 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6514 "regcache".
6515 (d10v_print_registers_info): Update.
6516 (d10v_dmap_register, d10v_imap_register): Delete functions.
6517 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6518 and "imap_register".
6519 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6520 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6521 * arch-utils.c (generic_remote_translate_xfer_address): Add
6522 "regcache" and "gdbarch" parameters.
6523 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6524 parameter. Change class to multi-arch.
6525 * gdbarch.h, gdbarch.c: Re-generate.
6526 * remote.c (remote_xfer_memory): Use
6527 gdbarch_remote_translate_xfer_address.
6528
6529 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6530
6531 * infrun.c (prev_pc): Move declaration ahead of proceed().
6532 (proceed): Refresh prev_pc value before resuming.
6533 (stop_stepping): Remove code to refresh prev_pc.
6534
6535 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6536
6537 * nto-tdep.c: Removed stray comment.
6538
6539 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6540
6541 * i386-nto-tdep.c: Fix old K&R function definitions.
6542 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6543 Also change add_show_from_set() call to add_setshow_cmd().
6544 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6545
6546 2003-05-05 Andrew Cagney <cagney@redhat.com>
6547
6548 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6549 (fprint_dummy_frames): New function.
6550 (maintenance_print_dummy_frames): New function.
6551 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6552 * frame.c (fprint_frame_id): Make global.
6553 * frame.h (fprint_frame_id): Declare.
6554 * Makefile.in (dummy-frame.o): Update dependencies.
6555
6556 2003-05-05 Andrew Cagney <cagney@redhat.com>
6557
6558 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6559 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6560 SIZEOF_CALL_DUMMY_WORDS.
6561 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6562 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6563 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6564 CALL_DUMMY_BREAKPOINT_OFFSET.
6565 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6566 CALL_DUMMY_START_OFFSET.
6567 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6568 * gdbarch.h, gdbarch.c: Re-generate.
6569 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6570 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6571 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6572 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6573 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6574 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6575 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6576 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6577 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6578 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6579 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6580 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6581 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6582 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6583 * config/sparc/tm-sparc.h: Update.
6584
6585 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6586
6587 * configure.tgt: Add i[3456]86-*-nto*.
6588 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6589 * nto-tdep.c: New file. Neutrino target support routines.
6590 * nto-tdep.h: New file. Neutrino target header.
6591 * config/tm-qnxnto.h: New file.
6592 * config/i386/i386nto.mt: New file.
6593 * config/i386/tm-i386nto.h: New file.
6594
6595 2003-05-04 Andrew Cagney <cagney@redhat.com>
6596
6597 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6598 (load_infrun_state): Ditto.
6599 (struct thread_info): Drop "prev_func_name" field.
6600 * thread.c (load_infrun_state): Update.
6601 (save_infrun_state): Update.
6602 * infrun.c (prev_func_name): Delete variable.
6603 (init_wait_for_inferior): Do not clear prev_func_name.
6604 (stop_stepping, keep_going, context_switch): Do not swap
6605 prev_func_name.
6606 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6607 instead of PC_IN_SIGTRAMP.
6608
6609 2003-05-04 Andrew Cagney <cagney@redhat.com>
6610
6611 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6612 REGISTER_BYTE with register_offset_hack.
6613 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6614 that REGISTER_BYTE is consistent with the regcache.
6615 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6616 * gdbarch.h, gdbarch.c: Regenerate.
6617
6618 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6619
6620 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6621 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6622
6623 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6624
6625 2003-05-03 J. Brobecker <brobecker@gnat.com>
6626
6627 From Thierry Schneider <tpschneider1@yahoo.com>
6628 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6629 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6630 (mi-cmd-symbol.o): Add rule.
6631
6632 2003-05-03 Andrew Cagney <cagney@redhat.com>
6633
6634 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6635 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6636 * gdbarch.h, gdbarch.c: Re-generate.
6637 * d10v-tdep.c (d10v_push_dummy_code): New function.
6638 (d10v_gdbarch_init): Set push_dummy_code.
6639 * infcall.c (legacy_push_dummy_code): New function.
6640 (generic_push_dummy_code): New function.
6641 (push_dummy_code): New function.
6642 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6643 instead of dummy_addr, to push_dummy_call. Move call to
6644 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6645 switch.
6646 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6647
6648 2003-05-03 Andrew Cagney <cagney@redhat.com>
6649
6650 * disasm.h (print_insn): Declare.
6651 * disasm.c (init_gdb_disassemble_info): New function.
6652 (gdb_disassembly): Call init_gdb_disassemble_info.
6653 (gdb_print_insn): New function.
6654 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6655 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6656 * mcore-tdep.c: Include "disasm.h"
6657 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6658 * d10v-tdep.c: Include "disasm.h".
6659 (display_trace): Call gdb_print_insn, instead of print_insn.
6660 (print_insn): Delete function.
6661 * printcmd.c: Include "disasm.h".
6662 (print_insn): Delete function.
6663 (print_formatted): Call gdb_print_insn, instead of print_insn.
6664 * Makefile.in (printcmd.o): Update dependencies.
6665 (mcore-tdep.o, d10v-tdep.o): Ditto.
6666
6667 2003-05-02 Andrew Cagney <cagney@redhat.com>
6668
6669 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6670 PC_REGNUM, re-indent.
6671 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6672 PC_REGNUM isn't set.
6673
6674 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6675 * gdbarch.h, gdbarch.c: Re-generate.
6676 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6677 register_virtual_size, pc_regnum, or register_bytes.
6678 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6679 (d10v_register_type): Use D10V_PC_REGNUM.
6680 (d10v_print_registers_info, d10v_read_pc): Ditto.
6681 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6682 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6683
6684 2003-05-02 David Carlton <carlton@bactrian.org>
6685
6686 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6687 the name with mstrsave.
6688
6689 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6690
6691 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6692 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6693 (host_charset_name, target_charset_name): New vars for use by
6694 set/show commands.
6695 (host_charset_enum, target_charset_enum): New enums for set/show
6696 commands.
6697 (set_charset_sfunc, set_host_charset_sfunc,
6698 set_target_charset_sfunc): New functions.
6699 (set_host_charset, set_target_charset): Make static.
6700 (list_charsets, set_host_charset_command,
6701 set_target_charset_command): Delete functions.
6702 (show_charset_command): Rewrite as....
6703 (show_charset): Hook this up with the set/show command mechanism.
6704 (_initialize_charset): Change names of charsets to match the
6705 set/show enums. Use host_charset_name and target_charset_name.
6706 Use set/show mechanism for charset, host-charset, target-charset
6707 commands. Do not make 'show host-charset' and 'show
6708 target-charset' be aliases of 'show charset'.
6709
6710 * charset.h (set_host_charset, set_target_charset): Don't export,
6711 they are not used outside the file.
6712
6713 2003-05-01 Andrew Cagney <cagney@redhat.com>
6714
6715 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6716 (gdb_disassembly): Make "di" non static, always initialize and
6717 cleanup. Always use dis_asm_read_memory.
6718 (gdb_dis_asm_read_memory): Delete function.
6719
6720 2003-05-01 Andrew Cagney <cagney@redhat.com>
6721
6722 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6723 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6724
6725 2003-04-30 Andrew Cagney <cagney@redhat.com>
6726
6727 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6728 "tm_print_insn_info".
6729 (TARGET_PRINT_INSN_INFO): Delete macro.
6730 (dis_asm_read_memory): Delete function declaration.
6731 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6732 (tm_print_insn_info): Delete variable definition.
6733 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6734 * gdbarch.h, gdbarch.c: Re-generate.
6735 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6736 "deprecated_tm_print_insn_info".
6737 * mcore-tdep.c (mcore_dump_insn): Ditto.
6738 * mips-tdep.c (mips_gdbarch_init): Ditto.
6739 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6740 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6741 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6742 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6743 instead of TARGET_PRINT_INSN_INFO, add comment.
6744 * s390-tdep.c (s390_get_frame_info): Instead of
6745 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6746 (s390_check_function_end, s390_is_sigreturn): Ditto.
6747 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6748 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6749 * disasm.c: Include "gdbcore.h".
6750 (_initialize_disasm): New function, initialize
6751 "deprecated_tm_print_insn_info".
6752 (deprecated_tm_print_insn_info): New variable.
6753 (dis_asm_read_memory): Moved from "corefile.c", made static.
6754 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6755 * Makefile.in (disasm.o): Update dependencies.
6756
6757 2003-04-30 Andrew Cagney <cagney@redhat.com>
6758
6759 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6760
6761 2003-04-29 Adam Fedor <fedor@gnu.org>
6762
6763 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6764 * infcall.c (find_function_addr): Make non-static.
6765 * infcall.h (find_function_addr): Declare.
6766 * Makefile.in (eval.o): Update dependencies.
6767
6768 2003-04-28 Adam Fedor <fedor@gnu.org>
6769
6770 * symtab.c (symbol_find_demangled_name): Check for and demangle
6771 ObjC symbols.
6772 (symbol_init_demangled_name): Init for language_objc as well.
6773
6774 2003-04-28 Andrew Cagney <cagney@redhat.com>
6775
6776 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6777 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6778 * gdbarch.h, gdbarch.c: Re-generate.
6779 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6780 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6781 * inferior.h (deprecated_read_fp): Rename read_fp.
6782 (generic_target_read_fp): Delete declaration.
6783 * regcache.c (generic_target_read_fp): Delete function.
6784 (deprecated_read_fp): Replace read_fp, use
6785 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6786 * d10v-tdep.c (d10v_read_fp): Delete function.
6787 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6788
6789 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6790 deprecated_target_read_fp to generic_target_read_fp.
6791 * sh-tdep.c (sh_gdbarch_init): Ditto.
6792 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6793 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6794 * frv-tdep.c (frv_gdbarch_init): Ditto.
6795
6796 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6797 deprecated_fp_regnum.
6798 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6799 * vax-tdep.c (vax_gdbarch_init): Ditto.
6800 * v850-tdep.c (v850_gdbarch_init): Ditto.
6801 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6802 * sh-tdep.c (sh_gdbarch_init): Ditto.
6803 * s390-tdep.c (s390_gdbarch_init): Ditto.
6804 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6805 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6806 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6807 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6808 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6809 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6810 * i386-tdep.c (i386_gdbarch_init): Ditto.
6811 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6812 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6813 * frv-tdep.c (frv_gdbarch_init): Ditto.
6814 * cris-tdep.c (cris_gdbarch_init): Ditto.
6815 * avr-tdep.c (avr_gdbarch_init): Ditto.
6816 * arm-tdep.c (arm_gdbarch_init): Ditto.
6817 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6818
6819 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6820 * v850-tdep.c (v850_gdbarch_init): Ditto.
6821 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6822 * sh-tdep.c (sh_gdbarch_init): Ditto.
6823 * s390-tdep.c (s390_gdbarch_init): Ditto.
6824 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6825 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6826 * mips-tdep.c (mips_gdbarch_init): Ditto.
6827 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6828 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6829 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6830 * frv-tdep.c (frv_gdbarch_init): Ditto.
6831 * avr-tdep.c (avr_gdbarch_init): Ditto.
6832 * arm-tdep.c (arm_gdbarch_init): Ditto.
6833
6834 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6835 DEPRECATED_FP_REGNUM.
6836 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6837 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6838 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6839 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6840 (sparc32_register_virtual_type): Ditto.
6841 * sh-tdep.c (sh64_frame_chain): Ditto.
6842 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6843 (sh_nofp_frame_init_saved_regs): Ditto.
6844 (sh64_nofp_frame_init_saved_regs): Ditto.
6845 (sh_fp_frame_init_saved_regs): Ditto.
6846 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6847 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6848 * procfs.c (procfs_fetch_registers): Ditto.
6849 (procfs_store_registers): Ditto.
6850 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6851 (store_inferior_registers, fetch_core_registers): Ditto.
6852 (fetch_kcore_registers, clear_regs): Ditto.
6853 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6854 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6855 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6856 * nlm/i386.c (do_status): Ditto.
6857 * mipsv4-nat.c (supply_gregset): Ditto.
6858 * mips-tdep.c: Ditto for comments.
6859 * mips-nat.c (fetch_inferior_registers): Ditto.
6860 (store_inferior_registers, fetch_core_registers): Ditto.
6861 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6862 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6863 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6864 (i386_do_pop_frame, i386_register_type): Ditto.
6865 * hppa-tdep.c (hppa_frame_chain): Ditto.
6866 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6867 (hppa_pop_frame, hppa_read_fp): Ditto.
6868 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6869 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6870 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6871 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6872 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6873 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6874 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6875 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6876 * blockframe.c: Ditto for comments.
6877 * arch-utils.h: Ditto for comments.
6878 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6879 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6880 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6881 * alpha-tdep.h: Ditto for comments.
6882 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6883 (alpha_cannot_store_register): Ditto.
6884 (alpha_push_dummy_frame): Ditto.
6885 * alpha-nat.c (supply_gregset): Ditto.
6886
6887 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6888 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6889 * config/sparc/tm-sparc.h: Update comment.
6890
6891 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6892 deprecated_read_fp instead of TARGET_READ_FP.
6893 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6894 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6895 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6896 deprecated_read_fp instead of read_fp.
6897 * s390-tdep.c (s390_push_arguments): Ditto.
6898 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6899 * frame.h: Ditto in comments.
6900 * frame.c (legacy_get_prev_frame): Ditto.
6901 * dummy-frame.c (dummy_frame_this_id): Ditto.
6902 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6903
6904 2003-04-28 Andrew Cagney <cagney@redhat.com>
6905
6906 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6907 * gdbarch.h, gdbarch.c: Re-generate.
6908 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6909 * vax-tdep.c (_initialize_vax_tdep): Update.
6910 * v850-tdep.c (_initialize_v850_tdep): Update.
6911 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6912 * s390-tdep.c (_initialize_s390_tdep): Update.
6913 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6914 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6915 * mips-tdep.c (_initialize_mips_tdep): Update.
6916 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6917 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6918 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6919 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6920 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6921 * frv-tdep.c (_initialize_frv_tdep): Update.
6922 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6923 (_initialize_cris_tdep): Update.
6924 * arch-utils.c (legacy_print_insn): Update.
6925 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6926
6927 2003-04-26 Adam Fedor <fedor@gnu.org>
6928
6929 * linespec.c (decode_objc): New function to decode ObjC calls
6930 (decode_line_1): Check for ObjC calls (using decode_objc)
6931 * Makefile (linespec.o): Update dependencies.
6932
6933 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6934
6935 * breakpoint.h (struct breakpoint_ops): New.
6936 (struct breakpoint): Add ops member.
6937
6938 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6939 (mention): Use new breakpoint ops member.
6940 (set_raw_breakpoint): Initialize ops field to NULL.
6941 (print_exception_catchpoint, print_one_exception_catchpoint)
6942 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6943 (gnu_v3_exception_catchpoint_ops): New.
6944 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6945
6946 2003-04-25 Adam Fedor <fedor@gnu.org>
6947
6948 * Makefile.in (COMMON_OBS): Add objc-lang.o
6949
6950 2003-04-25 Andrew Cagney <cagney@redhat.com>
6951
6952 * d10v-tdep.c (print_insn): Delete function.
6953 (display_trace): Use TARGET_PRINT_INSN.
6954 (_initialize_d10v_tdep): Do not set tm_print_insn.
6955 (d10v_gdbarch_init): Set print_insn.
6956
6957 2003-04-25 Andrew Cagney <cagney@redhat.com>
6958
6959 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6960 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6961 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6962 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6963 (nr_dmap_regs, a0_regnum): ... new functions.
6964 (d10v_print_registers_info): Use a0_regnum, use register_size.
6965 (d10v_register_byte): Delete function.
6966 (d10v_register_raw_size): Delete function.
6967 (d10v_register_type): Use a0_regnum.
6968 (d10v_print_registers_info): Use a0_regnum.
6969 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6970 (d10v_gdbarch_init): Do not set register_byte or
6971 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6972 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6973 extract_address.
6974 (trace_command): Use XCALLOC.
6975 (print_insn): Delete reference to tm_print_insn.
6976 (saved_regs_unwinder): Use store_unsigned_integer instead of
6977 store_address.
6978 * frame.h (FRAME_OBSTACK_CALLOC): Define
6979
6980 2003-04-25 David Carlton <carlton@bactrian.org>
6981
6982 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6983
6984 2003-04-24 Adam Fedor <fedor@gnu.org>
6985
6986 * objc-lang.c: Include "valprint.h"
6987 * Makefile.in (objc-lang.o): Update dependencies.
6988
6989 2003-04-24 Adam Fedor <fedor@gnu.org>
6990
6991 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6992 architecture dependant compilation and mark as unimplemented
6993 (until they get put in the gdbarch vector).
6994
6995 2003-04-23 David Carlton <carlton@bactrian.org>
6996
6997 * cp-support.c (cp_find_first_component): Accept 'operator' in
6998 more locations.
6999
7000 2003-04-23 Andrew Cagney <cagney@redhat.com>
7001
7002 * infcall.c (call_function_by_hand): Eliminate redundant
7003 indentation. Move "saved_async" and "old_cleanups" to where they
7004 are needed.
7005
7006 2003-04-23 Andrew Cagney <cagney@redhat.com>
7007
7008 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7009 and "buffer". Move the "name" code to where it is needed.
7010
7011 2003-04-23 Andrew Cagney <cagney@redhat.com>
7012
7013 * infcall.c (call_function_by_hand): Move variables "start_sp",
7014 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7015 code to ON_STACK switch branch.
7016
7017 2003-04-23 Andrew Cagney <cagney@redhat.com>
7018
7019 * infcall.c (call_function_by_hand): Make declaration of "i",
7020 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7021 lint.
7022
7023 2003-04-23 Andrew Cagney <cagney@redhat.com>
7024
7025 * infcall.c (call_function_by_hand): Delete variable
7026 "n_method_args". Localize "param_type"'s declaration to the loop
7027 that it is used. Reinstate code assigning to said variable -
7028 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7029 Rationalize code using "param_type".
7030
7031 2003-04-22 Andrew Cagney <cagney@redhat.com>
7032
7033 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7034 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7035 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7036 to DEPRECATED_PUSH_RETURN_ADDRESS.
7037
7038 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7039
7040 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7041 on the DWARF2 register number prior to fetching a register.
7042
7043 2003-04-22 J. Brobecker <brobecker@gnat.com>
7044
7045 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7046 Update all the tests using SOFT_FLOAT considering the fact that
7047 this macro was always set to 0.
7048 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7049 considering the fact that this macro was always set to 0.
7050 * hppa-tdep.h (hppa_store_return_value): Likewise.
7051 (hppa_extract_return_value): Likewise.
7052
7053 2003-04-22 J. Brobecker <brobecker@gnat.com>
7054
7055 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7056 the hppa-pro target only.
7057
7058 2003-04-21 J. Brobecker <brobecker@gnat.com>
7059
7060 Ongoing multi-arch conversion effort for HP/UX:
7061 * config/pa/tm-hppa.h: Move all macro that are no longer
7062 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7063 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7064
7065 2003-04-21 J. Brobecker <brobecker@gnat.com>
7066
7067 * config/pa/tm-hppa.h: Obsolete a section that was only used
7068 for hppa-pro.
7069
7070 2003-04-21 J. Brobecker <brobecker@gnat.com>
7071
7072 Ongoing multi-arch conversion for HP/UX.
7073 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7074 if already defined (allows hppa64 to stay non-multiarched for now).
7075 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7076
7077 2003-04-21 Andrew Cagney <cagney@redhat.com>
7078
7079 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7080
7081 2003-04-21 Andrew Cagney <cagney@redhat.com>
7082
7083 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7084 "i386_num_mmx_regs".
7085
7086 2003-04-21 Andrew Cagney <cagney@redhat.com>
7087
7088 * infcall.c: New file.
7089 * infcall.h: New file.
7090 * valarith.c: Include "infcall.h".
7091 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7092 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7093 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7094 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7095 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7096 (SFILES): Add "infcall.c"
7097 (COMMON_OBS): Add "infcall.o".
7098 (infcall.o): Specify dependencies.
7099 * value.h (call_function_by_hand): Delete declaration.
7100 * inferior.h (run_stack_dummy): Delete declaration.
7101 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7102 (run_stack_dummy): Move to "infcall.c", merged into
7103 call_function_by_hand.
7104 * valops.c (call_function_by_hand): Moved to "infcall.c".
7105 (find_function_addr, value_arg_coerce): Ditto.
7106 (unwindonsignal_p, coerce_float_to_double): Ditto.
7107 (_initialize_valops): Move "set/show coerce-float-to-double", and
7108 "set/show unwindonsignal" commands to "infcall.c".
7109 * v850-tdep.c, target.h: Update comments.
7110 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7111 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7112 (sh64_init_extra_frame_info): Update comments.
7113 * mn10300-tdep.c: Update comments.
7114 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7115 * config/sparc/tm-sparc.h: Update comments.
7116 * breakpoint.h: Update comments.
7117 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7118 * arm-tdep.c: Update comment.
7119
7120 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7121
7122 * i386-tdep.c (i386_num_register_names): New variable.
7123 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7124 (MM0_REGNUM): Remove redundant parentheses in define.
7125 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7126 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7127 i386_mxcsr_regnum_p): Remove redundant parentheses.
7128 (i386_register_name): Use i386_num_register_names.
7129
7130 * i386-tdep.c (i386_extract_return_value,
7131 i386_store_return_value): Correct check for availability of
7132 floating-point registers.
7133
7134 * i386-tdep.c (i386_frame_num_args): Remove function.
7135 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7136
7137 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7138 mmx_regnum_to_fp_regnum. Adjust all callers.
7139
7140 * i386-tdep.c (i386_get_longjmp_target): Use
7141 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7142 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7143 extract_address.
7144
7145 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7146
7147 * core-regset.c: Update comments to reflect reality. Re-order
7148 includes.
7149 (fetch_core_registers): Use switch instead of if. Remove
7150 redundant prototype.
7151
7152 2003-04-18 Jim Blandy <jimb@redhat.com>
7153
7154 * s390-tdep.c (s390_frame_align): New function.
7155 (s390_gdbarch_init): Register it with the gdbarch object.
7156
7157 2003-04-17 Richard Henderson <rth@redhat.com>
7158
7159 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7160
7161 2003-04-17 Michael Snyder <msnyder@redhat.com>
7162 Karen Bennet <bennet@redhat.com>
7163
7164 Committed by Elena Zannoni <ezannoni@redhat.com>
7165 * gdb_gcore.sh: New script to create a core dump of a process.
7166
7167 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7168
7169 * values.c (value_being_returned): Don't fetch the return
7170 value if the return type is void.
7171
7172 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7173
7174 * thread-db.c: Reindented.
7175
7176 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7177
7178 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7179 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7180 as types.
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7207
7208 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7209 the size of ``long double'' to 16, instead of 8.
7210
7211 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7212
7213 * i386-linux-nat.c: Add some whitespace to make things more
7214 readable.
7215 (fetch_register, store_register, fetch_inferior_registers,
7216 store_inferior_registers): Get rid of assignment in if-statement.
7217 (store_register): Fix typo in error message.
7218
7219 2003-04-16 Andrew Cagney <cagney@redhat.com>
7220
7221 * utils.c (xmmalloc): Always allocate something, matches
7222 libiberty/xmalloc's semantics.
7223 (xmrealloc, xmcalloc): Ditto.
7224
7225 2003-04-16 Andrew Cagney <cagney@redhat.com>
7226
7227 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7228 update comments.
7229 (get_frame_type): Initialize unwind and type when needed.
7230 (get_frame_id, frame_register_unwind): Ditto.
7231
7232 2003-04-16 Andrew Cagney <cagney@redhat.com>
7233
7234 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7235 obsolete.
7236 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7237 * sparcl-stub.c: Obsolete file.
7238 * config/sparc/tm-sparclet.h: Obsolete file.
7239 * sparclet-stub.c: Obsolete file.
7240 * sparclet-rom.c: Obsolete file.
7241 * sparcl-tdep.c: Obsolete file.
7242 * config/sparc/tm-sparclite.h: Obsolete file.
7243 * config/sparc/sparclite.mt: Obsolete file.
7244 * config/sparc/sparclet.mt: Obsolete file.
7245 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7246 sparc86x-*-* obsolete.
7247
7248 2003-04-15 David Carlton <carlton@math.stanford.edu>
7249
7250 * Makefile.in (SFILES): Add cp-namespace.c.
7251 (COMMON_OBS): Add cp-namespace.o.
7252 (block.o): Depend on gdb_obstack_h and cp_support_h.
7253 (buildsym.o): Depend on cp_support_h.
7254 (cp-namespace.o): New.
7255 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7256 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7257 (dwarf2read.o): Depend on cp_support_h.
7258 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7259 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7260 processing_current_namespace.
7261 (read_namespace): Update processing_current_namespace; check for
7262 anonymous namespaces.
7263 (dwarf2_name): New function.
7264 (dwarf2_extension): Ditto.
7265 * cp-support.h: Update copyright, contributors.
7266 Add inclusion guards.
7267 Add opaque declaration for structs obstack, block, symbol.
7268 (struct using_direct): New struct.
7269 Add declarations for cp_find_first_component,
7270 cp_entire_prefix_len, processing_has_namespace_info,
7271 processing_current_namespace, cp_is_anonymous,
7272 cp_add_using_directive, cp_initialize_namespace,
7273 cp_finalize_namespace, cp_set_block_scope,
7274 cp_scan_for_anonymous_namespaces.
7275 * cp-namespace.c: New file.
7276 * cp-support.c: Update copyright.
7277 Include ctype.h, gdb_assert.h, gdbcmd.h.
7278 New variable maint_cplus_cmd_list.
7279 (cp_find_first_component): New function.
7280 (cp_entire_prefix_len, maint_cplus_command)
7281 (first_component_command, _initialize_cp_support): Ditto.
7282 * buildsym.c: Include cp-support.h.
7283 New variable using_list.
7284 (add_symbol_to_list): Check for anonymous namespaces.
7285 (finish_block): Set block's scope.
7286 (start_symtab): Initialize C++ namespace support.
7287 (end_symtab): Finalize C++ namespace support.
7288 * block.h: Add opaque declarations for structs
7289 block_namespace_info, using_direct, and obstack.
7290 Add declarations for block_set_scope and block_set_using.
7291 (struct block): Add 'language_specific' member.
7292 (BLOCK_NAMESPACE): New macro.
7293 * block.c: Include gdb_obstack.h and cp-support.h.
7294 (struct block_namespace_info): New struct.
7295 (block_set_scope): New function.
7296 (block_set_using, block_initialize_namespace): Ditto.
7297
7298 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7299
7300 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7301 (locate_base): Return early if there aren't any link map offsets.
7302 (svr4_solib_create_inferior_hook): Warn if shared library support
7303 is unavailable.
7304
7305 2003-04-14 David Carlton <carlton@math.stanford.edu>
7306
7307 * symtab.c (symbol_set_names): Add prefix when storing Java names
7308 in hash table. Fix for PR java/1039.
7309
7310 2003-04-14 David Carlton <carlton@math.stanford.edu>
7311
7312 * symtab.c (symbol_set_names): Rename 'name' arg to
7313 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7314 * symtab.h: Change 'name' argument in declaration of
7315 symbol_set_names to 'linkage_name'.
7316 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7317
7318 2003-04-14 Andrew Cagney <cagney@redhat.com>
7319
7320 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7321 return the fully sign-extended register value.
7322 (get_frame_pointer): Ditto.
7323 (mips_pop_frame): Initialize "proc_desc" after checking for a
7324 dummy frame.
7325
7326 2003-04-14 Andrew Cagney <cagney@redhat.com>
7327
7328 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7329 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7330 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7331 (mips_push_register): Delete function.
7332 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7333 PUSH_FP_REGNUM.
7334
7335 2003-04-14 Jim Blandy <jimb@redhat.com>
7336
7337 * symmisc.c: #include "gdb_regex.h".
7338 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7339 functions.
7340 * maint.c (maintenance_list_command): New function.
7341 (_initialize_maint_cmds): Register the above as commands.
7342 * symtab.h (maintenance_list_symtabs,
7343 maintenance_list_psymtabs): New declarations.
7344 * cli/cli-cmds.c (maintenancelistlist): New variable.
7345 (init_cmd_lists): Initialize it.
7346 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7347 * gdbcmd.h (maintenancelistlist): New declaration.
7348 * Makefile.in (symmisc.o): Update dependencies.
7349
7350 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7351
7352 * s390-nat.c: Include asm/types.h for addr_t.
7353
7354 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7355
7356 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7357 actually incoming type.
7358
7359 2003-04-13 Andrew Cagney <cagney@redhat.com>
7360
7361 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7362 get_next_frame and get_frame_saved_regs.
7363
7364 2003-04-13 Andrew Cagney <cagney@redhat.com>
7365
7366 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7367 of gdbarch_num_regs.
7368
7369 2003-04-13 Andrew Cagney <cagney@redhat.com>
7370
7371 * frame.h: Mention what replaced what in "struct frame_info".
7372 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7373 deprecated_update_frame_base_hack and
7374 deprecated_update_frame_pc_hack.
7375 * hppa-tdep.c: Ditto.
7376
7377 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7378
7379 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7380 to read_reg and update its comment. Remove regnum member.
7381 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7382 Don't call read_reg when setting in_reg. Call read_reg to get
7383 the frame base if it's in a register. Return the register number
7384 on the stack instead of in the context. Remove extra arguments
7385 to read_reg.
7386 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7387 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7388 the register number on the expression stack.
7389 (needs_frame_read_reg): Remove extra arguments.
7390
7391 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7392
7393 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7394 made non-static.
7395 (execute_stack_op): All callers updated.
7396 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7397 * dwarf2loc.c (find_location_expression): New function.
7398 (dwarf_expr_frame_base): Call it.
7399 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7400 (dwarf2_tracepoint_var_ref): New function, broken out from
7401 locexpr_tracepoint_var_ref.
7402 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7403 Make static.
7404 (loclist_read_variable, loclist_read_needs_frame): New functions.
7405 (loclist_describe_location, loclist_tracepoint_var_ref): New
7406 functions.
7407 (dwarf2_loclist_funcs): New struct location_funcs.
7408 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7409 (struct dwarf2_locexpr_baton): Add comments.
7410 (dwarf2_loclist_funcs): New extern.
7411 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7412 base_address and base_known.
7413 (dwarf_loc_buffer): New variable.
7414 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7415 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7416 (dwarf2_has_info): Initialize dwarf_loc_offset.
7417 (dwarf2_build_psymtabs): Read in .debug_loc.
7418 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7419 DWARF_LOC_SIZE.
7420 (psymtab_to_symtab_1): Likewise. Move base address calculation
7421 here, from...
7422 (dwarf2_get_pc_bounds): ... here. Use the base address from
7423 cu_header.
7424 (dwarf2_symbol_mark_computed): Handle location lists.
7425
7426 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7427
7428 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7429 if the linkage name demangled successfully.
7430
7431 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7432
7433 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7434 disassmbly_flavour): Removed.
7435
7436 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7437
7438 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7439
7440 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7441
7442 2003-04-12 Andrew Cagney <cagney@redhat.com>
7443
7444 * frame.h (struct frame_info): Move definition from here ...
7445 * frame.c (struct frame_info): ... to here.
7446
7447 2003-04-12 Andrew Cagney <cagney@redhat.com>
7448
7449 * gdbthread.h (save_infrun_state): Delete parameter
7450 "prev_func_start".
7451 (struct thread_info): Delete field "prev_func_start".
7452 (load_infrun_state): Ditto.
7453 * thread.c (load_infrun_state, save_infrun_state): Update.
7454 * infrun.c (prev_func_start): Delete variable.
7455 (context_switch, init_wait_for_inferior): Update.
7456 (stop_stepping, keep_going): Update.
7457
7458 2003-04-12 Andrew Cagney <cagney@redhat.com>
7459
7460 * gdbarch.sh: Add missing opaque declarations.
7461 * gdbarch.h: Regnerate.
7462 * symtab.h: Add missing opaque declarations.
7463 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7464 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7465 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7466 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7467 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7468 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7469 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7470 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7471 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7472 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7473 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7474 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7475 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7476
7477 2003-04-11 Andrew Cagney <cagney@redhat.com>
7478
7479 * frame.c (get_frame_id): Return this frame's "id".
7480 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7481 function start.
7482 (legacy_saved_regs_this_id): Replace function body with
7483 internal-error.
7484 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7485 FRAME_OBSTACK_ZALLOC.
7486 (create_new_frame): Mark the frame ID as valid.
7487
7488 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7489
7490 * Makefile.in (libbfd_h): Added missing setting.
7491 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7492 according to the selected ABI.
7493
7494 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7495
7496 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7497
7498 2003-04-11 Andrew Cagney <cagney@redhat.com>
7499
7500 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7501 SAVED_PC_AFTER_CALL.
7502 * gdbarch.h, gdbarch.c: Regenerate.
7503 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7504 * x86-64-tdep.c (x86_64_init_abi): Update.
7505 * vax-tdep.c (vax_gdbarch_init): Update.
7506 * v850-tdep.c (v850_gdbarch_init): Update.
7507 * sparc-tdep.c (sparc_gdbarch_init): Update.
7508 * sh-tdep.c (sh_gdbarch_init): Update.
7509 * s390-tdep.c (s390_gdbarch_init): Update.
7510 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7511 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7512 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7513 * mips-tdep.c (mips_gdbarch_init): Update.
7514 * mcore-tdep.c (mcore_gdbarch_init): Update.
7515 * m68k-tdep.c (m68k_gdbarch_init): Update.
7516 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7517 * ia64-tdep.c (ia64_gdbarch_init): Update.
7518 (ia64_saved_pc_after_call): Update declaration.
7519 * i386ly-tdep.c (i386lynx_init_abi): Update.
7520 * i386-tdep.c (i386_gdbarch_init): Update.
7521 * hppa-tdep.c (hppa_gdbarch_init): Update.
7522 * h8300-tdep.c (h8300_gdbarch_init): Update.
7523 * frv-tdep.c (frv_gdbarch_init): Update.
7524 * cris-tdep.c (cris_gdbarch_init): Update.
7525 * avr-tdep.c (avr_gdbarch_init): Update.
7526 * arm-tdep.c (arm_gdbarch_init): Update.
7527 * alpha-tdep.c (alpha_gdbarch_init): Update.
7528 * ns32knbsd-nat.c (frame_num_args): Update.
7529 * ns32k-tdep.c (umax_frame_num_args): Update.
7530 * mips-tdep.c (mips_init_frame_pc_first): Update.
7531 * infrun.c (step_over_function): Update.
7532 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7533 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7534 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7535 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7536 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7537 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7538 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7539 * arch-utils.c (init_frame_pc_default): Update.
7540 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7541 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7542 declaration.
7543
7544 2003-04-11 Andrew Cagney <cagney@redhat.com>
7545
7546 * i387-tdep.c: Update copyright.
7547 (i387_to_double): Delete function.
7548 (double_to_i387): Delete function.
7549
7550 2003-04-10 Andrew Cagney <cagney@redhat.com>
7551
7552 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7553 frame's function's address. Simplify.
7554 (d10v_frame_unwind_cache): Check that the frame's function is
7555 non-zero.
7556
7557 2003-04-10 Jim Blandy <jimb@redhat.com>
7558
7559 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7560 call to set_gdbarch_deprecated_push_arguments.
7561
7562 2003-04-10 Andrew Cagney <cagney@redhat.com>
7563
7564 * frame.c (fprint_frame_id): New function.
7565 (fprint_frame_type, fprint_frame): New function.
7566 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7567 (create_sentinel_frame, get_frame_id): Ditto.
7568 (frame_id_p, frame_id_eq): Ditto.
7569 (frame_id_inner, create_new_frame): Ditto.
7570 (legacy_get_prev_frame, get_prev_frame): Ditto.
7571 (deprecated_update_frame_pc_hack): Ditto.
7572 (frame_register_unwind): Ditto.
7573 (deprecated_update_frame_base_hack): Ditto.
7574
7575 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7576
7577 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7578 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7579 frame_chain function.
7580 * Makefile.in: Add dependencies due to above change.
7581
7582 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7583
7584 * blockframe.c (legacy_frame_chain_valid): Move call to
7585 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7586 inside_entry_file.
7587
7588 2003-04-09 Andrew Cagney <cagney@redhat.com>
7589
7590 * frame.h (struct frame_id): Replace "pc" and "base" with
7591 "stack_addr" and "code_addr". Update comments.
7592 (frame_id_build): Update parameter names and comment.
7593 (struct frame_info): Replace "id_p" and "id" with "this_id".
7594 * dummy-frame.c (dummy_frame_this_id): Update.
7595 * breakpoint.c (print_one_breakpoint): Update.
7596 * frame.c (get_frame_id): Update.
7597 (get_frame_base, frame_id_build): Update.
7598 (create_sentinel_frame, legacy_get_prev_frame): Update.
7599 (deprecated_update_frame_base_hack): Update.
7600 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7601 (frame_id_inner): Ditto.
7602
7603 2003-04-09 Andrew Cagney <cagney@redhat.com>
7604
7605 * defs.h (gdb_print_host_address): Make "addr" parameter a
7606 pointer constant.
7607 * utils.c (gdb_print_host_address): Update.
7608
7609 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7610
7611 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7612 register number for R0 is 0.
7613
7614 2003-04-09 J. Brobecker <brobecker@gnat.com>
7615
7616 * frame.h (struct gdbarch): Add opaque structure definition
7617 to avoid a compilation warning on LynxOS 4.0.
7618
7619 2003-04-09 Andrew Cagney <cagney@redhat.com>
7620
7621 * frame.h (struct frame_info): Delete field "pc". Replace
7622 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7623 structure.
7624 * frame.c (frame_pc_unwind): Update.
7625 (create_sentinel_frame): Do not set "pc".
7626 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7627 (get_frame_pc): Call frame_pc_unwind.
7628 (deprecated_update_frame_pc_hack): Update.
7629 (create_new_frame): Use "pc" not "->pc".
7630
7631 2003-04-09 Andrew Cagney <cagney@redhat.com>
7632
7633 * frame.c (get_frame_id): Eliminate code updating "frame".
7634 (legacy_get_prev_frame): Ditto.
7635 (get_frame_base): Return id.base directly.
7636 (deprecated_update_frame_base_hack): Update "id.base".
7637 * frame.h (struct frame_info): Delete field "frame".
7638
7639 2003-04-09 Andrew Cagney <cagney@redhat.com>
7640
7641 * NEWS: Mention that the "Sequent family" is obsolete.
7642 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7643 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7644 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7645 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7646 * config/i386/tm-ptx4.h: Obsolete file.
7647 * config/i386/tm-ptx.h: Obsolete file.
7648 * symm-tdep.c: Obsolete file.
7649 * config/i386/symmetry.mt: Obsolete file.
7650 * config/i386/tm-symmetry.h: Obsolete file.
7651 * symm-nat.c: Obsolete file.
7652 * config/i386/nm-symmetry.h: Obsolete file.
7653 * config/i386/xm-symmetry.h: Obsolete file.
7654 * config/i386/symmetry.mh: Obsolete file.
7655 * config/i386/nm-ptx4.h: Obsolete file.
7656 * config/i386/ptx4.mh: Obsolete file.
7657 * config/i386/ptx.mt: Obsolete file.
7658 * config/i386/ptx.mh: Obsolete file.
7659 * config/i386/xm-ptx4.h: Obsolete file.
7660 * config/i386/xm-ptx.h: Obsolete file.
7661
7662 2003-04-09 Andrew Cagney <cagney@redhat.com>
7663
7664 Obsolete mips*-*-mach3*.
7665 * NEWS: Mention that mips*-*-mach3* is obsolete.
7666 * m3-nat.c: Obsolete file.
7667 * config/nm-m3.h: Obsolete file.
7668 * config/mips/tm-mipsm3.h: Obsolete file.
7669 * config/mips/mipsm3.mt: Obsolete file.
7670 * config/mips/mipsm3.mh: Obsolete file.
7671 * config/mips/xm-mipsm3.h: Obsolete file.
7672 * mipsm3-nat.c: Obsolete file.
7673 * configure.host: Obsolete mips-dec-mach3*.
7674 * configure.tgt: Obsolete mips*-*-mach3*.
7675
7676 2003-04-09 Andrew Cagney <cagney@redhat.com>
7677
7678 * doublest.h: Update copyright.
7679 (deprecated_store_floating, deprecated_extract_floating): Rename
7680 store_floating and extract_floating. Update comments.
7681 * doublest.c: Update copyright.
7682 (extract_floating_by_length): Replace extract_floating.
7683 (store_floating_by_length): Replace store_floating.
7684 (deprecated_extract_floating): New function.
7685 (deprecated_store_floating): New function.
7686 (extract_typed_floating): Call extract_floating_by_length.
7687 (store_typed_floating): Call store_floating_by_length.
7688 * x86-64-tdep.c (x86_64_store_return_value): Update.
7689 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7690 (sh64_extract_return_value): Update.
7691 (sh_sh4_register_convert_to_virtual): Update.
7692 (sh_sh64_register_convert_to_virtual): Update.
7693 (sh_sh4_register_convert_to_raw): Update.
7694 (sh_sh64_register_convert_to_raw): Update.
7695 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7696 (rs6000_register_convert_to_raw): Update.
7697 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7698 (ia64_register_convert_to_raw): Update.
7699 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7700 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7701 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7702 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7703 (alpha_register_convert_to_raw): Update.
7704
7705 2003-04-08 Andrew Cagney <cagney@redhat.com>
7706
7707 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7708 * gdbarch.h, gdbarch.c: Re-generate.
7709 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7710 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7711 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7712 conditionally, use frame_pc_unwind as an alternative. Add
7713 comments.
7714 * arch-utils.c (init_frame_pc_default): Only call
7715 SAVED_PC_AFTER_CALL when available.
7716
7717 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7718
7719 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7720 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7721 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7722 (start_remote): Ditto.
7723 (handle_inferior_event): Ditto.
7724 (save_inferior_status): Ditto.
7725 (restore_inferior_status): Ditto.
7726 * infcmd.c (attach_command): Ditto.
7727 * fork-child.c (startup_inferior): Ditto.
7728 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7729 * alpha-tdep.c (heuristic_proc_start): Ditto.
7730 * mips-tdep.c (heuristic_proc_start): Ditto.
7731 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7732 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7733 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7734 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7735 * remote-vx.c (vx_create_inferior): Ditto.
7736
7737 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7738
7739 * infrun.c (stop_soon_quietly): Make it an enum, to better
7740 override the default behavior of handle_inferior_event.
7741 (clear_proceed_status): Update uses of stop_soon_quietly to
7742 reflect that it is now an enum.
7743 (start_remote): Ditto.
7744 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7745 is set to handle the new GNU/Linux kernel behavior for
7746 attach/sigstop. Update uses of stop_soon_quietly.
7747 * inferior.h (enum stop_kind): New enum.
7748 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7749 Reset normal handle_inferior_event behavior, afterwards.
7750 * fork-child.c (startup_inferior): Update.
7751 * alpha-tdep.c (heuristic_proc_start): Update.
7752 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7753 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7754 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7755 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7756 * remote-vx.c (vx_create_inferior): Update.
7757 * mips-tdep.c (heuristic_proc_start): Update.
7758
7759 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7760
7761 * disasm.c (dump_insns): Move variables inside loop, or they will
7762 be freed more than once, causing wild memory corruptions.
7763 (gdb_disassembly): Look for the substring "-thread",
7764 instead of "-threads" in the target name, to make sure to find
7765 the 'multi-thread' target. Also, make sure we do the right thing
7766 with the "core" target.
7767
7768 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7769
7770 * mips-tdep.c (mips_print_fp_register): New function, created from
7771 do_fp_register_row(). Registers are now (also) printed as hex.
7772 Only one register is printed per row.
7773 (mips_print_register, do_fp_register_row): Print floating point
7774 registers with mips_print_fp_register().
7775
7776 2003-04-06 Andrew Cagney <cagney@redhat.com>
7777
7778 * valprint.h (inspect_it): Add extern declaration.
7779 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7780 (selectors_info, classes_info): Ditto.
7781 (find_objc_msgcall): Fix indentation.
7782 (objc_printstr): Delete extern declarations.
7783
7784 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7785
7786 2003-04-06 Andrew Cagney <cagney@redhat.com>
7787
7788 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7789 Update comment.
7790 * frame.c (legacy_saved_regs_this_id): Update.
7791 (legacy_get_prev_frame): Update.
7792 * xstormy16-tdep.c: Update comment.
7793 * sparc-tdep.c (sparc_frame_chain): Update comment.
7794 * blockframe.c (legacy_frame_chain_valid): Update.
7795
7796 2003-04-06 Andrew Cagney <cagney@redhat.com>
7797
7798 * valprint.c (val_print_type_code_int): Delete #ifdef
7799 PRINT_TYPELESS_INTEGER code.
7800
7801 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7802 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7803 multi-arch definition.
7804 * gdbarch.h: Re-generate.
7805
7806 2003-04-05 Andrew Cagney <cagney@redhat.com>
7807
7808 Eliminate FRAME_FIND_SAVED_REGS.
7809 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7810 Change FSR parameter to a pointer.
7811 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7812 Assume FSR parameter is a pointer.
7813 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7814 Make fsr a pointer.
7815 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7816 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7817 saved_regs a pointer.
7818 (hppa_frame_saved_pc): Ditto.
7819 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7820 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7821 pointer.
7822 (restore_pc_queue): Make fsr a pointer.
7823 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7824 (hppa_frame_chain): Make saved_regs a pointer, call
7825 hppa_frame_init_saved_regs.
7826 * sparc-tdep.c: Include "gdb_assert.h".
7827 (sparc_frame_find_saved_regs): Replace internal_error with
7828 gdb_assert.
7829 * remote-vxsparc.c (vx_read_register): Delete reference to
7830 FRAME_FIND_SAVED_REGS.
7831 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7832 * gdbarch.h: Regenerate.
7833 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7834 (deprecated_get_frame_saved_regs): Delete declaration.
7835 (struct frame_saved_regs): Delete definition.
7836 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7837 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7838 (hppa_frame_find_saved_regs): Delete declaration.
7839 (FRAME_FIND_SAVED_REGS): Delete macro.
7840 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7841 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7842 FRAME_FIND_SAVED_REGS in comment.
7843
7844 2003-04-05 Andrew Cagney <cagney@redhat.com>
7845
7846 * frame.c (frame_func_unwind, get_frame_func): New functions.
7847 * frame.h (get_frame_func, frame_func_unwind): Declare.
7848 (struct frame_info): Add field "prev_func" for caching the
7849 previous frame's function address.
7850 * arm-tdep.c (arm_frameless_function_invocation): Combine
7851 get_pc_function_start and get_frame_pc into get_frame_func.
7852 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7853 (sh64_nofp_frame_init_saved_regs): Ditto.
7854 * s390-tdep.c (s390_function_start): Ditto.
7855 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7856 (rs6000_frameless_function_invocation): Ditto.
7857 (rs6000_frame_saved_pc): Ditto.
7858 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7859 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7860 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7861 (i386_frame_init_saved_regs): Ditto.
7862 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7863 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7864 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7865 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7866 * blockframe.c (frameless_look_for_prologue): Ditto.
7867
7868 2003-04-05 Andrew Cagney <cagney@redhat.com>
7869
7870 * frame.c (legacy_get_prev_frame): Link prev to next at the
7871 function start. Update comments.
7872
7873 2003-04-05 Andrew Cagney <cagney@redhat.com>
7874
7875 * frame.c (get_frame_id): Update comment.
7876 (legacy_get_prev_frame): Update comment.
7877 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7878 * gdbarch.h: Regenerate.
7879 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7880 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7881
7882 2003-04-05 Andrew Cagney <cagney@redhat.com>
7883
7884 * stack.c (print_frame_info): Use get_frame_pc.
7885
7886 2003-04-04 Andrew Cagney <cagney@redhat.com>
7887
7888 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7889 the frame's type from the unwinder.
7890 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7891 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7892 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7893 (get_frame_base_address): Use get_frame_type.
7894 (get_frame_locals_address, get_frame_args_address): Ditto.
7895 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7896 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7897 (struct frame_info): Add comment explaining why the frame contains
7898 a "type" field.
7899 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7900 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7901 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7902 NORMAL_FRAME.
7903 * frame-unwind.h: Include "frame.h".
7904 (struct frame_unwind): Add "type" field.
7905 * Makefile.in (frame_unwind_h): Add $(frame_h).
7906
7907 2003-04-04 Andrew Cagney <cagney@redhat.com>
7908
7909 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7910 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7911 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7912 get_frame_base.
7913 (d10v_unwind_dummy_id): Use frame_id_build.
7914 * frame.c (find_frame_sal): Use get_frame_pc.
7915 (create_new_frame): Use deprecated_update_frame_pc_hack and
7916 deprecated_update_frame_base_hack.
7917 (create_sentinel_frame): Add comment about ->pc going away.
7918 (get_prev_frame): Add comment about ->pc going away.
7919 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7920 frame_id_build, deprecated_update_frame_pc_hack and
7921 deprecated_update_frame_base_hack.
7922 (select_frame): Use get_frame_pc.
7923 (legacy_saved_regs_this_id): Use frame_id_build.
7924
7925 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7926
7927 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7928 signed integer case.
7929 (classify_argument): Handle enumerations and references.
7930
7931 2003-04-04 Andrew Cagney <cagney@redhat.com>
7932
7933 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7934 ID to NULL.
7935
7936 2003-04-01 Adam Fedor <fedor@gnu.org>
7937
7938 * gdb/objc-lang.c (selectors_info): Replace calls to
7939 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7940 SYMBOL_NATURAL_NAME.
7941 (classes_info, find_methods): Likewise.
7942
7943 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7944
7945 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7946 ``mach'' to the value determined by bfd_default_set_arch_mach().
7947
7948 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7949
7950 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7951 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7952 (mi-cmd-file.o): Update dependencies.
7953
7954 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7955
7956 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7957 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7958
7959 2003-04-01 Adam Fedor <fedor@gnu.org>
7960
7961 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7962 * language.h (struct language_defn): Add la_demangle.
7963 (language_demangle): Declare.
7964 * language.c (language_demangle): New function.
7965 (unk_lang_demangle): Likewise.
7966 (unknown_language_defn, auto_language_defn, local_language_defn):
7967 Add ukn_lang_demangle.
7968 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7969 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7970 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7971 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7972 * jv-lang.c (java_demangle): New function
7973 (java_language_defn): Use it for la_demangle element.
7974 * objc-lang.c (objc_demangle): Add options argument
7975 (objc_language_defn): Use objc_demangle for la_demangle element.
7976 * maint.c (maintenance_demangle): Replace switch with
7977 call to language_demangle.
7978 * utils.c (fprintf_symbol_filtered): Likewise.
7979
7980 2003-04-01 Andrew Cagney <cagney@redhat.com>
7981
7982 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7983 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7984 PRINT_TYPELESS_INTEGER.
7985 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7986 PUSH_RETURN_ADDRESS.
7987
7988 2003-04-01 Andrew Cagney <cagney@redhat.com>
7989
7990 * Makefile.in (d10v-tdep.o): Update dependencies.
7991 * d10v-tdep.c: Include "frame-base.h".
7992 (d10v_frame_unwind): Make constant.
7993 (d10v_frame_base_address): New function.
7994 (d10v_frame_base): New variable.
7995 (d10v_gdbarch_init): Set frame_base default.
7996 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7997 comment for base.
7998 (d10v_frame_unwind_cache): Set and use "prev_sp".
7999 (d10v_frame_this_id): Use the previous frame's inner most stack
8000 address and this frame's func address for the frame ID. Use
8001 frame_id_build. Don't analyze beyond the current instruction.
8002
8003 2003-04-01 Andrew Cagney <cagney@redhat.com>
8004
8005 * frame.h (get_frame_locals_address, get_frame_args_address):
8006 Refer to the base address, instead of the address of the first
8007 local or parameter.
8008
8009 2003-04-01 Andrew Cagney <cagney@redhat.com>
8010
8011 Add frame debug info addresses:
8012 * frame-base.c: New file.
8013 * frame-base.h: New file.
8014 * frame.h (struct frame_base): Add opaque declaration.
8015 (get_frame_base): Update comment.
8016 (get_frame_base_address): Declare.
8017 (get_frame_locals_address): Declare.
8018 (get_frame_args_address): Declare.
8019 (struct frame_info): Add "base" and "base_cache". Update
8020 comments on the unwinder.
8021 * frame.c: Include "frame-base.h".
8022 (get_frame_locals_address): New function.
8023 (get_frame_base_address): New function.
8024 (get_frame_args_address): New function.
8025 * findvar.c (read_var_value): Use get_frame_locals_address and
8026 get_frame_args_address.
8027 * stack.c (frame_info): Use get_frame_locals_address and
8028 get_frame_args_address.
8029 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8030 moved to "frame-base.c".
8031 * printcmd.c (print_frame_nameless_args): Ditto.
8032 * symtab.h (address_class): Update comments.
8033 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8034 get_frame_base_address.
8035 * dwarf2expr.c (execute_stack_op): Ditto.
8036 * Makefile.in (frame_base_h): Define.
8037 (frame.o): Update dependencies.
8038 (frame-base.o): Add dependencies.
8039 (SFILES): Add frame-base.c.
8040 (COMMON_OBS): Add frame-base.o.
8041
8042 2003-04-01 Andrew Cagney <cagney@redhat.com>
8043
8044 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8045 CALL_DUMMY_LENGTH): Ditto.
8046 * gdbarch.c: Re-generate.
8047 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8048 (CALL_DUMMY_LENGTH): Delete macro.
8049 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8050 * arm-tdep.c (arm_gdbarch_init): Ditto.
8051 * avr-tdep.c (avr_gdbarch_init): Ditto.
8052 * cris-tdep.c (cris_gdbarch_init): Ditto.
8053 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8054 * frv-tdep.c (frv_gdbarch_init): Ditto.
8055 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8056 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8057 * i386-tdep.c (i386_gdbarch_init): Ditto.
8058 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8059 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8060 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8061 * mips-tdep.c (mips_gdbarch_init): Ditto.
8062 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8063 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8064 * s390-tdep.c (s390_gdbarch_init): Ditto.
8065 * sh-tdep.c (sh_gdbarch_init): Ditto.
8066 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8067 * v850-tdep.c (v850_gdbarch_init): Ditto.
8068 * vax-tdep.c (vax_gdbarch_init): Ditto.
8069 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8070
8071 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8072
8073 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8074
8075 2003-04-01 Andrew Cagney <cagney@redhat.com>
8076
8077 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8078 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8079 * gdbarch.h, gdbarch.c: Re-generate.
8080 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8081 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8082 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8083 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8084 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8085 * infcmd.c (run_stack_dummy): Simplify assuming
8086 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8087 * infrun.c (handle_inferior_event): Ditto.
8088 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8089 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8090 * arm-tdep.c (arm_gdbarch_init): Ditto.
8091 * avr-tdep.c (avr_gdbarch_init): Ditto.
8092 * cris-tdep.c (cris_gdbarch_init): Ditto.
8093 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8094 * frv-tdep.c (frv_gdbarch_init): Ditto.
8095 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8096 * i386-tdep.c (i386_gdbarch_init): Ditto.
8097 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8098 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8099 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8100 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8101 * mips-tdep.c (mips_gdbarch_init): Ditto.
8102 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8103 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8104 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8105 * s390-tdep.c (s390_gdbarch_init): Ditto.
8106 * sh-tdep.c (sh_gdbarch_init): Ditto.
8107 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8108 * v850-tdep.c (v850_gdbarch_init): Ditto.
8109 * vax-tdep.c (vax_gdbarch_init): Ditto.
8110 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8111
8112 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8113
8114 * symfile.c (symfile_relocate_debug_section): Update call to
8115 bfd_simple_get_relocated_section_contents.
8116
8117 2003-03-31 Andrew Cagney <cagney@redhat.com>
8118
8119 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8120 * gdbarch.h, gdbarch.c: Regenerate.
8121 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8122 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8123 available.
8124 * frame.h (generic_fix_call_dummy): Delete declaration.
8125 * dummy-frame.h: Update comment.
8126 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8127 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8128 fix_call_dummy.
8129 * sh-tdep.c (sh_gdbarch_init): Ditto.
8130 * s390-tdep.c (s390_gdbarch_init): Ditto.
8131 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8132 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8133 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8134 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8135 * i386-tdep.c (i386_gdbarch_init): Ditto.
8136 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8137 * frv-tdep.c (frv_gdbarch_init): Ditto.
8138 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8139 * cris-tdep.c (cris_gdbarch_init): Ditto.
8140 * avr-tdep.c (avr_gdbarch_init): Ditto.
8141 * arm-tdep.c (arm_gdbarch_init): Ditto.
8142
8143 2003-03-31 J. Brobecker <brobecker@gnat.com>
8144
8145 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8146 (INIT_FRAME_AP): Likewise.
8147 (EXTRA_FRAME_INFO): Likewise.
8148
8149 2003-03-31 Andrew Cagney <cagney@redhat.com>
8150
8151 * gdbarch.sh: Include "symfile.h".
8152 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8153 * gdbarch.h, gdbarch.c: Re-generate.
8154 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8155 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8156 call_dummy_address, the default is at entry_point_address.
8157 * v850-tdep.c (v850_gdbarch_init): Ditto.
8158 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8159 * sh-tdep.c (sh_gdbarch_init): Ditto.
8160 * s390-tdep.c (s390_gdbarch_init): Ditto.
8161 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8162 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8163 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8164 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8165 * i386-tdep.c (i386_gdbarch_init): Ditto.
8166 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8167 * frv-tdep.c (frv_gdbarch_init): Ditto.
8168 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8169 * cris-tdep.c (cris_gdbarch_init): Ditto.
8170 * arm-tdep.c (arm_gdbarch_init): Ditto.
8171
8172 2003-03-31 Andrew Cagney <cagney@redhat.com>
8173
8174 * gdbarch.sh (CALL_DUMMY_P): Delete.
8175 * gdbarch.h, gdbarch.c: Re-generate.
8176 * inferior.h (CALL_DUMMY_P): Delete macro.
8177 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8178 * vax-tdep.c (vax_gdbarch_init): Update.
8179 * v850-tdep.c (v850_gdbarch_init): Update.
8180 * sparc-tdep.c (sparc_gdbarch_init): Update.
8181 * sh-tdep.c (sh_gdbarch_init): Update.
8182 * s390-tdep.c (s390_gdbarch_init): Update.
8183 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8184 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8185 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8186 * mips-tdep.c (mips_gdbarch_init): Update.
8187 * mcore-tdep.c (mcore_gdbarch_init): Update.
8188 * m68k-tdep.c (m68k_gdbarch_init): Update.
8189 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8190 * ia64-tdep.c (ia64_gdbarch_init): Update.
8191 * i386-tdep.c (i386_gdbarch_init): Update.
8192 * h8300-tdep.c (h8300_gdbarch_init): Update.
8193 * frv-tdep.c (frv_gdbarch_init): Update.
8194 * d10v-tdep.c (d10v_gdbarch_init): Update.
8195 * cris-tdep.c (cris_gdbarch_init): Update.
8196 * breakpoint.c (deprecated_frame_in_dummy): Update.
8197 * avr-tdep.c (avr_gdbarch_init): Update.
8198 * alpha-tdep.c (alpha_gdbarch_init): Update.
8199 * arm-tdep.c (arm_gdbarch_init): Update.
8200 * dummy-frame.c (dummy_frame_this_id): Update comments.
8201 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8202 * frame.c (legacy_get_prev_frame): Ditto.
8203 * valops.c (call_function_by_hand): Delete function.
8204 (hand_function_call): Rename to call_function_by_hand
8205
8206 2003-03-30 Andrew Cagney <cagney@redhat.com>
8207
8208 2002-11-10 Klee Dienes <kdienes@apple.com>
8209 * value.h (struct value): Update comment.
8210
8211 2003-03-30 Andrew Cagney <cagney@redhat.com>
8212
8213 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8214 D10V_FP_REGNUM.
8215 (d10v_gdbarch_init): Do not set fp_regnum.
8216
8217 * frame.c (get_frame_base): Force ID initialization.
8218 (get_prev_frame): Move computation of the frame ID from here ...
8219 (get_frame_id): ... to here.
8220 (legacy_get_prev_frame): Mark the frame ID as valid.
8221 * frame.h (struct frame_info): Add field "id_p".
8222
8223 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8224
8225 * i386-tdep.c (i386_store_struct_return): Removed.
8226 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8227
8228 2003-03-30 Andrew Cagney <cagney@redhat.com>
8229
8230 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8231 * gdbarch.h, gdbarch.c: Regenerate.
8232 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8233 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8234 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8235 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8236 * i386-tdep.c (i386_gdbarch_init): Ditto.
8237 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8238 * cris-tdep.c (cris_gdbarch_init): Ditto.
8239 * vax-tdep.c (vax_gdbarch_init): Ditto.
8240 * s390-tdep.c (s390_gdbarch_init): Ditto.
8241 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8242 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8243 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8244 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8245 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8246 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8247 * sparc-tdep.c (sparc_gdbarch_init): Update.
8248 * sh-tdep.c (sh_gdbarch_init): Update.
8249 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8250 * mips-tdep.c (mips_gdbarch_init): Update.
8251 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8252 * ia64-tdep.c (ia64_gdbarch_init): Update.
8253 * frv-tdep.c (frv_gdbarch_init): Update.
8254 * avr-tdep.c (avr_gdbarch_init): Update.
8255 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8256 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8257 instead of when push_dummy_call is not available.
8258
8259 2003-03-30 Andrew Cagney <cagney@redhat.com>
8260
8261 * infttrace.c: Include "gdbthread.h".
8262 (parent_attach_all): Fix function signature.
8263 (call_ptrace): Update call.
8264 * Makefile.in (infttrace.o): Update dependencies.
8265
8266 2003-03-30 Andrew Cagney <cagney@redhat.com>
8267
8268 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8269 PUSH_RETURN_ADDRESS.
8270 * gdbarch.h, gdbarch.c: Regenerate.
8271 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8272 * x86-64-tdep.c (x86_64_init_abi): Update.
8273 * v850-tdep.c (v850_gdbarch_init): Update.
8274 * sparc-tdep.c (sparc_gdbarch_init): Update.
8275 * sh-tdep.c (sh_gdbarch_init): Update.
8276 * s390-tdep.c (s390_gdbarch_init): Update.
8277 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8278 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8279 * mips-tdep.c (mips_gdbarch_init): Update.
8280 * mcore-tdep.c (mcore_gdbarch_init): Update.
8281 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8282 * ia64-tdep.c (ia64_gdbarch_init): Update.
8283 * i386-tdep.c (i386_gdbarch_init): Update.
8284 * h8300-tdep.c (h8300_gdbarch_init): Update.
8285 * frv-tdep.c (frv_gdbarch_init): Update.
8286 * cris-tdep.c (cris_gdbarch_init): Update.
8287 * avr-tdep.c (avr_gdbarch_init): Update.
8288 * arm-tdep.c (arm_gdbarch_init): Update.
8289 * valops.c (hand_function_call): Update.
8290
8291 2003-03-29 Andrew Cagney <cagney@redhat.com>
8292
8293 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8294 sizeof_call_dummy_words.
8295 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8296 define.
8297 * gdbarch.h: Regenerate.
8298
8299 2003-03-29 Andrew Cagney <cagney@redhat.com>
8300
8301 * infttrace.h: New file.
8302 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8303 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8304 (hpread_read_doc_function_type): Detect an initialized type1.
8305 (hpread_quick_traverse): Initialize mod_name_string.
8306 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8307 (som_solib_get_solib_by_pc): Declare.
8308 (so_lib_thread_start_addr): Declare.
8309 (no_shared_libraries): Declare.
8310 * somread.c (init_import_symbols): Make static. Add forward
8311 declaration.
8312 * config/pa/nm-hppah.h: Include "infttrace.h" for
8313 parent_attach_all.
8314 (hppa_insert_hw_watchpoint): Declare.
8315 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8316 * hppah-nat.c: Include "gdb_string.h".
8317 (parent_attach_all): Delete extern declaration, moved to
8318 "infttrace.h".
8319 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8320 int.
8321 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8322 * Makefile.in (infttrace_h): Define.
8323 (hpread.o): Update dependencies.
8324 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8325 * hppa-hpux-tdep.c: Include "gdb_string.h".
8326 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8327 * infrun.c (handle_inferior_event): Always initialize
8328 stepped_after_stopped_by_watchpoint. Add default and remove
8329 fallthrough in switch statement.
8330 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8331 parameter to int.
8332 (hppa_remove_hw_watchpoint): Ditto.
8333
8334 2003-03-29 Andrew Cagney <cagney@redhat.com>
8335
8336 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8337 offset.
8338
8339 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8340
8341 * arm-tdep.c (arm_push_arguments): Delete.
8342 (struct stack_item): New type.
8343 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8344 (arm_store_struct_return): Delte.
8345 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8346 arm_push_arguments or arm_store_struct_return.
8347
8348 2003-03-28 Andrew Cagney <cagney@redhat.com>
8349
8350 * Makefile.in (d10v-tdep.o): Update dependencies.
8351 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8352 * d10v-tdep.c: Include "remote.h".
8353 (target_resume_hook): Delete extern declaration.
8354 (target_wait_loop_hook): Ditto.
8355 (tdisassemble_command): Eliminate assignment in "if" conditional.
8356 (d10v_ts2_register_sim_regno): Eliminate call to
8357 legacy_register_sim_regno.
8358 (d10v_ts3_register_sim_regno): Ditto.
8359
8360 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8361
8362 * thread.c: Reindented.
8363 * lin-lwp.c: Ditto.
8364 * linux-proc.c: Ditto.
8365
8366 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8367
8368 * MAINTAINERS (write after approval): Add myself.
8369
8370 2003-03-27 Theodore A. Roth <troth@openavr.org>
8371
8372 * objc-exp.y: Add missing semi-colons.
8373
8374 2003-03-27 Andrew Cagney <cagney@redhat.com>
8375
8376 * regcache.c (write_sp): Delete function and references.
8377 * inferior.h (write_sp): Delete declaration.
8378 * valops.c (hand_function_call): Replace write_sp with
8379 TARGET_WRITE_SP.
8380 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8381 (sparc_pop_frame): Ditto.
8382
8383 2003-03-27 Andrew Cagney <cagney@redhat.com>
8384
8385 * NEWS: Mention removal of support for hppa*-*-bsd* and
8386 hppa*-*-osf* natives, and hppa*-*-pro* target.
8387 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8388 * config/pa/xm-pa.h: Obsolete file.
8389 * config/pa/xm-hppab.h: Obsolete file.
8390 * config/pa/nm-hppab.h: Obsolete file.
8391 * config/pa/tm-hppab.h: Obsolete file.
8392 * config/pa/tm-hppao.h: Obsolete file.
8393 * config/pa/nm-hppao.h: Obsolete file.
8394 * config/pa/tm-pro.h: Obsolete file.
8395 * config/pa/hppaosf.mt: Obsolete file.
8396 * config/pa/hppaosf.mh: Obsolete file.
8397 * config/pa/hppapro.mt: Obsolete file.
8398 * config/pa/hppabsd.mt: Obsolete file.
8399 * config/pa/hppabsd.mh: Obsolete file.
8400 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8401 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8402 hppa*-*-osf*.
8403
8404 2003-03-27 Andrew Cagney <cagney@redhat.com>
8405
8406 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8407 push_arguments. Don't set push_return_address or write_sp.
8408 (d10v_push_dummy_call): Replace d10v_push_arguments.
8409 (d10v_push_return_address, d10v_write_sp): Delete function,
8410 handled by push_dummy_call.
8411
8412 2003-03-26 Andrew Cagney <cagney@redhat.com>
8413
8414 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8415 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8416 regcache and dummy_addr parameters.
8417 * gdbarch.h, gdbarch.c: Re-generate.
8418 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8419 available; assume it will handle stack alignment and return
8420 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8421 legacy_push_arguments.
8422 (legacy_push_arguments): Rename default_push_arguments.
8423 * value.h (legacy_push_arguments): Rename default_push_arguments.
8424 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8425 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8426 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8427 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8428 * config/i386/tm-symmetry.h: Update.
8429 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8430 * x86-64-tdep.c (x86_64_init_abi): Update.
8431 * v850-tdep.c (v850_gdbarch_init): Update.
8432 * sparc-tdep.c (sparc_gdbarch_init): Update.
8433 * sh-tdep.c (sh_gdbarch_init): Update.
8434 * s390-tdep.c (s390_gdbarch_init): Update.
8435 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8436 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8437 * mips-tdep.c (mips_gdbarch_init): Update.
8438 * mcore-tdep.c (mcore_gdbarch_init): Update.
8439 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8440 * ia64-tdep.c (ia64_gdbarch_init): Update.
8441 * i386-tdep.c (i386_gdbarch_init): Update.
8442 * hppa-tdep.c (hppa_gdbarch_init): Update.
8443 * h8300-tdep.c (h8300_gdbarch_init): Update.
8444 * frv-tdep.c (frv_gdbarch_init): Update.
8445 * d10v-tdep.c (d10v_gdbarch_init): Update.
8446 * cris-tdep.c (cris_gdbarch_init): Update.
8447 * avr-tdep.c (avr_gdbarch_init): Update.
8448 * arm-tdep.c (arm_gdbarch_init): Update.
8449 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8450 * alpha-tdep.c (alpha_gdbarch_init): Update.
8451
8452 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8453
8454 * signals/signals.c (do_target_signal_to_host): Correct realtime
8455 signal range test.
8456
8457 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8458
8459 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8460 (struct sal_chain, map_catch_names): Remove.
8461 (catch_exception_command_1): Don't call
8462 handle_gnu_4_16_catch_command.
8463
8464 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8465
8466 From Mark Dettinger <dettinge@de.ibm.com>:
8467 * dwarf2cfi.c (read_2u): Increment pointer by two.
8468
8469 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8470
8471 * signals/signals.c: Fix typos in last change.
8472
8473 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8474
8475 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8476 not already defined. Use __SIGRTMIN if available.
8477 (target_signal_from_host): Remove SIGRTMIN block.
8478 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8479 the signal is within the realtime range.
8480
8481 2003-03-25 Adam Fedor <fedor@gnu.org>
8482
8483 * Makefile.in (infrun.o): Add $(language_h)
8484 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8485 for language specific trampolines.
8486 * language.h (struct language_defn): Add skip_trampoline.
8487 (skip_language_trampoline): Declare.
8488 * language.c (unk_lang_trampoline, skip_language_trampoline):
8489 New functions.
8490 (unknown_language_defn, auto_language_defn, local_language_defn):
8491 Add ukn_lang_trampoline.
8492 * ada-lang.c (ada_language_defn): Add NULL for language
8493 specific skip_trampoline.
8494 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8495 scm-lang.c: Likewise.
8496 * objc-lang.c (objc_skip_trampoline): New function.
8497 (objc_language_defn): Add objc_skip_trampoline.
8498
8499 2003-03-25 Andrew Cagney <cagney@redhat.com>
8500
8501 * frame.c (get_prev_frame): Delay validating a frame's ID -
8502 non-NULL, didn't go backwards - until an attempt to unwind it to
8503 the previous frame.
8504
8505 2003-03-25 Andrew Cagney <cagney@redhat.com>
8506
8507 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8508 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8509 * gdbarch.h, gdbarch.c: Re-generate.
8510 * config/sparc/tm-sparc.h
8511 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8512 * sparc-tdep.c (sparc_gdbarch_init): Set
8513 deprecated_extra_stack_alignment_needed.
8514 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8515 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8516 extra_stack_alignment_needed.
8517 * v850-tdep.c (v850_gdbarch_init): Ditto.
8518 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8519 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8520 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8521 * cris-tdep.c (cris_gdbarch_init): Ditto.
8522 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8523 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8524
8525 2003-03-25 Andrew Cagney <cagney@redhat.com>
8526
8527 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8528 STORE_STRUCT_RETURN.
8529 * gdbarch.h, gdbarch.c: Regenerate.
8530 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8531 (d10v_push_arguments): Set the struct return register.
8532 (d10v_gdbarch_init): Update.
8533 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8534 * x86-64-tdep.c (x86_64_init_abi): Update.
8535 * vax-tdep.c (vax_gdbarch_init): Update.
8536 * v850-tdep.c (v850_gdbarch_init): Update.
8537 * sparc-tdep.c (sparc_gdbarch_init): Update.
8538 * sh-tdep.c (sh_gdbarch_init): Update.
8539 * s390-tdep.c (s390_gdbarch_init): Update.
8540 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8541 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8542 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8543 * mips-tdep.c (mips_gdbarch_init): Update.
8544 * mcore-tdep.c (mcore_gdbarch_init): Update.
8545 * m68k-tdep.c (m68k_gdbarch_init): Update.
8546 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8547 * ia64-tdep.c (ia64_gdbarch_init): Update.
8548 * i386-tdep.c (i386_gdbarch_init): Update.
8549 * hppa-tdep.c (hppa_gdbarch_init): Update.
8550 * h8300-tdep.c (h8300_gdbarch_init): Update.
8551 * frv-tdep.c (frv_gdbarch_init): Update.
8552 * cris-tdep.c (cris_gdbarch_init): Update.
8553 * avr-tdep.c (avr_gdbarch_init): Update.
8554 * arm-tdep.c (arm_gdbarch_init): Update.
8555 * alpha-tdep.c (alpha_gdbarch_init): Update.
8556
8557 2003-03-25 Andrew Cagney <cagney@redhat.com>
8558
8559 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8560 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8561 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8562 * gdbarch.h, gdbarch.c: Regenerate.
8563 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8564 call_dummy_stack_adjust_p.
8565 * vax-tdep.c (vax_gdbarch_init): Ditto.
8566 * v850-tdep.c (v850_gdbarch_init): Ditto.
8567 * sh-tdep.c (sh_gdbarch_init): Ditto.
8568 * s390-tdep.c (s390_gdbarch_init): Ditto.
8569 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8570 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8571 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8572 * mips-tdep.c (mips_gdbarch_init): Ditto.
8573 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8574 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8575 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8576 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8577 * i386-tdep.c (i386_gdbarch_init): Ditto.
8578 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8579 * frv-tdep.c (frv_gdbarch_init): Ditto.
8580 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8581 * cris-tdep.c (cris_gdbarch_init): Ditto.
8582 * avr-tdep.c (avr_gdbarch_init): Ditto.
8583 * arm-tdep.c (arm_gdbarch_init): Ditto.
8584 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8585 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8586 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8587 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8588 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8589 call_dummy_stack_adjust_p.
8590 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8591 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8592 * sparc-tdep.c (sparc32_push_arguments): Update.
8593 * valops.c (hand_function_call): Update.
8594
8595 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8596
8597 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8598 set_gdbarch_char_signed.
8599
8600 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8601
8602 PR cli/548
8603 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8604
8605 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8606
8607 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8608 (_initialize_arm_tdep): Don't set tm_print_insn.
8609
8610 2003-03-24 Adam Fedor <fedor@gnu.org>
8611
8612 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8613 * objc-lang.h: Add multiple inclusion protection.
8614 (start_msglist, add_msglist, end_msglist): Additional declarations.
8615
8616 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8617
8618 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8619 value was renamed to ARM_FLOAT_SOFT_FPA.
8620
8621 2003-03-23 Andrew Cagney <cagney@redhat.com>
8622
8623 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8624 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8625 * gdbarch.h, gdbarch.c: Regenerate.
8626 * valops.c (hand_function_call): Update.
8627 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8628 * frame.c (legacy_saved_regs_this_id): Update.
8629 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8630 * dummy-frame.h: Update.
8631 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8632 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8633 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8634 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8635 * config/m68k/tm-sun3.h: Update.
8636 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8637 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8638 * x86-64-tdep.c (x86_64_init_abi): Update.
8639 * vax-tdep.c (vax_gdbarch_init): Update.
8640 * v850-tdep.c (v850_gdbarch_init): Update.
8641 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8642 * sh-tdep.c (sh_gdbarch_init): Update.
8643 * s390-tdep.c (s390_gdbarch_init): Update.
8644 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8645 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8646 (frame_get_saved_regs): Update.
8647 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8648 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8649 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8650 * mips-tdep.c (mips_gdbarch_init): Update.
8651 * mcore-tdep.c (mcore_gdbarch_init): Update.
8652 * m68k-tdep.c (m68k_gdbarch_init): Update.
8653 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8654 * ia64-tdep.c (ia64_gdbarch_init): Update.
8655 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8656 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8657 (i386_interix_back_one_frame): Update.
8658 * hppa-tdep.c (hppa_gdbarch_init): Update.
8659 (hppa_init_extra_frame_info): Update.
8660 * h8300-tdep.c (h8300_gdbarch_init): Update.
8661 * frv-tdep.c (frv_gdbarch_init): Update.
8662 * cris-tdep.c (cris_gdbarch_init): Update.
8663 * avr-tdep.c (avr_gdbarch_init): Update.
8664 * arm-tdep.c (arm_gdbarch_init): Update.
8665 * alpha-tdep.c (alpha_gdbarch_init): Update.
8666
8667 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8668
8669 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8670 (arm_get_fp_model): Declare.
8671 * arm-tdep.c (fp_model_strings): New string array.
8672 (arm_fp_model, current_fp_model): New variables.
8673 (arm_get_fp_model): New function.
8674 (arm_set_fp): New function.
8675 (set_fp_model_sfunc): New function.
8676 (show_fp_model): New function.
8677 (_initialize_arm_tdep): Add new command to set/show the FPU.
8678 (arm_extract_return_value): Use arm_get_fp_model.
8679 (arm_store_return_value): Likewise.
8680 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8681 to initialize the floating-point data types.
8682 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8683 model is FPA.
8684
8685 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8686
8687 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8688 the current setting of each value.
8689 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8690 new_set and new_show. Use add_setshow_cmd_full and
8691 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8692 commands and add new version as subcommands of "set/show arm".
8693
8694 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8695
8696 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8697 (set_arm_command, show_arm_command): New functions.
8698 (_initialize_arm_tdep): Add them.
8699 (num_disassembly_options): Renamed from num_flavor_options.
8700 (valid_disassembly_styles): Renamed from valid_flavors.
8701 (disassembly_style): Renamed from disassembly_flavor.
8702 (set_disassembly_style_sfunc): Renamed from
8703 set_disassembly_flavor_sfunc.
8704 (set_disassembly_style): Renamed from set_disassembly_flavor.
8705 (arm_othernames): Updated.
8706 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8707 command. Add "set/show arm disassembly" commands. Deprecate
8708 "othernames" command.
8709
8710 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8711
8712 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8713 (arm-tdep.o): Depend on elf_arm_h.
8714
8715 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8716
8717 * Makefile.in (coff_internal_h): Define.
8718 (arm-tdep.o): Update dependencies.
8719
8720 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8721
8722 * arm-tdep.c (prologue_cache): Delete.
8723 (check_prologue_cache, save_prologue_cache): Delete.
8724 (arm_scan_prologue): Don't check or update the prologue_cache.
8725 (arm_gdb_arch_init): Don't initialize it.
8726 (_initialize_arm_tdep): Likewise.
8727
8728 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8729
8730 * MAINTAINERS (tui): Maintainer of tui code.
8731
8732 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8733
8734 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8735 (i386-cygwin-tdep.o): Add dependencies.
8736 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8737 * i386-cygwin-tdep.c: New file.
8738 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8739 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8740
8741 2003-03-20 Andrew Cagney <cagney@redhat.com>
8742
8743 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8744 (handle_inferior_event): Remove code calling
8745 DYNAMIC_TRAMPOLINE_NEXTPC.
8746
8747 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8748 already has a full path.
8749
8750 * main.c (gdb_main): Return 1.
8751 (captured_main): Call error to report an invalid interpreter.
8752
8753 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8754 * alpha-osf1-tdep.c: Include "gdb_string.h".
8755
8756 2003-03-19 J. Brobecker <brobecker@gnat.com>
8757
8758 Continuing work to convert the hppa targets to multiarch partial.
8759
8760 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8761 method, now that hppa_push_dummy_frame has a conformant prototype.
8762 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8763 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8764 for the switch to multiarch partial.
8765
8766 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8767
8768 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8769 when iss is issNull.
8770
8771 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8772
8773 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8774 NUM_REGS bounds check.
8775
8776 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8777
8778 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8779 * mips-tdep.c (gdb_assert.h): Include.
8780 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8781 (mips_register_name): Handle integer registers explicitly. Add
8782 bounds checking.
8783 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8784 (mips_lsi33k_reg_names): Don't list integer registers; they're
8785 handled by mips_register_name() now.
8786 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8787 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8788 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8789 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8790 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8791
8792 2003-03-18 Andrew Cagney <cagney@redhat.com>
8793
8794 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8795 a void pointer.
8796 * gdbtypes.h (print_scalar_formatted): Update declaration.
8797 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8798
8799 2003-03-18 J. Brobecker <brobecker@gnat.com>
8800
8801 * infrun.c (observer.h): Add #include.
8802 (normal_stop): Add call to observer_notify_normal_stop.
8803 * Makefile.in (infrun.o): Add dependency on observer.h.
8804
8805 2003-03-18 J. Brobecker <brobecker@gnat.com>
8806
8807 Continuing work to convert the hppa targets to multiarch partial.
8808 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8809 parameter. Reformat comment.
8810 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8811 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8812 to match new profile.
8813
8814 2003-03-18 J. Brobecker <brobecker@gnat.com>
8815
8816 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8817 appear to be working in any case.
8818
8819 2003-03-18 J. Brobecker <brobecker@gnat.com>
8820
8821 * observer.c (observer_test_first_observer): New static variable.
8822 (observer_test_second_observer): Likewise.
8823 (observer_test_third_observer): Likewise.
8824 (observer_test_first_notification_function): New static function.
8825 (observer_test_second_notification_function): Likewise.
8826 (observer_test_third_notification_function): Likewise.
8827
8828 2003-03-17 J. Brobecker <brobecker@gnat.com>
8829
8830 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8831 * somsolib.c (gdb_assert.h): Likewise.
8832 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8833 (somsolib.o): Likewise.
8834
8835 2003-03-17 Andrew Cagney <cagney@redhat.com>
8836
8837 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8838 BFD. Simplify setting of di.endian.
8839
8840 2003-03-17 Andrew Cagney <cagney@redhat.com>
8841
8842 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8843 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8844
8845 From Elena Zannoni <ezannoni@redhat.com>
8846 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8847 vector and floating-point parameters.
8848 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8849 convention.
8850 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8851
8852 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8853
8854 * MAINTAINERS: Remove my name from several maintainership roles.
8855
8856 2003-03-17 Andrew Cagney <cagney@redhat.com>
8857
8858 Fix frame off-by-one bug.
8859 * frame-unwind.h (frame_this_id_ftype): Replace
8860 frame_unwind_id_ftype.
8861 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8862 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8863 with "prev_register".
8864 * frame-unwind.c (frame_unwind_find_by_pc): Return
8865 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8866 comment.
8867 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8868 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8869 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8870 (dummy_frame_unwind): Update.
8871 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8872 sentinel_frame_register_unwind.
8873 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8874 (sentinel_frame_unwinder): Update.
8875 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8876 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8877 * frame.c (create_sentinel_frame): Update. Initialize
8878 "prologue_cache" instead of "unwind_cache".
8879 (frame_register_unwind): Call this frame's prev_register with the
8880 next frame and this frame's prologue cache.
8881 (get_prev_frame): Simplify. Always call prev frame's this_id with
8882 this frame and prev frame's prologue cache. Document that this
8883 call is shifted one to the left when compared to the
8884 frame_register_unwind call.
8885 (legacy_saved_regs_prev_register): Replace
8886 frame_saved_regs_register_unwind.
8887 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8888 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8889 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8890 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8891 (d10v_frame_unwind): Update.
8892 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8893 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8894 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8895 "saved_regs" with "this_saved_regs".
8896
8897 2003-03-16 Andrew Cagney <cagney@redhat.com>
8898
8899 * frame.c (frame_pop): Don't call target_store_registers. Fix
8900 problem reported by Mark Kettenis.
8901
8902 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8903
8904 * i386-tdep.c (i386_register_type): Renamed from
8905 i386_register_virtual_type. Adjust function signature.
8906 (i386_gdbarch_init): Set register_type instead of
8907 deprecated_max_register_raw_size,
8908 deprecated_max_register_virtual_size and register_virtual_type.
8909
8910 2003-03-14 Andrew Cagney <cagney@redhat.com>
8911
8912 * frame.c (get_prev_frame): When a legacy frame, always call
8913 legacy_get_prev_frame. Simplify unwind code using assumption that
8914 the unwinder is new.
8915 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8916 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8917 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8918
8919 2003-03-14 Andrew Cagney <cagney@redhat.com>
8920
8921 * frame.c (get_saved_register): Delete function.
8922 * frame.h (get_saved_register): Delete declaration.
8923 * xstormy16-tdep.c: Update comment.
8924 * regcache.h: Update comments.
8925 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8926 get_saved_register and extract_address, use
8927 frame_read_unsigned_register.
8928 (sparc_frame_saved_pc): Ditto.
8929 (sparc_get_saved_register): Instead of get_saved_register, use
8930 frame_register.
8931 (sparc_pop_frame): Ditto.
8932 * findvar.c: Update comments.
8933 (value_of_register): Call frame_register instead of
8934 get_saved_register.
8935 (value_from_register): Ditto.
8936 * config/sparc/tm-sparc.h: Update comment.
8937 * breakpoint.c: Update comment.
8938
8939 2003-03-14 Andrew Cagney <cagney@redhat.com>
8940
8941 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8942 GET_SAVED_REGISTER.
8943 * gdbarch.h, gdbarch.c: Re-generate.
8944 * frame.h: Update comments.
8945 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8946 * x86-64-tdep.c (x86_64_init_abi): Update.
8947 * sparc-tdep.c (sparc_gdbarch_init): Update.
8948 * sh-tdep.c (sh_gdbarch_init): Update.
8949 * mips-tdep.c (mips_gdbarch_init): Update.
8950 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8951 * cris-tdep.c (cris_gdbarch_init): Update.
8952 * ia64-tdep.c (ia64_gdbarch_init): Update.
8953 * frame.c (frame_register): Update.
8954 (get_saved_register): Update.
8955 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8956
8957 2003-03-13 Andrew Cagney <cagney@redhat.com>
8958
8959 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8960 * gdbarch.h, gdbarch.c: Regenerate.
8961 * valops.c (hand_function_call): Update comment.
8962 * stack.c (return_command): Update comment.
8963 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8964 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8965 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8966 * x86-64-tdep.c (x86_64_init_abi): Update.
8967 * vax-tdep.c (vax_gdbarch_init): Update.
8968 * v850-tdep.c (v850_gdbarch_init): Update.
8969 * sparc-tdep.c (sparc_gdbarch_init): Update.
8970 * sh-tdep.c (sh_gdbarch_init): Update.
8971 * s390-tdep.c (s390_gdbarch_init): Update.
8972 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8973 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8974 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8975 * mips-tdep.c (mips_gdbarch_init): Update.
8976 * mcore-tdep.c (mcore_gdbarch_init): Update.
8977 * m68k-tdep.c (m68k_gdbarch_init): Update.
8978 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8979 * ia64-tdep.c (ia64_gdbarch_init): Update.
8980 * i386-tdep.c (i386_gdbarch_init): Update.
8981 * hppa-tdep.c (hppa_gdbarch_init): Update.
8982 * h8300-tdep.c (h8300_gdbarch_init): Update.
8983 * frv-tdep.c (frv_gdbarch_init): Update.
8984 * cris-tdep.c (cris_gdbarch_init): Update.
8985 * avr-tdep.c (avr_gdbarch_init): Update.
8986 * arm-tdep.c (arm_gdbarch_init): Update.
8987 * alpha-tdep.c (alpha_gdbarch_init): Update.
8988
8989 2003-03-13 Andrew Cagney <cagney@redhat.com>
8990
8991 * frame.c (legacy_frame_p): New function.
8992 (get_prev_frame): Use legacy_frame_p.
8993 * frame.h (legacy_frame_p): Declare.
8994
8995 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8996
8997 * MAINTAINERS (write after approval): Alphabetically
8998 listing corrected.
8999
9000 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9001
9002 * MAINTAINERS (write after approval): Add myself.
9003
9004 2003-03-12 Andrew Cagney <cagney@redhat.com>
9005
9006 * frame.c (get_prev_frame): Rename the frame parameter to
9007 "this_frame".
9008 (get_next_frame, legacy_get_prev_frame): Ditto.
9009
9010 2003-03-12 Andrew Cagney <cagney@redhat.com>
9011
9012 * frame.c (get_current_frame): Check target_has_registers before
9013 checking target_has_stack.
9014 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9015 instead of deprecated_selected_frame.
9016 * findvar.c (value_of_register): Pass "frame", not
9017 deprecated_selected_frame, to value_of_builtin_reg.
9018
9019 2003-03-12 Andrew Cagney <cagney@redhat.com>
9020
9021 * regcache.c (regcache_cooked_write_signed): New function.
9022 (regcache_cooked_write_unsigned): New function.
9023 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9024 (regcache_cooked_read_signed): Fix regnum in range assertion.
9025 * regcache.h (regcache_cooked_write_signed): Declare.
9026 (regcache_cooked_write_unsigned): Declare.
9027
9028 2003-03-12 Andrew Cagney <cagney@redhat.com>
9029
9030 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9031 * gdbarch.h, gdbarch.c: Re-generate.
9032 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9033 * x86-64-tdep.h: Update.
9034 * x86-64-tdep.c (x86_64_init_abi): Update.
9035 * v850-tdep.c (v850_gdbarch_init): Update.
9036 * sparc-tdep.c (sparc_gdbarch_init): Update.
9037 * sh-tdep.c (sh_gdbarch_init): Update.
9038 * s390-tdep.c (s390_gdbarch_init): Update.
9039 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9040 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9041 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9042 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9043 * mips-tdep.c (mips_gdbarch_init): Update.
9044 * mcore-tdep.c (mcore_gdbarch_init): Update.
9045 * m68k-tdep.c (m68k_gdbarch_init): Update.
9046 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9047 * ia64-tdep.c (ia64_gdbarch_init): Update.
9048 * i386-tdep.c (i386_gdbarch_init): Update.
9049 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9050 * hppa-tdep.c (hppa_gdbarch_init): Update.
9051 * h8300-tdep.c (h8300_gdbarch_init): Update.
9052 * frv-tdep.c (frv_gdbarch_init): Update.
9053 * cris-tdep.c (cris_gdbarch_init): Update.
9054 * avr-tdep.c (avr_gdbarch_init): Update.
9055 * arm-tdep.c (arm_gdbarch_init): Update.
9056 * alpha-tdep.c (alpha_gdbarch_init): Update.
9057 * sh-tdep.c (sh_init_extra_frame_info): Update.
9058 (sh64_init_extra_frame_info): Update.
9059 * ns32knbsd-nat.c (frame_num_args): Update.
9060 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9061 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9062 (xstormy16_frame_chain_valid): Update.
9063 * vax-tdep.c (vax_saved_pc_after_call): Update.
9064 * v850-tdep.c (v850_frame_chain): Update.
9065 (v850_pop_frame): Update.
9066 (v850_init_extra_frame_info): Update.
9067 * sparc-tdep.c (setup_arbitrary_frame): Update.
9068 * ns32k-tdep.c (umax_frame_num_args): Update.
9069 * s390-tdep.c (s390_pop_frame_regular): Update.
9070 * mn10300-tdep.c (mn10300_frame_chain): Update.
9071 (mn10300_pop_frame_regular): Update.
9072 (mn10300_init_extra_frame_info): Update.
9073 * mips-tdep.c (mips_init_frame_pc_first): Update.
9074 (mips_frame_chain): Update.
9075 (mips_pop_frame): Update.
9076 * mcore-tdep.c (mcore_frame_chain): Update.
9077 (mcore_pop_frame): Update.
9078 (mcore_init_extra_frame_info): Update.
9079 * arch-utils.c (init_frame_pc_default): Update.
9080 * m68k-tdep.c (isi_frame_num_args): Update.
9081 (delta68_frame_num_args): Update.
9082 (news_frame_num_args): Update.
9083 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9084 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9085 (alpha_frame_chain): Update.
9086 (alpha_pop_frame): Update.
9087 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9088 (hppa_init_extra_frame_info): Update.
9089 (hppa_frame_chain): Update.
9090 (hppa_frame_chain_valid): Update.
9091 * cris-tdep.c (cris_init_extra_frame_info): Update.
9092 * avr-tdep.c (avr_init_extra_frame_info): Update.
9093 * arm-tdep.c (arm_frame_chain_valid): Update.
9094 (arm_init_extra_frame_info): Update.
9095 (arm_pop_frame): Update.
9096 * frame.c (frame_pc_unwind): Update.
9097 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9098 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9099 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9100 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9101 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9102 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9103
9104 2003-03-12 Andrew Cagney <cagney@redhat.com>
9105
9106 Eliminate the need for POP_FRAME.
9107 * frame.c (do_frame_unwind_register): New function.
9108 (frame_pop): When no POP_FRAME, pop the frame using register
9109 unwind and a scratch regcache.
9110 (frame_saved_regs_pop): Delete function.
9111 (trad_frame_unwinder): Update.
9112 * d10v-tdep.c (d10v_frame_pop): Delete function.
9113 (d10v_frame_unwind): Update.
9114 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9115 (sentinel_frame_unwinder): Update.
9116 * dummy-frame.c (dummy_frame_pop): Delete function.
9117 (dummy_frame_unwind): Update.
9118 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9119 (struct frame_unwind): Update.
9120
9121 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9122
9123 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9124 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9125 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9126 Do range checks on register number obtained from debugging info.
9127 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9128 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9129 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9130 mapping function.
9131 (do_fp_register_row): Fix typo which caused double type to be
9132 used when attempting to unpack a float.
9133
9134 2003-03-11 J. Brobecker <brobecker@gnat.com>
9135
9136 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9137
9138 2003-03-11 Andrew Cagney <cagney@redhat.com>
9139
9140 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9141 frame. Problem found by Corinna Vinschen.
9142
9143 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9144
9145 * doublest.c (floatformat_from_length): Accept also
9146 the real size of 'long double' type.
9147
9148 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9149
9150 From Klee Dienes <kdienes@apple.com>:
9151 * breakpoint.c (bpstat_copy): Copy the command lines as well
9152 as the old value, to match what is freed in bpstat_clear.
9153
9154 2003-03-10 David Carlton <carlton@math.stanford.edu>
9155
9156 * minsyms.c (add_minsym_to_hash_table): Replace
9157 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9158 (compare_minimal_symbols, compact_minimal_symbols)
9159 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9160 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9161 of DEPRECATED_SYMBOL_MATCHES_NAME.
9162 (lookup_minimal_symbol_solib_trampoline): Ditto.
9163
9164 2003-03-10 Andrew Cagney <cagney@redhat.com>
9165
9166 * regcache.h (regcache_cooked_read_ftype): Define.
9167 (regcache_save, regcache_restore): Add a cooked_read parameter.
9168 * regcache.c (regcache_save, regcache_restore): Update.
9169 (do_cooked_read): New function.
9170 (regcache_cpy): Pass do_cooked_read to regcache_save and
9171 regcache_restore.
9172
9173 2003-03-10 Andrew Cagney <cagney@redhat.com>
9174
9175 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9176 * gdbarch.h, gdbarch.c: Re-generate.
9177 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9178 * x86-64-tdep.h: Update.
9179 * x86-64-tdep.c (x86_64_init_abi): Update.
9180 * v850-tdep.c (v850_gdbarch_init): Update.
9181 * sparc-tdep.c (sparc_gdbarch_init): Update.
9182 * sh-tdep.c (sh_gdbarch_init): Update.
9183 * s390-tdep.c (s390_gdbarch_init): Update.
9184 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9185 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9186 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9187 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9188 * mips-tdep.c (mips_gdbarch_init): Update.
9189 * mcore-tdep.c (mcore_gdbarch_init): Update.
9190 * m68k-tdep.c (m68k_gdbarch_init): Update.
9191 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9192 * ia64-tdep.c (ia64_gdbarch_init): Update.
9193 * i386-tdep.c (i386_gdbarch_init): Update.
9194 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9195 * hppa-tdep.c (hppa_gdbarch_init): Update.
9196 * h8300-tdep.c (h8300_gdbarch_init): Update.
9197 * frv-tdep.c (frv_gdbarch_init): Update.
9198 * cris-tdep.c (cris_gdbarch_init): Update.
9199 * avr-tdep.c (avr_gdbarch_init): Update.
9200 * arm-tdep.c (arm_gdbarch_init): Update.
9201 * alpha-tdep.c (alpha_gdbarch_init): Update.
9202 * sh-tdep.c (sh_init_extra_frame_info): Update.
9203 (sh64_init_extra_frame_info): Update.
9204 * ns32knbsd-nat.c (frame_num_args): Update.
9205 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9206 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9207 (xstormy16_frame_chain_valid): Update.
9208 * vax-tdep.c (vax_saved_pc_after_call): Update.
9209 * v850-tdep.c (v850_frame_chain): Update.
9210 (v850_pop_frame): Update.
9211 (v850_init_extra_frame_info): Update.
9212 * sparc-tdep.c (setup_arbitrary_frame): Update.
9213 * ns32k-tdep.c (umax_frame_num_args): Update.
9214 * s390-tdep.c (s390_pop_frame_regular): Update.
9215 * mn10300-tdep.c (mn10300_frame_chain): Update.
9216 (mn10300_pop_frame_regular): Update.
9217 (mn10300_init_extra_frame_info): Update.
9218 * mips-tdep.c (mips_init_frame_pc_first): Update.
9219 (mips_frame_chain): Update.
9220 (mips_pop_frame): Update.
9221 * mcore-tdep.c (mcore_frame_chain): Update.
9222 (mcore_pop_frame): Update.
9223 (mcore_init_extra_frame_info): Update.
9224 * arch-utils.c (init_frame_pc_default): Update.
9225 * m68k-tdep.c (isi_frame_num_args): Update.
9226 (delta68_frame_num_args): Update.
9227 (news_frame_num_args): Update.
9228 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9229 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9230 (alpha_frame_chain): Update.
9231 (alpha_pop_frame): Update.
9232 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9233 (hppa_init_extra_frame_info): Update.
9234 (hppa_frame_chain): Update.
9235 (hppa_frame_chain_valid): Update.
9236 * cris-tdep.c (cris_init_extra_frame_info): Update.
9237 * avr-tdep.c (avr_init_extra_frame_info): Update.
9238 * arm-tdep.c (arm_frame_chain_valid): Update.
9239 (arm_init_extra_frame_info): Update.
9240 (arm_pop_frame): Update.
9241 * frame.c (frame_pc_unwind): Update.
9242 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9243 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9244 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9245 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9246 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9247 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9248
9249 2003-03-10 Andrew Cagney <cagney@redhat.com>
9250
9251 * gdbarch.sh (gdbarch_unwind_pc): New method.
9252 * gdbarch.h, gdbarch.c: Regenerate.
9253 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9254 but use read_pc and FRAME_SAVED_PC as fall backs.
9255 (frame_saved_regs_pc_unwind): Delete function.
9256 (trad_frame_unwinder): Update.
9257 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9258 (struct frame_unwind): Update.
9259 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9260 (dummy_frame_unwind): Update.
9261 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9262 (sentinel_frame_unwinder): Update.
9263 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9264 (d10v_frame_unwind): Update.
9265 (d10v_unwind_pc): New function.
9266 (d10v_gdbarch_init): Set unwind_pc.
9267
9268 2003-03-10 Andrew Cagney <cagney@redhat.com>
9269
9270 * gdbarch.h: Re-generate.
9271
9272 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9273 PC.
9274 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9275 the PC register.
9276
9277 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9278
9279 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9280
9281 2003-03-08 Andrew Cagney <cagney@redhat.com>
9282
9283 * cli-out.c: Update copyright.
9284 (cli_out_data): Define typedef. Use instead of ui_out_data.
9285
9286 2003-03-08 Andrew Cagney <cagney@redhat.com>
9287
9288 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9289 the result.
9290
9291 2003-03-07 Andrew Cagney <cagney@redhat.com>
9292
9293 * gdbarch.sh: Don't generate two macro definitions when an
9294 undefined macro taking no arguments.
9295 * gdbarch.h: Regenerate.
9296
9297 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9298
9299 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9300 (x86_64_unwind_dummy_id): New functions.
9301 (x86_64_init_abi): Register these two new functions.
9302
9303 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9304
9305 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9306 (x86_64_skip_prologue): Move prologue detection to
9307 separate function.
9308 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9309
9310 2003-03-05 Andrew Cagney <cagney@redhat.com>
9311
9312 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9313 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9314 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9315 to use unwind_dummy_id when a dummy frame.
9316 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9317 predicate.
9318 * gdbarch.h, gdbarch.c: Regneerate.
9319
9320 2003-03-05 Andrew Cagney <cagney@redhat.com>
9321
9322 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9323 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9324 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9325 values.
9326
9327 2003-03-05 Andrew Cagney <cagney@redhat.com>
9328
9329 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9330 (struct d10v_unwind_cache): Delete field "frameless". Replace
9331 "next_addr" with "sp_offset". Add "r11_offset".
9332 (d10v_frame_unwind_cache): Update.
9333 (prologue_find_regs): Update. When "mv r11, sp", save the
9334 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9335 RN was saved in r11_offset.
9336
9337 2003-03-05 Andrew Cagney <cagney@redhat.com>
9338
9339 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9340 cached PC value in the next frame.
9341
9342 2003-03-05 Andrew Cagney <cagney@redhat.com>
9343
9344 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9345 "id_unwind_cache" with "id".
9346 (frame_id_unwind): Delete declaration.
9347 * frame.c (frame_id_unwind): Delete function.
9348 (get_prev_frame): Call the frame id unwind method directly. Store
9349 the returned next frame's ID value in NEXT_FRAME. Note that there
9350 is a problem with the wrong unwind ID being called with the wrong
9351 unwind cache.
9352
9353 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9354
9355 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9356
9357 2003-03-05 James Ingham <jingham@apple.com>
9358 Daniel Jacobowitz <drow@mvista.com>
9359
9360 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9361 (auto_cp_abi): New variable.
9362 (current_cp_abi, num_cp_abis): Make static.
9363 (CP_ABI_MAX): Define.
9364 (cp_abis): Turn into an array.
9365 (value_virtual_fn_field): Fix formatting.
9366 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9367 takes a pointer.
9368 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9369 (list_cp_abis, _initialize_cp_abi): New functions.
9370 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9371 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9372 switch_to_cp_abi. Update prototype for register_cp_abi.
9373 * Makefile.in (cp-abi.o): Update dependencies.
9374 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9375 instead of switch_to_cp_abi.
9376 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9377 register_cp_abi.
9378 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9379 register_cp_abi.
9380 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9381
9382 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9383
9384 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9385 * dwarf2loc.c: Include "regcache.h".
9386 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9387 register_size.
9388 * Makefile.in (dwarf2loc.o): Update dependencies.
9389
9390 2003-03-04 Theodore A. Roth <troth@openavr.org>
9391
9392 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9393 number of io registers reported by remote target is not a multiple of
9394 step.
9395
9396 2003-03-04 David Carlton <carlton@math.stanford.edu>
9397
9398 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9399 (lookup_symbol_aux_psymtabs): Update call to
9400 lookup_partial_symbol.
9401 (lookup_transparent_type, find_main_psymtab)
9402 (make_symbol_overload_list): Ditto.
9403
9404 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9405
9406 * MAINTAINERS (Write after approval): Update my email address.
9407
9408 2003-03-03 Andrew Cagney <cagney@redhat.com>
9409
9410 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9411 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9412 predicate. Replace MAX_REGISTER_RAW_SIZE.
9413 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9414 MAX_REGISTER_VIRTUAL_SIZE.
9415 * regcache.c (legacy_max_register_raw_size): New function.
9416 (legacy_max_register_virtual_size): New function.
9417 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9418 (MAX_REGISTER_RAW_SIZE): Define.
9419 (legacy_max_register_raw_size): Declare.
9420 (legacy_max_register_virtual_size): Declare.
9421 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9422 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9423 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9424 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9425 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9426 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9427 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9428 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9429 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9430 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9431 * vax-tdep.c (vax_gdbarch_init): Update.
9432 * v850-tdep.c (v850_gdbarch_init): Update.
9433 * sparc-tdep.c (sparc_gdbarch_init): Update.
9434 * sh-tdep.c (sh_gdbarch_init): Update.
9435 * s390-tdep.c (s390_gdbarch_init): Update.
9436 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9437 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9438 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9439 * mips-tdep.c (mips_gdbarch_init): Update.
9440 * mcore-tdep.c (mcore_gdbarch_init): Update.
9441 * m68k-tdep.c (m68k_gdbarch_init): Update.
9442 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9443 * ia64-tdep.c (ia64_gdbarch_init): Update.
9444 * i386-tdep.c (i386_gdbarch_init): Update.
9445 * hppa-tdep.c (hppa_gdbarch_init): Update.
9446 * h8300-tdep.c (h8300_gdbarch_init): Update.
9447 * frv-tdep.c (frv_gdbarch_init): Update.
9448 * cris-tdep.c (cris_gdbarch_init): Update.
9449 * avr-tdep.c (avr_gdbarch_init): Update.
9450 * arm-tdep.c (arm_gdbarch_init): Update.
9451 * alpha-tdep.c (alpha_gdbarch_init): Update.
9452 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9453 max_register_raw_size or max_register_virtual_size.
9454
9455 2003-03-03 David Carlton <carlton@math.stanford.edu>
9456
9457 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9458 SYMBOL_MATCHES_NAME, add comment.
9459 (SYMBOL_MATCHES_NATURAL_NAME): New.
9460 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9461 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9462 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9463 * symtab.c (lookup_partial_symbol): Use
9464 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9465 unhelpful comment.
9466 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9467 SYMBOL_MATCHES_NAME.
9468 Fix for PR c++/33.
9469
9470 2003-03-03 David Carlton <carlton@math.stanford.edu>
9471
9472 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9473 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9474 by regexp matching against SYMBOL_NATURAL_NAME.
9475
9476 2003-03-03 David Carlton <carlton@math.stanford.edu>
9477
9478 * linespec.c (find_method): Extract code into collect_methods.
9479 (collect_methods): New.
9480
9481 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9482
9483 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9484 get_frame_base.
9485
9486 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9487 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9488
9489 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9490
9491 * arch-utils.c (generic_register_byte): Fix to use the loop index
9492 and not regnum when summing the size of all registers up to regnum.
9493
9494 2003-03-01 Andrew Cagney <cagney@redhat.com>
9495
9496 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9497 FRAME_INIT_SAVED_REGS.
9498 * gdbarch.h, gdbarch.c: Regenerate.
9499 * stack.c (frame_info): Update.
9500 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9501 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9502 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9503 * ns32k-tdep.c (ns32k_pop_frame): Update.
9504 * mips-tdep.c (mips_pop_frame): Update.
9505 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9506 * ia64-tdep.c (ia64_frame_chain): Update.
9507 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9508 (ia64_frameless_function_invocation): Update.
9509 (ia64_init_extra_frame_info): Update.
9510 (ia64_pop_frame_regular): Update.
9511 * frame.h (struct frame_info): Update comment.
9512 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9513 * frame.c (frame_saved_regs_register_unwind): Update.
9514 (frame_saved_regs_register_unwind): Update.
9515 (deprecated_generic_get_saved_register): Update.
9516 * cris-tdep.c: Update comment.
9517 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9518 Rename macro.
9519 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9520 * x86-64-tdep.c (x86_64_init_abi): Update.
9521 * vax-tdep.c (vax_gdbarch_init): Update.
9522 * v850-tdep.c (v850_gdbarch_init): Update.
9523 * sparc-tdep.c (sparc_gdbarch_init): Update.
9524 * sh-tdep.c (sh_gdbarch_init): Update.
9525 * s390-tdep.c (s390_gdbarch_init): Update.
9526 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9527 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9528 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9529 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9530 * mips-tdep.c (mips_gdbarch_init): Update.
9531 * mcore-tdep.c (mcore_gdbarch_init): Update.
9532 * m68k-tdep.c (m68k_gdbarch_init): Update.
9533 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9534 * ia64-tdep.c (ia64_gdbarch_init): Update.
9535 * i386-tdep.c (i386_gdbarch_init): Update.
9536 * frv-tdep.c (frv_gdbarch_init): Update.
9537 * avr-tdep.c (avr_gdbarch_init): Update.
9538 * arm-tdep.c (arm_gdbarch_init): Update.
9539 * alpha-tdep.c (alpha_gdbarch_init): Update.
9540
9541 2003-03-01 Andrew Cagney <cagney@redhat.com>
9542
9543 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9544 option enum and switch. When no windows, set the interpreter to
9545 INTERP_CONSOLE.
9546
9547 2003-03-01 Andrew Cagney <cagney@redhat.com>
9548
9549 * main.c (captured_main): Replace magic option characters with an
9550 enum.
9551
9552 2003-03-01 Andrew Cagney <cagney@redhat.com>
9553
9554 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9555 INIT_EXTRA_FRAME_INFO.
9556 * gdbarch.h, gdbarch.c: Regenerate.
9557 * arm-tdep.c: Update comments.
9558 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9559 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9560 * frame.h, avr-tdep.c: Ditto.
9561 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9562 (create_new_frame, legacy_get_prev_frame): Ditto.
9563 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9564 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9565 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9566 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9567 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9568 * v850-tdep.c (v850_gdbarch_init): Ditto.
9569 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9570 * sh-tdep.c (sh_gdbarch_init): Ditto.
9571 * s390-tdep.c (s390_gdbarch_init): Ditto.
9572 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9573 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9574 * mips-tdep.c (mips_gdbarch_init): Ditto.
9575 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9576 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9577 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9578 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9579 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9580 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9581 * frv-tdep.c (frv_gdbarch_init): Ditto.
9582 * cris-tdep.c (cris_gdbarch_init): Ditto.
9583 * avr-tdep.c (avr_gdbarch_init): Ditto.
9584 * arm-tdep.c (arm_gdbarch_init): Ditto.
9585 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9586 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9587
9588 2003-03-01 Andrew Cagney <cagney@redhat.com>
9589
9590 * gdbarch.sh (register_type): New function with predicate.
9591 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9592 * gdbarch.h, gdbarch.c: Re-generate.
9593 * arch-utils.c (generic_register_byte): Use generic_register_size.
9594 (generic_register_size): When available, use
9595 gdbarch_register_type.
9596 * regcache.c (init_regcache_descr): When available, initialize the
9597 register type array using gdbarch_register_type. If the
9598 architecture supplies gdbarch_register_type, do not use the legacy
9599 regcache layout.
9600 * d10v-tdep.c (d10v_register_type): Replace
9601 d10v_register_virtual_type.
9602 (d10v_gdbarch_init): Set register_type instead of
9603 register_virtual_type.
9604
9605 2003-03-01 Andrew Cagney <cagney@redhat.com>
9606
9607 * Makefile.in (ax-gdb.o): Update dependencies.
9608 * ax-gdb.c: Include "regcache.h".
9609 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9610 * findvar.c (value_of_register): Ditto.
9611 * infcmd.c (default_print_registers_info): Ditto.
9612
9613 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9614
9615 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9616 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9617
9618 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9619
9620 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9621 of STREQ.
9622
9623 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9624
9625 * Makefile.in (dwarf2loc.o): Update dependencies.
9626 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9627 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9628 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9629 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9630 (locexpr_tracepoint_var_ref): New function.
9631 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9632
9633 2003-02-28 Andrew Cagney <cagney@redhat.com>
9634
9635 * regcache.c (register_size): New function.
9636 * regcache.h (register_size): Declare
9637 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9638 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9639
9640 2003-02-28 David Carlton <carlton@math.stanford.edu>
9641
9642 * linespec.c (decode_compound): Extract code into find_method.
9643 (find_method): New.
9644
9645 2003-02-28 J. Brobecker <brobecker@gnat.com>
9646
9647 * Makefile.in: Add rules to build and link in observer.o.
9648
9649 2003-02-27 J. Brobecker <brobecker@gnat.com>
9650
9651 * observer.c: Minor comments edits.
9652
9653 2003-02-27 J. Brobecker <brobecker@gnat.com>
9654
9655 * observer.h, observer.c: New file.
9656
9657 2003-02-27 Andrew Cagney <cagney@redhat.com>
9658
9659 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9660
9661 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9662
9663 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9664 (M6812_OP_STS_EXT): Likewise.
9665 (m6811_prologue): Use the above to recognize prologue.
9666 (m6812_prologue): Likewise.
9667
9668 2003-02-27 David Carlton <carlton@math.stanford.edu>
9669
9670 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9671 SYMBOL_PRINT_NAME.
9672 (compare_psymbols): Ditto.
9673 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9674
9675 2003-02-27 Michael Snyder <msnyder@redhat.com>
9676
9677 * f-lang.c (build_fortran_types): New function.
9678 (_initialize_f_language): Gdbarch-register built-in fortran types.
9679 * doublest.c (extract_floating): Fix warning text.
9680
9681 2003-02-27 Andrew Cagney <cagney@redhat.com>
9682
9683 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9684 predicate. Replaces PUSH_DUMMY_FRAME.
9685 * gdbarch.h, gdbarch.c: Regnerate.
9686 * valops.c (hand_function_call): Update. Call
9687 generic_push_dummy_frame directly.
9688 * vax-tdep.c (vax_gdbarch_init): Update.
9689 * sparc-tdep.c (sparc_gdbarch_init): Update.
9690 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9691 * m68k-tdep.c (m68k_gdbarch_init): Update.
9692 * hppa-tdep.c (hppa_gdbarch_init): Update.
9693 * alpha-tdep.c (alpha_gdbarch_init): Update.
9694 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9695 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9696 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9697 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9698 push_dummy_frame to generic_push_dummy_frame.
9699 * v850-tdep.c (v850_gdbarch_init): Ditto.
9700 * sh-tdep.c (sh_gdbarch_init): Ditto.
9701 * s390-tdep.c (s390_gdbarch_init): Ditto.
9702 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9703 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9704 * mips-tdep.c (mips_gdbarch_init): Ditto.
9705 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9706 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9707 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9708 * i386-tdep.c (i386_gdbarch_init): Ditto.
9709 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9710 * frv-tdep.c (frv_gdbarch_init): Ditto.
9711 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9712 * cris-tdep.c (cris_gdbarch_init): Ditto.
9713 * avr-tdep.c (avr_gdbarch_init): Ditto.
9714 * arm-tdep.c (arm_gdbarch_init): Ditto.
9715
9716 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9717
9718 * mips-tdep.c (show_mips_abi): New function.
9719 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9720 command ``show mips abi''.
9721
9722 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9723
9724 From Elena Zannoni <ezannoni@redhat.com>
9725 * dbxread.c (process_one_symbol): Only record line 0 if one or
9726 more sline entries have been seen for the function.
9727
9728 2003-02-26 Michael Chastain <mec@shout.net>
9729
9730 * configure: Regenerate with autoconf 000227.
9731
9732 2003-02-26 Michael Chastain <mec@shout.net>
9733
9734 Close PR build/660.
9735 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9736 for old libc5/glibc.
9737 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9738
9739 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9740
9741 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9742 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9743
9744 2003-02-26 Michael Chastain <mec@shout.net>
9745
9746 * configure.in: New variable HAVE_UINTPTR_T.
9747 * configure, config.in: Regenerated.
9748
9749 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9750
9751 Fix PR build/1097.
9752 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9753
9754 2003-02-25 Andrew Cagney <cagney@redhat.com>
9755
9756 * frame.c (get_prev_frame): Add comment on check for
9757 inside_entry_func. Only check for inside_entry_file when not a
9758 dummy and not a sentinel. Check that the new frame is not inner
9759 to the old frame.
9760
9761 2003-02-25 Andrew Cagney <cagney@redhat.com>
9762
9763 * frame.c (frame_debug): New variable.
9764 (_initialize_frame): Add "set/show debug frame" command.
9765 (get_prev_frame): When frame_debug, print reason why unwind
9766 failed.
9767
9768 2003-02-25 Michael Chastain <mec@shout.net>
9769
9770 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9771 to avoid uintptr_t definition problems.
9772
9773 2003-02-25 David Carlton <carlton@math.stanford.edu>
9774
9775 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9776 (SYMBOL_LINKAGE_NAME): Ditto.
9777 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9778 SYMBOL_LINKAGE_NAME.
9779 (struct general_symbol_info): Expand comment.
9780 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9781 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9782 (SYMBOL_MATCHES_REGEXP): Ditto.
9783 * symtab.c (symbol_natural_name): New function.
9784 * objfiles.h: Replace all uses of SYMBOL_NAME by
9785 DEPRECATED_SYMBOL_NAME.
9786 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9787 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9788 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9789 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9790 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9791 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9792 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9793 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9794 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9795 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9796 * ada-exp.y: Ditto.
9797 * ada-exp.y: Update copyright.
9798 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9799 * cp-valprint.c: Ditto.
9800
9801 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9802
9803 * infptrace.c (detach): Do not flag error if ptrace detach fails
9804 and errno is set to ESRCH.
9805
9806 2003-02-24 Andrew Cagney <cagney@redhat.com>
9807
9808 * infptrace.c (udot_info): Change type of udot_off to long. Use
9809 paddr when printing udot_off's value.
9810
9811 2003-02-24 David Carlton <carlton@math.stanford.edu>
9812
9813 * symtab.c (make_symbol_overload_list): Only read in partial
9814 symtabs containing a matching partial symbol.
9815
9816 2003-02-24 David Carlton <carlton@math.stanford.edu>
9817
9818 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9819 do the comparison, not strcmp.
9820 * symfile.c (compare_psymbols): Ditto.
9821 * defs.h: Declare strcmp_iw_ordered.
9822 * utils.c (strcmp_iw_ordered): New function.
9823
9824 2003-02-24 Jim Blandy <jimb@redhat.com>
9825
9826 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9827 support, shared libs): Remove my name from here, to better reflect
9828 reality.
9829
9830 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9831
9832 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9833 (target_ops): Add to_have_continuable_watchpoint.
9834 * target.c (update_current_target): Add INHERIT line for
9835 to_have_continuable_watchpoint.
9836 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9837 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9838 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9839 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9840
9841 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9842
9843 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9844 maintainership.
9845
9846 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9847
9848 * solib.c (solib_open): Call target defined search function after
9849 failing with solib-search-path.
9850 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9851 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9852
9853 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9854
9855 * MAINTAINERS: Add myself to Write After section.
9856
9857 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9858
9859 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9860
9861 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9862
9863 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9864 (m68hc11_add_reggroups): New function.
9865 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9866 (m68hc11_gdbarch_init): Install the reggroups.
9867 (_initialize_m68hc11_tdep): Initialize them.
9868
9869 2003-02-21 James E Wilson <wilson@tuliptree.org>
9870
9871 * MAINTAINERS: Update my email address.
9872
9873 2003-02-21 David Carlton <carlton@math.stanford.edu>
9874
9875 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9876
9877 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9878
9879 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9880 * symtab.h: Add opaque declarations of struct axs_value and
9881 struct agent_expr.
9882 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9883 (struct location_funcs): New type.
9884 (struct symbol): Add "loc" to aux_value.
9885 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9886 * dwarf2read.c: Include "dwarf2expr.h".
9887 (dwarf2_symbol_mark_computed): New function.
9888 (read_func_scope): Use it.
9889 (var_decode_location): New function.
9890 (new_symbol): Use it.
9891 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9892
9893 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9894 (dwarf2expr_h, dwarf2loc_h): New variables.
9895 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9896 (dwarf2expr.o, dwarf2loc.o): New rules.
9897 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9898 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9899 LOC_COMPUTED_ARG.
9900 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9901 * m2-exp.y (yylex): Likewise.
9902 * printcmd.c (address_info, print_frame_args): Likewise.
9903 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9904 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9905 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9906 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9907 * symtab.c (lookup_block_symbol): Likewise.
9908
9909 2003-02-20 Adam Fedor <fedor@gnu.org>
9910
9911 * symtab.h: Remove objc_specific struct
9912 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9913 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9914 Have language_objc use cplus_specific struct.
9915
9916 2003-02-20 Tom Tromey <tromey@redhat.com>
9917
9918 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9919 TYPE_NAME, when printing a String value. PR java/1075.
9920
9921 2003-02-20 Adam Fedor <fedor@gnu.org>
9922
9923 * objc-lang.h (find_methods): Remove declaration.
9924 * objc-lang.c (find_methods): Make static.
9925
9926 2003-02-20 Christopher Faylor <cgf@redhat.com>
9927
9928 * win32-nat.c (get_image_name): Check return value from
9929 ReadProcessMemory.
9930 (child_xfer_memory): Ditto.
9931
9932 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9933
9934 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9935 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9936 '${exec_prefix}' (in addition to the expansion thereof) as
9937 relocatable.
9938 * configure: Rebuilt.
9939
9940 2003-02-20 David Carlton <carlton@math.stanford.edu>
9941
9942 * symtab.c (search_symbols): Revert the search_symbols part of my
9943 2002-12-23 patch. Add comment.
9944
9945 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9946
9947 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9948 * dbxread.c (elfstab_build_psymtabs): Don't call
9949 install_minimal_symbols.
9950 (stabsect_build_psymtabs): Likewise.
9951 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9952 earlier.
9953 * somread.c (som_symfile_read): Call install_minimal_symbols
9954 and do_cleanups earlier.
9955 * nlmread.c (nlm_symfile_read): Likewise.
9956 * mdebugread.c (elfmdebug_build_psymtabs): Call
9957 install_minimal_symbols and make appropriate cleanups.
9958
9959 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9960
9961 * solib.c (reload_shared_libraries): New function.
9962 (_initialize_solib): Add callbacks for ``set solib-search-path''
9963 and ``set solib-absolute-prefix''.
9964
9965 2003-02-20 David Carlton <carlton@math.stanford.edu>
9966
9967 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9968 expand comment.
9969 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9970 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9971 * ada-typeprint.c (ada_typedef_print): Ditto.
9972 * ax-gdb.c (gen_var_ref): Ditto.
9973 * breakpoint.c (print_one_breakpoint): Ditto.
9974 * buildsym.c (finish_block): Ditto.
9975 * c-valprint.c (c_val_print): Ditto.
9976 * expprint.c (print_subexp): Ditto.
9977 * findvar.c (locate_var_value): Ditto.
9978 * infcmd.c (jump_command): Ditto.
9979 * linespec.c (decode_line_2, decode_compound): Ditto.
9980 * maint.c (maintenance_translate_address): Ditto.
9981 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9982 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9983 Ditto.
9984 * p-valprint.c (pascal_val_print): Ditto.
9985 * stabsread.c (define_symbol): Ditto.
9986 * stack.c (print_frame, frame_info, print_block_frame_locals)
9987 (print_frame_arg_vars, return_command): Ditto.
9988 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9989 * symmisc.c (print_symbol): Ditto.
9990 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9991 (compare_search_syms, print_symbol_info, print_msymbol_info)
9992 (rbreak_command): Ditto.
9993 * tracepoint.c (tracepoints_info): Ditto.
9994 * typeprint.c (typedef_print): Ditto.
9995 * valops.c (value_of_variable, hand_function_call): Ditto.
9996 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9997 * ada-typeprint.c: Update Copyright.
9998 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9999 * tracepoint.c, cli/cli-cmds.c: Ditto.
10000
10001 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10002
10003 * frame.c (generic_unwind_get_saved_register): Make non-static.
10004 * frame.h (generic_unwind_get_saved_register): Declare.
10005 * mips-tdep.c (read_next_frame_reg): Fetch register from
10006 current regcache when frame is NULL.
10007 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10008 that must be NULL.
10009 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10010 instead of frame_register_unwind().
10011
10012 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10013
10014 * remote-sim.c (gdbsim_insert_breakpoint)
10015 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10016 code.
10017
10018 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10019
10020 * remote.c (_initialize_remote): Add commands "set/show remote
10021 hardware-watchpoint-limit" and "set/show remote
10022 hardware-breakpoint-limit".
10023 (remote_hw_watchpoint_limit): Initialize to -1.
10024 (remote_hw_breakpoint_limit): Ditto.
10025 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10026
10027 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10028
10029 * coff-pe-read.c: New file - support reading of minimal symbols from a
10030 portable executable using the export table.
10031 * coff-pe-read.h: New file.
10032 * coffread.c: Include coff-pe-read.h.
10033 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10034 debugging symbols found.
10035 * Makefile.in (SFILES): Add coff-pe-read.o.
10036 (coff_pe_read_h): Define.
10037 (COMMON_OBS): Add coff-pe-read.o.
10038 (coffread.o): Add coff_pe_read_h dependency.
10039 (coff-pe-read.o): New target.
10040
10041 2003-02-19 David Carlton <carlton@math.stanford.edu>
10042
10043 * Makefile.in (SFILES): Add block.c.
10044 (block_h): New.
10045 (COMMON_OBS): Add block.o.
10046 (block.o): New.
10047 (x86-64-tdep.o): Add $(block_h).
10048 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10049 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10050 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10051 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10052 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10053 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10054 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10055 * value.h: Add opaque declaration for struct block.
10056 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10057 * ada-lang.h: Ditto.
10058 * x86-64-tdep.c: #include "block.h"
10059 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10060 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10061 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10062 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10063 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10064 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10065 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10066 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10067 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10068 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10069 * symtab.c (block_function): Ditto.
10070 (contained_in): Ditto.
10071 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10072 block.h. Add opaque declaration for struct block.
10073 * symtab.h: Move block_function and contained_in declarations to
10074 block.h. Add opaque declarations for struct block, struct
10075 blockvector.
10076 (struct block): Move to block.h.
10077 (struct blockvector): Ditto.
10078 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10079 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10080 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10081 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10082 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10083 Ditto.
10084 * block.c: New file.
10085 * block.h: New file.
10086
10087 2003-02-19 Theodore A. Roth <troth@openavr.org>
10088
10089 * avr-tdep.c (avr_extract_return_value): Remove function.
10090 (avr_store_return_value): Remove function.
10091 (avr_extract_struct_value_address): Remove function.
10092 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10093
10094 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10095
10096 * rs6000-tdep.c: Include "gdb_assert.h".
10097 (registers_e500): Add "acc" and "spefscr".
10098 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10099 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10100 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10101 really is "r0".
10102 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10103
10104 2003-02-18 Keith Seitz <keiths@redhat.com>
10105
10106 * Makefile.in: Add gdbtk-interps.c.
10107
10108 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10109
10110 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10111 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10112
10113 2003-02-18 Andrew Cagney <cagney@redhat.com>
10114
10115 * symtab.h (struct objfile): Add opaque declaration.
10116
10117 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10118
10119 From Jim Ingham <jingham@apple.com>:
10120 * dbxread.c (process_one_symbol): Use last_function_start rather
10121 than function_start_offset to find the real beginning of the
10122 current function. The latter is just the text section offset on
10123 some systems, the former is always the real function start.
10124
10125 2003-02-17 Andrew Cagney <cagney@redhat.com>
10126
10127 * configure.in: Revert ${target} != ${host}.
10128
10129 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10130
10131 * configure.in (Makefile): Use the test ${target} != ${host},
10132 instead of the absence of the "nm.h" file, to determine of the
10133 configuration non-native.
10134 * configure: Regenerate.
10135
10136 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10137
10138 From Brian Ford <ford@vss.fsi.com>
10139
10140 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10141 conditionalize tui_active test.
10142 (lookup_cmd_1): Ditto.
10143
10144 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10145
10146 * configure.in: Add check for _etext.
10147 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10148 available.
10149 * config.in, configure: regenerated.
10150
10151 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10152
10153 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10154
10155 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10156
10157 * main.c (tui_version): Delete variable.
10158 (captured_main): When --tui, set interpreter_p to "tui" instead of
10159 enabling tui_version.
10160 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10161 tui_version.
10162 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10163 * cli/cli-cmds.c (disassemble_command): Ditto.
10164 * defs.h (tui_version): Delete declaration.
10165 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10166 (tui-interp.o): Add rules.
10167 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10168
10169 2003-02-14 Christopher Faylor <cgf@redhat.com>
10170
10171 * win32-nat.c (register_loaded_dll): Correctly set address range for
10172 just-loaded dll.
10173
10174 2003-02-12 Jason Molenda (jmolenda@apple.com)
10175
10176 * symmisc.c (print_objfile_statistics): Include information about
10177 the number of psymtabs and symtabs in each object file.
10178
10179 2003-02-13 Keith R Seitz <keiths@redhat.com>
10180
10181 * main.h (struct captured_main_args): Add interpreter_p.
10182 * main.c (captured_main): Initialize interpreter_p from context.
10183 * gdb.c (main): Set interpreter_p argument.
10184 * Makefile.in (gdb.o): Add dependency for interps.h.
10185
10186 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10187
10188 * event-top.c (cli_command_loop): Delete declaration.
10189 (_initialize_event_loop): Delete function setting event_loop_hook.
10190 * event-top.h (cli_command_loop): Declare. Update copyright.
10191 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10192 * interps.c (current_interp_command_loop): When event_loop_p, call
10193 cli_command_loop.
10194
10195 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10196
10197 * interps.h (interp_command_loop_ftype): Change return type to
10198 void.
10199
10200 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10201
10202 * x86-64-tdep.c (x86_64_extract_return_value)
10203 (x86_64_store_return_value): Use regcache instead of regbuf.
10204 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10205 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10206
10207 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10208
10209 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10210 * aclocal.m4: Regenerate.
10211 * configure: Regenerate.
10212
10213 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10214 TCL_LD_SEARCH_FLAGS.
10215
10216 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10217
10218 * dwarf2cfi.c: Reindented.
10219
10220 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10221
10222 * interps.c (clear_interpreter_hooks): Convert function definition
10223 to ISO C.
10224
10225 2003-02-07 David Carlton <carlton@math.stanford.edu>
10226
10227 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10228
10229 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10230
10231 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10232 (struct type): ...to here.
10233 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10234 field.
10235 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10236 (replace_type): Set length on all type variants for a given type.
10237
10238 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10239
10240 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10241 <sys/stat.h>.
10242 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10243
10244 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10245
10246 * Makefile.in (symm-nat.o): Update dependencies.
10247 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10248 (lynx-nat.o, ia64-linux-nat.): Ditto.
10249 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10250 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10251 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10252
10253 * Makefile.in (inflow_h): Define.
10254 (procfs.o, inflow.o, procfs.o): Update dependencies.
10255 * inftarg.c (child_stop): Delete extern declaration of
10256 inferior_process_group. Include "inflow.h".
10257 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10258 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10259 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10260 (our_process_group, inferior_process_group): Extern declarations.
10261
10262 * procfs.c: Include "gdb_assert.h".
10263
10264 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10265 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10266 * jv-typeprint.c (java_type_print_base): Ditto.
10267 * typeprint.c (typedef_print): Eliminate STREQ.
10268 * cli/cli-script.c (define_command, define_command): Ditto.
10269 * main.c (captured_main): Ditto.
10270 * values.c (lookup_internalvar): Ditto.
10271 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10272 within `if' conditional.
10273 * linespec.c (decode_line_2): Ditto.
10274 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10275 (bfd_openw_with_cleanup): Ditto.
10276
10277 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10278
10279 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10280 legacy_extract_return_value and store_return_value to
10281 legacy_return_value.
10282
10283 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10284
10285 * win32-nat.c (get_relocated_section_addrs): New function. Find
10286 section load addresses for symbol handling in relocated DLLs.
10287 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10288
10289 2003-02-05 Fred Fish <fnf@intrinsity.com>
10290
10291 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10292 '=' and '!='.
10293 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10294 with '&' and '=='.
10295 (angel_RDI_info): Ditto.
10296 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10297 with '&' and '!='.
10298 (threads_continue_all_with_signals): Ditto.
10299
10300 2003-02-05 Jim Ingham <jingham@apple.com>
10301 Keith Seitz <keiths@redhat.com>
10302 Elena Zannoni <ezannoni@redhat.com>
10303 Andrew Cagney <ac131313@redhat.com>
10304
10305 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10306 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10307 (SUBDIR_MI_OBS): Add "mi-interp.o".
10308 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10309 (SFILES): Add "interps.c".
10310 (COMMON_OBS): Add "interps.o".
10311 (interps_h, mi_main_h): Define.
10312 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10313 (mi-main.o, main.o, event-top.o): Update dependencies.
10314 * cli/cli-interp.c: New file.
10315 * interps.h, interps.c: New files.
10316 * top.c: (gdb_init): Don't install the default interpreter, handed
10317 by captured_main.
10318 * main.c: Include "interps.h".
10319 (interpreter_p): Note that it should malloc'ed.
10320 (captured_command_loop): Call current_interp_command_loop.
10321 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10322 xfree and xstrdup when updating interpreter_p. Install the
10323 default interpreter. Add hack to stop mi1's copyright notice
10324 being encoded.
10325 * event-top.h (gdb_setup_readline): Declare.
10326 (gdb_disable_readline): Declare.
10327 * event-top.c: Include "interps.h".
10328 (display_gdb_prompt): Call current_interp_display_prompt_p.
10329 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10330 gdb_stdlog, and gdb_stdtarg.
10331 (_initialize_event_loop): Don't call gdb_setup_readline.
10332 * cli-out.c (cli_out_set_stream): New function.
10333 * cli-out.h (cli_out_set_stream): Declare.
10334
10335 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10336
10337 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10338 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10339 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10340 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10341 config/i386/i386v42mp.mt: Removed.
10342
10343 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10344
10345 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10346 GDB_OSABI_SOLARIS.
10347
10348 2003-02-05 Michael Chastain <mec@shout.net>
10349
10350 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10351 2.12.1 and earlier versions.
10352
10353 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10354
10355 Remove orphaned hosts, targets and files.
10356 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10357 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10358 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10359 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10360 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10361 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10362 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10363 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10364 * config/sparc/tm-sp64sim.h: Delete.
10365 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10366 hosts.
10367 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10368 mips*-dec-mach3* targets.
10369
10370 2003-02-04 Michael Chastain <mec@shout.net>
10371
10372 * NEWS: Fix typo: sepcifying -> specifying.
10373
10374 2003-02-04 Michael Chastain <mec@shout.net>
10375
10376 * dwarfread.c: Add documentation on the state of dwarf-1,
10377 looking towards obsoletion.
10378
10379 2003-02-03 Michael Chastain <mec@shout.net>
10380
10381 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10382 gdb/testsuite/gdb.c++/pr-1023.exp.
10383
10384 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10385
10386 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10387 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10388
10389 * utils.c (init_page_info): Delete reference to MPW in comments.
10390 * main.c (captured_main): Delete #ifdef MPW.
10391
10392 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10393
10394 * NEWS: Note that the m32r-*-elf* is obsolete.
10395 * monitor.c (monitor_expect): Obsolete reference to m32r.
10396 * configure.tgt: Mark m32r-*-elf* as obsolete.
10397 * MAINTAINERS: Mark m32k as obsolete.
10398 * m32r-rom.c: Obsolete file.
10399 * config/m32r/m32r.mt: Obsolete file.
10400 * config/m32r/tm-m32r.h: Obsolete file.
10401 * m32r-stub.c: Obsolete file.
10402 * m32r-tdep.c: Obsolete file.
10403
10404 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10405
10406 * NEWS: Mention that the z8k-zilog-none is obsolete.
10407 * MAINTAINERS: Mark z8k as obsolete.
10408 * configure.tgt: Obsolete the z8k-*-coff* target.
10409 * config/z8k/z8k.mt: Obsolete file.
10410 * config/z8k/tm-z8k.h: Obsolete file.
10411 * z8k-tdep.c: Obsolete file.
10412
10413 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10414
10415 * NEWS: Mention that the mn10200-elf is obsolete.
10416 * configure.tgt: Obsolete mn10200-*-* target.
10417 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10418 mention that the mn10200 is obsolete.
10419 * breakpoint.h: Ditto.
10420 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10421 * config/mn10200/mn10200.mt: Obsolete file.
10422 * config/mn10200/tm-mn10200.h: Obsolete file.
10423 * mn10200-tdep.c: Obsolete file.
10424
10425 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10426
10427 * MAINTAINERS: Mark h8500 as obsolete.
10428 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10429 * findvar.c (value_from_register): Ditto.
10430 * h8500-tdep.c: Mark file as obsolete.
10431 * config/h8500/h8500.mt: Ditto.
10432 * config/h8500/tm-h8500.h: Ditto.
10433 * NEWS: Mention that h8500 is obsolete.
10434
10435 2003-02-04 David Carlton <carlton@math.stanford.edu>
10436
10437 * objfiles.c (allocate_objfile): Always set name. Add comment at
10438 start of function.
10439 * jv-lang.c (get_dynamics_objfile): Add comment.
10440
10441 2003-02-04 David Carlton <carlton@math.stanford.edu>
10442
10443 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10444 * printcmd.c (build_address_symbolic): Replace uses of
10445 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10446 SYMBOL_NAME, and asm_demangle.
10447 Update copyright.
10448
10449 2003-02-04 David Carlton <carlton@math.stanford.edu>
10450
10451 * linespec.c (decode_compound): Extract code into
10452 lookup_prefix_sym.
10453 (lookup_prefix_sym): New function.
10454
10455 2003-02-04 David Carlton <carlton@math.stanford.edu>
10456
10457 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10458 FLOAT_COERCION_BADNESS.
10459 * gdbtypes.c (rank_one_type): Replace all uses of
10460 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10461
10462 2003-02-04 Jim Blandy <jimb@redhat.com>
10463
10464 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10465 section, let dwarf_macinfo_section point to it, not
10466 dwarf_loc_section.
10467
10468 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10469
10470 Pointed out by Anton Blanchard <anton@samba.org>.
10471 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10472 (ppc_linux_at_sigtramp_return_path): Use it.
10473
10474 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10475
10476 * defs.h (streq): Add prototype.
10477 * utils.c (streq): New function.
10478
10479 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10480 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10481 * mdebugread.c (new_symbol): Likewise.
10482 * stabsread.c (define_symbol): Likewise.
10483 * coffread.c (process_coff_symbol): Likewise.
10484 * dwarfread.c (new_symbol): Likewise.
10485
10486 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10487 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10488 here.
10489 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10490 SYMBOL_INIT_DEMANGLED_NAME.
10491 * objfiles.c: Include "hashtab.h".
10492 (allocate_objfile): Call htab_set_functions_ex for the
10493 demangled_names_hash.
10494 (free_objfile): Call htab_delete for the demangled_names_hash.
10495 * objfiles.h (struct htab): Add declaration.
10496 (struct objfile): Add demangled_names_hash.
10497 * symfile.c: Include "hashtab.h".
10498 (reread_symbols): Call htab_delete for the demangled_names_hash.
10499 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10500 SYMBOL_NAME in the bcache.
10501 * symtab.c: Include "hashtab.h". Update comments.
10502 (create_demangled_names_hash, symbol_set_names): New functions.
10503 (symbol_find_demangled_name): New function, broken out from
10504 symbol_init_demangled_names.
10505 (symbol_init_demangled_names): Use it.
10506 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10507 (SYMBOL_SET_NAMES): New macro.
10508 (symbol_set_names): Add prototype.
10509
10510 2003-02-03 Jim Blandy <jimb@redhat.com>
10511
10512 Use a single, consistent representation for an empty minimal
10513 symbol table in an objfile.
10514 * objfiles.c (terminate_minimal_symbol_table): New function.
10515 (allocate_objfile): Call it.
10516 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10517 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10518 non-NULL.
10519 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10520 objfile has minimal symbols, compare minimal_symbol_count to zero,
10521 instead of comparing msymbols with NULL.
10522 * objfiles.c (have_minimal_symbols): Same.
10523 * solib-sunos.c (solib_add_common_symbols): Call
10524 terminate_minimal_symbol_table.
10525 * symfile.c (reread_symbols): Same.
10526
10527 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10528
10529 * s390-tdep.c (s390_address_class_type_flags)
10530 (s390_address_class_type_flags_to_name)
10531 (s390_address_class_name_to_type_flags): New functions.
10532 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10533 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10534
10535 2003-02-03 Michael Snyder <msnyder@redhat.com>
10536
10537 * arm-tdep.c: Fix spell-o in comment.
10538
10539 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10540
10541 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10542 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10543 error messages to contain BFD filename.
10544
10545 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10546
10547 Fix PR gdb/742 gdb/743 gdb/877
10548 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10549 (do_mixed_source_and_assembly): Use
10550 make_cleanup_ui_out_tuple_begin_end and
10551 make_cleanup_ui_out_tuple_begin_end.
10552 (do_mixed_source_and_assembly): Ditto.
10553 * thread.c (do_captured_list_thread_ids): Ditto.
10554 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10555 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10556 ui_out_tuple_end): Delete prototypes.
10557 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10558 ui_out_list_end, ui_out_tuple_end): Delete.
10559
10560 From Kevin Buettner <kevinb@redhat.com>:
10561 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10562 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10563 (do_cleanup_table_end): New functions.
10564 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10565 Use cleanups to invoke_ui_out_tuple_end().
10566 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10567 * cli/cli-setshow.c (cmd_show_list): Use
10568 make_cleanup_ui_out_tuple_begin_end.
10569
10570 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10571
10572 * frame.c (frame_unwind_register): New function.
10573 (frame_unwind_unsigned_register): Use.
10574 (frame_unwind_signed_register): Use.
10575 (frame_read_register): New function.
10576 * frame.h (frame_unwind_register): Declare.
10577 (frame_read_register): Declare.
10578
10579 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10580 and frame_unwind_register instead of read_memory, write_register
10581 and deprecated_write_register_bytes.
10582
10583 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10584
10585 * frame.h: Note that namelen can be negative.
10586 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10587 NAME's length.
10588
10589 * NEWS: Mention that the d10v's `regs' command is deprecated.
10590 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10591 (d10v_print_registers_info): New function.
10592 (show_regs): Call d10v_print_registers_info.
10593 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10594
10595 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10596
10597 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10598 lost in the previous patch.
10599
10600 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10601
10602 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10603 * stack.c (print_frame_info_base): Output complete FRAME tuple
10604 for synthesized frames.
10605
10606 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10607
10608 * mips-nat.c (zerobuf): Delete.
10609 (fetch_inferior_registers): Alloc local zerobuf.
10610 (fetch_core_registers): Alloc local zerobuf.
10611 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10612 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10613 * thread-db.c (thread_db_store_registers): Ditto.
10614 * sh-tdep.c (sh_do_register): Ditto.
10615 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10616 * remote-sim.c (gdbsim_store_register): Ditto.
10617 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10618 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10619 * monitor.c (monitor_supply_register): Ditto.
10620 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10621 * mips-nat.c (fetch_inferior_registers): Ditto.
10622 * m68klinux-nat.c (fetch_register): Ditto.
10623 * lynx-nat.c (fetch_inferior_registers): Ditto.
10624 (fetch_inferior_registers): Ditto.
10625 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10626 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10627 (hpux_thread_store_registers): Ditto.
10628 * hppah-nat.c (fetch_register): Ditto.
10629 * hppab-nat.c (fetch_register): Ditto.
10630 * hppa-tdep.c (pa_register_look_aside): Ditto.
10631 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10632 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10633
10634 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10635
10636 * gdbarch.sh: Explictly specify all method levels. When a
10637 variable with an empty level, provide a non-multi-arch default.
10638 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10639 * gdbarch.h: Re-generate.
10640 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10641 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10642
10643 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10644
10645 * defs.h (host_pointer_to_address): Delete declaration.
10646 (address_to_host_pointer): Delete declaration.
10647 * utils.c (host_pointer_to_address): Delete function.
10648 (address_to_host_pointer): Delete function.
10649 * procfs.c (procfs_address_to_host_pointer): New function.
10650 * procfs.c (proc_set_watchpoint): Use.
10651 (procfs_can_use_hw_breakpoint): Update comments.
10652 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10653 (som_solib_add): Use.
10654 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10655 * hppa-tdep.c (unwind_command): Use.
10656
10657 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10658
10659 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10660 strlen d_name.
10661
10662 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10663 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10664 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10665 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10666 (define_symbol): Update.
10667 * symfile.c (generic_load): Remove references to nindy.
10668 * symtab.c: Remove references to nindy.
10669
10670 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10671
10672 * infcmd.c (print_float_info): Delete code conditional on
10673 FLOAT_INFO.
10674 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10675 * config/m68k/nm-apollo68b.h: Ditto.
10676 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10677 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10678 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10679
10680 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10681
10682 * config/i386/tm-i386os9k.h: Removed.
10683
10684 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10685 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10686 they're identical to i[3456]86-*-sysv* now.
10687 * config/i386/i386v32.mh: Removed.
10688 * config/i386/xm-i386v32.h: Removed.
10689 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10690
10691 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10692
10693 * config/i386/i386dgux.mh: Removed.
10694 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10695
10696 * configure.in: Fix typo.
10697 * configure: Regenerated.
10698
10699 2003-01-31 David Carlton <carlton@math.stanford.edu>
10700
10701 * dwarf2read.c (dwarf2_locate_sections): Set
10702 dwarf_ranges_section.
10703
10704 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10705
10706 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10707 * utils.c: Update comments documenting legitimate uses of PTR.
10708
10709 * utils.c: Re-indent.
10710
10711 * config/djgpp/fnchange.lst: Delete nindy files.
10712 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10713 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10714 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10715 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10716 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10717 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10718 * Makefile.in (init.c): Remove nindy references.
10719 (saber_gdb): Delete rule.
10720 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10721 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10722 and a68v-nat.c.
10723 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10724 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10725 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10726 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10727 nindy-share/stop.h.
10728 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10729 * saber.suppress: Delete file.
10730
10731 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10732
10733 * dbxread.c (stabs_data): New static variable.
10734 (fill_symbuf): Support an in-memory buffer for stabs data.
10735 (stabs_seek): New function.
10736 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10737 (read_ofile_symtab): Use stabs_seek.
10738 (elfstab_build_psymtabs): Take an asection* instead of
10739 an offset and size. Relocate the stabs data if necessary.
10740 Save the section* for dbx_psymtab_to_symtab.
10741 * dwarf2read.c: Add section variables for each debug section.
10742 (dwarf2_locate_sections): Fill them in.
10743 (dwarf2_read_section): Take an asection* argument.
10744 Relocate the section contents if necessary.
10745 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10746 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10747 it to dwarf2_read_section.
10748 (dwarf2_build_frame_info): Update callers.
10749 * elfread.c (elf_symfile_read): Update call to
10750 elfstab_build_psymtabs.
10751 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10752 (DBX_STAB_SECTION): New macro.
10753 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10754 * symfile.c (symfile_dummy_outputs): New function.
10755 (symfile_relocate_debug_section): New function.
10756 * symfile.h (symfile_relocate_debug_section): Add prototype.
10757
10758 2003-01-31 Richard Henderson <rth@redhat.com>
10759
10760 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10761 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10762 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10763 * alpha-tdep.c (alpha_register_name): Add "unique".
10764 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10765 (ALPHA_UNIQUE_REGNUM): New.
10766 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10767
10768 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10769
10770 * README: Remove reference to Ericsson 1800 monitor.
10771 * Makefile.in (remote-es.o): Delete rule.
10772 (ALLDEPFILES): Delete remote-es.c.
10773 * remote-es.c: Delete file.
10774 * config/m68k/es1800.mt: Delete file.
10775 * config/djgpp/fnchange.lst: Update.
10776 * configure.tgt: Delete m68*-ericsson-* target.
10777
10778 2003-01-31 Adam Fedor <fedor@gnu.org>
10779
10780 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10781 Remove duplicate/shadowing variable of same name.
10782
10783 2003-01-30 Jim Blandy <jimb@redhat.com>
10784
10785 * symfile.c (find_separate_debug_file): Assert that the objfile's
10786 directory name we compute ends with a slash, and then assume that
10787 that's so everywhere we use it.
10788
10789 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10790
10791 * valops.c (value_assign): Flush frame cache after stores to memory
10792 also.
10793
10794 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10795
10796 * Makefile.in (mon960-rom.o): Delete rule.
10797 * mon960-rom.c: Delete file.
10798
10799 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10800
10801 * d10v-tdep.c: Include "frame-unwind.h".
10802 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10803 list.
10804 (next_addr, uses_frame): Delete.
10805 (struct d10v_unwind_cache): Define.
10806 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10807 Use info instead of next_addr and uses_frame globals.
10808 (d10v_frame_init_saved_regs): Delete function.
10809 (d10v_init_extra_frame_info): Delete function.
10810 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10811 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10812 init_frame_pc or frame_saved_pc.
10813 (d10v_pop_frame): Delete function.
10814 (do_d10v_pop_frame): Delete function.
10815 (d10v_frame_chain): Delete function.
10816 (d10v_frame_chain_valid): Delete function.
10817 (d10v_frame_pc_unwind): New function.
10818 (d10v_frame_id_unwind): New function.
10819 (saved_regs_unwinder): New function.
10820 (d10v_frame_register_unwind): New function.
10821 (d10v_frame_pop): New function.
10822 (d10v_frame_unwind): New variable.
10823 (d10v_frame_p): New function.
10824 (d10v_frame_saved_pc): Delete function.
10825 * Makefile.in (d10v-tdep.o): Update dependencies.
10826
10827 2003-01-30 J. Brobecker <brobecker@gnat.com>
10828
10829 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10830 causing some regressions due to a change in the default value
10831 for this macro.
10832
10833 2003-01-29 Richard Henderson <rth@redhat.com>
10834 Elena Zannoni <ezannoni@redhat.com>
10835 Daniel Jacobowitz <drow@mvista.com>
10836
10837 Fix PR gdb/961.
10838 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10839 variables.
10840 (RANGES_SECTION): New.
10841 (dwarf_ranges_buffer): New variable.
10842 (struct comp_unit_head): Add member "die".
10843 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10844 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10845 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10846 (dwarf2_locate_sections): Likewise.
10847 (dwarf2_build_psymtabs): Read .debug_ranges.
10848 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10849 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10850 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10851 Look for DW_AT_ranges and return the bounding box.
10852
10853 2003-01-29 Brian Ford <ford@vss.fsi.com>
10854
10855 * win32-nat.c (cygwin_pid): Removed as unused.
10856 (child_attach): Try fall back to Cygwin pid.
10857
10858 2003-01-29 Jim Blandy <jimb@redhat.com>
10859
10860 * objfiles.h (struct objfile): Doc fix.
10861
10862 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10863
10864 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10865 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10866 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10867 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10868 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10869 (FRAME_SAVED_PC): Change to a function with predicate.
10870 * gdbarch.h, gdbarch.c: Re-generate.
10871
10872 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10873
10874 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10875
10876 * complaints.c (complain): Delete function.
10877 * complaints.h (struct deprecated_complaint): Delete definition.
10878 (complain): Delete declaration.
10879
10880 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10881
10882 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10883 dummy frames.
10884
10885 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10886
10887 * sentinel-frame.h, sentinel-frame.c: New files.
10888 * Makefile.in (frame.o): Update dependencies.
10889 (SFILES): Add sentinel-frame.c.
10890 (sentinel_frame_h): Define.
10891 (COMMON_OBS): Add sentinel-frame.o.
10892 (sentinel-frame.o): Specify dependencies.
10893 * frame.c: Include "sentinel-frame.h".
10894 (frame_register_unwind): Rewrite assuming that there is always a a
10895 ->next frame.
10896 (frame_register, generic_unwind_get_saved_register): Ditto.
10897 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10898 (create_sentinel_frame, unwind_to_current_frame): New functions.
10899 (get_current_frame): Rewrite using create_sentinel_frame and
10900 unwind_to_current_frame. When possible, always create a frame.
10901 (create_new_frame): Set next to the sentinel frame.
10902 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10903 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10904 ID cache when necessary.
10905 (frame_saved_regs_id_unwind): Use frame_relative_level.
10906 (deprecated_generic_get_saved_register): Use frame_relative_level,
10907 get_frame_saved_regs, get_frame_pc, get_frame_base and
10908 get_next_frame.
10909 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10910 frame_register.
10911
10912 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10913
10914 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10915
10916 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10917
10918 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10919 (maintenance_set_profile_cmd): Use error () instead of warning ().
10920
10921 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10922
10923 * configure.in: Check that -pg works if using --enable-profiling.
10924 Check for monstartup and _mcleanup regardless of --enable-profiling.
10925 * maint.c: Check for monstartup and _mcleanup before using them.
10926 * config.in: Regenerated.
10927 * configure: Regenerated.
10928
10929 2003-01-24 Nick Clifton <nickc@redhat.com>
10930
10931 * Add sh2e support:
10932
10933 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10934
10935 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10936 (sh2e_show_regs): New.
10937 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10938 * config/sh/tm-sh.h: Added sh2e to comments.
10939
10940 2003-01-23 Jim Blandy <jimb@redhat.com>
10941
10942 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10943 symbols found)" message here; we haven't checked for a separate
10944 debug info file yet, so we don't know yet.
10945 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10946 we've looked everywhere. Also, there's no need to print a special
10947 message when we're loading the separate debug info file: the one
10948 symbol_file_add prints is fine.
10949
10950 2003-01-23 Alexander Larsson <alexl@redhat.com>
10951 Jim Blandy <jimb@redhat.com>
10952
10953 Add support for executables whose debug info has been separated
10954 out into a separate file, leaving only a link behind.
10955 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10956 and separate_debug_objfile_backlink.
10957 (put_objfile_before): New declaration.
10958 * symfile.c: #include "filenames.h".
10959 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10960 debug info in a separate file, read that, too. Save the addrs
10961 argument, so we can use it again to read the separated debug info;
10962 syms_from_objfile modifies the table we pass it.
10963 (reread_symbols): After re-reading an objfile, call
10964 reread_separate_symbols to refresh its separate debug info
10965 objfile, if it has one.
10966 (reread_separate_symbols, find_separate_debug_file,
10967 get_debug_link_info, separate_debug_file_exists): New functions.
10968 (debug_file_directory): New global var.
10969 (_initialize_symfile): Initialize debug_file_directory, and
10970 provide the new `set debug-file-directory' command to let the user
10971 change it.
10972 * objfiles.c (free_objfile): If this objfile has its debug info in
10973 a separate objfile, free that one too. If this is itself a
10974 separate debug info objfile, clear our parent's backlink.
10975 (put_objfile_before): New function.
10976 * utils.c (gnu_debuglink_crc32): New function.
10977 * defs.h (gnu_debuglink_crc32): New declaration.
10978 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10979 * configure.in: Handle --with-separate-debug-dir config option.
10980 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10981 * acconfig.h (DEBUGDIR): New macro.
10982 * configure, aclocal.m4, config.in: Regenerated.
10983
10984 2003-01-22 Jim Blandy <jimb@redhat.com>
10985
10986 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10987 like the old symbol_file_add, but taking new arguments: you can
10988 now pass in either a `struct section_addr_info' list to say where
10989 each section is loaded, or a `struct section_offsets' table. Pass
10990 these new arguments through to syms_from_objfile as appropriate.
10991 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10992 with the appropriate quiescent values for the new arguments.
10993
10994 * symfile.c: #include "gdb_assert.h".
10995 (syms_from_objfile): Add the ability to pass in a section offset
10996 table directly, as an alternative to the section_addr_info table.
10997 Document arguments better.
10998 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10999 * symfile.h (syms_from_objfile): Update declaration.
11000 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11001 syms_from_objfile.
11002 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11003
11004 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11005
11006 Original patch by Tom Tromey <tromey@cygnus.com> and
11007 Jason Molenda <jmolenda@apple.com>.
11008 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11009 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11010 * NEWS: Mention profiling.
11011 * configure.in (--enable-gdbtk): Fix typo.
11012 (--enable-profiling): New. Set PROFILE_CFLAGS.
11013 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11014 Fill in function.
11015 (profiling_state): New variable.
11016 (mcleanup_wrapper): New function.
11017 (_initialize_maint): Remove NOTYET, fix call to
11018 add_setshow_boolean_cmd for "maint set profile".
11019 * configure: Regenerated.
11020
11021 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11022
11023 * Makefile.in (install-gdbtk): Install PNG images too.
11024
11025 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11026
11027 * exec.c (text_start): Delete global variable.
11028 (exec_file_attach): Make text_start local to the function.
11029 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11030 * valops.c (hand_function_call): Delete code that handles
11031 BEFORE_TEXT_END and AFTER_TEXT_END.
11032 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11033 of CALL_DUMMY_LOCATION.
11034 * gdbarch.c: Regenerate.
11035 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11036 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11037 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11038 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11039 (text_end): Delete extern declaration.
11040
11041 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11042
11043 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11044 * blockframe.c (backtrace_below_main): Move to "frame.c".
11045 (frame_chain_valid): Delete check for backtrace_below_main.
11046 (_initialize_blockframe): Delete initialization, move ``set
11047 backtrace-below-main'' command to "frame.c".
11048 (do_flush_frames_sfunc): Delete function.
11049 * frame.c: Include "command.h" and "gdbcmd.h".
11050 (frame_type_from_pc): New function.
11051 (create_new_frame): Use frame_type_from_pc.
11052 (legacy_get_prev_frame): New function.
11053 (get_prev_frame): Rewrite. When an old style frame, call
11054 legacy_get_prev_frame. Otherwize, unwind the PC first.
11055 (_initialize_frame): Add ``set backtrace-below-main'' command.
11056 * Makefile.in (frame.o): Update dependencies.
11057
11058 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11059
11060 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11061 DEPRECATED_REGISTERS_INFO.
11062
11063 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11064
11065 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11066 Maintainers'. Update `Various Maintainers'.
11067
11068 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11069
11070 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11071 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11072 Suppress actual parameters when `-'.
11073 * gdbarch.h, gdbarch.c: Regenerate.
11074
11075 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11076
11077 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11078 code handling dummy frames.
11079
11080 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11081
11082 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11083 (struct frame_unwind): Add field pop.
11084 * frame.h (frame_pop): Declare.
11085 * frame.c (frame_saved_regs_pop): New function.
11086 (trad_frame_unwinder): Add frame_saved_regs_pop.
11087 (frame_pop): New function.
11088 * dummy-frame.c (dummy_frame_pop): New function.
11089 (discard_innermost_dummy): New function.
11090 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11091 (dummy_frame_unwind): Add dummy_frame_pop.
11092 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11093 * valops.c (hand_function_call): Ditto.
11094 * stack.c (return_command): Ditto.
11095
11096 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11097
11098 * cris-tdep.c: Fix function declaration indentation.
11099 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11100 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11101 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11102 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11103 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11104 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11105
11106 2003-01-18 Michael Chastain <mec@shout.net>
11107
11108 * README (Unpacking and Installation -- quick overview):
11109 Warn against ".../gdb-5.3/gdb/configure".
11110
11111 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11112
11113 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11114 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11115 (struct frame_unwind): Declare opaque.
11116 (dummy_frame_p): Declare function.
11117 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11118 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11119 * dummy-frame.c: Include "frame-unwind.h".
11120 (dummy_frame_p): New function.
11121 (dummy_frame_unwind): New variable.
11122 * frame.c: Include "frame-unwind.h".
11123 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11124 to use the new unwind field.
11125 (set_unwind_by_pc): Delete function.
11126 (create_new_frame, get_prev_frame): Set unwind field using
11127 frame_unwind_find_by_pc.
11128 (trad_frame_unwind, trad_frame_unwinder): New variables.
11129 * frame.h (trad_frame_unwind): Declare variable.
11130 (frame_id_unwind_ftype): Delete declaration.
11131 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11132 (struct frame_unwind): Declare opaque.
11133 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11134 register_unwind with a single unwind pointer.
11135 * frame-unwind.h, frame-unwind.c: New files.
11136 * Makefile.in (SFILES): Add frame-unwind.c.
11137 (frame_unwind_h): Define.
11138 (COMMON_OBS): Add frame-unwind.o.
11139 (frame-unwind.o): Specify dependencies.
11140 (frame.o, dummy-frame.o): Update dependencies.
11141
11142 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11143
11144 * ada-valprint.c: Eliminate PTR.
11145 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11146 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11147 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11148 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11149 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11150 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11151 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11152
11153 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11154
11155 * main.c (captured_main): Don't use PTR.
11156 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11157 * gdbtypes.c (lookup_primitive_typename): Ditto.
11158 (lookup_struct_elt_type): Ditto.
11159 * f-valprint.c (info_common_command): Ditto.
11160 (list_all_visible_commons): Ditto.
11161 * jv-typeprint.c (java_type_print_base): Ditto.
11162
11163 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11164 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11165 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11166 i386-interix-nat.c and i386-interix-tdep.c. Rename
11167 m68klinux-nat.c and m68klinux-tdep.c. Rename
11168 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11169 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11170 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11171 * main.c (captured_main): Use xfree, not free.
11172
11173 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11174
11175 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11176 ID back using a parameter.
11177 * frame.c (frame_id_unwind): Update call.
11178 (frame_saved_regs_id_unwind): Update.
11179 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11180 * dummy-frame.h (struct frame_id): Add opaque declaration.
11181 (dummy_frame_id_unwind): Update declaration.
11182
11183 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11184
11185 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11186
11187 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11188
11189 * MAINTAINERS (Stephen P. Smith): Updated email address.
11190
11191 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11192
11193 Fix PR gdb/898
11194 * breakpoint.c (until_break_command): Add new argument. Use it to
11195 decide whether to stop only at the current frame or not.
11196 * breakpoint.h (until_break_command): Update prototype.
11197 * infcmd.c (until_command): Add new argument to until_break_command
11198 call.
11199 (advance_command): New function.
11200 (_initialize_infcmd): Update help string for 'until' command.
11201 Add new 'advance' command.
11202
11203 2003-01-14 David Carlton <carlton@math.stanford.edu>
11204
11205 * linespec.c (decode_line_1): Normalize comments.
11206 (set_flags): Ditto.
11207 (locate_first_half): Ditto.
11208 (decode_compound): Ditto.
11209 (symtab_from_filename): Ditto.
11210 (decode_all_digits): Ditto.
11211 (decode_dollar): Ditto.
11212 (find_methods): Ditto.
11213 (find_toplevel_char): Ditto.
11214
11215 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11216
11217 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11218 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11219 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11220 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11221 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11222 * language.c, language.h, m32r-tdep.c: Update copyright.
11223 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11224 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11225 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11226 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11227 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11228 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11229
11230 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11231
11232 * stabsread.h (process_later, resolve_cfront_continuation):
11233 Obsolete.
11234 Update copyright years.
11235 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11236 Update copyright year.
11237 * dbxread.c(struct cont_elem): Obsolete.
11238 (process_later, process_now): Obsolete functions.
11239 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11240 Update copyright year.
11241 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11242 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11243 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11244 (parse_partial_symbols): Obsolete cfront support.
11245 * stabsread.c
11246 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11247 macros.
11248 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11249 read_cfront_baseclasses, read_cfront_member_functions,
11250 resolve_cfront_continuation,read_cfront_static_fields,
11251 copy_cfront_struct_fields): Obsolete functions.
11252 (define_symbol, read_one_struct_field): Obsolete cfront support.
11253 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11254 Update Copyright year.
11255
11256 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11257
11258 * stack.c (print_frame_info, print_stack_frame_base_stub,
11259 print_stack_frame_base, show_and_print_stack_frame_stub,
11260 show_and_print_stack_frame, print_only_stack_frame_stub,
11261 print_only_stack_frame): Delete functions.
11262 (print_stack_frame_stub): Call print_frame_info instead of
11263 print_frame_info_base.
11264 (print_frame_info_base): Rename to print_frame_info.
11265 (backtrace_command_1): Call print_frame_info, instead of
11266 print_frame_info_base.
11267 (current_frame_command): Call print_stack_frame, instead of
11268 print_only_stack_frame.
11269 (frame_command): Call print_stack_frame, instead of
11270 show_and_print_stack_frame.
11271 (up_command): Ditto.
11272 (down_command): Ditto.
11273 * frame.h (print_only_stack_frame): Delete prototype.
11274 * infrun.c (normal_stop): Call print_stack_frame, instead of
11275 show_and_print_stack_frame.
11276 * thread.c (info_threads_command): Call print_stack_frame, instead
11277 of print_only_stack_frame.
11278
11279 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11280
11281 * README (Graphical interface to GDB): Update URL. Point at
11282 gdb/links/.
11283
11284 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11285 version match.
11286
11287 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11288
11289 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11290 lines.
11291
11292 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11293
11294 * thread-db.c (attach_thread): Prototype.
11295 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11296 thread information (ti), and valid flags (th_valid, ti_valid).
11297 (attach_thread): Move target_pid_to_str call to after the thread
11298 is added to GDB's list. Initialize the cache.
11299 (thread_get_info_callback, thread_db_map_id2thr)
11300 (thread_db_get_info): New functions.
11301 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11302 (thread_db_store_registers, thread_db_thread_alive)
11303 (thread_db_get_thread_local_address): Use them.
11304 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11305 of calling error() for threads in unknown state.
11306
11307 (clear_lwpid_callback): New function.
11308 (thread_db_resume): Use it to clear the cache.
11309
11310 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11311
11312 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11313 (resume_callback): Remove dead code.
11314
11315 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11316
11317 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11318 predicate.
11319 * gdbarch.h, gdbarch.c: Regenerate.
11320 * stack.c (frame_info): Only initialize the saved registers when
11321 FRAME_INIT_SAVED_REGS_P.
11322 * frame.c (frame_saved_regs_register_unwind): Assert
11323 FRAME_INIT_SAVED_REGS_P.
11324 (deprecated_generic_get_saved_register): Ditto.
11325
11326 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11327
11328 * source.c (openp): Squelch warning about "filename".
11329
11330 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11331
11332 * source.c (openp): If the file does not exist don't necessarily
11333 search the path.
11334
11335 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11336
11337 Fix PR gdb/872.
11338 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11339 (integer_types_same_name_p): New function.
11340 (rank_one_type): Use it.
11341 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11342
11343 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11344
11345 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11346 variables.
11347 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11348 * configure.in: Add --with-sysroot.
11349 * configure: Regenerated.
11350 * main.c (gdb_sysroot): New variable.
11351 (captured_main): Initialize gdb_sysroot.
11352 * defs.h (gdb_sysroot): New extern declaration.
11353 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11354
11355 2003-01-12 Michael Chastain <mec@shout.net>
11356
11357 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11358
11359 2003-01-12 Michael Chastain <mec@shout.net>
11360
11361 * top.c (print_gdb_version): Bump copyright year to 2003.
11362
11363 2003-01-12 David Carlton <carlton@bactrian.org>
11364
11365 * linespec.c (symtab_from_filename): Rename variable 's' to
11366 'file_symtab'.
11367
11368 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11369
11370 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11371 dummy frame.
11372 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11373
11374 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11375
11376 * d10v-tdep.c: Include "gdb_assert.h".
11377 (d10v_store_return_value): Rewrite to match current interface.
11378 (d10v_extract_struct_value_address): Ditto.
11379 (d10v_extract_return_value): Ditto.
11380 (d10v_gdbarch_init): Set store_restore_value,
11381 extract_struct_value_address and extract_return_value.
11382
11383 2003-01-12 J. Brobecker <brobecker@gnat.com>
11384
11385 * hpread.c (set_namestring): New procedure replacing the
11386 SET_NAMESTRING macro.
11387 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11388 by calls to set_namestring.
11389
11390 2003-01-11 J. Brobecker <brobecker@gnat.com>
11391
11392 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11393 a compilation warning.
11394 (hpread_process_one_debug_symbol): Likewise.
11395
11396 2003-01-10 David Carlton <carlton@math.stanford.edu>
11397
11398 * linespec.c (decode_line_1): Rename variable 's' to
11399 'file_symtab'.
11400 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11401 (decode_dollar): Ditto.
11402 (decode_variable): Ditto.
11403 (symbol_found): Ditto.
11404
11405 2003-01-09 Michael Chastain <mec@shout.net>
11406
11407 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11408
11409 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11410
11411 * win32-nat.c (set_process_privilege): New function.
11412 (child_attach): Call set_process_privilege() to enable the
11413 SE_DEBUG_NAME user privilege if available in process token.
11414
11415 2003-01-10 J. Brobecker <brobecker@gnat.com>
11416
11417 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11418 compilation error in the previous revision.
11419
11420 2003-01-09 David Carlton <carlton@math.stanford.edu>
11421
11422 * linespec.c: Update copyright.
11423
11424 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11425
11426 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11427 than inferior_ptid.
11428 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11429
11430 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11431
11432 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11433 Update comments.
11434 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11435 (frame_saved_regs_zalloc): Update.
11436 (frame_saved_regs_register_unwind): Update.
11437 (create_new_frame): Update.
11438 (get_prev_frame): Update.
11439 (frame_extra_info_zalloc): Update.
11440 (deprecated_get_frame_saved_regs): Update.
11441 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11442 * cris-tdep.c: Update comment.
11443
11444 * somsolib.h: Fix function indentation.
11445 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11446 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11447 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11448 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11449 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11450
11451 * infrun.c (follow_fork): Use ISO C definition.
11452 * expprint.c (print_subexp): Use xfree instead of free.
11453 * charset.c: Include "gdb_string.h" instead of <string.h>.
11454 (register_iconv_charsets): Use ISO C definition.
11455 (host_charset, target_charset): Ditto.
11456 * Makefile.in (charset.o): Update dependencies.
11457 (mi-cmd-env.o): Update dependencies.
11458
11459 2003-01-08 Andrew Cagney <cagney@redhat.com>
11460
11461 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11462 get_frame_base.
11463
11464 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11465
11466 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11467 build directories. Save edited gdb output in Mbuild.log. If a
11468 build fails, remove any final GDB executable.
11469
11470 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11471
11472 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11473 replacing hex constants with function names and stripping leading
11474 file name directory prefixes.
11475
11476 2003-01-08 Andrew Cagney <cagney@redhat.com>
11477
11478 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11479 get_frame_base.
11480
11481 2003-01-08 David Carlton <carlton@math.stanford.edu>
11482
11483 * linespec.c (decode_line_1): Move code into decode_variable.
11484 (decode_variable): New function.
11485
11486 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11487
11488 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11489
11490 2003-01-08 Andrew Cagney <cagney@redhat.com>
11491
11492 * cris-tdep.c (cris_frame_init_saved_regs): Use
11493 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11494 saved_regs buffer.
11495 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11496 (sh64_nofp_frame_init_saved_regs): Ditto.
11497 (sh_fp_frame_init_saved_regs): Ditto.
11498 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11499 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11500 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11501 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11502
11503 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11504
11505 * minsyms.c (lookup_minimal_symbol): Update comment.
11506 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11507 (lookup_minimal_symbol_solib_trampoline): Likewise.
11508
11509 2003-01-08 Andrew Cagney <cagney@redhat.com>
11510
11511 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11512 frame_relative_level.
11513
11514 * alpha-tdep.c: Use get_frame_extra_info.
11515 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11516 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11517 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11518 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11519
11520 * alpha-tdep.c: Use get_next_frame.
11521 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11522 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11523 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11524 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11525 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11526 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11527 * xstormy16-tdep.c: Ditto.
11528
11529 2003-01-07 Andrew Cagney <cagney@redhat.com>
11530
11531 * alpha-tdep.c: Use get_frame_base.
11532 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11533 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11534 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11535 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11536 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11537 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11538 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11539 * config/sparc/tm-sparc.h: Ditto.
11540
11541 2003-01-07 Andrew Cagney <cagney@redhat.com>
11542
11543 * frame.c (deprecated_get_frame_context): New function.
11544 (deprecated_set_frame_context): New function.
11545 * frame.h (deprecated_get_frame_context): Declare.
11546 (deprecated_set_frame_context): Declare.
11547 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11548 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11549
11550 2003-01-07 Andrew Cagney <cagney@redhat.com>
11551
11552 * frame.c (deprecated_set_frame_next_hack): New function.
11553 (deprecated_set_frame_prev_hack): New function.
11554 * frame.h (deprecated_set_frame_next_hack): Declare.
11555 (deprecated_set_frame_prev_hack): Declare.
11556 * mcore-tdep.c (analyze_dummy_frame): Use
11557 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11558 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11559
11560 2003-01-07 David Carlton <carlton@math.stanford.edu>
11561
11562 * linespec.c (decode_line_1): Move code into decode_dollar.
11563 (decode_dollar): New function.
11564
11565 2003-01-07 Andrew Cagney <cagney@redhat.com>
11566
11567 * arm-tdep.c (arm_init_extra_frame_info): Use
11568 deprecated_update_frame_base_hack.
11569 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11570 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11571 (fix_frame_pointer): Ditto.
11572 (mn10300_analyze_prologue): Ditto.
11573
11574 2003-01-07 Andrew Cagney <cagney@redhat.com>
11575
11576 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11577 extra_info using frame_extra_info_zalloc.
11578 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11579 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11580 (sh64_init_extra_frame_info): Ditto.
11581 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11582 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11583 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11584 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11585 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11586 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11587 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11588 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11589 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11590 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11591 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11592 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11593
11594 * mn10300-tdep.c (analyze_dummy_frame): Use
11595 deprecated_set_frame_extra_info_hack.
11596 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11597
11598 2003-01-07 J. Brobecker <brobecker@gnat.com>
11599
11600 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11601 class is not scText. These do not define "real" procedures.
11602 (parse_partial_symbols): Likewise.
11603
11604 2003-01-06 Michael Snyder <msnyder@redhat.com>
11605
11606 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11607
11608 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11609
11610 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11611 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11612 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11613 deprecated_frame_xmalloc_with_cleanup.
11614 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11615 deprecated_frame_xmalloc.
11616 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11617 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11618
11619 2003-01-06 Andrew Cagney <cagney@redhat.com>
11620
11621 * x86-64-linux-tdep.c: Include "osabi.h".
11622 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11623
11624 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11625
11626 2003-01-06 Andrew Cagney <cagney@redhat.com>
11627
11628 * MAINTAINERS (Target Instruction Set Architectures): Update
11629 arm-elf. Can be built with -Werror, has been multiarched.
11630
11631 * value.h (unpack_long): Make buffer parameter constant.
11632 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11633 * scm-lang.h (scm_parse): Ditto.
11634 * defs.h (extract_typed_address, extract_address): Ditto.
11635 (extract_long_unsigned_integer): Ditto.
11636 * inferior.h (unsigned_pointer_to_address): Ditto.
11637 (signed_pointer_to_address): Ditto.
11638 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11639 * gdbarch.h, gdbarch.c: Regenerate.
11640 * findvar.c (extract_long_unsigned_integer): Update.
11641 (extract_address): Update.
11642 (extract_typed_address): Update.
11643 (unsigned_pointer_to_address): Update.
11644 * values.c (unpack_long): Update.
11645 (unpack_double): Update.
11646 (unpack_pointer): Update.
11647 (unpack_field_as_long): Update.
11648 * d10v-tdep.c (d10v_pointer_to_address): Update.
11649 * avr-tdep.c (avr_pointer_to_address): Update.
11650 * scm-lang.c (scm_unpack): Update.
11651 * findvar.c (signed_pointer_to_address): Update.
11652
11653 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11654
11655 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11656 since it is in i386-tdep.c.
11657
11658 2003-01-06 J. Brobecker <brobecker@gnat.com>
11659
11660 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11661 failure introduced in the previous change.
11662
11663 2003-01-05 Michael Chastain <mec@shout.net>
11664
11665 * README: Remove references to deleted remote-*.c files:
11666 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11667 remote-nrom.c, remote-os9k.c, remote-udi.c.
11668
11669 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11670
11671 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11672 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11673 i386_get_longjmp_target.
11674
11675 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11676
11677 * arm-tdep.c (prologue_cache): Change to a pointer.
11678 (_initialize_arm_tdep): Allocate prologue_cache.
11679 (check_prologue_cache): Update.
11680 (save_prologue_cache): Update.
11681 (arm_gdbarch_init): Update.
11682
11683 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11684
11685 * stabsread.c (update_method_name_from_physname): Call complaint()
11686 instead of error.
11687
11688 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11689
11690 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11691 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11692 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11693
11694 * blockframe.c: Include "gdbcmd.h" and "command.h".
11695 (backtrace_below_main): New variable.
11696 (file_frame_chain_valid, func_frame_chain_valid)
11697 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11698 (generic_func_frame_chain_valid): Remove functions.
11699 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11700 (_initialize_blockframe): New function.
11701 * Makefile.in (blockframe.o): Update dependencies.
11702 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11703 comment. Call frame_chain_valid ().
11704 * frame.h: Remove old prototypes. Add prototype for
11705 frame_chain_valid and update comments to match.
11706 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11707 Remove old comment.
11708 * gdbarch.h: Regenerated.
11709 * gdbarch.c: Regenerated.
11710
11711 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11712 set_gdbarch_frame_chain_valid.
11713 * avr-tdep.c (avr_gdbarch_init): Likewise.
11714 * cris-tdep.c (cris_gdbarch_init): Likewise.
11715 * frv-tdep.c (frv_gdbarch_init): Likewise.
11716 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11717 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11718 (i386_nw_init_abi): Likewise.
11719 (i386_gdbarch_init): Likewise.
11720 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11721 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11722 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11723 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11724 * mips-tdep.c (mips_gdbarch_init): Likewise.
11725 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11726 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11727 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11728 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11729 * s390-tdep.c (s390_gdbarch_init): Likewise.
11730 * sh-tdep.c (sh_gdbarch_init): Likewise.
11731 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11732 * v850-tdep.c (v850_gdbarch_init): Likewise.
11733 * vax-tdep.c (vax_gdbarch_init): Likewise.
11734 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11735
11736 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11737 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11738 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11739 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11740 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11741 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11742 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11743 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11744
11745 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11746
11747 * Makefile.in (acconfig_h): Remove incorrect macro.
11748 (config_h): Define.
11749 (osabi.o): Update dependencies.
11750 * configure.tgt: Set gdb_osabi based on target triplet.
11751 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11752 * configure: Regenerated.
11753 * config.in: Regenerated.
11754 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11755 (GDB_OSABI_DEFAULT): Define if not already defined.
11756 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11757 (set_osabi_string): New variables.
11758 (gdbarch_register_osabi): Add new OS ABI to
11759 gdb_osabi_available_names.
11760 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11761 (set_osabi, show_osabi): New functions.
11762 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11763
11764 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11765
11766 * arch-utils.c (gdbarch_info_init): Set osabi to
11767 GDB_OSABI_UNINITIALIZED.
11768 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11769 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11770 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11771 * gdbarch.c: Regenerated.
11772 * gdbarch.h: Regenerated.
11773 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11774 there's no BFD.
11775 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11776 * osabi.h (enum gdb_osabi): Move to defs.h.
11777 (gdbarch_init_osabi): Update prototype.
11778 * defs.h (enum gdb_osabi): Moved here.
11779 * Makefile.in: Update dependencies.
11780
11781 * alpha-tdep.h: Don't include "osabi.h".
11782 (struct gdbarch_tdep): Remove osabi member.
11783 * alpha-tdep.c: Include "osabi.h".
11784 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11785 iterate over arches. Update call to gdbarch_init_osabi.
11786 (alpha_dump_tdep): Don't dump osabi.
11787 * alpha-linux-tdep.c: Include "osabi.h".
11788 * alpha-osf1-tdep.c: Include "osabi.h".
11789 * alphafbsd-tdep.c: Include "osabi.h".
11790 * alphanbsd-tdep.c: Include "osabi.h".
11791
11792 * arm-tdep.h: Don't include "osabi.h".
11793 (struct gdbarch_tdep): Remove osabi member.
11794 * arm-tdep.c: Include "osabi.h".
11795 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11796 iterate over arches. Update call to gdbarch_init_osabi.
11797 (arm_dump_tdep): Don't dump osabi.
11798 * arm-linux-tdep.c: Include "osabi.h".
11799 * armnbsd-tdep.c: Include "osabi.h".
11800
11801 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11802 Update call to gdbarch_init_osabi.
11803
11804 * i386-tdep.h: Don't include "osabi.h".
11805 (struct gdbarch_tdep): Remove osabi member.
11806 * i386-tdep.c: Include "osabi.h".
11807 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11808 iterate over arches. Update call to gdbarch_init_osabi.
11809 (i386_dump_tdep): Don't dump osabi.
11810 * i386-linux-tdep.c: Include "osabi.h".
11811 * i386-sol2-tdep.c: Include "osabi.h".
11812 * i386bsd-tdep.c: Include "osabi.h".
11813 * i386gnu-tdep.c: Include "osabi.h".
11814 * i386ly-tdep.c: Include "osabi.h".
11815 * i386nbsd-tdep.c: Include "osabi.h".
11816 * i386obsd-tdep.c: Include "osabi.h".
11817
11818 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11819 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11820 check osabi when iterating over arches. Update call to
11821 gdbarch_init_osabi.
11822 (mips_dump_tdep): Don't dump osabi.
11823
11824 * ns32k-tdep.h: Don't include "osabi.h".
11825 (struct gdbarch_tdep): Remove.
11826 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11827 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11828 allocate tdep. Update call to gdbarch_init_osabi.
11829 (ns32k_dump_tdep): Remove.
11830 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11831 * ns32knbsd-tdep.c: Include "osabi.h".
11832
11833 * ppc-tdep.h: Don't include "osabi.h".
11834 (struct gdbarch_tdep): Remove osabi member.
11835 * rs6000-tdep.c: Include "osabi.h".
11836 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11837 osabi when iterating over arches. Update call to
11838 gdbarch_init_osabi.
11839 (rs6000_dump_tdep): Don't dump osabi.
11840 * ppc-linux-tdep.c: Include "osabi.h".
11841 * ppcnbsd-tdep.c: Include "osabi.h".
11842
11843 * sh-tdep.h: Don't include "osabi.h".
11844 (struct gdbarch_tdep): Remove osabi member.
11845 * sh-tdep.c: Include "osabi.h".
11846 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11847 iterate over arches. Update call to gdbarch_init_osabi.
11848 (sh_dump_tdep): Don't dump osabi.
11849 * shnbsd-tdep.c: Include "osabi.h".
11850
11851 * sparc-tdep.c: Include "osabi.h".
11852 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11853 iterate over arches. Update call to gdbarch_init_osabi.
11854 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11855 tdep structure.
11856
11857 * vax-tdep.h: Don't include "osabi.h".
11858 (struct gdbarch_tdep): Remove.
11859 * vax-tdep.c: Include "osabi.h".
11860 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11861 iterate over arches. Don't allocate tdep. Update call
11862 to gdbarch_init_osabi.
11863 (vax_dump_tdep): Remove.
11864 (_initialize_vax_tdep): Update call to gdbarch_register.
11865
11866 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11867
11868 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11869 entirely.
11870 (breakpoint_re_set_one): Don't fetch the value for a disabled
11871 watchpoint.
11872
11873 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11874
11875 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11876 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11877 (COERCE_FLOAT_TO_DOUBLE): Remove.
11878 * gdbarch.c: Regenerate.
11879 * gdbarch.h: Regenerate.
11880 * Makefile.in: Remove value_h from gdbarch_h.
11881 * valops.c (coerce_float_to_double): New variable.
11882 (default_coerce_float_to_double): Remove.
11883 (standard_coerce_float_to_double): Remove.
11884 (value_arg_coerce): Use coerce_float_to_double.
11885 (_initialize_valops): Add "set coerce-float-to-double".
11886 * value.h (default_coerce_float_to_double): Remove prototype.
11887 (standard_coerce_float_to_double): Remove prototype.
11888
11889 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11890 prototyped.
11891 * mdebugread.c (parse_symbol): Likewise.
11892 * stabsread.c (define_symbol): Mark all functions as prototyped.
11893
11894 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11895 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11896 set_gdbarch_coerce_float_to_double.
11897 * arm-tdep.c (arm_gdbarch_init): Likewise.
11898 * frv-tdep.c (frv_gdbarch_init): Likewise.
11899 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11900 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11901 * mips-tdep.c (mips_gdbarch_init): Likewise.
11902 (mips_coerce_float_to_double): Remove.
11903 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11904 (rs6000_coerce_float_to_double): Remove.
11905 * s390-tdep.c (s390_gdbarch_init): Likewise.
11906 * sh-tdep.c (sh_gdbarch_init): Likewise.
11907 (sh_coerce_float_to_double): Remove.
11908 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11909 (sparc_coerce_float_to_double): Remove.
11910 * v850-tdep.c (v850_gdbarch_init): Likewise.
11911 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11912 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11913 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11914 (hppa_coerce_float_to_double): Remove prototype.
11915 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11916
11917 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11918
11919 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11920
11921 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11922
11923 Suggested by Stewart Brown <sb24@avaya.com>:
11924 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11925 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11926 (c_type_print_varspec_suffix): Likewise.
11927
11928 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11929
11930 * configure.in: Don't set and AC_SUBST SUBDIRS.
11931 * configure: Regenerated.
11932
11933 * configure.in: Remove code dealing with shared libraries.
11934 * Makefile.in: Remove HLDFLAGS and HLDENV.
11935 * configure: Regenerated.
11936
11937 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11938
11939 * frame.c (deprecated_frame_xmalloc): New function.
11940 (deprecated_set_frame_saved_regs_hack): New function.
11941 (deprecated_set_frame_extra_info_hack): New function.
11942 * frame.h (deprecated_frame_xmalloc): Declare.
11943 (deprecated_set_frame_saved_regs_hack): Declare.
11944 (deprecated_set_frame_extra_info_hack): Declare.
11945
11946 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11947
11948 * configure.in: Move code that provides the --enable-gdbtk option
11949 right after the code that handles the --enable-tui option, and
11950 polish it somewhat.
11951 * configure: Regenerated.
11952
11953 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11954 AC_CHECK_FUNCS and remove the old check for pread64.
11955 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11956 * acconfig.h (_GNU_SOURCE): Add.
11957 (HAVE_PREAD64): Remove.
11958 * configure, aclocal.m4, config.in: Regenerated.
11959
11960 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11961
11962 * alpha-tdep.c: Use get_frame_saved_regs.
11963 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11964 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11965 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11966 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11967 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11968
11969 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11970
11971 * configure.in: Remove all use of the SUBDIRS variable; add
11972 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11973 code providing the --enable-multi-ice option, and move it right in
11974 front of the code that checks whether gdbserver is supported.
11975 Polish that too.
11976 * configure: Regenerated.
11977 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11978 @SUBDIRS@.
11979
11980 2003-01-03 Andrew Cagney <cagney@redhat.com>
11981
11982 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11983 * avr-tdep.c, cris-tdep.c: Ditto.
11984 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11985 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11986
11987 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11988
11989 * configure.in: Remove --enable-netrom option.
11990 * configure: Regenerated.
11991
11992 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11993
11994 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11995 declaration for `struct re_pattern_buffer' instead.
11996 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11997
11998 2003-01-03 J. Brobecker <brobecker@gnat.com>
11999
12000 * mdebugread.c (parse_symbol): Count until the stEnd matching
12001 the structure name.
12002
12003 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12004
12005 * configure.in: Remove --with-cpu option.
12006 subscripts. Remove evil changequotes here.
12007 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12008 * config.in, configure: Regenerated.
12009
12010 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12011 * configure.in: Cleanup section that sources GDB and BFD configure
12012 subscripts. Remove evil changequotes here.
12013 * config.in, configure: Regenerated.
12014
12015 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12016
12017 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12018 frame accessor methods.
12019 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12020 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12021 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12022 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12023 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12024 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12025 * z8k-tdep.c: Ditto.
12026
12027 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12028
12029 * configure.in: Remove UI_OUT configuration code.
12030 * ada-lang.c: Update assuming UI_OUT is always true.
12031 * Makefile.in (UIOUT_CFLAGS): Remove.
12032 * configure: Regenerated.
12033 * TODO: Remove blurb about elimination of -DUI_OUT.
12034
12035 * configure.in: Move code that provides the --enable-gdbcli,
12036 --enable-gdbmi options right before the code that handles the
12037 --enable-tui option. Polish a bit.
12038 * configure: Regenerated.
12039
12040 * configure.in: Rewrite check for GNU regex and the
12041 --without-included regex option, and move it into the "Checks for
12042 library functions" section. This makes us use the system regex
12043 again by default on systems with version 2 of the GNU C library.
12044 This was apparently broken.
12045 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12046 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12047 * config.in, configure: Regenerated.
12048
12049 * configure.in: Move code that provides the --enable-tui option
12050 before the "Checks for libraries" section. Polish the code
12051 somewhat and set need_curses to yes if we build the TUI. Rewrite
12052 code that looks for a library providing termcap functionality to
12053 match more closely what's done in the Readline library, and move
12054 it into to the "Checks for libraries" section.
12055 * configure: Regenerated.
12056 * Makefile.in (TERMCAP): Remove variable.
12057 * config/i386/go32.mh (TERMCAP): Remove variable.
12058
12059 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12060
12061 * MAINTAINERS: Mention gdb_mbuild.sh.
12062 * gdb_mbuild.sh: Rewrite.
12063
12064 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12065
12066 * configure.in: Fix typo in last change.
12067 * config.in, configure: Regenerated.
12068
12069 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12070
12071 * valarith.c (value_binop): Delete obsolete code and comments.
12072 * configure.host: Ditto.
12073 * buildsym.h (make_blockvector): Ditto.
12074 * buildsym.c (make_blockvector): Ditto.
12075 * defs.h (enum language): Ditto.
12076 (chill_demangle): Ditto.
12077 * elfread.c (elf_symtab_read): Ditto.
12078 * dwarfread.c (CHILL_PRODUCER): Ditto.
12079 (set_cu_language): Ditto.
12080 (handle_producer): Ditto.
12081 * expprint.c (print_subexp): Ditto.
12082 * gdbtypes.c (chill_varying_type): Ditto.
12083 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12084 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12085 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12086 (chill_varying_type): Ditto.
12087 * language.h (_LANG_chill): Ditto.
12088 * language.c (binop_result_type, integral_type): Ditto.
12089 (character_type, string_type, structured_type): Ditto.
12090 (lang_bool_type, binop_type_check): Ditto.
12091 * stabsread.h (os9k_stabs): Ditto.
12092 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12093 (define_symbol, read_type, read_struct_fields): Ditto.
12094 (read_array_type, read_enum_type, read_huge_number): Ditto.
12095 (read_range_type, start_stabs): Ditto.
12096 * symfile.c (init_filename_language_table): Ditto.
12097 (add_psymbol_with_dem_name_to_list): Ditto.
12098 * symtab.c (symbol_init_language_specific): Ditto.
12099 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12100 * symtab.h (struct general_symbol_info): Ditto.
12101 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12102 * typeprint.c (typedef_print): Ditto.
12103 * utils.c (fprintf_symbol_filtered): Ditto.
12104 * valops.c (value_cast, search_struct_field, value_slice): Delete
12105 obsolete code.
12106 (varying_to_slice): Delete function.
12107 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12108 (varying_to_slice): Delete declaration.
12109 * MAINTAINERS: Update.
12110
12111 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12112
12113 * configure.in: Reorganize "Checks for library functions section"
12114 a bit. Remove check for `btowc' and `isascii' functions.
12115 * configure: Regenerated.
12116
12117 * acconfig.h (_MSE_INT_H): Remove.
12118 * configure.in: Create "Checks for header files" section, and move
12119 appropriate tests there. Don't check for objlist.h, wchar.h,
12120 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12121 misdetection fix. Also add "Checks for types", "Checks for
12122 compiler characteristics" and "Checks for library functions"
12123 sections.
12124 * config.in, configure: Regenerated.
12125
12126 * configure.in: Create "Checks for programs" section, and move
12127 appropriate tests there.
12128
12129 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12130
12131 * configure.in: Create "Checks for libraries" section, and move
12132 appropriate tests there. Cleanup check for wctype in libw. Use
12133 AC_SEARCH_LIBS to see whether we need libsocket.
12134 * configure: Regenerated.
12135
12136 For older changes see ChangeLog-2002
12137 \f
12138 Local Variables:
12139 mode: change-log
12140 left-margin: 8
12141 fill-column: 74
12142 version-control: never
12143 End: