2003-09-19 Andrew Cagney <cagney@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2003-09-19 Andrew Cagney <cagney@redhat.com>
2
3 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
4 DEPRECATED_NPC_REGNUM.
5 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
6
7 2003-09-19 Christopher Faylor <cgf@redhat.com>
8
9 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
10
11 2003-09-19 Jim Blandy <jimb@redhat.com>
12
13 * macrotab.c (macro_include): Use the correct comparison to find
14 the appropriate place for this inclusion in the list.
15
16 2003-09-19 Andrew Cagney <cagney@redhat.com>
17
18 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
19 (DEPRECATED_HPUX_TEXT_END): Define.
20 (deprecated_hpux_text_end): Declare.
21 (struct target_ops): Declare opaque.
22 * hppah-nat.c (text_end): Make static.
23 (deprecated_hpux_text_end): New function.
24 * exec.c (text_end): Delete global variable.
25 (NEED_TEXT_START_END): Do not define.
26 (exec_file_attach): Replace code computing "text_end" code with
27 call to DEPRECATED_HPUX_TEXT_END.
28
29 2003-09-19 Andrew Cagney <cagney@redhat.com>
30
31 * utils.c (align_up, align_down): New functions.
32 * defs.h (align_up, align_down): Declare.
33 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
34 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
35 and "align_down".
36 (round_up, round_down): Delete functions.
37 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
38 "align_down".
39 (ROUND_DOWN, ROUND_UP): Delete macros.
40 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
41 * h8300-tdep.c: Replace "round_up" and "round_down" with
42 "align_up" and "align_down".
43 (round_up, round_down): Delete macros.
44 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
45 "align_down".
46 (ROUND_UP, ROUND_DOWN): Delete macros.
47
48 2003-09-18 J. Brobecker <brobecker@gnat.com>
49
50 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
51 hard-coded constant. Use the proper machine name instead.
52
53 2003-09-17 Andrew Cagney <cagney@redhat.com>
54
55 * sparc-tdep.c (legacy_register_name): Delete function.
56 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
57 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
58 * infcmd.c (gdb_register_name): Delete variable.
59 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
60 REGISTER_NAME and "tm.h".
61 * gdbarch.h, gdbarch.c: Regenerate.
62 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
63 REGISTER_NAMES in comments.
64 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
65 * m68klinux-nat.c (regmap): Ditto.
66
67 2003-09-17 Jim Blandy <jimb@redhat.com>
68
69 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
70
71 2003-09-17 Andrew Cagney <cagney@redhat.com>
72
73 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
74 (ppcnbsd_init_abi): Set "use_struct_convention" to
75 "ppcnbsd_use_struct_convention".
76
77 2003-09-17 Mark Kettenis <kettenis@gnu.org>
78
79 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
80 * gdbarch.h, gdbarch.c: Regenerate.
81 (stabs_argument_has_addr): New architecture method.
82 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
83 * arch-utils.c: Include "buildsym.h".
84 (default_stabs_argument_has_addr): New function.
85 * stabsread.c (define_symbol): Use stabs_argument_has_addr
86 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
87
88 2003-09-17 Andrew Cagney <cagney@redhat.com>
89
90 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
91 * gdbarch.h, gdbarch.c: Regenerate.
92 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
93 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
94 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
95 * sparcnbsd-tdep.c: Update.
96
97 2003-09-17 Andrew Cagney <cagney@redhat.com>
98
99 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
100 * gdbarch.h, gdbarch.c: Regenerate.
101 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
102 * d10v-tdep.c, frame.c: Update.
103 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
104 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
105 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
106 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
107 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
108 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
109 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
110 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
111 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
112 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
113 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
114 * config/pa/nm-hppah.h: Update.
115
116 2003-09-16 Andrew Cagney <cagney@redhat.com>
117
118 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
119 "use_struct_convention" to "ppc_linux_use_struct_convention".
120 (ppc_linux_use_struct_convention): New function.
121 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
122 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
123 "rs6000_use_struct_convention".
124 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
125 declaration.
126 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
127 Delete function.
128
129 2003-09-16 Andrew Cagney <cagney@redhat.com>
130
131 * buildsym.c: Remove more occurances of "register".
132 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
133 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
134 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
135 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
136 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
137 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
138 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
139 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
140
141 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
142
143 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
144 numbers to enumeration values.
145 * sh-tdep.c: Accomodate above change.
146 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
147 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
148 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
149 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
150 (IS_FPUSH): Rename from IS_FMOV.
151 (sh_extract_struct_value_address): Remove useless comment.
152 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
153 instead of own local values.
154 (sh_dump_tdep): Remove.
155 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
156 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
157
158 2003-09-15 Andrew Cagney <cagney@redhat.com>
159
160 * doublest.c (convert_floatformat_to_doublest): No longer need to
161 cast "exp_bias" to an int. Reverts 2002-12-04 change.
162
163 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
164
165 * values.c (unpack_double): Call floatformat_is_valid.
166
167 2003-09-15 Mark Kettenis <kettenis@gnu.org>
168
169 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
170 ps_strings into a long.
171
172 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
173 _initialize_am64fbsd_nat.
174
175 2003-09-15 Kevin Buettner <kevinb@redhat.com>
176
177 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
178 associated with DW_AT_ranges attribute is out of bounds.
179
180 2003-09-15 David Lecomber <dsl@sources.redhat.com>
181
182 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
183
184 2003-09-14 Michael Chastain <mec@shout.net>
185
186 * config/m68k/nm-apollo68v.h: Delete.
187 * config/m68k/xm-apollo68v.h: Delete.
188
189 2003-09-14 Andrew Cagney <cagney@redhat.com>
190
191 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
192 * dcache.c: Update copyrights and descriptions.
193 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
194
195 2003-09-14 Andrew Cagney <cagney@redhat.com>
196
197 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
198 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
199
200 2003-09-14 Andrew Cagney <cagney@redhat.com>
201
202 * alpha-nat.c: Remove some occurances of "register".
203 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
204 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
205 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
206 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
207 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
208 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
209 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
210 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
211 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
212 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
213 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
214 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
215 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
216 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
217 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
218 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
219 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
220 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
221 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
222 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
223 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
224 * values.c, vax-tdep.c, xcoffread.c: Ditto.
225
226 2003-09-13 Andrew Cagney <cagney@redhat.com>
227
228 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
229 * ppc-tdep.h (struct regcache): Declare opaque.
230 * objfiles.h (struct objfile_data): Declare opaque.
231 * cp-support.h (struct objfile): Declare opaque.
232 * linux-nat.h (target_waitstatus): Declare opaque.
233
234 2003-09-14 Mark Kettenis <kettenis@gnu.org>
235
236 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
237 (stabs_argument_has_addr): New architecture method.
238 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
239 * arch-utils.c: Include "buildsym.h".
240 (default_stabs_argument_has_addr): New function.
241 * stabsread.c (define_symbol): Use stabs_argument_has_addr
242 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
243
244 * cris-tdep.c (cris_gdbarch_init): Set
245 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
246 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
247 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
248 * mips-tdep.c (mips_gdbarch_init): Likewise.
249 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
250 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
251
252 2003-09-13 Andrew Cagney <cagney@redhat.com>
253
254 * values.c (using_struct_return): Delete "function" and "funcaddr"
255 parameters.
256 * value.h (using_struct_return): Update declaration.
257 * infcmd.c (finish_command_continuation): Update.
258 (finish_command): Update.
259 * infcall.c (call_function_by_hand): Update.
260 * eval.c (evaluate_subexp_standard): Update.
261
262 2003-09-13 Christopher Faylor <cgf@redhat.com>
263
264 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
265 SSE registers since gdb will not operate correctly without this.
266 Restore include file ordering munged in previous change.
267 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
268
269 2003-09-13 Mark Kettenis <kettenis@gnu.org>
270
271 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
272 REG_STRUCT_HAS_ADDR.
273 * gdbarch.c, gdbarch.h: Updated.
274 * infcall.c (call_function_by_hand): Update.
275 * stabsread.c (define_symbol): Updated.
276
277 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
278
279 2003-09-12 Christopher Faylor <cgf@redhat.com>
280
281 * win32-nat.c: Reorganize so that defines used by target headers are
282 actually defined by the system headers.
283 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
284 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
285
286 2003-09-12 Jim Blandy <jimb@redhat.com>
287
288 * dbxread.c (read_dbx_symtab): Don't report an internal error if
289 the file has no .data, .bss, or .rodata sections. Instead wait
290 until we see a variable alleged to live in one of those sections.
291
292 * dbxread.c (read_dbx_symtab): If we have no .data section and no
293 .bss section, presume that any variables we find live in the
294 .rodata section.
295
296 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
297 offsets for global and static variables.
298
299 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
300 symbol types are, by definition, in the .data section, so it is
301 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
302 If there is no .data section, there should be no N_DATA or N_DATA
303 | N_EXT symbols.
304
305 2003-09-12 Mark Kettenis <kettenis@gnu.org>
306
307 * amd64fbsd-tdep.c: Fix sigtramp recognition.
308 (amd64fbsd_sigcontext_addr): Rewrite.
309 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
310 with correct values.
311 (amd64fbsd_sc_reg_offset): Initialize with correct values.
312 (amd64fbsd_init_abi): Fix typo.
313
314 2003-09-12 Andrew Cagney <cagney@redhat.com>
315
316 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
317 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
318
319 2003-09-12 Andrew Cagney <cagney@redhat.com>
320
321 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
322 "entry_file_highpc". Update comments.
323 * defs.h (deprecated_inside_entry_file): Rename
324 "inside_entry_file".
325 * blockframe.c (deprecated_inside_entry_file): Rename
326 "inside_entry_file".
327 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
328 * vax-tdep.c (vax_frame_chain): Update.
329 * sh64-tdep.c (sh64_frame_chain): Update.
330 * sh-tdep.c (sh_frame_chain): Update.
331 * rs6000-tdep.c (rs6000_frame_chain): Update.
332 * ns32k-tdep.c (ns32k_frame_chain): Update.
333 * mips-tdep.c (mips_frame_chain): Update.
334 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
335 * m32r-tdep.c (m32r_frame_this_id): Update.
336 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
337 * frv-tdep.c (frv_frame_this_id): Update.
338 * d10v-tdep.c (d10v_frame_this_id): Update.
339 * cris-tdep.c (cris_frame_chain): Update.
340 * blockframe.c (legacy_frame_chain_valid): Update.
341 * avr-tdep.c (avr_frame_this_id): Update.
342 * arm-tdep.c (arm_prologue_this_id): Update.
343 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
344 * objfiles.c (objfile_relocate): Update.
345 * mipsread.c (mipscoff_symfile_read): Update.
346 (mipscoff_symfile_read): Update.
347 * mdebugread.c (parse_partial_symbols): Update.
348 * dwarfread.c (read_file_scope): Update.
349 * dwarf2read.c (read_file_scope): Update.
350 * dbxread.c (read_dbx_symtab): Update.
351 (read_dbx_symtab): Update.
352 * coffread.c (complete_symtab): Update.
353
354 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
355
356 * top.c (quit_target): New static helper function.
357 (quit_force): Moved code to quit_target(). Call quit_target()
358 via catch_errors() to catch errors during quit.
359
360 2003-09-11 David Carlton <carlton@kealia.com>
361
362 * buildsym.c (finish_block): Use allocate_block to allocate the
363 block.
364 * mdebugread.c (new_block): Add FIXME.
365
366 2003-09-11 David Carlton <carlton@kealia.com>
367
368 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
369 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
370 (recursive_dump_type): Ditto.
371 * printcmd.c (print_formatted): Ditto.
372 * typeprint.c (print_type_scalar): Ditto.
373 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
374 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
375 * cp-support.h: Declare cp_check_possible_namespace_symbols,
376 maint_cplus_cmd_list.
377 * cp-support.c: Make maint_cplus_cmd_list extern.
378 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
379 command.h.
380 (lookup_symbol_file): Look in possible namespace blocks when
381 appropriate.
382 (initialize_namespace_symtab): New.
383 (get_possible_namespace_block, free_namespace_block)
384 (check_possible_namespace_symbols)
385 (check_possible_namespace_symbols_loop)
386 (check_one_possible_namespace_symbol)
387 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
388 (_initialize_cp_namespace): Ditto.
389 * block.h: Declare allocate_block.
390 * block.c (allocate_block): New.
391 * jv-lang.c (get_java_class_symtab): Allocate blocks via
392 allocate_block.
393 * symfile.h: Update declaration of add_psymbol_to_list.
394 * symfile.c (add_psymbol_to_list): Return the partial symbol in
395 question.
396 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
397 scan_partial_symbols_call.
398 (scan_partial_symbols): Add NAMESPACE argument; update calls to
399 helper functions.
400 (add_partial_symbol): If necessary, scan mangled names for names
401 of namespaces.
402 (add_partial_namespace): Add NAMESPACE argument; generate partial
403 symbols associated to namespaces.
404 (add_partial_enumeration): Add NAMESPACE argument.
405 (new_symbol): Allow namespace syms.
406 (read_namespace): Generate namespace syms.
407 * objfiles.h: Add opaque declaration of struct symtab.
408 (struct objfile): Add cp_namespace_symtab member.
409 * objfiles.c (allocate_objfile): Set
410 objfile->cp_namespace_symtab.
411 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
412 dictionary_h, command_h.
413
414 2003-09-11 Andrew Cagney <cagney@redhat.com>
415
416 * rs6000-tdep.c (rs6000_push_dummy_call): Use
417 regcache_raw_write_signed to set SP_REGNUM, move the operation to
418 near the function's end.
419 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
420 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
421 regcache_raw_write_signed to set SP_REGNUM.
422
423 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
424
425 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
426 orig_addrs is set up properly.
427
428 2003-09-11 Andrew Cagney <cagney@redhat.com>
429
430 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
431 * gdbarch.h, gdbarch.c: Re-generate.
432 * infcall.c (call_function_by_hand): Update.
433 * hppa-tdep.c (hppa_push_arguments): Update.
434 * ada-lang.c (place_on_stack): Update.
435 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
436 * sparc-tdep.c (sparc_gdbarch_init): Update.
437 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
438 * hppa-tdep.c (hppa_gdbarch_init): Update.
439 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
440 stack_align.
441
442 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
443
444 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
445 register do need a frame.
446
447 2003-09-11 Andrew Cagney <cagney@redhat.com>
448
449 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
450 buildable since GDB 5.0.
451 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
452 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
453 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
454 * irix4-nat.c: Delete file.
455 * config/mips/irix4.mh: Delete file.
456 * config/mips/irix3.mh: Delete file.
457 * config/mips/irix3.mt: Delete file.
458 * config/mips/tm-irix3.h: Delete file.
459 * config/mips/nm-irix3.h: Delete file.
460 * config/mips/xm-irix3.h: Delete file.
461 * config/mips/nm-irix4.h: Delete file.
462 * config/mips/xm-irix4.h: Delete file.
463 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
464
465 2003-09-10 J. Brobecker <brobecker@gnat.com>
466
467 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
468 * Makefile.in (hppa-tdep.o): Update dependencies.
469
470 2003-09-10 James E Wilson <wilson@specifixinc.com>
471
472 * MAINTAINERS: Change my e-mail address. Move to paper trail
473 section.
474
475 2003-09-10 Kevin Buettner <kevinb@redhat.com>
476
477 * MAINTAINERS (frv): New ISA entry.
478
479 2003-09-10 Kevin Buettner <kevinb@redhat.com>
480
481 * frv-tdep.c (dis-asm.h): Include.
482 * Makefile.in (frv-tdep.o): Update dependencies.
483
484 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
485
486 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
487 Fix typo for high range of floating registers.
488
489 2003-09-09 David Carlton <carlton@kealia.com>
490
491 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
492 highpc initialization here out of scan_partial_symbols.
493 (scan_partial_symbols): Restructure into a recursive version,
494 calling add_partial_namespace and add_partial_enumeration when
495 appropriate.
496 (add_partial_namespace): New.
497 (add_partial_enumeration, locate_pdi_sibling): Ditto.
498
499 2003-09-09 Andrew Cagney <cagney@redhat.com>
500
501 * rs6000-tdep.c (ppc_push_return_address): Delete function.
502 (rs6000_push_dummy_call): Set LR to BP_ADDR.
503 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
504 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
505
506 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
507 (rs6000_push_dummy_call): Set the "TOC" register.
508
509 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
510 methods "max_register_raw_size", "max_register_virtual_size" or
511 "register_virtual_size".
512
513 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
514
515 * MAINTAINERS: Update my e-mail address.
516
517 2003-09-09 Andrew Cagney <cagney@redhat.com>
518
519 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
520 (rs6000_push_dummy_call): Store the struct return address.
521 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
522
523 2003-09-09 Andrew Cagney <cagney@redhat.com>
524
525 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
526 "ppc_sysv_abi_push_arguments".
527 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
528 "ppc_sysv_abi_push_arguments".
529 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
530 instead of "push_arguments".
531 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
532
533 2003-09-09 Andrew Cagney <cagney@redhat.com>
534
535 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
536 instead of CALL_DUMMY_ADDRESS.
537
538 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
539
540 * p-lang.c: Eliminate "register".
541 * c-lang.c: Ditto.
542 * expprint.c: Ditto.
543 * f-lang.c: Ditto.
544 * jv-lang.c: Ditto.
545 * language.c: Ditto.
546 * m2-lang.c: Ditto.
547 * parse.c: Ditto.
548 * scm-lang.c: Ditto.
549 * objc-lang.c: Ditto.
550
551 2003-09-09 Nick Clifton <nickc@redhat.com>
552
553 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
554
555 2003-09-04 Andrew Cagney <cagney@redhat.com>
556
557 * avr-tdep.c: Include "dis-asm.h".
558 * cris-tdep.c: Include "dis-asm.h".
559 (cris_delayed_get_disassembler): Use "struct disassemble_info"
560 instead of corresponding typedef.
561 * h8300-tdep.c: Include "dis-asm.h".
562 * ia64-tdep.c: Include "dis-asm.h".
563 * i386-tdep.c: Include "dis-asm.h".
564 (i386_print_insn): Use "struct disassemble_info" instead of
565 corresponding typedef.
566 * m68k-tdep.c: Include "dis-asm.h".
567 * mcore-tdep.c: Include "dis-asm.h".
568 * mips-tdep.c: Include "dis-asm.h".
569 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
570 instead of corresponding typedef.
571 * ns32k-tdep.c: Include "dis-asm.h".
572 * s390-tdep.c: Include "dis-asm.h".
573 * sparc-tdep.c: Include "dis-asm.h".
574 * vax-tdep.c: Include "dis-asm.h".
575 * v850-tdep.c: Include "dis-asm.h".
576 * mn10300-tdep.c: Include "dis-asm.h".
577 * rs6000-tdep.c: Include "dis-asm.h".
578 * xstormy16-tdep.c: Include "dis-asm.h".
579 (_initialize_xstormy16_tdep): Delete "extern" declaration of
580 print_insn_xstormy16.
581 * Makefile.in (v850-tdep.o): Update dependencies.
582 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
583 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
584 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
585 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
586 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
587 (gdbarch_h): Remove $(dis_asm_h).
588 * disasm.c: Include "dis-asm.h".
589 (dis_asm_read_memory): Use "struct disassemble_info" instead of
590 corresponding typedef.
591 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
592 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
593 * gdbarch.sh: Do not include "dis-asm.h".
594 (struct disassemble_info): Declare opaque.
595 (TARGET_PRINT_INSN): Update declaration.
596 * gdbarch.h, gdbarch.c: Re-generate.
597
598 2003-09-08 Andrew Cagney <cagney@redhat.com>
599
600 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
601 CALL_DUMMY_ADDRESS, change to a predicate.
602 * gdbarch.h, gdbarch.c: Re-generate.
603 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
604 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
605 * infcall.c (call_function_by_hand): Ditto.
606 * sparc-tdep.c (sparc_push_return_address): Ditto.
607 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
608 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
609 CALL_DUMMY_ADDRESS with entry_point_address.
610 * v850-tdep.c (v850_push_return_address): Ditto.
611 * s390-tdep.c (s390_push_return_address): Ditto.
612 * rs6000-tdep.c (ppc_push_return_address): Ditto.
613 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
614 * mcore-tdep.c (mcore_push_return_address): Ditto.
615 * cris-tdep.c (cris_push_return_address): Ditto.
616 * arm-tdep.c (arm_push_return_address): Ditto.
617
618 2003-09-08 Andrew Cagney <cagney@redhat.com>
619
620 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
621 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
622 and REG_UNMODIFIED to REG_SAME_VALUE.
623 (execute_cfa_program): Update.
624 (dwarf2_frame_cache): Update. Initialize table to
625 REG_UNSPECIFIED, complain if CFI fails to specify a register's
626 location.
627 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
628
629 2003-09-08 Andrew Cagney <cagney@redhat.com>
630
631 * gnu-nat.c: Remove "inline" function attribute.
632 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
633
634 2003-09-08 Kevin Buettner <kevinb@redhat.com>
635
636 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
637 target.
638
639 2003-09-08 Kevin Buettner <kevinb@redhat.com>
640
641 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
642 (frame_extra_info): Rename this struct to frv_unwind_cache.
643 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
644 Add fields ``prev_sp'' and ``base''.
645 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
646 (frv_saved_pc_after_call, frv_init_extra_frame_info)
647 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
648 Delete.
649 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
650 Revise all callers. Fill in the unwind cache argument and make
651 other adjustments to account for new frame mechanisms.
652 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
653 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
654 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
655 (frv_frame_unwind, frv_frame_base): New structs.
656 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
657 additional arguments expected by this method and adjust function
658 body accordingly.
659 (frv_gdbarch_init): Remove calls to the following functions:
660 set_gdbarch_deprecated_init_frame_pc(),
661 set_gdbarch_deprecated_saved_pc_after_call(),
662 set_gdbarch_deprecated_frame_chain(),
663 set_gdbarch_deprecated_frame_saved_pc(),
664 set_gdbarch_deprecated_frame_init_saved_regs(),
665 set_gdbarch_deprecated_push_arguments(),
666 set_gdbarch_deprecated_push_return_address(),
667 set_gdbarch_deprecated_pop_frame(),
668 set_gdbarch_deprecated_call_dummy_words(),
669 set_gdbarch_deprecated_sizeof_call_dummy_words(),
670 set_gdbarch_deprecated_init_extra_frame_info(),
671 set_gdbarch_deprecated_dummy_write_sp(), and
672 set_gdbarch_deprecated_pc_in_call_dummy().
673 Add calls to the following functions:
674 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
675 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
676 frame_base_set_default().
677 * Makefile.in (frv-tdep.o): Update dependencies.
678
679 2003-09-09 Mark Kettenis <kettenis@gnu.org>
680
681 * dwarf2-frame.c (read_encoded_value): Add support for
682 DW_EH_PE_aligned encoding.
683
684 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
685
686 * infrun.c (normal_stop): Don't print a message if the inferior
687 has exited.
688
689 2003-09-08 Jim Blandy <jimb@redhat.com>
690
691 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
692 * dbxread.c: #include "gdb_assert.h".
693 (read_dbx_symtab): If the objfile has no .data section, use the
694 section index for the .bss section instead.
695
696 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
697
698 * frame.c (deprecated_safe_get_selected_frame): New function.
699 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
700 * findvar.c (read_var_value): Call it.
701
702 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
703
704 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
705 (sh64-tdep.o): Add dependencies.
706 * configure.tgt: Add FIXME to sh-*-linux*.
707 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
708 (sh_gdbarch_init): Always set correct sh_show_regs function
709 pointer. Call sh64_gdbarch_init() if machine type is sh5.
710 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
711 * sh64-tdep.c: New file, containing all sh64 related code from
712 sh-tdep.c.
713 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
714 * config/sh/linux.mt (TDEPFILES): Ditto.
715 * config/sh/nbsd.mt (TDEPFILES): Ditto.
716 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
717 * config/sh/wince.mt (TDEPFILES): Ditto.
718
719 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
720
721 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
722 (stop_wait_callback): Handle !lp->signalled also.
723 (lin_lwp_has_pending, flush_callback): New functions.
724 (lin_lwp_wait): Call flush_callback.
725 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
726 (linux_proc_pending_signals): New function.
727 * linux-nat.h (linux_proc_pending_signals): Add prototype.
728
729 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
730
731 From Nick Kelsey <nickk@ubicom.com>:
732 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
733 when the stop PC is at the beginning of a function also.
734
735 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
736
737 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
738 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
739
740 2003-09-06 Mark Kettenis <kettenis@gnu.org>
741
742 * sol-thread.c: Include "gdb_string.h".
743
744 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
745
746 * gcore.c: Reorder include files in alphabetical order. Include
747 "gdb_assert.h". Various coding style fixes.
748 (derive_stack_segment, derive_heap_segment): Replace check for
749 non-null BOTTOM and TOP with gdb_assert.
750 (derive_heap_segment): Replace check for successful creation of
751 ZERO with gdb_assert.
752 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
753
754 2003-09-04 Andrew Cagney <cagney@redhat.com>
755
756 * thread-db.c (verbose_dlsym): New function.
757 (thread_db_load): Use verbose_dlsym
758 (thread_db_new_objfile): Print that libthread_db was loaded, and
759 that thread debugging was enabled.
760
761 2003-09-04 Andrew Cagney <cagney@redhat.com>
762
763 * configure.tgt: Add "mips64*-*-*" target. Delete
764 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
765 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
766 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
767 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
768 mips*-sony-*, and mips64*-*-elf* targets.
769 * config/mips/embedl.mt: Delete file.
770 * config/mips/embedl64.mt: Delete file.
771 * config/mips/mips.mt: Delete file.
772 * config/mips/mips64.mt: Delete file.
773 * config/mips/tm-embed.h: Delete file.
774 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
775 * config/mips/embed64.mt: Delete out-of-date comment.
776
777 2003-09-04 Andrew Cagney <cagney@redhat.com>
778
779 * hppa-tdep.c (hppa_gdbarch_init): Set
780 "have_nonsteppable_watchpoint".
781 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
782 * mips-tdep.c (mips_dump_tdep): Do not print
783 HAVE_NONSTEPPABLE_WATCHPOINT.
784 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
785 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
786 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
787 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
788
789 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
790
791 * breakpoint.c (watchpoint_check): Remove accidentally checked in
792 unused code. Add comment.
793
794 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
795
796 * breakpoint.c (watchpoint_check): Check for pc being in an
797 epilogue if watchpoint frame couldn't be found.
798
799 2003-09-04 Andrew Cagney <cagney@redhat.com>
800
801 * Makefile.in: Re-generate all dependencies.
802
803 2003-09-03 Andrew Cagney <cagney@redhat.com>
804
805 * arch-utils.h (legacy_print_insn): Delete declaration.
806 * arch-utils.c (legacy_print_insn): Delete function.
807 * disasm.c (deprecated_tm_print_insn_info): Delete.
808 (_initialize_disasm): Delete function, contained code initializing
809 deprecated_tm_print_insn_info.
810 * gdbarch.sh (deprecated_tm_print_insn): Delete.
811 (deprecated_tm_print_insn_info): Delete.
812 (TARGET_PRINT_INSN): Do not provide a default.
813 * gdbarch.h, gdbarch.c: Re-generate.
814
815 2003-09-03 Andrew Cagney <cagney@redhat.com>
816
817 * disasm.c (fprintf_disasm): New function.
818 (gdb_disassemble_info): Call "init_disassemble_info", instead of
819 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
820 reverts 2003-08-14 change.
821 (_initialize_disasm): Call "init_disassemble_info", instead of
822 INIT_DISASSEMBLE_INFO_NO_ARCH.
823
824 2003-09-03 Michael Snyder <msnyder@redhat.com>
825
826 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
827
828 2003-09-03 Andrew Cagney <cagney@redhat.com>
829
830 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
831 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
832 * symfile.c (syms_from_objfile): Update.
833 (reread_symbols): `Update
834 * exec.c (exec_file_attach): Update.
835 (exec_file_attach): Update.
836 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
837 2003-08-29 change.
838 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
839
840 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
841
842 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
843 trad-frame.h.
844 (arm_get_cache): Delete macro.
845 (struct arm_prologue_cache): Update comments. Make saved_regs into
846 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
847 to prev_sp.
848 (thumb_scan_prologue): Update for cache changes. Don't call
849 DEPRECATED_PC_IN_CALL_DUMMY.
850 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
851 argument and use it in desperation search for our prologue. Do not
852 search past the specified PC.
853 (arm_make_prologue_cache): Simplify.
854
855 (arm_prologue_this_id, arm_prologue_prev_register)
856 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
857 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
858 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
859 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
860 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
861
862 (arm_frame_chain_valid, arm_find_callers_reg)
863 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
864 (arm_pop_frame): Delete obsolete methods.
865 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
866
867 (arm_gdbarch_init): Update for new frame methods. Register prologue
868 and sigtramp unwinders. Set the default frame base method.
869
870 * Makefile.in (arm-tdep.o): Update dependencies.
871 * varobj.c (find_frame_addr_in_frame_chain): Call
872 get_frame_base_address.
873 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
874
875 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
876
877 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
878 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
879 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
880 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
881 Take NEXT_FRAME and CACHE arguments. Call
882 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
883 Set unwound_pc in CACHE instead of modifying the frame argument.
884 Don't bother checking the frame type when looking for sigtramp
885 frames.
886 (arm_make_prologue_cache, arm_frame_chain)
887 (arm_init_extra_frame_info): New functions.
888
889 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
890
891 * arm-tdep.c (arm_get_cache): Define.
892 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
893 unwound_sp, unwound_pc, and saved_regs.
894 (thumb_scan_prologue): Take a cache instead of the frame.
895 (arm_scan_prologue): Likewise.
896 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
897 instead of a temporary frame.
898 (arm_init_extra_frame_info): Allocate and use a cache.
899 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
900
901 2003-09-03 Andrew Cagney <cagney@redhat.com>
902
903 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
904 * config/mips/wince.mt (TM_CLIBS): Ditto.
905 * config/sh/wince.mt (TM_CLIBS): Ditto.
906 * config/pa/hppa64.mt (TM_CLIBS): Delete.
907 * config/sparc/sp64.mt (CC): Delete.
908
909 2003-09-03 Andrew Cagney <cagney@redhat.com>
910
911 * defs.h: Do not include "arch-utils.h".
912 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
913 GDB_MULTI_ARCH_PURE.
914 * configure.in (GDB_MULTI_ARCH): Do not define.
915 * configure, config.in: Regenerate.
916 * configure.tgt: Do not set variable "gdb_multi_arch".
917 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
918 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
919 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
920 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
921 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
922 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
923 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
924 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
925 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
926 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
927 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
928 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
929 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
930 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
931 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
932 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
933 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
934 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
935
936 2003-08-30 Michael Chastain <mec@shout.net>
937
938 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
939 * config/m68k/nm-hp300hpux.h: Delete.
940 * config/m68k/tm-hp300hpux.h: Delete.
941 * config/m68k/xm-hp300hpux.h: Delete.
942 * config/m68k/xm-hp300bsd.h: Delete.
943 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
944 tm-hp300hpux.h, xm-hp300hpux.h.
945 * somsolib.c: Remove comment about hp300 shared libraries.
946
947 2003-08-31 Mark Kettenis <kettenis@gnu.org>
948
949 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
950 Only define PTRACE_GET_THREAD_AREA is not already defined.
951 Various style fixes in code and comments and some additional
952 spelling fixes in comments. Move after functions dealing with
953 debug registers.
954 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
955 Fix coding-style.
956
957 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
958 frame_unwind_register_unsigned instead of
959 frame_unwind_unsigned_register.
960
961 2003-08-30 Mark Kettenis <kettenis@gnu.org>
962
963 * configure.in: Search for gethostbyname in libnsl.
964 * configure: Regenerated.
965
966 2003-08-29 Mark Kettenis <kettenis@gnu.org>
967
968 * configure.in: Remove redundant AC_MSG_RESULT in check for
969 uintptr_t in stdint.h.
970 * configure: Regenerated.
971
972 * amd64-nat.h (struct regcache): Add opaque declaration.
973
974 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
975 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
976 Change "register array" to "register cache" in comments.
977 (x86_64_linux_gregset64_reg_offset): New variable.
978 (GETREGS_SUPPLIES): Remove macro.
979 (supply_gregset): Call amd64_supply_native_gregset instead of
980 x86_64_linux_supply_gregset.
981 (fill_gregset): Rename `regno' to `regnum'. Call
982 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
983 (store_regs): Rename `regno' to `regnum'.
984 (store_fpregs): Rename `regno' to `regnum'.
985 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
986 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
987 Reorganize function a bit.
988 (store_inferior_registers): Rename `regno' to `regnum'. Use
989 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
990 Reorganize function a bit.
991 (_initialize_x86_64_linux_nat): New function.
992 * config/i386/x86-64linux.mh.
993
994 2003-08-29 Andrew Cagney <cagney@redhat.com>
995
996 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
997 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
998 (target_remove_watchpoint): Delete macro.
999 (target_insert_watchpoint): Delete macro.
1000 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1001 (remote_mips_stopped_by_watchpoint): Delete declaration.
1002 (remote_mips_remove_watchpoint): Delete declaration.
1003 (remote_mips_set_watchpoint): Delete declaration.
1004 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1005 * remote-mips.c (_initialize_remote_mips): Set
1006 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1007 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1008 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1009 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1010 (mips_stopped_by_watchpoint): Rename
1011 remote_mips_stopped_by_watchpoint.
1012 (mips_can_hardware_watchpoint): Rename
1013 remote_mips_can_use_hardware_watchpoint, update function
1014 signature.
1015
1016 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1017
1018 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1019 USER_DS. We haven't given them a register number yet.
1020
1021 * amd64-nat.h: New file.
1022 * amd64-nat.c: New file.
1023 * amd64fbsd-nat.c: Include "amd64-nat.h".
1024 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1025 (amd64fbsd32_r_reg_offset): New variable.
1026 (supply_gregset): Simply call amd64_supply_native_gregset.
1027 (fill_gregset): Rename `regno' to `regnum'. Simply call
1028 amd64_collect_native_gregset.
1029 (fill_fpregset): Rename `regno' to `regnum'.
1030 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1031 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1032 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1033 `fpregset_t'. Call amd64_supply_native_gregset instead of
1034 supply_gregset. Call x86_64_supply_fxsave instead of
1035 supply_fpregset.
1036 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1037 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1038 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1039 `fpregset_t'. Call amd64_collect_native_gregset instead of
1040 fill_gregset. Call x86_64_collect_fxsave instead of
1041 fill_fpregset.
1042 (_initialize_am64fbsd_nat): Initialize
1043 amd64_native_gregset32_reg_offset and
1044 amd64_native_gregset64_reg_offset.
1045 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1046
1047 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1048 null pointer. Fix typo in comment.
1049
1050 * regcache.c (supply_register): Reimplement to call
1051 regcache_raw_supply.
1052 (regcache_collect): Reimplement by calling regcache_raw_collect.
1053
1054 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1055
1056 * regcache.c (register_buffer): Consitify first argument.
1057 (regcache_raw_supply, regcache_raw_collect): New
1058 functions.
1059
1060 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1061
1062 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1063 by Nathan J. Williams.
1064
1065 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1066
1067 * lin-lwp.c (wait_lwp): New function, copied from
1068 stop_wait_callback. Clean up.
1069 (stop_wait_callback): Use wait_lwp.
1070
1071 2003-08-28 Andrew Cagney <cagney@redhat.com>
1072
1073 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1074 flavour and disassembler options.
1075 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1076 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1077 deprecated_tm_print_insn_info.
1078
1079 2003-08-27 Andrew Cagney <cagney@redhat.com>
1080
1081 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1082 Use target_read_memory.
1083 (s390_get_frame_info): Update. Do not reference
1084 deprecated_tm_print_insn_info.
1085 (s390_check_function_end, s390_is_sigreturn): Ditto.
1086
1087 2003-08-27 Andrew Cagney <cagney@redhat.com>
1088
1089 * Makefile.in (cris-tdep.o): Update dependencies.
1090 * cris-tdep.c: Include "gdb_assert.h".
1091 (cris_gdbarch_init): Set print_insn.
1092 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1093 (cris_delayed_get_disassembler): Simplify, directly call the
1094 disassembler returned by cris_get_disassembler.
1095 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1096 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1097 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1098 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1099 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1100 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1101 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1102 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1103 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1104 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1105 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1106 (gdb_print_insn_sparc): Delete function.
1107 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1108 deprecated_tm_print_insn_info.
1109 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1110 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1111 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1112 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1113 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1114 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1115 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1116 (s390_gdbarch_init): Set print_insn.
1117
1118 2003-08-27 Andrew Cagney <cagney@redhat.com>
1119
1120 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1121 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1122 * infcall.c (call_function_by_hand): Convert the entry point
1123 address into a code address.
1124
1125 2003-08-27 Andrew Cagney <cagney@redhat.com>
1126
1127 * dsrec.c: Include "gdb_string.h".
1128 * Makefile.in (dsrec.o): Update dependencies.
1129
1130 2003-08-27 Michael Chastain <mec@shout.net>
1131
1132 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1133
1134 2003-08-27 Andrew Cagney <cagney@redhat.com>
1135
1136 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1137 (alpha_osf1_init_abi): Do not set call_dummy_address.
1138
1139 2003-08-27 David Carlton <carlton@kealia.com>
1140
1141 From Randolph Chung <tausq@debian.org>:
1142 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1143 compiles with -Wformat-nonliteral -Werror.
1144
1145 2003-08-26 Jim Blandy <jimb@redhat.com>
1146
1147 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1148 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1149 bfd_lookup_symbol, since we only want symbols in code sections.
1150 (look_for_base): Pass zero as the SECT_FLAGS argument to
1151 bfd_lookup_symbol, since we're not concerned about which section
1152 the symbol is in.
1153
1154 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1155
1156 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1157 we are frameless or the return address register is already known.
1158
1159 2003-08-26 Andrew Cagney <cagney@redhat.com>
1160
1161 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1162 in size. Add comments.
1163
1164 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1165
1166 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1167 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1168
1169 2003-08-26 Jason Merrill <jason@redhat.com>
1170
1171 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1172 case out of #ifdef MIPS block.
1173
1174 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1175
1176 PR java/1322
1177 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1178 available before calling SECT_OFF_TEXT.
1179 * PROBLEMS: Remove description of java/1322.
1180
1181 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1182
1183 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1184 bof, and nat0-nat127 as pseudo-registers.
1185 (ia64_frame_cache): New struct used to cache frame info.
1186 (ia64_register_reggroup_p): New routine used to override default
1187 register grouping so registers without names are still saved and
1188 restored.
1189 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1190 pseudo values.
1191 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1192 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1193 (ia64_alloc_frame_cache): New routine to create a new
1194 ia64_frame_cache.
1195 (examine_prologue): Change prototype to add next_frame pointer.
1196 Assume frameless until otherwise proven. Verify that the cfm for
1197 current frame matches the cfm that should occur for the prologues
1198 alloc insn and if equal, mark as not frameless. At end of routine,
1199 if not frameless, calculate registers for the previous frame and store
1200 in the cache, if a cache is provided.
1201 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1202 and pass 0 for next_frame.
1203 (ia64_store_return_value): Change to use convert_typed_floating()
1204 instead of calling ia64_convert_to_raw().
1205 (ia64_extract_return_value): Change to use convert_typed_floating()
1206 instead of calling ia64_convert_to_virtual().
1207 (ia64_frame_cache): New routine to support new frame model.
1208 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1209 (ia64_frame_sniffer): Ditto.
1210 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1211 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1212 (ia64_sigtramp_frame_prev_register): Ditto.
1213 (ia64_sigtramp_frame_sniffer): Ditto.
1214 (ia64_frame_base_address): Ditto.
1215 (ia64_extract_struct_value_address): Change to issue error message.
1216 (ia64_frame_align): New routine to align sp.
1217 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1218 (ia64_push_arguments): Removed. Logic moved to
1219 ia64_push_dummy_call().
1220 (ia64_push_return_address): Ditto.
1221 (ia64_unwind_dummy_id): New function.
1222 (ia64_unwind_pc): Ditto.
1223 (ia64_convert_register_p): Ditto.
1224 (ia64_register_to_value): Ditto.
1225 (ia64_value_to_register): Ditto.
1226 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1227 (ia64_register_byte, ia64_register_raw_size): Ditto.
1228 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1229 (ia64_saved_pc_after_call): Ditto.
1230 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1231 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1232 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1233 (ia64_register_convert_to_raw): Ditto.
1234 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1235 (ia64_init_extra_frame_info): Ditto.
1236 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1237 (ia64_gdbarch_init): Remove registering of deprecated functions that
1238 are no longer used. Add registration of new gdbarch functions.
1239 Remove registering deprecated_write_sp. Replace
1240 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1241 Delete set_gdbarch_deprecated_register_convertible(),
1242 set_gdbarch_deprecated_register_convert_to_virtual(), and
1243 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1244 set_gdbarch_deprecated_register_size(),
1245 set_gdbarch_deprecated_register_bytes(),
1246 set_gdbarch_pcregnum(),
1247 set_gdbarch_deprecated_register_byte(),
1248 set_gdbarch_deprecated_register_raw_size(),
1249 set_gdbarch_deprecated_max_register_raw_size(),
1250 set_gdbarch_deprecated_register_virtual_size(),
1251 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1252 Replace set_gdbarch_deprecated_extract_return_value() with
1253 set_gdbarch_extract_return_value(). Remove calls to:
1254 set_gdbarch_deprecated_saved_pc_after_call();
1255 set_gdbarch_deprecated_frame_chain(),
1256 set_gdbarch_deprecated_frame_saved_pc(),
1257 set_gdbarch_deprecated_frame_init_saved_regs(),
1258 set_gdbarch_deprecated_get_saved_register(),
1259 set_gdbarch_deprecated_call_dummy_words(),
1260 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1261 set_gdbarch_deprecated_init_extra_frame_info(),
1262 set_gdbarch_deprecated_frame_args_address(),
1263 set_gdbarch_deprecated_frame_locals_address(),
1264 and set_gdbarch_deprecated_dummy_write_sp().
1265 Add set_gdbarch_convert_register_p(),
1266 set_gdbarch_register_to_value(),
1267 set_gdbarch_value_to_register(),
1268 set_gdbarch_push_dummy_call(),
1269 set_gdbarch_frame_align(),
1270 set_gdbarch_unwind_dummy_id(),
1271 set_gdbarch_unwind_pc(),
1272 frame_unwind_append_sniffer(),
1273 frame_unwind_append_sniffer(),
1274 and frame_base_set_default().
1275
1276 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1277
1278 * configure.tgt: Document need for special "mipsisa64" handling.
1279 (mipsisa64*-*-linux64): Handle as target linux64.
1280 (mipsisa64*-*-*): Handle as target embed64.
1281
1282 2003-08-18 Michael Chastain <mec@shout.net>
1283
1284 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1285 objfile bug.
1286
1287 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1288
1289 * i387-tdep.h: Update copyright date.
1290 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1291
1292 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1293 CFLAGS games to reflect reality.
1294
1295 2003-08-24 Andrew Cagney <cagney@redhat.com>
1296
1297 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1298 GDB_MULTI_ARCH is always non-zero.
1299 * osabi.c (_initialize_gdb_osabi): Ditto.
1300 (gdbarch_init_osabi): Ditto.
1301 * sparc-tdep.c: Ditto for #if code.
1302
1303 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1304
1305 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1306 Update comments.
1307 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1308 comments.
1309 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1310 x86_64_supply_fxsave.
1311 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1312 x86_64_supply_fxsave.
1313 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1314 x86_64_supply_fxsave.
1315
1316 2003-08-23 Andreas Jaeger <aj@suse.de>
1317
1318 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1319 i387_supply_fxsave.
1320
1321 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1322
1323 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1324 i387_supply_register.
1325 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1326 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1327 i387_supply_fsave.
1328 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1329 i387_supply_fxsave.
1330 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1331 i387_supply_fsave.
1332 * i386bsd-nat.c (supply_fpregset): Adjust call to
1333 i387_supply_fsave.
1334 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1335 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1336 supply_fpregset.
1337 (store_inferior_registers): Remove extraneous whitespace. Call
1338 i387_fill_fsave instead of fill_fpregset.
1339 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1340 (supply_fpregset): Likewise.
1341 * i386v4-nat.c (supply_fpregset): Adjust call to
1342 i387_supply_fsave.
1343 * i386-interix-nat.c (supply_fpregset): Adjust call to
1344 i387_supply_fsave.
1345 * i386-linux-nat.c (supply_fpregset): Adjust call to
1346 i387_supply_fsave.
1347 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1348 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1349 i387supply_fsave and i387_supply_fxsave.
1350 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1351 Incorporate code from `i387_supply_register.
1352 (i387_supply_register): Remove.
1353 (i387_supply_fxsave): Add `regnum' argument.
1354 Update comments.
1355 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1356 prototype.
1357 (i387_supply_register): remove prototype.
1358 Update comments.
1359
1360 2003-08-22 Michael Chastain <mec@shout.net>
1361
1362 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1363 Add lines for files in gdb/testsuite/gdb.cp/* that are
1364 still not 8.3 unique.
1365
1366 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1367
1368 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1369 TYPE_VPTR_FIELDNO is valid.
1370
1371 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1372
1373 * utils.c (set_width_command): Remove prototypes.
1374 (set_screen_size): New prototype.
1375 (init_page_info): Simplify by fetching the screen size from
1376 Readline. Call set_screen_size.
1377 (set_screen_size): New function.
1378 (set_width): Add missing whitespace in comment.
1379 (set_width_command): Call set_screen_size.
1380 (set_height_command): New function.
1381 (initialize_utils): Fix formatting. Make "set height" command
1382 call set_height_command. Remove redundant code that turns off
1383 pagination if output isn't a terminal. Remove redundant call to
1384 set_width_command.
1385
1386 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1387
1388 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1389 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1390 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1391 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1392 `case' keyword.
1393 (sparc64_register_info): Give the reister with number
1394 SPARC64_STATE_REGNUM a name.
1395 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1396 %asi and %ccr.
1397 (sparc64_push_dummy_call): Take BIAS into account when checking
1398 stcak alignment.
1399 (sparc_software_single_step): Remove assertions that check whether
1400 NPC and NNPC were zero.
1401 (sparc_supply_rwindow): Make public. Merge functionality with
1402 sparc64_supply_rwindow.
1403 (sparc_fill_rwindow): Make public. Merge functionality with
1404 sparc64_fill_rwindow.
1405 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1406 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1407 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1408 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1409 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1410
1411 * reggroups.c: Add whitespace after declarations of local
1412 variables in functions.
1413
1414 2003-08-21 Michael Chastain <mec@shout.net>
1415
1416 * gdbtypes.h: Change array bound type from an int to enum.
1417
1418 2003-08-21 Andrew Cagney <cagney@redhat.com>
1419
1420 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1421 * config/sparc/tm-sparc.h: Ditto.
1422 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1423 unconditionally.
1424 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1425
1426 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1427
1428 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1429 (register_objfile_data, set_objfile_data, objfile_data): New
1430 prototypes.
1431 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1432 prototypes.
1433 (allocate_objfile): Call objfile_alloc_data.
1434 (free_objfile): Call objfile_free_data.
1435 (struct objfile_data): New.
1436 (struct objfile_data_registration): New.
1437 (struct objfile_data_registry): New.
1438 (objfile_data_registry): New variable.
1439 (register_objfile_data): New function.
1440 (objfile_alloc_data, objfile_free_data): New functions.
1441 (set_objfile_data, objfile_data): New functions.
1442 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1443 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1444 (_initialize_dwarf2_frame): New function and prototype.
1445
1446 2003-08-21 Andrew Cagney <cagney@redhat.com>
1447
1448 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1449 a specific architecture.
1450 * arch-utils.h (set_architecture_from_arch_mach): Delete
1451 declaration.
1452 (target_architecture_hook): Delete declaration.
1453 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1454 (default_float_format): Assume GDB_MULTI_ARCH.
1455 (default_double_format): Assume GDB_MULTI_ARCH.
1456 (set_endian_from_file): Delete function.
1457 (arch_ok): Delete function.
1458 (set_arch): Delete function.
1459 (set_architecture_from_arch_mach): Delete function.
1460 (set_architecture_from_file): Delete function.
1461 (set_architecture): Assume GDB_MULTI_ARCH.
1462 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1463
1464 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1465
1466 Rewrite FreeBSD/sparc64 native configuration.
1467 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1468 * sparc64fbsd-nat.c: New file.
1469 * sparc64fbsd-tdep.c: New file.
1470 * sparc64-tdep.c sparc64-tdep.h: New files.
1471 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1472 sparc64fbsd-tdep.o): New dependencies.
1473 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1474 and sparc64fbsd-tdep.c.
1475 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1476 * config/sparc/fbsd.mh: Remove copyright notice.
1477 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1478 sparcbsd-nat.o.
1479 * config/sparc/fbsd.mt: Remove copyright notice.
1480 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1481 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1482 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1483 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1484 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1485 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1486 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1487 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1488 "sparc/tm-sp64.h".
1489 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1490 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1491
1492 2003-08-21 Michael Chastain <mec@shout.net>
1493
1494 * symtab.h: Add doco on the space critical structures and
1495 some measurements of space usage.
1496
1497 2003-08-21 Michael Snyder <msnyder@redhat.com>
1498
1499 * tracepoint.c (trace_dump_command): Trace break address
1500 is subject to DECR_PC_AFTER_BREAK.
1501 (set_traceframe_context): Make "trace_line" an int.
1502 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1503
1504 2003-08-20 Michael Snyder <msnyder@redhat.com>
1505
1506 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1507 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1508 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1509 argument passing.
1510 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1511 functions, replace sh_push_dummy_call.
1512 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1513
1514 2003-08-20 Michael Chastain <mec@shout.net>
1515
1516 * gdbtypes.h (struct main_type): Rearrange to save space.
1517
1518 2003-08-20 Michael Snyder <msnyder@redhat.com>
1519
1520 * trad-frame.c: Comment typo fix.
1521
1522 2003-08-20 Michael Snyder <msnyder@redhat.com>
1523 Kevin Buettner <kevinb@redhat.com>
1524
1525 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1526 (frv_frame_init_saved_regs): Add declaration.
1527 (frame_extra_info): Add new field ``saved_regs''.
1528 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1529 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1530 Update frame related code.
1531 (frv_extract_struct_value_address): Adjust formatting.
1532 * Makefile.in (frv-tdep.o): Update dependencies.
1533 * config/frv/tm-frv.h (target_insert_watchpoint)
1534 (target_remove_watchpoint, target_insert_hw_breakpoint)
1535 (target_remove_hw_breakpoint): Delete these macros.
1536 (remote_insert_watchpoint, remote_remove_watchpoint)
1537 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1538 these declarations.
1539
1540 2003-08-20 Michael Chastain <mec@shout.net>
1541
1542 * defs.h (ENUM_BITFIELD): New macro.
1543 * symtab.h (ENUM_BITFIELD): Use it.
1544 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1545
1546 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1547
1548 * MAINTAINERS (write after approval): Add myself.
1549
1550 2003-08-18 Andrew Cagney <cagney@redhat.com>
1551
1552 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1553 * gdbarch.h, gdbarch.c: Re-generate.
1554 * infcall.c (call_function_by_hand): Adjust the SP by
1555 frame_red_zone_size before allocating any stack space.
1556 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1557 * x86-64-tdep.c (x86_64_frame_align): New function.
1558 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1559
1560 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1561 Remove code adjusting SP so that it skips over the Red Zone.
1562
1563 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1564
1565 * NEWS (New native configurations): Mention FreeBSD/amd64.
1566
1567 2003-08-18 Andrew Cagney <cagney@redhat.com>
1568
1569 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1570 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1571 "m68k_frame_p".
1572 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1573
1574 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1575
1576 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1577
1578 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1579
1580 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1581 Define.
1582 * i386-linux-nat.c: Include "linux-nat.h".
1583 (child_post_startup_inferior): New function.
1584
1585 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1586
1587 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1588 at the start of a frameless function. This probably fixes PR
1589 backtrace/1338.
1590
1591 2003-08-17 Michael Chastain <mec@shout.net>
1592
1593 * symfile.c (find_sym_fns): Remove special case for apollo target.
1594
1595 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1596
1597 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1598 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1599 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1600 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1601 (linux_supports_tracevforkdone): New function.
1602 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1603 TRACEVFORKDONE.
1604 (child_follow_fork): Handle vfork.
1605 (linux_handle_extended_wait): Likewise. Also handle exec.
1606 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1607 * NEWS: Mention fork tracing.
1608
1609 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1610
1611 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1612
1613 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1614
1615 * Makefile.in (i386-linux-nat.o): Update dependencies.
1616 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1617 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1618 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1619 * i386-linux-nat.c: Include "linux-nat.h".
1620 (child_post_startup_inferior): New function.
1621 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1622 * infptrace.c (kill_inferior): Wrap in #ifdef.
1623 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1624 attaching to each LWP.
1625 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1626 (init_lin_lwp_ops): Fill in some more operations.
1627 * linux-nat.h (linux_enable_event_reporting)
1628 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1629 prototypes.
1630 * linux-nat.c (linux_enable_event_reporting): New function.
1631 (child_post_attach, linux_child_post_startup_inferior)
1632 (child_post_startup_inferior, child_follow_fork)
1633 (linux_handle_extended_wait, kill_inferior): New functions.
1634
1635 2003-08-16 Andrew Cagney <cagney@redhat.com>
1636
1637 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1638 * gdbarch.h, gdbarch.c: Re-generate.
1639
1640 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1641
1642 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1643
1644 2003-08-16 Andrew Cagney <cagney@redhat.com>
1645
1646 * NEWS: Mention that "set prompt-escape-char" was deleted.
1647 * top.c (get_prompt_1): Delete function.
1648 (gdb_prompt_escape):
1649 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1650 prompt-escape-char" command.
1651 (MAX_PROMPT_SIZE): Delete macro.
1652 (get_prompt): Simplify, do not call get_prompt_1.
1653
1654 2003-08-16 Andrew Cagney <cagney@redhat.com>
1655
1656 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1657 -Werror. -Wformat-nonliteral problems.
1658
1659 2003-08-15 J. Brobecker <brobecker@gnat.com>
1660
1661 Further multiarching work mostly for hppa64-*-hpux11:
1662 * hppa-tdep.h: New file.
1663 * hppa-tdep.c: #include hppa-tdep.c.
1664 (hppa32_num_regs): Renamed from hppa_num_regs.
1665 (hppa64_num_regs): New constant.
1666 (hppa64_call_dummy_breakpoint_offset): New constant.
1667 (hppa32_call_dummy_length): New constant.
1668 (hppa64_call_dummy_length): New constant.
1669 (hppa32_stack_align): Make name 32bit explicit.
1670 (hppa32_register_virtual_type): Likewise.
1671 (hppa32_extract_return_value): Likewise.
1672 (hppa32_use_struct_convention): Likewise.
1673 (hppa32_store_return_value): Likewise.
1674 (hppa64_register_virtual_type): New function.
1675 (hppa64_extract_return_value): New function.
1676 (hppa64_use_struct_convention): New function.
1677 (hppa64_store_return_value): New function.
1678 (hppa_frame_locals_address): Remove declaration, function does
1679 not exist anymore.
1680 (hppa_register_byte): Add support for PA64 ABI.
1681 (hppa_gdbarch_init): Add support for PA64 ABI.
1682 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1683 Make name 32bit explicit.
1684 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1685 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1686 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1687 (hppa64_hpux_frame_base_before_sigtramp): New function.
1688 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1689 * config/pa/tm-hppa64.h: Remove macros that are no longer
1690 necessary now that the gdbarch vector is properly setup.
1691 Transform some macros into function calls. Some minor cleanup.
1692 * config/pa/tm-hppah.h: Update function calls in macros
1693 following the function renaming in hppa-hpux-tdep.c.
1694 * Makefile.in (hppa_tdep_h): New variable.
1695 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1696
1697 2003-08-14 Michael Snyder <msnyder@redhat.com>
1698
1699 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1700
1701 2003-08-13 J. Brobecker <brobecker@gnat.com>
1702
1703 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1704 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1705 routine.
1706
1707 2003-08-13 Michael Snyder <msnyder@redhat.com>
1708
1709 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1710 (frv_saved_pc_after_call): Use deprecated ftype.
1711 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1712 (frv_remote_translate_xfer_address): Remove.
1713 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1714
1715 2003-08-13 J. Brobecker <brobecker@gnat.com>
1716
1717 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1718 initialization after the common gdbarch initialization, not before.
1719
1720 2003-08-13 J. Brobecker <brobecker@gnat.com>
1721
1722 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1723 (ADDR_BITS_REMOVE): Remove, redundant.
1724
1725 2003-08-13 J. Brobecker <brobecker@gnat.com>
1726
1727 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1728 gdbarch method to clear the 2 low bits of text addresses.
1729
1730 2003-08-12 Andrew Cagney <cagney@redhat.com>
1731
1732 * Makefile.in (dsrec.o): Update dependencies.
1733 * dsrec.c: Include "gdb_assert.h".
1734 (make_srec): Use snprintf instead of sprintf, use a literal format
1735 string.
1736
1737 2003-08-12 Andrew Cagney <cagney@redhat.com>
1738
1739 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1740 FRAME_OBSTACK_ZALLOC.
1741
1742 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1743
1744 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1745 SSE registers.
1746
1747 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1748
1749 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1750 amd64fbsd_sc_reg_offset): Add extern declarations.
1751 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1752 declarations.
1753
1754 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1755
1756 * MAINTAINERS (write after approval): Update my mail address.
1757
1758 2003-08-10 Andrew Cagney <cagney@redhat.com>
1759
1760 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1761
1762 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1763
1764 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1765 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1766 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1767 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1768 i386bsd_sc_reg_offset): Add extern declarations.
1769 * i386obsd-nat.c: Include "i386-tdep.h"
1770 (_initialize_i386obsd_nat): Remove extern declarations.
1771 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1772 declarations.
1773 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1774 declarations.
1775
1776 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1777 instead of frame_read_register.
1778 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1779 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1780 SP_REGNUM.
1781 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1782 instead of frame_unwind_unsigned_register. Use
1783 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1784 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1785 instead of read_register. Use builtin_type_void_data_ptr instead
1786 of builtin_type_void_func_ptr when extracting the address of the
1787 jmp_buf.
1788 (i386_extract_return_value, i386_store_return_value,
1789 i386_pseudo_register_read, i386_pseudo_register_write): Use
1790 register_size instead REGISTER_RAW_SIZE.
1791
1792 2003-08-10 Andrew Cagney <cagney@redhat.com>
1793
1794 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1795 sprintf. Make "name" constant.
1796
1797 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1798
1799 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1800 instead of frame_read_register.
1801 (i387_print_float_info): Use get_frame_register and
1802 get_frame_register_unsigned instead of frame_register_read.
1803
1804 * i386fbsd-nat.c: Include "i386-tdep.h".
1805 (child_resume): Make `eflags' an ULONGEST. Use
1806 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1807 instead of register_read and register_write.
1808
1809 * i386bsd-nat.c (fetch_inferior_registers,
1810 store_inferior_registers): Don't use && at the end of a line.
1811 (_initialize_i386bsd_nat): Fix typo.
1812
1813 * frame.c (_initialize_frame): Add missing backslash.
1814
1815 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1816 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1817 and supply_register instead of manipulating the register buffer
1818 directly.
1819
1820 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1821 * config/i386/nm-i386sol2.h
1822 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1823
1824 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1825 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1826 instructions that GCC likes to mingle into the prologue. Fixes
1827 gdb/1253 and gdb/1255.
1828
1829 2003-08-09 Andrew Cagney <cagney@redhat.com>
1830
1831 Fix GDB PR cli/926.
1832 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1833 * command.h (add_setshow_uinteger_cmd): Declare.
1834 * frame.c (set_backtrace_cmd): New function.
1835 (show_backtrace_cmd): New function.
1836 * frame.c (_initialize_frame): Replace "set/show
1837 backtrace-below-main" with "set/show backtrace past-main". Add
1838 command "set/show backtrace limit".
1839 (backtrace_past_main): Rename "backtrace_below_main".
1840 (backtrace_limit): New variable.
1841 (get_prev_frame): Update. Check the backtrace_limit.
1842
1843 2003-08-09 Andrew Cagney <cagney@redhat.com>
1844
1845 * defs.h (xstrprintf): Declare.
1846 * utils.c (xstrprintf): New function.
1847 * breakpoint.c (insert_breakpoints): Replace sprintf and
1848 non-literal format strings, with xstrprintf and cleanups.
1849 (delete_breakpoint,breakpoint_re_set): Ditto.
1850 (commands_command, insert_breakpoints): Ditto.
1851 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1852 (break_at_finish_command_1): Ditto.
1853
1854 2003-08-09 Andrew Cagney <cagney@redhat.com>
1855
1856 * MAINTAINERS (language support): List Adam Fedor as Objective C
1857 maintainer.
1858
1859 2003-08-08 J. Brobecker <brobecker@gnat.com>
1860
1861 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1862 are now multiarched.
1863
1864 2003-08-08 J. Brobecker <brobecker@gnat.com>
1865
1866 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1867 longer necessary now that hppa64 is partially multiarch'ed.
1868
1869 2003-08-08 Andrew Cagney <cagney@redhat.com>
1870
1871 * interps.c (interp_set): Check for a NULL "old_interp".
1872
1873 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1874
1875 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1876 (install-only): Support DESTDIR.
1877 (uninstall): Likewise.
1878 (install-gdbtk): Likewise.
1879
1880 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1881
1882 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1883 contains something meaningful at all times.
1884
1885 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1886
1887 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1888
1889 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1890
1891 * MAINTAINERS (write after approval): Added self.
1892
1893 2003-08-07 Andrew Cagney <cagney@redhat.com>
1894
1895 * inferior.h (AT_SYMBOL): Define.
1896 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1897 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1898 * mips-tdep.c (mips_call_dummy_address): Delete function.
1899 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1900 set call_dummy_address.
1901
1902 2003-08-07 Andrew Cagney <cagney@redhat.com>
1903
1904 * language.c (op_error): Delete function.
1905 (binop_type_check): Delete function.
1906 * language.h (type_op_error, range_op_error): Delete macros.
1907 (op_error): Delete declaration.
1908
1909 2003-08-07 Andrew Cagney <cagney@redhat.com>
1910
1911 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1912
1913 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1914
1915 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1916 (x86_64_push_arguments): Skip the red zone.
1917
1918 2003-08-05 Andrew Cagney <cagney@redhat.com>
1919
1920 * reggroups.c (reggroup_next): Check for the final entry.
1921
1922 2003-08-04 Andrew Cagney <cagney@redhat.com>
1923
1924 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1925 * cli/cli-script.c (define_command): Call query directly, instead
1926 of passing it a buffer.
1927 * ocd.c (ocd_error): Pass error a constant format string.
1928 * remote-mips.c (mips_error): Use fputs_filtered.
1929
1930 * solib-svr4.c (_initialize_svr4_solib): Update
1931 register_gdbarch_data call.
1932 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1933
1934 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1935 (register_gdbarch_data): Delete "free" parameter. Update
1936 comments.
1937 * gdbarch.h, gdbarch.c: Re-generate.
1938 * reggroups.c (_initialize_reggroup): Update.
1939 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1940 * frame-base.c (_initialize_frame_base): Update.
1941 * frame-unwind.c (_initialize_frame_unwind): Update.
1942 * user-regs.c (_initialize_user_regs): Update.
1943 * remote.c (_initialize_remote): Update.
1944 * regcache.c (_initialize_regcache): Update.
1945
1946 * regcache.c (xfree_regcache_descr): Delete function.
1947 (_initialize_regcache): Update call to register_gdbarch_data.
1948 (init_regcache_descr, init_legacy_regcache_descr): Use
1949 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1950
1951 * remote.c (free_remote_state): Delete function.
1952 (_initialize_remote): Update register_gdbarch_data.
1953 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1954 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1955
1956 2003-08-04 Andrew Cagney <cagney@redhat.com>
1957
1958 * reggroups.c (struct reggroup_el): Define.
1959 (struct reggroups): Delete field "nr_group". Replace array
1960 "group" with a "first" to "last" linked list.
1961 (reggroups_init): Update. Allocate using gdbarch's obstack.
1962 (reggroups_free): Delete function.
1963 (add_group): Update. Add "el" parameter.
1964 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1965 (default_groups): Update.
1966 (reggroup_next): Replace reggroups.
1967 (reggroups_dump): Update.
1968 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1969 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1970 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1971
1972 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1973
1974 * Makefile.in (tui-interp.o): Update dependencies.
1975
1976 2003-08-04 David Carlton <carlton@kealia.com>
1977
1978 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1979 to internal_error call.
1980 * source.c (forward_search_command): Add "%s" format argument.
1981 (reverse_search_command): Ditto.
1982 * top.c (quit_confirm): Ditto.
1983 * cli/cli-setshow.c (do_setshow_command): Ditto.
1984 * cp-valprint.c (cp_print_class_method): Replace
1985 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1986 (cp_print_class_member): Ditto.
1987 * event-top.c (command_line_handler): Ditto.
1988 * linux-proc.c (linux_info_proc_cmd): Ditto.
1989 * p-typeprint.c (pascal_type_print_base): Ditto.
1990 * p-valprint.c (pascal_object_print_class_method): Ditto.
1991 (pascal_object_print_class_member): Ditto.
1992 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1993 * remote.c (remote_cisco_section_offsets): Ditto.
1994 * top.c (command_line_input): Ditto.
1995 * utils.c (vwarning,error_stream,quit): Ditto.
1996 * valprint.c (print_floating,print_binary_chars)
1997 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1998
1999 2003-08-04 Andrew Cagney <cagney@redhat.com>
2000
2001 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2002
2003 2003-08-02 Andrew Cagney <cagney@redhat.com>
2004
2005 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2006 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2007 amd64fbsd-nat.c.
2008
2009 2003-08-02 Andrew Cagney <cagney@redhat.com>
2010
2011 * Makefile.in: Update all dependencies and definitions.
2012
2013 2003-08-02 Adam Fedor <fedor@gnu.org>
2014
2015 * linespec.c (is_objc_method_format): New function
2016 (decode_line_1, locate_first_half): Use it.
2017 Fixes PR objc/1298
2018
2019 2003-08-01 Andrew Cagney <cagney@redhat.com>
2020
2021 * NEWS: Mention that m32r is multi-arch.
2022 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2023 * configure.tgt: Recognize m32r-*-*.
2024 * config/m32r/tm-m32r.h: Delete file.
2025 * config/m32r/m32r.mt: New file.
2026 * m32r-rom.c (m32r_upload_command): Use hostent only when
2027 gethostname succeeds, in order to avoid a compilation
2028 warning.
2029 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2030 compiler warning.
2031
2032 2003-08-01 Michael Snyder <msnyder@redhat.com>
2033
2034 * sh-tdep.c (sh_frame_align): New gdbarch method.
2035 (sh_gdbarch_init): Set up frame_align method.
2036
2037 2003-07-31 Michael Snyder <msnyder@redhat.com>
2038
2039 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2040 which is already covered by the new frames infrastructure.
2041
2042 2003-07-31 Andrew Cagney <cagney@redhat.com>
2043
2044 * user-regs.c (struct user_reg): Add "next" link.
2045 (struct user_regs): Replace "user" with "first" and "last" links.
2046 (append_user_reg): Add pre-allocated "reg" parameter.
2047 (builtin_user_regs): Provide initial value for "last".
2048 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2049 (user_regs_init): Allocate memory from the gdbarch obstack.
2050 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2051 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2052 linked list.
2053 (usernum_to_user_reg): New function.
2054 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2055 (value_of_user_reg): Use usernum_to_user_reg.
2056 (user_regs_free): Delete function.
2057 (_initialize_user_regs): Update register_gdbarch_data call.
2058
2059 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2060
2061 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2062
2063 2003-07-30 Michael Snyder <msnyder@redhat.com>
2064
2065 * value.h (value_being_returned): Add a struct_addr argument.
2066 * infcall.c (call_function_by_hand): Pass struct_addr to
2067 value_being_returned.
2068 * infcmd.c (print_return_value): Pass zero as struct_addr.
2069 * values.c (value_being_returned): If struct_addr is passed,
2070 use it instead of trying to recover it from the inferior.
2071
2072 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2073
2074 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2075 the prologue analyzer won't need to attempt to extract the pc
2076 value from the woefully incomplete dummy frame.
2077 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2078 possible. Disable code which modifies the frame.
2079
2080 2003-07-28 Andrew Cagney <cagney@redhat.com>
2081
2082 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2083 to level 2.
2084 (annotate_breakpoints_table, annotate_record): Ditto.
2085 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2086 (annotate_field_name_end, annotate_field_value): Ditto.
2087 (annotate_field_end, annotate_frame_source_begin): Ditto.
2088 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2089 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2090 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2091 (annotate_frame_address_end, annotate_frame_address): Ditto.
2092 (annotate_frame_args, annotate_frame_end): Ditto.
2093 (annotate_frame_where, annotate_arg_begin): Ditto.
2094 (annotate_arg_name_end, annotate_arg_value): Ditto.
2095 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2096 (annotate_function_call, annotate_signal_name): Ditto.
2097 (annotate_signal_string, annotate_signal_name_end): Ditto.
2098 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2099 (annotate_value_begin, annotate_value_history_value): Ditto.
2100 (annotate_value_history_end, annotate_value_end): Ditto.
2101 (annotate_display_begin, annotate_display_number_end): Ditto.
2102 (annotate_display_format, annotate_display_expression): Ditto.
2103 (annotate_display_expression_end, annotate_display_value): Ditto.
2104 (annotate_display_end, annotate_array_section_begin): Ditto.
2105 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2106 (annotate_elt, annotate_array_section_end): Ditto.
2107
2108 2003-07-28 Andrew Cagney <cagney@redhat.com>
2109
2110 * regcache.c (struct regcache_descr): Update comments on
2111 nr_raw_registers.
2112 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2113 sizeof_raw_register_valid_p.
2114 (init_regcache_descr): Set nr_raw_registers and
2115 sizeof_raw_register_valid_p before calling
2116 init_legacy_regcache_descr.
2117
2118 2003-07-28 Andrew Cagney <cagney@redhat.com>
2119
2120 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2121 MOD NUM_REGS.
2122
2123 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2124
2125 * thread.c (info_threads_command): Use get_selected_frame ().
2126 Check that there is at least one non-sentinel frame.
2127
2128 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2129
2130 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2131 (m68hc11_pop_frame): Remove.
2132 (m68hc11_frame_saved_pc): Remove.
2133 (m68hc11_frame_chain): Remove.
2134 (m68hc11_frame_init_saved_regs): Remove.
2135 (m68hc11_init_extra_frame_info): Remove.
2136 (m68hc11_store_struct_return): Remove.
2137 (m68hc11_saved_pc_after_call): Remove.
2138
2139 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2140
2141 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2142 frame unwind information.
2143 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2144 and adapted for frame unwinding.
2145 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2146 (m68hc11_unwind_pc): New function.
2147 (m68hc11_frame_unwind_cache): New function to analyze frames.
2148 (m68hc11_frame_this_id): New function to create new frame struct.
2149 (m68hc11_frame_prev_register): New function to unwind a register from
2150 the frame.
2151 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2152 (m68hc11_frame_p): New function for the above.
2153 (m68hc11_frame_base_address): New function to return fp of frame.
2154 (m68hc11_frame_args_address): Update for frame.
2155 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2156 (m68hc11_unwind_sp): New function.
2157 (m68hc11_unwind_dummy_id): New function.
2158 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2159 calls.
2160
2161 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2162
2163 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2164 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2165 when we are beyond the current pc.
2166
2167 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2168
2169 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2170 from m68hc11_push_arguments.
2171 (m68hc11_push_arguments): Remove.
2172 (m68hc11_push_return_address): Remove.
2173 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2174 handlers; remove deprecated_extra_stack_alignment_needed.
2175
2176 2003-07-27 Andrew Cagney <cagney@redhat.com>
2177
2178 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2179 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2180 REAL_PC and not the pointer.
2181 * hppa-hpux-tdep.c: Include frame.h
2182
2183 2003-07-27 Andrew Cagney <cagney@redhat.com>
2184
2185 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2186 GDB_MULTI_ACH_PARTIAL.
2187
2188 2003-07-27 Andrew Cagney <cagney@redhat.com>
2189
2190 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2191 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2192 operator at start and not end of line.
2193 (decode_prologue): Ditto.
2194 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2195 frame_unwind_register_unsigned instead of
2196 frame_unwind_unsigned_register.
2197 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2198 read_register.
2199 (m32r_push_dummy_call): Use register_size instead of
2200 REGISTER_RAW_SIZE.
2201 (m32r_frame_sniffer): Replace m32r_frame_p.
2202 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2203 * m32r-rom.c (report_transfer_performance): Delete extern
2204 declaration.
2205 (m32r_load, m32r_upload_command): Use print_transfer_performance
2206 instead of report_transfer_performance.
2207 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2208 / add_show_from_set.
2209
2210 2003-07-26 Andrew Cagney <cagney@redhat.com>
2211
2212 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2213 store_return_value and extract_struct_value_address.
2214
2215 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2216
2217 PR c++/1267
2218 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2219 NULL, default to the section containing PC.
2220
2221 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2222
2223 * NEWS: Mention "regs" deprecated for m68hc11 too.
2224
2225 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2226 (m68hc11_print_register): New function to print out one register.
2227 (m68hc11_print_registers_info): New function to print registers.
2228 (show_regs): Deprecate and use the above.
2229 (m68hc11_gdbarch_init): Install the print_registers_info.
2230
2231 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2232
2233 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2234 that we have a SIGTRAP before returning non-zero.
2235
2236 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2237 Elena Zannoni <ezannoni@redhat.com>
2238
2239 * linespec.c (decode_line_2): Avoid crash if
2240 find_function_start_sal() returns empty record.
2241
2242 2003-07-23 Andreas Schwab <schwab@suse.de>
2243
2244 * ia64-tdep.c (ia64_print_insn): New function.
2245 (ia64_gdbarch_init): Set print_insn to it.
2246 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2247 deprecated_tm_print_insn_info.
2248
2249 2003-07-22 Michael Snyder <msnyder@redhat.com>
2250
2251 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2252 handle 8-bit returns (long long).
2253 (h8300h_extract_return_value): Ditto.
2254 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2255
2256 2003-07-22 Andrew Cagney <cagney@redhat.com>
2257
2258 * gdbarch.c Include "gdb_obstack.h".
2259 (struct gdbarch): Add an "obstack".
2260 (alloc_gdbarch_data): Allocate the gdbarch data using
2261 GDBARCH_OBSTACK_CALLOC.
2262 (free_gdbarch_data): Delete function.
2263 (gdbarch_obstack_zalloc): New function.
2264 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2265 Assert that the architecture is not initialized.
2266 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2267 vector from the obstack.
2268 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2269 architecture obstack.
2270 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2271 (set_gdbarch_data): Assert that the data is not initialized.
2272 (struct gdbarch_data): Delete member "free".
2273 (register_gdbarch_data): Do not initialize "free".
2274 * gdbarch.h, gdbarch.c: Re-generate.
2275
2276 2003-07-22 Andrew Cagney <cagney@redhat.com>
2277
2278 * configure.in (build_warnings): Add -Wformat-nonliteral.
2279 * configure: Re-generate.
2280
2281 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2282
2283 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2284
2285 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2286
2287 * findvar.c (read_var_value): Remove case for thread local storage
2288 variables. It is now entirely handled by the dwarf2 location
2289 expression code.
2290 * printcmd.c (address_info): Ditto.
2291 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2292 enumeration value.
2293 (struct symbol): Remove objfile field, which was used by
2294 LOC_THREAD_LOCAL_STATIC only.
2295 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2296 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2297 usage of objfile pointer.
2298 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2299 thread local variables.
2300 Add include of objfiles.h.
2301 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2302 storage variables.
2303 * Makefile.in (dwarf2loc.o): Update dependencies.
2304
2305 2003-07-22 Andrew Cagney <cagney@redhat.com>
2306
2307 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2308 get_frame_base.
2309 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2310 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2311 (struct value): Add opaque declaration.
2312 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2313
2314 2003-07-21 Andrew Cagney <cagney@redhat.com>
2315
2316 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2317 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2318
2319 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2320
2321 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2322 regcache_cooked_read_unsigned instead of read_register.
2323 (m68hc11_saved_pc_after_call): Likewise.
2324 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2325 instead of write_register.
2326 (m68hc11_register_type): New function.
2327 (m68hc11_register_virtual_type): Remove.
2328 (m68hc11_store_return_value): Convert to use the regcache.
2329 (m68hc11_extract_struct_value_address): Likewise.
2330 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2331 m68hc11_register_type; undeprecate store_return_value and
2332 extract_struct_value_address.
2333
2334 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2335
2336 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2337 and translate to use regcache.
2338 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2339
2340 2003-07-18 Andrew Cagney <cagney@redhat.com>
2341
2342 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2343 * gdbarch.h, gdbarch.c: Re-generate.
2344 * i386-tdep.c (i386_gdbarch_init): Do not set
2345 DWARF2_BUILD_FRAME_INFO.
2346 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2347 unconditionally.
2348 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2349 DWARF2_BUILD_FRAME_INFO.
2350
2351 2003-07-18 Andrew Cagney <cagney@redhat.com>
2352
2353 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2354 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2355
2356 2003-07-18 Andrew Cagney <cagney@redhat.com>
2357
2358 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2359 frame_unwind_address_in_block, instead of frame_pc_unwind.
2360 (dwarf2_frame_cache): Ditto.
2361
2362 2003-07-18 Andrew Cagney <cagney@redhat.com>
2363
2364 * user-regs.h (struct gdbarch): Declare opaque.
2365 * ui-out.h (struct ui_file): Declare opaque.
2366 * dwarf2-frame.h (struct frame_info): Declare opaque.
2367
2368 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2369
2370 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2371 #include "...".
2372 (procfs_meminfo): Change strerror to safe_strerror.
2373 (procfs_can_run): Remove K&R badness.
2374
2375 2003-07-17 Michael Snyder <msnyder@redhat.com>
2376
2377 * remote-sim.c: Comment typo fix.
2378
2379 2003-07-17 Andrew Cagney <cagney@redhat.com>
2380
2381 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2382 configure.
2383 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2384 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2385 GDB_MULTI_ARCH_PARTIAL.
2386
2387 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2388
2389 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2390 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2391 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2392
2393 2003-07-16 Theodore A. Roth <troth@openavr.org>
2394
2395 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2396 found.
2397 (avr_frame_unwind_cache): Don't unwind FP for main.
2398 Update a comment.
2399 Save the computed prev_sp.
2400 (avr_saved_regs_unwinder): Remove function.
2401 (avr_frame_prev_register): Use PC unwind logic from
2402 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2403
2404 2003-07-16 Andrew Cagney <cagney@redhat.com>
2405
2406 * frame-base.h (frame_base_p_ftype): Delete definition.
2407 (frame_base_append_predicate): Delete declaration.
2408 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2409 (frame_unwind_append_predicate): Delete declaration.
2410 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2411 (append_predicate): Delete parameter "p".
2412 (frame_unwind_append_predicate): Delete function.
2413 (frame_unwind_append_sniffer): Update call to append_predicate.
2414 (frame_unwind_free): Delete function.
2415 (_initialize_frame_unwind): Pass NULL as "free" to
2416 register_gdbarch_data.
2417 (frame_unwind_init): Append the dummy_frame_sniffer.
2418 (frame_unwind_find_by_frame): Simplify.
2419 * frame-base.c (struct frame_base_table): Delete field "p".
2420 (append_predicate): Delete parameter "p".
2421 (frame_base_append_predicate): Delete function.
2422 (frame_base_append_sniffer): Update call to append_predicate.
2423 (frame_base_free): Delete function.
2424 (frame_base_find_by_frame): Simplify.
2425 (_initialize_frame_base): Pass NULL as "free" to
2426 register_gdbarch_data.
2427 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2428 (x86_64_sigtramp_frame_sniffer): Replace
2429 "x86_64_sigtramp_frame_p".
2430 (x86_64_init_abi): Set the frame unwind sniffers.
2431 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2432 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2433 (m68k_gdbarch_init): Set the frame unwind sniffers.
2434 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2435 "i386_sigtramp_frame_p".
2436 (i386_frame_sniffer): Replace "i386_frame_p".
2437 (i386_gdbarch_init): Set the frame unwind sniffers.
2438 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2439 (avr_gdbarch_init): Set the frame unwind sniffers.
2440 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2441 "alpha_sigtramp_frame_p"
2442 (alpha_heuristic_frame_sniffer): Replace
2443 "alpha_heuristic_frame_p".
2444 (alpha_gdbarch_init): Set the frame unwind sniffers.
2445 (alpha_dwarf2_init_abi): Ditto.
2446 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2447 "alpha_debug_frame_p".
2448 (alpha_mdebug_frame_base_sniffer): Replace
2449 "alpha_mdebug_frame_base_p".
2450 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2451 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2452 (d10v_gdbarch_init): Set the frame unwind sniffer.
2453 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2454 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2455 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2456 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2457 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2458 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2459
2460 2003-07-16 Michael Snyder <msnyder@redhat.com>
2461
2462 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2463 should go thru sh_dsp_register_sim_regno, else the dsp regs
2464 will not get the right values.
2465
2466 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2467
2468 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2469 deprecated_store_floating by call to store_typed_floating.
2470 (sh_sh4_register_convert_to_raw): Substitute call to
2471 deprecated_extract_floating by call to extract_typed_floating.
2472
2473 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2474
2475 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2476
2477 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2478
2479 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2480 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2481 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2482 as possible.
2483 (do_pseudo_register): Remove.
2484 (sh_push_dummy_code): New function.
2485 (sh64_store_struct_return): Rename from sh_store_struct_return.
2486 Only called for sh64 now.
2487 (sh_extract_struct_value_address): Regcache'ify.
2488 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2489 and accomodate new tasks.
2490 (sh64_push_return_address): Rename from sh_push_return_address.
2491 Only called for sh64 now.
2492 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2493 Regcache'ify.
2494 (sh3e_sh4_extract_return_value): Regcache'ify.
2495 (sh_default_store_return_value): Ditto.
2496 (sh3e_sh4_store_return_value): Ditto.
2497 (sh_default_register_byte): Remove.
2498 (sh_sh4_register_byte): Remove.
2499 (sh_default_register_raw_size): Remove.
2500 (sh_sh4_register_raw_size): Remove.
2501 (sh_register_virtual_size): Remove.
2502 (sh_sh3e_register_virtual_type): Remove.
2503 (sh_sh3e_register_type): New function.
2504 (sh_sh4_register_virtual_type): Remove.
2505 (sh_sh4_register_type): New function.
2506 (sh_default_register_virtual_type): Remove.
2507 (sh_default_register_type): New function.
2508 (do_fv_register_info): Add parameters to accomodate call from
2509 sh_print_registers_info.
2510 (do_dr_register_info): Ditto.
2511 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2512 Add parameters to accomodate call from sh_print_registers_info.
2513 (sh_do_fp_register): Ditto.
2514 (sh64_do_pseudo_register): Call do_dr_register_info,
2515 do_fv_register_info and sh_do_fp_register with default parameters.
2516 (sh_do_register): Add parameters to accomodate call from
2517 sh_print_registers_info.
2518 (sh_print_register): Ditto.
2519 (sh_print_registers_info): Rename from sh_do_registers_info.
2520 Add parameters to be used as gdbarch_print_registers_info
2521 implementation. Accomodate removed do_pseudo_register function
2522 pointer.
2523 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2524 function pointer. Call sh_print_register with default parameters.
2525 (sh64_do_registers_info): Call sh_print_registers_info instead of
2526 sh_do_registers_info.
2527 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2528 detection of deprecated vs. non-deprecated functionality.
2529 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2530 function pointer assignments by direct function calls.
2531
2532 2003-07-15 Andrew Cagney <cagney@redhat.com>
2533
2534 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2535 (frame_register_unwind, create_new_frame): Ditto.
2536 (legacy_get_prev_frame, get_frame_type): Ditto.
2537 (get_frame_base_address): Use frame_base_find_by_frame.
2538 (get_frame_locals_address): Use frame_base_find_by_frame.
2539 (get_frame_args_address): Use frame_base_find_by_frame.
2540 * frame-base.h (frame_base_sniffer_ftype): Declare.
2541 (frame_base_append_sniffer): Declare.
2542 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2543 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2544 (frame_base_append_sniffer): New function.
2545 (frame_base_append_predicate): Add a NULL sniffer.
2546 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2547 (struct frame_base_table): Add "sniffer".
2548 (frame_base_free): Free the "sniffer" table.
2549 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2550 (frame_unwind_append_sniffer): Declare.
2551 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2552 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2553 (struct frame_unwind_table): Add "sniffer", delete "middle".
2554 (append_predicate): Add "sniffer" parameter, append the sniffer.
2555 (frame_unwind_init): Update append_predicate call.
2556 (frame_unwind_append_sniffer): New function.
2557 (frame_unwind_append_predicate): Update append_predicate call.
2558 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2559
2560 2003-07-15 Andrew Cagney <cagney@redhat.com>
2561
2562 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2563 before code inhibiting repeated unwind attempts. Add to
2564 commentary on that test's problems.
2565 * blockframe.c (inside_main_func): Look for "main" in the minimal
2566 symbol table.
2567 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2568 identical.
2569
2570 2003-07-15 Andrew Cagney <cagney@redhat.com>
2571
2572 * complaints.c (struct explanation): Define.
2573 (struct complaints): Change type of "explanation" to "struct
2574 explanation".
2575 (symfile_explanations): Convert to a "struct explanation" table.
2576 (vcomplaint): Update.
2577
2578 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2579
2580 * x86-64-linux-nat.c (regmap): Removed.
2581 (supply_gregset, fill_gregset): Call
2582 x86_64_linux_(fill,supply)_gregset functions.
2583 * x86-64-linux-tdep.c (USER_*): New defines.
2584 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2585 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2586 New functions.
2587 (fetch_core_registers): Ditto.
2588 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2589 * x86-64-linux-tdep.h: New file.
2590 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2591 and core-regset.o.
2592 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2593
2594 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2595
2596 * x86-64-tdep.c (x86_64_store_return_value): Use
2597 regcache_cooked_write_part instead of regcache_cooked_write.
2598
2599 * configure.host: Add x86_64-*-freebsd*.
2600 * configure.tgt: Add x86_64-*-freebsd*.
2601 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2602 * amd64fbsd-nat.c: New file.
2603 * amd64fbsd-tdep.c: New file.
2604 * config/i386/nm-fbsd64.h: New file.
2605 * config/i386/fbsd64.mh: New file.
2606 * config/i386/fbsd64.mt: New file.
2607
2608 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2609
2610 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2611 `sc_regs_offset' and `sc_fpregs_offset'.
2612 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2613 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2614 (alpha_sigtramp_register_address): Rewrite to use new members of
2615 `struct gdbarch_tdep'.
2616 (alpha_gdbarch_init): Initialize new members of struct
2617 gdbarch_tdep'.
2618 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2619 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2620 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2621 (alphafbsd_pc_in_sigtramp): Implement.
2622 (alphafbsd_sigtramp_offset): New function.
2623 (alphafbsd_sigcontext_addr): New function.
2624 (alphafbsd_init_abi): Initialize signal trampoline related members
2625 of `struct gdbarch_tdep'.
2626 (_initialize_alphafbsd_tdep): Add prototype.
2627
2628 2003-07-11 Theodore A. Roth <troth@openavr.org>
2629
2630 * Makefile.in (install-only): Quote sed expression when generating
2631 transformed_name.
2632
2633 2003-07-11 Richard Henderson <rth@redhat.com>
2634
2635 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2636 * dwarf2-frame.c: Include complaints.h.
2637 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2638 variable initialization; return NULL on error.
2639 (decode_frame_entry): New.
2640
2641 2003-07-11 Andrew Cagney <cagney@redhat.com>
2642
2643 * frame.h (frame_address_in_block): Delete declaration.
2644 * blockframe.c (frame_address_in_block): Delete function.
2645 (get_frame_block): Use get_frame_address_in_block.
2646 (block_innermost_frame): Ditto.
2647 * stack.c (print_frame, backtrace_command_1): Ditto.
2648
2649 * frame.h (get_frame_address_in_block): Declare.
2650 (frame_unwind_address_in_block): Declare.
2651 * frame.c (frame_unwind_address_in_block): New function.
2652 (get_frame_address_in_block): New function.
2653
2654 2003-07-10 Andrew Cagney <cagney@redhat.com>
2655
2656 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2657 pre-default. Note: re-generate has no effect.
2658
2659 2003-07-10 Andrew Cagney <cagney@redhat.com>
2660
2661 * gdbarch.sh: When a variable, but not a function, compare against
2662 0. Fix problem in previous patch.
2663 * gdbarch.c: Re-generate.
2664
2665 2003-07-10 Andrew Cagney <cagney@redhat.com>
2666
2667 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2668 functions against NULL, not 0.
2669 * gdbarch.c: Re-generate.
2670
2671 2003-07-10 Fred Fish <fnf@ninemoons.com>
2672
2673 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2674 null string instead of a null pointer.
2675 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2676
2677 2003-07-09 Michael Snyder <msnyder@redhat.com>
2678
2679 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2680
2681 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2682
2683 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2684 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2685 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2686 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2687 * x86-64-tdep.c: ... from here.
2688
2689 2003-07-09 Andreas Schwab <schwab@suse.de>
2690
2691 * m68k-tdep.h (enum struct_return): Define.
2692 (struct gdbarch_tdep): Add struct_return.
2693 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2694 bytes are padded to the right, not to the left. Pass struct value
2695 address in register %a1, not on stack.
2696 (m68k_use_struct_convention): New function.
2697 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2698 struct_return in tdep to pcc_struct_return.
2699 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2700 reg_struct_return.
2701
2702 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2703
2704 * somread.c (som_symfile_offsets): Fix compilation error.
2705
2706 2003-07-09 Andrew Cagney <cagney@redhat.com>
2707
2708 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2709 Add comments about the checks.
2710
2711 2003-07-08 Andrew Cagney <cagney@redhat.com>
2712
2713 * Makefile.in: Make dependency section headers consistent.
2714 (config_h): Move to $BUILD headers section.
2715 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2716 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2717 (ada-exp.tab.c): Move to YACC/LEX section.
2718 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2719 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2720
2721 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2722
2723 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2724 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2725 of strerror with safe_strerror, use ISO C function definitions,
2726 and replace instances of sprintf with snprintf.
2727
2728 2003-07-07 Andrew Cagney <cagney@redhat.com>
2729
2730 * frame.c (get_prev_frame): Enable check for identical frames.
2731 Update comments. Update error messages.
2732
2733 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2734
2735 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2736
2737 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2738
2739 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2740 sort_symtab_syms, no longer necessary.
2741
2742 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2743
2744 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2745
2746 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2747
2748 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2749 (mips_register_byte): Likewise.
2750
2751 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2752
2753 * Makefile.in (sparc_tdep_h): New.
2754 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2755 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2756 * sparc-linux-nat.c: Include "sparc-tdep.h".
2757 * sparc-nat.c: Likewise.
2758 * sparc-tdep.c: Likewise.
2759 * sparc64nbsd-nat.c: Likewise.
2760 * sparcnbsd-nat.c: Likewise.
2761 * sparcnbsd-tdep.c: Likewise.
2762 * sparc-tdep.h: New file.
2763 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2764 and sparc_npc_regnum.
2765
2766 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2767
2768 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2769 (mips_linux_cannot_store_register): List supported instead of
2770 unsupported registers.
2771
2772 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2773
2774 * disasm.c (dump_insns): Separate instructions from addresses.
2775
2776 2003-07-07 Andreas Schwab <schwab@suse.de>
2777
2778 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2779 dependencies.
2780 * m68k-tdep.c (NUM_FREGS): Delete.
2781 (SIG_PC_FP_OFFSET): Delete.
2782 (TARGET_M68K): Delete.
2783 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2784 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2785 P_MOVEL_SP, P_MOVEML_SP): Define.
2786 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2787 P_TRAP): Delete.
2788 (m68k_register_raw_size): Delete.
2789 (m68k_register_virtual_size): Delete.
2790 (m68k_register_type): Renamed from m68k_register_virtual_type and
2791 add gdbarch argument.
2792 (m68k_store_struct_return): Delete.
2793 (m68k_deprecated_extract_return_value): Delete.
2794 (m68k_deprecated_extract_struct_value_address): Delete.
2795 (m68k_frame_chain): Delete.
2796 (m68k_frame_saved_pc): Delete.
2797 (m68k_fix_call_dummy): Delete.
2798 (m68k_push_dummy_frame): Delete.
2799 (m68k_pop_frame): Delete.
2800 (m68k_extract_return_value): New function.
2801 (m68k_store_return_value): Rewrite using regcache.
2802 (m68k_extract_struct_value_address): Rewrite using regcache.
2803 (m68k_push_dummy_call): New function.
2804 (struct m68k_frame_cache): Define.
2805 (m68k_alloc_frame_cache): New function.
2806 (m68k_analyze_frame_setup): New function.
2807 (m68k_analyze_register_saves): New function.
2808 (m68k_analyze_prologue): New function.
2809 (m68k_skip_prologue): Rewrite using above functions.
2810 (m68k_unwind_pc): New function.
2811 (m68k_frame_cache): New function.
2812 (m68k_frame_this_id): New function.
2813 (m68k_frame_prev_register): New function.
2814 (m68k_frame_unwind): New variable.
2815 (m68k_frame_p): New function.
2816 (m68k_sigtramp_frame_cache): New function.
2817 (m68k_sigtramp_frame_this_id): New function.
2818 (m68k_sigtramp_frame_prev_register): New function.
2819 (m68k_sigtramp_frame_unwind): New variable.
2820 (m68k_sigtramp_frame_p): New function.
2821 (m68k_frame_base_address): New function.
2822 (m68k_frame_base): New function.
2823 (m68k_unwind_dummy_id): New function.
2824 (fill_gregset): Use regcache_collect.
2825 (fill_fpregset): Likewise.
2826 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2827 defined.
2828 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2829 deprecated_init_frame_pc, deprecated_store_struct_return,
2830 deprecated_extract_return_value, deprecated_store_return_value,
2831 deprecated_frame_chain, deprecated_frame_saved_pc,
2832 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2833 deprecated_register_virtual_size,
2834 deprecated_max_register_raw_size,
2835 deprecated_max_register_virtual_size,
2836 deprecated_register_virtual_type, deprecated_register_size,
2837 deprecated_register_byte, deprecated_register_bytes,
2838 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2839 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2840 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2841 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2842 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2843 deprecated_push_dummy_frame, deprecated_pop_frame,
2844 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2845 only if SYSCALL_TRAP is defined. Set extract_return_value,
2846 store_return_value, extract_struct_value_address, register_type,
2847 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2848 predicates.
2849 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2850 M68K_MAX_REGISTER_SIZE): Define.
2851 (struct m68k_sigtramp_info): Define.
2852 (struct gdbarch_tdep): Add get_sigtramp_info.
2853 * m68klinux-nat.c (fetch_register): Use register_size instead of
2854 REGISTER_RAW_SIZE. Don't put assignment in if.
2855 (store_register): Likewise.
2856 (fetch_inferior_registers): Likewise.
2857 (store_inferior_registers): Likewise.
2858 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2859 (m68k_linux_frame_saved_pc): Delete.
2860 (m68k_linux_sigcontext_reg_offset,
2861 m68k_linux_ucontext_reg_offset): Define.
2862 (m68k_linux_get_sigtramp_info): New function.
2863 (m68k_linux_extract_return_value): Rewrite using regcache.
2864 (m68k_linux_store_return_value): Likewise.
2865 (m68k_linux_extract_struct_value_address): Likewise.
2866 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2867 Don't set deprecated_frame_saved_pc,
2868 deprecated_extract_return_value, deprecated_store_return_value,
2869 deprecated_extract_struct_value_address. Set
2870 extract_return_value, store_return_value,
2871 extract_struct_value_address.
2872
2873 2003-07-07 Andrew Cagney <cagney@redhat.com>
2874
2875 * expprint.c: Include "user-regs.h" instead of "frame.h".
2876 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2877 frame_map_regnum_to_name.
2878 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2879 (frame_map_name_to_regnum): Simplify, call
2880 user_reg_map_name_to_regnum.
2881 (frame_map_regnum_to_name): Simplify, call
2882 user_reg_map_regnum_to_name.
2883 (frame_register_unwind): Update.
2884 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2885 (_initialize_frame_reg): Call user_reg_add_builtin.
2886 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2887 (value_of_register): Use value_of_user_reg.
2888 * eval.c (evaluate_subexp_standard): Update.
2889 * parse.c (write_dollar_variable): Update.
2890 * d10v-tdep.c (d10v_print_registers_info): Update.
2891 * infcmd.c (registers_info): Update.
2892 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2893 (builtin_regs_h): Delete macro.
2894 (user_regs_h): Define.
2895 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2896 (builtin-regs.o): Delete target.
2897 (user-regs.o): Specify dependencies.
2898 (expprint.o): Update dependencies.
2899 (findvar.o): Update dependencies.
2900 (frame.o): Update dependencies.
2901 (std-regs.o): Update dependencies.
2902
2903 2003-07-06 Christopher Faylor <cgf@redhat.com>
2904
2905 * win32-nat.c (solib_symbols_add): Use one variable for all section
2906 address stuff. Pass variable rather than address of variable to
2907 safe_symbol_file_add.
2908
2909 2003-07-06 Andreas Schwab <schwab@suse.de>
2910
2911 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2912
2913 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2914
2915 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2916
2917 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2918
2919 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2920
2921 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2922
2923 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2924 * config/i386/nto.mh: New file.
2925 * config/i386/nm-nto.h: New file.
2926 * configure.host: Add i[3456]86-*-nto*.
2927
2928 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2929
2930 * remote-vx.c (vx_add_symbols): Fix compilation error.
2931
2932 2003-07-03 Andrew Cagney <cagney@redhat.com>
2933
2934 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2935 * gdbarch.h, gdbarch.c: Re-generate.
2936 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2937 (legacy_register_name): Declare.
2938 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2939 (REGISTER_NAME): Define.
2940 * sparc-tdep.c (legacy_register_name): New function.
2941 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2942 (REGISTER_NAME): Define.
2943 (hppa64_register_name): Declare.
2944 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2945 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2946 (hppa64_register_name): New function.
2947 (hppa_register_name): New function.
2948 * arch-utils.c (legacy_register_name): Delete.
2949 * arch-utils.h (legacy_register_name): Delete.
2950
2951 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2952
2953 * cli/cli-interp.c (cli_interpreter_resume): Update the
2954 cli_uiout's stream to gdb_stdout.
2955
2956 2003-07-03 Andrew Cagney <cagney@redhat.com>
2957
2958 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2959 predicate.
2960 * gdbarch.h, gdbarch.c: Re-generate.
2961 * regcache.c (init_regcache_descr): Use legacy code when either
2962 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2963
2964 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2965
2966 * NEWS: Move "set logging" entry into GDB 6.0 section.
2967
2968 2003-07-02 Jim Blandy <jimb@redhat.com>
2969
2970 * s390-tdep.c (struct frame_extra_info): new member:
2971 'stack_bought_valid'.
2972 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2973 initialize fextra_info->stack_bought.
2974 (s390_frameless_function_invocation): Don't trust the value of
2975 fextra_info_ptr->stack_bought unless
2976 fextra_info->stack_bought_valid is set.
2977
2978 New S390 prologue analyzer.
2979 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2980 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2981 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2982 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2983 compute_x_addr, s390_on_stack, s390_store,
2984 s390_get_signal_frame_info): New functions.
2985 (S390_NUM_SPILL_SLOTS): New macro.
2986 (s390_get_frame_info): Rewritten.
2987 (is_arg_reg): Deleted.
2988
2989 Break out the decoding of S/390 instructions into separate
2990 functions, to make it more legible, and easier to check
2991 against the spec.
2992 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2993 is_rx, is_rxe): New functions.
2994 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2995 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2996 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2997 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2998 enums for opcode values. (Is this an improvement?)
2999
3000 2003-07-02 Andrew Cagney <cagney@redhat.com>
3001
3002 * i386-tdep.c: Revert change committed as part of trad-frame code
3003 below.
3004
3005 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3006
3007 * breakpoint.c (insert_catchpoint): Make static.
3008
3009 2003-07-02 Andreas Schwab <schwab@suse.de>
3010
3011 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3012 former ia64_push_arguments and ia64_push_return_address, and use
3013 regcache functions instead of read/write_register.
3014 (ia64_gdbarch_init): Set push_dummy_call instead of
3015 deprecated_push_arguments and deprecated_push_return_address.
3016
3017 2003-07-01 Andreas Jaeger <aj@suse.de>
3018
3019 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3020 before the call.
3021 Set %rax only to number of SSE registers used.
3022
3023 2003-07-01 Andrew Cagney <cagney@redhat.com>
3024
3025 * trad-frame.h: Update comments, a -1 .addr is reserved.
3026 (trad_frame_value_p, trad_frame_addr_p): Declare.
3027 (trad_frame_reg_p): Declare.
3028 (trad_frame_set_value): Rename trad_frame_register_value.
3029 (trad_frame_set_unknown): Declare.
3030 * trad-frame.c (trad_frame_realreg_p): New function.
3031 (trad_frame_addr_p, trad_frame_value_p): New function.
3032 (trad_frame_set_unknown): New function.
3033 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3034 (trad_frame_prev_register): Use trad_frame_realreg_p,
3035 trad_frame_addr_p and trad_frame_value_p.
3036 (trad_frame_set_value): Rename trad_frame_register_value.
3037 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3038 and trad_frame_set_value.
3039
3040 2003-06-30 Jim Blandy <jimb@redhat.com>
3041
3042 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3043 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3044 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3045 for 16 registers, and then 32 more bytes.
3046 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3047 New macros.
3048 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3049 Move up in the file, since it's now used by is_simple_arg.
3050 (is_simple_arg): Don't assume registers are four bytes long.
3051 Exclude all double arguments. Extended floats are not simple
3052 args.
3053 (is_power_of_two): New function.
3054 (pass_by_copy_ref): Call is_power_of_two, and check that the
3055 length fits in a register, rather than listing all the acceptable
3056 sizes. Extended floats are not passed by reference.
3057 (s390_push_arguments): Don't assume registers are four bytes long.
3058 Reserve an argument register to point to the buffer for structures
3059 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3060 S390_STACK_FRAME_OVERHEAD.
3061
3062 2003-06-30 Andreas Schwab <schwab@suse.de>
3063
3064 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3065 format error message.
3066
3067 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3068
3069 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3070
3071 2003-06-30 David Carlton <carlton@kealia.com>
3072
3073 Band-aid for PR c++/1245.
3074 * Makefile.in (cp-support.o): Depend on complaints_h.
3075 * cp-support.c: Include complaints.h. Add declaration for
3076 find_last_component.
3077 (cp_find_first_component): Separate code into
3078 cp_find_first_component_aux.
3079 (cp_find_first_component_aux): Call demangled_name_complaint.
3080 (demangled_name_complaint): New.
3081
3082 2003-06-30 Andrew Cagney <cagney@redhat.com>
3083
3084 * remote.c (remote_write_bytes): Explicitly compute and then use
3085 the payload size. Update comments to reflect. Fixes problem of
3086 GDB not sending small packets as found by Fred Fish.
3087
3088 2003-06-30 Andrew Cagney <cagney@redhat.com>
3089
3090 * remote.c (remote_async_wait): Fix -Wformat problem.
3091
3092 2003-06-29 Andrew Cagney <cagney@redhat.com>
3093
3094 * remote.c (remote_wait): Call error, and not warning, when the
3095 packet is corrupt.
3096 (remote_async_wait): Ditto.
3097
3098 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3099
3100 * sparc-tdep.c (sparc_y_regnum): Make external again.
3101
3102 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3103
3104 * cli/cli-logging.c (pop_output_files): Add void to function
3105 definition.
3106
3107 2003-06-29 Andrew Cagney <cagney@redhat.com>
3108
3109 * frame.c (frame_register_unwind): Use unsigned char when dumping
3110 the buffer contents.
3111
3112 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3113
3114 * cli/cli-logging.c: New file.
3115 * cli-out.c (struct ui_out_data): Add original_stream.
3116 (cli_redirect): New function.
3117 (cli_ui_out_impl): Add cli_redirect.
3118 (cli_out_new): Initialize original_stream.
3119 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3120 (uo_redirect, ui_out_redirect): New.
3121 * ui-out.h (struct ui_out_impl): Add redirect member.
3122 (redirect_ftype): New.
3123 (ui_out_redirect): Add prototype.
3124 * Makefile.in: Add rules for cli-logging.c.
3125 * NEWS: Mention "set logging".
3126
3127 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3128
3129 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3130
3131 2003-06-27 Andrew Cagney <cagney@redhat.com>
3132
3133 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3134 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3135 * avr-tdep.c (avr_call_dummy_address): Delete function.
3136 (avr_gdbarch_init): Do not set call_dummy_address.
3137
3138 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3139
3140 * symfile.c (syms_from_objfile): Move variables to inner block.
3141 Move the checks for the non-mainline case a bit earlier to avoid
3142 doing some useless computations.
3143
3144 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3145
3146 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3147
3148 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3149
3150 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3151 sections.
3152
3153 2003-06-26 Michael Chastain <mec@shout.net>
3154
3155 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3156 gdb/testsuite/gdb.c++/pr-1210.exp.
3157
3158 2003-06-26 Andrew Cagney <cagney@redhat.com>
3159
3160 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3161 altivec_expression.h and altivec_registers.h.
3162
3163 2003-06-26 Andrew Cagney <cagney@redhat.com>
3164
3165 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3166 info->mach when MIPS16. Patch suggested by Fred Fish.
3167
3168 2003-06-26 Andrew Cagney <cagney@redhat.com>
3169
3170 * utils.c (internal_vproblem): Print the problem to a reason
3171 buffer and then pass to query. Make the msg variable more local.
3172
3173 2003-06-26 Andrew Cagney <cagney@redhat.com>
3174
3175 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3176 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3177 * gdbarch.h, gdbarch.c: Re-generate.
3178 * frame-base.c (default_frame_args_address): Update. Use
3179 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3180 not available.
3181 (default_frame_locals_address): Ditto for
3182 DEPRECATED_FRAME_LOCALS_ADDRESS.
3183 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3184 (vax_frame_num_args): Update.
3185 (vax_gdbarch_init): Update.
3186 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3187 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3188 * mcore-tdep.c (mcore_gdbarch_init): Update.
3189 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3190 * ia64-tdep.c (ia64_gdbarch_init): Update.
3191 * symtab.h (address_class): Update comments.
3192 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3193 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3194 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3195 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3196 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3197 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3198 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3199 * alpha-mdebug-tdep.c: Update.
3200 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3201
3202 2003-06-26 Andreas Jaeger <aj@suse.de>
3203
3204 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3205 of SSE registers so that varargs functions work. Rework handling
3206 of passing arguments on the stack.
3207 (x86_64_store_return_value): Return double and float values in SSE
3208 register.
3209
3210 2003-06-24 Michael Chastain <mec@shout.net>
3211
3212 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3213 the "constructor breakpoints ignored" bug.
3214
3215 2003-06-25 David Carlton <carlton@kealia.com>
3216
3217 * MAINTAINERS: Update e-mail address.
3218
3219 2003-06-24 Jim Blandy <jimb@redhat.com>
3220
3221 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3222
3223 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3224 function.
3225 (ppc_linux_init_abi): Register it as the
3226 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3227
3228 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3229 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3230 method.
3231
3232 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3233 (ppc64_standard_linkage_target): Use it.
3234
3235 2003-06-23 Andrew Cagney <cagney@redhat.com>
3236
3237 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3238 for 0 "int0" and 4 "int32" sized registers.
3239 * gdbtypes.c (builtin_type_int0): Define.
3240 (build_gdbtypes): Initialize builtin_type_int0.
3241 * gdbtypes.h (builtin_type_int0): Declare.
3242
3243 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3244
3245 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3246 as characters are unsigned.
3247
3248 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3249
3250 PR gdb/1179
3251 * dwarfread.c (struct_type): Skip static fields without crashing.
3252
3253 2003-06-22 Andrew Cagney <cagney@redhat.com>
3254
3255 GDB 6.0 branch created.
3256 * README: Update.
3257 * PROBLEMS: Update. Empty.
3258 * NEWS: Update.
3259
3260 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3261
3262 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3263 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3264
3265 2003-06-22 Andrew Cagney <cagney@redhat.com>
3266
3267 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3268 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3269 Velikov.
3270
3271 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3272
3273 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3274 compilers.
3275
3276 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3277
3278 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3279 argument of val_print.
3280 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3281 to the address argument of baseclass_offset or target_read_memory.
3282 Do add it to the argument of cp_print_value_fields.
3283
3284 2003-06-21 Andrew Cagney <cagney@redhat.com>
3285
3286 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3287 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3288 instead of 0..NUM_REGS.
3289 (mips_register_reggroup_p): New function.
3290 (mips_pseudo_register_write): New function.
3291 (mips_pseudo_register_read): New function.
3292 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3293 based on the register's type.
3294 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3295 cooked.
3296 (mips_get_saved_register): Simplify. Assert that REGNO is a
3297 pseudo / cooked.
3298 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3299 (mips_register_type): Replace mips_register_virtual_type. Map
3300 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3301 when available.
3302 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3303 that the register is cooked / virtual.
3304 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3305 Only get the extra info when needed.
3306 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3307 (mips32_heuristic_proc_desc): Fetch the cooked register.
3308 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3309 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3310 (mips_print_register): Use gdbarch_register_type, instead of
3311 REGISTER_VIRTUAL_TYPE.
3312 (print_gp_register_row): Use gdbarch_register_type, instead of
3313 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3314 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3315 Print the pseudo / cooked registers.
3316 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3317 Print the pseudo / cooked registers.
3318 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3319 REG_NUM is pseudo / cooked.
3320 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3321 (mips_n32n64_xfer_return_value): Ditto.
3322 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3323 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3324 (mips_register_sim_regno): New function.
3325 (mips_gdbarch_init): Set deprecated_register_byte,
3326 register_group_p, pseudo_register_write, pseudo_register_read,
3327 register_sim_regno, and num_pseudo_regs. Set register_type,
3328 instead of register_virtual_type.
3329 * Makefile.in (mips-tdep.o): Update dependencies.
3330 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3331 REGISTER_VIRTUAL_TYPE.
3332 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3333 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3334 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3335 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3336 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3337
3338 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3339
3340 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3341 * cli/cli-cmds.c: Include "gdb_vfork.h".
3342 (shell_escape): Use vfork.
3343
3344 2003-06-21 Andrew Cagney <cagney@redhat.com>
3345
3346 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3347 32 bit floating-point register saves.
3348
3349 * frame.h (deprecated_unwind_get_saved_register): Delete.
3350 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3351 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3352 and deprecated_get_next_frame_hack instead of
3353 deprecated_unwind_get_saved_register.
3354
3355 * mips-tdep.c (mips_dump_tdep): Do not print
3356 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3357
3358 * frame.c (get_frame_register): New function.
3359 (frame_unwind_register_signed): New function.
3360 (get_frame_register_signed): New function.
3361 (frame_unwind_register_unsigned): New function.
3362 (get_frame_register_unsigned): New function.
3363 * frame.h: Add comments on naming schema.
3364 (get_frame_register, frame_unwind_register_signed): Declare.
3365 (get_frame_register_signed, get_frame_register_signed): Declare.
3366 (frame_unwind_register_unsigned): Declare.
3367 (get_frame_register_unsigned): Declare.
3368
3369 2003-06-20 Theodore A. Roth <troth@openavr.org>
3370
3371 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3372
3373 2003-06-20 Theodore A. Roth <troth@openavr.org>
3374
3375 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3376 (avr_read_sp): Ditto.
3377
3378 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3379
3380 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3381 * config/arm/nm-linux.h: Likewise.
3382 * config/arm/tm-linux.h: Likewise.
3383 * config/ia64/nm-linux.h: Likewise.
3384 * config/ia64/tm-ia64.h: Likewise.
3385 * config/s390/tm-linux.h: Likewise.
3386 * config/s390/tm-s390.h: Likewise.
3387 * s390-nat.c: Likewise.
3388 * s390-tdep.c: Likewise.
3389
3390 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3391 * config/ia64/linux.mt: Likewise.
3392 * config/m68k/linux.mh: Likewise.
3393 * config/mips/linux.mt: Likewise.
3394 * config/powerpc/linux.mh: Likewise.
3395 * config/sh/linux.mt: Likewise.
3396
3397 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3398
3399 * solib.c (solib_open): Change tests for whether to search
3400 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3401 comments.
3402
3403 2003-06-19 Theodore A. Roth <troth@openavr.org>
3404
3405 * avr-tdep.c (avr_frame_address): Delete function.
3406 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3407 set_gdbarch_frame_args_address.
3408
3409 2003-06-19 Andrew Cagney <cagney@redhat.com>
3410
3411 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3412 (REGISTER_CONVERT_FROM_TYPE): Delete.
3413 (mips_register_convert_to_type): Delete declaration.
3414 (mips_register_convert_from_type): Delete declaration.
3415 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3416 kernel/.
3417
3418 2003-06-19 Michael Snyder <msnyder@redhat.com>
3419
3420 * linux-nat.h: New file.
3421 * linux-nat.c: Include linux-nat.h.
3422 * lin-lwp.c: Include linux-nat.h.
3423 Move struct lwp_info def to linux-nat.h.
3424 * linux-proc.c: Include linux-nat.h.
3425 (linux_make_note_section): Iterate over lwps instead of threads.
3426 (linux_do_thread_registers): Use lwp instead of merged pid.
3427 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3428 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3429 Add dependency on linux_nat_h.
3430
3431 2003-06-19 Theodore A. Roth <troth@openavr.org>
3432
3433 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3434
3435 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3436
3437 * varobj.c (get_type, get_target_type): Use check_typedef.
3438
3439 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3440
3441 * breakpoint.c (insert_catchpoint): Call internal_error.
3442
3443 2003-06-19 Theodore A. Roth <troth@openavr.org>
3444
3445 * avr-tdep.c (avr_push_dummy_code): Delete function.
3446 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3447
3448 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3449
3450 * arch-utils.c (default_prepare_to_proceed): Remove.
3451 (generic_prepare_to_proceed): Remove.
3452 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3453 (generic_prepare_to_proceed): Remove prototype.
3454 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3455 * gdbarch.c: Regenerate.
3456 * gdbarch.h: Regenerate.
3457 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3458 * hppah-nat.c (hppa_switched_threads): Remove.
3459 * infrun.c (prepare_to_proceed): New static function, copied from
3460 generic_prepare_to_proceed. Remove select_it argument.
3461 (proceed): Call prepare_to_proceed.
3462 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3463 variables.
3464 (ptrace_wait): Don't set the removed variables.
3465 (hppa_switched_threads): Remove.
3466 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3467 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3468 (lin_lwp_prepare_to_proceed): Remove prototype.
3469 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3470 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3471
3472 2003-06-18 Theodore A. Roth <troth@openavr.org>
3473
3474 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3475 trad-frame.h.
3476 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3477 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3478 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3479 (AVR_PROLOGUE_*): Enumerate prologue types.
3480 (struct frame_extra_info): Remove.
3481 (struct avr_unwind_cache): Define.
3482 (avr_write_sp): Delete function.
3483 (avr_read_fp): Ditto.
3484 (avr_init_extra_frame_info): Ditto.
3485 (avr_pop_frame): Ditto.
3486 (avr_frame_saved_pc): Ditto.
3487 (avr_saved_pc_after_call): Ditto.
3488 (avr_push_return_address): Ditto.
3489 (avr_frame_chain): Ditto.
3490 (avr_store_struct_return): Ditto.
3491 (avr_push_arguments): Ditto.
3492 (avr_scan_prologue): Update comments. Changed to set up the info for
3493 cache unwinding. Now returns end of prologue PC.
3494 (avr_skip_prologue): Better handling of functions lacking a prologue
3495 by using avr_scan_prologue.
3496 (avr_scan_arg_moves): New function.
3497 (avr_saved_regs_unwinder): Ditto.
3498 (avr_frame_unwind_cache): Ditto.
3499 (avr_unwind_pc): Ditto.
3500 (avr_frame_this_id): Ditto.
3501 (avr_frame_prev_register): Ditto.
3502 (avr_frame_p): Ditto.
3503 (avr_frame_base_address ): Ditto.
3504 (avr_unwind_dummy_id): Ditto.
3505 (avr_push_dummy_code): Ditto.
3506 (push_stack_item): Ditto.
3507 (pop_stack_item): Ditto.
3508 (avr_push_dummy_call): Ditto.
3509 (struct stack_item): Define.
3510 (avr_frame_unwind): Declare structure.
3511 (avr_frame_base): Ditto.
3512 (avr_gdbarch_init): Remove calls to
3513 set_gdbarch_deprecated_init_frame_pc,
3514 set_gdbarch_deprecated_target_read_fp,
3515 set_gdbarch_deprecated_dummy_write_sp,
3516 set_gdbarch_deprecated_fp_regnum,
3517 set_gdbarch_deprecated_push_arguments,
3518 set_gdbarch_deprecated_push_return_address,
3519 set_gdbarch_deprecated_pop_frame,
3520 set_gdbarch_deprecated_store_struct_return,
3521 set_gdbarch_deprecated_frame_init_saved_regs,
3522 set_gdbarch_deprecated_init_extra_frame_info,
3523 set_gdbarch_deprecated_frame_chain,
3524 set_gdbarch_deprecated_frame_saved_pc,
3525 set_gdbarch_deprecated_saved_pc_after_call.
3526 Add calls to set_gdbarch_push_dummy_call,
3527 set_gdbarch_push_dummy_code,
3528 frame_unwind_append_predicate,
3529 frame_base_set_default,
3530 set_gdbarch_unwind_dummy_id,
3531 set_gdbarch_unwind_pc.
3532 Wrap a long line.
3533
3534 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3535
3536 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3537 registers for H8/300S.
3538 (h8300_print_registers_info): Ditto.
3539 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3540
3541 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3542
3543 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3544 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3545 (lin_lwp_wait): Likewise. Update comments.
3546 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3547 (pull_pid_from_list, linux_record_stopped_pid): New.
3548
3549 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3550
3551 * ada-lang.c (scan_discrim_bound): Name first argument.
3552 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3553 declared by ALL_BLOCK_SYMBOLS.
3554
3555 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3556
3557 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3558 ("regcache.h"): Include it.
3559 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3560
3561 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3562
3563 * NEWS: Mention gdbserver detach change and "disconnect" command.
3564 * infcmd.c (disconnect_command): New function.
3565 (_initialize_infcmd): Add ``disconnect'' command.
3566 * remote.c (remote_async_detach): Delete.
3567 (remote_detach): Merge remote_async_detach.
3568 (remote_disconnect): New.
3569 (init_remote_ops): Set to_disconnect.
3570 (init_remote_cisco_ops): Likewise.
3571 (init_remote_async_ops): Likewise. Use remote_detach.
3572 * target.c (cleanup_target): Default to_disconnect.
3573 (update_current_target): Inherit to_disconnect.
3574 (target_disconnect, debug_to_disconnect): New functions.
3575 (setup_target_debug): Set to_disconnect.
3576 * target.h (struct target_ops): Add to_disconnect.
3577 (target_disconnect): Add prototype.
3578
3579 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3580
3581 * breakpoint.c (insert_catchpoint): New function.
3582 (insert_breakpoints): Use catch_exceptions to call
3583 insert_catchpoint. Disable catchpoints if they fail to insert.
3584
3585 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3586
3587 * symfile.c (reread_symbols): Clear sym_private.
3588
3589 2003-06-17 Andrew Cagney <cagney@redhat.com>
3590
3591 * trad-frame.h (struct frame_info): Add opaque declaration.
3592 * remote-fileio.h (struct cmd_list_element): Add opaque
3593 declaration.
3594 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3595 comments.
3596
3597 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3598
3599 * remote.c (remote_prepare_to_store): Replace call to
3600 deprecated_read_register_bytes with multiple regcache_raw_read
3601 calls.
3602
3603 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3604
3605 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3606 (nto_find_and_open_solib): Likewise.
3607 (nto_init_solib_absolute_prefix): Likewise.
3608 (_initialize_nto_tdep): Fix indentation.
3609
3610 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3611
3612 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3613
3614 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3615
3616 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3617
3618 2003-06-17 Jim Blandy <jimb@redhat.com>
3619
3620 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3621
3622 2003-06-16 Theodore A. Roth <troth@openavr.org>
3623
3624 * avr-tdep.c (avr_extract_return_value): New function.
3625 (avr_gdbarch_init): Set extract_return_value method.
3626
3627 2003-06-16 Andrew Cagney <cagney@redhat.com>
3628
3629 * frame.h (deprecated_get_next_frame_hack): Declare.
3630 * frame.c (legacy_saved_regs_prev_register): Only require
3631 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3632 there are always saved regs.
3633 (deprecated_generic_get_saved_register): Do not require
3634 DEPRECATED_FRAME_INIT_SAVED_REGS.
3635 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3636 use frame ID unwind instead.
3637 (deprecated_get_next_frame_hack): New function.
3638
3639 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3640
3641 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3642 (h8300_push_dummy_call): ...this function. Some minor optimization.
3643 (h8300_push_return_address): Remove.
3644 (h8300_gdbarch_init): Remove calls to
3645 set_gdbarch_deprecated_dummy_write_sp,
3646 set_gdbarch_deprecated_push_arguments and
3647 set_gdbarch_deprecated_push_return_address.
3648 Add call to set_gdbarch_push_dummy_call.
3649
3650 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3651
3652 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3653 (E_PSEUDO_EXR_REGNUM): Ditto.
3654 (h8300_is_argument_spill): Check for instructions moving argument
3655 registers into safe registers.
3656 (h8300_skip_prologue): Check for stm instruction to push registers
3657 used for register variables onto stack.
3658 (gdb_print_insn_h8300): Remove.
3659 (h8300_examine_prologue): Add a comment.
3660 (h8300_register_name): Take pseudo registers into account.
3661 (h8300s_register_name): Ditto.
3662 (h8300sx_register_name): Ditto.
3663 (h8300_print_register): Ditto.
3664 (h8300_print_registers_info): Define "nice" printing order.
3665 (h8300_saved_pc_after_call): Take pseudo registers into account.
3666 (h8300_register_type): Ditto. Return type used for remote connection
3667 when requesting real CCR or EXR register, return actual type when
3668 requesting pseudo CCR or EXR.
3669 (h8300_pseudo_register_read): New function.
3670 (h8300_pseudo_register_write): Ditto.
3671 (h8300_dbg_reg_to_regnum): Ditto.
3672 (h8300s_dbg_reg_to_regnum): Ditto.
3673 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3674 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3675 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3676 set_gdbarch_print_insn architecture dependent.
3677 Call set_gdbarch_pseudo_register_read and
3678 set_gdbarch_pseudo_register_write.
3679 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3680
3681 2003-06-16 Andrew Cagney <cagney@redhat.com>
3682
3683 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3684 * gdbarch.h, gdbarch.c: Re-generate.
3685 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3686 * s390-tdep.c (s390_gdbarch_init): Update.
3687 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3688 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3689 * mips-tdep.c (mips_gdbarch_init): Update.
3690 * mcore-tdep.c (mcore_gdbarch_init): Update.
3691 * cris-tdep.c (cris_gdbarch_init): Update.
3692 * infcall.c (call_function_by_hand): Update.
3693 * ia64-tdep.c (ia64_push_arguments): Update comment.
3694 * frame.c (legacy_get_prev_frame): Do not assume
3695 SAVE_DUMMY_FRAME_TOS_P.
3696 * dummy-frame.c (find_dummy_frame): Update comment.
3697
3698 2003-06-16 Andrew Cagney <cagney@redhat.com>
3699
3700 * regcache.c (do_cooked_read): Do not use register_valid_p.
3701
3702 2003-06-15 Theodore A. Roth <troth@openavr.org>
3703
3704 * avr-tdep.c (avr_register_type): Remove a blank line.
3705 (avr_scan_prologue): Correct some comments.
3706
3707 2003-06-15 Theodore A. Roth <troth@openavr.org>
3708
3709 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3710 prologue types.
3711 Properly scan prologues generated by gcc with the -mcall-prologues
3712 option.
3713 Add code to scan -mcall-prologues for mega devices.
3714
3715 2003-06-15 Theodore A. Roth <troth@openavr.org>
3716
3717 * avr-tdep.c (avr_register_byte): Delete function.
3718 (avr_register_raw_size): Delete function.
3719 (avr_register_virtual_size): Delete function.
3720 (avr_register_virtual_type): Delete function.
3721 (avr_register_type): New function.
3722 (avr_address_to_pointer): Remove unused code.
3723 (avr_read_fp): Need to read FP as two separate bytes due to change to
3724 avr_register_type() usage.
3725 (avr_gdbarch_init): Don't set deprecated_register_size.
3726 Don't set deprecated_register_bytes.
3727 Don't set deprecated_register_byte.
3728 Don't set deprecated_register_raw_size.
3729 Don't set deprecated_max_register_raw_size.
3730 Don't set deprecated_register_virtual_size.
3731 Don't set deprecated_max_register_virtual_size.
3732 Don't set deprecated_register_virtual_type.
3733 Set register_type method.
3734
3735 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3736
3737 * Makefile.in (linux-nat.o): Add rule.
3738 * linux-nat.c: New file.
3739 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3740 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3741 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3742 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3743 * config/arm/linux.mh (NATDEPFILES): Likewise.
3744 * config/i386/linux.mh (NATDEPFILES): Likewise.
3745 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3746 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3747 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3748 * config/mips/linux.mh (NATDEPFILES): Likewise.
3749 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3750 * config/s390/s390.mh (NATDEPFILES): Likewise.
3751 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3752
3753 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3754
3755 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3756 replace out-of-date comment.
3757
3758 2003-06-15 Andrew Cagney <cagney@redhat.com>
3759
3760 * rdi-share/host.h (Fail): Change to a varargs function.
3761 * remote-rdi.c (Fail): Update.
3762
3763 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3764
3765 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3766 (i386_convert_register_p, i386_register_to_value,
3767 i386_register_from_value): Handle types longer than 8 bytes.
3768
3769 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3770
3771 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3772 Move floating-point code to new function in i387-tdep.c.
3773 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3774 New functions containing code moved here from i386-tdep.c.
3775 * i387-tdep.h: Add opaque declaration for `struct type'.
3776 (i387_register_to_value, i387_value_to_register): New prototypes.
3777 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3778 (x86_64_init_abi): Set convert_register_p, register_to_value and
3779 value_to_register here.
3780
3781 2003-06-14 Andrew Cagney <cagney@redhat.com>
3782
3783 * mips-tdep.c (mips_register_to_value): Make static.
3784 (mips_value_to_register): Make static.
3785 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3786 * ia64-tdep.c (ia64_register_raw_size): Make static.
3787 (ia64_register_virtual_size): Make static.
3788 (ia64_register_byte): Make static.
3789 * i387-tdep.c: Include "i387-tdep.h".
3790 (print_387_control_word): Delete function.
3791 (print_387_status_word): Delete function.
3792 (print_387_status_bits): Delete function.
3793 (print_387_control_bits): Delete function.
3794 * Makefile.in (i387-tdep.o): Update dependencies.
3795 * rdi-share/host.h (Fail): Declare.
3796 * remote-rdi.c (Fail): Update to match declaration.
3797
3798 2003-06-14 Andrew Cagney <cagney@redhat.com>
3799
3800 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3801 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3802 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3803 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3804 * README: Delete reference to remote-array.
3805 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3806 (remote-array.o): Delete target.
3807 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3808 * remote-array.c: Delete file.
3809
3810 2003-06-14 Andrew Cagney <cagney@redhat.com>
3811 Mark Kettenis <kettenis@gnu.org>
3812
3813 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3814 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3815 parameter with "frame".
3816 * gdbarch.h, gdbarch.c: Re-generate.
3817 * frame.h (put_frame_register): Declare.
3818 * frame.c (put_frame_register): New function.
3819 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3820 (legacy_register_to_value): Rewrite, use "frame" to get the
3821 register value.
3822 (legacy_value_to_register): Rewrite, use "frame" to find the
3823 register's location before storing.
3824 * arch-utils.h (legacy_convert_register_p): Update.
3825 (legacy_register_to_value, legacy_value_to_register): Update.
3826 * findvar.c (value_from_register): Rewrite, eliminate use of
3827 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3828 "frame" to REGISTER_TO_VALUE.
3829 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3830 lval_reg_frame_relative + lval_register branch of the switch. Do
3831 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3832 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3833 I386_EDI_REGNUM): New defines.
3834 (i386_next_regnum, i386_convert_register_p,
3835 i386_register_to_value, i386_value_to_register): New functions.
3836 (i386_register_convertible, i386_register_convert_to_virtual,
3837 i386_convert_to_raw): Remove functions.
3838 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3839 value_to_register instead of register_convertible,
3840 register_convert_to_virtual and register_convert_to_raw.
3841 * mips-tdep.c (mips_convert_register_p): New function.
3842 (mips_value_to_register): Replace mips_register_convert_from_type.
3843 (mips_register_to_value): Replace mips_register_convert_to_type.
3844 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3845 register_to_value.
3846 * alpha-tdep.c (alpha_convert_register_p): Update.
3847 (alpha_value_to_register): Update, store the register.
3848 (alpha_register_to_value): Update, fetch the register.
3849
3850 2003-06-14 Theodore A. Roth <troth@openavr.org>
3851
3852 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3853 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3854 Don't set deprecated_call_dummy_words.
3855 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3856 Don't set remote_translate_xfer_address.
3857 (avr_io_reg_read_command): Remove commented out debug printf.
3858 Wrap a long line.
3859
3860 2003-06-14 Theodore A. Roth <troth@openavr.org>
3861
3862 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3863 causes gdb to seg fault.
3864
3865 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3866
3867 * sparc-nat.c (fetch_inferior_registers): Correct
3868 a reference to "registers".
3869
3870 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3871
3872 * Makefile.in (exc_request_U_h): Define
3873 (exc_request_S_h): Likewise.
3874 (msg_reply_S_h): Likewise.
3875 (msg_U_h): Likewise.
3876 (notify_S_h): Likewise.
3877 (process_reply_S_h): Likewise.
3878 (gnu-nat.o): Depend on gdb_obstack_h
3879 * gnu-nat.c: Include "gdb_obstack.h".
3880
3881 2003-06-13 Andrew Cagney <cagney@redhat.com>
3882
3883 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3884 * gdbarch.h, gdbarch.c: Re-generate.
3885
3886 2003-06-13 Andrew Cagney <cagney@redhat.com>
3887
3888 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3889 when deprecated REGISTER macros can be deleted.
3890 * gdbarch.h, gdbarch.c: Re-generate.
3891
3892 2003-06-13 Jim Blandy <jimb@redhat.com>
3893
3894 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3895 Linux entry point symbols for _dl_debug_state, too.
3896
3897 2003-06-13 Andrew Cagney <cagney@redhat.com>
3898
3899 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3900 available, do not use the FP register, and always save the TOS.
3901 * dummy-frame.c (dummy_frame_this_id): Do not assert
3902 SAVE_DUMMY_FRAME_TOS.
3903 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3904 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3905 (i386_push_dummy_call): Add 8 to the returned SP.
3906 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3907 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3908 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3909 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3910 (x86_64_push_dummy_call): Return "sp + 16".
3911 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3912 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3913 save_dummy_frame_tos.
3914
3915 2003-06-13 Jim Blandy <jimb@redhat.com>
3916
3917 * frv-tdep.c (frv_use_struct_convention): Delete static
3918 declaration for function deleted in my change of 2003-06-12.
3919
3920 2003-06-13 Theodore A. Roth <troth@openavr.org>
3921
3922 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3923 (avr_pointer_to_address): Shift code addrs left 1 bit.
3924 (avr_convert_from_func_ptr_addr): Delete function since operation is
3925 better handled by avr_address_to_pointer and avr_pointer_to_address.
3926 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3927
3928 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3929
3930 From Kelley Cook <kelleycook@wideopenwest.com>:
3931 * configure.host: Accept i[34567]86 variants.
3932 * configure.tgt: Likewise.
3933 * nlm/configure.in: Likewise.
3934 * nlm/configure: Regenerated.
3935
3936 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3937
3938 * arm-tdep.c (solib-svr4.h): Dont' include it.
3939 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3940 * arm-linux-tdep.c: ... here. Make static.
3941 (arm_linux_init_abi): Register it.
3942 (solib-svr4.h): Include it.
3943 * Makefile.in: Update dependencies.
3944 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3945 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3946
3947 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3948
3949 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3950 indicate registers used for return values.
3951 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3952 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3953 members.
3954 (h8300_init_extra_frame_info): Ditto.
3955 (h8300_frame_locals_address): Removed.
3956 (h8300_frame_args_address): Removed.
3957 (h8300_extract_return_value): Use new regcache structure. Only care
3958 for 16 bit CPUs.
3959 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3960 (h8300_store_return_value): Use new regcache structure. Only care
3961 for 16 bit CPUs.
3962 (h8300h_store_return_value): Same function for 32 bit CPUs.
3963 (h8300_store_struct_return): Removed.
3964 (h8300_extract_struct_value_address): Use new regcache structure.
3965 (h8300h_extract_struct_value_address): Removed.
3966 (h8300_push_dummy_code): New function.
3967 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3968 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3969 set_gdbarch_store_return_value architecture dependent.
3970 Call set_gdbarch_push_dummy_code and
3971 set_gdbarch_extract_struct_value_address.
3972 Remove calls to set_gdbarch_frame_args_address,
3973 set_gdbarch_frame_locals_address,
3974 set_gdbarch_deprecated_store_struct_return,
3975 set_gdbarch_deprecated_extract_return_value,
3976 set_gdbarch_deprecated_extract_struct_value_address,
3977 set_gdbarch_deprecated_call_dummy_words and
3978 set_gdbarch_deprecated_sizeof_call_dummy_words.
3979
3980 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3981
3982 * h8300-tdep.c (h8300_register_byte): Remove.
3983 (h8300h_register_byte): Remove.
3984 (h8300_register_virtual_type): Remove. Substitute by...
3985 (h8300_register_type): New function.
3986 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3987 (h8300h_extract_struct_value_address): Ditto.
3988 (h8300_gdbarch_init): Drop calls to
3989 set_gdbarch_deprecated_register_byte and
3990 set_gdbarch_deprecated_register_virtual_type.
3991 Add call to set_gdbarch_register_type.
3992
3993 2003-06-13 Andrew Cagney <cagney@redhat.com>
3994
3995 * gdbarch.sh: Update comments on registers.
3996 (deprecated_register_byte): Rename register_byte.
3997 (deprecated_register_raw_size): Rename register_raw_size.
3998 (deprecated_register_virtual_size): Rename register_virtual_size.
3999 (deprecated_register_virtual_type): Rename register_virtual_type.
4000 * gdbarch.h, gdbarch.c: Re-generate.
4001 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4002 * vax-tdep.c (vax_gdbarch_init): Update.
4003 * v850-tdep.c (v850_gdbarch_init): Update.
4004 * sparc-tdep.c (sparc_gdbarch_init): Update.
4005 * sh-tdep.c (sh_gdbarch_init): Update.
4006 * s390-tdep.c (s390_gdbarch_init): Update.
4007 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4008 * ns32k-tdep.c: Update.
4009 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4010 * mips-tdep.c (mips_gdbarch_init): Update.
4011 * mcore-tdep.c (mcore_gdbarch_init): Update.
4012 * m68k-tdep.c (m68k_gdbarch_init): Update.
4013 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4014 * ia64-tdep.c (ia64_gdbarch_init): Update.
4015 * hppa-tdep.c (hppa_gdbarch_init): Update.
4016 * h8300-tdep.c (h8300_gdbarch_init): Update.
4017 * frv-tdep.c (frv_gdbarch_init): Update.
4018 * cris-tdep.c (cris_gdbarch_init): Update.
4019 * avr-tdep.c (avr_gdbarch_init): Update.
4020 * alpha-tdep.c (alpha_gdbarch_init): Update.
4021 * arm-tdep.c (arm_gdbarch_init): Update.
4022
4023 2003-06-13 Andrew Cagney <cagney@redhat.com>
4024
4025 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4026 mips_o32_use_struct_convention with always_use_struct_convention.
4027
4028 2003-06-12 David Carlton <carlton@kealia.com>
4029
4030 * cp-namespace.c (cp_set_block_scope): Comment out
4031 processing_has_namespace_info branch.
4032
4033 2003-06-12 Jim Blandy <jimb@redhat.com>
4034
4035 Recognize and skip 64-bit PowerPC Linux linkage functions.
4036 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4037 insn_pattern, insns_match_pattern, d_field, ds_field): New
4038 functions, macros, and types for working with PPC instructions.
4039 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4040 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4041 ppc64_skip_trampoline_code): New functions, variables, and macros
4042 for recognizing and skipping linkage functions.
4043 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4044 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4045
4046 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4047 register offsets for both the 32- and 64-bit interfaces.
4048
4049 Actually finish the job started by my change of 2003-05-29.
4050 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4051 other #definition of this.
4052 (ppc_linux_skip_trampoline_code): Remove declaration.
4053 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4054 static.
4055 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4056 method for GDBARCH.
4057
4058 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4059 'long' on ppc64-*-linux*.
4060
4061 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4062 isn't #defined, assume the register doesn't exist: act as if
4063 tdep->ppc_mq_regnum were -1.
4064
4065 * configure.host, configure.tgt: Add entries for
4066 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4067 powerpc/linux.mt.
4068 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4069 New files.
4070
4071 * arch-utils.c (always_use_struct_convention): New function.
4072 * arch-utils.h (always_use_struct_convention): New prototype.
4073 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4074 (alpha_gdbarch_init): Register always_use_struct_convention,
4075 instead of alpha_use_struct_convention.
4076 * cris-tdep.c (cris_use_struct_convention): Delete.
4077 (cris_gdbarch_init): Register always_use_struct_convention,
4078 instead of cris_use_struct_convention.
4079 * frv-tdep.c (frv_use_struct_convention): Delete.
4080 (frv_gdbarch_init): Register always_use_struct_convention,
4081 instead of frv_use_struct_convention.
4082 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4083 (h8300_gdbarch_init): Register always_use_struct_convention,
4084 instead of h8300_use_struct_convention.
4085 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4086 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4087 instead of mips_o32_use_struct_convention.
4088
4089 2003-06-12 Andrew Cagney <cagney@redhat.com>
4090
4091 * wince.c: Include "mips-tdep.h".
4092 * mips-tdep.h (mips_next_pc): Declare.
4093 * mcore-tdep.c: Make more local functions static.
4094 * Makefile.in (wince.o): Update dependencies.
4095
4096 2003-06-12 David Carlton <carlton@kealia.com>
4097
4098 * symtab.c (lookup_symbol_aux_minsyms): Replace
4099 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4100 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4101 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4102 SYMBOL_NATURAL_NAME.
4103
4104 2003-06-12 Andreas Schwab <schwab@suse.de>
4105
4106 * Makefile.in (tuiDisassem.o): Update dependencies.
4107
4108 2003-06-12 David Carlton <carlton@bactrian.org>
4109
4110 * symtab.h: Delete declaration of make_symbol_overload_list.
4111 Add declaration of lookup_partial_symbol.
4112 * symtab.c (remove_params): Move to cp-support.c.
4113 (overload_list_add_symbol, make_symbol_overload_list)
4114 (sym_return_val_size, sym_return_val_index): Ditto.
4115 (lookup_partial_symbol): Make extern.
4116 * cp-support.h: Add declaration of make_symbol_overload_list.
4117 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4118 symtab.h, and block.h.
4119 (remove_params): Move here from symtab.c.
4120 (overload_list_add_symbol, make_symbol_overload_list)
4121 (sym_return_val_size, sym_return_val_index): Ditto.
4122 * valops.c: Include cp-support.h.
4123 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4124 frame_h, and block_h.
4125 (valops.o): Depend on cp_support_h.
4126
4127 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4128
4129 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4130 substitute by NUM_REGS throughout.
4131 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4132 (h8300s_register_name): New function for H8S registers.
4133 (h8300sx_register_name): Ditto for H8SX registers.
4134 (h8300_print_register): Revise register printing, avoid depending
4135 on 32 bit long.
4136 (h8300_register_byte): Only care for H8/300 registers.
4137 (h8300h_register_byte): New function for any other architecture.
4138 (h8300_register_raw_size): Remove.
4139 (h8300_register_virtual_type): Revise to return actually useful
4140 type.
4141 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4142 (h8300h_extract_struct_value_address): New function for any other
4143 architecture.
4144 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4145 set_gdbarch_register_name, set_gdbarch_register_byte,
4146 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4147 Remove calls to set_gdbarch_deprecated_register_size,
4148 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4149 set_gdbarch_deprecated_max_register_raw_size,
4150 set_gdbarch_register_virtual_size and
4151 set_gdbarch_deprecated_max_register_virtual_size entirely.
4152 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4153 set_gdbarch_long_double_bit.
4154
4155 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4156
4157 * doublest.c (convert_doublest_to_floatformat): When dealing
4158 with the implied integer bit, only alter mant_bits if we are
4159 processing a full 32 bits of mantissa.
4160
4161 2003-06-11 David Carlton <carlton@bactrian.org>
4162
4163 * dictionary.h: New.
4164 * dictionary.c: New.
4165 * block.h: Add opaque declaration for struct dictionary.
4166 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4167 'sym' members.
4168 (BLOCK_DICT): New macro.
4169 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4170 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4171 BLOCK_SHOULD_SORT.
4172 (ALL_BLOCK_SYMBOLS): Update definition.
4173 * Makefile.in (SFILES): Add dictionary.c.
4174 (dictionary_h): New.
4175 (COMMON_OBS): Add dictionary.o.
4176 (dictionary.o): New.
4177 (ada-lang.o): Depend on dictionary_h.
4178 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4179 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4180 (mi-cmd-stack.o): Ditto.
4181 (gdbtk-cmds.o): Update dependencies.
4182 (gdbtk-stack.o): Ditto.
4183 * ada-lang.c: Include dictionary.h.
4184 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4185 (fill_in_ada_prototype, debug_print_block): Ditto.
4186 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4187 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4188 'is_sorted'.
4189 * mdebugread.c: Include dictionary.h.
4190 (struct parse_stack): Delete 'maxsyms' member.
4191 (parse_symbol): Update calls to new_block. Delete calls to
4192 shrink_block. Use dictionary methods.
4193 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4194 Update calls to new_symtab. Don't maintain maxsyms data.
4195 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4196 (add_symbol): Just call dict_add_symbol.
4197 (new_symtab): Delete 'maxsyms' argument.
4198 (new_symtab): Update calls to new_block.
4199 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4200 (shrink_block): Delete function.
4201 (fixup_sigtramp): Update call to new_block. Add symbol via
4202 dict_add_symbol.
4203 * jv-lang.c: Include dictionary.h.
4204 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4205 appropriately. Set class_symtab->free_func. Make sure the
4206 blockvector is big enough to hold two blocks.
4207 (add_class_symtab_symbol): Use dictionary methods.
4208 (free_class_block): New function.
4209 (type_from_class): Replace explicit iteration by
4210 ALL_BLOCK_SYMBOLS.
4211 * symtab.h (struct symtab): Replace 'free_ptr' method by
4212 'free_func'.
4213 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4214 sort_symtab_syms.
4215 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4216 sort_symtab_syms.
4217 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4218 Include dictionary.h.
4219 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4220 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4221 sort_symtab_syms.
4222 * objfiles.c: Include dictionary.h.
4223 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4224 * buildsym.c: Include dictionary.h.
4225 (finish_block): Use dictionary methods.
4226 (end_symtab): Set free_func to NULL, not free_ptr.
4227 * tracepoint.c: Include dictionary.h.
4228 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4229 (scope_info): Ditto.
4230 * stack.c: Include dictionary.h.
4231 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4232 (print_block_frame_labels, print_frame_arg_vars)
4233 (print_frame_args): Ditto.
4234 * symmisc.c (free_symtab_block): Use dictionary methods.
4235 (dump_symtab): Ditto.
4236 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4237 Include dictionary.h.
4238 * symfile.h: Delete declarations of sort_block_syms,
4239 sort_symtab_syms.
4240 * symfile.c (sort_block_syms): Delete.
4241 (sort_symtab_syms): Delete.
4242 * symtab.c: Include dictionary.h.
4243 (lookup_block_symbol): Use dictionary iterators.
4244 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4245 (search_symbols, make_symbol_completion_list): Ditto.
4246 (make_symbol_overload_list): Ditto.
4247 * valops.c (value_of_local): Use dict_empty.
4248 Include dictionary.h.
4249
4250 2003-06-11 J. Brobecker <brobecker@gnat.com>
4251
4252 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4253
4254 2003-06-11 David Carlton <carlton@bactrian.org>
4255
4256 * block.h (BLOCK_SHOULD_SORT): Delete.
4257 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4258 blocks.
4259 * ada-lang.c (ada_add_block_symbols): Ditto.
4260 * symfile.c (sort_block_syms): Delete.
4261 (sort_symtab_syms): Ditto.
4262 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4263 declarations.
4264 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4265 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4266 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4267 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4268 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4269 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4270 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4271
4272 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4273
4274 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4275 bits to 128.
4276
4277 2003-06-11 Andrew Cagney <cagney@redhat.com>
4278
4279 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4280 REGISTER_CONVERTIBLE.
4281 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4282 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4283 * gdbarch.h, gdbarch.c: Re-generate.
4284 * arch-utils.h (deprecated_register_convertible_not): Rename
4285 generic_register_convertible_not.
4286 * arch-utils.c (deprecated_register_convertible_not): Rename
4287 generic_register_convertible.
4288 (legacy_convert_register_p, legacy_register_to_value): Update.
4289 * sh-tdep.c (sh64_push_arguments): Update.
4290 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4291 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4292 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4293 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4294 * arch-utils.c (legacy_value_to_register): Update.
4295 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4296 (rs6000_register_convert_to_raw): Make parameter "from" const.
4297 * mips-tdep.c (mips_gdbarch_init): Update.
4298 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4299 * infcmd.c (default_print_registers_info): Update.
4300 * ia64-tdep.c (ia64_gdbarch_init): Update.
4301 (ia64_register_convert_to_raw): Make parameter "from" const.
4302 * i386-tdep.c (i386_gdbarch_init): Update.
4303 (i386_register_convert_to_raw): Update.
4304
4305 2003-06-11 Andrew Cagney <cagney@redhat.com>
4306
4307 * remote-fileio.c: Include "remote-fileio.h".
4308 * Makefile.in (remote-fileio.o): Update dependencies.
4309 (remote_fileio_h): Fix typo.
4310
4311 2003-06-11 Andrew Cagney <cagney@redhat.com>
4312
4313 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4314 (xstormy16_save_dummy_frame_tos): Make static.
4315 (_initialize_xstormy16_tdep): Add declaration.
4316 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4317 * v850-tdep.c: Make local functions static.
4318 (_initialize_v850_tdep): Add declaration.
4319 * sparc-tdep.c: Make local functions static.
4320 (_initialize_sparc_tdep): Add declaration.
4321 * sh-tdep.c: Make local functions static.
4322 (_initialize_sh_tdep): Add declaration.
4323 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4324 * s390-tdep.c: Make local functions static.
4325 (_initialize_s390_tdep): Add declaration.
4326 * dbxread.c (find_stab_function_addr): Make static.
4327 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4328 * ocd.c (_initialize_remote_ocd): Add declaration.
4329 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4330 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4331 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4332 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4333 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4334 * remote-array.c (_initialize_array): Add declaration.
4335 (_initialize_remote_monitors): Add declaration.
4336 * remote-mips.c: Make local functions static.
4337 (_initialize_remote_mips): Add declaration.
4338 * mcore-tdep.c: Make all local functions static.
4339 (_initialize_mcore_tdep): Add declaration.
4340 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4341 * abug-rom.c (_initialize_abug_rom): Add declaration.
4342 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4343 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4344 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4345 * remote-est.c (_initialize_est): Add declaration.
4346 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4347 (m68hc11_call_dummy_address): Make static.
4348 * ia64-tdep.c: Make local functions static.
4349 (_initialize_ia64_tdep): Add declaration.
4350 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4351 * monitor.c (monitor_wait_filter): Make static.
4352 (_initialize_remote_monitors): Add declaration.
4353 * remote-hms.c (_initialize_remote_hms): Add declaration.
4354 * remote-e7000.c (fetch_regs_from_dump): Make static.
4355 (expect_n): Make static.
4356 (_initialize_remote_e7000): Add declaration.
4357 * ser-e7kpc.c: Always include "defs.h".
4358 (_initialize_ser_e7000pc): Add declaration.
4359 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4360 * cris-tdep.c: Make all but one function static.
4361 (_initialize_cris_tdep): Add declaration.
4362 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4363 * solib.c (update_solib_list): Make static.
4364 (_initialize_solib): Add declaration.
4365 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4366 (_initialize_avr_tdep): Add declaration.
4367 * remote-rdi.c (voiddummy): Make static.
4368 (_initialize_remote_rdi): Add declaration.
4369 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4370 * remote-rdp.c (send_rdp): Make static.
4371 (_initialize_remote_rdp): Add declaration.
4372 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4373
4374 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4375
4376 * remote-fileio.c: Make ari happy.
4377
4378 2003-06-10 J. Brobecker <brobecker@gnat.com>
4379
4380 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4381 fetching the trailing bytes of the buffer we are about to write.
4382
4383 2003-06-10 Andrew Cagney <cagney@redhat.com>
4384
4385 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4386 * Makefile.in (remote-fileio.o): Update dependencies.
4387 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4388 include <setjmp.h>, or <sys/types.h> conditional on USG.
4389 (remote_fio_jmp_buf): Delete global variable.
4390
4391 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4392 Martin M. Hunt <hunt@redhat.com>
4393
4394 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4395 (SFILES): Add remote-fileio.c.
4396 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4397 dependencies for building remote.o.
4398 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4399 * remote-fileio.h: New header file defining remote File-I/O interface.
4400 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4401 static storage class.
4402 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4403 'F' packet.
4404 (_initialize_remote): Call initialize_remote_fileio().
4405 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4406 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4407 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4408 (captured_main): Initialize new ui_files.
4409 * ui-file.c: Add read and fgets input functions.
4410 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4411 (null_file_read): New function.
4412 (ui_file_read): New function.
4413 (set_ui_file_read): New function.
4414 (stdio_file_read): New function.
4415 * ui-file.h: New type ui_file_read_ftype.
4416 (set_ui_file_read): Declare.
4417 (ui_file_read): Declare.
4418
4419 2003-06-09 Andrew Cagney <cagney@redhat.com>
4420
4421 * frame.h (deprecated_unwind_get_saved_register): Rename
4422 generic_unwind_get_saved_register, update comments.
4423 * mips-tdep.c (mips_get_saved_register): Update.
4424 * frame.c (deprecated_unwind_get_saved_register): Update.
4425
4426 2003-06-09 Andrew Cagney <cagney@redhat.com>
4427
4428 * vax-tdep.c (vax_frame_locals_address): Delete function.
4429 (vax_gdbarch_init): Do not set frame_locals_address.
4430 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4431 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4432 * s390-tdep.c (s390_frame_args_address): Delete function.
4433 (s390_gdbarch_init): Do not set frame_args_address or
4434 frame_locals_address.
4435 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4436 (ns32k_gdbarch_init): Do not set frame_locals_address.
4437 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4438 (hppa_frame_locals_address): Delete function.
4439 (hppa_gdbarch_init): Do not set frame_args_address, or
4440 frame_locals_address.
4441 * arm-tdep.c (arm_frame_args_address): Delete.
4442 (arm_frame_locals_address): Delete.
4443 (arm_gdbarch_init): Do not set frame_args_address, or
4444 frame_locals_address.
4445
4446 2003-06-09 Andrew Cagney <cagney@redhat.com>
4447
4448 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4449 * gdbarch.h, gdbarch.c: Re-generate.
4450 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4451 * arch-utils.c (frame_num_args_unknown): Delete function.
4452 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4453 (frame_info): Use FRAME_NUM_ARGS_P.
4454 * arm-tdep.c (arm_frame_num_args): Delete function.
4455 (arm_gdbarch_init): Do not set frame_num_args.
4456 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4457 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4458 (hppa_gdbarch_init): Do not set frame_num_args.
4459 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4460 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4461 frame_num_args to default frame_num_args_unknown.
4462 * v850-tdep.c (v850_gdbarch_init): Ditto.
4463 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4464 * sh-tdep.c (sh_gdbarch_init): Ditto.
4465 * s390-tdep.c (s390_gdbarch_init): Ditto.
4466 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4467 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4468 * mips-tdep.c (mips_gdbarch_init): Ditto.
4469 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4470 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4471 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4472 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4473 * i386-tdep.c (i386_gdbarch_init): Ditto.
4474 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4475 * frv-tdep.c (frv_gdbarch_init): Ditto.
4476 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4477 * cris-tdep.c (cris_gdbarch_init): Ditto.
4478 * avr-tdep.c (avr_gdbarch_init): Ditto.
4479 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4480
4481 2003-06-09 Andrew Cagney <cagney@redhat.com>
4482
4483 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4484 (print_frame_args): Moved to "stack.c".
4485 * stack.c: Include "gdb_assert.h".
4486 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4487 (print_frame_args): Moved from "printcmd.c".
4488 * frame.h (print_frame_args): Delete declaration.
4489 * Makefile.in (stack.o): Update dependencies.
4490
4491 2003-06-08 Andrew Cagney <cagney@redhat.com>
4492
4493 * frame.c (get_prev_frame): Remove reference to
4494 frame_args_address_correct in comments.
4495 * frame-base.c (default_frame_args_address): Delete code
4496 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4497 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4498 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4499 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4500 (vax_frame_args_address_correct): Delete declaration.
4501
4502 2003-06-08 Andrew Cagney <cagney@redhat.com>
4503
4504 * gdbarch.sh (UNWIND_SP): Add.
4505 * gdbarch.h, gdbarch.c: Re-generate.
4506 * frame.c (frame_sp_unwind): New function.
4507 (get_frame_sp): New function.
4508 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4509 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4510 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4511 value.
4512 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4513 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4514
4515 2003-06-08 Andrew Cagney <cagney@redhat.com>
4516
4517 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4518 REMOTE_BREAKPOINT.
4519 * remote.c: Update.
4520 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4521 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4522 * config/m68k/tm-sun3.h: Update.
4523 * config/m68k/tm-m68klynx.h: Update.
4524 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4525
4526 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4527 trad_frame". Update comments.
4528 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4529 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4530 (trad_frame_register_value, trad_frame_prev_register): Update.
4531
4532 2003-06-08 Andrew Cagney <cagney@redhat.com>
4533
4534 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4535 from GCC's acinclude.m4.
4536 * configure.in: Check for getopt's delcaration.
4537 * aclocal.m4, config.in, configure: Re-generate.
4538 * main.c (error_init): Delete declaration.
4539 * defs.h (error_init): Declare.
4540 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4541 (rs6000_convert_from_func_ptr_addr): Make static.
4542 (_initialize_rs6000_tdep): Add declaration.
4543 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4544 (show_commands, set_verbose, show_history): Delete declaration.
4545 * top.h (set_verbose): Add declaration.
4546 (show_history, set_history, show_commands): Add declaration.
4547 (do_restore_instream_cleanup): Add declaration.
4548 * objc-lang.c (specialcmp): Make static.
4549 (print_object_command): Make static.
4550 (find_objc_msgsend): Make static.
4551 (find_objc_msgcall_submethod_helper): Make static.
4552 (find_objc_msgcall_submethod): Make static.
4553 (_initialize_objc_language): Add declaration.
4554 (find_implementation_from_class): Make static.
4555 (find_implementation): Make static.
4556 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4557 * objc-lang.h (lookup_struct_typedef): Add declaration.
4558 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4559 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4560 (do_restore_user_call_depth): Make static.
4561 (do_restore_instream_cleanup): Delete declaration.
4562 (dont_repeat): Delete declaration.
4563 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4564 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4565 * reggroups.c (_initialize_reggroup): Add declaration.
4566 * cp-support.c (_initialize_cp_support): Add declaration.
4567 * cp-abi.c (_initialize_cp_abi): Add declaration.
4568 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4569 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4570 (_initialize_gnu_v3_abi): Add declaration.
4571 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4572 (_initialize_gnu_v2_abi): Add declaration.
4573 * frame-base.c (_initialize_frame_base): Add declaration.
4574 * doublest.c (floatformat_from_length): Make static.
4575 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4576 * frame.c (create_sentinel_frame): Make static.
4577 (_initialize_frame): Add declaration.
4578 * top.c (do_catch_errors): Make static.
4579 (gdb_rl_operate_and_get_next_completion): Make static.
4580 * typeprint.c: Include "typeprint.h".
4581 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4582 (sentinel_frame_this_id): Make static.
4583 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4584 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4585 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4586 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4587 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4588 * maint.c (maintenance_print_architecture): Make static.
4589 * signals/signals.c (_initialize_signals): Add declaration.
4590 * std-regs.c (_initialize_frame_reg): Add declaration.
4591 * jv-exp.y (push_variable): ISO C definition.
4592 (push_qualified_expression_name): Ditto.
4593 * memattr.c (_initialize_mem): Add declaration.
4594 * remote.c (remote_check_watch_resources): Make static.
4595 (remote_stopped_by_watchpoint): Make static.
4596 (remote_stopped_data_address): Make static.
4597 * d10v-tdep.c (nr_dmap_regs): Make static.
4598 (a0_regnum): Make static.
4599 (d10v_frame_unwind_cache): Make static.
4600 (d10v_frame_p): Make static.
4601 * osabi.c (show_osabi): Make static.
4602 (_initialize_gdb_osabi): Add extern declaration.
4603 * gdbtypes.c (make_qualified_type): Make static.
4604 (safe_parse_type): Make static.
4605 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4606 * macrotab.c (macro_bcache_free): Make static.
4607 * interps.c (interp_set_quiet): Make static.
4608 (interpreter_exec_cmd): Make static.
4609 * stack.h (select_frame_command): New file.
4610 * stack.c: Include "stack.h".
4611 (select_frame_command_wrapper): Delete function.
4612 (select_frame_command): Make global.
4613 * infcall.c: Include "infcall.h".
4614 * linespec.c: Include "linespec.h".
4615 * symfile.c (sections_overlap): Make static.
4616 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4617 * charset.c (_initialize_charset): Add missing prototype.
4618 * regcache.c (init_legacy_regcache_descr): Make static.
4619 (do_regcache_xfree): Make static.
4620 (regcache_xfer_part): Make static.
4621 (_initialize_regcache): Add missing prototype.
4622 * breakpoint.c (parse_breakpoint_sals): Make static.
4623 (breakpoint_sals_to_pc): Make static.
4624 * interps.h (clear_interpreter_hooks): ISO C declaration.
4625 * Makefile.in (stack_h): Define.
4626 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4627 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4628
4629 2003-06-08 Andrew Cagney <cagney@redhat.com>
4630
4631 * Makefile.in (d10v-tdep.o): Update dependencies.
4632 (SFILES): Add trad-frame.c.
4633 (trad_frame_h): Define.
4634 (COMMON_OBS): Add trad-frame.o.
4635 (trad-frame.o): Specify dependencies.
4636 * d10v-tdep.c: Include "trad-frame.h".
4637 (saved_regs_unwinder): Delete function.
4638 (d10v_frame_prev_register): Use trad_frame_prev_register.
4639 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4640 trad_frame", delete "regs" and "prev_sp".
4641 (prologue_find_regs): Use trad-frame.
4642 * trad-frame.h, trad-frame.c: New files.
4643
4644 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4645
4646 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4647
4648 2003-06-07 Adam Fedor <fedor@gnu.org>
4649
4650 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4651 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4652 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4653 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4654 resolve_msgsend_super, resolve_msgsend_super_stret):
4655 Use it.
4656
4657 2003-06-07 Andrew Cagney <cagney@redhat.com>
4658
4659 * symfile.h: Re-indent, clean up comments.
4660
4661 2003-06-07 Andrew Cagney <cagney@redhat.com>
4662
4663 * inferior.h (deprecated_write_sp): Replace
4664 generic_target_write_sp.
4665 * regcache.c (deprecated_write_sp): Replace
4666 generic_target_write_sp.
4667 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4668 * vax-tdep.c (vax_gdbarch_init): Update.
4669 * v850-tdep.c (v850_gdbarch_init): Update.
4670 * sparc-tdep.c (sparc_gdbarch_init): Update.
4671 * sh-tdep.c (sh_gdbarch_init): Update.
4672 * s390-tdep.c (s390_gdbarch_init): Update.
4673 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4674 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4675 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4676 * mcore-tdep.c (mcore_gdbarch_init): Update.
4677 * m68k-tdep.c (m68k_gdbarch_init): Update.
4678 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4679 * ia64-tdep.c (ia64_gdbarch_init): Update.
4680 * h8300-tdep.c (h8300_gdbarch_init): Update.
4681 * frv-tdep.c (frv_gdbarch_init): Update.
4682 * cris-tdep.c (cris_gdbarch_init): Update.
4683 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4684
4685 2003-06-07 Andrew Cagney <cagney@redhat.com>
4686
4687 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4688 Assert that PC_REGNUM is valid.
4689 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4690
4691 2003-06-07 Andrew Cagney <cagney@redhat.com>
4692
4693 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4694 * gdbarch.h, gdbarch.c: Regenerate.
4695 * mn10300-tdep.c: Include "gdb_assert.h".
4696 (mn10300_read_fp): New function.
4697 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4698 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4699 * ia64-tdep.c: Include "gdb_assert.h".
4700 (ia64_read_fp): New function.
4701 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4702 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4703 * regcache.c (generic_target_read_sp): Delete function.
4704 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4705 * inferior.h (generic_target_read_sp): Delete declaration.
4706 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4707 generic_target_read_sp.
4708 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4709 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4710 * sh-tdep.c (sh_gdbarch_init): Ditto.
4711 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4712 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4713
4714 2003-06-07 Andrew Cagney <cagney@redhat.com>
4715
4716 * gdbarch.sh: Comment each field of startup_gdbarch.
4717 * gdbarch.h, gdbarch.c: Re-generate.
4718
4719 2003-06-07 Andrew Cagney <cagney@redhat.com>
4720
4721 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4722 * gdbarch.h, gdbarch.c: Re-generate.
4723 * regcache.c: Update comments on read_pc et.al.
4724 (generic_target_read_pc): Delete function.
4725 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4726 * inferior.h (generic_target_read_pc): Delete declaration.
4727 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4728 generic_target_read_pc.
4729 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4730 * sh-tdep.c (sh_gdbarch_init): Ditto.
4731 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4732 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4733
4734 2003-06-07 Andrew Cagney <cagney@redhat.com>
4735
4736 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4737 "index" with "special_local_sect". Use strcmp instead of STREQ.
4738 Append period to coments.
4739
4740 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4741
4742 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4743 (elfstab_offset_sections): Likewise.
4744 * gdb-stabs.h (stab_section_info): Likewise.
4745 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4746 * objfiles.c (objfile_relocate): Likewise.
4747 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4748 * remote.c (get_offsets): Likewise.
4749 (remote_cisco_objfile_relocate): Likewise.
4750 * somread.c (som_symfile_offsets): Likewise.
4751 * symfile.c (alloc_section_addr_info): New function.
4752 (build_section_addr_info_from_section_tab): Use it.
4753 (free_section_addr_info): Adjust.
4754 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4755 (syms_from_objfile): Allocate local_addr dynamically.
4756 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4757 dynamically.
4758 (add_symbol_file_command): Allocate sect_opts dynamically.
4759 (reread_symbols): Avoid use of SECT_OFF_MAX.
4760 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4761 (alloc_section_addr_info): Declare it.
4762 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4763 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4764 dynamically.
4765 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4766
4767 2003-06-06 Andrew Cagney <cagney@redhat.com>
4768
4769 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4770 (d10v_frame_unwind_cache): Do not set "return_pc".
4771
4772 2003-06-06 Michael Snyder <msnyder@redhat.com>
4773
4774 * h8300-tdep.c: Make tidy (long lines).
4775
4776 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4777
4778 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4779 to regcache_collect().
4780
4781 2003-06-05 J. Brobecker <brobecker@gnat.com>
4782
4783 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4784 pc_in_sigtramp multiarch method.
4785 (hppa_hpux_som_init_abi): Use it.
4786 (hppa_hpux_elf_init_abi): Likewise.
4787 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4788 macro has been multiarched.
4789 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4790 macro here, as hppa64 isn't multiarched yet.
4791
4792 2003-06-05 Andrew Cagney <cagney@redhat.com>
4793
4794 * Makefile.in (value_h): Add $(frame_h).
4795 * value.h: Include "frame.h".
4796 (struct value): Replace "frame_addr" with "frame_id".
4797 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4798 * values.c (allocate_value): Use VALUE_FRAME_ID.
4799 (value_copy): Use VALUE_FRAME_ID.
4800 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4801 * valops.c (value_assign): Update. Use frame_find_by_id.
4802
4803 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4804
4805 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4806 in each pass.
4807
4808 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4809
4810 * thread-db.c (check_event): For create/death event breakpoints,
4811 loop through all messages to ensure that we read the message
4812 corresponding to the breakpoint we are at.
4813
4814 2003-06-04 Michael Snyder <msnyder@redhat.com>
4815
4816 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4817
4818 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4819
4820 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4821 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4822 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4823 when handling .eh_frame sections.
4824
4825 2003-06-04 J. Brobecker <brobecker@gnat.com>
4826
4827 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4828 prepare_to_proceed procedure instead of the hppa-specific one.
4829 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4830
4831 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4832
4833 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4834 * config.in: Regenerated.
4835 * configure.in: Add test for syscall function and check for
4836 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4837 * configure: Regenerated.
4838 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4839 <sys/syscall.h>.
4840 (kill_lwp): New function that uses tkill syscall or
4841 uses kill, depending on whether threading model is nptl or not.
4842 All callers of kill() changed to use kill_lwp().
4843 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4844 see if all threads have already exited in the nptl model.
4845 (stop_and_resume_callback): New callback function used by the
4846 lin_lwp_wait thread exit handling code.
4847 (stop_wait_callback): Check for threads already having exited and
4848 delete such threads fromt the lwp list when discovered.
4849 (stop_callback): Don't assert retcode of kill call.
4850
4851 Roland McGrath <roland@redhat.com>
4852 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4853 nptl libthread_db.
4854
4855 2003-06-03 Richard Henderson <rth@redhat.com>
4856
4857 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4858 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4859 (alpha_sigtramp_frame_prev_register): Likewise.
4860 (alpha_heuristic_frame_prev_register): Likewise.
4861 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4862
4863 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4864 alpha-specific register id names.
4865 (alpha_mdebug_frame_unwind_cache): Likewise.
4866 (alpha_mdebug_frame_prev_register): Likewise.
4867
4868 2003-06-03 Richard Henderson <rth@redhat.com>
4869
4870 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4871 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4872 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4873 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4874 unwind routines.
4875 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4876 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4877 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4878
4879 * alpha-linux-tdep.c: Remove unnecessary includes.
4880 * Makefile.in (alpha-linux-tdep.o): Update.
4881
4882 2003-06-03 Richard Henderson <rth@redhat.com>
4883
4884 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4885 (alphabsd_fill_fpreg): Likewise.
4886
4887 2003-06-03 J. Brobecker <brobecker@gnat.com>
4888
4889 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4890 references to struct frame_info fields by calls to the equivalent
4891 accessors. Necessary now that frame_info is opaque.
4892
4893 2003-06-03 J. Brobecker <brobecker@gnat.com>
4894
4895 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4896 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4897 structure, field no longer exists.
4898
4899 2003-06-03 J. Brobecker <brobecker@gnat.com>
4900
4901 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4902 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4903
4904 2003-06-03 J. Brobecker <brobecker@gnat.com>
4905
4906 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4907 references to struct frame_info fields by calls to the equivalent
4908 accessors. Necessary now that frame_info is opaque.
4909
4910 2003-06-03 J. Brobecker <brobecker@gnat.com>
4911
4912 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4913 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4914 structure, field no longer exists.
4915
4916 2003-06-03 Theodore A. Roth <troth@openavr.org>
4917
4918 * remote.c (init_remote_state): Compute sizeof_g_packet by
4919 accumulation of the size of all registers instead of blindly using
4920 DEPRECATED_REGISTER_BYTES.
4921
4922 2003-06-03 Michael Snyder <msnyder@redhat.com>
4923
4924 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4925 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4926 for h8300sx.
4927
4928 2003-06-03 J. Brobecker <brobecker@gnat.com>
4929
4930 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4931 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4932
4933 2003-06-03 Andrew Cagney <cagney@redhat.com>
4934
4935 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4936 (sparc_convert_to_raw): Delete function.
4937 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4938 register_convert_to_virtual.
4939
4940 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4941
4942 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4943 layer if not dealing with a statically-linked threaded program.
4944
4945 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4946
4947 * solib.c (solib_open): Update comment to reflect actual search order.
4948
4949 2003-06-03 Andrew Cagney <cagney@redhat.com>
4950
4951 * frame.c (get_frame_memory_signed): New function.
4952 (get_frame_memory, get_frame_memory_unsigned): New function.
4953 (get_frame_arch): New function.
4954 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4955 (get_frame_memory, get_frame_unsigned_memory): Declare.
4956 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4957 get_frame_memory_unsigned and get_frame_arch.
4958 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4959
4960 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4961
4962 * MAINTAINERS (write after approval): Add myself.
4963
4964 2003-06-03 Jim Blandy <jimb@redhat.com>
4965
4966 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4967 elements of gregset_t are 64 bits each, but access registers
4968 are still 32 bits, so they're packed two per gregset_t
4969 element. Unpack/pack them properly.
4970
4971 2003-06-02 David Carlton <carlton@bactrian.org>
4972
4973 * linespec.c (find_methods): Break out code into
4974 add_matching_methods and add_constructors.
4975 (add_matching_methods): New.
4976 (add_constructors): Ditto.
4977
4978 2003-06-02 Andrew Cagney <cagney@redhat.com>
4979
4980 * sparc-tdep.c (sparc_print_registers): Delete call to
4981 REGISTER_CONVERTIBLE.
4982 (sparc_gdbarch_init): Do not set register_convertible.
4983 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4984 * frv-tdep.c (frv_gdbarch_init): Ditto.
4985 * cris-tdep.c (cris_gdbarch_init): Ditto.
4986
4987 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4988
4989 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4990 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4991 (syms_from_objfile): Ditto.
4992
4993 2003-06-03 Andreas Schwab <schwab@suse.de>
4994
4995 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4996 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4997
4998 2003-06-02 Richard Henderson <rth@redhat.com>
4999
5000 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5001 a member of all_reggroup.
5002
5003 2003-06-02 Richard Henderson <rth@redhat.com>
5004
5005 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5006 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5007 (alpha_lds, alpha_sts): New.
5008 (alpha_convert_register_p): Change from _register_convertible.
5009 (alpha_register_to_value): Change from _convert_to_virtual;
5010 restructure and fail for type sizes other than 4 or 8.
5011 (alpha_value_to_register): Similarly.
5012 (alpha_extract_return_value): Use alpha_sts.
5013 (alpha_store_return_value): Use alpha_lds.
5014 (alpha_gdbarch_init): Update hooks.
5015
5016 2003-06-02 Richard Henderson <rth@redhat.com>
5017
5018 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5019 regnum identifiers.
5020 (alpha_sigtramp_register_address): Likewise.
5021
5022 2003-06-02 Richard Henderson <rth@redhat.com>
5023
5024 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5025 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5026 * alpha-tdep.h: Declare them.
5027
5028 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5029 Remove zerobuf. Don't error on UNIQUE.
5030 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5031 (ALPHA_REGSET_UNIQUE): Provide default.
5032 (supply_gregset): Use alpha_supply_int_regs.
5033 (fill_gregset): Use alpha_fill_int_regs.
5034 (supply_fpregset): Use alpha_supply_fp_regs.
5035 (fill_fpregset): Use alpha_fill_fp_regs.
5036 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5037 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5038 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5039 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5040 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5041 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5042
5043 2003-06-02 Richard Henderson <rth@redhat.com>
5044
5045 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5046
5047 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5048 (alpha_store_return_value): Likewise.
5049
5050 2003-06-02 David Carlton <carlton@math.stanford.edu>
5051
5052 * block.c (contained_in): Add 'const' to arguments.
5053 (block_function): Ditto.
5054 * block.h: Update declarations for block_function and
5055 contained_in.
5056
5057 2003-06-02 David Carlton <carlton@math.stanford.edu>
5058
5059 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5060 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5061 * p-valprint.c (pascal_val_print): Ditto.
5062 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5063
5064 2003-06-02 Richard Henderson <rth@redhat.com>
5065
5066 * alpha-tdep.c (alpha_push_dummy_call): Use
5067 builtin_type_ieee_double_little instead of builtin_type_double.
5068
5069 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5070 sign-extension of 32-bit values.
5071 (alpha_store_return_value): Similarly.
5072
5073 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5074 (alpha_extract_return_value): Likewise.
5075 (alpha_store_return_value): Likewise.
5076
5077 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5078 (alpha_store_return_value): Error on IEEE Quad floats.
5079
5080 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5081 (alpha_extract_struct_value_address): Likewise.
5082 (alpha_store_return_value): Likewise.
5083 (alpha_store_struct_return): Remove.
5084 (alpha_gdbarch_init): Update hook registration to match.
5085
5086 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5087 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5088 macros where appropriate.
5089 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5090 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5091
5092 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5093 for SP, GP; void_func_ptr for PC; non-language-specific types
5094 for all others.
5095 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5096
5097 2003-06-02 Richard Henderson <rth@redhat.com>
5098
5099 * top.h (lim_at_start): Declare.
5100 * main.c (captured_main): Set it.
5101 * top.c (lim_at_start): Define.
5102 (command_loop): Use it instead of &environ.
5103 * event-top.c (command_handler): Likewise.
5104
5105 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5106
5107 * mipsnbsd-tdep.c: Update copyright years.
5108 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5109
5110 2003-06-01 Richard Henderson <rth@redhat.com>
5111
5112 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5113 (alpha-linux-tdep.o): Update dependencies.
5114 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5115 * alpha-mdebug-tdep.c: Remove unneeded includes.
5116
5117 2003-06-01 Richard Henderson <rth@redhat.com>
5118
5119 * alpha-tdep.c (alpha_register_reggroup_p): New.
5120 (alpha_gdbarch_init): Register it.
5121
5122 2003-06-02 Andrew Cagney <cagney@redhat.com>
5123
5124 * dwarfread.c: Eliminate "register"
5125 (decode_die_type): Eliminate assignment within "if".
5126 (struct_type, decode_array_element_type): Ditto.
5127 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5128 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5129 (decode_modified_type, completedieinfo): Ditto.
5130 * block.c: Eliminate "register".
5131 (blockvector_for_pc_sect): Eliminate assignment within "if".
5132 * cp-support.h (struct symbol): Opaque declaration.
5133 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5134
5135 2003-06-01 Richard Henderson <rth@redhat.com>
5136
5137 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5138 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5139
5140 2003-06-01 Adam Fedor <fedor@gnu.org>
5141
5142 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5143 * gdbarch.[ch]: Regenerate.
5144 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5145 (hppa_gdbarch_init): Set it in the gdbarch vector.
5146 * i386-tdep.c (i386_fetch_pointer_argument): New
5147 (i386_gdbarch_init): Set it into gdbarch.
5148 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5149 (rs6000_gdbarch_init): Set it in gdbarch.
5150 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5151 (sparc_gdbarch_init): Set it in gdbarch.
5152
5153 2003-06-01 Andrew Cagney <cagney@redhat.com>
5154
5155 * defs.h (extract_address): Delete declaration.
5156 * findvar.c (extract_address): Delete function.
5157 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5158 extract_address with the inline equivalent,
5159 extract_unsigned_integer.
5160 (xstormy16_extract_struct_value_address): Ditto.
5161 (xstormy16_pointer_to_address): Ditto.
5162 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5163 * v850-tdep.c (v850_push_arguments): Ditto.
5164 (v850_extract_return_value): Ditto.
5165 (v850_extract_struct_value_address): Ditto.
5166 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5167 (sparcnbsd_get_longjmp_target_64): Ditto.
5168 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5169 (get_longjmp_target): Ditto.
5170 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5171 (sh64_extract_struct_value_address): Ditto.
5172 (sh_push_arguments): Ditto.
5173 (sh64_push_arguments): Ditto.
5174 * remote-vxsparc.c (vx_read_register): Ditto.
5175 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5176 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5177 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5178 * mipsv4-nat.c (get_longjmp_target): Ditto.
5179 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5180 * mips-nat.c (get_longjmp_target): Ditto.
5181 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5182 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5183 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5184 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5185 * irix5-nat.c (get_longjmp_target): Ditto.
5186 * irix4-nat.c (get_longjmp_target): Ditto.
5187 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5188 (ia64_push_arguments): Ditto.
5189 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5190 * h8300-tdep.c (h8300_push_arguments): Ditto.
5191 (h8300_store_return_value): Ditto.
5192 (h8300_extract_struct_value_address): Ditto.
5193 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5194 (frv_push_arguments): Ditto.
5195 * avr-tdep.c (avr_pointer_to_address): Ditto.
5196 (avr_push_arguments): Ditto.
5197 * arm-tdep.c (arm_push_dummy_call): Ditto.
5198 (arm_get_longjmp_target): Ditto.
5199 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5200 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5201 (alpha_get_longjmp_target): Ditto.
5202
5203 * solib-irix.c (extract_mips_address): Inline extract_address,
5204 replacing it with extract_signed_integer.
5205 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5206 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5207 (first_link_map_member, open_symbol_file_object): Ditto.
5208 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5209 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5210 (LM_NEXT, LM_NAME): Ditto.
5211
5212 2003-06-01 Richard Henderson <rth@redhat.com>
5213
5214 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5215 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5216 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5217 (alpha_cannot_store_register): Likewise.
5218 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5219 * alpha-nat.c (supply_gregset): Likewise.
5220 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5221
5222 2003-06-01 Andrew Cagney <cagney@redhat.com>
5223
5224 * infcall.c (call_function_by_hand): Update comment on
5225 DEPRECATED_DUMMY_WRITE_SP.
5226
5227 * mips-tdep.c (mips_gdbarch_init): Do not set
5228 deprecated_dummy_write_sp.
5229 (mips_eabi_push_dummy_call): Set the SP register.
5230 (mips_o64_push_dummy_call): Set the SP register.
5231 (mips_o32_push_dummy_call): Set the SP register.
5232 (mips_n32n64_push_dummy_call): Set the SP register.
5233
5234 2003-06-01 Richard Henderson <rth@redhat.com>
5235
5236 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5237 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5238 (supply_gregset): Likewise.
5239 * alpha-tdep.c (alpha_store_return_value): Likewise.
5240 (alpha_get_longjmp_target): Likewise.
5241 (alpha_register_name): Constify array.
5242 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5243 deprecated_register_size, deprecated_register_bytes,
5244 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5245 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5246 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5247
5248 2003-06-01 Richard Henderson <rth@redhat.com>
5249
5250 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5251 from arg_reg_buffer to regcache to avoid double conversion.
5252
5253 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5254
5255 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5256 SP_REGNUM.
5257 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5258 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5259
5260 2003-06-01 Richard Henderson <rth@redhat.com>
5261
5262 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5263 (decode_frame_entry): Set it. Skip FDE augmentation.
5264
5265 2003-06-01 Richard Henderson <rth@redhat.com>
5266
5267 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5268 not overlapping PC_REGNUM.
5269
5270 2003-06-01 Richard Henderson <rth@redhat.com>
5271
5272 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5273 alpha_push_arguments. Don't dump argument register data to
5274 the target stack. Fix float and 128-bit long double semantics.
5275 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5276 (alpha_fix_call_dummy): Remove.
5277 (alpha_call_dummy_words): Remove.
5278 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5279
5280 2003-06-01 Richard Henderson <rth@redhat.com>
5281
5282 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5283
5284 2003-06-01 Andrew Cagney <cagney@redhat.com>
5285
5286 * mips-tdep.c (is_mips16_addr): New function.
5287 (make_mips16_addr, unmake_mips16_addr): New functions.
5288 (pc_is_mips16, mips_fetch_instruction): Use.
5289 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5290 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5291 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5292 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5293 TARGET_MIPS.
5294 * config/mips/tm-mips.h: Update copyright.
5295 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5296 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5297 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5298 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5299 (TM_PRINT_INSN_MACH): Delete.
5300 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5301
5302 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5303 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5304 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5305 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5306 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5307 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5308 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5309 mips*-*-riscos* and mips*-*-sysv* onto mips.
5310 * config/mips/mips64.mt: New file.
5311 * config/mips/mips.mt: New file.
5312 * config/mips/littlemips.mt: Delete file.
5313 * config/mips/decstation.mt: Delete file.
5314 * config/mips/vr4300el.mt: Delete file.
5315 * config/mips/vr5000el.mt: Delete file.
5316 * config/mips/vr5000.mt: Delete file.
5317 * config/mips/vr4100.mt: Delete file.
5318 * config/mips/vr4xxxel.mt: Delete file.
5319 * config/mips/vr4300.mt: Delete file.
5320 * config/mips/vr4xxx.mt: Delete file.
5321 * config/mips/bigmips.mt: Delete file.
5322 * config/mips/bigmips64.mt: Delete file.
5323 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5324 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5325 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5326 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5327 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5328 "tm-bigmips.h".
5329 * config/mips/tm-irix3.h: Ditto.
5330 * config/mips/tm-mipsv4.h: Ditto.
5331 * config/mips/tm-embed.h: Ditto.
5332 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5333 "tm-bigmips64.h".
5334 * config/mips/tm-vr5000el.h: Delete file.
5335 * config/mips/tm-tx39l.h: Delete file.
5336 * config/mips/tm-vr4300el.h: Delete file.
5337 * config/mips/tm-vr4xxxel.h: Delete file.
5338 * config/mips/tm-vr4300.h: Delete file.
5339 * config/mips/tm-vr4100.h: Delete file.
5340 * config/mips/tm-vr4xxx.h: Delete file.
5341 * config/mips/tm-vr5000.h: Delete file.
5342 * config/mips/tm-embedl64.h: Delete file.
5343 * config/mips/tm-embedl.h: Delete file.
5344 * config/mips/tm-embed64.h: Delete file.
5345 * config/mips/tm-bigmips64.h: Delete file.
5346 * config/mips/tm-bigmips.h: Delete file.
5347
5348 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5349
5350 Fix gdb/1216.
5351 * shnbsd-nat.c: Include "sh-tdep.h".
5352
5353 From Richard Henderson <rth@redhat.com>:
5354 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5355
5356 2003-05-31 Andrew Cagney <cagney@redhat.com>
5357
5358 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5359 forward declaration.
5360 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5361 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5362 (mips_find_saved_regs): Use set_reg_offset.
5363 (mips_frame_init_saved_regs): Delete function.
5364 (mips_pop_frame): Call mips_find_saved_regs instead of
5365 DEPRECATED_FRAME_INIT_SAVED_REGS.
5366
5367 2003-05-31 Andrew Cagney <cagney@redhat.com>
5368
5369 * mips-tdep.c (mips_gdbarch_init): Do not set
5370 deprecated_max_register_raw_size, register_virtual_size, and
5371 deprecated_max_register_virtual_size.
5372
5373 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5374
5375 * i386-tdep.c: Include "dwarf2-frame.h".
5376 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5377 * Makefile.in (i386-tdep.o): Update dependencies.
5378
5379 * dwarf2-frame.c, dwarf2-frame.h: New files.
5380 * Makefile.in (SFILES): Add dwarf2-frame.c.
5381 (dwarf2_frame_h): Define.
5382 (COMMON_OBS): Add dwarf2-frame.o.
5383 (dwarf2-frame.o): Add dependencies.
5384
5385 2003-05-31 Andreas Jaeger <aj@suse.de>
5386
5387 * x86-64-linux-nat.c: Fix comment.
5388
5389 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5390
5391 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5392 function signature.
5393
5394 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5395 have a sigcontext_addr handler.
5396 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5397 sigcontext_addr handler.
5398
5399 2003-05-31 Andrew Cagney <cagney@redhat.com>
5400
5401 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5402 (print_fp_register_row): Replace do_fp_register_row.
5403 (mips_print_fp_register): Add "file" and "frame" parameters.
5404 (mips_print_register): Add "file" and "frame" parameters.
5405 (mips_print_registers_info): Replace mips_do_registers_info.
5406 (mips_gdbarch_init): Set print_registers_info instead of
5407 deprecated_do_registers_info.
5408 (mips_read_fp_register_single): Add "frame" parameter.
5409 (mips_read_fp_register_double): Add "frame" parameter.
5410
5411 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5412
5413 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5414 Fixes a bug where GDB would print the wrong register names for
5415 targets without SSE.
5416
5417 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5418 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5419 registers.
5420
5421 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5422 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5423 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5424 TDEP->sc_sp_offset.
5425
5426 From Michal Ludvig <mludvig@suse.cz>:
5427 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5428 and `sc_num_regs'.
5429 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5430 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5431 I386_ST0_REGNUM): Move here from...
5432 * i386-tdep.c: ... here.
5433 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5434 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5435 registers if possible.
5436 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5437 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5438 Remove variables.
5439 (i386bsd_sc_reg_offset): New variable.
5440 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5441 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5442 TDEP->sc_sp_offset.
5443 (i386fbsd_sc_reg_offset): New variable.
5444 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5445 TDEP->sc_num_regs.
5446 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5447 variables.
5448 (i386fbsd4_sc_reg_offset): New variable.
5449 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5450 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5451 TDEP->sc_sp_offset.
5452 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5453 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5454 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5455 Remove variables.
5456 (i386nbsd_sc_reg_offset): New variable.
5457 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5458 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5459 TDEP->sc_sp_offset.
5460 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5461 Remove variables.
5462 (i386obsd_sc_reg_offset): New variable.
5463 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5464 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5465 TDEP->sc_sp_offset.
5466 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5467 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5468 for frame pointer offset in `struct sigcontext'.
5469
5470 2003-05-31 Andrew Cagney <cagney@redhat.com>
5471
5472 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5473 architecture methods call_dummy_words, sizeof_call_dummy_words,
5474 push_return_address, store_struct_return, and fix_call_dummy. Set
5475 push_dummy_call instead of deprecated_push_arguments.
5476 (mips_store_struct_return): Delete function.
5477 (mips_fix_call_dummy): Delete function.
5478 (mips_push_return_address): Delete function.
5479 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5480 RA_REGNUM and T9_REGNUM.
5481 (mips_n32n64_push_dummy_call): Ditto for
5482 mips_n32n64_push_arguments.
5483 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5484 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5485
5486 2003-05-31 Andrew Cagney <cagney@redhat.com>
5487
5488 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5489 "dummy_addr" to "bp_addr".
5490 * infcall.c (call_function_by_hand): Pass "funaddr" to
5491 gdbarch_push_dummy_call.
5492 * gdbarch.h, gdbarch.c: Re-generate.
5493 * i386-tdep.c (i386_push_dummy_call): Update.
5494 * arm-tdep.c (arm_push_dummy_call): Update.
5495 * d10v-tdep.c (d10v_push_dummy_call): Update.
5496
5497 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5498
5499 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5500 variable declarations.
5501 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5502 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5503 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5504 x86_64_init_frame_pc, x86_64_init_frame_pc,
5505 x86_64_function_has_prologue): Remove prototypes.
5506 (X86_64_NUM_GREGS): New define.
5507 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5508 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5509 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5510 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5511 XMM1_REGNUM): Remove defines.
5512 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5513 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5514 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5515 X86_64_XMM1_REGNUM): New defines.
5516 (struct x86_64_register_info): Renamed from `struct
5517 register_info'. Remove `size' member.
5518 (x86_64_register_info_table): Remove variable.
5519 (x86_64_register_info): New variable.
5520 (X86_64_NUM_REGS): New define.
5521 (X86_64_NUM_GREGS): Remove define.
5522 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5523 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5524 Remove variables.
5525 (x86_54_dwarf2_reg_to_regnum): Remove function.
5526 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5527 (x86_64_dwarf_reg_to_regnum): New function.
5528 (x86_64_register_name): Rewrite.
5529 (x86_64_register_raw_size): Remove function.
5530 (x86_64_register_byte_table): Remove variable.
5531 (x86_64_register_byte): Remove function.
5532 (x86_64_register_virtual_type): Remove function.
5533 (x86_64_register_type): New function.
5534 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5535 x86_64_register_convert_to_raw): Remove functions.
5536 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5537 (x86_64_use_struct_convention): Make static. Adjust for renamed
5538 defines.
5539 (x86_64_frame_init_saved_regs): Remove function.
5540 (x86_64_push_arguments): Make static. Change to accept a regcache
5541 as argument.
5542 (x86_64_store_return_value, x86_64_extract_return_value): Make
5543 static. Rewrite based on i386 counterparts.
5544 (x86_64_push_dummy_call): New function.
5545 (X86_64_NUM_SAVED_REGS): New define.
5546 (x86_64_register_number): Remove function.
5547 (x86_64_store_struct_return): Remove function.
5548 (x86_64_frameless_function_invocation,
5549 x86_64_function_has_prologue): Remove functions.
5550 (PROLOG_BUFSIZE): Remove define.
5551 (struct x86_64_frame_cache): New structure.
5552 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5553 x86_64_frame_cache, x86_64_frame_this_id,
5554 x86_64_frame_prev_register, x86_64_frame_p,
5555 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5556 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5557 functions.
5558 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5559 variables.
5560 (x86_64_skip_prologue): Rewrite in terms of
5561 x86_64_analyze_prologue.
5562 (x86_64_frame_base_address): New function.
5563 (x86_64_frame_base): New variable.
5564 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5565 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5566 set deprecated_fp_regnum, deprecated_register_size,
5567 deprecated_register_bytes, register_raw_size, register_byte,
5568 register_virtual_type, register_convertiable,
5569 register_convert_to_virtual, convert_to_raw,
5570 deprecated_get_saved_register, deprecated_target_read_fp,
5571 deprecated_push_arguments, deprecated_push_return_address,
5572 deprecated_pop_frame, deprecated_store_struct_return,
5573 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5574 frameless_function_invocation, deprecated_frame_saved_pc,
5575 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5576 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5577 deprecated_init_frame_pc and virtual_frame_pointer. Call
5578 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5579 and x86_64_frame_p. Call frame_base_set_default to register
5580 x86_64_frame_base.
5581 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5582 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5583 (_initialize_x86_64_tdep): Remove function.
5584 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5585 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5586 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5587 define.
5588 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5589 (x86_64_linux_sigcontext_addr): Rewrite.
5590 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5591 x86_64_linux_frame_saved_pc): Remove functions.
5592 (x86_64_linux_pc_in_sigtramp): Renamed from
5593 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5594 trampoline.
5595 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5596 Remove_functions.
5597 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5598 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5599 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5600 (x86_64_regmap): Rename to regmap.
5601 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5602 x86_64_num_gregs.
5603 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5604 x86_64_regmap.
5605 (x86_64_fxsave_offset): Remove function.
5606 (supply_fpregset): Simply call x86_64_supply_fxsave.
5607 (fill_fpregset): Simply call x86_64_fill_fxsave.
5608 (fetch_inferior_registers, store_inferior_registers): Avoid
5609 asignment in if-statement.
5610 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5611 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5612 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5613 (fetch_core_registers): Remove function.
5614 (linux_elf_core_fns): Remove.
5615 (offsetoff): Don't define.
5616 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5617 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5618 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5619 add core-regset.o.
5620 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5621 protection against multiple includes instead of NM_X86_64_h. Add
5622 various comments. Include "config/nm-linux.h". Don't include
5623 <signal.h>.
5624 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5625 GET_THREAD_SIGNALS): Remove defines.
5626 (x86_64_register_u_addr, kernel_u_size,
5627 lin_thread_get_thread_signals): Remove prototypes.
5628 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5629 [HAVE_LINK_H]: Don't include "solib.h".
5630 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5631 * config/i386/tm-x86-64linux.h: Fix comments.
5632 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5633 x86-64-tdep.o): Update dependencies.
5634
5635 2003-05-30 Andrew Cagney <cagney@redhat.com>
5636
5637 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5638 Change parameter type to a "struct regcache *".
5639
5640 * gdbarch.sh: Regardless of the multi-arch level, always define
5641 the macro when not already defined.
5642 * gdbarch.h, gdbarch.c: Re-generate.
5643
5644 2003-05-30 Richard Henderson <rth@redhat.com>
5645
5646 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5647 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5648 (alpha_mdebug_frame_this_id): Likewise.
5649 (alpha_mdebug_frame_prev_register): Likewise.
5650 (alpha_mdebug_frame_base_address): Likewise.
5651 (alpha_mdebug_frame_locals_address): Likewise.
5652 (alpha_mdebug_frame_args_address): Likewise.
5653 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5654 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5655 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5656 loop increment.
5657 (alpha_heuristic_frame_this_id): Make static.
5658 (alpha_heuristic_frame_prev_register): Likewise.
5659 (alpha_heuristic_frame_base_address): Likewise.
5660 * alpha-tdep.h: Update.
5661
5662 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5663
5664 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5665 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5666 defenitions.
5667 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5668 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5669 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5670 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5671 I386_ST0_REGNUM): New defines.
5672 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5673 codestream_get): Remove define.
5674 (codestream_next_addr, condestream_addr, condestream_buf,
5675 codestream_off, codestream_cnt): Remove variables.
5676 (codestream_fill, codestream_seek, codestream_read): Remove
5677 functions.
5678 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5679 functionality.
5680 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5681 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5682 i386_frame_saved_pc, i386_saved_pc_after_call,
5683 i386_frame_num_args, i386_frame_init_saved_regs,
5684 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5685 i386_push_arguments): Remove functions.
5686 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5687 functionality. Use i386_analyze_prologue instead of
5688 i386_get_frame_setup.
5689 (I386_NUM_SAVED_REGS): New define.
5690 (struct i386_frame_cache): New structure.
5691 (i386_alloc_frame_cache, i386_analyze_struct_return,
5692 i386_skip_probe, i386_analyze_frame_setup,
5693 i386_analyze_register_saves, i386_analyze_prologue,
5694 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5695 i386_frame_prev_register, i386_sigtramp_frame_cache,
5696 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5697 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5698 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5699 New functions.
5700 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5701 New variables.
5702 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5703 I386_EAX_REGNUM and I386_EDX_REGNUM.
5704 (i386_extract_return_value, i386_store_return_value): Use
5705 I386_ST0_REGNUM where appropriate.
5706 (i386_extract_struct_value_address): Rewrite to use extract_address.
5707 (i386_svr4_pc_in_sigtramp): Add comment.
5708 (i386_svr4_sigcontext_addr): Rewrite.
5709 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5710 TDEP->sc_sp_offset.
5711 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5712 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5713 of new defines. Set push_dummy_call, don't set
5714 deprecated_push_arguments, deprecated_push_return_address,
5715 deprecated_pop_frame. Don't set parm_boundary. Don't set
5716 deprecated_frame_chain, deprecated_frame_saved_pc,
5717 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5718 save_dummy_frame_tos, unwind_pc. Call
5719 frame_unwind_append_predicate and frame_base_set_default. Don't
5720 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5721 Don't set frameless_function_invocation. Don't set
5722 deprecated_register_bytes, deprecated_register_size,
5723 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5724 * i386-linux-tdep.c: Fix formatting in some comments.
5725 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5726 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5727 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5728 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5729 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5730 redundant parentheses.
5731 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5732 (i386_linux_sigcontext_addr): Use it. Rewrite.
5733 (find_minsym_and_objfile): Change name of second argument.
5734 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5735 changed. Use frame_pc_unwind instead of
5736 DEPRECATED_SAVED_PC_AFTER_CALL.
5737 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5738 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5739 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5740 unwinder.
5741 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5742 "dummy-frame.h".
5743 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5744 (_initialize_i386_cygwin_tdep): New prototype.
5745 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5746 deprecated_frame_chain_valid.
5747 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5748 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5749 Rely on the SVR4 defaults.
5750 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5751 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5752
5753 2003-05-30 Andrew Cagney <cagney@redhat.com>
5754
5755 * infcall.c (call_function_by_hand): Always call
5756 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5757
5758 2003-05-30 Richard Henderson <rth@redhat.com>
5759
5760 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5761 increment.
5762
5763 2003-05-29 Jim Blandy <jimb@redhat.com>
5764
5765 Use gdbarch methods for solib stuff on PowerPC Linux.
5766 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5767 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5768 show through.
5769 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5770 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5771 giving the same effect as the #definitions above.
5772
5773 2003-05-29 Adam Fedor <fedor@gnu.org>
5774
5775 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5776 (find_implementation_from_class): Replace it with the standard
5777 case i.e. do nothing.
5778
5779 2003-05-29 Richard Henderson <rth@redhat.com>
5780
5781 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5782 (alpha_linux_sigtramp_offset): Use it. Make static.
5783 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5784 update for new frame model.
5785 * alpha-mdebug-tdep.c: New file.
5786 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5787 (alpha_osf1_init_abi): Install it.
5788 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5789 (linked_proc_desc_table): Remove.
5790 (alpha_frame_past_sigtramp_frame): Remove.
5791 (alpha_dynamic_sigtramp_offset): Remove.
5792 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5793 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5794 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5795 (push_sigtramp_desc): Remove.
5796 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5797 (alpha_cannot_store_register): Likewise.
5798 (alpha_sigcontext_addr): Remove.
5799 (alpha_find_saved_regs): Remove.
5800 (alpha_frame_init_saved_regs): Remove.
5801 (alpha_init_frame_pc_first): Remove.
5802 (read_next_frame_reg): Remove.
5803 (alpha_frame_saved_pc): Remove.
5804 (alpha_saved_pc_after_call): Remove.
5805 (temp_proc_desc, temp_saved_regs): Remove.
5806 (alpha_about_to_return): Remove.
5807 (cached_proc_desc): Remove.
5808 (alpha_frame_chain): Remove.
5809 (alpha_print_extra_frame_info): Remove.
5810 (alpha_init_extra_frame_info): Remove.
5811 (alpha_frame_locals_address): Remove.
5812 (alpha_frame_args_address): Remove.
5813 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5814 (alpha_push_dummy_frame): Remove.
5815 (alpha_pop_frame): Remove.
5816 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5817 (alpha_read_insn): New.
5818 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5819 for different insn encodings.
5820 (alpha_in_lenient_prologue): Remove.
5821 (struct alpha_sigtramp_unwind_cache): New.
5822 (alpha_sigtramp_frame_unwind_cache): New.
5823 (alpha_sigtramp_register_address): New.
5824 (alpha_sigtramp_frame_this_id): New.
5825 (alpha_sigtramp_frame_prev_register): New.
5826 (alpha_sigtramp_frame_unwind): New.
5827 (alpha_sigtramp_frame_p): New.
5828 (struct alpha_heuristic_unwind_cache): New.
5829 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5830 don't count nop insns that occur between functions.
5831 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5832 heuristic_proc_desc, but without the mdebug wrapping.
5833 (alpha_heuristic_frame_this_id): New.
5834 (alpha_heuristic_frame_prev_register): New.
5835 (alpha_heuristic_frame_unwind): New.
5836 (alpha_heuristic_frame_p): New.
5837 (alpha_heuristic_frame_base_address): New.
5838 (alpha_heuristic_frame_base): New.
5839 (alpha_unwind_dummy_id): New.
5840 (alpha_unwind_pc): New.
5841 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5842 frame related deprecated initializations; install replacements.
5843 (alpha_dump_tdep): Remove.
5844 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5845 (alpha_read_insn, alpha_after_prologue,
5846 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5847 alpha_heuristic_frame_prev_register,
5848 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5849 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5850 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5851 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5852
5853 2003-05-29 Andrew Cagney <cagney@redhat.com>
5854
5855 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5856 dependant on the availability of ASSERT_FUNCTION.
5857 (ASSERT_FUNCTION): Do not define when there is no function name.
5858
5859 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5860
5861 From Jimi X <jimix@watson.ibm.com>:
5862 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5863
5864 2003-05-28 Jim Blandy <jimb@redhat.com>
5865
5866 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5867 argument to ptrace to int; the system headers should give it the
5868 right type, and pointers don't fit in ints on powerpc64-*-*.
5869
5870 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5871
5872 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5873 DW_TAG_catch_block.
5874
5875 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5876
5877 * stabsread.c (dbx_lookup_type): Make static.
5878 (read_type): Ditto.
5879 (add_undefined_type): Ditto.
5880 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5881 not export.
5882
5883 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5884
5885 * hpread.c (hpread_has_name): Make static.
5886 (hpread_psymtab_to_symtab): Ditto.
5887 (file_exists): Ditto.
5888 (hpread_call_pxdb): Ditto.
5889 (hpread_pxdb_needed): Ditto.
5890 (hpread_quick_traverse): Ditto.
5891 (hpread_get_header): Ditto.
5892 (hpread_get_lntt): Ditto.
5893 (hpread_get_slt): Ditto.
5894 (class_of): Ditto.
5895
5896 2003-05-25 Andreas Schwab <schwab@suse.de>
5897
5898 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5899 stack_align and deprecated_extra_stack_alignment_needed.
5900 (m68k_stack_align): Delete.
5901
5902 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5903 (m68k_register_virtual_size): Likewise.
5904 (altos_skip_prologue): Remove obsolete function.
5905 (isi_frame_num_args): Likewise.
5906 (news_frame_num_args): Likewise.
5907 (m68k_fix_call_dummy): Make static.
5908 (m68k_push_dummy_frame): Likewise.
5909 (m68k_pop_frame): Likewise.
5910 (m68k_skip_prologue): Likewise.
5911 (m68k_frame_init_saved_regs): Likewise.
5912 (m68k_saved_pc_after_call): Likewise.
5913 (m68k_get_longjmp_target): Make multi-arch.
5914 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5915 structure. Register m68k_get_longjmp_target if enabled.
5916 * m68k-tdep.h (struct gdbarch_tdep): Define.
5917 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5918
5919 * Makefile.in (config.status): Also depend on configure.tgt
5920 and configure.host.
5921 (m68klinux-tdep.o): Update dependencies.
5922 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5923 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5924 (M68K_LINUX_JB_PC): Define.
5925 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5926 and take additional parameter.
5927 (m68k_linux_sigtramp_saved_pc): Update.
5928 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5929 m68k_linux_pc_in_sigtramp, in_plt_section,
5930 find_solib_trampoline_target.
5931 * config/m68k/tm-linux.h: Don't include any tm headers.
5932 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5933 (JB_ELEMENT_SIZE): Likewise.
5934 (JB_PC): Likewise.
5935 (GET_LONGJMP_TARGET): Likewise.
5936 (IN_SIGTRAMP): Likewise.
5937 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5938
5939 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5940
5941 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5942 (sparc32_push_arguments): Re-implement by calling
5943 sparc32_do_push_arguments.
5944
5945 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5946
5947 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5948 SPARC_O1_REGNUM): New defines.
5949 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5950 (sparc32_store_return_value): New function.
5951 (sparc_extract_struct_value_address): Rewrite to operate on a
5952 regcache.
5953 (sparc_gdbarch_init): Don't set
5954 deprecated_extract_struct_value_address. Set
5955 extract_struct_value_address instead. Don't set
5956 deprecated_extract_return_value and deprecated_store_return_value
5957 for 32-bit targets. Set extract_return_value and
5958 store_return_value instead.
5959 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5960 DEPRECTAED_EXTRACT_RETURN_VALUE,
5961 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5962 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5963 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5964 (sparc_store_return_value): Remove prototype.
5965 (sparc32_store_return_value): New prototype.
5966 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5967 Adjust prototypes.
5968
5969 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5970
5971 * sparcnbsd-tdep.c: Include "gdb_string.h".
5972
5973 2003-05-23 Andrew Cagney <cagney@redhat.com>
5974
5975 * p-valprint.c (pascal_val_print): Replace extract_address with
5976 the inline equivalent extract_unsigned_integer.
5977 * jv-valprint.c (java_value_print): Ditto.
5978 * ada-valprint.c (ada_val_print_1): Ditto.
5979 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5980
5981 2003-05-23 Theodore A. Roth <troth@openavr.org>
5982
5983 * blockframe.c (frameless_look_for_prologue): Remove unused
5984 after_prologue variable.
5985
5986 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5987
5988 * blockframe.c (get_pc_function_start): Rewrite to avoid
5989 asignments in if-statements.
5990
5991 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5992
5993 Committed by Elena Zannoni <ezannoni@redhat.com>.
5994 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5995 files, don't relocate absolute symbols (and do use mst_abs).
5996
5997 2003-05-23 Andrew Cagney <cagney@redhat.com>
5998
5999 * objc-lang.c: Include "gdb_assert.h".
6000 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6001 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6002 (gdb_check, gdb_check_fatal): Delete functions.
6003 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6004 gdb_assert.
6005 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6006 * Makefile.in (objc-lang.o): Update dependencies.
6007
6008 2003-05-22 Ian Lance Taylor <ian@airs.com>
6009
6010 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6011 with fprintf_filtered, not fprintf_unfiltered.
6012
6013 2003-05-22 Andrew Cagney <cagney@redhat.com>
6014
6015 * stack.c (frame_info): Inline extract_address, replacing it with
6016 extract_unsigned_integer.
6017 * findvar.c (unsigned_pointer_to_address): Ditto.
6018 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6019 * dwarf2expr.c (dwarf2_read_address): Ditto.
6020 * frame.c (frame_pc_unwind): Update comment.
6021 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6022
6023 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6024
6025 * infptrace.c (detach): Call print_sys_errmsg rather than
6026 perror_with_name to issue warning message when errno is non-zero
6027 after calling ptrace detach.
6028
6029 2003-05-21 J. Brobecker <brobecker@gnat.com>
6030
6031 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6032 macro definitions from here...
6033 * hppa-tdep.c: ...to there.
6034
6035 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6036
6037 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6038 register_ptrace_addr(). Fix all callers.
6039
6040 2003-05-21 Andreas Schwab <schwab@suse.de>
6041
6042 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6043 dependencies.
6044 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6045 end.
6046 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6047 (_initialize_m68k_linux_tdep): New function.
6048 (m68k_linux_frame_saved_pc): Make static.
6049 (m68k_linux_extract_return_value): Likewise.
6050 (m68k_linux_store_return_value): Likewise.
6051 (m68k_linux_extract_struct_value_address): Likewise.
6052 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6053 Remove.
6054 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6055 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6056 (DEPRECATED_FRAME_SAVED_PC): Remove.
6057
6058 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6059
6060 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6061 regset numbering rather than our own.
6062
6063 2003-05-19 David Carlton <carlton@bactrian.org>
6064
6065 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6066
6067 2003-05-19 David Carlton <carlton@bactrian.org>
6068
6069 Partial fix for PR c++/827.
6070 * cp-support.h: Include symtab.h.
6071 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6072 * cp-namespace.c: Update contributors.
6073 (cp_lookup_symbol_nonlocal): New.
6074 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6075 (lookup_symbol_file): Ditto.
6076 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6077 * block.h: Declare block_scope, block_using, block_global_block.
6078 * block.c (block_scope): New.
6079 (block_using, block_global_block): Ditto.
6080 * Makefile.in (cp_support_h): Depend on symtab_h.
6081 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6082
6083 2003-05-19 David Carlton <carlton@bactrian.org>
6084
6085 * language.h (struct language_defn): Add 'la_value_of_this'
6086 and 'la_lookup_symbol_nonlocal' members.
6087 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6088 lookup_symbol_static, lookup_symbol_global,
6089 lookup_symbol_aux_block.
6090 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6091 if we should search fields of this and how to do static/global
6092 lookup.
6093 (lookup_symbol_aux_block): Make extern.
6094 (basic_lookup_symbol_nonlocal): New.
6095 (lookup_symbol_static, lookup_symbol_global): Ditto.
6096 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6097 'la_lookup_symbol_nonlocal' members.
6098 * c-lang.c (c_language_defn, cplus_language_defn)
6099 (asm_language_defn, minimal_language_defn): Ditto.
6100 * jv-lang.c (java_language_defn): Ditto.
6101 * language.c (unknown_language_defn, auto_language_defn)
6102 (local_language_defn): Ditto.
6103 * m2-lang.c (m2_language_defn): Ditto.
6104 * objc-lang.c (objc_language_defn): Ditto.
6105 * scm-lang.c (scm_language_defn): Ditto.
6106 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6107 * p-lang.c (pascal_language_defn): Ditto for both.
6108 * Makefile.in (f-lang.o): Depend on value_h.
6109 (p-lang.o): Ditto.
6110
6111 2003-05-19 David Carlton <carlton@bactrian.org>
6112
6113 * block.h: Declare block_static_block.
6114 * block.c (block_static_block): New.
6115 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6116 lookup_symbol_aux_local, calling block_static_block instead.
6117 (lookup_symbol_aux_local): Delete 'static_block' argument.
6118
6119 2003-05-19 David Carlton <carlton@bactrian.org>
6120
6121 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6122
6123 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6124
6125 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6126 register numbers mapping.
6127
6128 2003-05-18 Adam Fedor <fedor@gnu.org>
6129
6130 * symtab.c (completion_list_objc_symbol): New function.
6131 (make_symbol_completion_list): Use it to add ObjC symbols
6132 when looking though the list.
6133 (language_search_unquoted_string): New function.
6134 (make_file_symbol_completion_list): Use it.
6135
6136 2003-05-18 Andreas Schwab <schwab@suse.de>
6137
6138 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6139 dependencies.
6140 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6141 as m68k_linux_extract_return_value.
6142 (DEPRECATED_STORE_RETURN_VALUE): Define as
6143 m68k_linux_store_return_value.
6144 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6145 m68k_linux_extract_struct_value_address.
6146 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6147 get_next_frame, get_frame_base, get_frame_pc.
6148 (m68k_linux_frame_saved_pc): Use get_frame_base.
6149 (m68k_linux_extract_return_value): New function.
6150 (m68k_linux_store_return_value): New function.
6151 (m68k_linux_extract_struct_value_address): New function.
6152 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6153
6154 * c-exp.y (typebase): Remove duplicate occurence of
6155 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6156 of lookup_signed_typename.
6157
6158 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6159
6160 * dwarf2loc.c (find_location_expression): Change type of second
6161 argument to `size_t *'.
6162 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6163 for size variable.
6164
6165 2003-05-18 David Carlton <carlton@bactrian.org>
6166
6167 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6168 'linkage_name'. Add comment.
6169 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6170 'linkage_name'.
6171 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6172 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6173 (lookup_block_symbol): Ditto.
6174
6175 2003-05-16 Andrew Cagney <cagney@redhat.com>
6176
6177 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6178 * gdbarch.h, gdbarch.c: Re-generate.
6179 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6180 * TODO (REGISTER_BYTES): Delete reference.
6181 * alpha-tdep.c (alpha_gdbarch_init): Update.
6182 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6183 * x86-64-tdep.c (x86_64_init_abi): Update.
6184 * vax-tdep.c (vax_gdbarch_init): Update.
6185 * v850-tdep.c (v850_gdbarch_init): Update.
6186 * sparc-tdep.c (sparc_gdbarch_init): Update.
6187 * sh-tdep.c (sh_gdbarch_init): Update.
6188 * s390-tdep.c (s390_gdbarch_init): Update.
6189 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6190 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6191 (ns32k_gdbarch_init_32382): Update.
6192 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6193 * mcore-tdep.c (mcore_gdbarch_init): Update.
6194 * m68k-tdep.c (m68k_gdbarch_init): Update.
6195 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6196 * ia64-tdep.c (ia64_gdbarch_init): Update.
6197 * i386-tdep.c (i386_gdbarch_init): Update.
6198 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6199 * hppa-tdep.c (hppa_gdbarch_init): Update.
6200 * h8300-tdep.c (h8300_gdbarch_init): Update.
6201 * frv-tdep.c (frv_gdbarch_init): Update.
6202 * cris-tdep.c (cris_gdbarch_init): Update.
6203 * avr-tdep.c (avr_gdbarch_init): Update.
6204 * arm-tdep.c (arm_gdbarch_init): Update.
6205 * sparc-tdep.c (sparc_pop_frame): Update.
6206 * rs6000-tdep.c (rs6000_pop_frame): Update.
6207 * remote.c (init_remote_state): Update.
6208 (remote_prepare_to_store): Update.
6209 * remote-vx.c (vx_prepare_to_store): Update.
6210 * remote-sds.c (sds_fetch_registers): Update.
6211 (sds_prepare_to_store): Update.
6212 * remote-array.c: Update.
6213 * regcache.c (init_legacy_regcache_descr): Update.
6214 (init_regcache_descr): Update.
6215 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6216 (mips_o64_extract_return_value): Update.
6217 * irix5-nat.c (fetch_core_registers): Update.
6218 * irix4-nat.c (fetch_core_registers): Update.
6219 * i386-tdep.h: Update.
6220 * hppa-tdep.c (pa_do_registers_info): Update.
6221 (pa_do_strcat_registers_info): Update.
6222 * cris-tdep.c (cris_register_bytes_ok): Update.
6223 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6224 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6225 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6226 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6227 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6228 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6229 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6230 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6231 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6232 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6233 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6234 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6235 (REGISTER_BYTES_OK): Update.
6236 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6237 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6238
6239 2003-05-16 Ian Lance Taylor <ian@airs.com>
6240
6241 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6242 (vax_print_insn, print_insn_arg): Remove static functions.
6243 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6244 print_insn_vax from opcodes library.
6245 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6246
6247 2003-05-15 Andrew Cagney <cagney@redhat.com>
6248
6249 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6250 * target.h (memory_breakpoint_from_pc): Delete declaration.
6251 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6252 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6253 * monitor.c (monitor_insert_breakpoint): Use
6254 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6255 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6256 * gdbarch.h, gdbarch.c: Re-generate.
6257 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6258 (sparc_gdbarch_init): Set breakpoint_from_pc to
6259 sparc_breakpoint_from_pc.
6260 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6261 (BREAKPOINT_FROM_PC): Define.
6262 (sparc_breakpoint_from_pc): Declare.
6263 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6264 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6265 (BREAKPOINT_FROM_PC): Define.
6266 (BREAKPOINT): Delete macro.
6267 * target.h: Update comment.
6268 * s390-tdep.c (s390_gdbarch_init): Update comments.
6269 * remote.c: Update comments.
6270 * remote-mips.c: Update comments.
6271 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6272 * mem-break.c: Update comment.
6273 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6274 (ia64_memory_insert_breakpoint): Update.
6275 * config/sparc/tm-sparc.h: Update comment.
6276 * config/pa/tm-hppa64.h: Update comment.
6277 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6278 (rs6000_breakpoint_from_pc): Update.
6279 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6280 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6281 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6282 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6283 (mips_breakpoint_from_pc): Update.
6284 (mips_dump_tdep): Update.
6285
6286 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6287 * minsyms.c (lookup_minimal_symbol): Inline
6288 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6289
6290 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6291 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6292 * p-lang.c (pascal_printstr): Ditto.
6293 * objc-lang.c (objc_printstr): Ditto.
6294 * m2-lang.c (m2_printstr): Ditto.
6295 * jv-valprint.c (java_print_value_fields): Ditto.
6296 * f-lang.c (f_printstr): Ditto.
6297 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6298 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6299 for repeat_count_threshold.
6300 * Makefile.in (cp-valprint.o): Update dependencies.
6301
6302 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6303
6304 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6305 (examine_prologue): Support looking through leaf functions, knowing
6306 they start with mov r2,r12. Support skipping over indirect stores
6307 of the input registers. Upon hitting a non-nop branch instruction
6308 or predicated instruction, bail out by setting lim_pc to the current
6309 pc value in the loop. At the end, if the lim_pc value is still
6310 beyond our calculated value and we have trust_limit set,
6311 use the lim_pc value.
6312
6313 2003-05-15 Andrew Cagney <cagney@redhat.com>
6314
6315 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6316 generic_find_dummy_frame.
6317 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6318 (deprecated_generic_find_dummy_frame): Update.
6319 (deprecated_read_register_dummy): Update.
6320 * frame.c (deprecated_generic_get_saved_register): Update.
6321
6322 2003-05-15 Theodore A. Roth <troth@openavr.org>
6323
6324 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6325 (avr_gdbarch_init): Set breakpoint_from_pc method.
6326
6327 2003-05-15 Andrew Cagney <cagney@redhat.com>
6328
6329 * regcache.c (build_regcache): Set deprecated_register_valid
6330 directly.
6331 (deprecated_grub_regcache_for_register_valid): Delete function.
6332 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6333 declaration.
6334
6335 2003-05-15 David Carlton <carlton@bactrian.org>
6336
6337 Committed by Elena Zannoni <ezannoni@redhat.com>
6338 * symtab.c (lookup_symbol_aux): Delete calls to
6339 lookup_symbol_aux_minsyms.
6340 (lookup_symbol_aux_minsyms): Comment out function and
6341 prototype. Delete lookup by mangled name.
6342
6343 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6344
6345 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6346 correctly indicate an empty stack and ``stack_allocated'' to the
6347 indicate the number of elements initially allocated.
6348 (dwarf_expr_grow_stack): Simplify method for computing new
6349 stack size. Don't loop infinitely if ``stack_len'' is zero.
6350 (execute_stack_op): Move ``ctx->in_reg'' initialization
6351 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6352 be used in conjuction with DW_OP_piece. Revise error message
6353 accordingly.
6354
6355 2003-05-14 Theodore A. Roth <troth@openavr.org>
6356
6357 * MAINTAINERS: Update my email address.
6358 * avr-tdep.c: Ditto.
6359
6360 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6361
6362 * symtab.h (enum domain_enum): Rename from namespace_enum.
6363 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6364 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6365 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6366 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6367 TYPES_NAMESPACE, METHODS_NAMESPACE.
6368 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6369 (struct symbol, struct partial_symbol): Rename field
6370 'namespace_enum namespace' to 'domain_enum domain'.
6371 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6372 Delete old define kludge for namespace.
6373
6374 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6375 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6376 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6377 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6378 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6379 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6380 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6381 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6382 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6383 occurrences of the above.
6384
6385 2003-05-14 Ian Lance Taylor <ian@airs.com>
6386
6387 * Makefile.in (install-only): Use $(SHELL) when running
6388 mkinstalldirs.
6389
6390 2003-05-13 Ian Lance Taylor <ian@airs.com>
6391
6392 * MAINTAINERS (write after approval): Add myself.
6393
6394 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6395 second and third arguments.
6396 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6397 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6398
6399 2003-05-13 Andrew Cagney <cagney@redhat.com>
6400
6401 * defs.h (store_address): Delete declaration.
6402 findvar.c (store_address): Delete function.
6403 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6404 store_unsigned_integer.
6405 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6406 * v850-tdep.c (v850_push_arguments): Ditto.
6407 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6408 * sh-tdep.c (sh64_get_saved_register): Ditto.
6409 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6410 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6411 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6412 (mips_get_saved_register): Ditto.
6413 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6414 (find_func_descr, ia64_push_arguments): Ditto.
6415 * i386-tdep.c (i386_push_arguments): Ditto.
6416 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6417 * frv-tdep.c (frv_push_arguments): Ditto.
6418 * frame.c (legacy_saved_regs_prev_register): Ditto.
6419 (deprecated_generic_get_saved_register): Ditto.
6420 * findvar.c (unsigned_address_to_pointer): Ditto.
6421 * dwarf2read.c (dwarf2_const_value): Ditto.
6422 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6423 * alpha-tdep.c (alpha_push_arguments): Ditto.
6424
6425 2003-05-12 J. Brobecker <brobecker@gnat.com>
6426
6427 * NEWS: Mention that the hppa-hpux port has been partially
6428 multiarched (32bit ABIT only, so far).
6429
6430 2003-05-11 Andrew Cagney <cagney@redhat.com>
6431
6432 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6433 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6434 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6435 sim/testsuite/sim/arm/misaligned2.ms, and
6436 sim/testsuite/sim/arm/misaligned3.ms.
6437 * disasm.h (struct ui_file): Add opaque struct declaration.
6438 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6439 * frame.h (struct ui_file): Ditto.
6440
6441 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6442
6443 * value.h: Pretty print.
6444
6445 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6446
6447 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6448
6449 2003-05-08 Andrew Cagney <cagney@redhat.com>
6450
6451 * regcache.h (max_register_size): Delete declaration.
6452 * regcache.c (max_register_size): Delete function.
6453 (struct regcache_descr): Delete field "max_register_size".
6454 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6455 registers fit in MAX_REGISTER_SIZE.
6456 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6457 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6458 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6459 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6460 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6461 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6462 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6463 * dve3900-rom.c, hppa-tdep.c: Ditto.
6464
6465 2003-05-08 David Carlton <carlton@math.stanford.edu>
6466
6467 * valops.c (push_word): Fix typo.
6468
6469 2003-05-08 Andrew Cagney <cagney@redhat.com>
6470
6471 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6472 * gdbarch.h: Re-generate.
6473 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6474 (legacy_max_register_raw_size): Delete declaration.
6475 * regcache.c (legacy_max_register_raw_size): Delete function.
6476 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6477 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6478 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6479 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6480 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6481 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6482 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6483 * findvar.c, dwarf2cfi.c: Ditto.
6484
6485 2003-05-08 Andrew Cagney <cagney@redhat.com>
6486
6487 * mips-tdep.c (read_signed_register): New function, moved to here
6488 from "regcache.c".
6489 (read_signed_register_pid): Ditto.
6490 * regcache.c (read_signed_register_pid): Delete function, moved to
6491 "mips-tdep.c".
6492 (read_signed_register): Ditto.
6493 * regcache.h (read_signed_register): Delete declaration.
6494 (read_signed_register_pid): Delete declaration.
6495
6496 2003-05-08 Andrew Cagney <cagney@redhat.com>
6497
6498 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6499 * gdbarch.h: Re-generate.
6500 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6501 (legacy_max_register_virtual_size): Delete declaration.
6502 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6503 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6504 * tracepoint.c (memrange_sortmerge): Ditto.
6505 * sparc-tdep.c (sparc_print_registers): Ditto.
6506 * regcache.c (legacy_max_register_virtual_size): Delete function.
6507
6508 2002-05-08 J. Brobecker <brobecker@gnat.com>
6509
6510 * fork-child.c (escape_bang_in_quoted_argument): New function.
6511 (fork_inferior): Escape '!' characters in quoted arguments
6512 only when needed.
6513
6514 2003-05-08 J. Brobecker <brobecker@gnat.com>
6515
6516 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6517 the language of the CU is not currently supported by GDB.
6518
6519 2003-05-08 J. Brobecker <brobecker@gnat.com>
6520
6521 * defs.h (language): Add language_minimal enum value.
6522 * c-lang.c (minimal_language_defn): New language definition.
6523 (_initialize_c_language): Add the new minimal language to the list
6524 of languages known to GDB.
6525
6526 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6527
6528 * frame.c (get_frame_type): Don't attempt to lazily initialize
6529 frame's unwinder for legacy frames.
6530
6531 2003-05-07 Andrew Cagney <cagney@redhat.com>
6532
6533 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6534 and "regcache" parameters.
6535 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6536
6537 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6538
6539 * dwarf2read.c (dwarf_decode_lines): Only use output of
6540 check_cu_functions() when calling record_line(). Do not update
6541 the current address.
6542
6543 2003-05-07 Andrew Cagney <cagney@redhat.com>
6544
6545 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6546 code.
6547
6548 2003-05-07 Jim Blandy <jimb@redhat.com>
6549
6550 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6551 'maint info symtabs' and 'maint info psymtabs'.
6552 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6553 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6554 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6555 Declarations updated.
6556 * maint.c (maintenance_list_command): Delete.
6557 (_initialize_maint_cmds): Update calls to add_cmd.
6558 * gdbcmd.h (maintenancelistlist): Delete declaration.
6559 * cli/cli-cmds.c (maintenancelistlist): Delete.
6560 (init_cmd_lists): Don't initialize it.
6561 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6562
6563 2003-05-07 Andrew Cagney <cagney@redhat.com>
6564
6565 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6566 "regcache".
6567 (d10v_print_registers_info): Update.
6568 (d10v_dmap_register, d10v_imap_register): Delete functions.
6569 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6570 and "imap_register".
6571 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6572 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6573 * arch-utils.c (generic_remote_translate_xfer_address): Add
6574 "regcache" and "gdbarch" parameters.
6575 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6576 parameter. Change class to multi-arch.
6577 * gdbarch.h, gdbarch.c: Re-generate.
6578 * remote.c (remote_xfer_memory): Use
6579 gdbarch_remote_translate_xfer_address.
6580
6581 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6582
6583 * infrun.c (prev_pc): Move declaration ahead of proceed().
6584 (proceed): Refresh prev_pc value before resuming.
6585 (stop_stepping): Remove code to refresh prev_pc.
6586
6587 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6588
6589 * nto-tdep.c: Removed stray comment.
6590
6591 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6592
6593 * i386-nto-tdep.c: Fix old K&R function definitions.
6594 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6595 Also change add_show_from_set() call to add_setshow_cmd().
6596 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6597
6598 2003-05-05 Andrew Cagney <cagney@redhat.com>
6599
6600 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6601 (fprint_dummy_frames): New function.
6602 (maintenance_print_dummy_frames): New function.
6603 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6604 * frame.c (fprint_frame_id): Make global.
6605 * frame.h (fprint_frame_id): Declare.
6606 * Makefile.in (dummy-frame.o): Update dependencies.
6607
6608 2003-05-05 Andrew Cagney <cagney@redhat.com>
6609
6610 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6611 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6612 SIZEOF_CALL_DUMMY_WORDS.
6613 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6614 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6615 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6616 CALL_DUMMY_BREAKPOINT_OFFSET.
6617 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6618 CALL_DUMMY_START_OFFSET.
6619 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6620 * gdbarch.h, gdbarch.c: Re-generate.
6621 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6622 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6623 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6624 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6625 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6626 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6627 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6628 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6629 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6630 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6631 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6632 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6633 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6634 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6635 * config/sparc/tm-sparc.h: Update.
6636
6637 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6638
6639 * configure.tgt: Add i[3456]86-*-nto*.
6640 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6641 * nto-tdep.c: New file. Neutrino target support routines.
6642 * nto-tdep.h: New file. Neutrino target header.
6643 * config/tm-qnxnto.h: New file.
6644 * config/i386/i386nto.mt: New file.
6645 * config/i386/tm-i386nto.h: New file.
6646
6647 2003-05-04 Andrew Cagney <cagney@redhat.com>
6648
6649 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6650 (load_infrun_state): Ditto.
6651 (struct thread_info): Drop "prev_func_name" field.
6652 * thread.c (load_infrun_state): Update.
6653 (save_infrun_state): Update.
6654 * infrun.c (prev_func_name): Delete variable.
6655 (init_wait_for_inferior): Do not clear prev_func_name.
6656 (stop_stepping, keep_going, context_switch): Do not swap
6657 prev_func_name.
6658 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6659 instead of PC_IN_SIGTRAMP.
6660
6661 2003-05-04 Andrew Cagney <cagney@redhat.com>
6662
6663 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6664 REGISTER_BYTE with register_offset_hack.
6665 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6666 that REGISTER_BYTE is consistent with the regcache.
6667 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6668 * gdbarch.h, gdbarch.c: Regenerate.
6669
6670 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6671
6672 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6673 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6674
6675 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6676
6677 2003-05-03 J. Brobecker <brobecker@gnat.com>
6678
6679 From Thierry Schneider <tpschneider1@yahoo.com>
6680 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6681 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6682 (mi-cmd-symbol.o): Add rule.
6683
6684 2003-05-03 Andrew Cagney <cagney@redhat.com>
6685
6686 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6687 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6688 * gdbarch.h, gdbarch.c: Re-generate.
6689 * d10v-tdep.c (d10v_push_dummy_code): New function.
6690 (d10v_gdbarch_init): Set push_dummy_code.
6691 * infcall.c (legacy_push_dummy_code): New function.
6692 (generic_push_dummy_code): New function.
6693 (push_dummy_code): New function.
6694 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6695 instead of dummy_addr, to push_dummy_call. Move call to
6696 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6697 switch.
6698 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6699
6700 2003-05-03 Andrew Cagney <cagney@redhat.com>
6701
6702 * disasm.h (print_insn): Declare.
6703 * disasm.c (init_gdb_disassemble_info): New function.
6704 (gdb_disassembly): Call init_gdb_disassemble_info.
6705 (gdb_print_insn): New function.
6706 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6707 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6708 * mcore-tdep.c: Include "disasm.h"
6709 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6710 * d10v-tdep.c: Include "disasm.h".
6711 (display_trace): Call gdb_print_insn, instead of print_insn.
6712 (print_insn): Delete function.
6713 * printcmd.c: Include "disasm.h".
6714 (print_insn): Delete function.
6715 (print_formatted): Call gdb_print_insn, instead of print_insn.
6716 * Makefile.in (printcmd.o): Update dependencies.
6717 (mcore-tdep.o, d10v-tdep.o): Ditto.
6718
6719 2003-05-02 Andrew Cagney <cagney@redhat.com>
6720
6721 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6722 PC_REGNUM, re-indent.
6723 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6724 PC_REGNUM isn't set.
6725
6726 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6727 * gdbarch.h, gdbarch.c: Re-generate.
6728 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6729 register_virtual_size, pc_regnum, or register_bytes.
6730 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6731 (d10v_register_type): Use D10V_PC_REGNUM.
6732 (d10v_print_registers_info, d10v_read_pc): Ditto.
6733 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6734 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6735
6736 2003-05-02 David Carlton <carlton@bactrian.org>
6737
6738 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6739 the name with mstrsave.
6740
6741 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6742
6743 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6744 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6745 (host_charset_name, target_charset_name): New vars for use by
6746 set/show commands.
6747 (host_charset_enum, target_charset_enum): New enums for set/show
6748 commands.
6749 (set_charset_sfunc, set_host_charset_sfunc,
6750 set_target_charset_sfunc): New functions.
6751 (set_host_charset, set_target_charset): Make static.
6752 (list_charsets, set_host_charset_command,
6753 set_target_charset_command): Delete functions.
6754 (show_charset_command): Rewrite as....
6755 (show_charset): Hook this up with the set/show command mechanism.
6756 (_initialize_charset): Change names of charsets to match the
6757 set/show enums. Use host_charset_name and target_charset_name.
6758 Use set/show mechanism for charset, host-charset, target-charset
6759 commands. Do not make 'show host-charset' and 'show
6760 target-charset' be aliases of 'show charset'.
6761
6762 * charset.h (set_host_charset, set_target_charset): Don't export,
6763 they are not used outside the file.
6764
6765 2003-05-01 Andrew Cagney <cagney@redhat.com>
6766
6767 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6768 (gdb_disassembly): Make "di" non static, always initialize and
6769 cleanup. Always use dis_asm_read_memory.
6770 (gdb_dis_asm_read_memory): Delete function.
6771
6772 2003-05-01 Andrew Cagney <cagney@redhat.com>
6773
6774 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6775 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6776
6777 2003-04-30 Andrew Cagney <cagney@redhat.com>
6778
6779 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6780 "tm_print_insn_info".
6781 (TARGET_PRINT_INSN_INFO): Delete macro.
6782 (dis_asm_read_memory): Delete function declaration.
6783 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6784 (tm_print_insn_info): Delete variable definition.
6785 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6786 * gdbarch.h, gdbarch.c: Re-generate.
6787 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6788 "deprecated_tm_print_insn_info".
6789 * mcore-tdep.c (mcore_dump_insn): Ditto.
6790 * mips-tdep.c (mips_gdbarch_init): Ditto.
6791 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6792 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6793 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6794 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6795 instead of TARGET_PRINT_INSN_INFO, add comment.
6796 * s390-tdep.c (s390_get_frame_info): Instead of
6797 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6798 (s390_check_function_end, s390_is_sigreturn): Ditto.
6799 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6800 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6801 * disasm.c: Include "gdbcore.h".
6802 (_initialize_disasm): New function, initialize
6803 "deprecated_tm_print_insn_info".
6804 (deprecated_tm_print_insn_info): New variable.
6805 (dis_asm_read_memory): Moved from "corefile.c", made static.
6806 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6807 * Makefile.in (disasm.o): Update dependencies.
6808
6809 2003-04-30 Andrew Cagney <cagney@redhat.com>
6810
6811 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6812
6813 2003-04-29 Adam Fedor <fedor@gnu.org>
6814
6815 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6816 * infcall.c (find_function_addr): Make non-static.
6817 * infcall.h (find_function_addr): Declare.
6818 * Makefile.in (eval.o): Update dependencies.
6819
6820 2003-04-28 Adam Fedor <fedor@gnu.org>
6821
6822 * symtab.c (symbol_find_demangled_name): Check for and demangle
6823 ObjC symbols.
6824 (symbol_init_demangled_name): Init for language_objc as well.
6825
6826 2003-04-28 Andrew Cagney <cagney@redhat.com>
6827
6828 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6829 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6830 * gdbarch.h, gdbarch.c: Re-generate.
6831 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6832 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6833 * inferior.h (deprecated_read_fp): Rename read_fp.
6834 (generic_target_read_fp): Delete declaration.
6835 * regcache.c (generic_target_read_fp): Delete function.
6836 (deprecated_read_fp): Replace read_fp, use
6837 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6838 * d10v-tdep.c (d10v_read_fp): Delete function.
6839 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6840
6841 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6842 deprecated_target_read_fp to generic_target_read_fp.
6843 * sh-tdep.c (sh_gdbarch_init): Ditto.
6844 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6845 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6846 * frv-tdep.c (frv_gdbarch_init): Ditto.
6847
6848 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6849 deprecated_fp_regnum.
6850 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6851 * vax-tdep.c (vax_gdbarch_init): Ditto.
6852 * v850-tdep.c (v850_gdbarch_init): Ditto.
6853 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6854 * sh-tdep.c (sh_gdbarch_init): Ditto.
6855 * s390-tdep.c (s390_gdbarch_init): Ditto.
6856 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6857 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6858 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6859 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6860 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6861 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6862 * i386-tdep.c (i386_gdbarch_init): Ditto.
6863 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6864 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6865 * frv-tdep.c (frv_gdbarch_init): Ditto.
6866 * cris-tdep.c (cris_gdbarch_init): Ditto.
6867 * avr-tdep.c (avr_gdbarch_init): Ditto.
6868 * arm-tdep.c (arm_gdbarch_init): Ditto.
6869 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6870
6871 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6872 * v850-tdep.c (v850_gdbarch_init): Ditto.
6873 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6874 * sh-tdep.c (sh_gdbarch_init): Ditto.
6875 * s390-tdep.c (s390_gdbarch_init): Ditto.
6876 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6877 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6878 * mips-tdep.c (mips_gdbarch_init): Ditto.
6879 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6880 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6881 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6882 * frv-tdep.c (frv_gdbarch_init): Ditto.
6883 * avr-tdep.c (avr_gdbarch_init): Ditto.
6884 * arm-tdep.c (arm_gdbarch_init): Ditto.
6885
6886 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6887 DEPRECATED_FP_REGNUM.
6888 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6889 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6890 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6891 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6892 (sparc32_register_virtual_type): Ditto.
6893 * sh-tdep.c (sh64_frame_chain): Ditto.
6894 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6895 (sh_nofp_frame_init_saved_regs): Ditto.
6896 (sh64_nofp_frame_init_saved_regs): Ditto.
6897 (sh_fp_frame_init_saved_regs): Ditto.
6898 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6899 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6900 * procfs.c (procfs_fetch_registers): Ditto.
6901 (procfs_store_registers): Ditto.
6902 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6903 (store_inferior_registers, fetch_core_registers): Ditto.
6904 (fetch_kcore_registers, clear_regs): Ditto.
6905 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6906 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6907 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6908 * nlm/i386.c (do_status): Ditto.
6909 * mipsv4-nat.c (supply_gregset): Ditto.
6910 * mips-tdep.c: Ditto for comments.
6911 * mips-nat.c (fetch_inferior_registers): Ditto.
6912 (store_inferior_registers, fetch_core_registers): Ditto.
6913 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6914 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6915 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6916 (i386_do_pop_frame, i386_register_type): Ditto.
6917 * hppa-tdep.c (hppa_frame_chain): Ditto.
6918 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6919 (hppa_pop_frame, hppa_read_fp): Ditto.
6920 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6921 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6922 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6923 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6924 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6925 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6926 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6927 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6928 * blockframe.c: Ditto for comments.
6929 * arch-utils.h: Ditto for comments.
6930 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6931 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6932 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6933 * alpha-tdep.h: Ditto for comments.
6934 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6935 (alpha_cannot_store_register): Ditto.
6936 (alpha_push_dummy_frame): Ditto.
6937 * alpha-nat.c (supply_gregset): Ditto.
6938
6939 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6940 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6941 * config/sparc/tm-sparc.h: Update comment.
6942
6943 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6944 deprecated_read_fp instead of TARGET_READ_FP.
6945 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6946 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6947 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6948 deprecated_read_fp instead of read_fp.
6949 * s390-tdep.c (s390_push_arguments): Ditto.
6950 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6951 * frame.h: Ditto in comments.
6952 * frame.c (legacy_get_prev_frame): Ditto.
6953 * dummy-frame.c (dummy_frame_this_id): Ditto.
6954 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6955
6956 2003-04-28 Andrew Cagney <cagney@redhat.com>
6957
6958 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6959 * gdbarch.h, gdbarch.c: Re-generate.
6960 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6961 * vax-tdep.c (_initialize_vax_tdep): Update.
6962 * v850-tdep.c (_initialize_v850_tdep): Update.
6963 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6964 * s390-tdep.c (_initialize_s390_tdep): Update.
6965 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6966 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6967 * mips-tdep.c (_initialize_mips_tdep): Update.
6968 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6969 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6970 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6971 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6972 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6973 * frv-tdep.c (_initialize_frv_tdep): Update.
6974 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6975 (_initialize_cris_tdep): Update.
6976 * arch-utils.c (legacy_print_insn): Update.
6977 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6978
6979 2003-04-26 Adam Fedor <fedor@gnu.org>
6980
6981 * linespec.c (decode_objc): New function to decode ObjC calls
6982 (decode_line_1): Check for ObjC calls (using decode_objc)
6983 * Makefile (linespec.o): Update dependencies.
6984
6985 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6986
6987 * breakpoint.h (struct breakpoint_ops): New.
6988 (struct breakpoint): Add ops member.
6989
6990 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6991 (mention): Use new breakpoint ops member.
6992 (set_raw_breakpoint): Initialize ops field to NULL.
6993 (print_exception_catchpoint, print_one_exception_catchpoint)
6994 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6995 (gnu_v3_exception_catchpoint_ops): New.
6996 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6997
6998 2003-04-25 Adam Fedor <fedor@gnu.org>
6999
7000 * Makefile.in (COMMON_OBS): Add objc-lang.o
7001
7002 2003-04-25 Andrew Cagney <cagney@redhat.com>
7003
7004 * d10v-tdep.c (print_insn): Delete function.
7005 (display_trace): Use TARGET_PRINT_INSN.
7006 (_initialize_d10v_tdep): Do not set tm_print_insn.
7007 (d10v_gdbarch_init): Set print_insn.
7008
7009 2003-04-25 Andrew Cagney <cagney@redhat.com>
7010
7011 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7012 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7013 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7014 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7015 (nr_dmap_regs, a0_regnum): ... new functions.
7016 (d10v_print_registers_info): Use a0_regnum, use register_size.
7017 (d10v_register_byte): Delete function.
7018 (d10v_register_raw_size): Delete function.
7019 (d10v_register_type): Use a0_regnum.
7020 (d10v_print_registers_info): Use a0_regnum.
7021 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7022 (d10v_gdbarch_init): Do not set register_byte or
7023 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7024 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7025 extract_address.
7026 (trace_command): Use XCALLOC.
7027 (print_insn): Delete reference to tm_print_insn.
7028 (saved_regs_unwinder): Use store_unsigned_integer instead of
7029 store_address.
7030 * frame.h (FRAME_OBSTACK_CALLOC): Define
7031
7032 2003-04-25 David Carlton <carlton@bactrian.org>
7033
7034 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7035
7036 2003-04-24 Adam Fedor <fedor@gnu.org>
7037
7038 * objc-lang.c: Include "valprint.h"
7039 * Makefile.in (objc-lang.o): Update dependencies.
7040
7041 2003-04-24 Adam Fedor <fedor@gnu.org>
7042
7043 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7044 architecture dependant compilation and mark as unimplemented
7045 (until they get put in the gdbarch vector).
7046
7047 2003-04-23 David Carlton <carlton@bactrian.org>
7048
7049 * cp-support.c (cp_find_first_component): Accept 'operator' in
7050 more locations.
7051
7052 2003-04-23 Andrew Cagney <cagney@redhat.com>
7053
7054 * infcall.c (call_function_by_hand): Eliminate redundant
7055 indentation. Move "saved_async" and "old_cleanups" to where they
7056 are needed.
7057
7058 2003-04-23 Andrew Cagney <cagney@redhat.com>
7059
7060 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7061 and "buffer". Move the "name" code to where it is needed.
7062
7063 2003-04-23 Andrew Cagney <cagney@redhat.com>
7064
7065 * infcall.c (call_function_by_hand): Move variables "start_sp",
7066 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7067 code to ON_STACK switch branch.
7068
7069 2003-04-23 Andrew Cagney <cagney@redhat.com>
7070
7071 * infcall.c (call_function_by_hand): Make declaration of "i",
7072 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7073 lint.
7074
7075 2003-04-23 Andrew Cagney <cagney@redhat.com>
7076
7077 * infcall.c (call_function_by_hand): Delete variable
7078 "n_method_args". Localize "param_type"'s declaration to the loop
7079 that it is used. Reinstate code assigning to said variable -
7080 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7081 Rationalize code using "param_type".
7082
7083 2003-04-22 Andrew Cagney <cagney@redhat.com>
7084
7085 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7086 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7087 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7088 to DEPRECATED_PUSH_RETURN_ADDRESS.
7089
7090 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7091
7092 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7093 on the DWARF2 register number prior to fetching a register.
7094
7095 2003-04-22 J. Brobecker <brobecker@gnat.com>
7096
7097 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7098 Update all the tests using SOFT_FLOAT considering the fact that
7099 this macro was always set to 0.
7100 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7101 considering the fact that this macro was always set to 0.
7102 * hppa-tdep.h (hppa_store_return_value): Likewise.
7103 (hppa_extract_return_value): Likewise.
7104
7105 2003-04-22 J. Brobecker <brobecker@gnat.com>
7106
7107 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7108 the hppa-pro target only.
7109
7110 2003-04-21 J. Brobecker <brobecker@gnat.com>
7111
7112 Ongoing multi-arch conversion effort for HP/UX:
7113 * config/pa/tm-hppa.h: Move all macro that are no longer
7114 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7115 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7116
7117 2003-04-21 J. Brobecker <brobecker@gnat.com>
7118
7119 * config/pa/tm-hppa.h: Obsolete a section that was only used
7120 for hppa-pro.
7121
7122 2003-04-21 J. Brobecker <brobecker@gnat.com>
7123
7124 Ongoing multi-arch conversion for HP/UX.
7125 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7126 if already defined (allows hppa64 to stay non-multiarched for now).
7127 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7128
7129 2003-04-21 Andrew Cagney <cagney@redhat.com>
7130
7131 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7132
7133 2003-04-21 Andrew Cagney <cagney@redhat.com>
7134
7135 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7136 "i386_num_mmx_regs".
7137
7138 2003-04-21 Andrew Cagney <cagney@redhat.com>
7139
7140 * infcall.c: New file.
7141 * infcall.h: New file.
7142 * valarith.c: Include "infcall.h".
7143 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7144 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7145 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7146 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7147 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7148 (SFILES): Add "infcall.c"
7149 (COMMON_OBS): Add "infcall.o".
7150 (infcall.o): Specify dependencies.
7151 * value.h (call_function_by_hand): Delete declaration.
7152 * inferior.h (run_stack_dummy): Delete declaration.
7153 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7154 (run_stack_dummy): Move to "infcall.c", merged into
7155 call_function_by_hand.
7156 * valops.c (call_function_by_hand): Moved to "infcall.c".
7157 (find_function_addr, value_arg_coerce): Ditto.
7158 (unwindonsignal_p, coerce_float_to_double): Ditto.
7159 (_initialize_valops): Move "set/show coerce-float-to-double", and
7160 "set/show unwindonsignal" commands to "infcall.c".
7161 * v850-tdep.c, target.h: Update comments.
7162 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7163 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7164 (sh64_init_extra_frame_info): Update comments.
7165 * mn10300-tdep.c: Update comments.
7166 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7167 * config/sparc/tm-sparc.h: Update comments.
7168 * breakpoint.h: Update comments.
7169 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7170 * arm-tdep.c: Update comment.
7171
7172 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7173
7174 * i386-tdep.c (i386_num_register_names): New variable.
7175 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7176 (MM0_REGNUM): Remove redundant parentheses in define.
7177 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7178 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7179 i386_mxcsr_regnum_p): Remove redundant parentheses.
7180 (i386_register_name): Use i386_num_register_names.
7181
7182 * i386-tdep.c (i386_extract_return_value,
7183 i386_store_return_value): Correct check for availability of
7184 floating-point registers.
7185
7186 * i386-tdep.c (i386_frame_num_args): Remove function.
7187 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7188
7189 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7190 mmx_regnum_to_fp_regnum. Adjust all callers.
7191
7192 * i386-tdep.c (i386_get_longjmp_target): Use
7193 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7194 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7195 extract_address.
7196
7197 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7198
7199 * core-regset.c: Update comments to reflect reality. Re-order
7200 includes.
7201 (fetch_core_registers): Use switch instead of if. Remove
7202 redundant prototype.
7203
7204 2003-04-18 Jim Blandy <jimb@redhat.com>
7205
7206 * s390-tdep.c (s390_frame_align): New function.
7207 (s390_gdbarch_init): Register it with the gdbarch object.
7208
7209 2003-04-17 Richard Henderson <rth@redhat.com>
7210
7211 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7212
7213 2003-04-17 Michael Snyder <msnyder@redhat.com>
7214 Karen Bennet <bennet@redhat.com>
7215
7216 Committed by Elena Zannoni <ezannoni@redhat.com>
7217 * gdb_gcore.sh: New script to create a core dump of a process.
7218
7219 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7220
7221 * values.c (value_being_returned): Don't fetch the return
7222 value if the return type is void.
7223
7224 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7225
7226 * thread-db.c: Reindented.
7227
7228 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7229
7230 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7231 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7232 as types.
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7259
7260 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7261 the size of ``long double'' to 16, instead of 8.
7262
7263 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7264
7265 * i386-linux-nat.c: Add some whitespace to make things more
7266 readable.
7267 (fetch_register, store_register, fetch_inferior_registers,
7268 store_inferior_registers): Get rid of assignment in if-statement.
7269 (store_register): Fix typo in error message.
7270
7271 2003-04-16 Andrew Cagney <cagney@redhat.com>
7272
7273 * utils.c (xmmalloc): Always allocate something, matches
7274 libiberty/xmalloc's semantics.
7275 (xmrealloc, xmcalloc): Ditto.
7276
7277 2003-04-16 Andrew Cagney <cagney@redhat.com>
7278
7279 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7280 update comments.
7281 (get_frame_type): Initialize unwind and type when needed.
7282 (get_frame_id, frame_register_unwind): Ditto.
7283
7284 2003-04-16 Andrew Cagney <cagney@redhat.com>
7285
7286 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7287 obsolete.
7288 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7289 * sparcl-stub.c: Obsolete file.
7290 * config/sparc/tm-sparclet.h: Obsolete file.
7291 * sparclet-stub.c: Obsolete file.
7292 * sparclet-rom.c: Obsolete file.
7293 * sparcl-tdep.c: Obsolete file.
7294 * config/sparc/tm-sparclite.h: Obsolete file.
7295 * config/sparc/sparclite.mt: Obsolete file.
7296 * config/sparc/sparclet.mt: Obsolete file.
7297 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7298 sparc86x-*-* obsolete.
7299
7300 2003-04-15 David Carlton <carlton@math.stanford.edu>
7301
7302 * Makefile.in (SFILES): Add cp-namespace.c.
7303 (COMMON_OBS): Add cp-namespace.o.
7304 (block.o): Depend on gdb_obstack_h and cp_support_h.
7305 (buildsym.o): Depend on cp_support_h.
7306 (cp-namespace.o): New.
7307 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7308 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7309 (dwarf2read.o): Depend on cp_support_h.
7310 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7311 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7312 processing_current_namespace.
7313 (read_namespace): Update processing_current_namespace; check for
7314 anonymous namespaces.
7315 (dwarf2_name): New function.
7316 (dwarf2_extension): Ditto.
7317 * cp-support.h: Update copyright, contributors.
7318 Add inclusion guards.
7319 Add opaque declaration for structs obstack, block, symbol.
7320 (struct using_direct): New struct.
7321 Add declarations for cp_find_first_component,
7322 cp_entire_prefix_len, processing_has_namespace_info,
7323 processing_current_namespace, cp_is_anonymous,
7324 cp_add_using_directive, cp_initialize_namespace,
7325 cp_finalize_namespace, cp_set_block_scope,
7326 cp_scan_for_anonymous_namespaces.
7327 * cp-namespace.c: New file.
7328 * cp-support.c: Update copyright.
7329 Include ctype.h, gdb_assert.h, gdbcmd.h.
7330 New variable maint_cplus_cmd_list.
7331 (cp_find_first_component): New function.
7332 (cp_entire_prefix_len, maint_cplus_command)
7333 (first_component_command, _initialize_cp_support): Ditto.
7334 * buildsym.c: Include cp-support.h.
7335 New variable using_list.
7336 (add_symbol_to_list): Check for anonymous namespaces.
7337 (finish_block): Set block's scope.
7338 (start_symtab): Initialize C++ namespace support.
7339 (end_symtab): Finalize C++ namespace support.
7340 * block.h: Add opaque declarations for structs
7341 block_namespace_info, using_direct, and obstack.
7342 Add declarations for block_set_scope and block_set_using.
7343 (struct block): Add 'language_specific' member.
7344 (BLOCK_NAMESPACE): New macro.
7345 * block.c: Include gdb_obstack.h and cp-support.h.
7346 (struct block_namespace_info): New struct.
7347 (block_set_scope): New function.
7348 (block_set_using, block_initialize_namespace): Ditto.
7349
7350 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7351
7352 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7353 (locate_base): Return early if there aren't any link map offsets.
7354 (svr4_solib_create_inferior_hook): Warn if shared library support
7355 is unavailable.
7356
7357 2003-04-14 David Carlton <carlton@math.stanford.edu>
7358
7359 * symtab.c (symbol_set_names): Add prefix when storing Java names
7360 in hash table. Fix for PR java/1039.
7361
7362 2003-04-14 David Carlton <carlton@math.stanford.edu>
7363
7364 * symtab.c (symbol_set_names): Rename 'name' arg to
7365 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7366 * symtab.h: Change 'name' argument in declaration of
7367 symbol_set_names to 'linkage_name'.
7368 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7369
7370 2003-04-14 Andrew Cagney <cagney@redhat.com>
7371
7372 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7373 return the fully sign-extended register value.
7374 (get_frame_pointer): Ditto.
7375 (mips_pop_frame): Initialize "proc_desc" after checking for a
7376 dummy frame.
7377
7378 2003-04-14 Andrew Cagney <cagney@redhat.com>
7379
7380 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7381 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7382 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7383 (mips_push_register): Delete function.
7384 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7385 PUSH_FP_REGNUM.
7386
7387 2003-04-14 Jim Blandy <jimb@redhat.com>
7388
7389 * symmisc.c: #include "gdb_regex.h".
7390 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7391 functions.
7392 * maint.c (maintenance_list_command): New function.
7393 (_initialize_maint_cmds): Register the above as commands.
7394 * symtab.h (maintenance_list_symtabs,
7395 maintenance_list_psymtabs): New declarations.
7396 * cli/cli-cmds.c (maintenancelistlist): New variable.
7397 (init_cmd_lists): Initialize it.
7398 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7399 * gdbcmd.h (maintenancelistlist): New declaration.
7400 * Makefile.in (symmisc.o): Update dependencies.
7401
7402 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7403
7404 * s390-nat.c: Include asm/types.h for addr_t.
7405
7406 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7407
7408 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7409 actually incoming type.
7410
7411 2003-04-13 Andrew Cagney <cagney@redhat.com>
7412
7413 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7414 get_next_frame and get_frame_saved_regs.
7415
7416 2003-04-13 Andrew Cagney <cagney@redhat.com>
7417
7418 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7419 of gdbarch_num_regs.
7420
7421 2003-04-13 Andrew Cagney <cagney@redhat.com>
7422
7423 * frame.h: Mention what replaced what in "struct frame_info".
7424 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7425 deprecated_update_frame_base_hack and
7426 deprecated_update_frame_pc_hack.
7427 * hppa-tdep.c: Ditto.
7428
7429 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7430
7431 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7432 to read_reg and update its comment. Remove regnum member.
7433 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7434 Don't call read_reg when setting in_reg. Call read_reg to get
7435 the frame base if it's in a register. Return the register number
7436 on the stack instead of in the context. Remove extra arguments
7437 to read_reg.
7438 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7439 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7440 the register number on the expression stack.
7441 (needs_frame_read_reg): Remove extra arguments.
7442
7443 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7444
7445 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7446 made non-static.
7447 (execute_stack_op): All callers updated.
7448 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7449 * dwarf2loc.c (find_location_expression): New function.
7450 (dwarf_expr_frame_base): Call it.
7451 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7452 (dwarf2_tracepoint_var_ref): New function, broken out from
7453 locexpr_tracepoint_var_ref.
7454 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7455 Make static.
7456 (loclist_read_variable, loclist_read_needs_frame): New functions.
7457 (loclist_describe_location, loclist_tracepoint_var_ref): New
7458 functions.
7459 (dwarf2_loclist_funcs): New struct location_funcs.
7460 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7461 (struct dwarf2_locexpr_baton): Add comments.
7462 (dwarf2_loclist_funcs): New extern.
7463 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7464 base_address and base_known.
7465 (dwarf_loc_buffer): New variable.
7466 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7467 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7468 (dwarf2_has_info): Initialize dwarf_loc_offset.
7469 (dwarf2_build_psymtabs): Read in .debug_loc.
7470 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7471 DWARF_LOC_SIZE.
7472 (psymtab_to_symtab_1): Likewise. Move base address calculation
7473 here, from...
7474 (dwarf2_get_pc_bounds): ... here. Use the base address from
7475 cu_header.
7476 (dwarf2_symbol_mark_computed): Handle location lists.
7477
7478 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7479
7480 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7481 if the linkage name demangled successfully.
7482
7483 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7484
7485 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7486 disassmbly_flavour): Removed.
7487
7488 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7489
7490 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7491
7492 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7493
7494 2003-04-12 Andrew Cagney <cagney@redhat.com>
7495
7496 * frame.h (struct frame_info): Move definition from here ...
7497 * frame.c (struct frame_info): ... to here.
7498
7499 2003-04-12 Andrew Cagney <cagney@redhat.com>
7500
7501 * gdbthread.h (save_infrun_state): Delete parameter
7502 "prev_func_start".
7503 (struct thread_info): Delete field "prev_func_start".
7504 (load_infrun_state): Ditto.
7505 * thread.c (load_infrun_state, save_infrun_state): Update.
7506 * infrun.c (prev_func_start): Delete variable.
7507 (context_switch, init_wait_for_inferior): Update.
7508 (stop_stepping, keep_going): Update.
7509
7510 2003-04-12 Andrew Cagney <cagney@redhat.com>
7511
7512 * gdbarch.sh: Add missing opaque declarations.
7513 * gdbarch.h: Regnerate.
7514 * symtab.h: Add missing opaque declarations.
7515 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7516 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7517 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7518 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7519 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7520 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7521 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7522 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7523 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7524 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7525 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7526 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7527 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7528
7529 2003-04-11 Andrew Cagney <cagney@redhat.com>
7530
7531 * frame.c (get_frame_id): Return this frame's "id".
7532 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7533 function start.
7534 (legacy_saved_regs_this_id): Replace function body with
7535 internal-error.
7536 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7537 FRAME_OBSTACK_ZALLOC.
7538 (create_new_frame): Mark the frame ID as valid.
7539
7540 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7541
7542 * Makefile.in (libbfd_h): Added missing setting.
7543 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7544 according to the selected ABI.
7545
7546 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7547
7548 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7549
7550 2003-04-11 Andrew Cagney <cagney@redhat.com>
7551
7552 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7553 SAVED_PC_AFTER_CALL.
7554 * gdbarch.h, gdbarch.c: Regenerate.
7555 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7556 * x86-64-tdep.c (x86_64_init_abi): Update.
7557 * vax-tdep.c (vax_gdbarch_init): Update.
7558 * v850-tdep.c (v850_gdbarch_init): Update.
7559 * sparc-tdep.c (sparc_gdbarch_init): Update.
7560 * sh-tdep.c (sh_gdbarch_init): Update.
7561 * s390-tdep.c (s390_gdbarch_init): Update.
7562 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7563 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7564 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7565 * mips-tdep.c (mips_gdbarch_init): Update.
7566 * mcore-tdep.c (mcore_gdbarch_init): Update.
7567 * m68k-tdep.c (m68k_gdbarch_init): Update.
7568 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7569 * ia64-tdep.c (ia64_gdbarch_init): Update.
7570 (ia64_saved_pc_after_call): Update declaration.
7571 * i386ly-tdep.c (i386lynx_init_abi): Update.
7572 * i386-tdep.c (i386_gdbarch_init): Update.
7573 * hppa-tdep.c (hppa_gdbarch_init): Update.
7574 * h8300-tdep.c (h8300_gdbarch_init): Update.
7575 * frv-tdep.c (frv_gdbarch_init): Update.
7576 * cris-tdep.c (cris_gdbarch_init): Update.
7577 * avr-tdep.c (avr_gdbarch_init): Update.
7578 * arm-tdep.c (arm_gdbarch_init): Update.
7579 * alpha-tdep.c (alpha_gdbarch_init): Update.
7580 * ns32knbsd-nat.c (frame_num_args): Update.
7581 * ns32k-tdep.c (umax_frame_num_args): Update.
7582 * mips-tdep.c (mips_init_frame_pc_first): Update.
7583 * infrun.c (step_over_function): Update.
7584 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7585 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7586 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7587 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7588 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7589 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7590 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7591 * arch-utils.c (init_frame_pc_default): Update.
7592 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7593 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7594 declaration.
7595
7596 2003-04-11 Andrew Cagney <cagney@redhat.com>
7597
7598 * i387-tdep.c: Update copyright.
7599 (i387_to_double): Delete function.
7600 (double_to_i387): Delete function.
7601
7602 2003-04-10 Andrew Cagney <cagney@redhat.com>
7603
7604 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7605 frame's function's address. Simplify.
7606 (d10v_frame_unwind_cache): Check that the frame's function is
7607 non-zero.
7608
7609 2003-04-10 Jim Blandy <jimb@redhat.com>
7610
7611 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7612 call to set_gdbarch_deprecated_push_arguments.
7613
7614 2003-04-10 Andrew Cagney <cagney@redhat.com>
7615
7616 * frame.c (fprint_frame_id): New function.
7617 (fprint_frame_type, fprint_frame): New function.
7618 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7619 (create_sentinel_frame, get_frame_id): Ditto.
7620 (frame_id_p, frame_id_eq): Ditto.
7621 (frame_id_inner, create_new_frame): Ditto.
7622 (legacy_get_prev_frame, get_prev_frame): Ditto.
7623 (deprecated_update_frame_pc_hack): Ditto.
7624 (frame_register_unwind): Ditto.
7625 (deprecated_update_frame_base_hack): Ditto.
7626
7627 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7628
7629 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7630 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7631 frame_chain function.
7632 * Makefile.in: Add dependencies due to above change.
7633
7634 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7635
7636 * blockframe.c (legacy_frame_chain_valid): Move call to
7637 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7638 inside_entry_file.
7639
7640 2003-04-09 Andrew Cagney <cagney@redhat.com>
7641
7642 * frame.h (struct frame_id): Replace "pc" and "base" with
7643 "stack_addr" and "code_addr". Update comments.
7644 (frame_id_build): Update parameter names and comment.
7645 (struct frame_info): Replace "id_p" and "id" with "this_id".
7646 * dummy-frame.c (dummy_frame_this_id): Update.
7647 * breakpoint.c (print_one_breakpoint): Update.
7648 * frame.c (get_frame_id): Update.
7649 (get_frame_base, frame_id_build): Update.
7650 (create_sentinel_frame, legacy_get_prev_frame): Update.
7651 (deprecated_update_frame_base_hack): Update.
7652 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7653 (frame_id_inner): Ditto.
7654
7655 2003-04-09 Andrew Cagney <cagney@redhat.com>
7656
7657 * defs.h (gdb_print_host_address): Make "addr" parameter a
7658 pointer constant.
7659 * utils.c (gdb_print_host_address): Update.
7660
7661 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7662
7663 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7664 register number for R0 is 0.
7665
7666 2003-04-09 J. Brobecker <brobecker@gnat.com>
7667
7668 * frame.h (struct gdbarch): Add opaque structure definition
7669 to avoid a compilation warning on LynxOS 4.0.
7670
7671 2003-04-09 Andrew Cagney <cagney@redhat.com>
7672
7673 * frame.h (struct frame_info): Delete field "pc". Replace
7674 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7675 structure.
7676 * frame.c (frame_pc_unwind): Update.
7677 (create_sentinel_frame): Do not set "pc".
7678 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7679 (get_frame_pc): Call frame_pc_unwind.
7680 (deprecated_update_frame_pc_hack): Update.
7681 (create_new_frame): Use "pc" not "->pc".
7682
7683 2003-04-09 Andrew Cagney <cagney@redhat.com>
7684
7685 * frame.c (get_frame_id): Eliminate code updating "frame".
7686 (legacy_get_prev_frame): Ditto.
7687 (get_frame_base): Return id.base directly.
7688 (deprecated_update_frame_base_hack): Update "id.base".
7689 * frame.h (struct frame_info): Delete field "frame".
7690
7691 2003-04-09 Andrew Cagney <cagney@redhat.com>
7692
7693 * NEWS: Mention that the "Sequent family" is obsolete.
7694 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7695 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7696 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7697 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7698 * config/i386/tm-ptx4.h: Obsolete file.
7699 * config/i386/tm-ptx.h: Obsolete file.
7700 * symm-tdep.c: Obsolete file.
7701 * config/i386/symmetry.mt: Obsolete file.
7702 * config/i386/tm-symmetry.h: Obsolete file.
7703 * symm-nat.c: Obsolete file.
7704 * config/i386/nm-symmetry.h: Obsolete file.
7705 * config/i386/xm-symmetry.h: Obsolete file.
7706 * config/i386/symmetry.mh: Obsolete file.
7707 * config/i386/nm-ptx4.h: Obsolete file.
7708 * config/i386/ptx4.mh: Obsolete file.
7709 * config/i386/ptx.mt: Obsolete file.
7710 * config/i386/ptx.mh: Obsolete file.
7711 * config/i386/xm-ptx4.h: Obsolete file.
7712 * config/i386/xm-ptx.h: Obsolete file.
7713
7714 2003-04-09 Andrew Cagney <cagney@redhat.com>
7715
7716 Obsolete mips*-*-mach3*.
7717 * NEWS: Mention that mips*-*-mach3* is obsolete.
7718 * m3-nat.c: Obsolete file.
7719 * config/nm-m3.h: Obsolete file.
7720 * config/mips/tm-mipsm3.h: Obsolete file.
7721 * config/mips/mipsm3.mt: Obsolete file.
7722 * config/mips/mipsm3.mh: Obsolete file.
7723 * config/mips/xm-mipsm3.h: Obsolete file.
7724 * mipsm3-nat.c: Obsolete file.
7725 * configure.host: Obsolete mips-dec-mach3*.
7726 * configure.tgt: Obsolete mips*-*-mach3*.
7727
7728 2003-04-09 Andrew Cagney <cagney@redhat.com>
7729
7730 * doublest.h: Update copyright.
7731 (deprecated_store_floating, deprecated_extract_floating): Rename
7732 store_floating and extract_floating. Update comments.
7733 * doublest.c: Update copyright.
7734 (extract_floating_by_length): Replace extract_floating.
7735 (store_floating_by_length): Replace store_floating.
7736 (deprecated_extract_floating): New function.
7737 (deprecated_store_floating): New function.
7738 (extract_typed_floating): Call extract_floating_by_length.
7739 (store_typed_floating): Call store_floating_by_length.
7740 * x86-64-tdep.c (x86_64_store_return_value): Update.
7741 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7742 (sh64_extract_return_value): Update.
7743 (sh_sh4_register_convert_to_virtual): Update.
7744 (sh_sh64_register_convert_to_virtual): Update.
7745 (sh_sh4_register_convert_to_raw): Update.
7746 (sh_sh64_register_convert_to_raw): Update.
7747 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7748 (rs6000_register_convert_to_raw): Update.
7749 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7750 (ia64_register_convert_to_raw): Update.
7751 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7752 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7753 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7754 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7755 (alpha_register_convert_to_raw): Update.
7756
7757 2003-04-08 Andrew Cagney <cagney@redhat.com>
7758
7759 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7760 * gdbarch.h, gdbarch.c: Re-generate.
7761 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7762 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7763 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7764 conditionally, use frame_pc_unwind as an alternative. Add
7765 comments.
7766 * arch-utils.c (init_frame_pc_default): Only call
7767 SAVED_PC_AFTER_CALL when available.
7768
7769 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7770
7771 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7772 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7773 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7774 (start_remote): Ditto.
7775 (handle_inferior_event): Ditto.
7776 (save_inferior_status): Ditto.
7777 (restore_inferior_status): Ditto.
7778 * infcmd.c (attach_command): Ditto.
7779 * fork-child.c (startup_inferior): Ditto.
7780 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7781 * alpha-tdep.c (heuristic_proc_start): Ditto.
7782 * mips-tdep.c (heuristic_proc_start): Ditto.
7783 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7784 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7785 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7786 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7787 * remote-vx.c (vx_create_inferior): Ditto.
7788
7789 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7790
7791 * infrun.c (stop_soon_quietly): Make it an enum, to better
7792 override the default behavior of handle_inferior_event.
7793 (clear_proceed_status): Update uses of stop_soon_quietly to
7794 reflect that it is now an enum.
7795 (start_remote): Ditto.
7796 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7797 is set to handle the new GNU/Linux kernel behavior for
7798 attach/sigstop. Update uses of stop_soon_quietly.
7799 * inferior.h (enum stop_kind): New enum.
7800 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7801 Reset normal handle_inferior_event behavior, afterwards.
7802 * fork-child.c (startup_inferior): Update.
7803 * alpha-tdep.c (heuristic_proc_start): Update.
7804 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7805 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7806 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7807 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7808 * remote-vx.c (vx_create_inferior): Update.
7809 * mips-tdep.c (heuristic_proc_start): Update.
7810
7811 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7812
7813 * disasm.c (dump_insns): Move variables inside loop, or they will
7814 be freed more than once, causing wild memory corruptions.
7815 (gdb_disassembly): Look for the substring "-thread",
7816 instead of "-threads" in the target name, to make sure to find
7817 the 'multi-thread' target. Also, make sure we do the right thing
7818 with the "core" target.
7819
7820 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7821
7822 * mips-tdep.c (mips_print_fp_register): New function, created from
7823 do_fp_register_row(). Registers are now (also) printed as hex.
7824 Only one register is printed per row.
7825 (mips_print_register, do_fp_register_row): Print floating point
7826 registers with mips_print_fp_register().
7827
7828 2003-04-06 Andrew Cagney <cagney@redhat.com>
7829
7830 * valprint.h (inspect_it): Add extern declaration.
7831 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7832 (selectors_info, classes_info): Ditto.
7833 (find_objc_msgcall): Fix indentation.
7834 (objc_printstr): Delete extern declarations.
7835
7836 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7837
7838 2003-04-06 Andrew Cagney <cagney@redhat.com>
7839
7840 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7841 Update comment.
7842 * frame.c (legacy_saved_regs_this_id): Update.
7843 (legacy_get_prev_frame): Update.
7844 * xstormy16-tdep.c: Update comment.
7845 * sparc-tdep.c (sparc_frame_chain): Update comment.
7846 * blockframe.c (legacy_frame_chain_valid): Update.
7847
7848 2003-04-06 Andrew Cagney <cagney@redhat.com>
7849
7850 * valprint.c (val_print_type_code_int): Delete #ifdef
7851 PRINT_TYPELESS_INTEGER code.
7852
7853 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7854 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7855 multi-arch definition.
7856 * gdbarch.h: Re-generate.
7857
7858 2003-04-05 Andrew Cagney <cagney@redhat.com>
7859
7860 Eliminate FRAME_FIND_SAVED_REGS.
7861 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7862 Change FSR parameter to a pointer.
7863 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7864 Assume FSR parameter is a pointer.
7865 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7866 Make fsr a pointer.
7867 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7868 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7869 saved_regs a pointer.
7870 (hppa_frame_saved_pc): Ditto.
7871 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7872 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7873 pointer.
7874 (restore_pc_queue): Make fsr a pointer.
7875 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7876 (hppa_frame_chain): Make saved_regs a pointer, call
7877 hppa_frame_init_saved_regs.
7878 * sparc-tdep.c: Include "gdb_assert.h".
7879 (sparc_frame_find_saved_regs): Replace internal_error with
7880 gdb_assert.
7881 * remote-vxsparc.c (vx_read_register): Delete reference to
7882 FRAME_FIND_SAVED_REGS.
7883 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7884 * gdbarch.h: Regenerate.
7885 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7886 (deprecated_get_frame_saved_regs): Delete declaration.
7887 (struct frame_saved_regs): Delete definition.
7888 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7889 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7890 (hppa_frame_find_saved_regs): Delete declaration.
7891 (FRAME_FIND_SAVED_REGS): Delete macro.
7892 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7893 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7894 FRAME_FIND_SAVED_REGS in comment.
7895
7896 2003-04-05 Andrew Cagney <cagney@redhat.com>
7897
7898 * frame.c (frame_func_unwind, get_frame_func): New functions.
7899 * frame.h (get_frame_func, frame_func_unwind): Declare.
7900 (struct frame_info): Add field "prev_func" for caching the
7901 previous frame's function address.
7902 * arm-tdep.c (arm_frameless_function_invocation): Combine
7903 get_pc_function_start and get_frame_pc into get_frame_func.
7904 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7905 (sh64_nofp_frame_init_saved_regs): Ditto.
7906 * s390-tdep.c (s390_function_start): Ditto.
7907 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7908 (rs6000_frameless_function_invocation): Ditto.
7909 (rs6000_frame_saved_pc): Ditto.
7910 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7911 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7912 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7913 (i386_frame_init_saved_regs): Ditto.
7914 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7915 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7916 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7917 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7918 * blockframe.c (frameless_look_for_prologue): Ditto.
7919
7920 2003-04-05 Andrew Cagney <cagney@redhat.com>
7921
7922 * frame.c (legacy_get_prev_frame): Link prev to next at the
7923 function start. Update comments.
7924
7925 2003-04-05 Andrew Cagney <cagney@redhat.com>
7926
7927 * frame.c (get_frame_id): Update comment.
7928 (legacy_get_prev_frame): Update comment.
7929 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7930 * gdbarch.h: Regenerate.
7931 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7932 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7933
7934 2003-04-05 Andrew Cagney <cagney@redhat.com>
7935
7936 * stack.c (print_frame_info): Use get_frame_pc.
7937
7938 2003-04-04 Andrew Cagney <cagney@redhat.com>
7939
7940 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7941 the frame's type from the unwinder.
7942 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7943 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7944 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7945 (get_frame_base_address): Use get_frame_type.
7946 (get_frame_locals_address, get_frame_args_address): Ditto.
7947 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7948 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7949 (struct frame_info): Add comment explaining why the frame contains
7950 a "type" field.
7951 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7952 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7953 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7954 NORMAL_FRAME.
7955 * frame-unwind.h: Include "frame.h".
7956 (struct frame_unwind): Add "type" field.
7957 * Makefile.in (frame_unwind_h): Add $(frame_h).
7958
7959 2003-04-04 Andrew Cagney <cagney@redhat.com>
7960
7961 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7962 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7963 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7964 get_frame_base.
7965 (d10v_unwind_dummy_id): Use frame_id_build.
7966 * frame.c (find_frame_sal): Use get_frame_pc.
7967 (create_new_frame): Use deprecated_update_frame_pc_hack and
7968 deprecated_update_frame_base_hack.
7969 (create_sentinel_frame): Add comment about ->pc going away.
7970 (get_prev_frame): Add comment about ->pc going away.
7971 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7972 frame_id_build, deprecated_update_frame_pc_hack and
7973 deprecated_update_frame_base_hack.
7974 (select_frame): Use get_frame_pc.
7975 (legacy_saved_regs_this_id): Use frame_id_build.
7976
7977 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7978
7979 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7980 signed integer case.
7981 (classify_argument): Handle enumerations and references.
7982
7983 2003-04-04 Andrew Cagney <cagney@redhat.com>
7984
7985 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7986 ID to NULL.
7987
7988 2003-04-01 Adam Fedor <fedor@gnu.org>
7989
7990 * gdb/objc-lang.c (selectors_info): Replace calls to
7991 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7992 SYMBOL_NATURAL_NAME.
7993 (classes_info, find_methods): Likewise.
7994
7995 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7996
7997 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7998 ``mach'' to the value determined by bfd_default_set_arch_mach().
7999
8000 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8001
8002 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8003 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8004 (mi-cmd-file.o): Update dependencies.
8005
8006 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8007
8008 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8009 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8010
8011 2003-04-01 Adam Fedor <fedor@gnu.org>
8012
8013 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8014 * language.h (struct language_defn): Add la_demangle.
8015 (language_demangle): Declare.
8016 * language.c (language_demangle): New function.
8017 (unk_lang_demangle): Likewise.
8018 (unknown_language_defn, auto_language_defn, local_language_defn):
8019 Add ukn_lang_demangle.
8020 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8021 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8022 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8023 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8024 * jv-lang.c (java_demangle): New function
8025 (java_language_defn): Use it for la_demangle element.
8026 * objc-lang.c (objc_demangle): Add options argument
8027 (objc_language_defn): Use objc_demangle for la_demangle element.
8028 * maint.c (maintenance_demangle): Replace switch with
8029 call to language_demangle.
8030 * utils.c (fprintf_symbol_filtered): Likewise.
8031
8032 2003-04-01 Andrew Cagney <cagney@redhat.com>
8033
8034 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8035 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8036 PRINT_TYPELESS_INTEGER.
8037 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8038 PUSH_RETURN_ADDRESS.
8039
8040 2003-04-01 Andrew Cagney <cagney@redhat.com>
8041
8042 * Makefile.in (d10v-tdep.o): Update dependencies.
8043 * d10v-tdep.c: Include "frame-base.h".
8044 (d10v_frame_unwind): Make constant.
8045 (d10v_frame_base_address): New function.
8046 (d10v_frame_base): New variable.
8047 (d10v_gdbarch_init): Set frame_base default.
8048 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8049 comment for base.
8050 (d10v_frame_unwind_cache): Set and use "prev_sp".
8051 (d10v_frame_this_id): Use the previous frame's inner most stack
8052 address and this frame's func address for the frame ID. Use
8053 frame_id_build. Don't analyze beyond the current instruction.
8054
8055 2003-04-01 Andrew Cagney <cagney@redhat.com>
8056
8057 * frame.h (get_frame_locals_address, get_frame_args_address):
8058 Refer to the base address, instead of the address of the first
8059 local or parameter.
8060
8061 2003-04-01 Andrew Cagney <cagney@redhat.com>
8062
8063 Add frame debug info addresses:
8064 * frame-base.c: New file.
8065 * frame-base.h: New file.
8066 * frame.h (struct frame_base): Add opaque declaration.
8067 (get_frame_base): Update comment.
8068 (get_frame_base_address): Declare.
8069 (get_frame_locals_address): Declare.
8070 (get_frame_args_address): Declare.
8071 (struct frame_info): Add "base" and "base_cache". Update
8072 comments on the unwinder.
8073 * frame.c: Include "frame-base.h".
8074 (get_frame_locals_address): New function.
8075 (get_frame_base_address): New function.
8076 (get_frame_args_address): New function.
8077 * findvar.c (read_var_value): Use get_frame_locals_address and
8078 get_frame_args_address.
8079 * stack.c (frame_info): Use get_frame_locals_address and
8080 get_frame_args_address.
8081 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8082 moved to "frame-base.c".
8083 * printcmd.c (print_frame_nameless_args): Ditto.
8084 * symtab.h (address_class): Update comments.
8085 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8086 get_frame_base_address.
8087 * dwarf2expr.c (execute_stack_op): Ditto.
8088 * Makefile.in (frame_base_h): Define.
8089 (frame.o): Update dependencies.
8090 (frame-base.o): Add dependencies.
8091 (SFILES): Add frame-base.c.
8092 (COMMON_OBS): Add frame-base.o.
8093
8094 2003-04-01 Andrew Cagney <cagney@redhat.com>
8095
8096 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8097 CALL_DUMMY_LENGTH): Ditto.
8098 * gdbarch.c: Re-generate.
8099 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8100 (CALL_DUMMY_LENGTH): Delete macro.
8101 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8102 * arm-tdep.c (arm_gdbarch_init): Ditto.
8103 * avr-tdep.c (avr_gdbarch_init): Ditto.
8104 * cris-tdep.c (cris_gdbarch_init): Ditto.
8105 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8106 * frv-tdep.c (frv_gdbarch_init): Ditto.
8107 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8108 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8109 * i386-tdep.c (i386_gdbarch_init): Ditto.
8110 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8111 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8112 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8113 * mips-tdep.c (mips_gdbarch_init): Ditto.
8114 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8115 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8116 * s390-tdep.c (s390_gdbarch_init): Ditto.
8117 * sh-tdep.c (sh_gdbarch_init): Ditto.
8118 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8119 * v850-tdep.c (v850_gdbarch_init): Ditto.
8120 * vax-tdep.c (vax_gdbarch_init): Ditto.
8121 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8122
8123 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8124
8125 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8126
8127 2003-04-01 Andrew Cagney <cagney@redhat.com>
8128
8129 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8130 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8131 * gdbarch.h, gdbarch.c: Re-generate.
8132 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8133 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8134 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8135 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8136 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8137 * infcmd.c (run_stack_dummy): Simplify assuming
8138 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8139 * infrun.c (handle_inferior_event): Ditto.
8140 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8141 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8142 * arm-tdep.c (arm_gdbarch_init): Ditto.
8143 * avr-tdep.c (avr_gdbarch_init): Ditto.
8144 * cris-tdep.c (cris_gdbarch_init): Ditto.
8145 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8146 * frv-tdep.c (frv_gdbarch_init): Ditto.
8147 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8148 * i386-tdep.c (i386_gdbarch_init): Ditto.
8149 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8150 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8151 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8152 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8153 * mips-tdep.c (mips_gdbarch_init): Ditto.
8154 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8155 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8156 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8157 * s390-tdep.c (s390_gdbarch_init): Ditto.
8158 * sh-tdep.c (sh_gdbarch_init): Ditto.
8159 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8160 * v850-tdep.c (v850_gdbarch_init): Ditto.
8161 * vax-tdep.c (vax_gdbarch_init): Ditto.
8162 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8163
8164 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8165
8166 * symfile.c (symfile_relocate_debug_section): Update call to
8167 bfd_simple_get_relocated_section_contents.
8168
8169 2003-03-31 Andrew Cagney <cagney@redhat.com>
8170
8171 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8172 * gdbarch.h, gdbarch.c: Regenerate.
8173 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8174 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8175 available.
8176 * frame.h (generic_fix_call_dummy): Delete declaration.
8177 * dummy-frame.h: Update comment.
8178 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8179 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8180 fix_call_dummy.
8181 * sh-tdep.c (sh_gdbarch_init): Ditto.
8182 * s390-tdep.c (s390_gdbarch_init): Ditto.
8183 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8184 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8185 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8186 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8187 * i386-tdep.c (i386_gdbarch_init): Ditto.
8188 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8189 * frv-tdep.c (frv_gdbarch_init): Ditto.
8190 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8191 * cris-tdep.c (cris_gdbarch_init): Ditto.
8192 * avr-tdep.c (avr_gdbarch_init): Ditto.
8193 * arm-tdep.c (arm_gdbarch_init): Ditto.
8194
8195 2003-03-31 J. Brobecker <brobecker@gnat.com>
8196
8197 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8198 (INIT_FRAME_AP): Likewise.
8199 (EXTRA_FRAME_INFO): Likewise.
8200
8201 2003-03-31 Andrew Cagney <cagney@redhat.com>
8202
8203 * gdbarch.sh: Include "symfile.h".
8204 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8205 * gdbarch.h, gdbarch.c: Re-generate.
8206 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8207 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8208 call_dummy_address, the default is at entry_point_address.
8209 * v850-tdep.c (v850_gdbarch_init): Ditto.
8210 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8211 * sh-tdep.c (sh_gdbarch_init): Ditto.
8212 * s390-tdep.c (s390_gdbarch_init): Ditto.
8213 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8214 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8215 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8216 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8217 * i386-tdep.c (i386_gdbarch_init): Ditto.
8218 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8219 * frv-tdep.c (frv_gdbarch_init): Ditto.
8220 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8221 * cris-tdep.c (cris_gdbarch_init): Ditto.
8222 * arm-tdep.c (arm_gdbarch_init): Ditto.
8223
8224 2003-03-31 Andrew Cagney <cagney@redhat.com>
8225
8226 * gdbarch.sh (CALL_DUMMY_P): Delete.
8227 * gdbarch.h, gdbarch.c: Re-generate.
8228 * inferior.h (CALL_DUMMY_P): Delete macro.
8229 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8230 * vax-tdep.c (vax_gdbarch_init): Update.
8231 * v850-tdep.c (v850_gdbarch_init): Update.
8232 * sparc-tdep.c (sparc_gdbarch_init): Update.
8233 * sh-tdep.c (sh_gdbarch_init): Update.
8234 * s390-tdep.c (s390_gdbarch_init): Update.
8235 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8236 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8237 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8238 * mips-tdep.c (mips_gdbarch_init): Update.
8239 * mcore-tdep.c (mcore_gdbarch_init): Update.
8240 * m68k-tdep.c (m68k_gdbarch_init): Update.
8241 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8242 * ia64-tdep.c (ia64_gdbarch_init): Update.
8243 * i386-tdep.c (i386_gdbarch_init): Update.
8244 * h8300-tdep.c (h8300_gdbarch_init): Update.
8245 * frv-tdep.c (frv_gdbarch_init): Update.
8246 * d10v-tdep.c (d10v_gdbarch_init): Update.
8247 * cris-tdep.c (cris_gdbarch_init): Update.
8248 * breakpoint.c (deprecated_frame_in_dummy): Update.
8249 * avr-tdep.c (avr_gdbarch_init): Update.
8250 * alpha-tdep.c (alpha_gdbarch_init): Update.
8251 * arm-tdep.c (arm_gdbarch_init): Update.
8252 * dummy-frame.c (dummy_frame_this_id): Update comments.
8253 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8254 * frame.c (legacy_get_prev_frame): Ditto.
8255 * valops.c (call_function_by_hand): Delete function.
8256 (hand_function_call): Rename to call_function_by_hand
8257
8258 2003-03-30 Andrew Cagney <cagney@redhat.com>
8259
8260 2002-11-10 Klee Dienes <kdienes@apple.com>
8261 * value.h (struct value): Update comment.
8262
8263 2003-03-30 Andrew Cagney <cagney@redhat.com>
8264
8265 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8266 D10V_FP_REGNUM.
8267 (d10v_gdbarch_init): Do not set fp_regnum.
8268
8269 * frame.c (get_frame_base): Force ID initialization.
8270 (get_prev_frame): Move computation of the frame ID from here ...
8271 (get_frame_id): ... to here.
8272 (legacy_get_prev_frame): Mark the frame ID as valid.
8273 * frame.h (struct frame_info): Add field "id_p".
8274
8275 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8276
8277 * i386-tdep.c (i386_store_struct_return): Removed.
8278 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8279
8280 2003-03-30 Andrew Cagney <cagney@redhat.com>
8281
8282 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8283 * gdbarch.h, gdbarch.c: Regenerate.
8284 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8285 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8286 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8287 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8288 * i386-tdep.c (i386_gdbarch_init): Ditto.
8289 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8290 * cris-tdep.c (cris_gdbarch_init): Ditto.
8291 * vax-tdep.c (vax_gdbarch_init): Ditto.
8292 * s390-tdep.c (s390_gdbarch_init): Ditto.
8293 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8294 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8295 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8296 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8297 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8298 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8299 * sparc-tdep.c (sparc_gdbarch_init): Update.
8300 * sh-tdep.c (sh_gdbarch_init): Update.
8301 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8302 * mips-tdep.c (mips_gdbarch_init): Update.
8303 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8304 * ia64-tdep.c (ia64_gdbarch_init): Update.
8305 * frv-tdep.c (frv_gdbarch_init): Update.
8306 * avr-tdep.c (avr_gdbarch_init): Update.
8307 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8308 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8309 instead of when push_dummy_call is not available.
8310
8311 2003-03-30 Andrew Cagney <cagney@redhat.com>
8312
8313 * infttrace.c: Include "gdbthread.h".
8314 (parent_attach_all): Fix function signature.
8315 (call_ptrace): Update call.
8316 * Makefile.in (infttrace.o): Update dependencies.
8317
8318 2003-03-30 Andrew Cagney <cagney@redhat.com>
8319
8320 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8321 PUSH_RETURN_ADDRESS.
8322 * gdbarch.h, gdbarch.c: Regenerate.
8323 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8324 * x86-64-tdep.c (x86_64_init_abi): Update.
8325 * v850-tdep.c (v850_gdbarch_init): Update.
8326 * sparc-tdep.c (sparc_gdbarch_init): Update.
8327 * sh-tdep.c (sh_gdbarch_init): Update.
8328 * s390-tdep.c (s390_gdbarch_init): Update.
8329 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8330 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8331 * mips-tdep.c (mips_gdbarch_init): Update.
8332 * mcore-tdep.c (mcore_gdbarch_init): Update.
8333 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8334 * ia64-tdep.c (ia64_gdbarch_init): Update.
8335 * i386-tdep.c (i386_gdbarch_init): Update.
8336 * h8300-tdep.c (h8300_gdbarch_init): Update.
8337 * frv-tdep.c (frv_gdbarch_init): Update.
8338 * cris-tdep.c (cris_gdbarch_init): Update.
8339 * avr-tdep.c (avr_gdbarch_init): Update.
8340 * arm-tdep.c (arm_gdbarch_init): Update.
8341 * valops.c (hand_function_call): Update.
8342
8343 2003-03-29 Andrew Cagney <cagney@redhat.com>
8344
8345 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8346 sizeof_call_dummy_words.
8347 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8348 define.
8349 * gdbarch.h: Regenerate.
8350
8351 2003-03-29 Andrew Cagney <cagney@redhat.com>
8352
8353 * infttrace.h: New file.
8354 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8355 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8356 (hpread_read_doc_function_type): Detect an initialized type1.
8357 (hpread_quick_traverse): Initialize mod_name_string.
8358 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8359 (som_solib_get_solib_by_pc): Declare.
8360 (so_lib_thread_start_addr): Declare.
8361 (no_shared_libraries): Declare.
8362 * somread.c (init_import_symbols): Make static. Add forward
8363 declaration.
8364 * config/pa/nm-hppah.h: Include "infttrace.h" for
8365 parent_attach_all.
8366 (hppa_insert_hw_watchpoint): Declare.
8367 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8368 * hppah-nat.c: Include "gdb_string.h".
8369 (parent_attach_all): Delete extern declaration, moved to
8370 "infttrace.h".
8371 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8372 int.
8373 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8374 * Makefile.in (infttrace_h): Define.
8375 (hpread.o): Update dependencies.
8376 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8377 * hppa-hpux-tdep.c: Include "gdb_string.h".
8378 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8379 * infrun.c (handle_inferior_event): Always initialize
8380 stepped_after_stopped_by_watchpoint. Add default and remove
8381 fallthrough in switch statement.
8382 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8383 parameter to int.
8384 (hppa_remove_hw_watchpoint): Ditto.
8385
8386 2003-03-29 Andrew Cagney <cagney@redhat.com>
8387
8388 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8389 offset.
8390
8391 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8392
8393 * arm-tdep.c (arm_push_arguments): Delete.
8394 (struct stack_item): New type.
8395 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8396 (arm_store_struct_return): Delte.
8397 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8398 arm_push_arguments or arm_store_struct_return.
8399
8400 2003-03-28 Andrew Cagney <cagney@redhat.com>
8401
8402 * Makefile.in (d10v-tdep.o): Update dependencies.
8403 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8404 * d10v-tdep.c: Include "remote.h".
8405 (target_resume_hook): Delete extern declaration.
8406 (target_wait_loop_hook): Ditto.
8407 (tdisassemble_command): Eliminate assignment in "if" conditional.
8408 (d10v_ts2_register_sim_regno): Eliminate call to
8409 legacy_register_sim_regno.
8410 (d10v_ts3_register_sim_regno): Ditto.
8411
8412 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8413
8414 * thread.c: Reindented.
8415 * lin-lwp.c: Ditto.
8416 * linux-proc.c: Ditto.
8417
8418 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8419
8420 * MAINTAINERS (write after approval): Add myself.
8421
8422 2003-03-27 Theodore A. Roth <troth@openavr.org>
8423
8424 * objc-exp.y: Add missing semi-colons.
8425
8426 2003-03-27 Andrew Cagney <cagney@redhat.com>
8427
8428 * regcache.c (write_sp): Delete function and references.
8429 * inferior.h (write_sp): Delete declaration.
8430 * valops.c (hand_function_call): Replace write_sp with
8431 TARGET_WRITE_SP.
8432 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8433 (sparc_pop_frame): Ditto.
8434
8435 2003-03-27 Andrew Cagney <cagney@redhat.com>
8436
8437 * NEWS: Mention removal of support for hppa*-*-bsd* and
8438 hppa*-*-osf* natives, and hppa*-*-pro* target.
8439 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8440 * config/pa/xm-pa.h: Obsolete file.
8441 * config/pa/xm-hppab.h: Obsolete file.
8442 * config/pa/nm-hppab.h: Obsolete file.
8443 * config/pa/tm-hppab.h: Obsolete file.
8444 * config/pa/tm-hppao.h: Obsolete file.
8445 * config/pa/nm-hppao.h: Obsolete file.
8446 * config/pa/tm-pro.h: Obsolete file.
8447 * config/pa/hppaosf.mt: Obsolete file.
8448 * config/pa/hppaosf.mh: Obsolete file.
8449 * config/pa/hppapro.mt: Obsolete file.
8450 * config/pa/hppabsd.mt: Obsolete file.
8451 * config/pa/hppabsd.mh: Obsolete file.
8452 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8453 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8454 hppa*-*-osf*.
8455
8456 2003-03-27 Andrew Cagney <cagney@redhat.com>
8457
8458 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8459 push_arguments. Don't set push_return_address or write_sp.
8460 (d10v_push_dummy_call): Replace d10v_push_arguments.
8461 (d10v_push_return_address, d10v_write_sp): Delete function,
8462 handled by push_dummy_call.
8463
8464 2003-03-26 Andrew Cagney <cagney@redhat.com>
8465
8466 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8467 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8468 regcache and dummy_addr parameters.
8469 * gdbarch.h, gdbarch.c: Re-generate.
8470 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8471 available; assume it will handle stack alignment and return
8472 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8473 legacy_push_arguments.
8474 (legacy_push_arguments): Rename default_push_arguments.
8475 * value.h (legacy_push_arguments): Rename default_push_arguments.
8476 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8477 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8478 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8479 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8480 * config/i386/tm-symmetry.h: Update.
8481 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8482 * x86-64-tdep.c (x86_64_init_abi): Update.
8483 * v850-tdep.c (v850_gdbarch_init): Update.
8484 * sparc-tdep.c (sparc_gdbarch_init): Update.
8485 * sh-tdep.c (sh_gdbarch_init): Update.
8486 * s390-tdep.c (s390_gdbarch_init): Update.
8487 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8488 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8489 * mips-tdep.c (mips_gdbarch_init): Update.
8490 * mcore-tdep.c (mcore_gdbarch_init): Update.
8491 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8492 * ia64-tdep.c (ia64_gdbarch_init): Update.
8493 * i386-tdep.c (i386_gdbarch_init): Update.
8494 * hppa-tdep.c (hppa_gdbarch_init): Update.
8495 * h8300-tdep.c (h8300_gdbarch_init): Update.
8496 * frv-tdep.c (frv_gdbarch_init): Update.
8497 * d10v-tdep.c (d10v_gdbarch_init): Update.
8498 * cris-tdep.c (cris_gdbarch_init): Update.
8499 * avr-tdep.c (avr_gdbarch_init): Update.
8500 * arm-tdep.c (arm_gdbarch_init): Update.
8501 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8502 * alpha-tdep.c (alpha_gdbarch_init): Update.
8503
8504 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8505
8506 * signals/signals.c (do_target_signal_to_host): Correct realtime
8507 signal range test.
8508
8509 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8510
8511 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8512 (struct sal_chain, map_catch_names): Remove.
8513 (catch_exception_command_1): Don't call
8514 handle_gnu_4_16_catch_command.
8515
8516 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8517
8518 From Mark Dettinger <dettinge@de.ibm.com>:
8519 * dwarf2cfi.c (read_2u): Increment pointer by two.
8520
8521 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8522
8523 * signals/signals.c: Fix typos in last change.
8524
8525 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8526
8527 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8528 not already defined. Use __SIGRTMIN if available.
8529 (target_signal_from_host): Remove SIGRTMIN block.
8530 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8531 the signal is within the realtime range.
8532
8533 2003-03-25 Adam Fedor <fedor@gnu.org>
8534
8535 * Makefile.in (infrun.o): Add $(language_h)
8536 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8537 for language specific trampolines.
8538 * language.h (struct language_defn): Add skip_trampoline.
8539 (skip_language_trampoline): Declare.
8540 * language.c (unk_lang_trampoline, skip_language_trampoline):
8541 New functions.
8542 (unknown_language_defn, auto_language_defn, local_language_defn):
8543 Add ukn_lang_trampoline.
8544 * ada-lang.c (ada_language_defn): Add NULL for language
8545 specific skip_trampoline.
8546 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8547 scm-lang.c: Likewise.
8548 * objc-lang.c (objc_skip_trampoline): New function.
8549 (objc_language_defn): Add objc_skip_trampoline.
8550
8551 2003-03-25 Andrew Cagney <cagney@redhat.com>
8552
8553 * frame.c (get_prev_frame): Delay validating a frame's ID -
8554 non-NULL, didn't go backwards - until an attempt to unwind it to
8555 the previous frame.
8556
8557 2003-03-25 Andrew Cagney <cagney@redhat.com>
8558
8559 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8560 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8561 * gdbarch.h, gdbarch.c: Re-generate.
8562 * config/sparc/tm-sparc.h
8563 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8564 * sparc-tdep.c (sparc_gdbarch_init): Set
8565 deprecated_extra_stack_alignment_needed.
8566 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8567 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8568 extra_stack_alignment_needed.
8569 * v850-tdep.c (v850_gdbarch_init): Ditto.
8570 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8571 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8572 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8573 * cris-tdep.c (cris_gdbarch_init): Ditto.
8574 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8575 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8576
8577 2003-03-25 Andrew Cagney <cagney@redhat.com>
8578
8579 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8580 STORE_STRUCT_RETURN.
8581 * gdbarch.h, gdbarch.c: Regenerate.
8582 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8583 (d10v_push_arguments): Set the struct return register.
8584 (d10v_gdbarch_init): Update.
8585 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8586 * x86-64-tdep.c (x86_64_init_abi): Update.
8587 * vax-tdep.c (vax_gdbarch_init): Update.
8588 * v850-tdep.c (v850_gdbarch_init): Update.
8589 * sparc-tdep.c (sparc_gdbarch_init): Update.
8590 * sh-tdep.c (sh_gdbarch_init): Update.
8591 * s390-tdep.c (s390_gdbarch_init): Update.
8592 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8593 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8594 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8595 * mips-tdep.c (mips_gdbarch_init): Update.
8596 * mcore-tdep.c (mcore_gdbarch_init): Update.
8597 * m68k-tdep.c (m68k_gdbarch_init): Update.
8598 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8599 * ia64-tdep.c (ia64_gdbarch_init): Update.
8600 * i386-tdep.c (i386_gdbarch_init): Update.
8601 * hppa-tdep.c (hppa_gdbarch_init): Update.
8602 * h8300-tdep.c (h8300_gdbarch_init): Update.
8603 * frv-tdep.c (frv_gdbarch_init): Update.
8604 * cris-tdep.c (cris_gdbarch_init): Update.
8605 * avr-tdep.c (avr_gdbarch_init): Update.
8606 * arm-tdep.c (arm_gdbarch_init): Update.
8607 * alpha-tdep.c (alpha_gdbarch_init): Update.
8608
8609 2003-03-25 Andrew Cagney <cagney@redhat.com>
8610
8611 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8612 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8613 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8614 * gdbarch.h, gdbarch.c: Regenerate.
8615 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8616 call_dummy_stack_adjust_p.
8617 * vax-tdep.c (vax_gdbarch_init): Ditto.
8618 * v850-tdep.c (v850_gdbarch_init): Ditto.
8619 * sh-tdep.c (sh_gdbarch_init): Ditto.
8620 * s390-tdep.c (s390_gdbarch_init): Ditto.
8621 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8622 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8623 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8624 * mips-tdep.c (mips_gdbarch_init): Ditto.
8625 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8626 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8627 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8628 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8629 * i386-tdep.c (i386_gdbarch_init): Ditto.
8630 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8631 * frv-tdep.c (frv_gdbarch_init): Ditto.
8632 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8633 * cris-tdep.c (cris_gdbarch_init): Ditto.
8634 * avr-tdep.c (avr_gdbarch_init): Ditto.
8635 * arm-tdep.c (arm_gdbarch_init): Ditto.
8636 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8637 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8638 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8639 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8640 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8641 call_dummy_stack_adjust_p.
8642 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8643 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8644 * sparc-tdep.c (sparc32_push_arguments): Update.
8645 * valops.c (hand_function_call): Update.
8646
8647 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8648
8649 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8650 set_gdbarch_char_signed.
8651
8652 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8653
8654 PR cli/548
8655 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8656
8657 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8658
8659 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8660 (_initialize_arm_tdep): Don't set tm_print_insn.
8661
8662 2003-03-24 Adam Fedor <fedor@gnu.org>
8663
8664 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8665 * objc-lang.h: Add multiple inclusion protection.
8666 (start_msglist, add_msglist, end_msglist): Additional declarations.
8667
8668 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8669
8670 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8671 value was renamed to ARM_FLOAT_SOFT_FPA.
8672
8673 2003-03-23 Andrew Cagney <cagney@redhat.com>
8674
8675 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8676 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8677 * gdbarch.h, gdbarch.c: Regenerate.
8678 * valops.c (hand_function_call): Update.
8679 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8680 * frame.c (legacy_saved_regs_this_id): Update.
8681 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8682 * dummy-frame.h: Update.
8683 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8684 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8685 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8686 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8687 * config/m68k/tm-sun3.h: Update.
8688 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8689 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8690 * x86-64-tdep.c (x86_64_init_abi): Update.
8691 * vax-tdep.c (vax_gdbarch_init): Update.
8692 * v850-tdep.c (v850_gdbarch_init): Update.
8693 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8694 * sh-tdep.c (sh_gdbarch_init): Update.
8695 * s390-tdep.c (s390_gdbarch_init): Update.
8696 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8697 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8698 (frame_get_saved_regs): Update.
8699 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8700 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8701 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8702 * mips-tdep.c (mips_gdbarch_init): Update.
8703 * mcore-tdep.c (mcore_gdbarch_init): Update.
8704 * m68k-tdep.c (m68k_gdbarch_init): Update.
8705 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8706 * ia64-tdep.c (ia64_gdbarch_init): Update.
8707 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8708 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8709 (i386_interix_back_one_frame): Update.
8710 * hppa-tdep.c (hppa_gdbarch_init): Update.
8711 (hppa_init_extra_frame_info): Update.
8712 * h8300-tdep.c (h8300_gdbarch_init): Update.
8713 * frv-tdep.c (frv_gdbarch_init): Update.
8714 * cris-tdep.c (cris_gdbarch_init): Update.
8715 * avr-tdep.c (avr_gdbarch_init): Update.
8716 * arm-tdep.c (arm_gdbarch_init): Update.
8717 * alpha-tdep.c (alpha_gdbarch_init): Update.
8718
8719 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8720
8721 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8722 (arm_get_fp_model): Declare.
8723 * arm-tdep.c (fp_model_strings): New string array.
8724 (arm_fp_model, current_fp_model): New variables.
8725 (arm_get_fp_model): New function.
8726 (arm_set_fp): New function.
8727 (set_fp_model_sfunc): New function.
8728 (show_fp_model): New function.
8729 (_initialize_arm_tdep): Add new command to set/show the FPU.
8730 (arm_extract_return_value): Use arm_get_fp_model.
8731 (arm_store_return_value): Likewise.
8732 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8733 to initialize the floating-point data types.
8734 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8735 model is FPA.
8736
8737 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8738
8739 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8740 the current setting of each value.
8741 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8742 new_set and new_show. Use add_setshow_cmd_full and
8743 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8744 commands and add new version as subcommands of "set/show arm".
8745
8746 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8747
8748 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8749 (set_arm_command, show_arm_command): New functions.
8750 (_initialize_arm_tdep): Add them.
8751 (num_disassembly_options): Renamed from num_flavor_options.
8752 (valid_disassembly_styles): Renamed from valid_flavors.
8753 (disassembly_style): Renamed from disassembly_flavor.
8754 (set_disassembly_style_sfunc): Renamed from
8755 set_disassembly_flavor_sfunc.
8756 (set_disassembly_style): Renamed from set_disassembly_flavor.
8757 (arm_othernames): Updated.
8758 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8759 command. Add "set/show arm disassembly" commands. Deprecate
8760 "othernames" command.
8761
8762 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8763
8764 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8765 (arm-tdep.o): Depend on elf_arm_h.
8766
8767 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8768
8769 * Makefile.in (coff_internal_h): Define.
8770 (arm-tdep.o): Update dependencies.
8771
8772 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8773
8774 * arm-tdep.c (prologue_cache): Delete.
8775 (check_prologue_cache, save_prologue_cache): Delete.
8776 (arm_scan_prologue): Don't check or update the prologue_cache.
8777 (arm_gdb_arch_init): Don't initialize it.
8778 (_initialize_arm_tdep): Likewise.
8779
8780 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8781
8782 * MAINTAINERS (tui): Maintainer of tui code.
8783
8784 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8785
8786 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8787 (i386-cygwin-tdep.o): Add dependencies.
8788 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8789 * i386-cygwin-tdep.c: New file.
8790 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8791 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8792
8793 2003-03-20 Andrew Cagney <cagney@redhat.com>
8794
8795 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8796 (handle_inferior_event): Remove code calling
8797 DYNAMIC_TRAMPOLINE_NEXTPC.
8798
8799 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8800 already has a full path.
8801
8802 * main.c (gdb_main): Return 1.
8803 (captured_main): Call error to report an invalid interpreter.
8804
8805 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8806 * alpha-osf1-tdep.c: Include "gdb_string.h".
8807
8808 2003-03-19 J. Brobecker <brobecker@gnat.com>
8809
8810 Continuing work to convert the hppa targets to multiarch partial.
8811
8812 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8813 method, now that hppa_push_dummy_frame has a conformant prototype.
8814 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8815 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8816 for the switch to multiarch partial.
8817
8818 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8819
8820 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8821 when iss is issNull.
8822
8823 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8824
8825 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8826 NUM_REGS bounds check.
8827
8828 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8829
8830 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8831 * mips-tdep.c (gdb_assert.h): Include.
8832 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8833 (mips_register_name): Handle integer registers explicitly. Add
8834 bounds checking.
8835 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8836 (mips_lsi33k_reg_names): Don't list integer registers; they're
8837 handled by mips_register_name() now.
8838 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8839 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8840 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8841 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8842 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8843
8844 2003-03-18 Andrew Cagney <cagney@redhat.com>
8845
8846 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8847 a void pointer.
8848 * gdbtypes.h (print_scalar_formatted): Update declaration.
8849 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8850
8851 2003-03-18 J. Brobecker <brobecker@gnat.com>
8852
8853 * infrun.c (observer.h): Add #include.
8854 (normal_stop): Add call to observer_notify_normal_stop.
8855 * Makefile.in (infrun.o): Add dependency on observer.h.
8856
8857 2003-03-18 J. Brobecker <brobecker@gnat.com>
8858
8859 Continuing work to convert the hppa targets to multiarch partial.
8860 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8861 parameter. Reformat comment.
8862 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8863 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8864 to match new profile.
8865
8866 2003-03-18 J. Brobecker <brobecker@gnat.com>
8867
8868 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8869 appear to be working in any case.
8870
8871 2003-03-18 J. Brobecker <brobecker@gnat.com>
8872
8873 * observer.c (observer_test_first_observer): New static variable.
8874 (observer_test_second_observer): Likewise.
8875 (observer_test_third_observer): Likewise.
8876 (observer_test_first_notification_function): New static function.
8877 (observer_test_second_notification_function): Likewise.
8878 (observer_test_third_notification_function): Likewise.
8879
8880 2003-03-17 J. Brobecker <brobecker@gnat.com>
8881
8882 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8883 * somsolib.c (gdb_assert.h): Likewise.
8884 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8885 (somsolib.o): Likewise.
8886
8887 2003-03-17 Andrew Cagney <cagney@redhat.com>
8888
8889 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8890 BFD. Simplify setting of di.endian.
8891
8892 2003-03-17 Andrew Cagney <cagney@redhat.com>
8893
8894 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8895 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8896
8897 From Elena Zannoni <ezannoni@redhat.com>
8898 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8899 vector and floating-point parameters.
8900 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8901 convention.
8902 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8903
8904 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8905
8906 * MAINTAINERS: Remove my name from several maintainership roles.
8907
8908 2003-03-17 Andrew Cagney <cagney@redhat.com>
8909
8910 Fix frame off-by-one bug.
8911 * frame-unwind.h (frame_this_id_ftype): Replace
8912 frame_unwind_id_ftype.
8913 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8914 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8915 with "prev_register".
8916 * frame-unwind.c (frame_unwind_find_by_pc): Return
8917 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8918 comment.
8919 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8920 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8921 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8922 (dummy_frame_unwind): Update.
8923 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8924 sentinel_frame_register_unwind.
8925 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8926 (sentinel_frame_unwinder): Update.
8927 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8928 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8929 * frame.c (create_sentinel_frame): Update. Initialize
8930 "prologue_cache" instead of "unwind_cache".
8931 (frame_register_unwind): Call this frame's prev_register with the
8932 next frame and this frame's prologue cache.
8933 (get_prev_frame): Simplify. Always call prev frame's this_id with
8934 this frame and prev frame's prologue cache. Document that this
8935 call is shifted one to the left when compared to the
8936 frame_register_unwind call.
8937 (legacy_saved_regs_prev_register): Replace
8938 frame_saved_regs_register_unwind.
8939 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8940 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8941 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8942 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8943 (d10v_frame_unwind): Update.
8944 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8945 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8946 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8947 "saved_regs" with "this_saved_regs".
8948
8949 2003-03-16 Andrew Cagney <cagney@redhat.com>
8950
8951 * frame.c (frame_pop): Don't call target_store_registers. Fix
8952 problem reported by Mark Kettenis.
8953
8954 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8955
8956 * i386-tdep.c (i386_register_type): Renamed from
8957 i386_register_virtual_type. Adjust function signature.
8958 (i386_gdbarch_init): Set register_type instead of
8959 deprecated_max_register_raw_size,
8960 deprecated_max_register_virtual_size and register_virtual_type.
8961
8962 2003-03-14 Andrew Cagney <cagney@redhat.com>
8963
8964 * frame.c (get_prev_frame): When a legacy frame, always call
8965 legacy_get_prev_frame. Simplify unwind code using assumption that
8966 the unwinder is new.
8967 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8968 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8969 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8970
8971 2003-03-14 Andrew Cagney <cagney@redhat.com>
8972
8973 * frame.c (get_saved_register): Delete function.
8974 * frame.h (get_saved_register): Delete declaration.
8975 * xstormy16-tdep.c: Update comment.
8976 * regcache.h: Update comments.
8977 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8978 get_saved_register and extract_address, use
8979 frame_read_unsigned_register.
8980 (sparc_frame_saved_pc): Ditto.
8981 (sparc_get_saved_register): Instead of get_saved_register, use
8982 frame_register.
8983 (sparc_pop_frame): Ditto.
8984 * findvar.c: Update comments.
8985 (value_of_register): Call frame_register instead of
8986 get_saved_register.
8987 (value_from_register): Ditto.
8988 * config/sparc/tm-sparc.h: Update comment.
8989 * breakpoint.c: Update comment.
8990
8991 2003-03-14 Andrew Cagney <cagney@redhat.com>
8992
8993 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8994 GET_SAVED_REGISTER.
8995 * gdbarch.h, gdbarch.c: Re-generate.
8996 * frame.h: Update comments.
8997 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8998 * x86-64-tdep.c (x86_64_init_abi): Update.
8999 * sparc-tdep.c (sparc_gdbarch_init): Update.
9000 * sh-tdep.c (sh_gdbarch_init): Update.
9001 * mips-tdep.c (mips_gdbarch_init): Update.
9002 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9003 * cris-tdep.c (cris_gdbarch_init): Update.
9004 * ia64-tdep.c (ia64_gdbarch_init): Update.
9005 * frame.c (frame_register): Update.
9006 (get_saved_register): Update.
9007 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9008
9009 2003-03-13 Andrew Cagney <cagney@redhat.com>
9010
9011 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9012 * gdbarch.h, gdbarch.c: Regenerate.
9013 * valops.c (hand_function_call): Update comment.
9014 * stack.c (return_command): Update comment.
9015 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9016 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9017 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9018 * x86-64-tdep.c (x86_64_init_abi): Update.
9019 * vax-tdep.c (vax_gdbarch_init): Update.
9020 * v850-tdep.c (v850_gdbarch_init): Update.
9021 * sparc-tdep.c (sparc_gdbarch_init): Update.
9022 * sh-tdep.c (sh_gdbarch_init): Update.
9023 * s390-tdep.c (s390_gdbarch_init): Update.
9024 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9025 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9026 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9027 * mips-tdep.c (mips_gdbarch_init): Update.
9028 * mcore-tdep.c (mcore_gdbarch_init): Update.
9029 * m68k-tdep.c (m68k_gdbarch_init): Update.
9030 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9031 * ia64-tdep.c (ia64_gdbarch_init): Update.
9032 * i386-tdep.c (i386_gdbarch_init): Update.
9033 * hppa-tdep.c (hppa_gdbarch_init): Update.
9034 * h8300-tdep.c (h8300_gdbarch_init): Update.
9035 * frv-tdep.c (frv_gdbarch_init): Update.
9036 * cris-tdep.c (cris_gdbarch_init): Update.
9037 * avr-tdep.c (avr_gdbarch_init): Update.
9038 * arm-tdep.c (arm_gdbarch_init): Update.
9039 * alpha-tdep.c (alpha_gdbarch_init): Update.
9040
9041 2003-03-13 Andrew Cagney <cagney@redhat.com>
9042
9043 * frame.c (legacy_frame_p): New function.
9044 (get_prev_frame): Use legacy_frame_p.
9045 * frame.h (legacy_frame_p): Declare.
9046
9047 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9048
9049 * MAINTAINERS (write after approval): Alphabetically
9050 listing corrected.
9051
9052 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9053
9054 * MAINTAINERS (write after approval): Add myself.
9055
9056 2003-03-12 Andrew Cagney <cagney@redhat.com>
9057
9058 * frame.c (get_prev_frame): Rename the frame parameter to
9059 "this_frame".
9060 (get_next_frame, legacy_get_prev_frame): Ditto.
9061
9062 2003-03-12 Andrew Cagney <cagney@redhat.com>
9063
9064 * frame.c (get_current_frame): Check target_has_registers before
9065 checking target_has_stack.
9066 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9067 instead of deprecated_selected_frame.
9068 * findvar.c (value_of_register): Pass "frame", not
9069 deprecated_selected_frame, to value_of_builtin_reg.
9070
9071 2003-03-12 Andrew Cagney <cagney@redhat.com>
9072
9073 * regcache.c (regcache_cooked_write_signed): New function.
9074 (regcache_cooked_write_unsigned): New function.
9075 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9076 (regcache_cooked_read_signed): Fix regnum in range assertion.
9077 * regcache.h (regcache_cooked_write_signed): Declare.
9078 (regcache_cooked_write_unsigned): Declare.
9079
9080 2003-03-12 Andrew Cagney <cagney@redhat.com>
9081
9082 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9083 * gdbarch.h, gdbarch.c: Re-generate.
9084 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9085 * x86-64-tdep.h: Update.
9086 * x86-64-tdep.c (x86_64_init_abi): Update.
9087 * v850-tdep.c (v850_gdbarch_init): Update.
9088 * sparc-tdep.c (sparc_gdbarch_init): Update.
9089 * sh-tdep.c (sh_gdbarch_init): Update.
9090 * s390-tdep.c (s390_gdbarch_init): Update.
9091 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9092 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9093 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9094 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9095 * mips-tdep.c (mips_gdbarch_init): Update.
9096 * mcore-tdep.c (mcore_gdbarch_init): Update.
9097 * m68k-tdep.c (m68k_gdbarch_init): Update.
9098 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9099 * ia64-tdep.c (ia64_gdbarch_init): Update.
9100 * i386-tdep.c (i386_gdbarch_init): Update.
9101 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9102 * hppa-tdep.c (hppa_gdbarch_init): Update.
9103 * h8300-tdep.c (h8300_gdbarch_init): Update.
9104 * frv-tdep.c (frv_gdbarch_init): Update.
9105 * cris-tdep.c (cris_gdbarch_init): Update.
9106 * avr-tdep.c (avr_gdbarch_init): Update.
9107 * arm-tdep.c (arm_gdbarch_init): Update.
9108 * alpha-tdep.c (alpha_gdbarch_init): Update.
9109 * sh-tdep.c (sh_init_extra_frame_info): Update.
9110 (sh64_init_extra_frame_info): Update.
9111 * ns32knbsd-nat.c (frame_num_args): Update.
9112 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9113 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9114 (xstormy16_frame_chain_valid): Update.
9115 * vax-tdep.c (vax_saved_pc_after_call): Update.
9116 * v850-tdep.c (v850_frame_chain): Update.
9117 (v850_pop_frame): Update.
9118 (v850_init_extra_frame_info): Update.
9119 * sparc-tdep.c (setup_arbitrary_frame): Update.
9120 * ns32k-tdep.c (umax_frame_num_args): Update.
9121 * s390-tdep.c (s390_pop_frame_regular): Update.
9122 * mn10300-tdep.c (mn10300_frame_chain): Update.
9123 (mn10300_pop_frame_regular): Update.
9124 (mn10300_init_extra_frame_info): Update.
9125 * mips-tdep.c (mips_init_frame_pc_first): Update.
9126 (mips_frame_chain): Update.
9127 (mips_pop_frame): Update.
9128 * mcore-tdep.c (mcore_frame_chain): Update.
9129 (mcore_pop_frame): Update.
9130 (mcore_init_extra_frame_info): Update.
9131 * arch-utils.c (init_frame_pc_default): Update.
9132 * m68k-tdep.c (isi_frame_num_args): Update.
9133 (delta68_frame_num_args): Update.
9134 (news_frame_num_args): Update.
9135 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9136 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9137 (alpha_frame_chain): Update.
9138 (alpha_pop_frame): Update.
9139 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9140 (hppa_init_extra_frame_info): Update.
9141 (hppa_frame_chain): Update.
9142 (hppa_frame_chain_valid): Update.
9143 * cris-tdep.c (cris_init_extra_frame_info): Update.
9144 * avr-tdep.c (avr_init_extra_frame_info): Update.
9145 * arm-tdep.c (arm_frame_chain_valid): Update.
9146 (arm_init_extra_frame_info): Update.
9147 (arm_pop_frame): Update.
9148 * frame.c (frame_pc_unwind): Update.
9149 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9150 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9151 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9152 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9153 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9154 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9155
9156 2003-03-12 Andrew Cagney <cagney@redhat.com>
9157
9158 Eliminate the need for POP_FRAME.
9159 * frame.c (do_frame_unwind_register): New function.
9160 (frame_pop): When no POP_FRAME, pop the frame using register
9161 unwind and a scratch regcache.
9162 (frame_saved_regs_pop): Delete function.
9163 (trad_frame_unwinder): Update.
9164 * d10v-tdep.c (d10v_frame_pop): Delete function.
9165 (d10v_frame_unwind): Update.
9166 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9167 (sentinel_frame_unwinder): Update.
9168 * dummy-frame.c (dummy_frame_pop): Delete function.
9169 (dummy_frame_unwind): Update.
9170 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9171 (struct frame_unwind): Update.
9172
9173 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9174
9175 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9176 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9177 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9178 Do range checks on register number obtained from debugging info.
9179 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9180 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9181 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9182 mapping function.
9183 (do_fp_register_row): Fix typo which caused double type to be
9184 used when attempting to unpack a float.
9185
9186 2003-03-11 J. Brobecker <brobecker@gnat.com>
9187
9188 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9189
9190 2003-03-11 Andrew Cagney <cagney@redhat.com>
9191
9192 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9193 frame. Problem found by Corinna Vinschen.
9194
9195 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9196
9197 * doublest.c (floatformat_from_length): Accept also
9198 the real size of 'long double' type.
9199
9200 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9201
9202 From Klee Dienes <kdienes@apple.com>:
9203 * breakpoint.c (bpstat_copy): Copy the command lines as well
9204 as the old value, to match what is freed in bpstat_clear.
9205
9206 2003-03-10 David Carlton <carlton@math.stanford.edu>
9207
9208 * minsyms.c (add_minsym_to_hash_table): Replace
9209 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9210 (compare_minimal_symbols, compact_minimal_symbols)
9211 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9212 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9213 of DEPRECATED_SYMBOL_MATCHES_NAME.
9214 (lookup_minimal_symbol_solib_trampoline): Ditto.
9215
9216 2003-03-10 Andrew Cagney <cagney@redhat.com>
9217
9218 * regcache.h (regcache_cooked_read_ftype): Define.
9219 (regcache_save, regcache_restore): Add a cooked_read parameter.
9220 * regcache.c (regcache_save, regcache_restore): Update.
9221 (do_cooked_read): New function.
9222 (regcache_cpy): Pass do_cooked_read to regcache_save and
9223 regcache_restore.
9224
9225 2003-03-10 Andrew Cagney <cagney@redhat.com>
9226
9227 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9228 * gdbarch.h, gdbarch.c: Re-generate.
9229 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9230 * x86-64-tdep.h: Update.
9231 * x86-64-tdep.c (x86_64_init_abi): Update.
9232 * v850-tdep.c (v850_gdbarch_init): Update.
9233 * sparc-tdep.c (sparc_gdbarch_init): Update.
9234 * sh-tdep.c (sh_gdbarch_init): Update.
9235 * s390-tdep.c (s390_gdbarch_init): Update.
9236 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9237 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9238 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9239 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9240 * mips-tdep.c (mips_gdbarch_init): Update.
9241 * mcore-tdep.c (mcore_gdbarch_init): Update.
9242 * m68k-tdep.c (m68k_gdbarch_init): Update.
9243 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9244 * ia64-tdep.c (ia64_gdbarch_init): Update.
9245 * i386-tdep.c (i386_gdbarch_init): Update.
9246 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9247 * hppa-tdep.c (hppa_gdbarch_init): Update.
9248 * h8300-tdep.c (h8300_gdbarch_init): Update.
9249 * frv-tdep.c (frv_gdbarch_init): Update.
9250 * cris-tdep.c (cris_gdbarch_init): Update.
9251 * avr-tdep.c (avr_gdbarch_init): Update.
9252 * arm-tdep.c (arm_gdbarch_init): Update.
9253 * alpha-tdep.c (alpha_gdbarch_init): Update.
9254 * sh-tdep.c (sh_init_extra_frame_info): Update.
9255 (sh64_init_extra_frame_info): Update.
9256 * ns32knbsd-nat.c (frame_num_args): Update.
9257 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9258 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9259 (xstormy16_frame_chain_valid): Update.
9260 * vax-tdep.c (vax_saved_pc_after_call): Update.
9261 * v850-tdep.c (v850_frame_chain): Update.
9262 (v850_pop_frame): Update.
9263 (v850_init_extra_frame_info): Update.
9264 * sparc-tdep.c (setup_arbitrary_frame): Update.
9265 * ns32k-tdep.c (umax_frame_num_args): Update.
9266 * s390-tdep.c (s390_pop_frame_regular): Update.
9267 * mn10300-tdep.c (mn10300_frame_chain): Update.
9268 (mn10300_pop_frame_regular): Update.
9269 (mn10300_init_extra_frame_info): Update.
9270 * mips-tdep.c (mips_init_frame_pc_first): Update.
9271 (mips_frame_chain): Update.
9272 (mips_pop_frame): Update.
9273 * mcore-tdep.c (mcore_frame_chain): Update.
9274 (mcore_pop_frame): Update.
9275 (mcore_init_extra_frame_info): Update.
9276 * arch-utils.c (init_frame_pc_default): Update.
9277 * m68k-tdep.c (isi_frame_num_args): Update.
9278 (delta68_frame_num_args): Update.
9279 (news_frame_num_args): Update.
9280 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9281 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9282 (alpha_frame_chain): Update.
9283 (alpha_pop_frame): Update.
9284 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9285 (hppa_init_extra_frame_info): Update.
9286 (hppa_frame_chain): Update.
9287 (hppa_frame_chain_valid): Update.
9288 * cris-tdep.c (cris_init_extra_frame_info): Update.
9289 * avr-tdep.c (avr_init_extra_frame_info): Update.
9290 * arm-tdep.c (arm_frame_chain_valid): Update.
9291 (arm_init_extra_frame_info): Update.
9292 (arm_pop_frame): Update.
9293 * frame.c (frame_pc_unwind): Update.
9294 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9295 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9296 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9297 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9298 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9299 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9300
9301 2003-03-10 Andrew Cagney <cagney@redhat.com>
9302
9303 * gdbarch.sh (gdbarch_unwind_pc): New method.
9304 * gdbarch.h, gdbarch.c: Regenerate.
9305 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9306 but use read_pc and FRAME_SAVED_PC as fall backs.
9307 (frame_saved_regs_pc_unwind): Delete function.
9308 (trad_frame_unwinder): Update.
9309 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9310 (struct frame_unwind): Update.
9311 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9312 (dummy_frame_unwind): Update.
9313 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9314 (sentinel_frame_unwinder): Update.
9315 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9316 (d10v_frame_unwind): Update.
9317 (d10v_unwind_pc): New function.
9318 (d10v_gdbarch_init): Set unwind_pc.
9319
9320 2003-03-10 Andrew Cagney <cagney@redhat.com>
9321
9322 * gdbarch.h: Re-generate.
9323
9324 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9325 PC.
9326 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9327 the PC register.
9328
9329 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9330
9331 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9332
9333 2003-03-08 Andrew Cagney <cagney@redhat.com>
9334
9335 * cli-out.c: Update copyright.
9336 (cli_out_data): Define typedef. Use instead of ui_out_data.
9337
9338 2003-03-08 Andrew Cagney <cagney@redhat.com>
9339
9340 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9341 the result.
9342
9343 2003-03-07 Andrew Cagney <cagney@redhat.com>
9344
9345 * gdbarch.sh: Don't generate two macro definitions when an
9346 undefined macro taking no arguments.
9347 * gdbarch.h: Regenerate.
9348
9349 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9350
9351 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9352 (x86_64_unwind_dummy_id): New functions.
9353 (x86_64_init_abi): Register these two new functions.
9354
9355 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9356
9357 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9358 (x86_64_skip_prologue): Move prologue detection to
9359 separate function.
9360 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9361
9362 2003-03-05 Andrew Cagney <cagney@redhat.com>
9363
9364 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9365 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9366 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9367 to use unwind_dummy_id when a dummy frame.
9368 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9369 predicate.
9370 * gdbarch.h, gdbarch.c: Regneerate.
9371
9372 2003-03-05 Andrew Cagney <cagney@redhat.com>
9373
9374 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9375 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9376 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9377 values.
9378
9379 2003-03-05 Andrew Cagney <cagney@redhat.com>
9380
9381 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9382 (struct d10v_unwind_cache): Delete field "frameless". Replace
9383 "next_addr" with "sp_offset". Add "r11_offset".
9384 (d10v_frame_unwind_cache): Update.
9385 (prologue_find_regs): Update. When "mv r11, sp", save the
9386 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9387 RN was saved in r11_offset.
9388
9389 2003-03-05 Andrew Cagney <cagney@redhat.com>
9390
9391 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9392 cached PC value in the next frame.
9393
9394 2003-03-05 Andrew Cagney <cagney@redhat.com>
9395
9396 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9397 "id_unwind_cache" with "id".
9398 (frame_id_unwind): Delete declaration.
9399 * frame.c (frame_id_unwind): Delete function.
9400 (get_prev_frame): Call the frame id unwind method directly. Store
9401 the returned next frame's ID value in NEXT_FRAME. Note that there
9402 is a problem with the wrong unwind ID being called with the wrong
9403 unwind cache.
9404
9405 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9406
9407 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9408
9409 2003-03-05 James Ingham <jingham@apple.com>
9410 Daniel Jacobowitz <drow@mvista.com>
9411
9412 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9413 (auto_cp_abi): New variable.
9414 (current_cp_abi, num_cp_abis): Make static.
9415 (CP_ABI_MAX): Define.
9416 (cp_abis): Turn into an array.
9417 (value_virtual_fn_field): Fix formatting.
9418 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9419 takes a pointer.
9420 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9421 (list_cp_abis, _initialize_cp_abi): New functions.
9422 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9423 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9424 switch_to_cp_abi. Update prototype for register_cp_abi.
9425 * Makefile.in (cp-abi.o): Update dependencies.
9426 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9427 instead of switch_to_cp_abi.
9428 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9429 register_cp_abi.
9430 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9431 register_cp_abi.
9432 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9433
9434 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9435
9436 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9437 * dwarf2loc.c: Include "regcache.h".
9438 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9439 register_size.
9440 * Makefile.in (dwarf2loc.o): Update dependencies.
9441
9442 2003-03-04 Theodore A. Roth <troth@openavr.org>
9443
9444 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9445 number of io registers reported by remote target is not a multiple of
9446 step.
9447
9448 2003-03-04 David Carlton <carlton@math.stanford.edu>
9449
9450 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9451 (lookup_symbol_aux_psymtabs): Update call to
9452 lookup_partial_symbol.
9453 (lookup_transparent_type, find_main_psymtab)
9454 (make_symbol_overload_list): Ditto.
9455
9456 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9457
9458 * MAINTAINERS (Write after approval): Update my email address.
9459
9460 2003-03-03 Andrew Cagney <cagney@redhat.com>
9461
9462 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9463 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9464 predicate. Replace MAX_REGISTER_RAW_SIZE.
9465 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9466 MAX_REGISTER_VIRTUAL_SIZE.
9467 * regcache.c (legacy_max_register_raw_size): New function.
9468 (legacy_max_register_virtual_size): New function.
9469 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9470 (MAX_REGISTER_RAW_SIZE): Define.
9471 (legacy_max_register_raw_size): Declare.
9472 (legacy_max_register_virtual_size): Declare.
9473 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9474 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9475 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9476 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9477 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9478 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9479 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9480 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9481 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9482 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9483 * vax-tdep.c (vax_gdbarch_init): Update.
9484 * v850-tdep.c (v850_gdbarch_init): Update.
9485 * sparc-tdep.c (sparc_gdbarch_init): Update.
9486 * sh-tdep.c (sh_gdbarch_init): Update.
9487 * s390-tdep.c (s390_gdbarch_init): Update.
9488 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9489 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9490 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9491 * mips-tdep.c (mips_gdbarch_init): Update.
9492 * mcore-tdep.c (mcore_gdbarch_init): Update.
9493 * m68k-tdep.c (m68k_gdbarch_init): Update.
9494 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9495 * ia64-tdep.c (ia64_gdbarch_init): Update.
9496 * i386-tdep.c (i386_gdbarch_init): Update.
9497 * hppa-tdep.c (hppa_gdbarch_init): Update.
9498 * h8300-tdep.c (h8300_gdbarch_init): Update.
9499 * frv-tdep.c (frv_gdbarch_init): Update.
9500 * cris-tdep.c (cris_gdbarch_init): Update.
9501 * avr-tdep.c (avr_gdbarch_init): Update.
9502 * arm-tdep.c (arm_gdbarch_init): Update.
9503 * alpha-tdep.c (alpha_gdbarch_init): Update.
9504 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9505 max_register_raw_size or max_register_virtual_size.
9506
9507 2003-03-03 David Carlton <carlton@math.stanford.edu>
9508
9509 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9510 SYMBOL_MATCHES_NAME, add comment.
9511 (SYMBOL_MATCHES_NATURAL_NAME): New.
9512 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9513 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9514 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9515 * symtab.c (lookup_partial_symbol): Use
9516 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9517 unhelpful comment.
9518 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9519 SYMBOL_MATCHES_NAME.
9520 Fix for PR c++/33.
9521
9522 2003-03-03 David Carlton <carlton@math.stanford.edu>
9523
9524 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9525 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9526 by regexp matching against SYMBOL_NATURAL_NAME.
9527
9528 2003-03-03 David Carlton <carlton@math.stanford.edu>
9529
9530 * linespec.c (find_method): Extract code into collect_methods.
9531 (collect_methods): New.
9532
9533 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9534
9535 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9536 get_frame_base.
9537
9538 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9539 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9540
9541 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9542
9543 * arch-utils.c (generic_register_byte): Fix to use the loop index
9544 and not regnum when summing the size of all registers up to regnum.
9545
9546 2003-03-01 Andrew Cagney <cagney@redhat.com>
9547
9548 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9549 FRAME_INIT_SAVED_REGS.
9550 * gdbarch.h, gdbarch.c: Regenerate.
9551 * stack.c (frame_info): Update.
9552 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9553 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9554 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9555 * ns32k-tdep.c (ns32k_pop_frame): Update.
9556 * mips-tdep.c (mips_pop_frame): Update.
9557 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9558 * ia64-tdep.c (ia64_frame_chain): Update.
9559 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9560 (ia64_frameless_function_invocation): Update.
9561 (ia64_init_extra_frame_info): Update.
9562 (ia64_pop_frame_regular): Update.
9563 * frame.h (struct frame_info): Update comment.
9564 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9565 * frame.c (frame_saved_regs_register_unwind): Update.
9566 (frame_saved_regs_register_unwind): Update.
9567 (deprecated_generic_get_saved_register): Update.
9568 * cris-tdep.c: Update comment.
9569 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9570 Rename macro.
9571 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9572 * x86-64-tdep.c (x86_64_init_abi): Update.
9573 * vax-tdep.c (vax_gdbarch_init): Update.
9574 * v850-tdep.c (v850_gdbarch_init): Update.
9575 * sparc-tdep.c (sparc_gdbarch_init): Update.
9576 * sh-tdep.c (sh_gdbarch_init): Update.
9577 * s390-tdep.c (s390_gdbarch_init): Update.
9578 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9579 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9580 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9581 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9582 * mips-tdep.c (mips_gdbarch_init): Update.
9583 * mcore-tdep.c (mcore_gdbarch_init): Update.
9584 * m68k-tdep.c (m68k_gdbarch_init): Update.
9585 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9586 * ia64-tdep.c (ia64_gdbarch_init): Update.
9587 * i386-tdep.c (i386_gdbarch_init): Update.
9588 * frv-tdep.c (frv_gdbarch_init): Update.
9589 * avr-tdep.c (avr_gdbarch_init): Update.
9590 * arm-tdep.c (arm_gdbarch_init): Update.
9591 * alpha-tdep.c (alpha_gdbarch_init): Update.
9592
9593 2003-03-01 Andrew Cagney <cagney@redhat.com>
9594
9595 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9596 option enum and switch. When no windows, set the interpreter to
9597 INTERP_CONSOLE.
9598
9599 2003-03-01 Andrew Cagney <cagney@redhat.com>
9600
9601 * main.c (captured_main): Replace magic option characters with an
9602 enum.
9603
9604 2003-03-01 Andrew Cagney <cagney@redhat.com>
9605
9606 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9607 INIT_EXTRA_FRAME_INFO.
9608 * gdbarch.h, gdbarch.c: Regenerate.
9609 * arm-tdep.c: Update comments.
9610 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9611 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9612 * frame.h, avr-tdep.c: Ditto.
9613 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9614 (create_new_frame, legacy_get_prev_frame): Ditto.
9615 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9616 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9617 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9618 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9619 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9620 * v850-tdep.c (v850_gdbarch_init): Ditto.
9621 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9622 * sh-tdep.c (sh_gdbarch_init): Ditto.
9623 * s390-tdep.c (s390_gdbarch_init): Ditto.
9624 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9625 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9626 * mips-tdep.c (mips_gdbarch_init): Ditto.
9627 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9628 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9629 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9630 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9631 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9632 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9633 * frv-tdep.c (frv_gdbarch_init): Ditto.
9634 * cris-tdep.c (cris_gdbarch_init): Ditto.
9635 * avr-tdep.c (avr_gdbarch_init): Ditto.
9636 * arm-tdep.c (arm_gdbarch_init): Ditto.
9637 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9638 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9639
9640 2003-03-01 Andrew Cagney <cagney@redhat.com>
9641
9642 * gdbarch.sh (register_type): New function with predicate.
9643 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9644 * gdbarch.h, gdbarch.c: Re-generate.
9645 * arch-utils.c (generic_register_byte): Use generic_register_size.
9646 (generic_register_size): When available, use
9647 gdbarch_register_type.
9648 * regcache.c (init_regcache_descr): When available, initialize the
9649 register type array using gdbarch_register_type. If the
9650 architecture supplies gdbarch_register_type, do not use the legacy
9651 regcache layout.
9652 * d10v-tdep.c (d10v_register_type): Replace
9653 d10v_register_virtual_type.
9654 (d10v_gdbarch_init): Set register_type instead of
9655 register_virtual_type.
9656
9657 2003-03-01 Andrew Cagney <cagney@redhat.com>
9658
9659 * Makefile.in (ax-gdb.o): Update dependencies.
9660 * ax-gdb.c: Include "regcache.h".
9661 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9662 * findvar.c (value_of_register): Ditto.
9663 * infcmd.c (default_print_registers_info): Ditto.
9664
9665 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9666
9667 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9668 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9669
9670 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9671
9672 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9673 of STREQ.
9674
9675 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9676
9677 * Makefile.in (dwarf2loc.o): Update dependencies.
9678 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9679 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9680 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9681 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9682 (locexpr_tracepoint_var_ref): New function.
9683 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9684
9685 2003-02-28 Andrew Cagney <cagney@redhat.com>
9686
9687 * regcache.c (register_size): New function.
9688 * regcache.h (register_size): Declare
9689 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9690 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9691
9692 2003-02-28 David Carlton <carlton@math.stanford.edu>
9693
9694 * linespec.c (decode_compound): Extract code into find_method.
9695 (find_method): New.
9696
9697 2003-02-28 J. Brobecker <brobecker@gnat.com>
9698
9699 * Makefile.in: Add rules to build and link in observer.o.
9700
9701 2003-02-27 J. Brobecker <brobecker@gnat.com>
9702
9703 * observer.c: Minor comments edits.
9704
9705 2003-02-27 J. Brobecker <brobecker@gnat.com>
9706
9707 * observer.h, observer.c: New file.
9708
9709 2003-02-27 Andrew Cagney <cagney@redhat.com>
9710
9711 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9712
9713 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9714
9715 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9716 (M6812_OP_STS_EXT): Likewise.
9717 (m6811_prologue): Use the above to recognize prologue.
9718 (m6812_prologue): Likewise.
9719
9720 2003-02-27 David Carlton <carlton@math.stanford.edu>
9721
9722 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9723 SYMBOL_PRINT_NAME.
9724 (compare_psymbols): Ditto.
9725 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9726
9727 2003-02-27 Michael Snyder <msnyder@redhat.com>
9728
9729 * f-lang.c (build_fortran_types): New function.
9730 (_initialize_f_language): Gdbarch-register built-in fortran types.
9731 * doublest.c (extract_floating): Fix warning text.
9732
9733 2003-02-27 Andrew Cagney <cagney@redhat.com>
9734
9735 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9736 predicate. Replaces PUSH_DUMMY_FRAME.
9737 * gdbarch.h, gdbarch.c: Regnerate.
9738 * valops.c (hand_function_call): Update. Call
9739 generic_push_dummy_frame directly.
9740 * vax-tdep.c (vax_gdbarch_init): Update.
9741 * sparc-tdep.c (sparc_gdbarch_init): Update.
9742 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9743 * m68k-tdep.c (m68k_gdbarch_init): Update.
9744 * hppa-tdep.c (hppa_gdbarch_init): Update.
9745 * alpha-tdep.c (alpha_gdbarch_init): Update.
9746 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9747 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9748 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9749 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9750 push_dummy_frame to generic_push_dummy_frame.
9751 * v850-tdep.c (v850_gdbarch_init): Ditto.
9752 * sh-tdep.c (sh_gdbarch_init): Ditto.
9753 * s390-tdep.c (s390_gdbarch_init): Ditto.
9754 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9755 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9756 * mips-tdep.c (mips_gdbarch_init): Ditto.
9757 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9758 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9759 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9760 * i386-tdep.c (i386_gdbarch_init): Ditto.
9761 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9762 * frv-tdep.c (frv_gdbarch_init): Ditto.
9763 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9764 * cris-tdep.c (cris_gdbarch_init): Ditto.
9765 * avr-tdep.c (avr_gdbarch_init): Ditto.
9766 * arm-tdep.c (arm_gdbarch_init): Ditto.
9767
9768 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9769
9770 * mips-tdep.c (show_mips_abi): New function.
9771 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9772 command ``show mips abi''.
9773
9774 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9775
9776 From Elena Zannoni <ezannoni@redhat.com>
9777 * dbxread.c (process_one_symbol): Only record line 0 if one or
9778 more sline entries have been seen for the function.
9779
9780 2003-02-26 Michael Chastain <mec@shout.net>
9781
9782 * configure: Regenerate with autoconf 000227.
9783
9784 2003-02-26 Michael Chastain <mec@shout.net>
9785
9786 Close PR build/660.
9787 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9788 for old libc5/glibc.
9789 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9790
9791 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9792
9793 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9794 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9795
9796 2003-02-26 Michael Chastain <mec@shout.net>
9797
9798 * configure.in: New variable HAVE_UINTPTR_T.
9799 * configure, config.in: Regenerated.
9800
9801 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9802
9803 Fix PR build/1097.
9804 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9805
9806 2003-02-25 Andrew Cagney <cagney@redhat.com>
9807
9808 * frame.c (get_prev_frame): Add comment on check for
9809 inside_entry_func. Only check for inside_entry_file when not a
9810 dummy and not a sentinel. Check that the new frame is not inner
9811 to the old frame.
9812
9813 2003-02-25 Andrew Cagney <cagney@redhat.com>
9814
9815 * frame.c (frame_debug): New variable.
9816 (_initialize_frame): Add "set/show debug frame" command.
9817 (get_prev_frame): When frame_debug, print reason why unwind
9818 failed.
9819
9820 2003-02-25 Michael Chastain <mec@shout.net>
9821
9822 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9823 to avoid uintptr_t definition problems.
9824
9825 2003-02-25 David Carlton <carlton@math.stanford.edu>
9826
9827 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9828 (SYMBOL_LINKAGE_NAME): Ditto.
9829 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9830 SYMBOL_LINKAGE_NAME.
9831 (struct general_symbol_info): Expand comment.
9832 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9833 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9834 (SYMBOL_MATCHES_REGEXP): Ditto.
9835 * symtab.c (symbol_natural_name): New function.
9836 * objfiles.h: Replace all uses of SYMBOL_NAME by
9837 DEPRECATED_SYMBOL_NAME.
9838 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9839 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9840 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9841 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9842 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9843 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9844 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9845 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9846 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9847 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9848 * ada-exp.y: Ditto.
9849 * ada-exp.y: Update copyright.
9850 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9851 * cp-valprint.c: Ditto.
9852
9853 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9854
9855 * infptrace.c (detach): Do not flag error if ptrace detach fails
9856 and errno is set to ESRCH.
9857
9858 2003-02-24 Andrew Cagney <cagney@redhat.com>
9859
9860 * infptrace.c (udot_info): Change type of udot_off to long. Use
9861 paddr when printing udot_off's value.
9862
9863 2003-02-24 David Carlton <carlton@math.stanford.edu>
9864
9865 * symtab.c (make_symbol_overload_list): Only read in partial
9866 symtabs containing a matching partial symbol.
9867
9868 2003-02-24 David Carlton <carlton@math.stanford.edu>
9869
9870 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9871 do the comparison, not strcmp.
9872 * symfile.c (compare_psymbols): Ditto.
9873 * defs.h: Declare strcmp_iw_ordered.
9874 * utils.c (strcmp_iw_ordered): New function.
9875
9876 2003-02-24 Jim Blandy <jimb@redhat.com>
9877
9878 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9879 support, shared libs): Remove my name from here, to better reflect
9880 reality.
9881
9882 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9883
9884 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9885 (target_ops): Add to_have_continuable_watchpoint.
9886 * target.c (update_current_target): Add INHERIT line for
9887 to_have_continuable_watchpoint.
9888 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9889 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9890 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9891 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9892
9893 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9894
9895 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9896 maintainership.
9897
9898 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9899
9900 * solib.c (solib_open): Call target defined search function after
9901 failing with solib-search-path.
9902 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9903 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9904
9905 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9906
9907 * MAINTAINERS: Add myself to Write After section.
9908
9909 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9910
9911 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9912
9913 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9914
9915 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9916 (m68hc11_add_reggroups): New function.
9917 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9918 (m68hc11_gdbarch_init): Install the reggroups.
9919 (_initialize_m68hc11_tdep): Initialize them.
9920
9921 2003-02-21 James E Wilson <wilson@tuliptree.org>
9922
9923 * MAINTAINERS: Update my email address.
9924
9925 2003-02-21 David Carlton <carlton@math.stanford.edu>
9926
9927 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9928
9929 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9930
9931 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9932 * symtab.h: Add opaque declarations of struct axs_value and
9933 struct agent_expr.
9934 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9935 (struct location_funcs): New type.
9936 (struct symbol): Add "loc" to aux_value.
9937 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9938 * dwarf2read.c: Include "dwarf2expr.h".
9939 (dwarf2_symbol_mark_computed): New function.
9940 (read_func_scope): Use it.
9941 (var_decode_location): New function.
9942 (new_symbol): Use it.
9943 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9944
9945 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9946 (dwarf2expr_h, dwarf2loc_h): New variables.
9947 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9948 (dwarf2expr.o, dwarf2loc.o): New rules.
9949 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9950 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9951 LOC_COMPUTED_ARG.
9952 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9953 * m2-exp.y (yylex): Likewise.
9954 * printcmd.c (address_info, print_frame_args): Likewise.
9955 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9956 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9957 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9958 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9959 * symtab.c (lookup_block_symbol): Likewise.
9960
9961 2003-02-20 Adam Fedor <fedor@gnu.org>
9962
9963 * symtab.h: Remove objc_specific struct
9964 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9965 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9966 Have language_objc use cplus_specific struct.
9967
9968 2003-02-20 Tom Tromey <tromey@redhat.com>
9969
9970 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9971 TYPE_NAME, when printing a String value. PR java/1075.
9972
9973 2003-02-20 Adam Fedor <fedor@gnu.org>
9974
9975 * objc-lang.h (find_methods): Remove declaration.
9976 * objc-lang.c (find_methods): Make static.
9977
9978 2003-02-20 Christopher Faylor <cgf@redhat.com>
9979
9980 * win32-nat.c (get_image_name): Check return value from
9981 ReadProcessMemory.
9982 (child_xfer_memory): Ditto.
9983
9984 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9985
9986 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9987 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9988 '${exec_prefix}' (in addition to the expansion thereof) as
9989 relocatable.
9990 * configure: Rebuilt.
9991
9992 2003-02-20 David Carlton <carlton@math.stanford.edu>
9993
9994 * symtab.c (search_symbols): Revert the search_symbols part of my
9995 2002-12-23 patch. Add comment.
9996
9997 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9998
9999 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10000 * dbxread.c (elfstab_build_psymtabs): Don't call
10001 install_minimal_symbols.
10002 (stabsect_build_psymtabs): Likewise.
10003 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10004 earlier.
10005 * somread.c (som_symfile_read): Call install_minimal_symbols
10006 and do_cleanups earlier.
10007 * nlmread.c (nlm_symfile_read): Likewise.
10008 * mdebugread.c (elfmdebug_build_psymtabs): Call
10009 install_minimal_symbols and make appropriate cleanups.
10010
10011 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10012
10013 * solib.c (reload_shared_libraries): New function.
10014 (_initialize_solib): Add callbacks for ``set solib-search-path''
10015 and ``set solib-absolute-prefix''.
10016
10017 2003-02-20 David Carlton <carlton@math.stanford.edu>
10018
10019 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10020 expand comment.
10021 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10022 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10023 * ada-typeprint.c (ada_typedef_print): Ditto.
10024 * ax-gdb.c (gen_var_ref): Ditto.
10025 * breakpoint.c (print_one_breakpoint): Ditto.
10026 * buildsym.c (finish_block): Ditto.
10027 * c-valprint.c (c_val_print): Ditto.
10028 * expprint.c (print_subexp): Ditto.
10029 * findvar.c (locate_var_value): Ditto.
10030 * infcmd.c (jump_command): Ditto.
10031 * linespec.c (decode_line_2, decode_compound): Ditto.
10032 * maint.c (maintenance_translate_address): Ditto.
10033 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10034 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10035 Ditto.
10036 * p-valprint.c (pascal_val_print): Ditto.
10037 * stabsread.c (define_symbol): Ditto.
10038 * stack.c (print_frame, frame_info, print_block_frame_locals)
10039 (print_frame_arg_vars, return_command): Ditto.
10040 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10041 * symmisc.c (print_symbol): Ditto.
10042 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10043 (compare_search_syms, print_symbol_info, print_msymbol_info)
10044 (rbreak_command): Ditto.
10045 * tracepoint.c (tracepoints_info): Ditto.
10046 * typeprint.c (typedef_print): Ditto.
10047 * valops.c (value_of_variable, hand_function_call): Ditto.
10048 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10049 * ada-typeprint.c: Update Copyright.
10050 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10051 * tracepoint.c, cli/cli-cmds.c: Ditto.
10052
10053 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10054
10055 * frame.c (generic_unwind_get_saved_register): Make non-static.
10056 * frame.h (generic_unwind_get_saved_register): Declare.
10057 * mips-tdep.c (read_next_frame_reg): Fetch register from
10058 current regcache when frame is NULL.
10059 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10060 that must be NULL.
10061 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10062 instead of frame_register_unwind().
10063
10064 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10065
10066 * remote-sim.c (gdbsim_insert_breakpoint)
10067 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10068 code.
10069
10070 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10071
10072 * remote.c (_initialize_remote): Add commands "set/show remote
10073 hardware-watchpoint-limit" and "set/show remote
10074 hardware-breakpoint-limit".
10075 (remote_hw_watchpoint_limit): Initialize to -1.
10076 (remote_hw_breakpoint_limit): Ditto.
10077 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10078
10079 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10080
10081 * coff-pe-read.c: New file - support reading of minimal symbols from a
10082 portable executable using the export table.
10083 * coff-pe-read.h: New file.
10084 * coffread.c: Include coff-pe-read.h.
10085 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10086 debugging symbols found.
10087 * Makefile.in (SFILES): Add coff-pe-read.o.
10088 (coff_pe_read_h): Define.
10089 (COMMON_OBS): Add coff-pe-read.o.
10090 (coffread.o): Add coff_pe_read_h dependency.
10091 (coff-pe-read.o): New target.
10092
10093 2003-02-19 David Carlton <carlton@math.stanford.edu>
10094
10095 * Makefile.in (SFILES): Add block.c.
10096 (block_h): New.
10097 (COMMON_OBS): Add block.o.
10098 (block.o): New.
10099 (x86-64-tdep.o): Add $(block_h).
10100 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10101 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10102 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10103 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10104 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10105 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10106 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10107 * value.h: Add opaque declaration for struct block.
10108 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10109 * ada-lang.h: Ditto.
10110 * x86-64-tdep.c: #include "block.h"
10111 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10112 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10113 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10114 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10115 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10116 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10117 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10118 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10119 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10120 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10121 * symtab.c (block_function): Ditto.
10122 (contained_in): Ditto.
10123 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10124 block.h. Add opaque declaration for struct block.
10125 * symtab.h: Move block_function and contained_in declarations to
10126 block.h. Add opaque declarations for struct block, struct
10127 blockvector.
10128 (struct block): Move to block.h.
10129 (struct blockvector): Ditto.
10130 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10131 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10132 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10133 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10134 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10135 Ditto.
10136 * block.c: New file.
10137 * block.h: New file.
10138
10139 2003-02-19 Theodore A. Roth <troth@openavr.org>
10140
10141 * avr-tdep.c (avr_extract_return_value): Remove function.
10142 (avr_store_return_value): Remove function.
10143 (avr_extract_struct_value_address): Remove function.
10144 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10145
10146 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10147
10148 * rs6000-tdep.c: Include "gdb_assert.h".
10149 (registers_e500): Add "acc" and "spefscr".
10150 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10151 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10152 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10153 really is "r0".
10154 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10155
10156 2003-02-18 Keith Seitz <keiths@redhat.com>
10157
10158 * Makefile.in: Add gdbtk-interps.c.
10159
10160 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10161
10162 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10163 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10164
10165 2003-02-18 Andrew Cagney <cagney@redhat.com>
10166
10167 * symtab.h (struct objfile): Add opaque declaration.
10168
10169 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10170
10171 From Jim Ingham <jingham@apple.com>:
10172 * dbxread.c (process_one_symbol): Use last_function_start rather
10173 than function_start_offset to find the real beginning of the
10174 current function. The latter is just the text section offset on
10175 some systems, the former is always the real function start.
10176
10177 2003-02-17 Andrew Cagney <cagney@redhat.com>
10178
10179 * configure.in: Revert ${target} != ${host}.
10180
10181 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10182
10183 * configure.in (Makefile): Use the test ${target} != ${host},
10184 instead of the absence of the "nm.h" file, to determine of the
10185 configuration non-native.
10186 * configure: Regenerate.
10187
10188 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10189
10190 From Brian Ford <ford@vss.fsi.com>
10191
10192 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10193 conditionalize tui_active test.
10194 (lookup_cmd_1): Ditto.
10195
10196 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10197
10198 * configure.in: Add check for _etext.
10199 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10200 available.
10201 * config.in, configure: regenerated.
10202
10203 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10204
10205 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10206
10207 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10208
10209 * main.c (tui_version): Delete variable.
10210 (captured_main): When --tui, set interpreter_p to "tui" instead of
10211 enabling tui_version.
10212 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10213 tui_version.
10214 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10215 * cli/cli-cmds.c (disassemble_command): Ditto.
10216 * defs.h (tui_version): Delete declaration.
10217 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10218 (tui-interp.o): Add rules.
10219 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10220
10221 2003-02-14 Christopher Faylor <cgf@redhat.com>
10222
10223 * win32-nat.c (register_loaded_dll): Correctly set address range for
10224 just-loaded dll.
10225
10226 2003-02-12 Jason Molenda (jmolenda@apple.com)
10227
10228 * symmisc.c (print_objfile_statistics): Include information about
10229 the number of psymtabs and symtabs in each object file.
10230
10231 2003-02-13 Keith R Seitz <keiths@redhat.com>
10232
10233 * main.h (struct captured_main_args): Add interpreter_p.
10234 * main.c (captured_main): Initialize interpreter_p from context.
10235 * gdb.c (main): Set interpreter_p argument.
10236 * Makefile.in (gdb.o): Add dependency for interps.h.
10237
10238 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10239
10240 * event-top.c (cli_command_loop): Delete declaration.
10241 (_initialize_event_loop): Delete function setting event_loop_hook.
10242 * event-top.h (cli_command_loop): Declare. Update copyright.
10243 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10244 * interps.c (current_interp_command_loop): When event_loop_p, call
10245 cli_command_loop.
10246
10247 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10248
10249 * interps.h (interp_command_loop_ftype): Change return type to
10250 void.
10251
10252 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10253
10254 * x86-64-tdep.c (x86_64_extract_return_value)
10255 (x86_64_store_return_value): Use regcache instead of regbuf.
10256 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10257 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10258
10259 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10260
10261 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10262 * aclocal.m4: Regenerate.
10263 * configure: Regenerate.
10264
10265 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10266 TCL_LD_SEARCH_FLAGS.
10267
10268 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10269
10270 * dwarf2cfi.c: Reindented.
10271
10272 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10273
10274 * interps.c (clear_interpreter_hooks): Convert function definition
10275 to ISO C.
10276
10277 2003-02-07 David Carlton <carlton@math.stanford.edu>
10278
10279 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10280
10281 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10282
10283 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10284 (struct type): ...to here.
10285 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10286 field.
10287 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10288 (replace_type): Set length on all type variants for a given type.
10289
10290 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10291
10292 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10293 <sys/stat.h>.
10294 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10295
10296 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10297
10298 * Makefile.in (symm-nat.o): Update dependencies.
10299 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10300 (lynx-nat.o, ia64-linux-nat.): Ditto.
10301 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10302 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10303 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10304
10305 * Makefile.in (inflow_h): Define.
10306 (procfs.o, inflow.o, procfs.o): Update dependencies.
10307 * inftarg.c (child_stop): Delete extern declaration of
10308 inferior_process_group. Include "inflow.h".
10309 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10310 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10311 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10312 (our_process_group, inferior_process_group): Extern declarations.
10313
10314 * procfs.c: Include "gdb_assert.h".
10315
10316 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10317 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10318 * jv-typeprint.c (java_type_print_base): Ditto.
10319 * typeprint.c (typedef_print): Eliminate STREQ.
10320 * cli/cli-script.c (define_command, define_command): Ditto.
10321 * main.c (captured_main): Ditto.
10322 * values.c (lookup_internalvar): Ditto.
10323 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10324 within `if' conditional.
10325 * linespec.c (decode_line_2): Ditto.
10326 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10327 (bfd_openw_with_cleanup): Ditto.
10328
10329 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10330
10331 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10332 legacy_extract_return_value and store_return_value to
10333 legacy_return_value.
10334
10335 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10336
10337 * win32-nat.c (get_relocated_section_addrs): New function. Find
10338 section load addresses for symbol handling in relocated DLLs.
10339 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10340
10341 2003-02-05 Fred Fish <fnf@intrinsity.com>
10342
10343 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10344 '=' and '!='.
10345 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10346 with '&' and '=='.
10347 (angel_RDI_info): Ditto.
10348 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10349 with '&' and '!='.
10350 (threads_continue_all_with_signals): Ditto.
10351
10352 2003-02-05 Jim Ingham <jingham@apple.com>
10353 Keith Seitz <keiths@redhat.com>
10354 Elena Zannoni <ezannoni@redhat.com>
10355 Andrew Cagney <ac131313@redhat.com>
10356
10357 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10358 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10359 (SUBDIR_MI_OBS): Add "mi-interp.o".
10360 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10361 (SFILES): Add "interps.c".
10362 (COMMON_OBS): Add "interps.o".
10363 (interps_h, mi_main_h): Define.
10364 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10365 (mi-main.o, main.o, event-top.o): Update dependencies.
10366 * cli/cli-interp.c: New file.
10367 * interps.h, interps.c: New files.
10368 * top.c: (gdb_init): Don't install the default interpreter, handed
10369 by captured_main.
10370 * main.c: Include "interps.h".
10371 (interpreter_p): Note that it should malloc'ed.
10372 (captured_command_loop): Call current_interp_command_loop.
10373 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10374 xfree and xstrdup when updating interpreter_p. Install the
10375 default interpreter. Add hack to stop mi1's copyright notice
10376 being encoded.
10377 * event-top.h (gdb_setup_readline): Declare.
10378 (gdb_disable_readline): Declare.
10379 * event-top.c: Include "interps.h".
10380 (display_gdb_prompt): Call current_interp_display_prompt_p.
10381 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10382 gdb_stdlog, and gdb_stdtarg.
10383 (_initialize_event_loop): Don't call gdb_setup_readline.
10384 * cli-out.c (cli_out_set_stream): New function.
10385 * cli-out.h (cli_out_set_stream): Declare.
10386
10387 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10388
10389 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10390 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10391 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10392 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10393 config/i386/i386v42mp.mt: Removed.
10394
10395 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10396
10397 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10398 GDB_OSABI_SOLARIS.
10399
10400 2003-02-05 Michael Chastain <mec@shout.net>
10401
10402 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10403 2.12.1 and earlier versions.
10404
10405 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10406
10407 Remove orphaned hosts, targets and files.
10408 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10409 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10410 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10411 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10412 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10413 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10414 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10415 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10416 * config/sparc/tm-sp64sim.h: Delete.
10417 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10418 hosts.
10419 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10420 mips*-dec-mach3* targets.
10421
10422 2003-02-04 Michael Chastain <mec@shout.net>
10423
10424 * NEWS: Fix typo: sepcifying -> specifying.
10425
10426 2003-02-04 Michael Chastain <mec@shout.net>
10427
10428 * dwarfread.c: Add documentation on the state of dwarf-1,
10429 looking towards obsoletion.
10430
10431 2003-02-03 Michael Chastain <mec@shout.net>
10432
10433 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10434 gdb/testsuite/gdb.c++/pr-1023.exp.
10435
10436 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10437
10438 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10439 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10440
10441 * utils.c (init_page_info): Delete reference to MPW in comments.
10442 * main.c (captured_main): Delete #ifdef MPW.
10443
10444 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10445
10446 * NEWS: Note that the m32r-*-elf* is obsolete.
10447 * monitor.c (monitor_expect): Obsolete reference to m32r.
10448 * configure.tgt: Mark m32r-*-elf* as obsolete.
10449 * MAINTAINERS: Mark m32k as obsolete.
10450 * m32r-rom.c: Obsolete file.
10451 * config/m32r/m32r.mt: Obsolete file.
10452 * config/m32r/tm-m32r.h: Obsolete file.
10453 * m32r-stub.c: Obsolete file.
10454 * m32r-tdep.c: Obsolete file.
10455
10456 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10457
10458 * NEWS: Mention that the z8k-zilog-none is obsolete.
10459 * MAINTAINERS: Mark z8k as obsolete.
10460 * configure.tgt: Obsolete the z8k-*-coff* target.
10461 * config/z8k/z8k.mt: Obsolete file.
10462 * config/z8k/tm-z8k.h: Obsolete file.
10463 * z8k-tdep.c: Obsolete file.
10464
10465 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10466
10467 * NEWS: Mention that the mn10200-elf is obsolete.
10468 * configure.tgt: Obsolete mn10200-*-* target.
10469 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10470 mention that the mn10200 is obsolete.
10471 * breakpoint.h: Ditto.
10472 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10473 * config/mn10200/mn10200.mt: Obsolete file.
10474 * config/mn10200/tm-mn10200.h: Obsolete file.
10475 * mn10200-tdep.c: Obsolete file.
10476
10477 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10478
10479 * MAINTAINERS: Mark h8500 as obsolete.
10480 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10481 * findvar.c (value_from_register): Ditto.
10482 * h8500-tdep.c: Mark file as obsolete.
10483 * config/h8500/h8500.mt: Ditto.
10484 * config/h8500/tm-h8500.h: Ditto.
10485 * NEWS: Mention that h8500 is obsolete.
10486
10487 2003-02-04 David Carlton <carlton@math.stanford.edu>
10488
10489 * objfiles.c (allocate_objfile): Always set name. Add comment at
10490 start of function.
10491 * jv-lang.c (get_dynamics_objfile): Add comment.
10492
10493 2003-02-04 David Carlton <carlton@math.stanford.edu>
10494
10495 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10496 * printcmd.c (build_address_symbolic): Replace uses of
10497 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10498 SYMBOL_NAME, and asm_demangle.
10499 Update copyright.
10500
10501 2003-02-04 David Carlton <carlton@math.stanford.edu>
10502
10503 * linespec.c (decode_compound): Extract code into
10504 lookup_prefix_sym.
10505 (lookup_prefix_sym): New function.
10506
10507 2003-02-04 David Carlton <carlton@math.stanford.edu>
10508
10509 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10510 FLOAT_COERCION_BADNESS.
10511 * gdbtypes.c (rank_one_type): Replace all uses of
10512 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10513
10514 2003-02-04 Jim Blandy <jimb@redhat.com>
10515
10516 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10517 section, let dwarf_macinfo_section point to it, not
10518 dwarf_loc_section.
10519
10520 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10521
10522 Pointed out by Anton Blanchard <anton@samba.org>.
10523 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10524 (ppc_linux_at_sigtramp_return_path): Use it.
10525
10526 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10527
10528 * defs.h (streq): Add prototype.
10529 * utils.c (streq): New function.
10530
10531 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10532 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10533 * mdebugread.c (new_symbol): Likewise.
10534 * stabsread.c (define_symbol): Likewise.
10535 * coffread.c (process_coff_symbol): Likewise.
10536 * dwarfread.c (new_symbol): Likewise.
10537
10538 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10539 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10540 here.
10541 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10542 SYMBOL_INIT_DEMANGLED_NAME.
10543 * objfiles.c: Include "hashtab.h".
10544 (allocate_objfile): Call htab_set_functions_ex for the
10545 demangled_names_hash.
10546 (free_objfile): Call htab_delete for the demangled_names_hash.
10547 * objfiles.h (struct htab): Add declaration.
10548 (struct objfile): Add demangled_names_hash.
10549 * symfile.c: Include "hashtab.h".
10550 (reread_symbols): Call htab_delete for the demangled_names_hash.
10551 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10552 SYMBOL_NAME in the bcache.
10553 * symtab.c: Include "hashtab.h". Update comments.
10554 (create_demangled_names_hash, symbol_set_names): New functions.
10555 (symbol_find_demangled_name): New function, broken out from
10556 symbol_init_demangled_names.
10557 (symbol_init_demangled_names): Use it.
10558 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10559 (SYMBOL_SET_NAMES): New macro.
10560 (symbol_set_names): Add prototype.
10561
10562 2003-02-03 Jim Blandy <jimb@redhat.com>
10563
10564 Use a single, consistent representation for an empty minimal
10565 symbol table in an objfile.
10566 * objfiles.c (terminate_minimal_symbol_table): New function.
10567 (allocate_objfile): Call it.
10568 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10569 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10570 non-NULL.
10571 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10572 objfile has minimal symbols, compare minimal_symbol_count to zero,
10573 instead of comparing msymbols with NULL.
10574 * objfiles.c (have_minimal_symbols): Same.
10575 * solib-sunos.c (solib_add_common_symbols): Call
10576 terminate_minimal_symbol_table.
10577 * symfile.c (reread_symbols): Same.
10578
10579 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10580
10581 * s390-tdep.c (s390_address_class_type_flags)
10582 (s390_address_class_type_flags_to_name)
10583 (s390_address_class_name_to_type_flags): New functions.
10584 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10585 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10586
10587 2003-02-03 Michael Snyder <msnyder@redhat.com>
10588
10589 * arm-tdep.c: Fix spell-o in comment.
10590
10591 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10592
10593 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10594 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10595 error messages to contain BFD filename.
10596
10597 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10598
10599 Fix PR gdb/742 gdb/743 gdb/877
10600 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10601 (do_mixed_source_and_assembly): Use
10602 make_cleanup_ui_out_tuple_begin_end and
10603 make_cleanup_ui_out_tuple_begin_end.
10604 (do_mixed_source_and_assembly): Ditto.
10605 * thread.c (do_captured_list_thread_ids): Ditto.
10606 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10607 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10608 ui_out_tuple_end): Delete prototypes.
10609 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10610 ui_out_list_end, ui_out_tuple_end): Delete.
10611
10612 From Kevin Buettner <kevinb@redhat.com>:
10613 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10614 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10615 (do_cleanup_table_end): New functions.
10616 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10617 Use cleanups to invoke_ui_out_tuple_end().
10618 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10619 * cli/cli-setshow.c (cmd_show_list): Use
10620 make_cleanup_ui_out_tuple_begin_end.
10621
10622 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10623
10624 * frame.c (frame_unwind_register): New function.
10625 (frame_unwind_unsigned_register): Use.
10626 (frame_unwind_signed_register): Use.
10627 (frame_read_register): New function.
10628 * frame.h (frame_unwind_register): Declare.
10629 (frame_read_register): Declare.
10630
10631 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10632 and frame_unwind_register instead of read_memory, write_register
10633 and deprecated_write_register_bytes.
10634
10635 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10636
10637 * frame.h: Note that namelen can be negative.
10638 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10639 NAME's length.
10640
10641 * NEWS: Mention that the d10v's `regs' command is deprecated.
10642 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10643 (d10v_print_registers_info): New function.
10644 (show_regs): Call d10v_print_registers_info.
10645 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10646
10647 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10648
10649 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10650 lost in the previous patch.
10651
10652 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10653
10654 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10655 * stack.c (print_frame_info_base): Output complete FRAME tuple
10656 for synthesized frames.
10657
10658 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10659
10660 * mips-nat.c (zerobuf): Delete.
10661 (fetch_inferior_registers): Alloc local zerobuf.
10662 (fetch_core_registers): Alloc local zerobuf.
10663 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10664 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10665 * thread-db.c (thread_db_store_registers): Ditto.
10666 * sh-tdep.c (sh_do_register): Ditto.
10667 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10668 * remote-sim.c (gdbsim_store_register): Ditto.
10669 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10670 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10671 * monitor.c (monitor_supply_register): Ditto.
10672 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10673 * mips-nat.c (fetch_inferior_registers): Ditto.
10674 * m68klinux-nat.c (fetch_register): Ditto.
10675 * lynx-nat.c (fetch_inferior_registers): Ditto.
10676 (fetch_inferior_registers): Ditto.
10677 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10678 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10679 (hpux_thread_store_registers): Ditto.
10680 * hppah-nat.c (fetch_register): Ditto.
10681 * hppab-nat.c (fetch_register): Ditto.
10682 * hppa-tdep.c (pa_register_look_aside): Ditto.
10683 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10684 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10685
10686 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10687
10688 * gdbarch.sh: Explictly specify all method levels. When a
10689 variable with an empty level, provide a non-multi-arch default.
10690 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10691 * gdbarch.h: Re-generate.
10692 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10693 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10694
10695 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10696
10697 * defs.h (host_pointer_to_address): Delete declaration.
10698 (address_to_host_pointer): Delete declaration.
10699 * utils.c (host_pointer_to_address): Delete function.
10700 (address_to_host_pointer): Delete function.
10701 * procfs.c (procfs_address_to_host_pointer): New function.
10702 * procfs.c (proc_set_watchpoint): Use.
10703 (procfs_can_use_hw_breakpoint): Update comments.
10704 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10705 (som_solib_add): Use.
10706 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10707 * hppa-tdep.c (unwind_command): Use.
10708
10709 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10710
10711 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10712 strlen d_name.
10713
10714 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10715 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10716 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10717 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10718 (define_symbol): Update.
10719 * symfile.c (generic_load): Remove references to nindy.
10720 * symtab.c: Remove references to nindy.
10721
10722 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10723
10724 * infcmd.c (print_float_info): Delete code conditional on
10725 FLOAT_INFO.
10726 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10727 * config/m68k/nm-apollo68b.h: Ditto.
10728 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10729 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10730 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10731
10732 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10733
10734 * config/i386/tm-i386os9k.h: Removed.
10735
10736 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10737 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10738 they're identical to i[3456]86-*-sysv* now.
10739 * config/i386/i386v32.mh: Removed.
10740 * config/i386/xm-i386v32.h: Removed.
10741 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10742
10743 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10744
10745 * config/i386/i386dgux.mh: Removed.
10746 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10747
10748 * configure.in: Fix typo.
10749 * configure: Regenerated.
10750
10751 2003-01-31 David Carlton <carlton@math.stanford.edu>
10752
10753 * dwarf2read.c (dwarf2_locate_sections): Set
10754 dwarf_ranges_section.
10755
10756 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10757
10758 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10759 * utils.c: Update comments documenting legitimate uses of PTR.
10760
10761 * utils.c: Re-indent.
10762
10763 * config/djgpp/fnchange.lst: Delete nindy files.
10764 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10765 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10766 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10767 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10768 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10769 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10770 * Makefile.in (init.c): Remove nindy references.
10771 (saber_gdb): Delete rule.
10772 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10773 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10774 and a68v-nat.c.
10775 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10776 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10777 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10778 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10779 nindy-share/stop.h.
10780 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10781 * saber.suppress: Delete file.
10782
10783 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10784
10785 * dbxread.c (stabs_data): New static variable.
10786 (fill_symbuf): Support an in-memory buffer for stabs data.
10787 (stabs_seek): New function.
10788 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10789 (read_ofile_symtab): Use stabs_seek.
10790 (elfstab_build_psymtabs): Take an asection* instead of
10791 an offset and size. Relocate the stabs data if necessary.
10792 Save the section* for dbx_psymtab_to_symtab.
10793 * dwarf2read.c: Add section variables for each debug section.
10794 (dwarf2_locate_sections): Fill them in.
10795 (dwarf2_read_section): Take an asection* argument.
10796 Relocate the section contents if necessary.
10797 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10798 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10799 it to dwarf2_read_section.
10800 (dwarf2_build_frame_info): Update callers.
10801 * elfread.c (elf_symfile_read): Update call to
10802 elfstab_build_psymtabs.
10803 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10804 (DBX_STAB_SECTION): New macro.
10805 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10806 * symfile.c (symfile_dummy_outputs): New function.
10807 (symfile_relocate_debug_section): New function.
10808 * symfile.h (symfile_relocate_debug_section): Add prototype.
10809
10810 2003-01-31 Richard Henderson <rth@redhat.com>
10811
10812 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10813 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10814 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10815 * alpha-tdep.c (alpha_register_name): Add "unique".
10816 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10817 (ALPHA_UNIQUE_REGNUM): New.
10818 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10819
10820 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10821
10822 * README: Remove reference to Ericsson 1800 monitor.
10823 * Makefile.in (remote-es.o): Delete rule.
10824 (ALLDEPFILES): Delete remote-es.c.
10825 * remote-es.c: Delete file.
10826 * config/m68k/es1800.mt: Delete file.
10827 * config/djgpp/fnchange.lst: Update.
10828 * configure.tgt: Delete m68*-ericsson-* target.
10829
10830 2003-01-31 Adam Fedor <fedor@gnu.org>
10831
10832 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10833 Remove duplicate/shadowing variable of same name.
10834
10835 2003-01-30 Jim Blandy <jimb@redhat.com>
10836
10837 * symfile.c (find_separate_debug_file): Assert that the objfile's
10838 directory name we compute ends with a slash, and then assume that
10839 that's so everywhere we use it.
10840
10841 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10842
10843 * valops.c (value_assign): Flush frame cache after stores to memory
10844 also.
10845
10846 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10847
10848 * Makefile.in (mon960-rom.o): Delete rule.
10849 * mon960-rom.c: Delete file.
10850
10851 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10852
10853 * d10v-tdep.c: Include "frame-unwind.h".
10854 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10855 list.
10856 (next_addr, uses_frame): Delete.
10857 (struct d10v_unwind_cache): Define.
10858 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10859 Use info instead of next_addr and uses_frame globals.
10860 (d10v_frame_init_saved_regs): Delete function.
10861 (d10v_init_extra_frame_info): Delete function.
10862 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10863 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10864 init_frame_pc or frame_saved_pc.
10865 (d10v_pop_frame): Delete function.
10866 (do_d10v_pop_frame): Delete function.
10867 (d10v_frame_chain): Delete function.
10868 (d10v_frame_chain_valid): Delete function.
10869 (d10v_frame_pc_unwind): New function.
10870 (d10v_frame_id_unwind): New function.
10871 (saved_regs_unwinder): New function.
10872 (d10v_frame_register_unwind): New function.
10873 (d10v_frame_pop): New function.
10874 (d10v_frame_unwind): New variable.
10875 (d10v_frame_p): New function.
10876 (d10v_frame_saved_pc): Delete function.
10877 * Makefile.in (d10v-tdep.o): Update dependencies.
10878
10879 2003-01-30 J. Brobecker <brobecker@gnat.com>
10880
10881 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10882 causing some regressions due to a change in the default value
10883 for this macro.
10884
10885 2003-01-29 Richard Henderson <rth@redhat.com>
10886 Elena Zannoni <ezannoni@redhat.com>
10887 Daniel Jacobowitz <drow@mvista.com>
10888
10889 Fix PR gdb/961.
10890 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10891 variables.
10892 (RANGES_SECTION): New.
10893 (dwarf_ranges_buffer): New variable.
10894 (struct comp_unit_head): Add member "die".
10895 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10896 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10897 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10898 (dwarf2_locate_sections): Likewise.
10899 (dwarf2_build_psymtabs): Read .debug_ranges.
10900 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10901 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10902 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10903 Look for DW_AT_ranges and return the bounding box.
10904
10905 2003-01-29 Brian Ford <ford@vss.fsi.com>
10906
10907 * win32-nat.c (cygwin_pid): Removed as unused.
10908 (child_attach): Try fall back to Cygwin pid.
10909
10910 2003-01-29 Jim Blandy <jimb@redhat.com>
10911
10912 * objfiles.h (struct objfile): Doc fix.
10913
10914 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10915
10916 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10917 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10918 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10919 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10920 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10921 (FRAME_SAVED_PC): Change to a function with predicate.
10922 * gdbarch.h, gdbarch.c: Re-generate.
10923
10924 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10925
10926 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10927
10928 * complaints.c (complain): Delete function.
10929 * complaints.h (struct deprecated_complaint): Delete definition.
10930 (complain): Delete declaration.
10931
10932 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10933
10934 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10935 dummy frames.
10936
10937 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10938
10939 * sentinel-frame.h, sentinel-frame.c: New files.
10940 * Makefile.in (frame.o): Update dependencies.
10941 (SFILES): Add sentinel-frame.c.
10942 (sentinel_frame_h): Define.
10943 (COMMON_OBS): Add sentinel-frame.o.
10944 (sentinel-frame.o): Specify dependencies.
10945 * frame.c: Include "sentinel-frame.h".
10946 (frame_register_unwind): Rewrite assuming that there is always a a
10947 ->next frame.
10948 (frame_register, generic_unwind_get_saved_register): Ditto.
10949 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10950 (create_sentinel_frame, unwind_to_current_frame): New functions.
10951 (get_current_frame): Rewrite using create_sentinel_frame and
10952 unwind_to_current_frame. When possible, always create a frame.
10953 (create_new_frame): Set next to the sentinel frame.
10954 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10955 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10956 ID cache when necessary.
10957 (frame_saved_regs_id_unwind): Use frame_relative_level.
10958 (deprecated_generic_get_saved_register): Use frame_relative_level,
10959 get_frame_saved_regs, get_frame_pc, get_frame_base and
10960 get_next_frame.
10961 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10962 frame_register.
10963
10964 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10965
10966 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10967
10968 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10969
10970 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10971 (maintenance_set_profile_cmd): Use error () instead of warning ().
10972
10973 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10974
10975 * configure.in: Check that -pg works if using --enable-profiling.
10976 Check for monstartup and _mcleanup regardless of --enable-profiling.
10977 * maint.c: Check for monstartup and _mcleanup before using them.
10978 * config.in: Regenerated.
10979 * configure: Regenerated.
10980
10981 2003-01-24 Nick Clifton <nickc@redhat.com>
10982
10983 * Add sh2e support:
10984
10985 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10986
10987 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10988 (sh2e_show_regs): New.
10989 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10990 * config/sh/tm-sh.h: Added sh2e to comments.
10991
10992 2003-01-23 Jim Blandy <jimb@redhat.com>
10993
10994 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10995 symbols found)" message here; we haven't checked for a separate
10996 debug info file yet, so we don't know yet.
10997 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10998 we've looked everywhere. Also, there's no need to print a special
10999 message when we're loading the separate debug info file: the one
11000 symbol_file_add prints is fine.
11001
11002 2003-01-23 Alexander Larsson <alexl@redhat.com>
11003 Jim Blandy <jimb@redhat.com>
11004
11005 Add support for executables whose debug info has been separated
11006 out into a separate file, leaving only a link behind.
11007 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11008 and separate_debug_objfile_backlink.
11009 (put_objfile_before): New declaration.
11010 * symfile.c: #include "filenames.h".
11011 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11012 debug info in a separate file, read that, too. Save the addrs
11013 argument, so we can use it again to read the separated debug info;
11014 syms_from_objfile modifies the table we pass it.
11015 (reread_symbols): After re-reading an objfile, call
11016 reread_separate_symbols to refresh its separate debug info
11017 objfile, if it has one.
11018 (reread_separate_symbols, find_separate_debug_file,
11019 get_debug_link_info, separate_debug_file_exists): New functions.
11020 (debug_file_directory): New global var.
11021 (_initialize_symfile): Initialize debug_file_directory, and
11022 provide the new `set debug-file-directory' command to let the user
11023 change it.
11024 * objfiles.c (free_objfile): If this objfile has its debug info in
11025 a separate objfile, free that one too. If this is itself a
11026 separate debug info objfile, clear our parent's backlink.
11027 (put_objfile_before): New function.
11028 * utils.c (gnu_debuglink_crc32): New function.
11029 * defs.h (gnu_debuglink_crc32): New declaration.
11030 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11031 * configure.in: Handle --with-separate-debug-dir config option.
11032 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11033 * acconfig.h (DEBUGDIR): New macro.
11034 * configure, aclocal.m4, config.in: Regenerated.
11035
11036 2003-01-22 Jim Blandy <jimb@redhat.com>
11037
11038 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11039 like the old symbol_file_add, but taking new arguments: you can
11040 now pass in either a `struct section_addr_info' list to say where
11041 each section is loaded, or a `struct section_offsets' table. Pass
11042 these new arguments through to syms_from_objfile as appropriate.
11043 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11044 with the appropriate quiescent values for the new arguments.
11045
11046 * symfile.c: #include "gdb_assert.h".
11047 (syms_from_objfile): Add the ability to pass in a section offset
11048 table directly, as an alternative to the section_addr_info table.
11049 Document arguments better.
11050 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11051 * symfile.h (syms_from_objfile): Update declaration.
11052 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11053 syms_from_objfile.
11054 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11055
11056 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11057
11058 Original patch by Tom Tromey <tromey@cygnus.com> and
11059 Jason Molenda <jmolenda@apple.com>.
11060 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11061 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11062 * NEWS: Mention profiling.
11063 * configure.in (--enable-gdbtk): Fix typo.
11064 (--enable-profiling): New. Set PROFILE_CFLAGS.
11065 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11066 Fill in function.
11067 (profiling_state): New variable.
11068 (mcleanup_wrapper): New function.
11069 (_initialize_maint): Remove NOTYET, fix call to
11070 add_setshow_boolean_cmd for "maint set profile".
11071 * configure: Regenerated.
11072
11073 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11074
11075 * Makefile.in (install-gdbtk): Install PNG images too.
11076
11077 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11078
11079 * exec.c (text_start): Delete global variable.
11080 (exec_file_attach): Make text_start local to the function.
11081 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11082 * valops.c (hand_function_call): Delete code that handles
11083 BEFORE_TEXT_END and AFTER_TEXT_END.
11084 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11085 of CALL_DUMMY_LOCATION.
11086 * gdbarch.c: Regenerate.
11087 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11088 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11089 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11090 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11091 (text_end): Delete extern declaration.
11092
11093 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11094
11095 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11096 * blockframe.c (backtrace_below_main): Move to "frame.c".
11097 (frame_chain_valid): Delete check for backtrace_below_main.
11098 (_initialize_blockframe): Delete initialization, move ``set
11099 backtrace-below-main'' command to "frame.c".
11100 (do_flush_frames_sfunc): Delete function.
11101 * frame.c: Include "command.h" and "gdbcmd.h".
11102 (frame_type_from_pc): New function.
11103 (create_new_frame): Use frame_type_from_pc.
11104 (legacy_get_prev_frame): New function.
11105 (get_prev_frame): Rewrite. When an old style frame, call
11106 legacy_get_prev_frame. Otherwize, unwind the PC first.
11107 (_initialize_frame): Add ``set backtrace-below-main'' command.
11108 * Makefile.in (frame.o): Update dependencies.
11109
11110 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11111
11112 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11113 DEPRECATED_REGISTERS_INFO.
11114
11115 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11116
11117 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11118 Maintainers'. Update `Various Maintainers'.
11119
11120 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11121
11122 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11123 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11124 Suppress actual parameters when `-'.
11125 * gdbarch.h, gdbarch.c: Regenerate.
11126
11127 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11128
11129 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11130 code handling dummy frames.
11131
11132 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11133
11134 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11135 (struct frame_unwind): Add field pop.
11136 * frame.h (frame_pop): Declare.
11137 * frame.c (frame_saved_regs_pop): New function.
11138 (trad_frame_unwinder): Add frame_saved_regs_pop.
11139 (frame_pop): New function.
11140 * dummy-frame.c (dummy_frame_pop): New function.
11141 (discard_innermost_dummy): New function.
11142 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11143 (dummy_frame_unwind): Add dummy_frame_pop.
11144 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11145 * valops.c (hand_function_call): Ditto.
11146 * stack.c (return_command): Ditto.
11147
11148 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11149
11150 * cris-tdep.c: Fix function declaration indentation.
11151 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11152 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11153 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11154 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11155 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11156 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11157
11158 2003-01-18 Michael Chastain <mec@shout.net>
11159
11160 * README (Unpacking and Installation -- quick overview):
11161 Warn against ".../gdb-5.3/gdb/configure".
11162
11163 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11164
11165 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11166 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11167 (struct frame_unwind): Declare opaque.
11168 (dummy_frame_p): Declare function.
11169 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11170 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11171 * dummy-frame.c: Include "frame-unwind.h".
11172 (dummy_frame_p): New function.
11173 (dummy_frame_unwind): New variable.
11174 * frame.c: Include "frame-unwind.h".
11175 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11176 to use the new unwind field.
11177 (set_unwind_by_pc): Delete function.
11178 (create_new_frame, get_prev_frame): Set unwind field using
11179 frame_unwind_find_by_pc.
11180 (trad_frame_unwind, trad_frame_unwinder): New variables.
11181 * frame.h (trad_frame_unwind): Declare variable.
11182 (frame_id_unwind_ftype): Delete declaration.
11183 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11184 (struct frame_unwind): Declare opaque.
11185 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11186 register_unwind with a single unwind pointer.
11187 * frame-unwind.h, frame-unwind.c: New files.
11188 * Makefile.in (SFILES): Add frame-unwind.c.
11189 (frame_unwind_h): Define.
11190 (COMMON_OBS): Add frame-unwind.o.
11191 (frame-unwind.o): Specify dependencies.
11192 (frame.o, dummy-frame.o): Update dependencies.
11193
11194 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11195
11196 * ada-valprint.c: Eliminate PTR.
11197 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11198 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11199 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11200 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11201 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11202 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11203 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11204
11205 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11206
11207 * main.c (captured_main): Don't use PTR.
11208 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11209 * gdbtypes.c (lookup_primitive_typename): Ditto.
11210 (lookup_struct_elt_type): Ditto.
11211 * f-valprint.c (info_common_command): Ditto.
11212 (list_all_visible_commons): Ditto.
11213 * jv-typeprint.c (java_type_print_base): Ditto.
11214
11215 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11216 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11217 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11218 i386-interix-nat.c and i386-interix-tdep.c. Rename
11219 m68klinux-nat.c and m68klinux-tdep.c. Rename
11220 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11221 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11222 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11223 * main.c (captured_main): Use xfree, not free.
11224
11225 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11226
11227 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11228 ID back using a parameter.
11229 * frame.c (frame_id_unwind): Update call.
11230 (frame_saved_regs_id_unwind): Update.
11231 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11232 * dummy-frame.h (struct frame_id): Add opaque declaration.
11233 (dummy_frame_id_unwind): Update declaration.
11234
11235 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11236
11237 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11238
11239 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11240
11241 * MAINTAINERS (Stephen P. Smith): Updated email address.
11242
11243 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11244
11245 Fix PR gdb/898
11246 * breakpoint.c (until_break_command): Add new argument. Use it to
11247 decide whether to stop only at the current frame or not.
11248 * breakpoint.h (until_break_command): Update prototype.
11249 * infcmd.c (until_command): Add new argument to until_break_command
11250 call.
11251 (advance_command): New function.
11252 (_initialize_infcmd): Update help string for 'until' command.
11253 Add new 'advance' command.
11254
11255 2003-01-14 David Carlton <carlton@math.stanford.edu>
11256
11257 * linespec.c (decode_line_1): Normalize comments.
11258 (set_flags): Ditto.
11259 (locate_first_half): Ditto.
11260 (decode_compound): Ditto.
11261 (symtab_from_filename): Ditto.
11262 (decode_all_digits): Ditto.
11263 (decode_dollar): Ditto.
11264 (find_methods): Ditto.
11265 (find_toplevel_char): Ditto.
11266
11267 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11268
11269 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11270 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11271 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11272 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11273 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11274 * language.c, language.h, m32r-tdep.c: Update copyright.
11275 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11276 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11277 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11278 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11279 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11280 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11281
11282 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11283
11284 * stabsread.h (process_later, resolve_cfront_continuation):
11285 Obsolete.
11286 Update copyright years.
11287 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11288 Update copyright year.
11289 * dbxread.c(struct cont_elem): Obsolete.
11290 (process_later, process_now): Obsolete functions.
11291 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11292 Update copyright year.
11293 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11294 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11295 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11296 (parse_partial_symbols): Obsolete cfront support.
11297 * stabsread.c
11298 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11299 macros.
11300 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11301 read_cfront_baseclasses, read_cfront_member_functions,
11302 resolve_cfront_continuation,read_cfront_static_fields,
11303 copy_cfront_struct_fields): Obsolete functions.
11304 (define_symbol, read_one_struct_field): Obsolete cfront support.
11305 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11306 Update Copyright year.
11307
11308 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11309
11310 * stack.c (print_frame_info, print_stack_frame_base_stub,
11311 print_stack_frame_base, show_and_print_stack_frame_stub,
11312 show_and_print_stack_frame, print_only_stack_frame_stub,
11313 print_only_stack_frame): Delete functions.
11314 (print_stack_frame_stub): Call print_frame_info instead of
11315 print_frame_info_base.
11316 (print_frame_info_base): Rename to print_frame_info.
11317 (backtrace_command_1): Call print_frame_info, instead of
11318 print_frame_info_base.
11319 (current_frame_command): Call print_stack_frame, instead of
11320 print_only_stack_frame.
11321 (frame_command): Call print_stack_frame, instead of
11322 show_and_print_stack_frame.
11323 (up_command): Ditto.
11324 (down_command): Ditto.
11325 * frame.h (print_only_stack_frame): Delete prototype.
11326 * infrun.c (normal_stop): Call print_stack_frame, instead of
11327 show_and_print_stack_frame.
11328 * thread.c (info_threads_command): Call print_stack_frame, instead
11329 of print_only_stack_frame.
11330
11331 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11332
11333 * README (Graphical interface to GDB): Update URL. Point at
11334 gdb/links/.
11335
11336 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11337 version match.
11338
11339 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11340
11341 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11342 lines.
11343
11344 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11345
11346 * thread-db.c (attach_thread): Prototype.
11347 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11348 thread information (ti), and valid flags (th_valid, ti_valid).
11349 (attach_thread): Move target_pid_to_str call to after the thread
11350 is added to GDB's list. Initialize the cache.
11351 (thread_get_info_callback, thread_db_map_id2thr)
11352 (thread_db_get_info): New functions.
11353 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11354 (thread_db_store_registers, thread_db_thread_alive)
11355 (thread_db_get_thread_local_address): Use them.
11356 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11357 of calling error() for threads in unknown state.
11358
11359 (clear_lwpid_callback): New function.
11360 (thread_db_resume): Use it to clear the cache.
11361
11362 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11363
11364 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11365 (resume_callback): Remove dead code.
11366
11367 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11368
11369 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11370 predicate.
11371 * gdbarch.h, gdbarch.c: Regenerate.
11372 * stack.c (frame_info): Only initialize the saved registers when
11373 FRAME_INIT_SAVED_REGS_P.
11374 * frame.c (frame_saved_regs_register_unwind): Assert
11375 FRAME_INIT_SAVED_REGS_P.
11376 (deprecated_generic_get_saved_register): Ditto.
11377
11378 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11379
11380 * source.c (openp): Squelch warning about "filename".
11381
11382 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11383
11384 * source.c (openp): If the file does not exist don't necessarily
11385 search the path.
11386
11387 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11388
11389 Fix PR gdb/872.
11390 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11391 (integer_types_same_name_p): New function.
11392 (rank_one_type): Use it.
11393 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11394
11395 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11396
11397 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11398 variables.
11399 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11400 * configure.in: Add --with-sysroot.
11401 * configure: Regenerated.
11402 * main.c (gdb_sysroot): New variable.
11403 (captured_main): Initialize gdb_sysroot.
11404 * defs.h (gdb_sysroot): New extern declaration.
11405 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11406
11407 2003-01-12 Michael Chastain <mec@shout.net>
11408
11409 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11410
11411 2003-01-12 Michael Chastain <mec@shout.net>
11412
11413 * top.c (print_gdb_version): Bump copyright year to 2003.
11414
11415 2003-01-12 David Carlton <carlton@bactrian.org>
11416
11417 * linespec.c (symtab_from_filename): Rename variable 's' to
11418 'file_symtab'.
11419
11420 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11421
11422 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11423 dummy frame.
11424 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11425
11426 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11427
11428 * d10v-tdep.c: Include "gdb_assert.h".
11429 (d10v_store_return_value): Rewrite to match current interface.
11430 (d10v_extract_struct_value_address): Ditto.
11431 (d10v_extract_return_value): Ditto.
11432 (d10v_gdbarch_init): Set store_restore_value,
11433 extract_struct_value_address and extract_return_value.
11434
11435 2003-01-12 J. Brobecker <brobecker@gnat.com>
11436
11437 * hpread.c (set_namestring): New procedure replacing the
11438 SET_NAMESTRING macro.
11439 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11440 by calls to set_namestring.
11441
11442 2003-01-11 J. Brobecker <brobecker@gnat.com>
11443
11444 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11445 a compilation warning.
11446 (hpread_process_one_debug_symbol): Likewise.
11447
11448 2003-01-10 David Carlton <carlton@math.stanford.edu>
11449
11450 * linespec.c (decode_line_1): Rename variable 's' to
11451 'file_symtab'.
11452 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11453 (decode_dollar): Ditto.
11454 (decode_variable): Ditto.
11455 (symbol_found): Ditto.
11456
11457 2003-01-09 Michael Chastain <mec@shout.net>
11458
11459 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11460
11461 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11462
11463 * win32-nat.c (set_process_privilege): New function.
11464 (child_attach): Call set_process_privilege() to enable the
11465 SE_DEBUG_NAME user privilege if available in process token.
11466
11467 2003-01-10 J. Brobecker <brobecker@gnat.com>
11468
11469 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11470 compilation error in the previous revision.
11471
11472 2003-01-09 David Carlton <carlton@math.stanford.edu>
11473
11474 * linespec.c: Update copyright.
11475
11476 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11477
11478 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11479 than inferior_ptid.
11480 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11481
11482 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11483
11484 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11485 Update comments.
11486 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11487 (frame_saved_regs_zalloc): Update.
11488 (frame_saved_regs_register_unwind): Update.
11489 (create_new_frame): Update.
11490 (get_prev_frame): Update.
11491 (frame_extra_info_zalloc): Update.
11492 (deprecated_get_frame_saved_regs): Update.
11493 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11494 * cris-tdep.c: Update comment.
11495
11496 * somsolib.h: Fix function indentation.
11497 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11498 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11499 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11500 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11501 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11502
11503 * infrun.c (follow_fork): Use ISO C definition.
11504 * expprint.c (print_subexp): Use xfree instead of free.
11505 * charset.c: Include "gdb_string.h" instead of <string.h>.
11506 (register_iconv_charsets): Use ISO C definition.
11507 (host_charset, target_charset): Ditto.
11508 * Makefile.in (charset.o): Update dependencies.
11509 (mi-cmd-env.o): Update dependencies.
11510
11511 2003-01-08 Andrew Cagney <cagney@redhat.com>
11512
11513 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11514 get_frame_base.
11515
11516 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11517
11518 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11519 build directories. Save edited gdb output in Mbuild.log. If a
11520 build fails, remove any final GDB executable.
11521
11522 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11523
11524 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11525 replacing hex constants with function names and stripping leading
11526 file name directory prefixes.
11527
11528 2003-01-08 Andrew Cagney <cagney@redhat.com>
11529
11530 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11531 get_frame_base.
11532
11533 2003-01-08 David Carlton <carlton@math.stanford.edu>
11534
11535 * linespec.c (decode_line_1): Move code into decode_variable.
11536 (decode_variable): New function.
11537
11538 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11539
11540 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11541
11542 2003-01-08 Andrew Cagney <cagney@redhat.com>
11543
11544 * cris-tdep.c (cris_frame_init_saved_regs): Use
11545 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11546 saved_regs buffer.
11547 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11548 (sh64_nofp_frame_init_saved_regs): Ditto.
11549 (sh_fp_frame_init_saved_regs): Ditto.
11550 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11551 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11552 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11553 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11554
11555 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11556
11557 * minsyms.c (lookup_minimal_symbol): Update comment.
11558 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11559 (lookup_minimal_symbol_solib_trampoline): Likewise.
11560
11561 2003-01-08 Andrew Cagney <cagney@redhat.com>
11562
11563 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11564 frame_relative_level.
11565
11566 * alpha-tdep.c: Use get_frame_extra_info.
11567 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11568 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11569 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11570 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11571
11572 * alpha-tdep.c: Use get_next_frame.
11573 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11574 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11575 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11576 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11577 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11578 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11579 * xstormy16-tdep.c: Ditto.
11580
11581 2003-01-07 Andrew Cagney <cagney@redhat.com>
11582
11583 * alpha-tdep.c: Use get_frame_base.
11584 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11585 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11586 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11587 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11588 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11589 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11590 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11591 * config/sparc/tm-sparc.h: Ditto.
11592
11593 2003-01-07 Andrew Cagney <cagney@redhat.com>
11594
11595 * frame.c (deprecated_get_frame_context): New function.
11596 (deprecated_set_frame_context): New function.
11597 * frame.h (deprecated_get_frame_context): Declare.
11598 (deprecated_set_frame_context): Declare.
11599 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11600 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11601
11602 2003-01-07 Andrew Cagney <cagney@redhat.com>
11603
11604 * frame.c (deprecated_set_frame_next_hack): New function.
11605 (deprecated_set_frame_prev_hack): New function.
11606 * frame.h (deprecated_set_frame_next_hack): Declare.
11607 (deprecated_set_frame_prev_hack): Declare.
11608 * mcore-tdep.c (analyze_dummy_frame): Use
11609 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11610 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11611
11612 2003-01-07 David Carlton <carlton@math.stanford.edu>
11613
11614 * linespec.c (decode_line_1): Move code into decode_dollar.
11615 (decode_dollar): New function.
11616
11617 2003-01-07 Andrew Cagney <cagney@redhat.com>
11618
11619 * arm-tdep.c (arm_init_extra_frame_info): Use
11620 deprecated_update_frame_base_hack.
11621 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11622 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11623 (fix_frame_pointer): Ditto.
11624 (mn10300_analyze_prologue): Ditto.
11625
11626 2003-01-07 Andrew Cagney <cagney@redhat.com>
11627
11628 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11629 extra_info using frame_extra_info_zalloc.
11630 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11631 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11632 (sh64_init_extra_frame_info): Ditto.
11633 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11634 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11635 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11636 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11637 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11638 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11639 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11640 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11641 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11642 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11643 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11644 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11645
11646 * mn10300-tdep.c (analyze_dummy_frame): Use
11647 deprecated_set_frame_extra_info_hack.
11648 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11649
11650 2003-01-07 J. Brobecker <brobecker@gnat.com>
11651
11652 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11653 class is not scText. These do not define "real" procedures.
11654 (parse_partial_symbols): Likewise.
11655
11656 2003-01-06 Michael Snyder <msnyder@redhat.com>
11657
11658 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11659
11660 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11661
11662 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11663 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11664 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11665 deprecated_frame_xmalloc_with_cleanup.
11666 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11667 deprecated_frame_xmalloc.
11668 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11669 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11670
11671 2003-01-06 Andrew Cagney <cagney@redhat.com>
11672
11673 * x86-64-linux-tdep.c: Include "osabi.h".
11674 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11675
11676 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11677
11678 2003-01-06 Andrew Cagney <cagney@redhat.com>
11679
11680 * MAINTAINERS (Target Instruction Set Architectures): Update
11681 arm-elf. Can be built with -Werror, has been multiarched.
11682
11683 * value.h (unpack_long): Make buffer parameter constant.
11684 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11685 * scm-lang.h (scm_parse): Ditto.
11686 * defs.h (extract_typed_address, extract_address): Ditto.
11687 (extract_long_unsigned_integer): Ditto.
11688 * inferior.h (unsigned_pointer_to_address): Ditto.
11689 (signed_pointer_to_address): Ditto.
11690 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11691 * gdbarch.h, gdbarch.c: Regenerate.
11692 * findvar.c (extract_long_unsigned_integer): Update.
11693 (extract_address): Update.
11694 (extract_typed_address): Update.
11695 (unsigned_pointer_to_address): Update.
11696 * values.c (unpack_long): Update.
11697 (unpack_double): Update.
11698 (unpack_pointer): Update.
11699 (unpack_field_as_long): Update.
11700 * d10v-tdep.c (d10v_pointer_to_address): Update.
11701 * avr-tdep.c (avr_pointer_to_address): Update.
11702 * scm-lang.c (scm_unpack): Update.
11703 * findvar.c (signed_pointer_to_address): Update.
11704
11705 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11706
11707 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11708 since it is in i386-tdep.c.
11709
11710 2003-01-06 J. Brobecker <brobecker@gnat.com>
11711
11712 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11713 failure introduced in the previous change.
11714
11715 2003-01-05 Michael Chastain <mec@shout.net>
11716
11717 * README: Remove references to deleted remote-*.c files:
11718 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11719 remote-nrom.c, remote-os9k.c, remote-udi.c.
11720
11721 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11722
11723 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11724 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11725 i386_get_longjmp_target.
11726
11727 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11728
11729 * arm-tdep.c (prologue_cache): Change to a pointer.
11730 (_initialize_arm_tdep): Allocate prologue_cache.
11731 (check_prologue_cache): Update.
11732 (save_prologue_cache): Update.
11733 (arm_gdbarch_init): Update.
11734
11735 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11736
11737 * stabsread.c (update_method_name_from_physname): Call complaint()
11738 instead of error.
11739
11740 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11741
11742 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11743 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11744 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11745
11746 * blockframe.c: Include "gdbcmd.h" and "command.h".
11747 (backtrace_below_main): New variable.
11748 (file_frame_chain_valid, func_frame_chain_valid)
11749 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11750 (generic_func_frame_chain_valid): Remove functions.
11751 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11752 (_initialize_blockframe): New function.
11753 * Makefile.in (blockframe.o): Update dependencies.
11754 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11755 comment. Call frame_chain_valid ().
11756 * frame.h: Remove old prototypes. Add prototype for
11757 frame_chain_valid and update comments to match.
11758 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11759 Remove old comment.
11760 * gdbarch.h: Regenerated.
11761 * gdbarch.c: Regenerated.
11762
11763 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11764 set_gdbarch_frame_chain_valid.
11765 * avr-tdep.c (avr_gdbarch_init): Likewise.
11766 * cris-tdep.c (cris_gdbarch_init): Likewise.
11767 * frv-tdep.c (frv_gdbarch_init): Likewise.
11768 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11769 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11770 (i386_nw_init_abi): Likewise.
11771 (i386_gdbarch_init): Likewise.
11772 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11773 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11774 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11775 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11776 * mips-tdep.c (mips_gdbarch_init): Likewise.
11777 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11778 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11779 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11780 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11781 * s390-tdep.c (s390_gdbarch_init): Likewise.
11782 * sh-tdep.c (sh_gdbarch_init): Likewise.
11783 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11784 * v850-tdep.c (v850_gdbarch_init): Likewise.
11785 * vax-tdep.c (vax_gdbarch_init): Likewise.
11786 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11787
11788 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11789 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11790 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11791 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11792 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11793 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11794 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11795 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11796
11797 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11798
11799 * Makefile.in (acconfig_h): Remove incorrect macro.
11800 (config_h): Define.
11801 (osabi.o): Update dependencies.
11802 * configure.tgt: Set gdb_osabi based on target triplet.
11803 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11804 * configure: Regenerated.
11805 * config.in: Regenerated.
11806 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11807 (GDB_OSABI_DEFAULT): Define if not already defined.
11808 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11809 (set_osabi_string): New variables.
11810 (gdbarch_register_osabi): Add new OS ABI to
11811 gdb_osabi_available_names.
11812 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11813 (set_osabi, show_osabi): New functions.
11814 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11815
11816 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11817
11818 * arch-utils.c (gdbarch_info_init): Set osabi to
11819 GDB_OSABI_UNINITIALIZED.
11820 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11821 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11822 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11823 * gdbarch.c: Regenerated.
11824 * gdbarch.h: Regenerated.
11825 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11826 there's no BFD.
11827 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11828 * osabi.h (enum gdb_osabi): Move to defs.h.
11829 (gdbarch_init_osabi): Update prototype.
11830 * defs.h (enum gdb_osabi): Moved here.
11831 * Makefile.in: Update dependencies.
11832
11833 * alpha-tdep.h: Don't include "osabi.h".
11834 (struct gdbarch_tdep): Remove osabi member.
11835 * alpha-tdep.c: Include "osabi.h".
11836 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11837 iterate over arches. Update call to gdbarch_init_osabi.
11838 (alpha_dump_tdep): Don't dump osabi.
11839 * alpha-linux-tdep.c: Include "osabi.h".
11840 * alpha-osf1-tdep.c: Include "osabi.h".
11841 * alphafbsd-tdep.c: Include "osabi.h".
11842 * alphanbsd-tdep.c: Include "osabi.h".
11843
11844 * arm-tdep.h: Don't include "osabi.h".
11845 (struct gdbarch_tdep): Remove osabi member.
11846 * arm-tdep.c: Include "osabi.h".
11847 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11848 iterate over arches. Update call to gdbarch_init_osabi.
11849 (arm_dump_tdep): Don't dump osabi.
11850 * arm-linux-tdep.c: Include "osabi.h".
11851 * armnbsd-tdep.c: Include "osabi.h".
11852
11853 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11854 Update call to gdbarch_init_osabi.
11855
11856 * i386-tdep.h: Don't include "osabi.h".
11857 (struct gdbarch_tdep): Remove osabi member.
11858 * i386-tdep.c: Include "osabi.h".
11859 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11860 iterate over arches. Update call to gdbarch_init_osabi.
11861 (i386_dump_tdep): Don't dump osabi.
11862 * i386-linux-tdep.c: Include "osabi.h".
11863 * i386-sol2-tdep.c: Include "osabi.h".
11864 * i386bsd-tdep.c: Include "osabi.h".
11865 * i386gnu-tdep.c: Include "osabi.h".
11866 * i386ly-tdep.c: Include "osabi.h".
11867 * i386nbsd-tdep.c: Include "osabi.h".
11868 * i386obsd-tdep.c: Include "osabi.h".
11869
11870 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11871 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11872 check osabi when iterating over arches. Update call to
11873 gdbarch_init_osabi.
11874 (mips_dump_tdep): Don't dump osabi.
11875
11876 * ns32k-tdep.h: Don't include "osabi.h".
11877 (struct gdbarch_tdep): Remove.
11878 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11879 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11880 allocate tdep. Update call to gdbarch_init_osabi.
11881 (ns32k_dump_tdep): Remove.
11882 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11883 * ns32knbsd-tdep.c: Include "osabi.h".
11884
11885 * ppc-tdep.h: Don't include "osabi.h".
11886 (struct gdbarch_tdep): Remove osabi member.
11887 * rs6000-tdep.c: Include "osabi.h".
11888 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11889 osabi when iterating over arches. Update call to
11890 gdbarch_init_osabi.
11891 (rs6000_dump_tdep): Don't dump osabi.
11892 * ppc-linux-tdep.c: Include "osabi.h".
11893 * ppcnbsd-tdep.c: Include "osabi.h".
11894
11895 * sh-tdep.h: Don't include "osabi.h".
11896 (struct gdbarch_tdep): Remove osabi member.
11897 * sh-tdep.c: Include "osabi.h".
11898 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11899 iterate over arches. Update call to gdbarch_init_osabi.
11900 (sh_dump_tdep): Don't dump osabi.
11901 * shnbsd-tdep.c: Include "osabi.h".
11902
11903 * sparc-tdep.c: Include "osabi.h".
11904 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11905 iterate over arches. Update call to gdbarch_init_osabi.
11906 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11907 tdep structure.
11908
11909 * vax-tdep.h: Don't include "osabi.h".
11910 (struct gdbarch_tdep): Remove.
11911 * vax-tdep.c: Include "osabi.h".
11912 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11913 iterate over arches. Don't allocate tdep. Update call
11914 to gdbarch_init_osabi.
11915 (vax_dump_tdep): Remove.
11916 (_initialize_vax_tdep): Update call to gdbarch_register.
11917
11918 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11919
11920 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11921 entirely.
11922 (breakpoint_re_set_one): Don't fetch the value for a disabled
11923 watchpoint.
11924
11925 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11926
11927 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11928 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11929 (COERCE_FLOAT_TO_DOUBLE): Remove.
11930 * gdbarch.c: Regenerate.
11931 * gdbarch.h: Regenerate.
11932 * Makefile.in: Remove value_h from gdbarch_h.
11933 * valops.c (coerce_float_to_double): New variable.
11934 (default_coerce_float_to_double): Remove.
11935 (standard_coerce_float_to_double): Remove.
11936 (value_arg_coerce): Use coerce_float_to_double.
11937 (_initialize_valops): Add "set coerce-float-to-double".
11938 * value.h (default_coerce_float_to_double): Remove prototype.
11939 (standard_coerce_float_to_double): Remove prototype.
11940
11941 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11942 prototyped.
11943 * mdebugread.c (parse_symbol): Likewise.
11944 * stabsread.c (define_symbol): Mark all functions as prototyped.
11945
11946 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11947 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11948 set_gdbarch_coerce_float_to_double.
11949 * arm-tdep.c (arm_gdbarch_init): Likewise.
11950 * frv-tdep.c (frv_gdbarch_init): Likewise.
11951 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11952 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11953 * mips-tdep.c (mips_gdbarch_init): Likewise.
11954 (mips_coerce_float_to_double): Remove.
11955 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11956 (rs6000_coerce_float_to_double): Remove.
11957 * s390-tdep.c (s390_gdbarch_init): Likewise.
11958 * sh-tdep.c (sh_gdbarch_init): Likewise.
11959 (sh_coerce_float_to_double): Remove.
11960 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11961 (sparc_coerce_float_to_double): Remove.
11962 * v850-tdep.c (v850_gdbarch_init): Likewise.
11963 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11964 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11965 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11966 (hppa_coerce_float_to_double): Remove prototype.
11967 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11968
11969 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11970
11971 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11972
11973 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11974
11975 Suggested by Stewart Brown <sb24@avaya.com>:
11976 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11977 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11978 (c_type_print_varspec_suffix): Likewise.
11979
11980 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11981
11982 * configure.in: Don't set and AC_SUBST SUBDIRS.
11983 * configure: Regenerated.
11984
11985 * configure.in: Remove code dealing with shared libraries.
11986 * Makefile.in: Remove HLDFLAGS and HLDENV.
11987 * configure: Regenerated.
11988
11989 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11990
11991 * frame.c (deprecated_frame_xmalloc): New function.
11992 (deprecated_set_frame_saved_regs_hack): New function.
11993 (deprecated_set_frame_extra_info_hack): New function.
11994 * frame.h (deprecated_frame_xmalloc): Declare.
11995 (deprecated_set_frame_saved_regs_hack): Declare.
11996 (deprecated_set_frame_extra_info_hack): Declare.
11997
11998 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11999
12000 * configure.in: Move code that provides the --enable-gdbtk option
12001 right after the code that handles the --enable-tui option, and
12002 polish it somewhat.
12003 * configure: Regenerated.
12004
12005 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12006 AC_CHECK_FUNCS and remove the old check for pread64.
12007 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12008 * acconfig.h (_GNU_SOURCE): Add.
12009 (HAVE_PREAD64): Remove.
12010 * configure, aclocal.m4, config.in: Regenerated.
12011
12012 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12013
12014 * alpha-tdep.c: Use get_frame_saved_regs.
12015 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12016 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12017 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12018 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12019 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12020
12021 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12022
12023 * configure.in: Remove all use of the SUBDIRS variable; add
12024 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12025 code providing the --enable-multi-ice option, and move it right in
12026 front of the code that checks whether gdbserver is supported.
12027 Polish that too.
12028 * configure: Regenerated.
12029 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12030 @SUBDIRS@.
12031
12032 2003-01-03 Andrew Cagney <cagney@redhat.com>
12033
12034 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12035 * avr-tdep.c, cris-tdep.c: Ditto.
12036 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12037 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12038
12039 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12040
12041 * configure.in: Remove --enable-netrom option.
12042 * configure: Regenerated.
12043
12044 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12045
12046 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12047 declaration for `struct re_pattern_buffer' instead.
12048 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12049
12050 2003-01-03 J. Brobecker <brobecker@gnat.com>
12051
12052 * mdebugread.c (parse_symbol): Count until the stEnd matching
12053 the structure name.
12054
12055 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12056
12057 * configure.in: Remove --with-cpu option.
12058 subscripts. Remove evil changequotes here.
12059 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12060 * config.in, configure: Regenerated.
12061
12062 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12063 * configure.in: Cleanup section that sources GDB and BFD configure
12064 subscripts. Remove evil changequotes here.
12065 * config.in, configure: Regenerated.
12066
12067 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12068
12069 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12070 frame accessor methods.
12071 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12072 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12073 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12074 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12075 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12076 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12077 * z8k-tdep.c: Ditto.
12078
12079 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12080
12081 * configure.in: Remove UI_OUT configuration code.
12082 * ada-lang.c: Update assuming UI_OUT is always true.
12083 * Makefile.in (UIOUT_CFLAGS): Remove.
12084 * configure: Regenerated.
12085 * TODO: Remove blurb about elimination of -DUI_OUT.
12086
12087 * configure.in: Move code that provides the --enable-gdbcli,
12088 --enable-gdbmi options right before the code that handles the
12089 --enable-tui option. Polish a bit.
12090 * configure: Regenerated.
12091
12092 * configure.in: Rewrite check for GNU regex and the
12093 --without-included regex option, and move it into the "Checks for
12094 library functions" section. This makes us use the system regex
12095 again by default on systems with version 2 of the GNU C library.
12096 This was apparently broken.
12097 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12098 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12099 * config.in, configure: Regenerated.
12100
12101 * configure.in: Move code that provides the --enable-tui option
12102 before the "Checks for libraries" section. Polish the code
12103 somewhat and set need_curses to yes if we build the TUI. Rewrite
12104 code that looks for a library providing termcap functionality to
12105 match more closely what's done in the Readline library, and move
12106 it into to the "Checks for libraries" section.
12107 * configure: Regenerated.
12108 * Makefile.in (TERMCAP): Remove variable.
12109 * config/i386/go32.mh (TERMCAP): Remove variable.
12110
12111 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12112
12113 * MAINTAINERS: Mention gdb_mbuild.sh.
12114 * gdb_mbuild.sh: Rewrite.
12115
12116 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12117
12118 * configure.in: Fix typo in last change.
12119 * config.in, configure: Regenerated.
12120
12121 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12122
12123 * valarith.c (value_binop): Delete obsolete code and comments.
12124 * configure.host: Ditto.
12125 * buildsym.h (make_blockvector): Ditto.
12126 * buildsym.c (make_blockvector): Ditto.
12127 * defs.h (enum language): Ditto.
12128 (chill_demangle): Ditto.
12129 * elfread.c (elf_symtab_read): Ditto.
12130 * dwarfread.c (CHILL_PRODUCER): Ditto.
12131 (set_cu_language): Ditto.
12132 (handle_producer): Ditto.
12133 * expprint.c (print_subexp): Ditto.
12134 * gdbtypes.c (chill_varying_type): Ditto.
12135 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12136 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12137 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12138 (chill_varying_type): Ditto.
12139 * language.h (_LANG_chill): Ditto.
12140 * language.c (binop_result_type, integral_type): Ditto.
12141 (character_type, string_type, structured_type): Ditto.
12142 (lang_bool_type, binop_type_check): Ditto.
12143 * stabsread.h (os9k_stabs): Ditto.
12144 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12145 (define_symbol, read_type, read_struct_fields): Ditto.
12146 (read_array_type, read_enum_type, read_huge_number): Ditto.
12147 (read_range_type, start_stabs): Ditto.
12148 * symfile.c (init_filename_language_table): Ditto.
12149 (add_psymbol_with_dem_name_to_list): Ditto.
12150 * symtab.c (symbol_init_language_specific): Ditto.
12151 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12152 * symtab.h (struct general_symbol_info): Ditto.
12153 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12154 * typeprint.c (typedef_print): Ditto.
12155 * utils.c (fprintf_symbol_filtered): Ditto.
12156 * valops.c (value_cast, search_struct_field, value_slice): Delete
12157 obsolete code.
12158 (varying_to_slice): Delete function.
12159 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12160 (varying_to_slice): Delete declaration.
12161 * MAINTAINERS: Update.
12162
12163 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12164
12165 * configure.in: Reorganize "Checks for library functions section"
12166 a bit. Remove check for `btowc' and `isascii' functions.
12167 * configure: Regenerated.
12168
12169 * acconfig.h (_MSE_INT_H): Remove.
12170 * configure.in: Create "Checks for header files" section, and move
12171 appropriate tests there. Don't check for objlist.h, wchar.h,
12172 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12173 misdetection fix. Also add "Checks for types", "Checks for
12174 compiler characteristics" and "Checks for library functions"
12175 sections.
12176 * config.in, configure: Regenerated.
12177
12178 * configure.in: Create "Checks for programs" section, and move
12179 appropriate tests there.
12180
12181 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12182
12183 * configure.in: Create "Checks for libraries" section, and move
12184 appropriate tests there. Cleanup check for wctype in libw. Use
12185 AC_SEARCH_LIBS to see whether we need libsocket.
12186 * configure: Regenerated.
12187
12188 For older changes see ChangeLog-2002
12189 \f
12190 Local Variables:
12191 mode: change-log
12192 left-margin: 8
12193 fill-column: 74
12194 version-control: never
12195 End: