2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2
3 * top.c (quit_force): Fix indirect call to quit_target so
4 a struct qt_args pointer is passed.
5
6 2003-09-22 Andrew Cagney <cagney@redhat.com>
7
8 * arch-utils.h (init_frame_pc_noop): Delete declaration.
9 * arch-utils.c (init_frame_pc_noop): Delete function.
10 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
11 "init_frame_pc".
12 * mips-tdep.c (mips_gdbarch_init): Ditto.
13 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
14 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
15 declaration.
16 (DEPRECATED_INIT_FRAME_PC): Delete macro.
17 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
18 declaration.
19 (DEPRECATED_INIT_FRAME_PC): Delete macro.
20
21 2003-09-22 Anthony Green <green@redhat.com>
22
23 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
24 declaration.
25
26 2003-09-20 Andrew Cagney <cagney@redhat.com>
27
28 * breakpoint.c: Eliminate ARGSUSED.
29 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
30 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
31 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
32 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
33 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
34 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
35 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
36 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
37 * wince.c, remote-vx.c: Ditto.
38
39 * cli/cli-script.c: Remove "register" attributes.
40 * config/pa/tm-hppa.h: Ditto.
41 * cli/cli-decode.c: Ditto.
42 * cli/cli-cmds.c: Ditto.
43
44 2003-09-19 Andrew Cagney <cagney@redhat.com>
45
46 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
47 DEPRECATED_NPC_REGNUM.
48 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
49
50 2003-09-19 Christopher Faylor <cgf@redhat.com>
51
52 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
53
54 2003-09-19 Jim Blandy <jimb@redhat.com>
55
56 * macrotab.c (macro_include): Use the correct comparison to find
57 the appropriate place for this inclusion in the list.
58
59 2003-09-19 Andrew Cagney <cagney@redhat.com>
60
61 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
62 (DEPRECATED_HPUX_TEXT_END): Define.
63 (deprecated_hpux_text_end): Declare.
64 (struct target_ops): Declare opaque.
65 * hppah-nat.c (text_end): Make static.
66 (deprecated_hpux_text_end): New function.
67 * exec.c (text_end): Delete global variable.
68 (NEED_TEXT_START_END): Do not define.
69 (exec_file_attach): Replace code computing "text_end" code with
70 call to DEPRECATED_HPUX_TEXT_END.
71
72 2003-09-19 Andrew Cagney <cagney@redhat.com>
73
74 * utils.c (align_up, align_down): New functions.
75 * defs.h (align_up, align_down): Declare.
76 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
77 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
78 and "align_down".
79 (round_up, round_down): Delete functions.
80 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
81 "align_down".
82 (ROUND_DOWN, ROUND_UP): Delete macros.
83 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
84 * h8300-tdep.c: Replace "round_up" and "round_down" with
85 "align_up" and "align_down".
86 (round_up, round_down): Delete macros.
87 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
88 "align_down".
89 (ROUND_UP, ROUND_DOWN): Delete macros.
90
91 2003-09-18 J. Brobecker <brobecker@gnat.com>
92
93 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
94 hard-coded constant. Use the proper machine name instead.
95
96 2003-09-17 Andrew Cagney <cagney@redhat.com>
97
98 * sparc-tdep.c (legacy_register_name): Delete function.
99 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
100 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
101 * infcmd.c (gdb_register_name): Delete variable.
102 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
103 REGISTER_NAME and "tm.h".
104 * gdbarch.h, gdbarch.c: Regenerate.
105 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
106 REGISTER_NAMES in comments.
107 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
108 * m68klinux-nat.c (regmap): Ditto.
109
110 2003-09-17 Jim Blandy <jimb@redhat.com>
111
112 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
113
114 2003-09-17 Andrew Cagney <cagney@redhat.com>
115
116 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
117 (ppcnbsd_init_abi): Set "use_struct_convention" to
118 "ppcnbsd_use_struct_convention".
119
120 2003-09-17 Mark Kettenis <kettenis@gnu.org>
121
122 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
123 * gdbarch.h, gdbarch.c: Regenerate.
124 (stabs_argument_has_addr): New architecture method.
125 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
126 * arch-utils.c: Include "buildsym.h".
127 (default_stabs_argument_has_addr): New function.
128 * stabsread.c (define_symbol): Use stabs_argument_has_addr
129 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
130
131 2003-09-17 Andrew Cagney <cagney@redhat.com>
132
133 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
134 * gdbarch.h, gdbarch.c: Regenerate.
135 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
136 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
137 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
138 * sparcnbsd-tdep.c: Update.
139
140 2003-09-17 Andrew Cagney <cagney@redhat.com>
141
142 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
143 * gdbarch.h, gdbarch.c: Regenerate.
144 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
145 * d10v-tdep.c, frame.c: Update.
146 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
147 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
148 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
149 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
150 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
151 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
152 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
153 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
154 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
155 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
156 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
157 * config/pa/nm-hppah.h: Update.
158
159 2003-09-16 Andrew Cagney <cagney@redhat.com>
160
161 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
162 "use_struct_convention" to "ppc_linux_use_struct_convention".
163 (ppc_linux_use_struct_convention): New function.
164 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
165 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
166 "rs6000_use_struct_convention".
167 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
168 declaration.
169 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
170 Delete function.
171
172 2003-09-16 Andrew Cagney <cagney@redhat.com>
173
174 * buildsym.c: Remove more occurances of "register".
175 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
176 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
177 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
178 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
179 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
180 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
181 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
182 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
183
184 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
185
186 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
187 numbers to enumeration values.
188 * sh-tdep.c: Accomodate above change.
189 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
190 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
191 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
192 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
193 (IS_FPUSH): Rename from IS_FMOV.
194 (sh_extract_struct_value_address): Remove useless comment.
195 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
196 instead of own local values.
197 (sh_dump_tdep): Remove.
198 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
199 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
200
201 2003-09-15 Andrew Cagney <cagney@redhat.com>
202
203 * doublest.c (convert_floatformat_to_doublest): No longer need to
204 cast "exp_bias" to an int. Reverts 2002-12-04 change.
205
206 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
207
208 * values.c (unpack_double): Call floatformat_is_valid.
209
210 2003-09-15 Mark Kettenis <kettenis@gnu.org>
211
212 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
213 ps_strings into a long.
214
215 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
216 _initialize_am64fbsd_nat.
217
218 2003-09-15 Kevin Buettner <kevinb@redhat.com>
219
220 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
221 associated with DW_AT_ranges attribute is out of bounds.
222
223 2003-09-15 David Lecomber <dsl@sources.redhat.com>
224
225 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
226
227 2003-09-14 Michael Chastain <mec@shout.net>
228
229 * config/m68k/nm-apollo68v.h: Delete.
230 * config/m68k/xm-apollo68v.h: Delete.
231
232 2003-09-14 Andrew Cagney <cagney@redhat.com>
233
234 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
235 * dcache.c: Update copyrights and descriptions.
236 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
237
238 2003-09-14 Andrew Cagney <cagney@redhat.com>
239
240 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
241 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
242
243 2003-09-14 Andrew Cagney <cagney@redhat.com>
244
245 * alpha-nat.c: Remove some occurances of "register".
246 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
247 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
248 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
249 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
250 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
251 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
252 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
253 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
254 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
255 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
256 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
257 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
258 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
259 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
260 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
261 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
262 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
263 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
264 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
265 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
266 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
267 * values.c, vax-tdep.c, xcoffread.c: Ditto.
268
269 2003-09-13 Andrew Cagney <cagney@redhat.com>
270
271 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
272 * ppc-tdep.h (struct regcache): Declare opaque.
273 * objfiles.h (struct objfile_data): Declare opaque.
274 * cp-support.h (struct objfile): Declare opaque.
275 * linux-nat.h (target_waitstatus): Declare opaque.
276
277 2003-09-14 Mark Kettenis <kettenis@gnu.org>
278
279 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
280 (stabs_argument_has_addr): New architecture method.
281 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
282 * arch-utils.c: Include "buildsym.h".
283 (default_stabs_argument_has_addr): New function.
284 * stabsread.c (define_symbol): Use stabs_argument_has_addr
285 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
286
287 * cris-tdep.c (cris_gdbarch_init): Set
288 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
289 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
290 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
291 * mips-tdep.c (mips_gdbarch_init): Likewise.
292 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
293 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
294
295 2003-09-13 Andrew Cagney <cagney@redhat.com>
296
297 * values.c (using_struct_return): Delete "function" and "funcaddr"
298 parameters.
299 * value.h (using_struct_return): Update declaration.
300 * infcmd.c (finish_command_continuation): Update.
301 (finish_command): Update.
302 * infcall.c (call_function_by_hand): Update.
303 * eval.c (evaluate_subexp_standard): Update.
304
305 2003-09-13 Christopher Faylor <cgf@redhat.com>
306
307 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
308 SSE registers since gdb will not operate correctly without this.
309 Restore include file ordering munged in previous change.
310 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
311
312 2003-09-13 Mark Kettenis <kettenis@gnu.org>
313
314 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
315 REG_STRUCT_HAS_ADDR.
316 * gdbarch.c, gdbarch.h: Updated.
317 * infcall.c (call_function_by_hand): Update.
318 * stabsread.c (define_symbol): Updated.
319
320 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
321
322 2003-09-12 Christopher Faylor <cgf@redhat.com>
323
324 * win32-nat.c: Reorganize so that defines used by target headers are
325 actually defined by the system headers.
326 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
327 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
328
329 2003-09-12 Jim Blandy <jimb@redhat.com>
330
331 * dbxread.c (read_dbx_symtab): Don't report an internal error if
332 the file has no .data, .bss, or .rodata sections. Instead wait
333 until we see a variable alleged to live in one of those sections.
334
335 * dbxread.c (read_dbx_symtab): If we have no .data section and no
336 .bss section, presume that any variables we find live in the
337 .rodata section.
338
339 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
340 offsets for global and static variables.
341
342 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
343 symbol types are, by definition, in the .data section, so it is
344 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
345 If there is no .data section, there should be no N_DATA or N_DATA
346 | N_EXT symbols.
347
348 2003-09-12 Mark Kettenis <kettenis@gnu.org>
349
350 * amd64fbsd-tdep.c: Fix sigtramp recognition.
351 (amd64fbsd_sigcontext_addr): Rewrite.
352 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
353 with correct values.
354 (amd64fbsd_sc_reg_offset): Initialize with correct values.
355 (amd64fbsd_init_abi): Fix typo.
356
357 2003-09-12 Andrew Cagney <cagney@redhat.com>
358
359 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
360 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
361
362 2003-09-12 Andrew Cagney <cagney@redhat.com>
363
364 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
365 "entry_file_highpc". Update comments.
366 * defs.h (deprecated_inside_entry_file): Rename
367 "inside_entry_file".
368 * blockframe.c (deprecated_inside_entry_file): Rename
369 "inside_entry_file".
370 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
371 * vax-tdep.c (vax_frame_chain): Update.
372 * sh64-tdep.c (sh64_frame_chain): Update.
373 * sh-tdep.c (sh_frame_chain): Update.
374 * rs6000-tdep.c (rs6000_frame_chain): Update.
375 * ns32k-tdep.c (ns32k_frame_chain): Update.
376 * mips-tdep.c (mips_frame_chain): Update.
377 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
378 * m32r-tdep.c (m32r_frame_this_id): Update.
379 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
380 * frv-tdep.c (frv_frame_this_id): Update.
381 * d10v-tdep.c (d10v_frame_this_id): Update.
382 * cris-tdep.c (cris_frame_chain): Update.
383 * blockframe.c (legacy_frame_chain_valid): Update.
384 * avr-tdep.c (avr_frame_this_id): Update.
385 * arm-tdep.c (arm_prologue_this_id): Update.
386 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
387 * objfiles.c (objfile_relocate): Update.
388 * mipsread.c (mipscoff_symfile_read): Update.
389 (mipscoff_symfile_read): Update.
390 * mdebugread.c (parse_partial_symbols): Update.
391 * dwarfread.c (read_file_scope): Update.
392 * dwarf2read.c (read_file_scope): Update.
393 * dbxread.c (read_dbx_symtab): Update.
394 (read_dbx_symtab): Update.
395 * coffread.c (complete_symtab): Update.
396
397 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
398
399 * top.c (quit_target): New static helper function.
400 (quit_force): Moved code to quit_target(). Call quit_target()
401 via catch_errors() to catch errors during quit.
402
403 2003-09-11 David Carlton <carlton@kealia.com>
404
405 * buildsym.c (finish_block): Use allocate_block to allocate the
406 block.
407 * mdebugread.c (new_block): Add FIXME.
408
409 2003-09-11 David Carlton <carlton@kealia.com>
410
411 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
412 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
413 (recursive_dump_type): Ditto.
414 * printcmd.c (print_formatted): Ditto.
415 * typeprint.c (print_type_scalar): Ditto.
416 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
417 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
418 * cp-support.h: Declare cp_check_possible_namespace_symbols,
419 maint_cplus_cmd_list.
420 * cp-support.c: Make maint_cplus_cmd_list extern.
421 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
422 command.h.
423 (lookup_symbol_file): Look in possible namespace blocks when
424 appropriate.
425 (initialize_namespace_symtab): New.
426 (get_possible_namespace_block, free_namespace_block)
427 (check_possible_namespace_symbols)
428 (check_possible_namespace_symbols_loop)
429 (check_one_possible_namespace_symbol)
430 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
431 (_initialize_cp_namespace): Ditto.
432 * block.h: Declare allocate_block.
433 * block.c (allocate_block): New.
434 * jv-lang.c (get_java_class_symtab): Allocate blocks via
435 allocate_block.
436 * symfile.h: Update declaration of add_psymbol_to_list.
437 * symfile.c (add_psymbol_to_list): Return the partial symbol in
438 question.
439 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
440 scan_partial_symbols_call.
441 (scan_partial_symbols): Add NAMESPACE argument; update calls to
442 helper functions.
443 (add_partial_symbol): If necessary, scan mangled names for names
444 of namespaces.
445 (add_partial_namespace): Add NAMESPACE argument; generate partial
446 symbols associated to namespaces.
447 (add_partial_enumeration): Add NAMESPACE argument.
448 (new_symbol): Allow namespace syms.
449 (read_namespace): Generate namespace syms.
450 * objfiles.h: Add opaque declaration of struct symtab.
451 (struct objfile): Add cp_namespace_symtab member.
452 * objfiles.c (allocate_objfile): Set
453 objfile->cp_namespace_symtab.
454 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
455 dictionary_h, command_h.
456
457 2003-09-11 Andrew Cagney <cagney@redhat.com>
458
459 * rs6000-tdep.c (rs6000_push_dummy_call): Use
460 regcache_raw_write_signed to set SP_REGNUM, move the operation to
461 near the function's end.
462 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
463 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
464 regcache_raw_write_signed to set SP_REGNUM.
465
466 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
467
468 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
469 orig_addrs is set up properly.
470
471 2003-09-11 Andrew Cagney <cagney@redhat.com>
472
473 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
474 * gdbarch.h, gdbarch.c: Re-generate.
475 * infcall.c (call_function_by_hand): Update.
476 * hppa-tdep.c (hppa_push_arguments): Update.
477 * ada-lang.c (place_on_stack): Update.
478 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
479 * sparc-tdep.c (sparc_gdbarch_init): Update.
480 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
481 * hppa-tdep.c (hppa_gdbarch_init): Update.
482 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
483 stack_align.
484
485 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
486
487 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
488 register do need a frame.
489
490 2003-09-11 Andrew Cagney <cagney@redhat.com>
491
492 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
493 buildable since GDB 5.0.
494 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
495 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
496 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
497 * irix4-nat.c: Delete file.
498 * config/mips/irix4.mh: Delete file.
499 * config/mips/irix3.mh: Delete file.
500 * config/mips/irix3.mt: Delete file.
501 * config/mips/tm-irix3.h: Delete file.
502 * config/mips/nm-irix3.h: Delete file.
503 * config/mips/xm-irix3.h: Delete file.
504 * config/mips/nm-irix4.h: Delete file.
505 * config/mips/xm-irix4.h: Delete file.
506 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
507
508 2003-09-10 J. Brobecker <brobecker@gnat.com>
509
510 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
511 * Makefile.in (hppa-tdep.o): Update dependencies.
512
513 2003-09-10 James E Wilson <wilson@specifixinc.com>
514
515 * MAINTAINERS: Change my e-mail address. Move to paper trail
516 section.
517
518 2003-09-10 Kevin Buettner <kevinb@redhat.com>
519
520 * MAINTAINERS (frv): New ISA entry.
521
522 2003-09-10 Kevin Buettner <kevinb@redhat.com>
523
524 * frv-tdep.c (dis-asm.h): Include.
525 * Makefile.in (frv-tdep.o): Update dependencies.
526
527 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
528
529 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
530 Fix typo for high range of floating registers.
531
532 2003-09-09 David Carlton <carlton@kealia.com>
533
534 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
535 highpc initialization here out of scan_partial_symbols.
536 (scan_partial_symbols): Restructure into a recursive version,
537 calling add_partial_namespace and add_partial_enumeration when
538 appropriate.
539 (add_partial_namespace): New.
540 (add_partial_enumeration, locate_pdi_sibling): Ditto.
541
542 2003-09-09 Andrew Cagney <cagney@redhat.com>
543
544 * rs6000-tdep.c (ppc_push_return_address): Delete function.
545 (rs6000_push_dummy_call): Set LR to BP_ADDR.
546 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
547 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
548
549 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
550 (rs6000_push_dummy_call): Set the "TOC" register.
551
552 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
553 methods "max_register_raw_size", "max_register_virtual_size" or
554 "register_virtual_size".
555
556 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
557
558 * MAINTAINERS: Update my e-mail address.
559
560 2003-09-09 Andrew Cagney <cagney@redhat.com>
561
562 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
563 (rs6000_push_dummy_call): Store the struct return address.
564 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
565
566 2003-09-09 Andrew Cagney <cagney@redhat.com>
567
568 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
569 "ppc_sysv_abi_push_arguments".
570 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
571 "ppc_sysv_abi_push_arguments".
572 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
573 instead of "push_arguments".
574 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
575
576 2003-09-09 Andrew Cagney <cagney@redhat.com>
577
578 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
579 instead of CALL_DUMMY_ADDRESS.
580
581 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
582
583 * p-lang.c: Eliminate "register".
584 * c-lang.c: Ditto.
585 * expprint.c: Ditto.
586 * f-lang.c: Ditto.
587 * jv-lang.c: Ditto.
588 * language.c: Ditto.
589 * m2-lang.c: Ditto.
590 * parse.c: Ditto.
591 * scm-lang.c: Ditto.
592 * objc-lang.c: Ditto.
593
594 2003-09-09 Nick Clifton <nickc@redhat.com>
595
596 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
597
598 2003-09-04 Andrew Cagney <cagney@redhat.com>
599
600 * avr-tdep.c: Include "dis-asm.h".
601 * cris-tdep.c: Include "dis-asm.h".
602 (cris_delayed_get_disassembler): Use "struct disassemble_info"
603 instead of corresponding typedef.
604 * h8300-tdep.c: Include "dis-asm.h".
605 * ia64-tdep.c: Include "dis-asm.h".
606 * i386-tdep.c: Include "dis-asm.h".
607 (i386_print_insn): Use "struct disassemble_info" instead of
608 corresponding typedef.
609 * m68k-tdep.c: Include "dis-asm.h".
610 * mcore-tdep.c: Include "dis-asm.h".
611 * mips-tdep.c: Include "dis-asm.h".
612 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
613 instead of corresponding typedef.
614 * ns32k-tdep.c: Include "dis-asm.h".
615 * s390-tdep.c: Include "dis-asm.h".
616 * sparc-tdep.c: Include "dis-asm.h".
617 * vax-tdep.c: Include "dis-asm.h".
618 * v850-tdep.c: Include "dis-asm.h".
619 * mn10300-tdep.c: Include "dis-asm.h".
620 * rs6000-tdep.c: Include "dis-asm.h".
621 * xstormy16-tdep.c: Include "dis-asm.h".
622 (_initialize_xstormy16_tdep): Delete "extern" declaration of
623 print_insn_xstormy16.
624 * Makefile.in (v850-tdep.o): Update dependencies.
625 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
626 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
627 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
628 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
629 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
630 (gdbarch_h): Remove $(dis_asm_h).
631 * disasm.c: Include "dis-asm.h".
632 (dis_asm_read_memory): Use "struct disassemble_info" instead of
633 corresponding typedef.
634 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
635 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
636 * gdbarch.sh: Do not include "dis-asm.h".
637 (struct disassemble_info): Declare opaque.
638 (TARGET_PRINT_INSN): Update declaration.
639 * gdbarch.h, gdbarch.c: Re-generate.
640
641 2003-09-08 Andrew Cagney <cagney@redhat.com>
642
643 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
644 CALL_DUMMY_ADDRESS, change to a predicate.
645 * gdbarch.h, gdbarch.c: Re-generate.
646 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
647 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
648 * infcall.c (call_function_by_hand): Ditto.
649 * sparc-tdep.c (sparc_push_return_address): Ditto.
650 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
651 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
652 CALL_DUMMY_ADDRESS with entry_point_address.
653 * v850-tdep.c (v850_push_return_address): Ditto.
654 * s390-tdep.c (s390_push_return_address): Ditto.
655 * rs6000-tdep.c (ppc_push_return_address): Ditto.
656 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
657 * mcore-tdep.c (mcore_push_return_address): Ditto.
658 * cris-tdep.c (cris_push_return_address): Ditto.
659 * arm-tdep.c (arm_push_return_address): Ditto.
660
661 2003-09-08 Andrew Cagney <cagney@redhat.com>
662
663 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
664 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
665 and REG_UNMODIFIED to REG_SAME_VALUE.
666 (execute_cfa_program): Update.
667 (dwarf2_frame_cache): Update. Initialize table to
668 REG_UNSPECIFIED, complain if CFI fails to specify a register's
669 location.
670 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
671
672 2003-09-08 Andrew Cagney <cagney@redhat.com>
673
674 * gnu-nat.c: Remove "inline" function attribute.
675 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
676
677 2003-09-08 Kevin Buettner <kevinb@redhat.com>
678
679 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
680 target.
681
682 2003-09-08 Kevin Buettner <kevinb@redhat.com>
683
684 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
685 (frame_extra_info): Rename this struct to frv_unwind_cache.
686 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
687 Add fields ``prev_sp'' and ``base''.
688 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
689 (frv_saved_pc_after_call, frv_init_extra_frame_info)
690 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
691 Delete.
692 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
693 Revise all callers. Fill in the unwind cache argument and make
694 other adjustments to account for new frame mechanisms.
695 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
696 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
697 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
698 (frv_frame_unwind, frv_frame_base): New structs.
699 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
700 additional arguments expected by this method and adjust function
701 body accordingly.
702 (frv_gdbarch_init): Remove calls to the following functions:
703 set_gdbarch_deprecated_init_frame_pc(),
704 set_gdbarch_deprecated_saved_pc_after_call(),
705 set_gdbarch_deprecated_frame_chain(),
706 set_gdbarch_deprecated_frame_saved_pc(),
707 set_gdbarch_deprecated_frame_init_saved_regs(),
708 set_gdbarch_deprecated_push_arguments(),
709 set_gdbarch_deprecated_push_return_address(),
710 set_gdbarch_deprecated_pop_frame(),
711 set_gdbarch_deprecated_call_dummy_words(),
712 set_gdbarch_deprecated_sizeof_call_dummy_words(),
713 set_gdbarch_deprecated_init_extra_frame_info(),
714 set_gdbarch_deprecated_dummy_write_sp(), and
715 set_gdbarch_deprecated_pc_in_call_dummy().
716 Add calls to the following functions:
717 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
718 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
719 frame_base_set_default().
720 * Makefile.in (frv-tdep.o): Update dependencies.
721
722 2003-09-09 Mark Kettenis <kettenis@gnu.org>
723
724 * dwarf2-frame.c (read_encoded_value): Add support for
725 DW_EH_PE_aligned encoding.
726
727 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
728
729 * infrun.c (normal_stop): Don't print a message if the inferior
730 has exited.
731
732 2003-09-08 Jim Blandy <jimb@redhat.com>
733
734 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
735 * dbxread.c: #include "gdb_assert.h".
736 (read_dbx_symtab): If the objfile has no .data section, use the
737 section index for the .bss section instead.
738
739 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
740
741 * frame.c (deprecated_safe_get_selected_frame): New function.
742 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
743 * findvar.c (read_var_value): Call it.
744
745 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
746
747 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
748 (sh64-tdep.o): Add dependencies.
749 * configure.tgt: Add FIXME to sh-*-linux*.
750 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
751 (sh_gdbarch_init): Always set correct sh_show_regs function
752 pointer. Call sh64_gdbarch_init() if machine type is sh5.
753 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
754 * sh64-tdep.c: New file, containing all sh64 related code from
755 sh-tdep.c.
756 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
757 * config/sh/linux.mt (TDEPFILES): Ditto.
758 * config/sh/nbsd.mt (TDEPFILES): Ditto.
759 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
760 * config/sh/wince.mt (TDEPFILES): Ditto.
761
762 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
763
764 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
765 (stop_wait_callback): Handle !lp->signalled also.
766 (lin_lwp_has_pending, flush_callback): New functions.
767 (lin_lwp_wait): Call flush_callback.
768 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
769 (linux_proc_pending_signals): New function.
770 * linux-nat.h (linux_proc_pending_signals): Add prototype.
771
772 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
773
774 From Nick Kelsey <nickk@ubicom.com>:
775 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
776 when the stop PC is at the beginning of a function also.
777
778 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
779
780 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
781 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
782
783 2003-09-06 Mark Kettenis <kettenis@gnu.org>
784
785 * sol-thread.c: Include "gdb_string.h".
786
787 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
788
789 * gcore.c: Reorder include files in alphabetical order. Include
790 "gdb_assert.h". Various coding style fixes.
791 (derive_stack_segment, derive_heap_segment): Replace check for
792 non-null BOTTOM and TOP with gdb_assert.
793 (derive_heap_segment): Replace check for successful creation of
794 ZERO with gdb_assert.
795 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
796
797 2003-09-04 Andrew Cagney <cagney@redhat.com>
798
799 * thread-db.c (verbose_dlsym): New function.
800 (thread_db_load): Use verbose_dlsym
801 (thread_db_new_objfile): Print that libthread_db was loaded, and
802 that thread debugging was enabled.
803
804 2003-09-04 Andrew Cagney <cagney@redhat.com>
805
806 * configure.tgt: Add "mips64*-*-*" target. Delete
807 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
808 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
809 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
810 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
811 mips*-sony-*, and mips64*-*-elf* targets.
812 * config/mips/embedl.mt: Delete file.
813 * config/mips/embedl64.mt: Delete file.
814 * config/mips/mips.mt: Delete file.
815 * config/mips/mips64.mt: Delete file.
816 * config/mips/tm-embed.h: Delete file.
817 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
818 * config/mips/embed64.mt: Delete out-of-date comment.
819
820 2003-09-04 Andrew Cagney <cagney@redhat.com>
821
822 * hppa-tdep.c (hppa_gdbarch_init): Set
823 "have_nonsteppable_watchpoint".
824 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
825 * mips-tdep.c (mips_dump_tdep): Do not print
826 HAVE_NONSTEPPABLE_WATCHPOINT.
827 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
828 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
829 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
830 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
831
832 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
833
834 * breakpoint.c (watchpoint_check): Remove accidentally checked in
835 unused code. Add comment.
836
837 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
838
839 * breakpoint.c (watchpoint_check): Check for pc being in an
840 epilogue if watchpoint frame couldn't be found.
841
842 2003-09-04 Andrew Cagney <cagney@redhat.com>
843
844 * Makefile.in: Re-generate all dependencies.
845
846 2003-09-03 Andrew Cagney <cagney@redhat.com>
847
848 * arch-utils.h (legacy_print_insn): Delete declaration.
849 * arch-utils.c (legacy_print_insn): Delete function.
850 * disasm.c (deprecated_tm_print_insn_info): Delete.
851 (_initialize_disasm): Delete function, contained code initializing
852 deprecated_tm_print_insn_info.
853 * gdbarch.sh (deprecated_tm_print_insn): Delete.
854 (deprecated_tm_print_insn_info): Delete.
855 (TARGET_PRINT_INSN): Do not provide a default.
856 * gdbarch.h, gdbarch.c: Re-generate.
857
858 2003-09-03 Andrew Cagney <cagney@redhat.com>
859
860 * disasm.c (fprintf_disasm): New function.
861 (gdb_disassemble_info): Call "init_disassemble_info", instead of
862 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
863 reverts 2003-08-14 change.
864 (_initialize_disasm): Call "init_disassemble_info", instead of
865 INIT_DISASSEMBLE_INFO_NO_ARCH.
866
867 2003-09-03 Michael Snyder <msnyder@redhat.com>
868
869 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
870
871 2003-09-03 Andrew Cagney <cagney@redhat.com>
872
873 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
874 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
875 * symfile.c (syms_from_objfile): Update.
876 (reread_symbols): `Update
877 * exec.c (exec_file_attach): Update.
878 (exec_file_attach): Update.
879 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
880 2003-08-29 change.
881 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
882
883 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
884
885 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
886 trad-frame.h.
887 (arm_get_cache): Delete macro.
888 (struct arm_prologue_cache): Update comments. Make saved_regs into
889 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
890 to prev_sp.
891 (thumb_scan_prologue): Update for cache changes. Don't call
892 DEPRECATED_PC_IN_CALL_DUMMY.
893 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
894 argument and use it in desperation search for our prologue. Do not
895 search past the specified PC.
896 (arm_make_prologue_cache): Simplify.
897
898 (arm_prologue_this_id, arm_prologue_prev_register)
899 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
900 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
901 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
902 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
903 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
904
905 (arm_frame_chain_valid, arm_find_callers_reg)
906 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
907 (arm_pop_frame): Delete obsolete methods.
908 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
909
910 (arm_gdbarch_init): Update for new frame methods. Register prologue
911 and sigtramp unwinders. Set the default frame base method.
912
913 * Makefile.in (arm-tdep.o): Update dependencies.
914 * varobj.c (find_frame_addr_in_frame_chain): Call
915 get_frame_base_address.
916 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
917
918 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
919
920 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
921 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
922 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
923 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
924 Take NEXT_FRAME and CACHE arguments. Call
925 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
926 Set unwound_pc in CACHE instead of modifying the frame argument.
927 Don't bother checking the frame type when looking for sigtramp
928 frames.
929 (arm_make_prologue_cache, arm_frame_chain)
930 (arm_init_extra_frame_info): New functions.
931
932 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
933
934 * arm-tdep.c (arm_get_cache): Define.
935 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
936 unwound_sp, unwound_pc, and saved_regs.
937 (thumb_scan_prologue): Take a cache instead of the frame.
938 (arm_scan_prologue): Likewise.
939 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
940 instead of a temporary frame.
941 (arm_init_extra_frame_info): Allocate and use a cache.
942 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
943
944 2003-09-03 Andrew Cagney <cagney@redhat.com>
945
946 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
947 * config/mips/wince.mt (TM_CLIBS): Ditto.
948 * config/sh/wince.mt (TM_CLIBS): Ditto.
949 * config/pa/hppa64.mt (TM_CLIBS): Delete.
950 * config/sparc/sp64.mt (CC): Delete.
951
952 2003-09-03 Andrew Cagney <cagney@redhat.com>
953
954 * defs.h: Do not include "arch-utils.h".
955 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
956 GDB_MULTI_ARCH_PURE.
957 * configure.in (GDB_MULTI_ARCH): Do not define.
958 * configure, config.in: Regenerate.
959 * configure.tgt: Do not set variable "gdb_multi_arch".
960 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
961 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
962 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
963 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
964 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
965 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
966 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
967 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
968 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
969 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
970 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
971 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
972 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
973 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
974 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
975 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
976 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
977 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
978
979 2003-08-30 Michael Chastain <mec@shout.net>
980
981 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
982 * config/m68k/nm-hp300hpux.h: Delete.
983 * config/m68k/tm-hp300hpux.h: Delete.
984 * config/m68k/xm-hp300hpux.h: Delete.
985 * config/m68k/xm-hp300bsd.h: Delete.
986 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
987 tm-hp300hpux.h, xm-hp300hpux.h.
988 * somsolib.c: Remove comment about hp300 shared libraries.
989
990 2003-08-31 Mark Kettenis <kettenis@gnu.org>
991
992 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
993 Only define PTRACE_GET_THREAD_AREA is not already defined.
994 Various style fixes in code and comments and some additional
995 spelling fixes in comments. Move after functions dealing with
996 debug registers.
997 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
998 Fix coding-style.
999
1000 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1001 frame_unwind_register_unsigned instead of
1002 frame_unwind_unsigned_register.
1003
1004 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1005
1006 * configure.in: Search for gethostbyname in libnsl.
1007 * configure: Regenerated.
1008
1009 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1010
1011 * configure.in: Remove redundant AC_MSG_RESULT in check for
1012 uintptr_t in stdint.h.
1013 * configure: Regenerated.
1014
1015 * amd64-nat.h (struct regcache): Add opaque declaration.
1016
1017 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1018 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1019 Change "register array" to "register cache" in comments.
1020 (x86_64_linux_gregset64_reg_offset): New variable.
1021 (GETREGS_SUPPLIES): Remove macro.
1022 (supply_gregset): Call amd64_supply_native_gregset instead of
1023 x86_64_linux_supply_gregset.
1024 (fill_gregset): Rename `regno' to `regnum'. Call
1025 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1026 (store_regs): Rename `regno' to `regnum'.
1027 (store_fpregs): Rename `regno' to `regnum'.
1028 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1029 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1030 Reorganize function a bit.
1031 (store_inferior_registers): Rename `regno' to `regnum'. Use
1032 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1033 Reorganize function a bit.
1034 (_initialize_x86_64_linux_nat): New function.
1035 * config/i386/x86-64linux.mh.
1036
1037 2003-08-29 Andrew Cagney <cagney@redhat.com>
1038
1039 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1040 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1041 (target_remove_watchpoint): Delete macro.
1042 (target_insert_watchpoint): Delete macro.
1043 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1044 (remote_mips_stopped_by_watchpoint): Delete declaration.
1045 (remote_mips_remove_watchpoint): Delete declaration.
1046 (remote_mips_set_watchpoint): Delete declaration.
1047 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1048 * remote-mips.c (_initialize_remote_mips): Set
1049 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1050 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1051 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1052 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1053 (mips_stopped_by_watchpoint): Rename
1054 remote_mips_stopped_by_watchpoint.
1055 (mips_can_hardware_watchpoint): Rename
1056 remote_mips_can_use_hardware_watchpoint, update function
1057 signature.
1058
1059 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1060
1061 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1062 USER_DS. We haven't given them a register number yet.
1063
1064 * amd64-nat.h: New file.
1065 * amd64-nat.c: New file.
1066 * amd64fbsd-nat.c: Include "amd64-nat.h".
1067 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1068 (amd64fbsd32_r_reg_offset): New variable.
1069 (supply_gregset): Simply call amd64_supply_native_gregset.
1070 (fill_gregset): Rename `regno' to `regnum'. Simply call
1071 amd64_collect_native_gregset.
1072 (fill_fpregset): Rename `regno' to `regnum'.
1073 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1074 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1075 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1076 `fpregset_t'. Call amd64_supply_native_gregset instead of
1077 supply_gregset. Call x86_64_supply_fxsave instead of
1078 supply_fpregset.
1079 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1080 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1081 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1082 `fpregset_t'. Call amd64_collect_native_gregset instead of
1083 fill_gregset. Call x86_64_collect_fxsave instead of
1084 fill_fpregset.
1085 (_initialize_am64fbsd_nat): Initialize
1086 amd64_native_gregset32_reg_offset and
1087 amd64_native_gregset64_reg_offset.
1088 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1089
1090 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1091 null pointer. Fix typo in comment.
1092
1093 * regcache.c (supply_register): Reimplement to call
1094 regcache_raw_supply.
1095 (regcache_collect): Reimplement by calling regcache_raw_collect.
1096
1097 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1098
1099 * regcache.c (register_buffer): Consitify first argument.
1100 (regcache_raw_supply, regcache_raw_collect): New
1101 functions.
1102
1103 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1104
1105 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1106 by Nathan J. Williams.
1107
1108 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1109
1110 * lin-lwp.c (wait_lwp): New function, copied from
1111 stop_wait_callback. Clean up.
1112 (stop_wait_callback): Use wait_lwp.
1113
1114 2003-08-28 Andrew Cagney <cagney@redhat.com>
1115
1116 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1117 flavour and disassembler options.
1118 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1119 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1120 deprecated_tm_print_insn_info.
1121
1122 2003-08-27 Andrew Cagney <cagney@redhat.com>
1123
1124 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1125 Use target_read_memory.
1126 (s390_get_frame_info): Update. Do not reference
1127 deprecated_tm_print_insn_info.
1128 (s390_check_function_end, s390_is_sigreturn): Ditto.
1129
1130 2003-08-27 Andrew Cagney <cagney@redhat.com>
1131
1132 * Makefile.in (cris-tdep.o): Update dependencies.
1133 * cris-tdep.c: Include "gdb_assert.h".
1134 (cris_gdbarch_init): Set print_insn.
1135 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1136 (cris_delayed_get_disassembler): Simplify, directly call the
1137 disassembler returned by cris_get_disassembler.
1138 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1139 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1140 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1141 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1142 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1143 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1144 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1145 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1146 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1147 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1148 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1149 (gdb_print_insn_sparc): Delete function.
1150 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1151 deprecated_tm_print_insn_info.
1152 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1153 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1154 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1155 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1156 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1157 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1158 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1159 (s390_gdbarch_init): Set print_insn.
1160
1161 2003-08-27 Andrew Cagney <cagney@redhat.com>
1162
1163 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1164 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1165 * infcall.c (call_function_by_hand): Convert the entry point
1166 address into a code address.
1167
1168 2003-08-27 Andrew Cagney <cagney@redhat.com>
1169
1170 * dsrec.c: Include "gdb_string.h".
1171 * Makefile.in (dsrec.o): Update dependencies.
1172
1173 2003-08-27 Michael Chastain <mec@shout.net>
1174
1175 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1176
1177 2003-08-27 Andrew Cagney <cagney@redhat.com>
1178
1179 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1180 (alpha_osf1_init_abi): Do not set call_dummy_address.
1181
1182 2003-08-27 David Carlton <carlton@kealia.com>
1183
1184 From Randolph Chung <tausq@debian.org>:
1185 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1186 compiles with -Wformat-nonliteral -Werror.
1187
1188 2003-08-26 Jim Blandy <jimb@redhat.com>
1189
1190 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1191 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1192 bfd_lookup_symbol, since we only want symbols in code sections.
1193 (look_for_base): Pass zero as the SECT_FLAGS argument to
1194 bfd_lookup_symbol, since we're not concerned about which section
1195 the symbol is in.
1196
1197 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1198
1199 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1200 we are frameless or the return address register is already known.
1201
1202 2003-08-26 Andrew Cagney <cagney@redhat.com>
1203
1204 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1205 in size. Add comments.
1206
1207 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1208
1209 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1210 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1211
1212 2003-08-26 Jason Merrill <jason@redhat.com>
1213
1214 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1215 case out of #ifdef MIPS block.
1216
1217 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1218
1219 PR java/1322
1220 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1221 available before calling SECT_OFF_TEXT.
1222 * PROBLEMS: Remove description of java/1322.
1223
1224 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1225
1226 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1227 bof, and nat0-nat127 as pseudo-registers.
1228 (ia64_frame_cache): New struct used to cache frame info.
1229 (ia64_register_reggroup_p): New routine used to override default
1230 register grouping so registers without names are still saved and
1231 restored.
1232 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1233 pseudo values.
1234 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1235 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1236 (ia64_alloc_frame_cache): New routine to create a new
1237 ia64_frame_cache.
1238 (examine_prologue): Change prototype to add next_frame pointer.
1239 Assume frameless until otherwise proven. Verify that the cfm for
1240 current frame matches the cfm that should occur for the prologues
1241 alloc insn and if equal, mark as not frameless. At end of routine,
1242 if not frameless, calculate registers for the previous frame and store
1243 in the cache, if a cache is provided.
1244 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1245 and pass 0 for next_frame.
1246 (ia64_store_return_value): Change to use convert_typed_floating()
1247 instead of calling ia64_convert_to_raw().
1248 (ia64_extract_return_value): Change to use convert_typed_floating()
1249 instead of calling ia64_convert_to_virtual().
1250 (ia64_frame_cache): New routine to support new frame model.
1251 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1252 (ia64_frame_sniffer): Ditto.
1253 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1254 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1255 (ia64_sigtramp_frame_prev_register): Ditto.
1256 (ia64_sigtramp_frame_sniffer): Ditto.
1257 (ia64_frame_base_address): Ditto.
1258 (ia64_extract_struct_value_address): Change to issue error message.
1259 (ia64_frame_align): New routine to align sp.
1260 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1261 (ia64_push_arguments): Removed. Logic moved to
1262 ia64_push_dummy_call().
1263 (ia64_push_return_address): Ditto.
1264 (ia64_unwind_dummy_id): New function.
1265 (ia64_unwind_pc): Ditto.
1266 (ia64_convert_register_p): Ditto.
1267 (ia64_register_to_value): Ditto.
1268 (ia64_value_to_register): Ditto.
1269 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1270 (ia64_register_byte, ia64_register_raw_size): Ditto.
1271 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1272 (ia64_saved_pc_after_call): Ditto.
1273 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1274 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1275 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1276 (ia64_register_convert_to_raw): Ditto.
1277 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1278 (ia64_init_extra_frame_info): Ditto.
1279 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1280 (ia64_gdbarch_init): Remove registering of deprecated functions that
1281 are no longer used. Add registration of new gdbarch functions.
1282 Remove registering deprecated_write_sp. Replace
1283 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1284 Delete set_gdbarch_deprecated_register_convertible(),
1285 set_gdbarch_deprecated_register_convert_to_virtual(), and
1286 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1287 set_gdbarch_deprecated_register_size(),
1288 set_gdbarch_deprecated_register_bytes(),
1289 set_gdbarch_pcregnum(),
1290 set_gdbarch_deprecated_register_byte(),
1291 set_gdbarch_deprecated_register_raw_size(),
1292 set_gdbarch_deprecated_max_register_raw_size(),
1293 set_gdbarch_deprecated_register_virtual_size(),
1294 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1295 Replace set_gdbarch_deprecated_extract_return_value() with
1296 set_gdbarch_extract_return_value(). Remove calls to:
1297 set_gdbarch_deprecated_saved_pc_after_call();
1298 set_gdbarch_deprecated_frame_chain(),
1299 set_gdbarch_deprecated_frame_saved_pc(),
1300 set_gdbarch_deprecated_frame_init_saved_regs(),
1301 set_gdbarch_deprecated_get_saved_register(),
1302 set_gdbarch_deprecated_call_dummy_words(),
1303 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1304 set_gdbarch_deprecated_init_extra_frame_info(),
1305 set_gdbarch_deprecated_frame_args_address(),
1306 set_gdbarch_deprecated_frame_locals_address(),
1307 and set_gdbarch_deprecated_dummy_write_sp().
1308 Add set_gdbarch_convert_register_p(),
1309 set_gdbarch_register_to_value(),
1310 set_gdbarch_value_to_register(),
1311 set_gdbarch_push_dummy_call(),
1312 set_gdbarch_frame_align(),
1313 set_gdbarch_unwind_dummy_id(),
1314 set_gdbarch_unwind_pc(),
1315 frame_unwind_append_sniffer(),
1316 frame_unwind_append_sniffer(),
1317 and frame_base_set_default().
1318
1319 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1320
1321 * configure.tgt: Document need for special "mipsisa64" handling.
1322 (mipsisa64*-*-linux64): Handle as target linux64.
1323 (mipsisa64*-*-*): Handle as target embed64.
1324
1325 2003-08-18 Michael Chastain <mec@shout.net>
1326
1327 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1328 objfile bug.
1329
1330 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1331
1332 * i387-tdep.h: Update copyright date.
1333 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1334
1335 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1336 CFLAGS games to reflect reality.
1337
1338 2003-08-24 Andrew Cagney <cagney@redhat.com>
1339
1340 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1341 GDB_MULTI_ARCH is always non-zero.
1342 * osabi.c (_initialize_gdb_osabi): Ditto.
1343 (gdbarch_init_osabi): Ditto.
1344 * sparc-tdep.c: Ditto for #if code.
1345
1346 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1347
1348 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1349 Update comments.
1350 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1351 comments.
1352 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1353 x86_64_supply_fxsave.
1354 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1355 x86_64_supply_fxsave.
1356 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1357 x86_64_supply_fxsave.
1358
1359 2003-08-23 Andreas Jaeger <aj@suse.de>
1360
1361 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1362 i387_supply_fxsave.
1363
1364 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1365
1366 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1367 i387_supply_register.
1368 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1369 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1370 i387_supply_fsave.
1371 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1372 i387_supply_fxsave.
1373 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1374 i387_supply_fsave.
1375 * i386bsd-nat.c (supply_fpregset): Adjust call to
1376 i387_supply_fsave.
1377 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1378 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1379 supply_fpregset.
1380 (store_inferior_registers): Remove extraneous whitespace. Call
1381 i387_fill_fsave instead of fill_fpregset.
1382 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1383 (supply_fpregset): Likewise.
1384 * i386v4-nat.c (supply_fpregset): Adjust call to
1385 i387_supply_fsave.
1386 * i386-interix-nat.c (supply_fpregset): Adjust call to
1387 i387_supply_fsave.
1388 * i386-linux-nat.c (supply_fpregset): Adjust call to
1389 i387_supply_fsave.
1390 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1391 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1392 i387supply_fsave and i387_supply_fxsave.
1393 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1394 Incorporate code from `i387_supply_register.
1395 (i387_supply_register): Remove.
1396 (i387_supply_fxsave): Add `regnum' argument.
1397 Update comments.
1398 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1399 prototype.
1400 (i387_supply_register): remove prototype.
1401 Update comments.
1402
1403 2003-08-22 Michael Chastain <mec@shout.net>
1404
1405 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1406 Add lines for files in gdb/testsuite/gdb.cp/* that are
1407 still not 8.3 unique.
1408
1409 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1410
1411 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1412 TYPE_VPTR_FIELDNO is valid.
1413
1414 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1415
1416 * utils.c (set_width_command): Remove prototypes.
1417 (set_screen_size): New prototype.
1418 (init_page_info): Simplify by fetching the screen size from
1419 Readline. Call set_screen_size.
1420 (set_screen_size): New function.
1421 (set_width): Add missing whitespace in comment.
1422 (set_width_command): Call set_screen_size.
1423 (set_height_command): New function.
1424 (initialize_utils): Fix formatting. Make "set height" command
1425 call set_height_command. Remove redundant code that turns off
1426 pagination if output isn't a terminal. Remove redundant call to
1427 set_width_command.
1428
1429 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1430
1431 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1432 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1433 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1434 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1435 `case' keyword.
1436 (sparc64_register_info): Give the reister with number
1437 SPARC64_STATE_REGNUM a name.
1438 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1439 %asi and %ccr.
1440 (sparc64_push_dummy_call): Take BIAS into account when checking
1441 stcak alignment.
1442 (sparc_software_single_step): Remove assertions that check whether
1443 NPC and NNPC were zero.
1444 (sparc_supply_rwindow): Make public. Merge functionality with
1445 sparc64_supply_rwindow.
1446 (sparc_fill_rwindow): Make public. Merge functionality with
1447 sparc64_fill_rwindow.
1448 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1449 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1450 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1451 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1452 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1453
1454 * reggroups.c: Add whitespace after declarations of local
1455 variables in functions.
1456
1457 2003-08-21 Michael Chastain <mec@shout.net>
1458
1459 * gdbtypes.h: Change array bound type from an int to enum.
1460
1461 2003-08-21 Andrew Cagney <cagney@redhat.com>
1462
1463 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1464 * config/sparc/tm-sparc.h: Ditto.
1465 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1466 unconditionally.
1467 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1468
1469 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1470
1471 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1472 (register_objfile_data, set_objfile_data, objfile_data): New
1473 prototypes.
1474 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1475 prototypes.
1476 (allocate_objfile): Call objfile_alloc_data.
1477 (free_objfile): Call objfile_free_data.
1478 (struct objfile_data): New.
1479 (struct objfile_data_registration): New.
1480 (struct objfile_data_registry): New.
1481 (objfile_data_registry): New variable.
1482 (register_objfile_data): New function.
1483 (objfile_alloc_data, objfile_free_data): New functions.
1484 (set_objfile_data, objfile_data): New functions.
1485 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1486 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1487 (_initialize_dwarf2_frame): New function and prototype.
1488
1489 2003-08-21 Andrew Cagney <cagney@redhat.com>
1490
1491 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1492 a specific architecture.
1493 * arch-utils.h (set_architecture_from_arch_mach): Delete
1494 declaration.
1495 (target_architecture_hook): Delete declaration.
1496 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1497 (default_float_format): Assume GDB_MULTI_ARCH.
1498 (default_double_format): Assume GDB_MULTI_ARCH.
1499 (set_endian_from_file): Delete function.
1500 (arch_ok): Delete function.
1501 (set_arch): Delete function.
1502 (set_architecture_from_arch_mach): Delete function.
1503 (set_architecture_from_file): Delete function.
1504 (set_architecture): Assume GDB_MULTI_ARCH.
1505 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1506
1507 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1508
1509 Rewrite FreeBSD/sparc64 native configuration.
1510 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1511 * sparc64fbsd-nat.c: New file.
1512 * sparc64fbsd-tdep.c: New file.
1513 * sparc64-tdep.c sparc64-tdep.h: New files.
1514 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1515 sparc64fbsd-tdep.o): New dependencies.
1516 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1517 and sparc64fbsd-tdep.c.
1518 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1519 * config/sparc/fbsd.mh: Remove copyright notice.
1520 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1521 sparcbsd-nat.o.
1522 * config/sparc/fbsd.mt: Remove copyright notice.
1523 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1524 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1525 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1526 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1527 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1528 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1529 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1530 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1531 "sparc/tm-sp64.h".
1532 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1533 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1534
1535 2003-08-21 Michael Chastain <mec@shout.net>
1536
1537 * symtab.h: Add doco on the space critical structures and
1538 some measurements of space usage.
1539
1540 2003-08-21 Michael Snyder <msnyder@redhat.com>
1541
1542 * tracepoint.c (trace_dump_command): Trace break address
1543 is subject to DECR_PC_AFTER_BREAK.
1544 (set_traceframe_context): Make "trace_line" an int.
1545 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1546
1547 2003-08-20 Michael Snyder <msnyder@redhat.com>
1548
1549 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1550 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1551 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1552 argument passing.
1553 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1554 functions, replace sh_push_dummy_call.
1555 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1556
1557 2003-08-20 Michael Chastain <mec@shout.net>
1558
1559 * gdbtypes.h (struct main_type): Rearrange to save space.
1560
1561 2003-08-20 Michael Snyder <msnyder@redhat.com>
1562
1563 * trad-frame.c: Comment typo fix.
1564
1565 2003-08-20 Michael Snyder <msnyder@redhat.com>
1566 Kevin Buettner <kevinb@redhat.com>
1567
1568 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1569 (frv_frame_init_saved_regs): Add declaration.
1570 (frame_extra_info): Add new field ``saved_regs''.
1571 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1572 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1573 Update frame related code.
1574 (frv_extract_struct_value_address): Adjust formatting.
1575 * Makefile.in (frv-tdep.o): Update dependencies.
1576 * config/frv/tm-frv.h (target_insert_watchpoint)
1577 (target_remove_watchpoint, target_insert_hw_breakpoint)
1578 (target_remove_hw_breakpoint): Delete these macros.
1579 (remote_insert_watchpoint, remote_remove_watchpoint)
1580 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1581 these declarations.
1582
1583 2003-08-20 Michael Chastain <mec@shout.net>
1584
1585 * defs.h (ENUM_BITFIELD): New macro.
1586 * symtab.h (ENUM_BITFIELD): Use it.
1587 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1588
1589 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1590
1591 * MAINTAINERS (write after approval): Add myself.
1592
1593 2003-08-18 Andrew Cagney <cagney@redhat.com>
1594
1595 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1596 * gdbarch.h, gdbarch.c: Re-generate.
1597 * infcall.c (call_function_by_hand): Adjust the SP by
1598 frame_red_zone_size before allocating any stack space.
1599 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1600 * x86-64-tdep.c (x86_64_frame_align): New function.
1601 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1602
1603 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1604 Remove code adjusting SP so that it skips over the Red Zone.
1605
1606 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1607
1608 * NEWS (New native configurations): Mention FreeBSD/amd64.
1609
1610 2003-08-18 Andrew Cagney <cagney@redhat.com>
1611
1612 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1613 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1614 "m68k_frame_p".
1615 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1616
1617 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1618
1619 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1620
1621 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1622
1623 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1624 Define.
1625 * i386-linux-nat.c: Include "linux-nat.h".
1626 (child_post_startup_inferior): New function.
1627
1628 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1629
1630 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1631 at the start of a frameless function. This probably fixes PR
1632 backtrace/1338.
1633
1634 2003-08-17 Michael Chastain <mec@shout.net>
1635
1636 * symfile.c (find_sym_fns): Remove special case for apollo target.
1637
1638 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1639
1640 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1641 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1642 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1643 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1644 (linux_supports_tracevforkdone): New function.
1645 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1646 TRACEVFORKDONE.
1647 (child_follow_fork): Handle vfork.
1648 (linux_handle_extended_wait): Likewise. Also handle exec.
1649 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1650 * NEWS: Mention fork tracing.
1651
1652 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1653
1654 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1655
1656 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1657
1658 * Makefile.in (i386-linux-nat.o): Update dependencies.
1659 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1660 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1661 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1662 * i386-linux-nat.c: Include "linux-nat.h".
1663 (child_post_startup_inferior): New function.
1664 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1665 * infptrace.c (kill_inferior): Wrap in #ifdef.
1666 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1667 attaching to each LWP.
1668 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1669 (init_lin_lwp_ops): Fill in some more operations.
1670 * linux-nat.h (linux_enable_event_reporting)
1671 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1672 prototypes.
1673 * linux-nat.c (linux_enable_event_reporting): New function.
1674 (child_post_attach, linux_child_post_startup_inferior)
1675 (child_post_startup_inferior, child_follow_fork)
1676 (linux_handle_extended_wait, kill_inferior): New functions.
1677
1678 2003-08-16 Andrew Cagney <cagney@redhat.com>
1679
1680 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1681 * gdbarch.h, gdbarch.c: Re-generate.
1682
1683 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1684
1685 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1686
1687 2003-08-16 Andrew Cagney <cagney@redhat.com>
1688
1689 * NEWS: Mention that "set prompt-escape-char" was deleted.
1690 * top.c (get_prompt_1): Delete function.
1691 (gdb_prompt_escape):
1692 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1693 prompt-escape-char" command.
1694 (MAX_PROMPT_SIZE): Delete macro.
1695 (get_prompt): Simplify, do not call get_prompt_1.
1696
1697 2003-08-16 Andrew Cagney <cagney@redhat.com>
1698
1699 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1700 -Werror. -Wformat-nonliteral problems.
1701
1702 2003-08-15 J. Brobecker <brobecker@gnat.com>
1703
1704 Further multiarching work mostly for hppa64-*-hpux11:
1705 * hppa-tdep.h: New file.
1706 * hppa-tdep.c: #include hppa-tdep.c.
1707 (hppa32_num_regs): Renamed from hppa_num_regs.
1708 (hppa64_num_regs): New constant.
1709 (hppa64_call_dummy_breakpoint_offset): New constant.
1710 (hppa32_call_dummy_length): New constant.
1711 (hppa64_call_dummy_length): New constant.
1712 (hppa32_stack_align): Make name 32bit explicit.
1713 (hppa32_register_virtual_type): Likewise.
1714 (hppa32_extract_return_value): Likewise.
1715 (hppa32_use_struct_convention): Likewise.
1716 (hppa32_store_return_value): Likewise.
1717 (hppa64_register_virtual_type): New function.
1718 (hppa64_extract_return_value): New function.
1719 (hppa64_use_struct_convention): New function.
1720 (hppa64_store_return_value): New function.
1721 (hppa_frame_locals_address): Remove declaration, function does
1722 not exist anymore.
1723 (hppa_register_byte): Add support for PA64 ABI.
1724 (hppa_gdbarch_init): Add support for PA64 ABI.
1725 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1726 Make name 32bit explicit.
1727 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1728 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1729 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1730 (hppa64_hpux_frame_base_before_sigtramp): New function.
1731 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1732 * config/pa/tm-hppa64.h: Remove macros that are no longer
1733 necessary now that the gdbarch vector is properly setup.
1734 Transform some macros into function calls. Some minor cleanup.
1735 * config/pa/tm-hppah.h: Update function calls in macros
1736 following the function renaming in hppa-hpux-tdep.c.
1737 * Makefile.in (hppa_tdep_h): New variable.
1738 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1739
1740 2003-08-14 Michael Snyder <msnyder@redhat.com>
1741
1742 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1743
1744 2003-08-13 J. Brobecker <brobecker@gnat.com>
1745
1746 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1747 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1748 routine.
1749
1750 2003-08-13 Michael Snyder <msnyder@redhat.com>
1751
1752 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1753 (frv_saved_pc_after_call): Use deprecated ftype.
1754 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1755 (frv_remote_translate_xfer_address): Remove.
1756 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1757
1758 2003-08-13 J. Brobecker <brobecker@gnat.com>
1759
1760 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1761 initialization after the common gdbarch initialization, not before.
1762
1763 2003-08-13 J. Brobecker <brobecker@gnat.com>
1764
1765 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1766 (ADDR_BITS_REMOVE): Remove, redundant.
1767
1768 2003-08-13 J. Brobecker <brobecker@gnat.com>
1769
1770 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1771 gdbarch method to clear the 2 low bits of text addresses.
1772
1773 2003-08-12 Andrew Cagney <cagney@redhat.com>
1774
1775 * Makefile.in (dsrec.o): Update dependencies.
1776 * dsrec.c: Include "gdb_assert.h".
1777 (make_srec): Use snprintf instead of sprintf, use a literal format
1778 string.
1779
1780 2003-08-12 Andrew Cagney <cagney@redhat.com>
1781
1782 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1783 FRAME_OBSTACK_ZALLOC.
1784
1785 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1786
1787 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1788 SSE registers.
1789
1790 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1791
1792 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1793 amd64fbsd_sc_reg_offset): Add extern declarations.
1794 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1795 declarations.
1796
1797 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1798
1799 * MAINTAINERS (write after approval): Update my mail address.
1800
1801 2003-08-10 Andrew Cagney <cagney@redhat.com>
1802
1803 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1804
1805 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1806
1807 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1808 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1809 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1810 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1811 i386bsd_sc_reg_offset): Add extern declarations.
1812 * i386obsd-nat.c: Include "i386-tdep.h"
1813 (_initialize_i386obsd_nat): Remove extern declarations.
1814 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1815 declarations.
1816 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1817 declarations.
1818
1819 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1820 instead of frame_read_register.
1821 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1822 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1823 SP_REGNUM.
1824 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1825 instead of frame_unwind_unsigned_register. Use
1826 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1827 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1828 instead of read_register. Use builtin_type_void_data_ptr instead
1829 of builtin_type_void_func_ptr when extracting the address of the
1830 jmp_buf.
1831 (i386_extract_return_value, i386_store_return_value,
1832 i386_pseudo_register_read, i386_pseudo_register_write): Use
1833 register_size instead REGISTER_RAW_SIZE.
1834
1835 2003-08-10 Andrew Cagney <cagney@redhat.com>
1836
1837 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1838 sprintf. Make "name" constant.
1839
1840 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1841
1842 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1843 instead of frame_read_register.
1844 (i387_print_float_info): Use get_frame_register and
1845 get_frame_register_unsigned instead of frame_register_read.
1846
1847 * i386fbsd-nat.c: Include "i386-tdep.h".
1848 (child_resume): Make `eflags' an ULONGEST. Use
1849 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1850 instead of register_read and register_write.
1851
1852 * i386bsd-nat.c (fetch_inferior_registers,
1853 store_inferior_registers): Don't use && at the end of a line.
1854 (_initialize_i386bsd_nat): Fix typo.
1855
1856 * frame.c (_initialize_frame): Add missing backslash.
1857
1858 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1859 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1860 and supply_register instead of manipulating the register buffer
1861 directly.
1862
1863 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1864 * config/i386/nm-i386sol2.h
1865 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1866
1867 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1868 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1869 instructions that GCC likes to mingle into the prologue. Fixes
1870 gdb/1253 and gdb/1255.
1871
1872 2003-08-09 Andrew Cagney <cagney@redhat.com>
1873
1874 Fix GDB PR cli/926.
1875 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1876 * command.h (add_setshow_uinteger_cmd): Declare.
1877 * frame.c (set_backtrace_cmd): New function.
1878 (show_backtrace_cmd): New function.
1879 * frame.c (_initialize_frame): Replace "set/show
1880 backtrace-below-main" with "set/show backtrace past-main". Add
1881 command "set/show backtrace limit".
1882 (backtrace_past_main): Rename "backtrace_below_main".
1883 (backtrace_limit): New variable.
1884 (get_prev_frame): Update. Check the backtrace_limit.
1885
1886 2003-08-09 Andrew Cagney <cagney@redhat.com>
1887
1888 * defs.h (xstrprintf): Declare.
1889 * utils.c (xstrprintf): New function.
1890 * breakpoint.c (insert_breakpoints): Replace sprintf and
1891 non-literal format strings, with xstrprintf and cleanups.
1892 (delete_breakpoint,breakpoint_re_set): Ditto.
1893 (commands_command, insert_breakpoints): Ditto.
1894 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1895 (break_at_finish_command_1): Ditto.
1896
1897 2003-08-09 Andrew Cagney <cagney@redhat.com>
1898
1899 * MAINTAINERS (language support): List Adam Fedor as Objective C
1900 maintainer.
1901
1902 2003-08-08 J. Brobecker <brobecker@gnat.com>
1903
1904 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1905 are now multiarched.
1906
1907 2003-08-08 J. Brobecker <brobecker@gnat.com>
1908
1909 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1910 longer necessary now that hppa64 is partially multiarch'ed.
1911
1912 2003-08-08 Andrew Cagney <cagney@redhat.com>
1913
1914 * interps.c (interp_set): Check for a NULL "old_interp".
1915
1916 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1917
1918 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1919 (install-only): Support DESTDIR.
1920 (uninstall): Likewise.
1921 (install-gdbtk): Likewise.
1922
1923 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1924
1925 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1926 contains something meaningful at all times.
1927
1928 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1929
1930 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1931
1932 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1933
1934 * MAINTAINERS (write after approval): Added self.
1935
1936 2003-08-07 Andrew Cagney <cagney@redhat.com>
1937
1938 * inferior.h (AT_SYMBOL): Define.
1939 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1940 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1941 * mips-tdep.c (mips_call_dummy_address): Delete function.
1942 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1943 set call_dummy_address.
1944
1945 2003-08-07 Andrew Cagney <cagney@redhat.com>
1946
1947 * language.c (op_error): Delete function.
1948 (binop_type_check): Delete function.
1949 * language.h (type_op_error, range_op_error): Delete macros.
1950 (op_error): Delete declaration.
1951
1952 2003-08-07 Andrew Cagney <cagney@redhat.com>
1953
1954 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1955
1956 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1957
1958 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1959 (x86_64_push_arguments): Skip the red zone.
1960
1961 2003-08-05 Andrew Cagney <cagney@redhat.com>
1962
1963 * reggroups.c (reggroup_next): Check for the final entry.
1964
1965 2003-08-04 Andrew Cagney <cagney@redhat.com>
1966
1967 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1968 * cli/cli-script.c (define_command): Call query directly, instead
1969 of passing it a buffer.
1970 * ocd.c (ocd_error): Pass error a constant format string.
1971 * remote-mips.c (mips_error): Use fputs_filtered.
1972
1973 * solib-svr4.c (_initialize_svr4_solib): Update
1974 register_gdbarch_data call.
1975 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1976
1977 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1978 (register_gdbarch_data): Delete "free" parameter. Update
1979 comments.
1980 * gdbarch.h, gdbarch.c: Re-generate.
1981 * reggroups.c (_initialize_reggroup): Update.
1982 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1983 * frame-base.c (_initialize_frame_base): Update.
1984 * frame-unwind.c (_initialize_frame_unwind): Update.
1985 * user-regs.c (_initialize_user_regs): Update.
1986 * remote.c (_initialize_remote): Update.
1987 * regcache.c (_initialize_regcache): Update.
1988
1989 * regcache.c (xfree_regcache_descr): Delete function.
1990 (_initialize_regcache): Update call to register_gdbarch_data.
1991 (init_regcache_descr, init_legacy_regcache_descr): Use
1992 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1993
1994 * remote.c (free_remote_state): Delete function.
1995 (_initialize_remote): Update register_gdbarch_data.
1996 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1997 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1998
1999 2003-08-04 Andrew Cagney <cagney@redhat.com>
2000
2001 * reggroups.c (struct reggroup_el): Define.
2002 (struct reggroups): Delete field "nr_group". Replace array
2003 "group" with a "first" to "last" linked list.
2004 (reggroups_init): Update. Allocate using gdbarch's obstack.
2005 (reggroups_free): Delete function.
2006 (add_group): Update. Add "el" parameter.
2007 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2008 (default_groups): Update.
2009 (reggroup_next): Replace reggroups.
2010 (reggroups_dump): Update.
2011 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2012 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2013 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2014
2015 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2016
2017 * Makefile.in (tui-interp.o): Update dependencies.
2018
2019 2003-08-04 David Carlton <carlton@kealia.com>
2020
2021 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2022 to internal_error call.
2023 * source.c (forward_search_command): Add "%s" format argument.
2024 (reverse_search_command): Ditto.
2025 * top.c (quit_confirm): Ditto.
2026 * cli/cli-setshow.c (do_setshow_command): Ditto.
2027 * cp-valprint.c (cp_print_class_method): Replace
2028 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2029 (cp_print_class_member): Ditto.
2030 * event-top.c (command_line_handler): Ditto.
2031 * linux-proc.c (linux_info_proc_cmd): Ditto.
2032 * p-typeprint.c (pascal_type_print_base): Ditto.
2033 * p-valprint.c (pascal_object_print_class_method): Ditto.
2034 (pascal_object_print_class_member): Ditto.
2035 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2036 * remote.c (remote_cisco_section_offsets): Ditto.
2037 * top.c (command_line_input): Ditto.
2038 * utils.c (vwarning,error_stream,quit): Ditto.
2039 * valprint.c (print_floating,print_binary_chars)
2040 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2041
2042 2003-08-04 Andrew Cagney <cagney@redhat.com>
2043
2044 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2045
2046 2003-08-02 Andrew Cagney <cagney@redhat.com>
2047
2048 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2049 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2050 amd64fbsd-nat.c.
2051
2052 2003-08-02 Andrew Cagney <cagney@redhat.com>
2053
2054 * Makefile.in: Update all dependencies and definitions.
2055
2056 2003-08-02 Adam Fedor <fedor@gnu.org>
2057
2058 * linespec.c (is_objc_method_format): New function
2059 (decode_line_1, locate_first_half): Use it.
2060 Fixes PR objc/1298
2061
2062 2003-08-01 Andrew Cagney <cagney@redhat.com>
2063
2064 * NEWS: Mention that m32r is multi-arch.
2065 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2066 * configure.tgt: Recognize m32r-*-*.
2067 * config/m32r/tm-m32r.h: Delete file.
2068 * config/m32r/m32r.mt: New file.
2069 * m32r-rom.c (m32r_upload_command): Use hostent only when
2070 gethostname succeeds, in order to avoid a compilation
2071 warning.
2072 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2073 compiler warning.
2074
2075 2003-08-01 Michael Snyder <msnyder@redhat.com>
2076
2077 * sh-tdep.c (sh_frame_align): New gdbarch method.
2078 (sh_gdbarch_init): Set up frame_align method.
2079
2080 2003-07-31 Michael Snyder <msnyder@redhat.com>
2081
2082 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2083 which is already covered by the new frames infrastructure.
2084
2085 2003-07-31 Andrew Cagney <cagney@redhat.com>
2086
2087 * user-regs.c (struct user_reg): Add "next" link.
2088 (struct user_regs): Replace "user" with "first" and "last" links.
2089 (append_user_reg): Add pre-allocated "reg" parameter.
2090 (builtin_user_regs): Provide initial value for "last".
2091 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2092 (user_regs_init): Allocate memory from the gdbarch obstack.
2093 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2094 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2095 linked list.
2096 (usernum_to_user_reg): New function.
2097 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2098 (value_of_user_reg): Use usernum_to_user_reg.
2099 (user_regs_free): Delete function.
2100 (_initialize_user_regs): Update register_gdbarch_data call.
2101
2102 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2103
2104 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2105
2106 2003-07-30 Michael Snyder <msnyder@redhat.com>
2107
2108 * value.h (value_being_returned): Add a struct_addr argument.
2109 * infcall.c (call_function_by_hand): Pass struct_addr to
2110 value_being_returned.
2111 * infcmd.c (print_return_value): Pass zero as struct_addr.
2112 * values.c (value_being_returned): If struct_addr is passed,
2113 use it instead of trying to recover it from the inferior.
2114
2115 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2116
2117 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2118 the prologue analyzer won't need to attempt to extract the pc
2119 value from the woefully incomplete dummy frame.
2120 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2121 possible. Disable code which modifies the frame.
2122
2123 2003-07-28 Andrew Cagney <cagney@redhat.com>
2124
2125 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2126 to level 2.
2127 (annotate_breakpoints_table, annotate_record): Ditto.
2128 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2129 (annotate_field_name_end, annotate_field_value): Ditto.
2130 (annotate_field_end, annotate_frame_source_begin): Ditto.
2131 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2132 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2133 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2134 (annotate_frame_address_end, annotate_frame_address): Ditto.
2135 (annotate_frame_args, annotate_frame_end): Ditto.
2136 (annotate_frame_where, annotate_arg_begin): Ditto.
2137 (annotate_arg_name_end, annotate_arg_value): Ditto.
2138 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2139 (annotate_function_call, annotate_signal_name): Ditto.
2140 (annotate_signal_string, annotate_signal_name_end): Ditto.
2141 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2142 (annotate_value_begin, annotate_value_history_value): Ditto.
2143 (annotate_value_history_end, annotate_value_end): Ditto.
2144 (annotate_display_begin, annotate_display_number_end): Ditto.
2145 (annotate_display_format, annotate_display_expression): Ditto.
2146 (annotate_display_expression_end, annotate_display_value): Ditto.
2147 (annotate_display_end, annotate_array_section_begin): Ditto.
2148 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2149 (annotate_elt, annotate_array_section_end): Ditto.
2150
2151 2003-07-28 Andrew Cagney <cagney@redhat.com>
2152
2153 * regcache.c (struct regcache_descr): Update comments on
2154 nr_raw_registers.
2155 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2156 sizeof_raw_register_valid_p.
2157 (init_regcache_descr): Set nr_raw_registers and
2158 sizeof_raw_register_valid_p before calling
2159 init_legacy_regcache_descr.
2160
2161 2003-07-28 Andrew Cagney <cagney@redhat.com>
2162
2163 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2164 MOD NUM_REGS.
2165
2166 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2167
2168 * thread.c (info_threads_command): Use get_selected_frame ().
2169 Check that there is at least one non-sentinel frame.
2170
2171 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2172
2173 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2174 (m68hc11_pop_frame): Remove.
2175 (m68hc11_frame_saved_pc): Remove.
2176 (m68hc11_frame_chain): Remove.
2177 (m68hc11_frame_init_saved_regs): Remove.
2178 (m68hc11_init_extra_frame_info): Remove.
2179 (m68hc11_store_struct_return): Remove.
2180 (m68hc11_saved_pc_after_call): Remove.
2181
2182 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2183
2184 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2185 frame unwind information.
2186 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2187 and adapted for frame unwinding.
2188 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2189 (m68hc11_unwind_pc): New function.
2190 (m68hc11_frame_unwind_cache): New function to analyze frames.
2191 (m68hc11_frame_this_id): New function to create new frame struct.
2192 (m68hc11_frame_prev_register): New function to unwind a register from
2193 the frame.
2194 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2195 (m68hc11_frame_p): New function for the above.
2196 (m68hc11_frame_base_address): New function to return fp of frame.
2197 (m68hc11_frame_args_address): Update for frame.
2198 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2199 (m68hc11_unwind_sp): New function.
2200 (m68hc11_unwind_dummy_id): New function.
2201 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2202 calls.
2203
2204 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2205
2206 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2207 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2208 when we are beyond the current pc.
2209
2210 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2211
2212 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2213 from m68hc11_push_arguments.
2214 (m68hc11_push_arguments): Remove.
2215 (m68hc11_push_return_address): Remove.
2216 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2217 handlers; remove deprecated_extra_stack_alignment_needed.
2218
2219 2003-07-27 Andrew Cagney <cagney@redhat.com>
2220
2221 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2222 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2223 REAL_PC and not the pointer.
2224 * hppa-hpux-tdep.c: Include frame.h
2225
2226 2003-07-27 Andrew Cagney <cagney@redhat.com>
2227
2228 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2229 GDB_MULTI_ACH_PARTIAL.
2230
2231 2003-07-27 Andrew Cagney <cagney@redhat.com>
2232
2233 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2234 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2235 operator at start and not end of line.
2236 (decode_prologue): Ditto.
2237 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2238 frame_unwind_register_unsigned instead of
2239 frame_unwind_unsigned_register.
2240 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2241 read_register.
2242 (m32r_push_dummy_call): Use register_size instead of
2243 REGISTER_RAW_SIZE.
2244 (m32r_frame_sniffer): Replace m32r_frame_p.
2245 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2246 * m32r-rom.c (report_transfer_performance): Delete extern
2247 declaration.
2248 (m32r_load, m32r_upload_command): Use print_transfer_performance
2249 instead of report_transfer_performance.
2250 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2251 / add_show_from_set.
2252
2253 2003-07-26 Andrew Cagney <cagney@redhat.com>
2254
2255 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2256 store_return_value and extract_struct_value_address.
2257
2258 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2259
2260 PR c++/1267
2261 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2262 NULL, default to the section containing PC.
2263
2264 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2265
2266 * NEWS: Mention "regs" deprecated for m68hc11 too.
2267
2268 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2269 (m68hc11_print_register): New function to print out one register.
2270 (m68hc11_print_registers_info): New function to print registers.
2271 (show_regs): Deprecate and use the above.
2272 (m68hc11_gdbarch_init): Install the print_registers_info.
2273
2274 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2275
2276 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2277 that we have a SIGTRAP before returning non-zero.
2278
2279 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2280 Elena Zannoni <ezannoni@redhat.com>
2281
2282 * linespec.c (decode_line_2): Avoid crash if
2283 find_function_start_sal() returns empty record.
2284
2285 2003-07-23 Andreas Schwab <schwab@suse.de>
2286
2287 * ia64-tdep.c (ia64_print_insn): New function.
2288 (ia64_gdbarch_init): Set print_insn to it.
2289 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2290 deprecated_tm_print_insn_info.
2291
2292 2003-07-22 Michael Snyder <msnyder@redhat.com>
2293
2294 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2295 handle 8-bit returns (long long).
2296 (h8300h_extract_return_value): Ditto.
2297 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2298
2299 2003-07-22 Andrew Cagney <cagney@redhat.com>
2300
2301 * gdbarch.c Include "gdb_obstack.h".
2302 (struct gdbarch): Add an "obstack".
2303 (alloc_gdbarch_data): Allocate the gdbarch data using
2304 GDBARCH_OBSTACK_CALLOC.
2305 (free_gdbarch_data): Delete function.
2306 (gdbarch_obstack_zalloc): New function.
2307 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2308 Assert that the architecture is not initialized.
2309 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2310 vector from the obstack.
2311 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2312 architecture obstack.
2313 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2314 (set_gdbarch_data): Assert that the data is not initialized.
2315 (struct gdbarch_data): Delete member "free".
2316 (register_gdbarch_data): Do not initialize "free".
2317 * gdbarch.h, gdbarch.c: Re-generate.
2318
2319 2003-07-22 Andrew Cagney <cagney@redhat.com>
2320
2321 * configure.in (build_warnings): Add -Wformat-nonliteral.
2322 * configure: Re-generate.
2323
2324 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2325
2326 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2327
2328 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2329
2330 * findvar.c (read_var_value): Remove case for thread local storage
2331 variables. It is now entirely handled by the dwarf2 location
2332 expression code.
2333 * printcmd.c (address_info): Ditto.
2334 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2335 enumeration value.
2336 (struct symbol): Remove objfile field, which was used by
2337 LOC_THREAD_LOCAL_STATIC only.
2338 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2339 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2340 usage of objfile pointer.
2341 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2342 thread local variables.
2343 Add include of objfiles.h.
2344 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2345 storage variables.
2346 * Makefile.in (dwarf2loc.o): Update dependencies.
2347
2348 2003-07-22 Andrew Cagney <cagney@redhat.com>
2349
2350 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2351 get_frame_base.
2352 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2353 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2354 (struct value): Add opaque declaration.
2355 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2356
2357 2003-07-21 Andrew Cagney <cagney@redhat.com>
2358
2359 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2360 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2361
2362 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2363
2364 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2365 regcache_cooked_read_unsigned instead of read_register.
2366 (m68hc11_saved_pc_after_call): Likewise.
2367 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2368 instead of write_register.
2369 (m68hc11_register_type): New function.
2370 (m68hc11_register_virtual_type): Remove.
2371 (m68hc11_store_return_value): Convert to use the regcache.
2372 (m68hc11_extract_struct_value_address): Likewise.
2373 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2374 m68hc11_register_type; undeprecate store_return_value and
2375 extract_struct_value_address.
2376
2377 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2378
2379 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2380 and translate to use regcache.
2381 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2382
2383 2003-07-18 Andrew Cagney <cagney@redhat.com>
2384
2385 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2386 * gdbarch.h, gdbarch.c: Re-generate.
2387 * i386-tdep.c (i386_gdbarch_init): Do not set
2388 DWARF2_BUILD_FRAME_INFO.
2389 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2390 unconditionally.
2391 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2392 DWARF2_BUILD_FRAME_INFO.
2393
2394 2003-07-18 Andrew Cagney <cagney@redhat.com>
2395
2396 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2397 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2398
2399 2003-07-18 Andrew Cagney <cagney@redhat.com>
2400
2401 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2402 frame_unwind_address_in_block, instead of frame_pc_unwind.
2403 (dwarf2_frame_cache): Ditto.
2404
2405 2003-07-18 Andrew Cagney <cagney@redhat.com>
2406
2407 * user-regs.h (struct gdbarch): Declare opaque.
2408 * ui-out.h (struct ui_file): Declare opaque.
2409 * dwarf2-frame.h (struct frame_info): Declare opaque.
2410
2411 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2412
2413 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2414 #include "...".
2415 (procfs_meminfo): Change strerror to safe_strerror.
2416 (procfs_can_run): Remove K&R badness.
2417
2418 2003-07-17 Michael Snyder <msnyder@redhat.com>
2419
2420 * remote-sim.c: Comment typo fix.
2421
2422 2003-07-17 Andrew Cagney <cagney@redhat.com>
2423
2424 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2425 configure.
2426 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2427 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2428 GDB_MULTI_ARCH_PARTIAL.
2429
2430 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2431
2432 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2433 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2434 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2435
2436 2003-07-16 Theodore A. Roth <troth@openavr.org>
2437
2438 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2439 found.
2440 (avr_frame_unwind_cache): Don't unwind FP for main.
2441 Update a comment.
2442 Save the computed prev_sp.
2443 (avr_saved_regs_unwinder): Remove function.
2444 (avr_frame_prev_register): Use PC unwind logic from
2445 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2446
2447 2003-07-16 Andrew Cagney <cagney@redhat.com>
2448
2449 * frame-base.h (frame_base_p_ftype): Delete definition.
2450 (frame_base_append_predicate): Delete declaration.
2451 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2452 (frame_unwind_append_predicate): Delete declaration.
2453 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2454 (append_predicate): Delete parameter "p".
2455 (frame_unwind_append_predicate): Delete function.
2456 (frame_unwind_append_sniffer): Update call to append_predicate.
2457 (frame_unwind_free): Delete function.
2458 (_initialize_frame_unwind): Pass NULL as "free" to
2459 register_gdbarch_data.
2460 (frame_unwind_init): Append the dummy_frame_sniffer.
2461 (frame_unwind_find_by_frame): Simplify.
2462 * frame-base.c (struct frame_base_table): Delete field "p".
2463 (append_predicate): Delete parameter "p".
2464 (frame_base_append_predicate): Delete function.
2465 (frame_base_append_sniffer): Update call to append_predicate.
2466 (frame_base_free): Delete function.
2467 (frame_base_find_by_frame): Simplify.
2468 (_initialize_frame_base): Pass NULL as "free" to
2469 register_gdbarch_data.
2470 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2471 (x86_64_sigtramp_frame_sniffer): Replace
2472 "x86_64_sigtramp_frame_p".
2473 (x86_64_init_abi): Set the frame unwind sniffers.
2474 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2475 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2476 (m68k_gdbarch_init): Set the frame unwind sniffers.
2477 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2478 "i386_sigtramp_frame_p".
2479 (i386_frame_sniffer): Replace "i386_frame_p".
2480 (i386_gdbarch_init): Set the frame unwind sniffers.
2481 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2482 (avr_gdbarch_init): Set the frame unwind sniffers.
2483 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2484 "alpha_sigtramp_frame_p"
2485 (alpha_heuristic_frame_sniffer): Replace
2486 "alpha_heuristic_frame_p".
2487 (alpha_gdbarch_init): Set the frame unwind sniffers.
2488 (alpha_dwarf2_init_abi): Ditto.
2489 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2490 "alpha_debug_frame_p".
2491 (alpha_mdebug_frame_base_sniffer): Replace
2492 "alpha_mdebug_frame_base_p".
2493 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2494 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2495 (d10v_gdbarch_init): Set the frame unwind sniffer.
2496 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2497 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2498 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2499 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2500 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2501 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2502
2503 2003-07-16 Michael Snyder <msnyder@redhat.com>
2504
2505 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2506 should go thru sh_dsp_register_sim_regno, else the dsp regs
2507 will not get the right values.
2508
2509 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2510
2511 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2512 deprecated_store_floating by call to store_typed_floating.
2513 (sh_sh4_register_convert_to_raw): Substitute call to
2514 deprecated_extract_floating by call to extract_typed_floating.
2515
2516 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2517
2518 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2519
2520 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2521
2522 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2523 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2524 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2525 as possible.
2526 (do_pseudo_register): Remove.
2527 (sh_push_dummy_code): New function.
2528 (sh64_store_struct_return): Rename from sh_store_struct_return.
2529 Only called for sh64 now.
2530 (sh_extract_struct_value_address): Regcache'ify.
2531 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2532 and accomodate new tasks.
2533 (sh64_push_return_address): Rename from sh_push_return_address.
2534 Only called for sh64 now.
2535 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2536 Regcache'ify.
2537 (sh3e_sh4_extract_return_value): Regcache'ify.
2538 (sh_default_store_return_value): Ditto.
2539 (sh3e_sh4_store_return_value): Ditto.
2540 (sh_default_register_byte): Remove.
2541 (sh_sh4_register_byte): Remove.
2542 (sh_default_register_raw_size): Remove.
2543 (sh_sh4_register_raw_size): Remove.
2544 (sh_register_virtual_size): Remove.
2545 (sh_sh3e_register_virtual_type): Remove.
2546 (sh_sh3e_register_type): New function.
2547 (sh_sh4_register_virtual_type): Remove.
2548 (sh_sh4_register_type): New function.
2549 (sh_default_register_virtual_type): Remove.
2550 (sh_default_register_type): New function.
2551 (do_fv_register_info): Add parameters to accomodate call from
2552 sh_print_registers_info.
2553 (do_dr_register_info): Ditto.
2554 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2555 Add parameters to accomodate call from sh_print_registers_info.
2556 (sh_do_fp_register): Ditto.
2557 (sh64_do_pseudo_register): Call do_dr_register_info,
2558 do_fv_register_info and sh_do_fp_register with default parameters.
2559 (sh_do_register): Add parameters to accomodate call from
2560 sh_print_registers_info.
2561 (sh_print_register): Ditto.
2562 (sh_print_registers_info): Rename from sh_do_registers_info.
2563 Add parameters to be used as gdbarch_print_registers_info
2564 implementation. Accomodate removed do_pseudo_register function
2565 pointer.
2566 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2567 function pointer. Call sh_print_register with default parameters.
2568 (sh64_do_registers_info): Call sh_print_registers_info instead of
2569 sh_do_registers_info.
2570 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2571 detection of deprecated vs. non-deprecated functionality.
2572 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2573 function pointer assignments by direct function calls.
2574
2575 2003-07-15 Andrew Cagney <cagney@redhat.com>
2576
2577 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2578 (frame_register_unwind, create_new_frame): Ditto.
2579 (legacy_get_prev_frame, get_frame_type): Ditto.
2580 (get_frame_base_address): Use frame_base_find_by_frame.
2581 (get_frame_locals_address): Use frame_base_find_by_frame.
2582 (get_frame_args_address): Use frame_base_find_by_frame.
2583 * frame-base.h (frame_base_sniffer_ftype): Declare.
2584 (frame_base_append_sniffer): Declare.
2585 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2586 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2587 (frame_base_append_sniffer): New function.
2588 (frame_base_append_predicate): Add a NULL sniffer.
2589 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2590 (struct frame_base_table): Add "sniffer".
2591 (frame_base_free): Free the "sniffer" table.
2592 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2593 (frame_unwind_append_sniffer): Declare.
2594 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2595 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2596 (struct frame_unwind_table): Add "sniffer", delete "middle".
2597 (append_predicate): Add "sniffer" parameter, append the sniffer.
2598 (frame_unwind_init): Update append_predicate call.
2599 (frame_unwind_append_sniffer): New function.
2600 (frame_unwind_append_predicate): Update append_predicate call.
2601 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2602
2603 2003-07-15 Andrew Cagney <cagney@redhat.com>
2604
2605 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2606 before code inhibiting repeated unwind attempts. Add to
2607 commentary on that test's problems.
2608 * blockframe.c (inside_main_func): Look for "main" in the minimal
2609 symbol table.
2610 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2611 identical.
2612
2613 2003-07-15 Andrew Cagney <cagney@redhat.com>
2614
2615 * complaints.c (struct explanation): Define.
2616 (struct complaints): Change type of "explanation" to "struct
2617 explanation".
2618 (symfile_explanations): Convert to a "struct explanation" table.
2619 (vcomplaint): Update.
2620
2621 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2622
2623 * x86-64-linux-nat.c (regmap): Removed.
2624 (supply_gregset, fill_gregset): Call
2625 x86_64_linux_(fill,supply)_gregset functions.
2626 * x86-64-linux-tdep.c (USER_*): New defines.
2627 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2628 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2629 New functions.
2630 (fetch_core_registers): Ditto.
2631 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2632 * x86-64-linux-tdep.h: New file.
2633 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2634 and core-regset.o.
2635 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2636
2637 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2638
2639 * x86-64-tdep.c (x86_64_store_return_value): Use
2640 regcache_cooked_write_part instead of regcache_cooked_write.
2641
2642 * configure.host: Add x86_64-*-freebsd*.
2643 * configure.tgt: Add x86_64-*-freebsd*.
2644 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2645 * amd64fbsd-nat.c: New file.
2646 * amd64fbsd-tdep.c: New file.
2647 * config/i386/nm-fbsd64.h: New file.
2648 * config/i386/fbsd64.mh: New file.
2649 * config/i386/fbsd64.mt: New file.
2650
2651 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2652
2653 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2654 `sc_regs_offset' and `sc_fpregs_offset'.
2655 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2656 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2657 (alpha_sigtramp_register_address): Rewrite to use new members of
2658 `struct gdbarch_tdep'.
2659 (alpha_gdbarch_init): Initialize new members of struct
2660 gdbarch_tdep'.
2661 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2662 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2663 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2664 (alphafbsd_pc_in_sigtramp): Implement.
2665 (alphafbsd_sigtramp_offset): New function.
2666 (alphafbsd_sigcontext_addr): New function.
2667 (alphafbsd_init_abi): Initialize signal trampoline related members
2668 of `struct gdbarch_tdep'.
2669 (_initialize_alphafbsd_tdep): Add prototype.
2670
2671 2003-07-11 Theodore A. Roth <troth@openavr.org>
2672
2673 * Makefile.in (install-only): Quote sed expression when generating
2674 transformed_name.
2675
2676 2003-07-11 Richard Henderson <rth@redhat.com>
2677
2678 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2679 * dwarf2-frame.c: Include complaints.h.
2680 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2681 variable initialization; return NULL on error.
2682 (decode_frame_entry): New.
2683
2684 2003-07-11 Andrew Cagney <cagney@redhat.com>
2685
2686 * frame.h (frame_address_in_block): Delete declaration.
2687 * blockframe.c (frame_address_in_block): Delete function.
2688 (get_frame_block): Use get_frame_address_in_block.
2689 (block_innermost_frame): Ditto.
2690 * stack.c (print_frame, backtrace_command_1): Ditto.
2691
2692 * frame.h (get_frame_address_in_block): Declare.
2693 (frame_unwind_address_in_block): Declare.
2694 * frame.c (frame_unwind_address_in_block): New function.
2695 (get_frame_address_in_block): New function.
2696
2697 2003-07-10 Andrew Cagney <cagney@redhat.com>
2698
2699 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2700 pre-default. Note: re-generate has no effect.
2701
2702 2003-07-10 Andrew Cagney <cagney@redhat.com>
2703
2704 * gdbarch.sh: When a variable, but not a function, compare against
2705 0. Fix problem in previous patch.
2706 * gdbarch.c: Re-generate.
2707
2708 2003-07-10 Andrew Cagney <cagney@redhat.com>
2709
2710 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2711 functions against NULL, not 0.
2712 * gdbarch.c: Re-generate.
2713
2714 2003-07-10 Fred Fish <fnf@ninemoons.com>
2715
2716 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2717 null string instead of a null pointer.
2718 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2719
2720 2003-07-09 Michael Snyder <msnyder@redhat.com>
2721
2722 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2723
2724 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2725
2726 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2727 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2728 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2729 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2730 * x86-64-tdep.c: ... from here.
2731
2732 2003-07-09 Andreas Schwab <schwab@suse.de>
2733
2734 * m68k-tdep.h (enum struct_return): Define.
2735 (struct gdbarch_tdep): Add struct_return.
2736 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2737 bytes are padded to the right, not to the left. Pass struct value
2738 address in register %a1, not on stack.
2739 (m68k_use_struct_convention): New function.
2740 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2741 struct_return in tdep to pcc_struct_return.
2742 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2743 reg_struct_return.
2744
2745 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2746
2747 * somread.c (som_symfile_offsets): Fix compilation error.
2748
2749 2003-07-09 Andrew Cagney <cagney@redhat.com>
2750
2751 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2752 Add comments about the checks.
2753
2754 2003-07-08 Andrew Cagney <cagney@redhat.com>
2755
2756 * Makefile.in: Make dependency section headers consistent.
2757 (config_h): Move to $BUILD headers section.
2758 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2759 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2760 (ada-exp.tab.c): Move to YACC/LEX section.
2761 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2762 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2763
2764 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2765
2766 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2767 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2768 of strerror with safe_strerror, use ISO C function definitions,
2769 and replace instances of sprintf with snprintf.
2770
2771 2003-07-07 Andrew Cagney <cagney@redhat.com>
2772
2773 * frame.c (get_prev_frame): Enable check for identical frames.
2774 Update comments. Update error messages.
2775
2776 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2777
2778 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2779
2780 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2781
2782 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2783 sort_symtab_syms, no longer necessary.
2784
2785 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2786
2787 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2788
2789 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2790
2791 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2792 (mips_register_byte): Likewise.
2793
2794 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2795
2796 * Makefile.in (sparc_tdep_h): New.
2797 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2798 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2799 * sparc-linux-nat.c: Include "sparc-tdep.h".
2800 * sparc-nat.c: Likewise.
2801 * sparc-tdep.c: Likewise.
2802 * sparc64nbsd-nat.c: Likewise.
2803 * sparcnbsd-nat.c: Likewise.
2804 * sparcnbsd-tdep.c: Likewise.
2805 * sparc-tdep.h: New file.
2806 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2807 and sparc_npc_regnum.
2808
2809 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2810
2811 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2812 (mips_linux_cannot_store_register): List supported instead of
2813 unsupported registers.
2814
2815 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2816
2817 * disasm.c (dump_insns): Separate instructions from addresses.
2818
2819 2003-07-07 Andreas Schwab <schwab@suse.de>
2820
2821 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2822 dependencies.
2823 * m68k-tdep.c (NUM_FREGS): Delete.
2824 (SIG_PC_FP_OFFSET): Delete.
2825 (TARGET_M68K): Delete.
2826 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2827 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2828 P_MOVEL_SP, P_MOVEML_SP): Define.
2829 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2830 P_TRAP): Delete.
2831 (m68k_register_raw_size): Delete.
2832 (m68k_register_virtual_size): Delete.
2833 (m68k_register_type): Renamed from m68k_register_virtual_type and
2834 add gdbarch argument.
2835 (m68k_store_struct_return): Delete.
2836 (m68k_deprecated_extract_return_value): Delete.
2837 (m68k_deprecated_extract_struct_value_address): Delete.
2838 (m68k_frame_chain): Delete.
2839 (m68k_frame_saved_pc): Delete.
2840 (m68k_fix_call_dummy): Delete.
2841 (m68k_push_dummy_frame): Delete.
2842 (m68k_pop_frame): Delete.
2843 (m68k_extract_return_value): New function.
2844 (m68k_store_return_value): Rewrite using regcache.
2845 (m68k_extract_struct_value_address): Rewrite using regcache.
2846 (m68k_push_dummy_call): New function.
2847 (struct m68k_frame_cache): Define.
2848 (m68k_alloc_frame_cache): New function.
2849 (m68k_analyze_frame_setup): New function.
2850 (m68k_analyze_register_saves): New function.
2851 (m68k_analyze_prologue): New function.
2852 (m68k_skip_prologue): Rewrite using above functions.
2853 (m68k_unwind_pc): New function.
2854 (m68k_frame_cache): New function.
2855 (m68k_frame_this_id): New function.
2856 (m68k_frame_prev_register): New function.
2857 (m68k_frame_unwind): New variable.
2858 (m68k_frame_p): New function.
2859 (m68k_sigtramp_frame_cache): New function.
2860 (m68k_sigtramp_frame_this_id): New function.
2861 (m68k_sigtramp_frame_prev_register): New function.
2862 (m68k_sigtramp_frame_unwind): New variable.
2863 (m68k_sigtramp_frame_p): New function.
2864 (m68k_frame_base_address): New function.
2865 (m68k_frame_base): New function.
2866 (m68k_unwind_dummy_id): New function.
2867 (fill_gregset): Use regcache_collect.
2868 (fill_fpregset): Likewise.
2869 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2870 defined.
2871 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2872 deprecated_init_frame_pc, deprecated_store_struct_return,
2873 deprecated_extract_return_value, deprecated_store_return_value,
2874 deprecated_frame_chain, deprecated_frame_saved_pc,
2875 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2876 deprecated_register_virtual_size,
2877 deprecated_max_register_raw_size,
2878 deprecated_max_register_virtual_size,
2879 deprecated_register_virtual_type, deprecated_register_size,
2880 deprecated_register_byte, deprecated_register_bytes,
2881 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2882 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2883 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2884 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2885 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2886 deprecated_push_dummy_frame, deprecated_pop_frame,
2887 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2888 only if SYSCALL_TRAP is defined. Set extract_return_value,
2889 store_return_value, extract_struct_value_address, register_type,
2890 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2891 predicates.
2892 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2893 M68K_MAX_REGISTER_SIZE): Define.
2894 (struct m68k_sigtramp_info): Define.
2895 (struct gdbarch_tdep): Add get_sigtramp_info.
2896 * m68klinux-nat.c (fetch_register): Use register_size instead of
2897 REGISTER_RAW_SIZE. Don't put assignment in if.
2898 (store_register): Likewise.
2899 (fetch_inferior_registers): Likewise.
2900 (store_inferior_registers): Likewise.
2901 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2902 (m68k_linux_frame_saved_pc): Delete.
2903 (m68k_linux_sigcontext_reg_offset,
2904 m68k_linux_ucontext_reg_offset): Define.
2905 (m68k_linux_get_sigtramp_info): New function.
2906 (m68k_linux_extract_return_value): Rewrite using regcache.
2907 (m68k_linux_store_return_value): Likewise.
2908 (m68k_linux_extract_struct_value_address): Likewise.
2909 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2910 Don't set deprecated_frame_saved_pc,
2911 deprecated_extract_return_value, deprecated_store_return_value,
2912 deprecated_extract_struct_value_address. Set
2913 extract_return_value, store_return_value,
2914 extract_struct_value_address.
2915
2916 2003-07-07 Andrew Cagney <cagney@redhat.com>
2917
2918 * expprint.c: Include "user-regs.h" instead of "frame.h".
2919 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2920 frame_map_regnum_to_name.
2921 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2922 (frame_map_name_to_regnum): Simplify, call
2923 user_reg_map_name_to_regnum.
2924 (frame_map_regnum_to_name): Simplify, call
2925 user_reg_map_regnum_to_name.
2926 (frame_register_unwind): Update.
2927 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2928 (_initialize_frame_reg): Call user_reg_add_builtin.
2929 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2930 (value_of_register): Use value_of_user_reg.
2931 * eval.c (evaluate_subexp_standard): Update.
2932 * parse.c (write_dollar_variable): Update.
2933 * d10v-tdep.c (d10v_print_registers_info): Update.
2934 * infcmd.c (registers_info): Update.
2935 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2936 (builtin_regs_h): Delete macro.
2937 (user_regs_h): Define.
2938 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2939 (builtin-regs.o): Delete target.
2940 (user-regs.o): Specify dependencies.
2941 (expprint.o): Update dependencies.
2942 (findvar.o): Update dependencies.
2943 (frame.o): Update dependencies.
2944 (std-regs.o): Update dependencies.
2945
2946 2003-07-06 Christopher Faylor <cgf@redhat.com>
2947
2948 * win32-nat.c (solib_symbols_add): Use one variable for all section
2949 address stuff. Pass variable rather than address of variable to
2950 safe_symbol_file_add.
2951
2952 2003-07-06 Andreas Schwab <schwab@suse.de>
2953
2954 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2955
2956 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2957
2958 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2959
2960 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2961
2962 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2963
2964 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2965
2966 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2967 * config/i386/nto.mh: New file.
2968 * config/i386/nm-nto.h: New file.
2969 * configure.host: Add i[3456]86-*-nto*.
2970
2971 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2972
2973 * remote-vx.c (vx_add_symbols): Fix compilation error.
2974
2975 2003-07-03 Andrew Cagney <cagney@redhat.com>
2976
2977 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2978 * gdbarch.h, gdbarch.c: Re-generate.
2979 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2980 (legacy_register_name): Declare.
2981 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2982 (REGISTER_NAME): Define.
2983 * sparc-tdep.c (legacy_register_name): New function.
2984 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2985 (REGISTER_NAME): Define.
2986 (hppa64_register_name): Declare.
2987 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2988 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2989 (hppa64_register_name): New function.
2990 (hppa_register_name): New function.
2991 * arch-utils.c (legacy_register_name): Delete.
2992 * arch-utils.h (legacy_register_name): Delete.
2993
2994 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2995
2996 * cli/cli-interp.c (cli_interpreter_resume): Update the
2997 cli_uiout's stream to gdb_stdout.
2998
2999 2003-07-03 Andrew Cagney <cagney@redhat.com>
3000
3001 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3002 predicate.
3003 * gdbarch.h, gdbarch.c: Re-generate.
3004 * regcache.c (init_regcache_descr): Use legacy code when either
3005 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3006
3007 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3008
3009 * NEWS: Move "set logging" entry into GDB 6.0 section.
3010
3011 2003-07-02 Jim Blandy <jimb@redhat.com>
3012
3013 * s390-tdep.c (struct frame_extra_info): new member:
3014 'stack_bought_valid'.
3015 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3016 initialize fextra_info->stack_bought.
3017 (s390_frameless_function_invocation): Don't trust the value of
3018 fextra_info_ptr->stack_bought unless
3019 fextra_info->stack_bought_valid is set.
3020
3021 New S390 prologue analyzer.
3022 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3023 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3024 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3025 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3026 compute_x_addr, s390_on_stack, s390_store,
3027 s390_get_signal_frame_info): New functions.
3028 (S390_NUM_SPILL_SLOTS): New macro.
3029 (s390_get_frame_info): Rewritten.
3030 (is_arg_reg): Deleted.
3031
3032 Break out the decoding of S/390 instructions into separate
3033 functions, to make it more legible, and easier to check
3034 against the spec.
3035 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3036 is_rx, is_rxe): New functions.
3037 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3038 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3039 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3040 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3041 enums for opcode values. (Is this an improvement?)
3042
3043 2003-07-02 Andrew Cagney <cagney@redhat.com>
3044
3045 * i386-tdep.c: Revert change committed as part of trad-frame code
3046 below.
3047
3048 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3049
3050 * breakpoint.c (insert_catchpoint): Make static.
3051
3052 2003-07-02 Andreas Schwab <schwab@suse.de>
3053
3054 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3055 former ia64_push_arguments and ia64_push_return_address, and use
3056 regcache functions instead of read/write_register.
3057 (ia64_gdbarch_init): Set push_dummy_call instead of
3058 deprecated_push_arguments and deprecated_push_return_address.
3059
3060 2003-07-01 Andreas Jaeger <aj@suse.de>
3061
3062 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3063 before the call.
3064 Set %rax only to number of SSE registers used.
3065
3066 2003-07-01 Andrew Cagney <cagney@redhat.com>
3067
3068 * trad-frame.h: Update comments, a -1 .addr is reserved.
3069 (trad_frame_value_p, trad_frame_addr_p): Declare.
3070 (trad_frame_reg_p): Declare.
3071 (trad_frame_set_value): Rename trad_frame_register_value.
3072 (trad_frame_set_unknown): Declare.
3073 * trad-frame.c (trad_frame_realreg_p): New function.
3074 (trad_frame_addr_p, trad_frame_value_p): New function.
3075 (trad_frame_set_unknown): New function.
3076 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3077 (trad_frame_prev_register): Use trad_frame_realreg_p,
3078 trad_frame_addr_p and trad_frame_value_p.
3079 (trad_frame_set_value): Rename trad_frame_register_value.
3080 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3081 and trad_frame_set_value.
3082
3083 2003-06-30 Jim Blandy <jimb@redhat.com>
3084
3085 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3086 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3087 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3088 for 16 registers, and then 32 more bytes.
3089 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3090 New macros.
3091 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3092 Move up in the file, since it's now used by is_simple_arg.
3093 (is_simple_arg): Don't assume registers are four bytes long.
3094 Exclude all double arguments. Extended floats are not simple
3095 args.
3096 (is_power_of_two): New function.
3097 (pass_by_copy_ref): Call is_power_of_two, and check that the
3098 length fits in a register, rather than listing all the acceptable
3099 sizes. Extended floats are not passed by reference.
3100 (s390_push_arguments): Don't assume registers are four bytes long.
3101 Reserve an argument register to point to the buffer for structures
3102 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3103 S390_STACK_FRAME_OVERHEAD.
3104
3105 2003-06-30 Andreas Schwab <schwab@suse.de>
3106
3107 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3108 format error message.
3109
3110 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3111
3112 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3113
3114 2003-06-30 David Carlton <carlton@kealia.com>
3115
3116 Band-aid for PR c++/1245.
3117 * Makefile.in (cp-support.o): Depend on complaints_h.
3118 * cp-support.c: Include complaints.h. Add declaration for
3119 find_last_component.
3120 (cp_find_first_component): Separate code into
3121 cp_find_first_component_aux.
3122 (cp_find_first_component_aux): Call demangled_name_complaint.
3123 (demangled_name_complaint): New.
3124
3125 2003-06-30 Andrew Cagney <cagney@redhat.com>
3126
3127 * remote.c (remote_write_bytes): Explicitly compute and then use
3128 the payload size. Update comments to reflect. Fixes problem of
3129 GDB not sending small packets as found by Fred Fish.
3130
3131 2003-06-30 Andrew Cagney <cagney@redhat.com>
3132
3133 * remote.c (remote_async_wait): Fix -Wformat problem.
3134
3135 2003-06-29 Andrew Cagney <cagney@redhat.com>
3136
3137 * remote.c (remote_wait): Call error, and not warning, when the
3138 packet is corrupt.
3139 (remote_async_wait): Ditto.
3140
3141 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3142
3143 * sparc-tdep.c (sparc_y_regnum): Make external again.
3144
3145 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3146
3147 * cli/cli-logging.c (pop_output_files): Add void to function
3148 definition.
3149
3150 2003-06-29 Andrew Cagney <cagney@redhat.com>
3151
3152 * frame.c (frame_register_unwind): Use unsigned char when dumping
3153 the buffer contents.
3154
3155 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3156
3157 * cli/cli-logging.c: New file.
3158 * cli-out.c (struct ui_out_data): Add original_stream.
3159 (cli_redirect): New function.
3160 (cli_ui_out_impl): Add cli_redirect.
3161 (cli_out_new): Initialize original_stream.
3162 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3163 (uo_redirect, ui_out_redirect): New.
3164 * ui-out.h (struct ui_out_impl): Add redirect member.
3165 (redirect_ftype): New.
3166 (ui_out_redirect): Add prototype.
3167 * Makefile.in: Add rules for cli-logging.c.
3168 * NEWS: Mention "set logging".
3169
3170 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3171
3172 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3173
3174 2003-06-27 Andrew Cagney <cagney@redhat.com>
3175
3176 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3177 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3178 * avr-tdep.c (avr_call_dummy_address): Delete function.
3179 (avr_gdbarch_init): Do not set call_dummy_address.
3180
3181 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3182
3183 * symfile.c (syms_from_objfile): Move variables to inner block.
3184 Move the checks for the non-mainline case a bit earlier to avoid
3185 doing some useless computations.
3186
3187 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3188
3189 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3190
3191 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3192
3193 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3194 sections.
3195
3196 2003-06-26 Michael Chastain <mec@shout.net>
3197
3198 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3199 gdb/testsuite/gdb.c++/pr-1210.exp.
3200
3201 2003-06-26 Andrew Cagney <cagney@redhat.com>
3202
3203 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3204 altivec_expression.h and altivec_registers.h.
3205
3206 2003-06-26 Andrew Cagney <cagney@redhat.com>
3207
3208 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3209 info->mach when MIPS16. Patch suggested by Fred Fish.
3210
3211 2003-06-26 Andrew Cagney <cagney@redhat.com>
3212
3213 * utils.c (internal_vproblem): Print the problem to a reason
3214 buffer and then pass to query. Make the msg variable more local.
3215
3216 2003-06-26 Andrew Cagney <cagney@redhat.com>
3217
3218 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3219 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3220 * gdbarch.h, gdbarch.c: Re-generate.
3221 * frame-base.c (default_frame_args_address): Update. Use
3222 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3223 not available.
3224 (default_frame_locals_address): Ditto for
3225 DEPRECATED_FRAME_LOCALS_ADDRESS.
3226 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3227 (vax_frame_num_args): Update.
3228 (vax_gdbarch_init): Update.
3229 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3230 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3231 * mcore-tdep.c (mcore_gdbarch_init): Update.
3232 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3233 * ia64-tdep.c (ia64_gdbarch_init): Update.
3234 * symtab.h (address_class): Update comments.
3235 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3236 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3237 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3238 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3239 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3240 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3241 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3242 * alpha-mdebug-tdep.c: Update.
3243 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3244
3245 2003-06-26 Andreas Jaeger <aj@suse.de>
3246
3247 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3248 of SSE registers so that varargs functions work. Rework handling
3249 of passing arguments on the stack.
3250 (x86_64_store_return_value): Return double and float values in SSE
3251 register.
3252
3253 2003-06-24 Michael Chastain <mec@shout.net>
3254
3255 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3256 the "constructor breakpoints ignored" bug.
3257
3258 2003-06-25 David Carlton <carlton@kealia.com>
3259
3260 * MAINTAINERS: Update e-mail address.
3261
3262 2003-06-24 Jim Blandy <jimb@redhat.com>
3263
3264 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3265
3266 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3267 function.
3268 (ppc_linux_init_abi): Register it as the
3269 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3270
3271 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3272 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3273 method.
3274
3275 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3276 (ppc64_standard_linkage_target): Use it.
3277
3278 2003-06-23 Andrew Cagney <cagney@redhat.com>
3279
3280 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3281 for 0 "int0" and 4 "int32" sized registers.
3282 * gdbtypes.c (builtin_type_int0): Define.
3283 (build_gdbtypes): Initialize builtin_type_int0.
3284 * gdbtypes.h (builtin_type_int0): Declare.
3285
3286 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3287
3288 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3289 as characters are unsigned.
3290
3291 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3292
3293 PR gdb/1179
3294 * dwarfread.c (struct_type): Skip static fields without crashing.
3295
3296 2003-06-22 Andrew Cagney <cagney@redhat.com>
3297
3298 GDB 6.0 branch created.
3299 * README: Update.
3300 * PROBLEMS: Update. Empty.
3301 * NEWS: Update.
3302
3303 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3304
3305 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3306 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3307
3308 2003-06-22 Andrew Cagney <cagney@redhat.com>
3309
3310 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3311 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3312 Velikov.
3313
3314 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3315
3316 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3317 compilers.
3318
3319 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3320
3321 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3322 argument of val_print.
3323 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3324 to the address argument of baseclass_offset or target_read_memory.
3325 Do add it to the argument of cp_print_value_fields.
3326
3327 2003-06-21 Andrew Cagney <cagney@redhat.com>
3328
3329 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3330 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3331 instead of 0..NUM_REGS.
3332 (mips_register_reggroup_p): New function.
3333 (mips_pseudo_register_write): New function.
3334 (mips_pseudo_register_read): New function.
3335 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3336 based on the register's type.
3337 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3338 cooked.
3339 (mips_get_saved_register): Simplify. Assert that REGNO is a
3340 pseudo / cooked.
3341 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3342 (mips_register_type): Replace mips_register_virtual_type. Map
3343 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3344 when available.
3345 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3346 that the register is cooked / virtual.
3347 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3348 Only get the extra info when needed.
3349 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3350 (mips32_heuristic_proc_desc): Fetch the cooked register.
3351 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3352 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3353 (mips_print_register): Use gdbarch_register_type, instead of
3354 REGISTER_VIRTUAL_TYPE.
3355 (print_gp_register_row): Use gdbarch_register_type, instead of
3356 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3357 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3358 Print the pseudo / cooked registers.
3359 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3360 Print the pseudo / cooked registers.
3361 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3362 REG_NUM is pseudo / cooked.
3363 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3364 (mips_n32n64_xfer_return_value): Ditto.
3365 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3366 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3367 (mips_register_sim_regno): New function.
3368 (mips_gdbarch_init): Set deprecated_register_byte,
3369 register_group_p, pseudo_register_write, pseudo_register_read,
3370 register_sim_regno, and num_pseudo_regs. Set register_type,
3371 instead of register_virtual_type.
3372 * Makefile.in (mips-tdep.o): Update dependencies.
3373 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3374 REGISTER_VIRTUAL_TYPE.
3375 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3376 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3377 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3378 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3379 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3380
3381 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3382
3383 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3384 * cli/cli-cmds.c: Include "gdb_vfork.h".
3385 (shell_escape): Use vfork.
3386
3387 2003-06-21 Andrew Cagney <cagney@redhat.com>
3388
3389 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3390 32 bit floating-point register saves.
3391
3392 * frame.h (deprecated_unwind_get_saved_register): Delete.
3393 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3394 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3395 and deprecated_get_next_frame_hack instead of
3396 deprecated_unwind_get_saved_register.
3397
3398 * mips-tdep.c (mips_dump_tdep): Do not print
3399 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3400
3401 * frame.c (get_frame_register): New function.
3402 (frame_unwind_register_signed): New function.
3403 (get_frame_register_signed): New function.
3404 (frame_unwind_register_unsigned): New function.
3405 (get_frame_register_unsigned): New function.
3406 * frame.h: Add comments on naming schema.
3407 (get_frame_register, frame_unwind_register_signed): Declare.
3408 (get_frame_register_signed, get_frame_register_signed): Declare.
3409 (frame_unwind_register_unsigned): Declare.
3410 (get_frame_register_unsigned): Declare.
3411
3412 2003-06-20 Theodore A. Roth <troth@openavr.org>
3413
3414 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3415
3416 2003-06-20 Theodore A. Roth <troth@openavr.org>
3417
3418 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3419 (avr_read_sp): Ditto.
3420
3421 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3422
3423 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3424 * config/arm/nm-linux.h: Likewise.
3425 * config/arm/tm-linux.h: Likewise.
3426 * config/ia64/nm-linux.h: Likewise.
3427 * config/ia64/tm-ia64.h: Likewise.
3428 * config/s390/tm-linux.h: Likewise.
3429 * config/s390/tm-s390.h: Likewise.
3430 * s390-nat.c: Likewise.
3431 * s390-tdep.c: Likewise.
3432
3433 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3434 * config/ia64/linux.mt: Likewise.
3435 * config/m68k/linux.mh: Likewise.
3436 * config/mips/linux.mt: Likewise.
3437 * config/powerpc/linux.mh: Likewise.
3438 * config/sh/linux.mt: Likewise.
3439
3440 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3441
3442 * solib.c (solib_open): Change tests for whether to search
3443 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3444 comments.
3445
3446 2003-06-19 Theodore A. Roth <troth@openavr.org>
3447
3448 * avr-tdep.c (avr_frame_address): Delete function.
3449 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3450 set_gdbarch_frame_args_address.
3451
3452 2003-06-19 Andrew Cagney <cagney@redhat.com>
3453
3454 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3455 (REGISTER_CONVERT_FROM_TYPE): Delete.
3456 (mips_register_convert_to_type): Delete declaration.
3457 (mips_register_convert_from_type): Delete declaration.
3458 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3459 kernel/.
3460
3461 2003-06-19 Michael Snyder <msnyder@redhat.com>
3462
3463 * linux-nat.h: New file.
3464 * linux-nat.c: Include linux-nat.h.
3465 * lin-lwp.c: Include linux-nat.h.
3466 Move struct lwp_info def to linux-nat.h.
3467 * linux-proc.c: Include linux-nat.h.
3468 (linux_make_note_section): Iterate over lwps instead of threads.
3469 (linux_do_thread_registers): Use lwp instead of merged pid.
3470 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3471 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3472 Add dependency on linux_nat_h.
3473
3474 2003-06-19 Theodore A. Roth <troth@openavr.org>
3475
3476 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3477
3478 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3479
3480 * varobj.c (get_type, get_target_type): Use check_typedef.
3481
3482 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3483
3484 * breakpoint.c (insert_catchpoint): Call internal_error.
3485
3486 2003-06-19 Theodore A. Roth <troth@openavr.org>
3487
3488 * avr-tdep.c (avr_push_dummy_code): Delete function.
3489 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3490
3491 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3492
3493 * arch-utils.c (default_prepare_to_proceed): Remove.
3494 (generic_prepare_to_proceed): Remove.
3495 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3496 (generic_prepare_to_proceed): Remove prototype.
3497 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3498 * gdbarch.c: Regenerate.
3499 * gdbarch.h: Regenerate.
3500 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3501 * hppah-nat.c (hppa_switched_threads): Remove.
3502 * infrun.c (prepare_to_proceed): New static function, copied from
3503 generic_prepare_to_proceed. Remove select_it argument.
3504 (proceed): Call prepare_to_proceed.
3505 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3506 variables.
3507 (ptrace_wait): Don't set the removed variables.
3508 (hppa_switched_threads): Remove.
3509 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3510 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3511 (lin_lwp_prepare_to_proceed): Remove prototype.
3512 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3513 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3514
3515 2003-06-18 Theodore A. Roth <troth@openavr.org>
3516
3517 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3518 trad-frame.h.
3519 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3520 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3521 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3522 (AVR_PROLOGUE_*): Enumerate prologue types.
3523 (struct frame_extra_info): Remove.
3524 (struct avr_unwind_cache): Define.
3525 (avr_write_sp): Delete function.
3526 (avr_read_fp): Ditto.
3527 (avr_init_extra_frame_info): Ditto.
3528 (avr_pop_frame): Ditto.
3529 (avr_frame_saved_pc): Ditto.
3530 (avr_saved_pc_after_call): Ditto.
3531 (avr_push_return_address): Ditto.
3532 (avr_frame_chain): Ditto.
3533 (avr_store_struct_return): Ditto.
3534 (avr_push_arguments): Ditto.
3535 (avr_scan_prologue): Update comments. Changed to set up the info for
3536 cache unwinding. Now returns end of prologue PC.
3537 (avr_skip_prologue): Better handling of functions lacking a prologue
3538 by using avr_scan_prologue.
3539 (avr_scan_arg_moves): New function.
3540 (avr_saved_regs_unwinder): Ditto.
3541 (avr_frame_unwind_cache): Ditto.
3542 (avr_unwind_pc): Ditto.
3543 (avr_frame_this_id): Ditto.
3544 (avr_frame_prev_register): Ditto.
3545 (avr_frame_p): Ditto.
3546 (avr_frame_base_address ): Ditto.
3547 (avr_unwind_dummy_id): Ditto.
3548 (avr_push_dummy_code): Ditto.
3549 (push_stack_item): Ditto.
3550 (pop_stack_item): Ditto.
3551 (avr_push_dummy_call): Ditto.
3552 (struct stack_item): Define.
3553 (avr_frame_unwind): Declare structure.
3554 (avr_frame_base): Ditto.
3555 (avr_gdbarch_init): Remove calls to
3556 set_gdbarch_deprecated_init_frame_pc,
3557 set_gdbarch_deprecated_target_read_fp,
3558 set_gdbarch_deprecated_dummy_write_sp,
3559 set_gdbarch_deprecated_fp_regnum,
3560 set_gdbarch_deprecated_push_arguments,
3561 set_gdbarch_deprecated_push_return_address,
3562 set_gdbarch_deprecated_pop_frame,
3563 set_gdbarch_deprecated_store_struct_return,
3564 set_gdbarch_deprecated_frame_init_saved_regs,
3565 set_gdbarch_deprecated_init_extra_frame_info,
3566 set_gdbarch_deprecated_frame_chain,
3567 set_gdbarch_deprecated_frame_saved_pc,
3568 set_gdbarch_deprecated_saved_pc_after_call.
3569 Add calls to set_gdbarch_push_dummy_call,
3570 set_gdbarch_push_dummy_code,
3571 frame_unwind_append_predicate,
3572 frame_base_set_default,
3573 set_gdbarch_unwind_dummy_id,
3574 set_gdbarch_unwind_pc.
3575 Wrap a long line.
3576
3577 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3578
3579 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3580 registers for H8/300S.
3581 (h8300_print_registers_info): Ditto.
3582 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3583
3584 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3585
3586 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3587 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3588 (lin_lwp_wait): Likewise. Update comments.
3589 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3590 (pull_pid_from_list, linux_record_stopped_pid): New.
3591
3592 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3593
3594 * ada-lang.c (scan_discrim_bound): Name first argument.
3595 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3596 declared by ALL_BLOCK_SYMBOLS.
3597
3598 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3599
3600 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3601 ("regcache.h"): Include it.
3602 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3603
3604 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3605
3606 * NEWS: Mention gdbserver detach change and "disconnect" command.
3607 * infcmd.c (disconnect_command): New function.
3608 (_initialize_infcmd): Add ``disconnect'' command.
3609 * remote.c (remote_async_detach): Delete.
3610 (remote_detach): Merge remote_async_detach.
3611 (remote_disconnect): New.
3612 (init_remote_ops): Set to_disconnect.
3613 (init_remote_cisco_ops): Likewise.
3614 (init_remote_async_ops): Likewise. Use remote_detach.
3615 * target.c (cleanup_target): Default to_disconnect.
3616 (update_current_target): Inherit to_disconnect.
3617 (target_disconnect, debug_to_disconnect): New functions.
3618 (setup_target_debug): Set to_disconnect.
3619 * target.h (struct target_ops): Add to_disconnect.
3620 (target_disconnect): Add prototype.
3621
3622 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3623
3624 * breakpoint.c (insert_catchpoint): New function.
3625 (insert_breakpoints): Use catch_exceptions to call
3626 insert_catchpoint. Disable catchpoints if they fail to insert.
3627
3628 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3629
3630 * symfile.c (reread_symbols): Clear sym_private.
3631
3632 2003-06-17 Andrew Cagney <cagney@redhat.com>
3633
3634 * trad-frame.h (struct frame_info): Add opaque declaration.
3635 * remote-fileio.h (struct cmd_list_element): Add opaque
3636 declaration.
3637 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3638 comments.
3639
3640 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3641
3642 * remote.c (remote_prepare_to_store): Replace call to
3643 deprecated_read_register_bytes with multiple regcache_raw_read
3644 calls.
3645
3646 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3647
3648 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3649 (nto_find_and_open_solib): Likewise.
3650 (nto_init_solib_absolute_prefix): Likewise.
3651 (_initialize_nto_tdep): Fix indentation.
3652
3653 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3654
3655 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3656
3657 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3658
3659 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3660
3661 2003-06-17 Jim Blandy <jimb@redhat.com>
3662
3663 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3664
3665 2003-06-16 Theodore A. Roth <troth@openavr.org>
3666
3667 * avr-tdep.c (avr_extract_return_value): New function.
3668 (avr_gdbarch_init): Set extract_return_value method.
3669
3670 2003-06-16 Andrew Cagney <cagney@redhat.com>
3671
3672 * frame.h (deprecated_get_next_frame_hack): Declare.
3673 * frame.c (legacy_saved_regs_prev_register): Only require
3674 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3675 there are always saved regs.
3676 (deprecated_generic_get_saved_register): Do not require
3677 DEPRECATED_FRAME_INIT_SAVED_REGS.
3678 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3679 use frame ID unwind instead.
3680 (deprecated_get_next_frame_hack): New function.
3681
3682 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3683
3684 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3685 (h8300_push_dummy_call): ...this function. Some minor optimization.
3686 (h8300_push_return_address): Remove.
3687 (h8300_gdbarch_init): Remove calls to
3688 set_gdbarch_deprecated_dummy_write_sp,
3689 set_gdbarch_deprecated_push_arguments and
3690 set_gdbarch_deprecated_push_return_address.
3691 Add call to set_gdbarch_push_dummy_call.
3692
3693 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3694
3695 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3696 (E_PSEUDO_EXR_REGNUM): Ditto.
3697 (h8300_is_argument_spill): Check for instructions moving argument
3698 registers into safe registers.
3699 (h8300_skip_prologue): Check for stm instruction to push registers
3700 used for register variables onto stack.
3701 (gdb_print_insn_h8300): Remove.
3702 (h8300_examine_prologue): Add a comment.
3703 (h8300_register_name): Take pseudo registers into account.
3704 (h8300s_register_name): Ditto.
3705 (h8300sx_register_name): Ditto.
3706 (h8300_print_register): Ditto.
3707 (h8300_print_registers_info): Define "nice" printing order.
3708 (h8300_saved_pc_after_call): Take pseudo registers into account.
3709 (h8300_register_type): Ditto. Return type used for remote connection
3710 when requesting real CCR or EXR register, return actual type when
3711 requesting pseudo CCR or EXR.
3712 (h8300_pseudo_register_read): New function.
3713 (h8300_pseudo_register_write): Ditto.
3714 (h8300_dbg_reg_to_regnum): Ditto.
3715 (h8300s_dbg_reg_to_regnum): Ditto.
3716 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3717 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3718 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3719 set_gdbarch_print_insn architecture dependent.
3720 Call set_gdbarch_pseudo_register_read and
3721 set_gdbarch_pseudo_register_write.
3722 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3723
3724 2003-06-16 Andrew Cagney <cagney@redhat.com>
3725
3726 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3727 * gdbarch.h, gdbarch.c: Re-generate.
3728 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3729 * s390-tdep.c (s390_gdbarch_init): Update.
3730 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3731 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3732 * mips-tdep.c (mips_gdbarch_init): Update.
3733 * mcore-tdep.c (mcore_gdbarch_init): Update.
3734 * cris-tdep.c (cris_gdbarch_init): Update.
3735 * infcall.c (call_function_by_hand): Update.
3736 * ia64-tdep.c (ia64_push_arguments): Update comment.
3737 * frame.c (legacy_get_prev_frame): Do not assume
3738 SAVE_DUMMY_FRAME_TOS_P.
3739 * dummy-frame.c (find_dummy_frame): Update comment.
3740
3741 2003-06-16 Andrew Cagney <cagney@redhat.com>
3742
3743 * regcache.c (do_cooked_read): Do not use register_valid_p.
3744
3745 2003-06-15 Theodore A. Roth <troth@openavr.org>
3746
3747 * avr-tdep.c (avr_register_type): Remove a blank line.
3748 (avr_scan_prologue): Correct some comments.
3749
3750 2003-06-15 Theodore A. Roth <troth@openavr.org>
3751
3752 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3753 prologue types.
3754 Properly scan prologues generated by gcc with the -mcall-prologues
3755 option.
3756 Add code to scan -mcall-prologues for mega devices.
3757
3758 2003-06-15 Theodore A. Roth <troth@openavr.org>
3759
3760 * avr-tdep.c (avr_register_byte): Delete function.
3761 (avr_register_raw_size): Delete function.
3762 (avr_register_virtual_size): Delete function.
3763 (avr_register_virtual_type): Delete function.
3764 (avr_register_type): New function.
3765 (avr_address_to_pointer): Remove unused code.
3766 (avr_read_fp): Need to read FP as two separate bytes due to change to
3767 avr_register_type() usage.
3768 (avr_gdbarch_init): Don't set deprecated_register_size.
3769 Don't set deprecated_register_bytes.
3770 Don't set deprecated_register_byte.
3771 Don't set deprecated_register_raw_size.
3772 Don't set deprecated_max_register_raw_size.
3773 Don't set deprecated_register_virtual_size.
3774 Don't set deprecated_max_register_virtual_size.
3775 Don't set deprecated_register_virtual_type.
3776 Set register_type method.
3777
3778 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3779
3780 * Makefile.in (linux-nat.o): Add rule.
3781 * linux-nat.c: New file.
3782 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3783 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3784 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3785 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3786 * config/arm/linux.mh (NATDEPFILES): Likewise.
3787 * config/i386/linux.mh (NATDEPFILES): Likewise.
3788 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3789 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3790 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3791 * config/mips/linux.mh (NATDEPFILES): Likewise.
3792 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3793 * config/s390/s390.mh (NATDEPFILES): Likewise.
3794 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3795
3796 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3797
3798 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3799 replace out-of-date comment.
3800
3801 2003-06-15 Andrew Cagney <cagney@redhat.com>
3802
3803 * rdi-share/host.h (Fail): Change to a varargs function.
3804 * remote-rdi.c (Fail): Update.
3805
3806 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3807
3808 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3809 (i386_convert_register_p, i386_register_to_value,
3810 i386_register_from_value): Handle types longer than 8 bytes.
3811
3812 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3813
3814 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3815 Move floating-point code to new function in i387-tdep.c.
3816 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3817 New functions containing code moved here from i386-tdep.c.
3818 * i387-tdep.h: Add opaque declaration for `struct type'.
3819 (i387_register_to_value, i387_value_to_register): New prototypes.
3820 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3821 (x86_64_init_abi): Set convert_register_p, register_to_value and
3822 value_to_register here.
3823
3824 2003-06-14 Andrew Cagney <cagney@redhat.com>
3825
3826 * mips-tdep.c (mips_register_to_value): Make static.
3827 (mips_value_to_register): Make static.
3828 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3829 * ia64-tdep.c (ia64_register_raw_size): Make static.
3830 (ia64_register_virtual_size): Make static.
3831 (ia64_register_byte): Make static.
3832 * i387-tdep.c: Include "i387-tdep.h".
3833 (print_387_control_word): Delete function.
3834 (print_387_status_word): Delete function.
3835 (print_387_status_bits): Delete function.
3836 (print_387_control_bits): Delete function.
3837 * Makefile.in (i387-tdep.o): Update dependencies.
3838 * rdi-share/host.h (Fail): Declare.
3839 * remote-rdi.c (Fail): Update to match declaration.
3840
3841 2003-06-14 Andrew Cagney <cagney@redhat.com>
3842
3843 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3844 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3845 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3846 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3847 * README: Delete reference to remote-array.
3848 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3849 (remote-array.o): Delete target.
3850 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3851 * remote-array.c: Delete file.
3852
3853 2003-06-14 Andrew Cagney <cagney@redhat.com>
3854 Mark Kettenis <kettenis@gnu.org>
3855
3856 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3857 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3858 parameter with "frame".
3859 * gdbarch.h, gdbarch.c: Re-generate.
3860 * frame.h (put_frame_register): Declare.
3861 * frame.c (put_frame_register): New function.
3862 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3863 (legacy_register_to_value): Rewrite, use "frame" to get the
3864 register value.
3865 (legacy_value_to_register): Rewrite, use "frame" to find the
3866 register's location before storing.
3867 * arch-utils.h (legacy_convert_register_p): Update.
3868 (legacy_register_to_value, legacy_value_to_register): Update.
3869 * findvar.c (value_from_register): Rewrite, eliminate use of
3870 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3871 "frame" to REGISTER_TO_VALUE.
3872 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3873 lval_reg_frame_relative + lval_register branch of the switch. Do
3874 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3875 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3876 I386_EDI_REGNUM): New defines.
3877 (i386_next_regnum, i386_convert_register_p,
3878 i386_register_to_value, i386_value_to_register): New functions.
3879 (i386_register_convertible, i386_register_convert_to_virtual,
3880 i386_convert_to_raw): Remove functions.
3881 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3882 value_to_register instead of register_convertible,
3883 register_convert_to_virtual and register_convert_to_raw.
3884 * mips-tdep.c (mips_convert_register_p): New function.
3885 (mips_value_to_register): Replace mips_register_convert_from_type.
3886 (mips_register_to_value): Replace mips_register_convert_to_type.
3887 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3888 register_to_value.
3889 * alpha-tdep.c (alpha_convert_register_p): Update.
3890 (alpha_value_to_register): Update, store the register.
3891 (alpha_register_to_value): Update, fetch the register.
3892
3893 2003-06-14 Theodore A. Roth <troth@openavr.org>
3894
3895 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3896 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3897 Don't set deprecated_call_dummy_words.
3898 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3899 Don't set remote_translate_xfer_address.
3900 (avr_io_reg_read_command): Remove commented out debug printf.
3901 Wrap a long line.
3902
3903 2003-06-14 Theodore A. Roth <troth@openavr.org>
3904
3905 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3906 causes gdb to seg fault.
3907
3908 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3909
3910 * sparc-nat.c (fetch_inferior_registers): Correct
3911 a reference to "registers".
3912
3913 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3914
3915 * Makefile.in (exc_request_U_h): Define
3916 (exc_request_S_h): Likewise.
3917 (msg_reply_S_h): Likewise.
3918 (msg_U_h): Likewise.
3919 (notify_S_h): Likewise.
3920 (process_reply_S_h): Likewise.
3921 (gnu-nat.o): Depend on gdb_obstack_h
3922 * gnu-nat.c: Include "gdb_obstack.h".
3923
3924 2003-06-13 Andrew Cagney <cagney@redhat.com>
3925
3926 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3927 * gdbarch.h, gdbarch.c: Re-generate.
3928
3929 2003-06-13 Andrew Cagney <cagney@redhat.com>
3930
3931 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3932 when deprecated REGISTER macros can be deleted.
3933 * gdbarch.h, gdbarch.c: Re-generate.
3934
3935 2003-06-13 Jim Blandy <jimb@redhat.com>
3936
3937 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3938 Linux entry point symbols for _dl_debug_state, too.
3939
3940 2003-06-13 Andrew Cagney <cagney@redhat.com>
3941
3942 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3943 available, do not use the FP register, and always save the TOS.
3944 * dummy-frame.c (dummy_frame_this_id): Do not assert
3945 SAVE_DUMMY_FRAME_TOS.
3946 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3947 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3948 (i386_push_dummy_call): Add 8 to the returned SP.
3949 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3950 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3951 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3952 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3953 (x86_64_push_dummy_call): Return "sp + 16".
3954 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3955 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3956 save_dummy_frame_tos.
3957
3958 2003-06-13 Jim Blandy <jimb@redhat.com>
3959
3960 * frv-tdep.c (frv_use_struct_convention): Delete static
3961 declaration for function deleted in my change of 2003-06-12.
3962
3963 2003-06-13 Theodore A. Roth <troth@openavr.org>
3964
3965 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3966 (avr_pointer_to_address): Shift code addrs left 1 bit.
3967 (avr_convert_from_func_ptr_addr): Delete function since operation is
3968 better handled by avr_address_to_pointer and avr_pointer_to_address.
3969 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3970
3971 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3972
3973 From Kelley Cook <kelleycook@wideopenwest.com>:
3974 * configure.host: Accept i[34567]86 variants.
3975 * configure.tgt: Likewise.
3976 * nlm/configure.in: Likewise.
3977 * nlm/configure: Regenerated.
3978
3979 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3980
3981 * arm-tdep.c (solib-svr4.h): Dont' include it.
3982 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3983 * arm-linux-tdep.c: ... here. Make static.
3984 (arm_linux_init_abi): Register it.
3985 (solib-svr4.h): Include it.
3986 * Makefile.in: Update dependencies.
3987 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3988 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3989
3990 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3991
3992 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3993 indicate registers used for return values.
3994 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3995 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3996 members.
3997 (h8300_init_extra_frame_info): Ditto.
3998 (h8300_frame_locals_address): Removed.
3999 (h8300_frame_args_address): Removed.
4000 (h8300_extract_return_value): Use new regcache structure. Only care
4001 for 16 bit CPUs.
4002 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4003 (h8300_store_return_value): Use new regcache structure. Only care
4004 for 16 bit CPUs.
4005 (h8300h_store_return_value): Same function for 32 bit CPUs.
4006 (h8300_store_struct_return): Removed.
4007 (h8300_extract_struct_value_address): Use new regcache structure.
4008 (h8300h_extract_struct_value_address): Removed.
4009 (h8300_push_dummy_code): New function.
4010 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4011 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4012 set_gdbarch_store_return_value architecture dependent.
4013 Call set_gdbarch_push_dummy_code and
4014 set_gdbarch_extract_struct_value_address.
4015 Remove calls to set_gdbarch_frame_args_address,
4016 set_gdbarch_frame_locals_address,
4017 set_gdbarch_deprecated_store_struct_return,
4018 set_gdbarch_deprecated_extract_return_value,
4019 set_gdbarch_deprecated_extract_struct_value_address,
4020 set_gdbarch_deprecated_call_dummy_words and
4021 set_gdbarch_deprecated_sizeof_call_dummy_words.
4022
4023 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4024
4025 * h8300-tdep.c (h8300_register_byte): Remove.
4026 (h8300h_register_byte): Remove.
4027 (h8300_register_virtual_type): Remove. Substitute by...
4028 (h8300_register_type): New function.
4029 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4030 (h8300h_extract_struct_value_address): Ditto.
4031 (h8300_gdbarch_init): Drop calls to
4032 set_gdbarch_deprecated_register_byte and
4033 set_gdbarch_deprecated_register_virtual_type.
4034 Add call to set_gdbarch_register_type.
4035
4036 2003-06-13 Andrew Cagney <cagney@redhat.com>
4037
4038 * gdbarch.sh: Update comments on registers.
4039 (deprecated_register_byte): Rename register_byte.
4040 (deprecated_register_raw_size): Rename register_raw_size.
4041 (deprecated_register_virtual_size): Rename register_virtual_size.
4042 (deprecated_register_virtual_type): Rename register_virtual_type.
4043 * gdbarch.h, gdbarch.c: Re-generate.
4044 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4045 * vax-tdep.c (vax_gdbarch_init): Update.
4046 * v850-tdep.c (v850_gdbarch_init): Update.
4047 * sparc-tdep.c (sparc_gdbarch_init): Update.
4048 * sh-tdep.c (sh_gdbarch_init): Update.
4049 * s390-tdep.c (s390_gdbarch_init): Update.
4050 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4051 * ns32k-tdep.c: Update.
4052 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4053 * mips-tdep.c (mips_gdbarch_init): Update.
4054 * mcore-tdep.c (mcore_gdbarch_init): Update.
4055 * m68k-tdep.c (m68k_gdbarch_init): Update.
4056 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4057 * ia64-tdep.c (ia64_gdbarch_init): Update.
4058 * hppa-tdep.c (hppa_gdbarch_init): Update.
4059 * h8300-tdep.c (h8300_gdbarch_init): Update.
4060 * frv-tdep.c (frv_gdbarch_init): Update.
4061 * cris-tdep.c (cris_gdbarch_init): Update.
4062 * avr-tdep.c (avr_gdbarch_init): Update.
4063 * alpha-tdep.c (alpha_gdbarch_init): Update.
4064 * arm-tdep.c (arm_gdbarch_init): Update.
4065
4066 2003-06-13 Andrew Cagney <cagney@redhat.com>
4067
4068 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4069 mips_o32_use_struct_convention with always_use_struct_convention.
4070
4071 2003-06-12 David Carlton <carlton@kealia.com>
4072
4073 * cp-namespace.c (cp_set_block_scope): Comment out
4074 processing_has_namespace_info branch.
4075
4076 2003-06-12 Jim Blandy <jimb@redhat.com>
4077
4078 Recognize and skip 64-bit PowerPC Linux linkage functions.
4079 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4080 insn_pattern, insns_match_pattern, d_field, ds_field): New
4081 functions, macros, and types for working with PPC instructions.
4082 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4083 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4084 ppc64_skip_trampoline_code): New functions, variables, and macros
4085 for recognizing and skipping linkage functions.
4086 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4087 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4088
4089 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4090 register offsets for both the 32- and 64-bit interfaces.
4091
4092 Actually finish the job started by my change of 2003-05-29.
4093 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4094 other #definition of this.
4095 (ppc_linux_skip_trampoline_code): Remove declaration.
4096 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4097 static.
4098 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4099 method for GDBARCH.
4100
4101 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4102 'long' on ppc64-*-linux*.
4103
4104 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4105 isn't #defined, assume the register doesn't exist: act as if
4106 tdep->ppc_mq_regnum were -1.
4107
4108 * configure.host, configure.tgt: Add entries for
4109 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4110 powerpc/linux.mt.
4111 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4112 New files.
4113
4114 * arch-utils.c (always_use_struct_convention): New function.
4115 * arch-utils.h (always_use_struct_convention): New prototype.
4116 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4117 (alpha_gdbarch_init): Register always_use_struct_convention,
4118 instead of alpha_use_struct_convention.
4119 * cris-tdep.c (cris_use_struct_convention): Delete.
4120 (cris_gdbarch_init): Register always_use_struct_convention,
4121 instead of cris_use_struct_convention.
4122 * frv-tdep.c (frv_use_struct_convention): Delete.
4123 (frv_gdbarch_init): Register always_use_struct_convention,
4124 instead of frv_use_struct_convention.
4125 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4126 (h8300_gdbarch_init): Register always_use_struct_convention,
4127 instead of h8300_use_struct_convention.
4128 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4129 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4130 instead of mips_o32_use_struct_convention.
4131
4132 2003-06-12 Andrew Cagney <cagney@redhat.com>
4133
4134 * wince.c: Include "mips-tdep.h".
4135 * mips-tdep.h (mips_next_pc): Declare.
4136 * mcore-tdep.c: Make more local functions static.
4137 * Makefile.in (wince.o): Update dependencies.
4138
4139 2003-06-12 David Carlton <carlton@kealia.com>
4140
4141 * symtab.c (lookup_symbol_aux_minsyms): Replace
4142 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4143 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4144 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4145 SYMBOL_NATURAL_NAME.
4146
4147 2003-06-12 Andreas Schwab <schwab@suse.de>
4148
4149 * Makefile.in (tuiDisassem.o): Update dependencies.
4150
4151 2003-06-12 David Carlton <carlton@bactrian.org>
4152
4153 * symtab.h: Delete declaration of make_symbol_overload_list.
4154 Add declaration of lookup_partial_symbol.
4155 * symtab.c (remove_params): Move to cp-support.c.
4156 (overload_list_add_symbol, make_symbol_overload_list)
4157 (sym_return_val_size, sym_return_val_index): Ditto.
4158 (lookup_partial_symbol): Make extern.
4159 * cp-support.h: Add declaration of make_symbol_overload_list.
4160 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4161 symtab.h, and block.h.
4162 (remove_params): Move here from symtab.c.
4163 (overload_list_add_symbol, make_symbol_overload_list)
4164 (sym_return_val_size, sym_return_val_index): Ditto.
4165 * valops.c: Include cp-support.h.
4166 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4167 frame_h, and block_h.
4168 (valops.o): Depend on cp_support_h.
4169
4170 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4171
4172 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4173 substitute by NUM_REGS throughout.
4174 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4175 (h8300s_register_name): New function for H8S registers.
4176 (h8300sx_register_name): Ditto for H8SX registers.
4177 (h8300_print_register): Revise register printing, avoid depending
4178 on 32 bit long.
4179 (h8300_register_byte): Only care for H8/300 registers.
4180 (h8300h_register_byte): New function for any other architecture.
4181 (h8300_register_raw_size): Remove.
4182 (h8300_register_virtual_type): Revise to return actually useful
4183 type.
4184 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4185 (h8300h_extract_struct_value_address): New function for any other
4186 architecture.
4187 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4188 set_gdbarch_register_name, set_gdbarch_register_byte,
4189 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4190 Remove calls to set_gdbarch_deprecated_register_size,
4191 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4192 set_gdbarch_deprecated_max_register_raw_size,
4193 set_gdbarch_register_virtual_size and
4194 set_gdbarch_deprecated_max_register_virtual_size entirely.
4195 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4196 set_gdbarch_long_double_bit.
4197
4198 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4199
4200 * doublest.c (convert_doublest_to_floatformat): When dealing
4201 with the implied integer bit, only alter mant_bits if we are
4202 processing a full 32 bits of mantissa.
4203
4204 2003-06-11 David Carlton <carlton@bactrian.org>
4205
4206 * dictionary.h: New.
4207 * dictionary.c: New.
4208 * block.h: Add opaque declaration for struct dictionary.
4209 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4210 'sym' members.
4211 (BLOCK_DICT): New macro.
4212 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4213 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4214 BLOCK_SHOULD_SORT.
4215 (ALL_BLOCK_SYMBOLS): Update definition.
4216 * Makefile.in (SFILES): Add dictionary.c.
4217 (dictionary_h): New.
4218 (COMMON_OBS): Add dictionary.o.
4219 (dictionary.o): New.
4220 (ada-lang.o): Depend on dictionary_h.
4221 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4222 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4223 (mi-cmd-stack.o): Ditto.
4224 (gdbtk-cmds.o): Update dependencies.
4225 (gdbtk-stack.o): Ditto.
4226 * ada-lang.c: Include dictionary.h.
4227 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4228 (fill_in_ada_prototype, debug_print_block): Ditto.
4229 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4230 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4231 'is_sorted'.
4232 * mdebugread.c: Include dictionary.h.
4233 (struct parse_stack): Delete 'maxsyms' member.
4234 (parse_symbol): Update calls to new_block. Delete calls to
4235 shrink_block. Use dictionary methods.
4236 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4237 Update calls to new_symtab. Don't maintain maxsyms data.
4238 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4239 (add_symbol): Just call dict_add_symbol.
4240 (new_symtab): Delete 'maxsyms' argument.
4241 (new_symtab): Update calls to new_block.
4242 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4243 (shrink_block): Delete function.
4244 (fixup_sigtramp): Update call to new_block. Add symbol via
4245 dict_add_symbol.
4246 * jv-lang.c: Include dictionary.h.
4247 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4248 appropriately. Set class_symtab->free_func. Make sure the
4249 blockvector is big enough to hold two blocks.
4250 (add_class_symtab_symbol): Use dictionary methods.
4251 (free_class_block): New function.
4252 (type_from_class): Replace explicit iteration by
4253 ALL_BLOCK_SYMBOLS.
4254 * symtab.h (struct symtab): Replace 'free_ptr' method by
4255 'free_func'.
4256 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4257 sort_symtab_syms.
4258 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4259 sort_symtab_syms.
4260 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4261 Include dictionary.h.
4262 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4263 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4264 sort_symtab_syms.
4265 * objfiles.c: Include dictionary.h.
4266 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4267 * buildsym.c: Include dictionary.h.
4268 (finish_block): Use dictionary methods.
4269 (end_symtab): Set free_func to NULL, not free_ptr.
4270 * tracepoint.c: Include dictionary.h.
4271 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4272 (scope_info): Ditto.
4273 * stack.c: Include dictionary.h.
4274 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4275 (print_block_frame_labels, print_frame_arg_vars)
4276 (print_frame_args): Ditto.
4277 * symmisc.c (free_symtab_block): Use dictionary methods.
4278 (dump_symtab): Ditto.
4279 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4280 Include dictionary.h.
4281 * symfile.h: Delete declarations of sort_block_syms,
4282 sort_symtab_syms.
4283 * symfile.c (sort_block_syms): Delete.
4284 (sort_symtab_syms): Delete.
4285 * symtab.c: Include dictionary.h.
4286 (lookup_block_symbol): Use dictionary iterators.
4287 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4288 (search_symbols, make_symbol_completion_list): Ditto.
4289 (make_symbol_overload_list): Ditto.
4290 * valops.c (value_of_local): Use dict_empty.
4291 Include dictionary.h.
4292
4293 2003-06-11 J. Brobecker <brobecker@gnat.com>
4294
4295 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4296
4297 2003-06-11 David Carlton <carlton@bactrian.org>
4298
4299 * block.h (BLOCK_SHOULD_SORT): Delete.
4300 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4301 blocks.
4302 * ada-lang.c (ada_add_block_symbols): Ditto.
4303 * symfile.c (sort_block_syms): Delete.
4304 (sort_symtab_syms): Ditto.
4305 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4306 declarations.
4307 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4308 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4309 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4310 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4311 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4312 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4313 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4314
4315 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4316
4317 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4318 bits to 128.
4319
4320 2003-06-11 Andrew Cagney <cagney@redhat.com>
4321
4322 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4323 REGISTER_CONVERTIBLE.
4324 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4325 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4326 * gdbarch.h, gdbarch.c: Re-generate.
4327 * arch-utils.h (deprecated_register_convertible_not): Rename
4328 generic_register_convertible_not.
4329 * arch-utils.c (deprecated_register_convertible_not): Rename
4330 generic_register_convertible.
4331 (legacy_convert_register_p, legacy_register_to_value): Update.
4332 * sh-tdep.c (sh64_push_arguments): Update.
4333 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4334 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4335 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4336 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4337 * arch-utils.c (legacy_value_to_register): Update.
4338 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4339 (rs6000_register_convert_to_raw): Make parameter "from" const.
4340 * mips-tdep.c (mips_gdbarch_init): Update.
4341 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4342 * infcmd.c (default_print_registers_info): Update.
4343 * ia64-tdep.c (ia64_gdbarch_init): Update.
4344 (ia64_register_convert_to_raw): Make parameter "from" const.
4345 * i386-tdep.c (i386_gdbarch_init): Update.
4346 (i386_register_convert_to_raw): Update.
4347
4348 2003-06-11 Andrew Cagney <cagney@redhat.com>
4349
4350 * remote-fileio.c: Include "remote-fileio.h".
4351 * Makefile.in (remote-fileio.o): Update dependencies.
4352 (remote_fileio_h): Fix typo.
4353
4354 2003-06-11 Andrew Cagney <cagney@redhat.com>
4355
4356 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4357 (xstormy16_save_dummy_frame_tos): Make static.
4358 (_initialize_xstormy16_tdep): Add declaration.
4359 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4360 * v850-tdep.c: Make local functions static.
4361 (_initialize_v850_tdep): Add declaration.
4362 * sparc-tdep.c: Make local functions static.
4363 (_initialize_sparc_tdep): Add declaration.
4364 * sh-tdep.c: Make local functions static.
4365 (_initialize_sh_tdep): Add declaration.
4366 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4367 * s390-tdep.c: Make local functions static.
4368 (_initialize_s390_tdep): Add declaration.
4369 * dbxread.c (find_stab_function_addr): Make static.
4370 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4371 * ocd.c (_initialize_remote_ocd): Add declaration.
4372 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4373 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4374 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4375 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4376 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4377 * remote-array.c (_initialize_array): Add declaration.
4378 (_initialize_remote_monitors): Add declaration.
4379 * remote-mips.c: Make local functions static.
4380 (_initialize_remote_mips): Add declaration.
4381 * mcore-tdep.c: Make all local functions static.
4382 (_initialize_mcore_tdep): Add declaration.
4383 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4384 * abug-rom.c (_initialize_abug_rom): Add declaration.
4385 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4386 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4387 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4388 * remote-est.c (_initialize_est): Add declaration.
4389 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4390 (m68hc11_call_dummy_address): Make static.
4391 * ia64-tdep.c: Make local functions static.
4392 (_initialize_ia64_tdep): Add declaration.
4393 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4394 * monitor.c (monitor_wait_filter): Make static.
4395 (_initialize_remote_monitors): Add declaration.
4396 * remote-hms.c (_initialize_remote_hms): Add declaration.
4397 * remote-e7000.c (fetch_regs_from_dump): Make static.
4398 (expect_n): Make static.
4399 (_initialize_remote_e7000): Add declaration.
4400 * ser-e7kpc.c: Always include "defs.h".
4401 (_initialize_ser_e7000pc): Add declaration.
4402 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4403 * cris-tdep.c: Make all but one function static.
4404 (_initialize_cris_tdep): Add declaration.
4405 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4406 * solib.c (update_solib_list): Make static.
4407 (_initialize_solib): Add declaration.
4408 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4409 (_initialize_avr_tdep): Add declaration.
4410 * remote-rdi.c (voiddummy): Make static.
4411 (_initialize_remote_rdi): Add declaration.
4412 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4413 * remote-rdp.c (send_rdp): Make static.
4414 (_initialize_remote_rdp): Add declaration.
4415 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4416
4417 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4418
4419 * remote-fileio.c: Make ari happy.
4420
4421 2003-06-10 J. Brobecker <brobecker@gnat.com>
4422
4423 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4424 fetching the trailing bytes of the buffer we are about to write.
4425
4426 2003-06-10 Andrew Cagney <cagney@redhat.com>
4427
4428 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4429 * Makefile.in (remote-fileio.o): Update dependencies.
4430 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4431 include <setjmp.h>, or <sys/types.h> conditional on USG.
4432 (remote_fio_jmp_buf): Delete global variable.
4433
4434 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4435 Martin M. Hunt <hunt@redhat.com>
4436
4437 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4438 (SFILES): Add remote-fileio.c.
4439 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4440 dependencies for building remote.o.
4441 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4442 * remote-fileio.h: New header file defining remote File-I/O interface.
4443 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4444 static storage class.
4445 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4446 'F' packet.
4447 (_initialize_remote): Call initialize_remote_fileio().
4448 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4449 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4450 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4451 (captured_main): Initialize new ui_files.
4452 * ui-file.c: Add read and fgets input functions.
4453 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4454 (null_file_read): New function.
4455 (ui_file_read): New function.
4456 (set_ui_file_read): New function.
4457 (stdio_file_read): New function.
4458 * ui-file.h: New type ui_file_read_ftype.
4459 (set_ui_file_read): Declare.
4460 (ui_file_read): Declare.
4461
4462 2003-06-09 Andrew Cagney <cagney@redhat.com>
4463
4464 * frame.h (deprecated_unwind_get_saved_register): Rename
4465 generic_unwind_get_saved_register, update comments.
4466 * mips-tdep.c (mips_get_saved_register): Update.
4467 * frame.c (deprecated_unwind_get_saved_register): Update.
4468
4469 2003-06-09 Andrew Cagney <cagney@redhat.com>
4470
4471 * vax-tdep.c (vax_frame_locals_address): Delete function.
4472 (vax_gdbarch_init): Do not set frame_locals_address.
4473 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4474 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4475 * s390-tdep.c (s390_frame_args_address): Delete function.
4476 (s390_gdbarch_init): Do not set frame_args_address or
4477 frame_locals_address.
4478 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4479 (ns32k_gdbarch_init): Do not set frame_locals_address.
4480 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4481 (hppa_frame_locals_address): Delete function.
4482 (hppa_gdbarch_init): Do not set frame_args_address, or
4483 frame_locals_address.
4484 * arm-tdep.c (arm_frame_args_address): Delete.
4485 (arm_frame_locals_address): Delete.
4486 (arm_gdbarch_init): Do not set frame_args_address, or
4487 frame_locals_address.
4488
4489 2003-06-09 Andrew Cagney <cagney@redhat.com>
4490
4491 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4492 * gdbarch.h, gdbarch.c: Re-generate.
4493 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4494 * arch-utils.c (frame_num_args_unknown): Delete function.
4495 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4496 (frame_info): Use FRAME_NUM_ARGS_P.
4497 * arm-tdep.c (arm_frame_num_args): Delete function.
4498 (arm_gdbarch_init): Do not set frame_num_args.
4499 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4500 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4501 (hppa_gdbarch_init): Do not set frame_num_args.
4502 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4503 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4504 frame_num_args to default frame_num_args_unknown.
4505 * v850-tdep.c (v850_gdbarch_init): Ditto.
4506 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4507 * sh-tdep.c (sh_gdbarch_init): Ditto.
4508 * s390-tdep.c (s390_gdbarch_init): Ditto.
4509 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4510 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4511 * mips-tdep.c (mips_gdbarch_init): Ditto.
4512 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4513 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4514 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4515 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4516 * i386-tdep.c (i386_gdbarch_init): Ditto.
4517 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4518 * frv-tdep.c (frv_gdbarch_init): Ditto.
4519 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4520 * cris-tdep.c (cris_gdbarch_init): Ditto.
4521 * avr-tdep.c (avr_gdbarch_init): Ditto.
4522 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4523
4524 2003-06-09 Andrew Cagney <cagney@redhat.com>
4525
4526 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4527 (print_frame_args): Moved to "stack.c".
4528 * stack.c: Include "gdb_assert.h".
4529 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4530 (print_frame_args): Moved from "printcmd.c".
4531 * frame.h (print_frame_args): Delete declaration.
4532 * Makefile.in (stack.o): Update dependencies.
4533
4534 2003-06-08 Andrew Cagney <cagney@redhat.com>
4535
4536 * frame.c (get_prev_frame): Remove reference to
4537 frame_args_address_correct in comments.
4538 * frame-base.c (default_frame_args_address): Delete code
4539 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4540 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4541 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4542 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4543 (vax_frame_args_address_correct): Delete declaration.
4544
4545 2003-06-08 Andrew Cagney <cagney@redhat.com>
4546
4547 * gdbarch.sh (UNWIND_SP): Add.
4548 * gdbarch.h, gdbarch.c: Re-generate.
4549 * frame.c (frame_sp_unwind): New function.
4550 (get_frame_sp): New function.
4551 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4552 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4553 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4554 value.
4555 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4556 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4557
4558 2003-06-08 Andrew Cagney <cagney@redhat.com>
4559
4560 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4561 REMOTE_BREAKPOINT.
4562 * remote.c: Update.
4563 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4564 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4565 * config/m68k/tm-sun3.h: Update.
4566 * config/m68k/tm-m68klynx.h: Update.
4567 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4568
4569 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4570 trad_frame". Update comments.
4571 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4572 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4573 (trad_frame_register_value, trad_frame_prev_register): Update.
4574
4575 2003-06-08 Andrew Cagney <cagney@redhat.com>
4576
4577 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4578 from GCC's acinclude.m4.
4579 * configure.in: Check for getopt's delcaration.
4580 * aclocal.m4, config.in, configure: Re-generate.
4581 * main.c (error_init): Delete declaration.
4582 * defs.h (error_init): Declare.
4583 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4584 (rs6000_convert_from_func_ptr_addr): Make static.
4585 (_initialize_rs6000_tdep): Add declaration.
4586 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4587 (show_commands, set_verbose, show_history): Delete declaration.
4588 * top.h (set_verbose): Add declaration.
4589 (show_history, set_history, show_commands): Add declaration.
4590 (do_restore_instream_cleanup): Add declaration.
4591 * objc-lang.c (specialcmp): Make static.
4592 (print_object_command): Make static.
4593 (find_objc_msgsend): Make static.
4594 (find_objc_msgcall_submethod_helper): Make static.
4595 (find_objc_msgcall_submethod): Make static.
4596 (_initialize_objc_language): Add declaration.
4597 (find_implementation_from_class): Make static.
4598 (find_implementation): Make static.
4599 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4600 * objc-lang.h (lookup_struct_typedef): Add declaration.
4601 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4602 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4603 (do_restore_user_call_depth): Make static.
4604 (do_restore_instream_cleanup): Delete declaration.
4605 (dont_repeat): Delete declaration.
4606 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4607 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4608 * reggroups.c (_initialize_reggroup): Add declaration.
4609 * cp-support.c (_initialize_cp_support): Add declaration.
4610 * cp-abi.c (_initialize_cp_abi): Add declaration.
4611 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4612 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4613 (_initialize_gnu_v3_abi): Add declaration.
4614 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4615 (_initialize_gnu_v2_abi): Add declaration.
4616 * frame-base.c (_initialize_frame_base): Add declaration.
4617 * doublest.c (floatformat_from_length): Make static.
4618 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4619 * frame.c (create_sentinel_frame): Make static.
4620 (_initialize_frame): Add declaration.
4621 * top.c (do_catch_errors): Make static.
4622 (gdb_rl_operate_and_get_next_completion): Make static.
4623 * typeprint.c: Include "typeprint.h".
4624 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4625 (sentinel_frame_this_id): Make static.
4626 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4627 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4628 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4629 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4630 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4631 * maint.c (maintenance_print_architecture): Make static.
4632 * signals/signals.c (_initialize_signals): Add declaration.
4633 * std-regs.c (_initialize_frame_reg): Add declaration.
4634 * jv-exp.y (push_variable): ISO C definition.
4635 (push_qualified_expression_name): Ditto.
4636 * memattr.c (_initialize_mem): Add declaration.
4637 * remote.c (remote_check_watch_resources): Make static.
4638 (remote_stopped_by_watchpoint): Make static.
4639 (remote_stopped_data_address): Make static.
4640 * d10v-tdep.c (nr_dmap_regs): Make static.
4641 (a0_regnum): Make static.
4642 (d10v_frame_unwind_cache): Make static.
4643 (d10v_frame_p): Make static.
4644 * osabi.c (show_osabi): Make static.
4645 (_initialize_gdb_osabi): Add extern declaration.
4646 * gdbtypes.c (make_qualified_type): Make static.
4647 (safe_parse_type): Make static.
4648 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4649 * macrotab.c (macro_bcache_free): Make static.
4650 * interps.c (interp_set_quiet): Make static.
4651 (interpreter_exec_cmd): Make static.
4652 * stack.h (select_frame_command): New file.
4653 * stack.c: Include "stack.h".
4654 (select_frame_command_wrapper): Delete function.
4655 (select_frame_command): Make global.
4656 * infcall.c: Include "infcall.h".
4657 * linespec.c: Include "linespec.h".
4658 * symfile.c (sections_overlap): Make static.
4659 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4660 * charset.c (_initialize_charset): Add missing prototype.
4661 * regcache.c (init_legacy_regcache_descr): Make static.
4662 (do_regcache_xfree): Make static.
4663 (regcache_xfer_part): Make static.
4664 (_initialize_regcache): Add missing prototype.
4665 * breakpoint.c (parse_breakpoint_sals): Make static.
4666 (breakpoint_sals_to_pc): Make static.
4667 * interps.h (clear_interpreter_hooks): ISO C declaration.
4668 * Makefile.in (stack_h): Define.
4669 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4670 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4671
4672 2003-06-08 Andrew Cagney <cagney@redhat.com>
4673
4674 * Makefile.in (d10v-tdep.o): Update dependencies.
4675 (SFILES): Add trad-frame.c.
4676 (trad_frame_h): Define.
4677 (COMMON_OBS): Add trad-frame.o.
4678 (trad-frame.o): Specify dependencies.
4679 * d10v-tdep.c: Include "trad-frame.h".
4680 (saved_regs_unwinder): Delete function.
4681 (d10v_frame_prev_register): Use trad_frame_prev_register.
4682 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4683 trad_frame", delete "regs" and "prev_sp".
4684 (prologue_find_regs): Use trad-frame.
4685 * trad-frame.h, trad-frame.c: New files.
4686
4687 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4688
4689 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4690
4691 2003-06-07 Adam Fedor <fedor@gnu.org>
4692
4693 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4694 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4695 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4696 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4697 resolve_msgsend_super, resolve_msgsend_super_stret):
4698 Use it.
4699
4700 2003-06-07 Andrew Cagney <cagney@redhat.com>
4701
4702 * symfile.h: Re-indent, clean up comments.
4703
4704 2003-06-07 Andrew Cagney <cagney@redhat.com>
4705
4706 * inferior.h (deprecated_write_sp): Replace
4707 generic_target_write_sp.
4708 * regcache.c (deprecated_write_sp): Replace
4709 generic_target_write_sp.
4710 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4711 * vax-tdep.c (vax_gdbarch_init): Update.
4712 * v850-tdep.c (v850_gdbarch_init): Update.
4713 * sparc-tdep.c (sparc_gdbarch_init): Update.
4714 * sh-tdep.c (sh_gdbarch_init): Update.
4715 * s390-tdep.c (s390_gdbarch_init): Update.
4716 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4717 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4718 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4719 * mcore-tdep.c (mcore_gdbarch_init): Update.
4720 * m68k-tdep.c (m68k_gdbarch_init): Update.
4721 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4722 * ia64-tdep.c (ia64_gdbarch_init): Update.
4723 * h8300-tdep.c (h8300_gdbarch_init): Update.
4724 * frv-tdep.c (frv_gdbarch_init): Update.
4725 * cris-tdep.c (cris_gdbarch_init): Update.
4726 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4727
4728 2003-06-07 Andrew Cagney <cagney@redhat.com>
4729
4730 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4731 Assert that PC_REGNUM is valid.
4732 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4733
4734 2003-06-07 Andrew Cagney <cagney@redhat.com>
4735
4736 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4737 * gdbarch.h, gdbarch.c: Regenerate.
4738 * mn10300-tdep.c: Include "gdb_assert.h".
4739 (mn10300_read_fp): New function.
4740 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4741 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4742 * ia64-tdep.c: Include "gdb_assert.h".
4743 (ia64_read_fp): New function.
4744 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4745 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4746 * regcache.c (generic_target_read_sp): Delete function.
4747 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4748 * inferior.h (generic_target_read_sp): Delete declaration.
4749 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4750 generic_target_read_sp.
4751 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4752 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4753 * sh-tdep.c (sh_gdbarch_init): Ditto.
4754 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4755 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4756
4757 2003-06-07 Andrew Cagney <cagney@redhat.com>
4758
4759 * gdbarch.sh: Comment each field of startup_gdbarch.
4760 * gdbarch.h, gdbarch.c: Re-generate.
4761
4762 2003-06-07 Andrew Cagney <cagney@redhat.com>
4763
4764 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4765 * gdbarch.h, gdbarch.c: Re-generate.
4766 * regcache.c: Update comments on read_pc et.al.
4767 (generic_target_read_pc): Delete function.
4768 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4769 * inferior.h (generic_target_read_pc): Delete declaration.
4770 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4771 generic_target_read_pc.
4772 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4773 * sh-tdep.c (sh_gdbarch_init): Ditto.
4774 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4775 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4776
4777 2003-06-07 Andrew Cagney <cagney@redhat.com>
4778
4779 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4780 "index" with "special_local_sect". Use strcmp instead of STREQ.
4781 Append period to coments.
4782
4783 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4784
4785 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4786 (elfstab_offset_sections): Likewise.
4787 * gdb-stabs.h (stab_section_info): Likewise.
4788 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4789 * objfiles.c (objfile_relocate): Likewise.
4790 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4791 * remote.c (get_offsets): Likewise.
4792 (remote_cisco_objfile_relocate): Likewise.
4793 * somread.c (som_symfile_offsets): Likewise.
4794 * symfile.c (alloc_section_addr_info): New function.
4795 (build_section_addr_info_from_section_tab): Use it.
4796 (free_section_addr_info): Adjust.
4797 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4798 (syms_from_objfile): Allocate local_addr dynamically.
4799 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4800 dynamically.
4801 (add_symbol_file_command): Allocate sect_opts dynamically.
4802 (reread_symbols): Avoid use of SECT_OFF_MAX.
4803 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4804 (alloc_section_addr_info): Declare it.
4805 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4806 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4807 dynamically.
4808 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4809
4810 2003-06-06 Andrew Cagney <cagney@redhat.com>
4811
4812 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4813 (d10v_frame_unwind_cache): Do not set "return_pc".
4814
4815 2003-06-06 Michael Snyder <msnyder@redhat.com>
4816
4817 * h8300-tdep.c: Make tidy (long lines).
4818
4819 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4820
4821 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4822 to regcache_collect().
4823
4824 2003-06-05 J. Brobecker <brobecker@gnat.com>
4825
4826 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4827 pc_in_sigtramp multiarch method.
4828 (hppa_hpux_som_init_abi): Use it.
4829 (hppa_hpux_elf_init_abi): Likewise.
4830 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4831 macro has been multiarched.
4832 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4833 macro here, as hppa64 isn't multiarched yet.
4834
4835 2003-06-05 Andrew Cagney <cagney@redhat.com>
4836
4837 * Makefile.in (value_h): Add $(frame_h).
4838 * value.h: Include "frame.h".
4839 (struct value): Replace "frame_addr" with "frame_id".
4840 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4841 * values.c (allocate_value): Use VALUE_FRAME_ID.
4842 (value_copy): Use VALUE_FRAME_ID.
4843 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4844 * valops.c (value_assign): Update. Use frame_find_by_id.
4845
4846 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4847
4848 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4849 in each pass.
4850
4851 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4852
4853 * thread-db.c (check_event): For create/death event breakpoints,
4854 loop through all messages to ensure that we read the message
4855 corresponding to the breakpoint we are at.
4856
4857 2003-06-04 Michael Snyder <msnyder@redhat.com>
4858
4859 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4860
4861 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4862
4863 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4864 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4865 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4866 when handling .eh_frame sections.
4867
4868 2003-06-04 J. Brobecker <brobecker@gnat.com>
4869
4870 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4871 prepare_to_proceed procedure instead of the hppa-specific one.
4872 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4873
4874 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4875
4876 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4877 * config.in: Regenerated.
4878 * configure.in: Add test for syscall function and check for
4879 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4880 * configure: Regenerated.
4881 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4882 <sys/syscall.h>.
4883 (kill_lwp): New function that uses tkill syscall or
4884 uses kill, depending on whether threading model is nptl or not.
4885 All callers of kill() changed to use kill_lwp().
4886 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4887 see if all threads have already exited in the nptl model.
4888 (stop_and_resume_callback): New callback function used by the
4889 lin_lwp_wait thread exit handling code.
4890 (stop_wait_callback): Check for threads already having exited and
4891 delete such threads fromt the lwp list when discovered.
4892 (stop_callback): Don't assert retcode of kill call.
4893
4894 Roland McGrath <roland@redhat.com>
4895 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4896 nptl libthread_db.
4897
4898 2003-06-03 Richard Henderson <rth@redhat.com>
4899
4900 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4901 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4902 (alpha_sigtramp_frame_prev_register): Likewise.
4903 (alpha_heuristic_frame_prev_register): Likewise.
4904 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4905
4906 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4907 alpha-specific register id names.
4908 (alpha_mdebug_frame_unwind_cache): Likewise.
4909 (alpha_mdebug_frame_prev_register): Likewise.
4910
4911 2003-06-03 Richard Henderson <rth@redhat.com>
4912
4913 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4914 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4915 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4916 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4917 unwind routines.
4918 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4919 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4920 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4921
4922 * alpha-linux-tdep.c: Remove unnecessary includes.
4923 * Makefile.in (alpha-linux-tdep.o): Update.
4924
4925 2003-06-03 Richard Henderson <rth@redhat.com>
4926
4927 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4928 (alphabsd_fill_fpreg): Likewise.
4929
4930 2003-06-03 J. Brobecker <brobecker@gnat.com>
4931
4932 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4933 references to struct frame_info fields by calls to the equivalent
4934 accessors. Necessary now that frame_info is opaque.
4935
4936 2003-06-03 J. Brobecker <brobecker@gnat.com>
4937
4938 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4939 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4940 structure, field no longer exists.
4941
4942 2003-06-03 J. Brobecker <brobecker@gnat.com>
4943
4944 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4945 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4946
4947 2003-06-03 J. Brobecker <brobecker@gnat.com>
4948
4949 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4950 references to struct frame_info fields by calls to the equivalent
4951 accessors. Necessary now that frame_info is opaque.
4952
4953 2003-06-03 J. Brobecker <brobecker@gnat.com>
4954
4955 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4956 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4957 structure, field no longer exists.
4958
4959 2003-06-03 Theodore A. Roth <troth@openavr.org>
4960
4961 * remote.c (init_remote_state): Compute sizeof_g_packet by
4962 accumulation of the size of all registers instead of blindly using
4963 DEPRECATED_REGISTER_BYTES.
4964
4965 2003-06-03 Michael Snyder <msnyder@redhat.com>
4966
4967 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4968 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4969 for h8300sx.
4970
4971 2003-06-03 J. Brobecker <brobecker@gnat.com>
4972
4973 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4974 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4975
4976 2003-06-03 Andrew Cagney <cagney@redhat.com>
4977
4978 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4979 (sparc_convert_to_raw): Delete function.
4980 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4981 register_convert_to_virtual.
4982
4983 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4984
4985 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4986 layer if not dealing with a statically-linked threaded program.
4987
4988 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4989
4990 * solib.c (solib_open): Update comment to reflect actual search order.
4991
4992 2003-06-03 Andrew Cagney <cagney@redhat.com>
4993
4994 * frame.c (get_frame_memory_signed): New function.
4995 (get_frame_memory, get_frame_memory_unsigned): New function.
4996 (get_frame_arch): New function.
4997 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4998 (get_frame_memory, get_frame_unsigned_memory): Declare.
4999 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5000 get_frame_memory_unsigned and get_frame_arch.
5001 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5002
5003 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5004
5005 * MAINTAINERS (write after approval): Add myself.
5006
5007 2003-06-03 Jim Blandy <jimb@redhat.com>
5008
5009 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5010 elements of gregset_t are 64 bits each, but access registers
5011 are still 32 bits, so they're packed two per gregset_t
5012 element. Unpack/pack them properly.
5013
5014 2003-06-02 David Carlton <carlton@bactrian.org>
5015
5016 * linespec.c (find_methods): Break out code into
5017 add_matching_methods and add_constructors.
5018 (add_matching_methods): New.
5019 (add_constructors): Ditto.
5020
5021 2003-06-02 Andrew Cagney <cagney@redhat.com>
5022
5023 * sparc-tdep.c (sparc_print_registers): Delete call to
5024 REGISTER_CONVERTIBLE.
5025 (sparc_gdbarch_init): Do not set register_convertible.
5026 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5027 * frv-tdep.c (frv_gdbarch_init): Ditto.
5028 * cris-tdep.c (cris_gdbarch_init): Ditto.
5029
5030 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5031
5032 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5033 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5034 (syms_from_objfile): Ditto.
5035
5036 2003-06-03 Andreas Schwab <schwab@suse.de>
5037
5038 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5039 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5040
5041 2003-06-02 Richard Henderson <rth@redhat.com>
5042
5043 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5044 a member of all_reggroup.
5045
5046 2003-06-02 Richard Henderson <rth@redhat.com>
5047
5048 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5049 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5050 (alpha_lds, alpha_sts): New.
5051 (alpha_convert_register_p): Change from _register_convertible.
5052 (alpha_register_to_value): Change from _convert_to_virtual;
5053 restructure and fail for type sizes other than 4 or 8.
5054 (alpha_value_to_register): Similarly.
5055 (alpha_extract_return_value): Use alpha_sts.
5056 (alpha_store_return_value): Use alpha_lds.
5057 (alpha_gdbarch_init): Update hooks.
5058
5059 2003-06-02 Richard Henderson <rth@redhat.com>
5060
5061 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5062 regnum identifiers.
5063 (alpha_sigtramp_register_address): Likewise.
5064
5065 2003-06-02 Richard Henderson <rth@redhat.com>
5066
5067 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5068 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5069 * alpha-tdep.h: Declare them.
5070
5071 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5072 Remove zerobuf. Don't error on UNIQUE.
5073 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5074 (ALPHA_REGSET_UNIQUE): Provide default.
5075 (supply_gregset): Use alpha_supply_int_regs.
5076 (fill_gregset): Use alpha_fill_int_regs.
5077 (supply_fpregset): Use alpha_supply_fp_regs.
5078 (fill_fpregset): Use alpha_fill_fp_regs.
5079 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5080 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5081 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5082 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5083 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5084 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5085
5086 2003-06-02 Richard Henderson <rth@redhat.com>
5087
5088 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5089
5090 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5091 (alpha_store_return_value): Likewise.
5092
5093 2003-06-02 David Carlton <carlton@math.stanford.edu>
5094
5095 * block.c (contained_in): Add 'const' to arguments.
5096 (block_function): Ditto.
5097 * block.h: Update declarations for block_function and
5098 contained_in.
5099
5100 2003-06-02 David Carlton <carlton@math.stanford.edu>
5101
5102 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5103 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5104 * p-valprint.c (pascal_val_print): Ditto.
5105 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5106
5107 2003-06-02 Richard Henderson <rth@redhat.com>
5108
5109 * alpha-tdep.c (alpha_push_dummy_call): Use
5110 builtin_type_ieee_double_little instead of builtin_type_double.
5111
5112 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5113 sign-extension of 32-bit values.
5114 (alpha_store_return_value): Similarly.
5115
5116 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5117 (alpha_extract_return_value): Likewise.
5118 (alpha_store_return_value): Likewise.
5119
5120 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5121 (alpha_store_return_value): Error on IEEE Quad floats.
5122
5123 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5124 (alpha_extract_struct_value_address): Likewise.
5125 (alpha_store_return_value): Likewise.
5126 (alpha_store_struct_return): Remove.
5127 (alpha_gdbarch_init): Update hook registration to match.
5128
5129 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5130 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5131 macros where appropriate.
5132 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5133 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5134
5135 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5136 for SP, GP; void_func_ptr for PC; non-language-specific types
5137 for all others.
5138 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5139
5140 2003-06-02 Richard Henderson <rth@redhat.com>
5141
5142 * top.h (lim_at_start): Declare.
5143 * main.c (captured_main): Set it.
5144 * top.c (lim_at_start): Define.
5145 (command_loop): Use it instead of &environ.
5146 * event-top.c (command_handler): Likewise.
5147
5148 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5149
5150 * mipsnbsd-tdep.c: Update copyright years.
5151 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5152
5153 2003-06-01 Richard Henderson <rth@redhat.com>
5154
5155 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5156 (alpha-linux-tdep.o): Update dependencies.
5157 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5158 * alpha-mdebug-tdep.c: Remove unneeded includes.
5159
5160 2003-06-01 Richard Henderson <rth@redhat.com>
5161
5162 * alpha-tdep.c (alpha_register_reggroup_p): New.
5163 (alpha_gdbarch_init): Register it.
5164
5165 2003-06-02 Andrew Cagney <cagney@redhat.com>
5166
5167 * dwarfread.c: Eliminate "register"
5168 (decode_die_type): Eliminate assignment within "if".
5169 (struct_type, decode_array_element_type): Ditto.
5170 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5171 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5172 (decode_modified_type, completedieinfo): Ditto.
5173 * block.c: Eliminate "register".
5174 (blockvector_for_pc_sect): Eliminate assignment within "if".
5175 * cp-support.h (struct symbol): Opaque declaration.
5176 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5177
5178 2003-06-01 Richard Henderson <rth@redhat.com>
5179
5180 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5181 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5182
5183 2003-06-01 Adam Fedor <fedor@gnu.org>
5184
5185 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5186 * gdbarch.[ch]: Regenerate.
5187 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5188 (hppa_gdbarch_init): Set it in the gdbarch vector.
5189 * i386-tdep.c (i386_fetch_pointer_argument): New
5190 (i386_gdbarch_init): Set it into gdbarch.
5191 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5192 (rs6000_gdbarch_init): Set it in gdbarch.
5193 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5194 (sparc_gdbarch_init): Set it in gdbarch.
5195
5196 2003-06-01 Andrew Cagney <cagney@redhat.com>
5197
5198 * defs.h (extract_address): Delete declaration.
5199 * findvar.c (extract_address): Delete function.
5200 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5201 extract_address with the inline equivalent,
5202 extract_unsigned_integer.
5203 (xstormy16_extract_struct_value_address): Ditto.
5204 (xstormy16_pointer_to_address): Ditto.
5205 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5206 * v850-tdep.c (v850_push_arguments): Ditto.
5207 (v850_extract_return_value): Ditto.
5208 (v850_extract_struct_value_address): Ditto.
5209 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5210 (sparcnbsd_get_longjmp_target_64): Ditto.
5211 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5212 (get_longjmp_target): Ditto.
5213 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5214 (sh64_extract_struct_value_address): Ditto.
5215 (sh_push_arguments): Ditto.
5216 (sh64_push_arguments): Ditto.
5217 * remote-vxsparc.c (vx_read_register): Ditto.
5218 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5219 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5220 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5221 * mipsv4-nat.c (get_longjmp_target): Ditto.
5222 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5223 * mips-nat.c (get_longjmp_target): Ditto.
5224 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5225 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5226 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5227 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5228 * irix5-nat.c (get_longjmp_target): Ditto.
5229 * irix4-nat.c (get_longjmp_target): Ditto.
5230 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5231 (ia64_push_arguments): Ditto.
5232 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5233 * h8300-tdep.c (h8300_push_arguments): Ditto.
5234 (h8300_store_return_value): Ditto.
5235 (h8300_extract_struct_value_address): Ditto.
5236 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5237 (frv_push_arguments): Ditto.
5238 * avr-tdep.c (avr_pointer_to_address): Ditto.
5239 (avr_push_arguments): Ditto.
5240 * arm-tdep.c (arm_push_dummy_call): Ditto.
5241 (arm_get_longjmp_target): Ditto.
5242 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5243 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5244 (alpha_get_longjmp_target): Ditto.
5245
5246 * solib-irix.c (extract_mips_address): Inline extract_address,
5247 replacing it with extract_signed_integer.
5248 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5249 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5250 (first_link_map_member, open_symbol_file_object): Ditto.
5251 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5252 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5253 (LM_NEXT, LM_NAME): Ditto.
5254
5255 2003-06-01 Richard Henderson <rth@redhat.com>
5256
5257 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5258 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5259 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5260 (alpha_cannot_store_register): Likewise.
5261 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5262 * alpha-nat.c (supply_gregset): Likewise.
5263 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5264
5265 2003-06-01 Andrew Cagney <cagney@redhat.com>
5266
5267 * infcall.c (call_function_by_hand): Update comment on
5268 DEPRECATED_DUMMY_WRITE_SP.
5269
5270 * mips-tdep.c (mips_gdbarch_init): Do not set
5271 deprecated_dummy_write_sp.
5272 (mips_eabi_push_dummy_call): Set the SP register.
5273 (mips_o64_push_dummy_call): Set the SP register.
5274 (mips_o32_push_dummy_call): Set the SP register.
5275 (mips_n32n64_push_dummy_call): Set the SP register.
5276
5277 2003-06-01 Richard Henderson <rth@redhat.com>
5278
5279 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5280 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5281 (supply_gregset): Likewise.
5282 * alpha-tdep.c (alpha_store_return_value): Likewise.
5283 (alpha_get_longjmp_target): Likewise.
5284 (alpha_register_name): Constify array.
5285 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5286 deprecated_register_size, deprecated_register_bytes,
5287 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5288 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5289 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5290
5291 2003-06-01 Richard Henderson <rth@redhat.com>
5292
5293 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5294 from arg_reg_buffer to regcache to avoid double conversion.
5295
5296 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5297
5298 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5299 SP_REGNUM.
5300 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5301 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5302
5303 2003-06-01 Richard Henderson <rth@redhat.com>
5304
5305 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5306 (decode_frame_entry): Set it. Skip FDE augmentation.
5307
5308 2003-06-01 Richard Henderson <rth@redhat.com>
5309
5310 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5311 not overlapping PC_REGNUM.
5312
5313 2003-06-01 Richard Henderson <rth@redhat.com>
5314
5315 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5316 alpha_push_arguments. Don't dump argument register data to
5317 the target stack. Fix float and 128-bit long double semantics.
5318 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5319 (alpha_fix_call_dummy): Remove.
5320 (alpha_call_dummy_words): Remove.
5321 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5322
5323 2003-06-01 Richard Henderson <rth@redhat.com>
5324
5325 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5326
5327 2003-06-01 Andrew Cagney <cagney@redhat.com>
5328
5329 * mips-tdep.c (is_mips16_addr): New function.
5330 (make_mips16_addr, unmake_mips16_addr): New functions.
5331 (pc_is_mips16, mips_fetch_instruction): Use.
5332 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5333 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5334 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5335 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5336 TARGET_MIPS.
5337 * config/mips/tm-mips.h: Update copyright.
5338 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5339 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5340 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5341 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5342 (TM_PRINT_INSN_MACH): Delete.
5343 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5344
5345 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5346 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5347 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5348 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5349 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5350 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5351 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5352 mips*-*-riscos* and mips*-*-sysv* onto mips.
5353 * config/mips/mips64.mt: New file.
5354 * config/mips/mips.mt: New file.
5355 * config/mips/littlemips.mt: Delete file.
5356 * config/mips/decstation.mt: Delete file.
5357 * config/mips/vr4300el.mt: Delete file.
5358 * config/mips/vr5000el.mt: Delete file.
5359 * config/mips/vr5000.mt: Delete file.
5360 * config/mips/vr4100.mt: Delete file.
5361 * config/mips/vr4xxxel.mt: Delete file.
5362 * config/mips/vr4300.mt: Delete file.
5363 * config/mips/vr4xxx.mt: Delete file.
5364 * config/mips/bigmips.mt: Delete file.
5365 * config/mips/bigmips64.mt: Delete file.
5366 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5367 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5368 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5369 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5370 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5371 "tm-bigmips.h".
5372 * config/mips/tm-irix3.h: Ditto.
5373 * config/mips/tm-mipsv4.h: Ditto.
5374 * config/mips/tm-embed.h: Ditto.
5375 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5376 "tm-bigmips64.h".
5377 * config/mips/tm-vr5000el.h: Delete file.
5378 * config/mips/tm-tx39l.h: Delete file.
5379 * config/mips/tm-vr4300el.h: Delete file.
5380 * config/mips/tm-vr4xxxel.h: Delete file.
5381 * config/mips/tm-vr4300.h: Delete file.
5382 * config/mips/tm-vr4100.h: Delete file.
5383 * config/mips/tm-vr4xxx.h: Delete file.
5384 * config/mips/tm-vr5000.h: Delete file.
5385 * config/mips/tm-embedl64.h: Delete file.
5386 * config/mips/tm-embedl.h: Delete file.
5387 * config/mips/tm-embed64.h: Delete file.
5388 * config/mips/tm-bigmips64.h: Delete file.
5389 * config/mips/tm-bigmips.h: Delete file.
5390
5391 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5392
5393 Fix gdb/1216.
5394 * shnbsd-nat.c: Include "sh-tdep.h".
5395
5396 From Richard Henderson <rth@redhat.com>:
5397 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5398
5399 2003-05-31 Andrew Cagney <cagney@redhat.com>
5400
5401 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5402 forward declaration.
5403 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5404 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5405 (mips_find_saved_regs): Use set_reg_offset.
5406 (mips_frame_init_saved_regs): Delete function.
5407 (mips_pop_frame): Call mips_find_saved_regs instead of
5408 DEPRECATED_FRAME_INIT_SAVED_REGS.
5409
5410 2003-05-31 Andrew Cagney <cagney@redhat.com>
5411
5412 * mips-tdep.c (mips_gdbarch_init): Do not set
5413 deprecated_max_register_raw_size, register_virtual_size, and
5414 deprecated_max_register_virtual_size.
5415
5416 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5417
5418 * i386-tdep.c: Include "dwarf2-frame.h".
5419 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5420 * Makefile.in (i386-tdep.o): Update dependencies.
5421
5422 * dwarf2-frame.c, dwarf2-frame.h: New files.
5423 * Makefile.in (SFILES): Add dwarf2-frame.c.
5424 (dwarf2_frame_h): Define.
5425 (COMMON_OBS): Add dwarf2-frame.o.
5426 (dwarf2-frame.o): Add dependencies.
5427
5428 2003-05-31 Andreas Jaeger <aj@suse.de>
5429
5430 * x86-64-linux-nat.c: Fix comment.
5431
5432 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5433
5434 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5435 function signature.
5436
5437 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5438 have a sigcontext_addr handler.
5439 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5440 sigcontext_addr handler.
5441
5442 2003-05-31 Andrew Cagney <cagney@redhat.com>
5443
5444 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5445 (print_fp_register_row): Replace do_fp_register_row.
5446 (mips_print_fp_register): Add "file" and "frame" parameters.
5447 (mips_print_register): Add "file" and "frame" parameters.
5448 (mips_print_registers_info): Replace mips_do_registers_info.
5449 (mips_gdbarch_init): Set print_registers_info instead of
5450 deprecated_do_registers_info.
5451 (mips_read_fp_register_single): Add "frame" parameter.
5452 (mips_read_fp_register_double): Add "frame" parameter.
5453
5454 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5455
5456 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5457 Fixes a bug where GDB would print the wrong register names for
5458 targets without SSE.
5459
5460 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5461 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5462 registers.
5463
5464 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5465 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5466 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5467 TDEP->sc_sp_offset.
5468
5469 From Michal Ludvig <mludvig@suse.cz>:
5470 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5471 and `sc_num_regs'.
5472 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5473 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5474 I386_ST0_REGNUM): Move here from...
5475 * i386-tdep.c: ... here.
5476 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5477 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5478 registers if possible.
5479 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5480 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5481 Remove variables.
5482 (i386bsd_sc_reg_offset): New variable.
5483 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5484 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5485 TDEP->sc_sp_offset.
5486 (i386fbsd_sc_reg_offset): New variable.
5487 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5488 TDEP->sc_num_regs.
5489 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5490 variables.
5491 (i386fbsd4_sc_reg_offset): New variable.
5492 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5493 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5494 TDEP->sc_sp_offset.
5495 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5496 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5497 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5498 Remove variables.
5499 (i386nbsd_sc_reg_offset): New variable.
5500 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5501 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5502 TDEP->sc_sp_offset.
5503 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5504 Remove variables.
5505 (i386obsd_sc_reg_offset): New variable.
5506 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5507 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5508 TDEP->sc_sp_offset.
5509 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5510 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5511 for frame pointer offset in `struct sigcontext'.
5512
5513 2003-05-31 Andrew Cagney <cagney@redhat.com>
5514
5515 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5516 architecture methods call_dummy_words, sizeof_call_dummy_words,
5517 push_return_address, store_struct_return, and fix_call_dummy. Set
5518 push_dummy_call instead of deprecated_push_arguments.
5519 (mips_store_struct_return): Delete function.
5520 (mips_fix_call_dummy): Delete function.
5521 (mips_push_return_address): Delete function.
5522 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5523 RA_REGNUM and T9_REGNUM.
5524 (mips_n32n64_push_dummy_call): Ditto for
5525 mips_n32n64_push_arguments.
5526 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5527 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5528
5529 2003-05-31 Andrew Cagney <cagney@redhat.com>
5530
5531 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5532 "dummy_addr" to "bp_addr".
5533 * infcall.c (call_function_by_hand): Pass "funaddr" to
5534 gdbarch_push_dummy_call.
5535 * gdbarch.h, gdbarch.c: Re-generate.
5536 * i386-tdep.c (i386_push_dummy_call): Update.
5537 * arm-tdep.c (arm_push_dummy_call): Update.
5538 * d10v-tdep.c (d10v_push_dummy_call): Update.
5539
5540 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5541
5542 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5543 variable declarations.
5544 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5545 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5546 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5547 x86_64_init_frame_pc, x86_64_init_frame_pc,
5548 x86_64_function_has_prologue): Remove prototypes.
5549 (X86_64_NUM_GREGS): New define.
5550 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5551 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5552 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5553 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5554 XMM1_REGNUM): Remove defines.
5555 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5556 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5557 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5558 X86_64_XMM1_REGNUM): New defines.
5559 (struct x86_64_register_info): Renamed from `struct
5560 register_info'. Remove `size' member.
5561 (x86_64_register_info_table): Remove variable.
5562 (x86_64_register_info): New variable.
5563 (X86_64_NUM_REGS): New define.
5564 (X86_64_NUM_GREGS): Remove define.
5565 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5566 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5567 Remove variables.
5568 (x86_54_dwarf2_reg_to_regnum): Remove function.
5569 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5570 (x86_64_dwarf_reg_to_regnum): New function.
5571 (x86_64_register_name): Rewrite.
5572 (x86_64_register_raw_size): Remove function.
5573 (x86_64_register_byte_table): Remove variable.
5574 (x86_64_register_byte): Remove function.
5575 (x86_64_register_virtual_type): Remove function.
5576 (x86_64_register_type): New function.
5577 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5578 x86_64_register_convert_to_raw): Remove functions.
5579 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5580 (x86_64_use_struct_convention): Make static. Adjust for renamed
5581 defines.
5582 (x86_64_frame_init_saved_regs): Remove function.
5583 (x86_64_push_arguments): Make static. Change to accept a regcache
5584 as argument.
5585 (x86_64_store_return_value, x86_64_extract_return_value): Make
5586 static. Rewrite based on i386 counterparts.
5587 (x86_64_push_dummy_call): New function.
5588 (X86_64_NUM_SAVED_REGS): New define.
5589 (x86_64_register_number): Remove function.
5590 (x86_64_store_struct_return): Remove function.
5591 (x86_64_frameless_function_invocation,
5592 x86_64_function_has_prologue): Remove functions.
5593 (PROLOG_BUFSIZE): Remove define.
5594 (struct x86_64_frame_cache): New structure.
5595 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5596 x86_64_frame_cache, x86_64_frame_this_id,
5597 x86_64_frame_prev_register, x86_64_frame_p,
5598 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5599 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5600 functions.
5601 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5602 variables.
5603 (x86_64_skip_prologue): Rewrite in terms of
5604 x86_64_analyze_prologue.
5605 (x86_64_frame_base_address): New function.
5606 (x86_64_frame_base): New variable.
5607 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5608 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5609 set deprecated_fp_regnum, deprecated_register_size,
5610 deprecated_register_bytes, register_raw_size, register_byte,
5611 register_virtual_type, register_convertiable,
5612 register_convert_to_virtual, convert_to_raw,
5613 deprecated_get_saved_register, deprecated_target_read_fp,
5614 deprecated_push_arguments, deprecated_push_return_address,
5615 deprecated_pop_frame, deprecated_store_struct_return,
5616 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5617 frameless_function_invocation, deprecated_frame_saved_pc,
5618 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5619 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5620 deprecated_init_frame_pc and virtual_frame_pointer. Call
5621 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5622 and x86_64_frame_p. Call frame_base_set_default to register
5623 x86_64_frame_base.
5624 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5625 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5626 (_initialize_x86_64_tdep): Remove function.
5627 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5628 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5629 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5630 define.
5631 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5632 (x86_64_linux_sigcontext_addr): Rewrite.
5633 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5634 x86_64_linux_frame_saved_pc): Remove functions.
5635 (x86_64_linux_pc_in_sigtramp): Renamed from
5636 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5637 trampoline.
5638 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5639 Remove_functions.
5640 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5641 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5642 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5643 (x86_64_regmap): Rename to regmap.
5644 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5645 x86_64_num_gregs.
5646 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5647 x86_64_regmap.
5648 (x86_64_fxsave_offset): Remove function.
5649 (supply_fpregset): Simply call x86_64_supply_fxsave.
5650 (fill_fpregset): Simply call x86_64_fill_fxsave.
5651 (fetch_inferior_registers, store_inferior_registers): Avoid
5652 asignment in if-statement.
5653 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5654 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5655 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5656 (fetch_core_registers): Remove function.
5657 (linux_elf_core_fns): Remove.
5658 (offsetoff): Don't define.
5659 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5660 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5661 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5662 add core-regset.o.
5663 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5664 protection against multiple includes instead of NM_X86_64_h. Add
5665 various comments. Include "config/nm-linux.h". Don't include
5666 <signal.h>.
5667 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5668 GET_THREAD_SIGNALS): Remove defines.
5669 (x86_64_register_u_addr, kernel_u_size,
5670 lin_thread_get_thread_signals): Remove prototypes.
5671 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5672 [HAVE_LINK_H]: Don't include "solib.h".
5673 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5674 * config/i386/tm-x86-64linux.h: Fix comments.
5675 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5676 x86-64-tdep.o): Update dependencies.
5677
5678 2003-05-30 Andrew Cagney <cagney@redhat.com>
5679
5680 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5681 Change parameter type to a "struct regcache *".
5682
5683 * gdbarch.sh: Regardless of the multi-arch level, always define
5684 the macro when not already defined.
5685 * gdbarch.h, gdbarch.c: Re-generate.
5686
5687 2003-05-30 Richard Henderson <rth@redhat.com>
5688
5689 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5690 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5691 (alpha_mdebug_frame_this_id): Likewise.
5692 (alpha_mdebug_frame_prev_register): Likewise.
5693 (alpha_mdebug_frame_base_address): Likewise.
5694 (alpha_mdebug_frame_locals_address): Likewise.
5695 (alpha_mdebug_frame_args_address): Likewise.
5696 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5697 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5698 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5699 loop increment.
5700 (alpha_heuristic_frame_this_id): Make static.
5701 (alpha_heuristic_frame_prev_register): Likewise.
5702 (alpha_heuristic_frame_base_address): Likewise.
5703 * alpha-tdep.h: Update.
5704
5705 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5706
5707 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5708 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5709 defenitions.
5710 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5711 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5712 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5713 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5714 I386_ST0_REGNUM): New defines.
5715 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5716 codestream_get): Remove define.
5717 (codestream_next_addr, condestream_addr, condestream_buf,
5718 codestream_off, codestream_cnt): Remove variables.
5719 (codestream_fill, codestream_seek, codestream_read): Remove
5720 functions.
5721 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5722 functionality.
5723 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5724 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5725 i386_frame_saved_pc, i386_saved_pc_after_call,
5726 i386_frame_num_args, i386_frame_init_saved_regs,
5727 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5728 i386_push_arguments): Remove functions.
5729 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5730 functionality. Use i386_analyze_prologue instead of
5731 i386_get_frame_setup.
5732 (I386_NUM_SAVED_REGS): New define.
5733 (struct i386_frame_cache): New structure.
5734 (i386_alloc_frame_cache, i386_analyze_struct_return,
5735 i386_skip_probe, i386_analyze_frame_setup,
5736 i386_analyze_register_saves, i386_analyze_prologue,
5737 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5738 i386_frame_prev_register, i386_sigtramp_frame_cache,
5739 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5740 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5741 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5742 New functions.
5743 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5744 New variables.
5745 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5746 I386_EAX_REGNUM and I386_EDX_REGNUM.
5747 (i386_extract_return_value, i386_store_return_value): Use
5748 I386_ST0_REGNUM where appropriate.
5749 (i386_extract_struct_value_address): Rewrite to use extract_address.
5750 (i386_svr4_pc_in_sigtramp): Add comment.
5751 (i386_svr4_sigcontext_addr): Rewrite.
5752 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5753 TDEP->sc_sp_offset.
5754 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5755 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5756 of new defines. Set push_dummy_call, don't set
5757 deprecated_push_arguments, deprecated_push_return_address,
5758 deprecated_pop_frame. Don't set parm_boundary. Don't set
5759 deprecated_frame_chain, deprecated_frame_saved_pc,
5760 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5761 save_dummy_frame_tos, unwind_pc. Call
5762 frame_unwind_append_predicate and frame_base_set_default. Don't
5763 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5764 Don't set frameless_function_invocation. Don't set
5765 deprecated_register_bytes, deprecated_register_size,
5766 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5767 * i386-linux-tdep.c: Fix formatting in some comments.
5768 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5769 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5770 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5771 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5772 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5773 redundant parentheses.
5774 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5775 (i386_linux_sigcontext_addr): Use it. Rewrite.
5776 (find_minsym_and_objfile): Change name of second argument.
5777 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5778 changed. Use frame_pc_unwind instead of
5779 DEPRECATED_SAVED_PC_AFTER_CALL.
5780 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5781 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5782 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5783 unwinder.
5784 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5785 "dummy-frame.h".
5786 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5787 (_initialize_i386_cygwin_tdep): New prototype.
5788 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5789 deprecated_frame_chain_valid.
5790 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5791 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5792 Rely on the SVR4 defaults.
5793 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5794 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5795
5796 2003-05-30 Andrew Cagney <cagney@redhat.com>
5797
5798 * infcall.c (call_function_by_hand): Always call
5799 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5800
5801 2003-05-30 Richard Henderson <rth@redhat.com>
5802
5803 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5804 increment.
5805
5806 2003-05-29 Jim Blandy <jimb@redhat.com>
5807
5808 Use gdbarch methods for solib stuff on PowerPC Linux.
5809 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5810 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5811 show through.
5812 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5813 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5814 giving the same effect as the #definitions above.
5815
5816 2003-05-29 Adam Fedor <fedor@gnu.org>
5817
5818 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5819 (find_implementation_from_class): Replace it with the standard
5820 case i.e. do nothing.
5821
5822 2003-05-29 Richard Henderson <rth@redhat.com>
5823
5824 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5825 (alpha_linux_sigtramp_offset): Use it. Make static.
5826 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5827 update for new frame model.
5828 * alpha-mdebug-tdep.c: New file.
5829 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5830 (alpha_osf1_init_abi): Install it.
5831 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5832 (linked_proc_desc_table): Remove.
5833 (alpha_frame_past_sigtramp_frame): Remove.
5834 (alpha_dynamic_sigtramp_offset): Remove.
5835 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5836 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5837 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5838 (push_sigtramp_desc): Remove.
5839 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5840 (alpha_cannot_store_register): Likewise.
5841 (alpha_sigcontext_addr): Remove.
5842 (alpha_find_saved_regs): Remove.
5843 (alpha_frame_init_saved_regs): Remove.
5844 (alpha_init_frame_pc_first): Remove.
5845 (read_next_frame_reg): Remove.
5846 (alpha_frame_saved_pc): Remove.
5847 (alpha_saved_pc_after_call): Remove.
5848 (temp_proc_desc, temp_saved_regs): Remove.
5849 (alpha_about_to_return): Remove.
5850 (cached_proc_desc): Remove.
5851 (alpha_frame_chain): Remove.
5852 (alpha_print_extra_frame_info): Remove.
5853 (alpha_init_extra_frame_info): Remove.
5854 (alpha_frame_locals_address): Remove.
5855 (alpha_frame_args_address): Remove.
5856 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5857 (alpha_push_dummy_frame): Remove.
5858 (alpha_pop_frame): Remove.
5859 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5860 (alpha_read_insn): New.
5861 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5862 for different insn encodings.
5863 (alpha_in_lenient_prologue): Remove.
5864 (struct alpha_sigtramp_unwind_cache): New.
5865 (alpha_sigtramp_frame_unwind_cache): New.
5866 (alpha_sigtramp_register_address): New.
5867 (alpha_sigtramp_frame_this_id): New.
5868 (alpha_sigtramp_frame_prev_register): New.
5869 (alpha_sigtramp_frame_unwind): New.
5870 (alpha_sigtramp_frame_p): New.
5871 (struct alpha_heuristic_unwind_cache): New.
5872 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5873 don't count nop insns that occur between functions.
5874 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5875 heuristic_proc_desc, but without the mdebug wrapping.
5876 (alpha_heuristic_frame_this_id): New.
5877 (alpha_heuristic_frame_prev_register): New.
5878 (alpha_heuristic_frame_unwind): New.
5879 (alpha_heuristic_frame_p): New.
5880 (alpha_heuristic_frame_base_address): New.
5881 (alpha_heuristic_frame_base): New.
5882 (alpha_unwind_dummy_id): New.
5883 (alpha_unwind_pc): New.
5884 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5885 frame related deprecated initializations; install replacements.
5886 (alpha_dump_tdep): Remove.
5887 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5888 (alpha_read_insn, alpha_after_prologue,
5889 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5890 alpha_heuristic_frame_prev_register,
5891 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5892 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5893 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5894 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5895
5896 2003-05-29 Andrew Cagney <cagney@redhat.com>
5897
5898 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5899 dependant on the availability of ASSERT_FUNCTION.
5900 (ASSERT_FUNCTION): Do not define when there is no function name.
5901
5902 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5903
5904 From Jimi X <jimix@watson.ibm.com>:
5905 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5906
5907 2003-05-28 Jim Blandy <jimb@redhat.com>
5908
5909 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5910 argument to ptrace to int; the system headers should give it the
5911 right type, and pointers don't fit in ints on powerpc64-*-*.
5912
5913 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5914
5915 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5916 DW_TAG_catch_block.
5917
5918 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5919
5920 * stabsread.c (dbx_lookup_type): Make static.
5921 (read_type): Ditto.
5922 (add_undefined_type): Ditto.
5923 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5924 not export.
5925
5926 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5927
5928 * hpread.c (hpread_has_name): Make static.
5929 (hpread_psymtab_to_symtab): Ditto.
5930 (file_exists): Ditto.
5931 (hpread_call_pxdb): Ditto.
5932 (hpread_pxdb_needed): Ditto.
5933 (hpread_quick_traverse): Ditto.
5934 (hpread_get_header): Ditto.
5935 (hpread_get_lntt): Ditto.
5936 (hpread_get_slt): Ditto.
5937 (class_of): Ditto.
5938
5939 2003-05-25 Andreas Schwab <schwab@suse.de>
5940
5941 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5942 stack_align and deprecated_extra_stack_alignment_needed.
5943 (m68k_stack_align): Delete.
5944
5945 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5946 (m68k_register_virtual_size): Likewise.
5947 (altos_skip_prologue): Remove obsolete function.
5948 (isi_frame_num_args): Likewise.
5949 (news_frame_num_args): Likewise.
5950 (m68k_fix_call_dummy): Make static.
5951 (m68k_push_dummy_frame): Likewise.
5952 (m68k_pop_frame): Likewise.
5953 (m68k_skip_prologue): Likewise.
5954 (m68k_frame_init_saved_regs): Likewise.
5955 (m68k_saved_pc_after_call): Likewise.
5956 (m68k_get_longjmp_target): Make multi-arch.
5957 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5958 structure. Register m68k_get_longjmp_target if enabled.
5959 * m68k-tdep.h (struct gdbarch_tdep): Define.
5960 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5961
5962 * Makefile.in (config.status): Also depend on configure.tgt
5963 and configure.host.
5964 (m68klinux-tdep.o): Update dependencies.
5965 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5966 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5967 (M68K_LINUX_JB_PC): Define.
5968 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5969 and take additional parameter.
5970 (m68k_linux_sigtramp_saved_pc): Update.
5971 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5972 m68k_linux_pc_in_sigtramp, in_plt_section,
5973 find_solib_trampoline_target.
5974 * config/m68k/tm-linux.h: Don't include any tm headers.
5975 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5976 (JB_ELEMENT_SIZE): Likewise.
5977 (JB_PC): Likewise.
5978 (GET_LONGJMP_TARGET): Likewise.
5979 (IN_SIGTRAMP): Likewise.
5980 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5981
5982 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5983
5984 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5985 (sparc32_push_arguments): Re-implement by calling
5986 sparc32_do_push_arguments.
5987
5988 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5989
5990 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5991 SPARC_O1_REGNUM): New defines.
5992 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5993 (sparc32_store_return_value): New function.
5994 (sparc_extract_struct_value_address): Rewrite to operate on a
5995 regcache.
5996 (sparc_gdbarch_init): Don't set
5997 deprecated_extract_struct_value_address. Set
5998 extract_struct_value_address instead. Don't set
5999 deprecated_extract_return_value and deprecated_store_return_value
6000 for 32-bit targets. Set extract_return_value and
6001 store_return_value instead.
6002 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6003 DEPRECTAED_EXTRACT_RETURN_VALUE,
6004 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6005 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6006 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6007 (sparc_store_return_value): Remove prototype.
6008 (sparc32_store_return_value): New prototype.
6009 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6010 Adjust prototypes.
6011
6012 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6013
6014 * sparcnbsd-tdep.c: Include "gdb_string.h".
6015
6016 2003-05-23 Andrew Cagney <cagney@redhat.com>
6017
6018 * p-valprint.c (pascal_val_print): Replace extract_address with
6019 the inline equivalent extract_unsigned_integer.
6020 * jv-valprint.c (java_value_print): Ditto.
6021 * ada-valprint.c (ada_val_print_1): Ditto.
6022 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6023
6024 2003-05-23 Theodore A. Roth <troth@openavr.org>
6025
6026 * blockframe.c (frameless_look_for_prologue): Remove unused
6027 after_prologue variable.
6028
6029 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6030
6031 * blockframe.c (get_pc_function_start): Rewrite to avoid
6032 asignments in if-statements.
6033
6034 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6035
6036 Committed by Elena Zannoni <ezannoni@redhat.com>.
6037 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6038 files, don't relocate absolute symbols (and do use mst_abs).
6039
6040 2003-05-23 Andrew Cagney <cagney@redhat.com>
6041
6042 * objc-lang.c: Include "gdb_assert.h".
6043 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6044 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6045 (gdb_check, gdb_check_fatal): Delete functions.
6046 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6047 gdb_assert.
6048 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6049 * Makefile.in (objc-lang.o): Update dependencies.
6050
6051 2003-05-22 Ian Lance Taylor <ian@airs.com>
6052
6053 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6054 with fprintf_filtered, not fprintf_unfiltered.
6055
6056 2003-05-22 Andrew Cagney <cagney@redhat.com>
6057
6058 * stack.c (frame_info): Inline extract_address, replacing it with
6059 extract_unsigned_integer.
6060 * findvar.c (unsigned_pointer_to_address): Ditto.
6061 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6062 * dwarf2expr.c (dwarf2_read_address): Ditto.
6063 * frame.c (frame_pc_unwind): Update comment.
6064 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6065
6066 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6067
6068 * infptrace.c (detach): Call print_sys_errmsg rather than
6069 perror_with_name to issue warning message when errno is non-zero
6070 after calling ptrace detach.
6071
6072 2003-05-21 J. Brobecker <brobecker@gnat.com>
6073
6074 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6075 macro definitions from here...
6076 * hppa-tdep.c: ...to there.
6077
6078 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6079
6080 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6081 register_ptrace_addr(). Fix all callers.
6082
6083 2003-05-21 Andreas Schwab <schwab@suse.de>
6084
6085 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6086 dependencies.
6087 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6088 end.
6089 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6090 (_initialize_m68k_linux_tdep): New function.
6091 (m68k_linux_frame_saved_pc): Make static.
6092 (m68k_linux_extract_return_value): Likewise.
6093 (m68k_linux_store_return_value): Likewise.
6094 (m68k_linux_extract_struct_value_address): Likewise.
6095 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6096 Remove.
6097 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6098 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6099 (DEPRECATED_FRAME_SAVED_PC): Remove.
6100
6101 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6102
6103 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6104 regset numbering rather than our own.
6105
6106 2003-05-19 David Carlton <carlton@bactrian.org>
6107
6108 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6109
6110 2003-05-19 David Carlton <carlton@bactrian.org>
6111
6112 Partial fix for PR c++/827.
6113 * cp-support.h: Include symtab.h.
6114 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6115 * cp-namespace.c: Update contributors.
6116 (cp_lookup_symbol_nonlocal): New.
6117 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6118 (lookup_symbol_file): Ditto.
6119 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6120 * block.h: Declare block_scope, block_using, block_global_block.
6121 * block.c (block_scope): New.
6122 (block_using, block_global_block): Ditto.
6123 * Makefile.in (cp_support_h): Depend on symtab_h.
6124 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6125
6126 2003-05-19 David Carlton <carlton@bactrian.org>
6127
6128 * language.h (struct language_defn): Add 'la_value_of_this'
6129 and 'la_lookup_symbol_nonlocal' members.
6130 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6131 lookup_symbol_static, lookup_symbol_global,
6132 lookup_symbol_aux_block.
6133 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6134 if we should search fields of this and how to do static/global
6135 lookup.
6136 (lookup_symbol_aux_block): Make extern.
6137 (basic_lookup_symbol_nonlocal): New.
6138 (lookup_symbol_static, lookup_symbol_global): Ditto.
6139 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6140 'la_lookup_symbol_nonlocal' members.
6141 * c-lang.c (c_language_defn, cplus_language_defn)
6142 (asm_language_defn, minimal_language_defn): Ditto.
6143 * jv-lang.c (java_language_defn): Ditto.
6144 * language.c (unknown_language_defn, auto_language_defn)
6145 (local_language_defn): Ditto.
6146 * m2-lang.c (m2_language_defn): Ditto.
6147 * objc-lang.c (objc_language_defn): Ditto.
6148 * scm-lang.c (scm_language_defn): Ditto.
6149 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6150 * p-lang.c (pascal_language_defn): Ditto for both.
6151 * Makefile.in (f-lang.o): Depend on value_h.
6152 (p-lang.o): Ditto.
6153
6154 2003-05-19 David Carlton <carlton@bactrian.org>
6155
6156 * block.h: Declare block_static_block.
6157 * block.c (block_static_block): New.
6158 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6159 lookup_symbol_aux_local, calling block_static_block instead.
6160 (lookup_symbol_aux_local): Delete 'static_block' argument.
6161
6162 2003-05-19 David Carlton <carlton@bactrian.org>
6163
6164 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6165
6166 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6167
6168 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6169 register numbers mapping.
6170
6171 2003-05-18 Adam Fedor <fedor@gnu.org>
6172
6173 * symtab.c (completion_list_objc_symbol): New function.
6174 (make_symbol_completion_list): Use it to add ObjC symbols
6175 when looking though the list.
6176 (language_search_unquoted_string): New function.
6177 (make_file_symbol_completion_list): Use it.
6178
6179 2003-05-18 Andreas Schwab <schwab@suse.de>
6180
6181 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6182 dependencies.
6183 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6184 as m68k_linux_extract_return_value.
6185 (DEPRECATED_STORE_RETURN_VALUE): Define as
6186 m68k_linux_store_return_value.
6187 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6188 m68k_linux_extract_struct_value_address.
6189 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6190 get_next_frame, get_frame_base, get_frame_pc.
6191 (m68k_linux_frame_saved_pc): Use get_frame_base.
6192 (m68k_linux_extract_return_value): New function.
6193 (m68k_linux_store_return_value): New function.
6194 (m68k_linux_extract_struct_value_address): New function.
6195 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6196
6197 * c-exp.y (typebase): Remove duplicate occurence of
6198 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6199 of lookup_signed_typename.
6200
6201 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6202
6203 * dwarf2loc.c (find_location_expression): Change type of second
6204 argument to `size_t *'.
6205 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6206 for size variable.
6207
6208 2003-05-18 David Carlton <carlton@bactrian.org>
6209
6210 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6211 'linkage_name'. Add comment.
6212 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6213 'linkage_name'.
6214 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6215 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6216 (lookup_block_symbol): Ditto.
6217
6218 2003-05-16 Andrew Cagney <cagney@redhat.com>
6219
6220 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6221 * gdbarch.h, gdbarch.c: Re-generate.
6222 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6223 * TODO (REGISTER_BYTES): Delete reference.
6224 * alpha-tdep.c (alpha_gdbarch_init): Update.
6225 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6226 * x86-64-tdep.c (x86_64_init_abi): Update.
6227 * vax-tdep.c (vax_gdbarch_init): Update.
6228 * v850-tdep.c (v850_gdbarch_init): Update.
6229 * sparc-tdep.c (sparc_gdbarch_init): Update.
6230 * sh-tdep.c (sh_gdbarch_init): Update.
6231 * s390-tdep.c (s390_gdbarch_init): Update.
6232 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6233 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6234 (ns32k_gdbarch_init_32382): Update.
6235 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6236 * mcore-tdep.c (mcore_gdbarch_init): Update.
6237 * m68k-tdep.c (m68k_gdbarch_init): Update.
6238 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6239 * ia64-tdep.c (ia64_gdbarch_init): Update.
6240 * i386-tdep.c (i386_gdbarch_init): Update.
6241 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6242 * hppa-tdep.c (hppa_gdbarch_init): Update.
6243 * h8300-tdep.c (h8300_gdbarch_init): Update.
6244 * frv-tdep.c (frv_gdbarch_init): Update.
6245 * cris-tdep.c (cris_gdbarch_init): Update.
6246 * avr-tdep.c (avr_gdbarch_init): Update.
6247 * arm-tdep.c (arm_gdbarch_init): Update.
6248 * sparc-tdep.c (sparc_pop_frame): Update.
6249 * rs6000-tdep.c (rs6000_pop_frame): Update.
6250 * remote.c (init_remote_state): Update.
6251 (remote_prepare_to_store): Update.
6252 * remote-vx.c (vx_prepare_to_store): Update.
6253 * remote-sds.c (sds_fetch_registers): Update.
6254 (sds_prepare_to_store): Update.
6255 * remote-array.c: Update.
6256 * regcache.c (init_legacy_regcache_descr): Update.
6257 (init_regcache_descr): Update.
6258 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6259 (mips_o64_extract_return_value): Update.
6260 * irix5-nat.c (fetch_core_registers): Update.
6261 * irix4-nat.c (fetch_core_registers): Update.
6262 * i386-tdep.h: Update.
6263 * hppa-tdep.c (pa_do_registers_info): Update.
6264 (pa_do_strcat_registers_info): Update.
6265 * cris-tdep.c (cris_register_bytes_ok): Update.
6266 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6267 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6268 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6269 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6270 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6271 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6272 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6273 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6274 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6275 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6276 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6277 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6278 (REGISTER_BYTES_OK): Update.
6279 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6280 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6281
6282 2003-05-16 Ian Lance Taylor <ian@airs.com>
6283
6284 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6285 (vax_print_insn, print_insn_arg): Remove static functions.
6286 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6287 print_insn_vax from opcodes library.
6288 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6289
6290 2003-05-15 Andrew Cagney <cagney@redhat.com>
6291
6292 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6293 * target.h (memory_breakpoint_from_pc): Delete declaration.
6294 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6295 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6296 * monitor.c (monitor_insert_breakpoint): Use
6297 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6298 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6299 * gdbarch.h, gdbarch.c: Re-generate.
6300 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6301 (sparc_gdbarch_init): Set breakpoint_from_pc to
6302 sparc_breakpoint_from_pc.
6303 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6304 (BREAKPOINT_FROM_PC): Define.
6305 (sparc_breakpoint_from_pc): Declare.
6306 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6307 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6308 (BREAKPOINT_FROM_PC): Define.
6309 (BREAKPOINT): Delete macro.
6310 * target.h: Update comment.
6311 * s390-tdep.c (s390_gdbarch_init): Update comments.
6312 * remote.c: Update comments.
6313 * remote-mips.c: Update comments.
6314 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6315 * mem-break.c: Update comment.
6316 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6317 (ia64_memory_insert_breakpoint): Update.
6318 * config/sparc/tm-sparc.h: Update comment.
6319 * config/pa/tm-hppa64.h: Update comment.
6320 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6321 (rs6000_breakpoint_from_pc): Update.
6322 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6323 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6324 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6325 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6326 (mips_breakpoint_from_pc): Update.
6327 (mips_dump_tdep): Update.
6328
6329 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6330 * minsyms.c (lookup_minimal_symbol): Inline
6331 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6332
6333 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6334 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6335 * p-lang.c (pascal_printstr): Ditto.
6336 * objc-lang.c (objc_printstr): Ditto.
6337 * m2-lang.c (m2_printstr): Ditto.
6338 * jv-valprint.c (java_print_value_fields): Ditto.
6339 * f-lang.c (f_printstr): Ditto.
6340 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6341 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6342 for repeat_count_threshold.
6343 * Makefile.in (cp-valprint.o): Update dependencies.
6344
6345 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6346
6347 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6348 (examine_prologue): Support looking through leaf functions, knowing
6349 they start with mov r2,r12. Support skipping over indirect stores
6350 of the input registers. Upon hitting a non-nop branch instruction
6351 or predicated instruction, bail out by setting lim_pc to the current
6352 pc value in the loop. At the end, if the lim_pc value is still
6353 beyond our calculated value and we have trust_limit set,
6354 use the lim_pc value.
6355
6356 2003-05-15 Andrew Cagney <cagney@redhat.com>
6357
6358 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6359 generic_find_dummy_frame.
6360 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6361 (deprecated_generic_find_dummy_frame): Update.
6362 (deprecated_read_register_dummy): Update.
6363 * frame.c (deprecated_generic_get_saved_register): Update.
6364
6365 2003-05-15 Theodore A. Roth <troth@openavr.org>
6366
6367 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6368 (avr_gdbarch_init): Set breakpoint_from_pc method.
6369
6370 2003-05-15 Andrew Cagney <cagney@redhat.com>
6371
6372 * regcache.c (build_regcache): Set deprecated_register_valid
6373 directly.
6374 (deprecated_grub_regcache_for_register_valid): Delete function.
6375 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6376 declaration.
6377
6378 2003-05-15 David Carlton <carlton@bactrian.org>
6379
6380 Committed by Elena Zannoni <ezannoni@redhat.com>
6381 * symtab.c (lookup_symbol_aux): Delete calls to
6382 lookup_symbol_aux_minsyms.
6383 (lookup_symbol_aux_minsyms): Comment out function and
6384 prototype. Delete lookup by mangled name.
6385
6386 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6387
6388 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6389 correctly indicate an empty stack and ``stack_allocated'' to the
6390 indicate the number of elements initially allocated.
6391 (dwarf_expr_grow_stack): Simplify method for computing new
6392 stack size. Don't loop infinitely if ``stack_len'' is zero.
6393 (execute_stack_op): Move ``ctx->in_reg'' initialization
6394 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6395 be used in conjuction with DW_OP_piece. Revise error message
6396 accordingly.
6397
6398 2003-05-14 Theodore A. Roth <troth@openavr.org>
6399
6400 * MAINTAINERS: Update my email address.
6401 * avr-tdep.c: Ditto.
6402
6403 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6404
6405 * symtab.h (enum domain_enum): Rename from namespace_enum.
6406 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6407 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6408 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6409 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6410 TYPES_NAMESPACE, METHODS_NAMESPACE.
6411 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6412 (struct symbol, struct partial_symbol): Rename field
6413 'namespace_enum namespace' to 'domain_enum domain'.
6414 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6415 Delete old define kludge for namespace.
6416
6417 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6418 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6419 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6420 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6421 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6422 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6423 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6424 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6425 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6426 occurrences of the above.
6427
6428 2003-05-14 Ian Lance Taylor <ian@airs.com>
6429
6430 * Makefile.in (install-only): Use $(SHELL) when running
6431 mkinstalldirs.
6432
6433 2003-05-13 Ian Lance Taylor <ian@airs.com>
6434
6435 * MAINTAINERS (write after approval): Add myself.
6436
6437 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6438 second and third arguments.
6439 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6440 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6441
6442 2003-05-13 Andrew Cagney <cagney@redhat.com>
6443
6444 * defs.h (store_address): Delete declaration.
6445 findvar.c (store_address): Delete function.
6446 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6447 store_unsigned_integer.
6448 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6449 * v850-tdep.c (v850_push_arguments): Ditto.
6450 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6451 * sh-tdep.c (sh64_get_saved_register): Ditto.
6452 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6453 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6454 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6455 (mips_get_saved_register): Ditto.
6456 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6457 (find_func_descr, ia64_push_arguments): Ditto.
6458 * i386-tdep.c (i386_push_arguments): Ditto.
6459 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6460 * frv-tdep.c (frv_push_arguments): Ditto.
6461 * frame.c (legacy_saved_regs_prev_register): Ditto.
6462 (deprecated_generic_get_saved_register): Ditto.
6463 * findvar.c (unsigned_address_to_pointer): Ditto.
6464 * dwarf2read.c (dwarf2_const_value): Ditto.
6465 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6466 * alpha-tdep.c (alpha_push_arguments): Ditto.
6467
6468 2003-05-12 J. Brobecker <brobecker@gnat.com>
6469
6470 * NEWS: Mention that the hppa-hpux port has been partially
6471 multiarched (32bit ABIT only, so far).
6472
6473 2003-05-11 Andrew Cagney <cagney@redhat.com>
6474
6475 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6476 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6477 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6478 sim/testsuite/sim/arm/misaligned2.ms, and
6479 sim/testsuite/sim/arm/misaligned3.ms.
6480 * disasm.h (struct ui_file): Add opaque struct declaration.
6481 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6482 * frame.h (struct ui_file): Ditto.
6483
6484 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6485
6486 * value.h: Pretty print.
6487
6488 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6489
6490 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6491
6492 2003-05-08 Andrew Cagney <cagney@redhat.com>
6493
6494 * regcache.h (max_register_size): Delete declaration.
6495 * regcache.c (max_register_size): Delete function.
6496 (struct regcache_descr): Delete field "max_register_size".
6497 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6498 registers fit in MAX_REGISTER_SIZE.
6499 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6500 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6501 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6502 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6503 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6504 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6505 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6506 * dve3900-rom.c, hppa-tdep.c: Ditto.
6507
6508 2003-05-08 David Carlton <carlton@math.stanford.edu>
6509
6510 * valops.c (push_word): Fix typo.
6511
6512 2003-05-08 Andrew Cagney <cagney@redhat.com>
6513
6514 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6515 * gdbarch.h: Re-generate.
6516 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6517 (legacy_max_register_raw_size): Delete declaration.
6518 * regcache.c (legacy_max_register_raw_size): Delete function.
6519 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6520 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6521 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6522 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6523 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6524 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6525 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6526 * findvar.c, dwarf2cfi.c: Ditto.
6527
6528 2003-05-08 Andrew Cagney <cagney@redhat.com>
6529
6530 * mips-tdep.c (read_signed_register): New function, moved to here
6531 from "regcache.c".
6532 (read_signed_register_pid): Ditto.
6533 * regcache.c (read_signed_register_pid): Delete function, moved to
6534 "mips-tdep.c".
6535 (read_signed_register): Ditto.
6536 * regcache.h (read_signed_register): Delete declaration.
6537 (read_signed_register_pid): Delete declaration.
6538
6539 2003-05-08 Andrew Cagney <cagney@redhat.com>
6540
6541 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6542 * gdbarch.h: Re-generate.
6543 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6544 (legacy_max_register_virtual_size): Delete declaration.
6545 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6546 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6547 * tracepoint.c (memrange_sortmerge): Ditto.
6548 * sparc-tdep.c (sparc_print_registers): Ditto.
6549 * regcache.c (legacy_max_register_virtual_size): Delete function.
6550
6551 2002-05-08 J. Brobecker <brobecker@gnat.com>
6552
6553 * fork-child.c (escape_bang_in_quoted_argument): New function.
6554 (fork_inferior): Escape '!' characters in quoted arguments
6555 only when needed.
6556
6557 2003-05-08 J. Brobecker <brobecker@gnat.com>
6558
6559 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6560 the language of the CU is not currently supported by GDB.
6561
6562 2003-05-08 J. Brobecker <brobecker@gnat.com>
6563
6564 * defs.h (language): Add language_minimal enum value.
6565 * c-lang.c (minimal_language_defn): New language definition.
6566 (_initialize_c_language): Add the new minimal language to the list
6567 of languages known to GDB.
6568
6569 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6570
6571 * frame.c (get_frame_type): Don't attempt to lazily initialize
6572 frame's unwinder for legacy frames.
6573
6574 2003-05-07 Andrew Cagney <cagney@redhat.com>
6575
6576 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6577 and "regcache" parameters.
6578 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6579
6580 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6581
6582 * dwarf2read.c (dwarf_decode_lines): Only use output of
6583 check_cu_functions() when calling record_line(). Do not update
6584 the current address.
6585
6586 2003-05-07 Andrew Cagney <cagney@redhat.com>
6587
6588 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6589 code.
6590
6591 2003-05-07 Jim Blandy <jimb@redhat.com>
6592
6593 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6594 'maint info symtabs' and 'maint info psymtabs'.
6595 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6596 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6597 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6598 Declarations updated.
6599 * maint.c (maintenance_list_command): Delete.
6600 (_initialize_maint_cmds): Update calls to add_cmd.
6601 * gdbcmd.h (maintenancelistlist): Delete declaration.
6602 * cli/cli-cmds.c (maintenancelistlist): Delete.
6603 (init_cmd_lists): Don't initialize it.
6604 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6605
6606 2003-05-07 Andrew Cagney <cagney@redhat.com>
6607
6608 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6609 "regcache".
6610 (d10v_print_registers_info): Update.
6611 (d10v_dmap_register, d10v_imap_register): Delete functions.
6612 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6613 and "imap_register".
6614 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6615 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6616 * arch-utils.c (generic_remote_translate_xfer_address): Add
6617 "regcache" and "gdbarch" parameters.
6618 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6619 parameter. Change class to multi-arch.
6620 * gdbarch.h, gdbarch.c: Re-generate.
6621 * remote.c (remote_xfer_memory): Use
6622 gdbarch_remote_translate_xfer_address.
6623
6624 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6625
6626 * infrun.c (prev_pc): Move declaration ahead of proceed().
6627 (proceed): Refresh prev_pc value before resuming.
6628 (stop_stepping): Remove code to refresh prev_pc.
6629
6630 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6631
6632 * nto-tdep.c: Removed stray comment.
6633
6634 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6635
6636 * i386-nto-tdep.c: Fix old K&R function definitions.
6637 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6638 Also change add_show_from_set() call to add_setshow_cmd().
6639 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6640
6641 2003-05-05 Andrew Cagney <cagney@redhat.com>
6642
6643 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6644 (fprint_dummy_frames): New function.
6645 (maintenance_print_dummy_frames): New function.
6646 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6647 * frame.c (fprint_frame_id): Make global.
6648 * frame.h (fprint_frame_id): Declare.
6649 * Makefile.in (dummy-frame.o): Update dependencies.
6650
6651 2003-05-05 Andrew Cagney <cagney@redhat.com>
6652
6653 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6654 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6655 SIZEOF_CALL_DUMMY_WORDS.
6656 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6657 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6658 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6659 CALL_DUMMY_BREAKPOINT_OFFSET.
6660 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6661 CALL_DUMMY_START_OFFSET.
6662 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6663 * gdbarch.h, gdbarch.c: Re-generate.
6664 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6665 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6666 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6667 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6668 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6669 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6670 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6671 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6672 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6673 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6674 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6675 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6676 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6677 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6678 * config/sparc/tm-sparc.h: Update.
6679
6680 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6681
6682 * configure.tgt: Add i[3456]86-*-nto*.
6683 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6684 * nto-tdep.c: New file. Neutrino target support routines.
6685 * nto-tdep.h: New file. Neutrino target header.
6686 * config/tm-qnxnto.h: New file.
6687 * config/i386/i386nto.mt: New file.
6688 * config/i386/tm-i386nto.h: New file.
6689
6690 2003-05-04 Andrew Cagney <cagney@redhat.com>
6691
6692 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6693 (load_infrun_state): Ditto.
6694 (struct thread_info): Drop "prev_func_name" field.
6695 * thread.c (load_infrun_state): Update.
6696 (save_infrun_state): Update.
6697 * infrun.c (prev_func_name): Delete variable.
6698 (init_wait_for_inferior): Do not clear prev_func_name.
6699 (stop_stepping, keep_going, context_switch): Do not swap
6700 prev_func_name.
6701 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6702 instead of PC_IN_SIGTRAMP.
6703
6704 2003-05-04 Andrew Cagney <cagney@redhat.com>
6705
6706 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6707 REGISTER_BYTE with register_offset_hack.
6708 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6709 that REGISTER_BYTE is consistent with the regcache.
6710 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6711 * gdbarch.h, gdbarch.c: Regenerate.
6712
6713 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6714
6715 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6716 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6717
6718 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6719
6720 2003-05-03 J. Brobecker <brobecker@gnat.com>
6721
6722 From Thierry Schneider <tpschneider1@yahoo.com>
6723 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6724 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6725 (mi-cmd-symbol.o): Add rule.
6726
6727 2003-05-03 Andrew Cagney <cagney@redhat.com>
6728
6729 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6730 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6731 * gdbarch.h, gdbarch.c: Re-generate.
6732 * d10v-tdep.c (d10v_push_dummy_code): New function.
6733 (d10v_gdbarch_init): Set push_dummy_code.
6734 * infcall.c (legacy_push_dummy_code): New function.
6735 (generic_push_dummy_code): New function.
6736 (push_dummy_code): New function.
6737 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6738 instead of dummy_addr, to push_dummy_call. Move call to
6739 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6740 switch.
6741 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6742
6743 2003-05-03 Andrew Cagney <cagney@redhat.com>
6744
6745 * disasm.h (print_insn): Declare.
6746 * disasm.c (init_gdb_disassemble_info): New function.
6747 (gdb_disassembly): Call init_gdb_disassemble_info.
6748 (gdb_print_insn): New function.
6749 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6750 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6751 * mcore-tdep.c: Include "disasm.h"
6752 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6753 * d10v-tdep.c: Include "disasm.h".
6754 (display_trace): Call gdb_print_insn, instead of print_insn.
6755 (print_insn): Delete function.
6756 * printcmd.c: Include "disasm.h".
6757 (print_insn): Delete function.
6758 (print_formatted): Call gdb_print_insn, instead of print_insn.
6759 * Makefile.in (printcmd.o): Update dependencies.
6760 (mcore-tdep.o, d10v-tdep.o): Ditto.
6761
6762 2003-05-02 Andrew Cagney <cagney@redhat.com>
6763
6764 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6765 PC_REGNUM, re-indent.
6766 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6767 PC_REGNUM isn't set.
6768
6769 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6770 * gdbarch.h, gdbarch.c: Re-generate.
6771 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6772 register_virtual_size, pc_regnum, or register_bytes.
6773 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6774 (d10v_register_type): Use D10V_PC_REGNUM.
6775 (d10v_print_registers_info, d10v_read_pc): Ditto.
6776 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6777 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6778
6779 2003-05-02 David Carlton <carlton@bactrian.org>
6780
6781 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6782 the name with mstrsave.
6783
6784 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6785
6786 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6787 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6788 (host_charset_name, target_charset_name): New vars for use by
6789 set/show commands.
6790 (host_charset_enum, target_charset_enum): New enums for set/show
6791 commands.
6792 (set_charset_sfunc, set_host_charset_sfunc,
6793 set_target_charset_sfunc): New functions.
6794 (set_host_charset, set_target_charset): Make static.
6795 (list_charsets, set_host_charset_command,
6796 set_target_charset_command): Delete functions.
6797 (show_charset_command): Rewrite as....
6798 (show_charset): Hook this up with the set/show command mechanism.
6799 (_initialize_charset): Change names of charsets to match the
6800 set/show enums. Use host_charset_name and target_charset_name.
6801 Use set/show mechanism for charset, host-charset, target-charset
6802 commands. Do not make 'show host-charset' and 'show
6803 target-charset' be aliases of 'show charset'.
6804
6805 * charset.h (set_host_charset, set_target_charset): Don't export,
6806 they are not used outside the file.
6807
6808 2003-05-01 Andrew Cagney <cagney@redhat.com>
6809
6810 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6811 (gdb_disassembly): Make "di" non static, always initialize and
6812 cleanup. Always use dis_asm_read_memory.
6813 (gdb_dis_asm_read_memory): Delete function.
6814
6815 2003-05-01 Andrew Cagney <cagney@redhat.com>
6816
6817 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6818 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6819
6820 2003-04-30 Andrew Cagney <cagney@redhat.com>
6821
6822 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6823 "tm_print_insn_info".
6824 (TARGET_PRINT_INSN_INFO): Delete macro.
6825 (dis_asm_read_memory): Delete function declaration.
6826 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6827 (tm_print_insn_info): Delete variable definition.
6828 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6829 * gdbarch.h, gdbarch.c: Re-generate.
6830 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6831 "deprecated_tm_print_insn_info".
6832 * mcore-tdep.c (mcore_dump_insn): Ditto.
6833 * mips-tdep.c (mips_gdbarch_init): Ditto.
6834 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6835 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6836 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6837 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6838 instead of TARGET_PRINT_INSN_INFO, add comment.
6839 * s390-tdep.c (s390_get_frame_info): Instead of
6840 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6841 (s390_check_function_end, s390_is_sigreturn): Ditto.
6842 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6843 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6844 * disasm.c: Include "gdbcore.h".
6845 (_initialize_disasm): New function, initialize
6846 "deprecated_tm_print_insn_info".
6847 (deprecated_tm_print_insn_info): New variable.
6848 (dis_asm_read_memory): Moved from "corefile.c", made static.
6849 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6850 * Makefile.in (disasm.o): Update dependencies.
6851
6852 2003-04-30 Andrew Cagney <cagney@redhat.com>
6853
6854 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6855
6856 2003-04-29 Adam Fedor <fedor@gnu.org>
6857
6858 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6859 * infcall.c (find_function_addr): Make non-static.
6860 * infcall.h (find_function_addr): Declare.
6861 * Makefile.in (eval.o): Update dependencies.
6862
6863 2003-04-28 Adam Fedor <fedor@gnu.org>
6864
6865 * symtab.c (symbol_find_demangled_name): Check for and demangle
6866 ObjC symbols.
6867 (symbol_init_demangled_name): Init for language_objc as well.
6868
6869 2003-04-28 Andrew Cagney <cagney@redhat.com>
6870
6871 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6872 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6873 * gdbarch.h, gdbarch.c: Re-generate.
6874 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6875 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6876 * inferior.h (deprecated_read_fp): Rename read_fp.
6877 (generic_target_read_fp): Delete declaration.
6878 * regcache.c (generic_target_read_fp): Delete function.
6879 (deprecated_read_fp): Replace read_fp, use
6880 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6881 * d10v-tdep.c (d10v_read_fp): Delete function.
6882 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6883
6884 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6885 deprecated_target_read_fp to generic_target_read_fp.
6886 * sh-tdep.c (sh_gdbarch_init): Ditto.
6887 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6888 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6889 * frv-tdep.c (frv_gdbarch_init): Ditto.
6890
6891 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6892 deprecated_fp_regnum.
6893 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6894 * vax-tdep.c (vax_gdbarch_init): Ditto.
6895 * v850-tdep.c (v850_gdbarch_init): Ditto.
6896 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6897 * sh-tdep.c (sh_gdbarch_init): Ditto.
6898 * s390-tdep.c (s390_gdbarch_init): Ditto.
6899 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6900 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6901 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6902 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6903 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6904 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6905 * i386-tdep.c (i386_gdbarch_init): Ditto.
6906 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6907 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6908 * frv-tdep.c (frv_gdbarch_init): Ditto.
6909 * cris-tdep.c (cris_gdbarch_init): Ditto.
6910 * avr-tdep.c (avr_gdbarch_init): Ditto.
6911 * arm-tdep.c (arm_gdbarch_init): Ditto.
6912 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6913
6914 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6915 * v850-tdep.c (v850_gdbarch_init): Ditto.
6916 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6917 * sh-tdep.c (sh_gdbarch_init): Ditto.
6918 * s390-tdep.c (s390_gdbarch_init): Ditto.
6919 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6920 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6921 * mips-tdep.c (mips_gdbarch_init): Ditto.
6922 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6923 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6924 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6925 * frv-tdep.c (frv_gdbarch_init): Ditto.
6926 * avr-tdep.c (avr_gdbarch_init): Ditto.
6927 * arm-tdep.c (arm_gdbarch_init): Ditto.
6928
6929 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6930 DEPRECATED_FP_REGNUM.
6931 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6932 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6933 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6934 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6935 (sparc32_register_virtual_type): Ditto.
6936 * sh-tdep.c (sh64_frame_chain): Ditto.
6937 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6938 (sh_nofp_frame_init_saved_regs): Ditto.
6939 (sh64_nofp_frame_init_saved_regs): Ditto.
6940 (sh_fp_frame_init_saved_regs): Ditto.
6941 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6942 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6943 * procfs.c (procfs_fetch_registers): Ditto.
6944 (procfs_store_registers): Ditto.
6945 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6946 (store_inferior_registers, fetch_core_registers): Ditto.
6947 (fetch_kcore_registers, clear_regs): Ditto.
6948 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6949 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6950 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6951 * nlm/i386.c (do_status): Ditto.
6952 * mipsv4-nat.c (supply_gregset): Ditto.
6953 * mips-tdep.c: Ditto for comments.
6954 * mips-nat.c (fetch_inferior_registers): Ditto.
6955 (store_inferior_registers, fetch_core_registers): Ditto.
6956 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6957 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6958 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6959 (i386_do_pop_frame, i386_register_type): Ditto.
6960 * hppa-tdep.c (hppa_frame_chain): Ditto.
6961 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6962 (hppa_pop_frame, hppa_read_fp): Ditto.
6963 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6964 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6965 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6966 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6967 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6968 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6969 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6970 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6971 * blockframe.c: Ditto for comments.
6972 * arch-utils.h: Ditto for comments.
6973 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6974 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6975 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6976 * alpha-tdep.h: Ditto for comments.
6977 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6978 (alpha_cannot_store_register): Ditto.
6979 (alpha_push_dummy_frame): Ditto.
6980 * alpha-nat.c (supply_gregset): Ditto.
6981
6982 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6983 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6984 * config/sparc/tm-sparc.h: Update comment.
6985
6986 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6987 deprecated_read_fp instead of TARGET_READ_FP.
6988 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6989 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6990 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6991 deprecated_read_fp instead of read_fp.
6992 * s390-tdep.c (s390_push_arguments): Ditto.
6993 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6994 * frame.h: Ditto in comments.
6995 * frame.c (legacy_get_prev_frame): Ditto.
6996 * dummy-frame.c (dummy_frame_this_id): Ditto.
6997 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6998
6999 2003-04-28 Andrew Cagney <cagney@redhat.com>
7000
7001 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7002 * gdbarch.h, gdbarch.c: Re-generate.
7003 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7004 * vax-tdep.c (_initialize_vax_tdep): Update.
7005 * v850-tdep.c (_initialize_v850_tdep): Update.
7006 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7007 * s390-tdep.c (_initialize_s390_tdep): Update.
7008 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7009 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7010 * mips-tdep.c (_initialize_mips_tdep): Update.
7011 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7012 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7013 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7014 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7015 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7016 * frv-tdep.c (_initialize_frv_tdep): Update.
7017 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7018 (_initialize_cris_tdep): Update.
7019 * arch-utils.c (legacy_print_insn): Update.
7020 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7021
7022 2003-04-26 Adam Fedor <fedor@gnu.org>
7023
7024 * linespec.c (decode_objc): New function to decode ObjC calls
7025 (decode_line_1): Check for ObjC calls (using decode_objc)
7026 * Makefile (linespec.o): Update dependencies.
7027
7028 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7029
7030 * breakpoint.h (struct breakpoint_ops): New.
7031 (struct breakpoint): Add ops member.
7032
7033 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7034 (mention): Use new breakpoint ops member.
7035 (set_raw_breakpoint): Initialize ops field to NULL.
7036 (print_exception_catchpoint, print_one_exception_catchpoint)
7037 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7038 (gnu_v3_exception_catchpoint_ops): New.
7039 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7040
7041 2003-04-25 Adam Fedor <fedor@gnu.org>
7042
7043 * Makefile.in (COMMON_OBS): Add objc-lang.o
7044
7045 2003-04-25 Andrew Cagney <cagney@redhat.com>
7046
7047 * d10v-tdep.c (print_insn): Delete function.
7048 (display_trace): Use TARGET_PRINT_INSN.
7049 (_initialize_d10v_tdep): Do not set tm_print_insn.
7050 (d10v_gdbarch_init): Set print_insn.
7051
7052 2003-04-25 Andrew Cagney <cagney@redhat.com>
7053
7054 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7055 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7056 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7057 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7058 (nr_dmap_regs, a0_regnum): ... new functions.
7059 (d10v_print_registers_info): Use a0_regnum, use register_size.
7060 (d10v_register_byte): Delete function.
7061 (d10v_register_raw_size): Delete function.
7062 (d10v_register_type): Use a0_regnum.
7063 (d10v_print_registers_info): Use a0_regnum.
7064 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7065 (d10v_gdbarch_init): Do not set register_byte or
7066 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7067 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7068 extract_address.
7069 (trace_command): Use XCALLOC.
7070 (print_insn): Delete reference to tm_print_insn.
7071 (saved_regs_unwinder): Use store_unsigned_integer instead of
7072 store_address.
7073 * frame.h (FRAME_OBSTACK_CALLOC): Define
7074
7075 2003-04-25 David Carlton <carlton@bactrian.org>
7076
7077 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7078
7079 2003-04-24 Adam Fedor <fedor@gnu.org>
7080
7081 * objc-lang.c: Include "valprint.h"
7082 * Makefile.in (objc-lang.o): Update dependencies.
7083
7084 2003-04-24 Adam Fedor <fedor@gnu.org>
7085
7086 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7087 architecture dependant compilation and mark as unimplemented
7088 (until they get put in the gdbarch vector).
7089
7090 2003-04-23 David Carlton <carlton@bactrian.org>
7091
7092 * cp-support.c (cp_find_first_component): Accept 'operator' in
7093 more locations.
7094
7095 2003-04-23 Andrew Cagney <cagney@redhat.com>
7096
7097 * infcall.c (call_function_by_hand): Eliminate redundant
7098 indentation. Move "saved_async" and "old_cleanups" to where they
7099 are needed.
7100
7101 2003-04-23 Andrew Cagney <cagney@redhat.com>
7102
7103 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7104 and "buffer". Move the "name" code to where it is needed.
7105
7106 2003-04-23 Andrew Cagney <cagney@redhat.com>
7107
7108 * infcall.c (call_function_by_hand): Move variables "start_sp",
7109 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7110 code to ON_STACK switch branch.
7111
7112 2003-04-23 Andrew Cagney <cagney@redhat.com>
7113
7114 * infcall.c (call_function_by_hand): Make declaration of "i",
7115 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7116 lint.
7117
7118 2003-04-23 Andrew Cagney <cagney@redhat.com>
7119
7120 * infcall.c (call_function_by_hand): Delete variable
7121 "n_method_args". Localize "param_type"'s declaration to the loop
7122 that it is used. Reinstate code assigning to said variable -
7123 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7124 Rationalize code using "param_type".
7125
7126 2003-04-22 Andrew Cagney <cagney@redhat.com>
7127
7128 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7129 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7130 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7131 to DEPRECATED_PUSH_RETURN_ADDRESS.
7132
7133 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7134
7135 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7136 on the DWARF2 register number prior to fetching a register.
7137
7138 2003-04-22 J. Brobecker <brobecker@gnat.com>
7139
7140 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7141 Update all the tests using SOFT_FLOAT considering the fact that
7142 this macro was always set to 0.
7143 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7144 considering the fact that this macro was always set to 0.
7145 * hppa-tdep.h (hppa_store_return_value): Likewise.
7146 (hppa_extract_return_value): Likewise.
7147
7148 2003-04-22 J. Brobecker <brobecker@gnat.com>
7149
7150 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7151 the hppa-pro target only.
7152
7153 2003-04-21 J. Brobecker <brobecker@gnat.com>
7154
7155 Ongoing multi-arch conversion effort for HP/UX:
7156 * config/pa/tm-hppa.h: Move all macro that are no longer
7157 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7158 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7159
7160 2003-04-21 J. Brobecker <brobecker@gnat.com>
7161
7162 * config/pa/tm-hppa.h: Obsolete a section that was only used
7163 for hppa-pro.
7164
7165 2003-04-21 J. Brobecker <brobecker@gnat.com>
7166
7167 Ongoing multi-arch conversion for HP/UX.
7168 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7169 if already defined (allows hppa64 to stay non-multiarched for now).
7170 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7171
7172 2003-04-21 Andrew Cagney <cagney@redhat.com>
7173
7174 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7175
7176 2003-04-21 Andrew Cagney <cagney@redhat.com>
7177
7178 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7179 "i386_num_mmx_regs".
7180
7181 2003-04-21 Andrew Cagney <cagney@redhat.com>
7182
7183 * infcall.c: New file.
7184 * infcall.h: New file.
7185 * valarith.c: Include "infcall.h".
7186 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7187 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7188 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7189 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7190 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7191 (SFILES): Add "infcall.c"
7192 (COMMON_OBS): Add "infcall.o".
7193 (infcall.o): Specify dependencies.
7194 * value.h (call_function_by_hand): Delete declaration.
7195 * inferior.h (run_stack_dummy): Delete declaration.
7196 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7197 (run_stack_dummy): Move to "infcall.c", merged into
7198 call_function_by_hand.
7199 * valops.c (call_function_by_hand): Moved to "infcall.c".
7200 (find_function_addr, value_arg_coerce): Ditto.
7201 (unwindonsignal_p, coerce_float_to_double): Ditto.
7202 (_initialize_valops): Move "set/show coerce-float-to-double", and
7203 "set/show unwindonsignal" commands to "infcall.c".
7204 * v850-tdep.c, target.h: Update comments.
7205 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7206 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7207 (sh64_init_extra_frame_info): Update comments.
7208 * mn10300-tdep.c: Update comments.
7209 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7210 * config/sparc/tm-sparc.h: Update comments.
7211 * breakpoint.h: Update comments.
7212 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7213 * arm-tdep.c: Update comment.
7214
7215 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7216
7217 * i386-tdep.c (i386_num_register_names): New variable.
7218 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7219 (MM0_REGNUM): Remove redundant parentheses in define.
7220 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7221 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7222 i386_mxcsr_regnum_p): Remove redundant parentheses.
7223 (i386_register_name): Use i386_num_register_names.
7224
7225 * i386-tdep.c (i386_extract_return_value,
7226 i386_store_return_value): Correct check for availability of
7227 floating-point registers.
7228
7229 * i386-tdep.c (i386_frame_num_args): Remove function.
7230 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7231
7232 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7233 mmx_regnum_to_fp_regnum. Adjust all callers.
7234
7235 * i386-tdep.c (i386_get_longjmp_target): Use
7236 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7237 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7238 extract_address.
7239
7240 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7241
7242 * core-regset.c: Update comments to reflect reality. Re-order
7243 includes.
7244 (fetch_core_registers): Use switch instead of if. Remove
7245 redundant prototype.
7246
7247 2003-04-18 Jim Blandy <jimb@redhat.com>
7248
7249 * s390-tdep.c (s390_frame_align): New function.
7250 (s390_gdbarch_init): Register it with the gdbarch object.
7251
7252 2003-04-17 Richard Henderson <rth@redhat.com>
7253
7254 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7255
7256 2003-04-17 Michael Snyder <msnyder@redhat.com>
7257 Karen Bennet <bennet@redhat.com>
7258
7259 Committed by Elena Zannoni <ezannoni@redhat.com>
7260 * gdb_gcore.sh: New script to create a core dump of a process.
7261
7262 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7263
7264 * values.c (value_being_returned): Don't fetch the return
7265 value if the return type is void.
7266
7267 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7268
7269 * thread-db.c: Reindented.
7270
7271 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7272
7273 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7274 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7275 as types.
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7302
7303 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7304 the size of ``long double'' to 16, instead of 8.
7305
7306 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7307
7308 * i386-linux-nat.c: Add some whitespace to make things more
7309 readable.
7310 (fetch_register, store_register, fetch_inferior_registers,
7311 store_inferior_registers): Get rid of assignment in if-statement.
7312 (store_register): Fix typo in error message.
7313
7314 2003-04-16 Andrew Cagney <cagney@redhat.com>
7315
7316 * utils.c (xmmalloc): Always allocate something, matches
7317 libiberty/xmalloc's semantics.
7318 (xmrealloc, xmcalloc): Ditto.
7319
7320 2003-04-16 Andrew Cagney <cagney@redhat.com>
7321
7322 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7323 update comments.
7324 (get_frame_type): Initialize unwind and type when needed.
7325 (get_frame_id, frame_register_unwind): Ditto.
7326
7327 2003-04-16 Andrew Cagney <cagney@redhat.com>
7328
7329 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7330 obsolete.
7331 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7332 * sparcl-stub.c: Obsolete file.
7333 * config/sparc/tm-sparclet.h: Obsolete file.
7334 * sparclet-stub.c: Obsolete file.
7335 * sparclet-rom.c: Obsolete file.
7336 * sparcl-tdep.c: Obsolete file.
7337 * config/sparc/tm-sparclite.h: Obsolete file.
7338 * config/sparc/sparclite.mt: Obsolete file.
7339 * config/sparc/sparclet.mt: Obsolete file.
7340 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7341 sparc86x-*-* obsolete.
7342
7343 2003-04-15 David Carlton <carlton@math.stanford.edu>
7344
7345 * Makefile.in (SFILES): Add cp-namespace.c.
7346 (COMMON_OBS): Add cp-namespace.o.
7347 (block.o): Depend on gdb_obstack_h and cp_support_h.
7348 (buildsym.o): Depend on cp_support_h.
7349 (cp-namespace.o): New.
7350 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7351 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7352 (dwarf2read.o): Depend on cp_support_h.
7353 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7354 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7355 processing_current_namespace.
7356 (read_namespace): Update processing_current_namespace; check for
7357 anonymous namespaces.
7358 (dwarf2_name): New function.
7359 (dwarf2_extension): Ditto.
7360 * cp-support.h: Update copyright, contributors.
7361 Add inclusion guards.
7362 Add opaque declaration for structs obstack, block, symbol.
7363 (struct using_direct): New struct.
7364 Add declarations for cp_find_first_component,
7365 cp_entire_prefix_len, processing_has_namespace_info,
7366 processing_current_namespace, cp_is_anonymous,
7367 cp_add_using_directive, cp_initialize_namespace,
7368 cp_finalize_namespace, cp_set_block_scope,
7369 cp_scan_for_anonymous_namespaces.
7370 * cp-namespace.c: New file.
7371 * cp-support.c: Update copyright.
7372 Include ctype.h, gdb_assert.h, gdbcmd.h.
7373 New variable maint_cplus_cmd_list.
7374 (cp_find_first_component): New function.
7375 (cp_entire_prefix_len, maint_cplus_command)
7376 (first_component_command, _initialize_cp_support): Ditto.
7377 * buildsym.c: Include cp-support.h.
7378 New variable using_list.
7379 (add_symbol_to_list): Check for anonymous namespaces.
7380 (finish_block): Set block's scope.
7381 (start_symtab): Initialize C++ namespace support.
7382 (end_symtab): Finalize C++ namespace support.
7383 * block.h: Add opaque declarations for structs
7384 block_namespace_info, using_direct, and obstack.
7385 Add declarations for block_set_scope and block_set_using.
7386 (struct block): Add 'language_specific' member.
7387 (BLOCK_NAMESPACE): New macro.
7388 * block.c: Include gdb_obstack.h and cp-support.h.
7389 (struct block_namespace_info): New struct.
7390 (block_set_scope): New function.
7391 (block_set_using, block_initialize_namespace): Ditto.
7392
7393 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7394
7395 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7396 (locate_base): Return early if there aren't any link map offsets.
7397 (svr4_solib_create_inferior_hook): Warn if shared library support
7398 is unavailable.
7399
7400 2003-04-14 David Carlton <carlton@math.stanford.edu>
7401
7402 * symtab.c (symbol_set_names): Add prefix when storing Java names
7403 in hash table. Fix for PR java/1039.
7404
7405 2003-04-14 David Carlton <carlton@math.stanford.edu>
7406
7407 * symtab.c (symbol_set_names): Rename 'name' arg to
7408 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7409 * symtab.h: Change 'name' argument in declaration of
7410 symbol_set_names to 'linkage_name'.
7411 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7412
7413 2003-04-14 Andrew Cagney <cagney@redhat.com>
7414
7415 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7416 return the fully sign-extended register value.
7417 (get_frame_pointer): Ditto.
7418 (mips_pop_frame): Initialize "proc_desc" after checking for a
7419 dummy frame.
7420
7421 2003-04-14 Andrew Cagney <cagney@redhat.com>
7422
7423 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7424 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7425 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7426 (mips_push_register): Delete function.
7427 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7428 PUSH_FP_REGNUM.
7429
7430 2003-04-14 Jim Blandy <jimb@redhat.com>
7431
7432 * symmisc.c: #include "gdb_regex.h".
7433 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7434 functions.
7435 * maint.c (maintenance_list_command): New function.
7436 (_initialize_maint_cmds): Register the above as commands.
7437 * symtab.h (maintenance_list_symtabs,
7438 maintenance_list_psymtabs): New declarations.
7439 * cli/cli-cmds.c (maintenancelistlist): New variable.
7440 (init_cmd_lists): Initialize it.
7441 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7442 * gdbcmd.h (maintenancelistlist): New declaration.
7443 * Makefile.in (symmisc.o): Update dependencies.
7444
7445 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7446
7447 * s390-nat.c: Include asm/types.h for addr_t.
7448
7449 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7450
7451 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7452 actually incoming type.
7453
7454 2003-04-13 Andrew Cagney <cagney@redhat.com>
7455
7456 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7457 get_next_frame and get_frame_saved_regs.
7458
7459 2003-04-13 Andrew Cagney <cagney@redhat.com>
7460
7461 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7462 of gdbarch_num_regs.
7463
7464 2003-04-13 Andrew Cagney <cagney@redhat.com>
7465
7466 * frame.h: Mention what replaced what in "struct frame_info".
7467 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7468 deprecated_update_frame_base_hack and
7469 deprecated_update_frame_pc_hack.
7470 * hppa-tdep.c: Ditto.
7471
7472 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7473
7474 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7475 to read_reg and update its comment. Remove regnum member.
7476 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7477 Don't call read_reg when setting in_reg. Call read_reg to get
7478 the frame base if it's in a register. Return the register number
7479 on the stack instead of in the context. Remove extra arguments
7480 to read_reg.
7481 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7482 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7483 the register number on the expression stack.
7484 (needs_frame_read_reg): Remove extra arguments.
7485
7486 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7487
7488 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7489 made non-static.
7490 (execute_stack_op): All callers updated.
7491 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7492 * dwarf2loc.c (find_location_expression): New function.
7493 (dwarf_expr_frame_base): Call it.
7494 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7495 (dwarf2_tracepoint_var_ref): New function, broken out from
7496 locexpr_tracepoint_var_ref.
7497 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7498 Make static.
7499 (loclist_read_variable, loclist_read_needs_frame): New functions.
7500 (loclist_describe_location, loclist_tracepoint_var_ref): New
7501 functions.
7502 (dwarf2_loclist_funcs): New struct location_funcs.
7503 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7504 (struct dwarf2_locexpr_baton): Add comments.
7505 (dwarf2_loclist_funcs): New extern.
7506 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7507 base_address and base_known.
7508 (dwarf_loc_buffer): New variable.
7509 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7510 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7511 (dwarf2_has_info): Initialize dwarf_loc_offset.
7512 (dwarf2_build_psymtabs): Read in .debug_loc.
7513 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7514 DWARF_LOC_SIZE.
7515 (psymtab_to_symtab_1): Likewise. Move base address calculation
7516 here, from...
7517 (dwarf2_get_pc_bounds): ... here. Use the base address from
7518 cu_header.
7519 (dwarf2_symbol_mark_computed): Handle location lists.
7520
7521 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7522
7523 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7524 if the linkage name demangled successfully.
7525
7526 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7527
7528 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7529 disassmbly_flavour): Removed.
7530
7531 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7532
7533 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7534
7535 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7536
7537 2003-04-12 Andrew Cagney <cagney@redhat.com>
7538
7539 * frame.h (struct frame_info): Move definition from here ...
7540 * frame.c (struct frame_info): ... to here.
7541
7542 2003-04-12 Andrew Cagney <cagney@redhat.com>
7543
7544 * gdbthread.h (save_infrun_state): Delete parameter
7545 "prev_func_start".
7546 (struct thread_info): Delete field "prev_func_start".
7547 (load_infrun_state): Ditto.
7548 * thread.c (load_infrun_state, save_infrun_state): Update.
7549 * infrun.c (prev_func_start): Delete variable.
7550 (context_switch, init_wait_for_inferior): Update.
7551 (stop_stepping, keep_going): Update.
7552
7553 2003-04-12 Andrew Cagney <cagney@redhat.com>
7554
7555 * gdbarch.sh: Add missing opaque declarations.
7556 * gdbarch.h: Regnerate.
7557 * symtab.h: Add missing opaque declarations.
7558 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7559 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7560 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7561 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7562 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7563 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7564 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7565 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7566 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7567 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7568 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7569 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7570 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7571
7572 2003-04-11 Andrew Cagney <cagney@redhat.com>
7573
7574 * frame.c (get_frame_id): Return this frame's "id".
7575 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7576 function start.
7577 (legacy_saved_regs_this_id): Replace function body with
7578 internal-error.
7579 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7580 FRAME_OBSTACK_ZALLOC.
7581 (create_new_frame): Mark the frame ID as valid.
7582
7583 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7584
7585 * Makefile.in (libbfd_h): Added missing setting.
7586 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7587 according to the selected ABI.
7588
7589 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7590
7591 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7592
7593 2003-04-11 Andrew Cagney <cagney@redhat.com>
7594
7595 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7596 SAVED_PC_AFTER_CALL.
7597 * gdbarch.h, gdbarch.c: Regenerate.
7598 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7599 * x86-64-tdep.c (x86_64_init_abi): Update.
7600 * vax-tdep.c (vax_gdbarch_init): Update.
7601 * v850-tdep.c (v850_gdbarch_init): Update.
7602 * sparc-tdep.c (sparc_gdbarch_init): Update.
7603 * sh-tdep.c (sh_gdbarch_init): Update.
7604 * s390-tdep.c (s390_gdbarch_init): Update.
7605 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7606 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7607 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7608 * mips-tdep.c (mips_gdbarch_init): Update.
7609 * mcore-tdep.c (mcore_gdbarch_init): Update.
7610 * m68k-tdep.c (m68k_gdbarch_init): Update.
7611 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7612 * ia64-tdep.c (ia64_gdbarch_init): Update.
7613 (ia64_saved_pc_after_call): Update declaration.
7614 * i386ly-tdep.c (i386lynx_init_abi): Update.
7615 * i386-tdep.c (i386_gdbarch_init): Update.
7616 * hppa-tdep.c (hppa_gdbarch_init): Update.
7617 * h8300-tdep.c (h8300_gdbarch_init): Update.
7618 * frv-tdep.c (frv_gdbarch_init): Update.
7619 * cris-tdep.c (cris_gdbarch_init): Update.
7620 * avr-tdep.c (avr_gdbarch_init): Update.
7621 * arm-tdep.c (arm_gdbarch_init): Update.
7622 * alpha-tdep.c (alpha_gdbarch_init): Update.
7623 * ns32knbsd-nat.c (frame_num_args): Update.
7624 * ns32k-tdep.c (umax_frame_num_args): Update.
7625 * mips-tdep.c (mips_init_frame_pc_first): Update.
7626 * infrun.c (step_over_function): Update.
7627 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7628 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7629 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7630 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7631 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7632 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7633 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7634 * arch-utils.c (init_frame_pc_default): Update.
7635 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7636 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7637 declaration.
7638
7639 2003-04-11 Andrew Cagney <cagney@redhat.com>
7640
7641 * i387-tdep.c: Update copyright.
7642 (i387_to_double): Delete function.
7643 (double_to_i387): Delete function.
7644
7645 2003-04-10 Andrew Cagney <cagney@redhat.com>
7646
7647 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7648 frame's function's address. Simplify.
7649 (d10v_frame_unwind_cache): Check that the frame's function is
7650 non-zero.
7651
7652 2003-04-10 Jim Blandy <jimb@redhat.com>
7653
7654 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7655 call to set_gdbarch_deprecated_push_arguments.
7656
7657 2003-04-10 Andrew Cagney <cagney@redhat.com>
7658
7659 * frame.c (fprint_frame_id): New function.
7660 (fprint_frame_type, fprint_frame): New function.
7661 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7662 (create_sentinel_frame, get_frame_id): Ditto.
7663 (frame_id_p, frame_id_eq): Ditto.
7664 (frame_id_inner, create_new_frame): Ditto.
7665 (legacy_get_prev_frame, get_prev_frame): Ditto.
7666 (deprecated_update_frame_pc_hack): Ditto.
7667 (frame_register_unwind): Ditto.
7668 (deprecated_update_frame_base_hack): Ditto.
7669
7670 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7671
7672 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7673 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7674 frame_chain function.
7675 * Makefile.in: Add dependencies due to above change.
7676
7677 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7678
7679 * blockframe.c (legacy_frame_chain_valid): Move call to
7680 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7681 inside_entry_file.
7682
7683 2003-04-09 Andrew Cagney <cagney@redhat.com>
7684
7685 * frame.h (struct frame_id): Replace "pc" and "base" with
7686 "stack_addr" and "code_addr". Update comments.
7687 (frame_id_build): Update parameter names and comment.
7688 (struct frame_info): Replace "id_p" and "id" with "this_id".
7689 * dummy-frame.c (dummy_frame_this_id): Update.
7690 * breakpoint.c (print_one_breakpoint): Update.
7691 * frame.c (get_frame_id): Update.
7692 (get_frame_base, frame_id_build): Update.
7693 (create_sentinel_frame, legacy_get_prev_frame): Update.
7694 (deprecated_update_frame_base_hack): Update.
7695 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7696 (frame_id_inner): Ditto.
7697
7698 2003-04-09 Andrew Cagney <cagney@redhat.com>
7699
7700 * defs.h (gdb_print_host_address): Make "addr" parameter a
7701 pointer constant.
7702 * utils.c (gdb_print_host_address): Update.
7703
7704 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7705
7706 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7707 register number for R0 is 0.
7708
7709 2003-04-09 J. Brobecker <brobecker@gnat.com>
7710
7711 * frame.h (struct gdbarch): Add opaque structure definition
7712 to avoid a compilation warning on LynxOS 4.0.
7713
7714 2003-04-09 Andrew Cagney <cagney@redhat.com>
7715
7716 * frame.h (struct frame_info): Delete field "pc". Replace
7717 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7718 structure.
7719 * frame.c (frame_pc_unwind): Update.
7720 (create_sentinel_frame): Do not set "pc".
7721 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7722 (get_frame_pc): Call frame_pc_unwind.
7723 (deprecated_update_frame_pc_hack): Update.
7724 (create_new_frame): Use "pc" not "->pc".
7725
7726 2003-04-09 Andrew Cagney <cagney@redhat.com>
7727
7728 * frame.c (get_frame_id): Eliminate code updating "frame".
7729 (legacy_get_prev_frame): Ditto.
7730 (get_frame_base): Return id.base directly.
7731 (deprecated_update_frame_base_hack): Update "id.base".
7732 * frame.h (struct frame_info): Delete field "frame".
7733
7734 2003-04-09 Andrew Cagney <cagney@redhat.com>
7735
7736 * NEWS: Mention that the "Sequent family" is obsolete.
7737 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7738 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7739 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7740 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7741 * config/i386/tm-ptx4.h: Obsolete file.
7742 * config/i386/tm-ptx.h: Obsolete file.
7743 * symm-tdep.c: Obsolete file.
7744 * config/i386/symmetry.mt: Obsolete file.
7745 * config/i386/tm-symmetry.h: Obsolete file.
7746 * symm-nat.c: Obsolete file.
7747 * config/i386/nm-symmetry.h: Obsolete file.
7748 * config/i386/xm-symmetry.h: Obsolete file.
7749 * config/i386/symmetry.mh: Obsolete file.
7750 * config/i386/nm-ptx4.h: Obsolete file.
7751 * config/i386/ptx4.mh: Obsolete file.
7752 * config/i386/ptx.mt: Obsolete file.
7753 * config/i386/ptx.mh: Obsolete file.
7754 * config/i386/xm-ptx4.h: Obsolete file.
7755 * config/i386/xm-ptx.h: Obsolete file.
7756
7757 2003-04-09 Andrew Cagney <cagney@redhat.com>
7758
7759 Obsolete mips*-*-mach3*.
7760 * NEWS: Mention that mips*-*-mach3* is obsolete.
7761 * m3-nat.c: Obsolete file.
7762 * config/nm-m3.h: Obsolete file.
7763 * config/mips/tm-mipsm3.h: Obsolete file.
7764 * config/mips/mipsm3.mt: Obsolete file.
7765 * config/mips/mipsm3.mh: Obsolete file.
7766 * config/mips/xm-mipsm3.h: Obsolete file.
7767 * mipsm3-nat.c: Obsolete file.
7768 * configure.host: Obsolete mips-dec-mach3*.
7769 * configure.tgt: Obsolete mips*-*-mach3*.
7770
7771 2003-04-09 Andrew Cagney <cagney@redhat.com>
7772
7773 * doublest.h: Update copyright.
7774 (deprecated_store_floating, deprecated_extract_floating): Rename
7775 store_floating and extract_floating. Update comments.
7776 * doublest.c: Update copyright.
7777 (extract_floating_by_length): Replace extract_floating.
7778 (store_floating_by_length): Replace store_floating.
7779 (deprecated_extract_floating): New function.
7780 (deprecated_store_floating): New function.
7781 (extract_typed_floating): Call extract_floating_by_length.
7782 (store_typed_floating): Call store_floating_by_length.
7783 * x86-64-tdep.c (x86_64_store_return_value): Update.
7784 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7785 (sh64_extract_return_value): Update.
7786 (sh_sh4_register_convert_to_virtual): Update.
7787 (sh_sh64_register_convert_to_virtual): Update.
7788 (sh_sh4_register_convert_to_raw): Update.
7789 (sh_sh64_register_convert_to_raw): Update.
7790 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7791 (rs6000_register_convert_to_raw): Update.
7792 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7793 (ia64_register_convert_to_raw): Update.
7794 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7795 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7796 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7797 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7798 (alpha_register_convert_to_raw): Update.
7799
7800 2003-04-08 Andrew Cagney <cagney@redhat.com>
7801
7802 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7803 * gdbarch.h, gdbarch.c: Re-generate.
7804 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7805 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7806 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7807 conditionally, use frame_pc_unwind as an alternative. Add
7808 comments.
7809 * arch-utils.c (init_frame_pc_default): Only call
7810 SAVED_PC_AFTER_CALL when available.
7811
7812 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7813
7814 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7815 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7816 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7817 (start_remote): Ditto.
7818 (handle_inferior_event): Ditto.
7819 (save_inferior_status): Ditto.
7820 (restore_inferior_status): Ditto.
7821 * infcmd.c (attach_command): Ditto.
7822 * fork-child.c (startup_inferior): Ditto.
7823 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7824 * alpha-tdep.c (heuristic_proc_start): Ditto.
7825 * mips-tdep.c (heuristic_proc_start): Ditto.
7826 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7827 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7828 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7829 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7830 * remote-vx.c (vx_create_inferior): Ditto.
7831
7832 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7833
7834 * infrun.c (stop_soon_quietly): Make it an enum, to better
7835 override the default behavior of handle_inferior_event.
7836 (clear_proceed_status): Update uses of stop_soon_quietly to
7837 reflect that it is now an enum.
7838 (start_remote): Ditto.
7839 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7840 is set to handle the new GNU/Linux kernel behavior for
7841 attach/sigstop. Update uses of stop_soon_quietly.
7842 * inferior.h (enum stop_kind): New enum.
7843 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7844 Reset normal handle_inferior_event behavior, afterwards.
7845 * fork-child.c (startup_inferior): Update.
7846 * alpha-tdep.c (heuristic_proc_start): Update.
7847 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7848 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7849 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7850 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7851 * remote-vx.c (vx_create_inferior): Update.
7852 * mips-tdep.c (heuristic_proc_start): Update.
7853
7854 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7855
7856 * disasm.c (dump_insns): Move variables inside loop, or they will
7857 be freed more than once, causing wild memory corruptions.
7858 (gdb_disassembly): Look for the substring "-thread",
7859 instead of "-threads" in the target name, to make sure to find
7860 the 'multi-thread' target. Also, make sure we do the right thing
7861 with the "core" target.
7862
7863 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7864
7865 * mips-tdep.c (mips_print_fp_register): New function, created from
7866 do_fp_register_row(). Registers are now (also) printed as hex.
7867 Only one register is printed per row.
7868 (mips_print_register, do_fp_register_row): Print floating point
7869 registers with mips_print_fp_register().
7870
7871 2003-04-06 Andrew Cagney <cagney@redhat.com>
7872
7873 * valprint.h (inspect_it): Add extern declaration.
7874 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7875 (selectors_info, classes_info): Ditto.
7876 (find_objc_msgcall): Fix indentation.
7877 (objc_printstr): Delete extern declarations.
7878
7879 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7880
7881 2003-04-06 Andrew Cagney <cagney@redhat.com>
7882
7883 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7884 Update comment.
7885 * frame.c (legacy_saved_regs_this_id): Update.
7886 (legacy_get_prev_frame): Update.
7887 * xstormy16-tdep.c: Update comment.
7888 * sparc-tdep.c (sparc_frame_chain): Update comment.
7889 * blockframe.c (legacy_frame_chain_valid): Update.
7890
7891 2003-04-06 Andrew Cagney <cagney@redhat.com>
7892
7893 * valprint.c (val_print_type_code_int): Delete #ifdef
7894 PRINT_TYPELESS_INTEGER code.
7895
7896 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7897 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7898 multi-arch definition.
7899 * gdbarch.h: Re-generate.
7900
7901 2003-04-05 Andrew Cagney <cagney@redhat.com>
7902
7903 Eliminate FRAME_FIND_SAVED_REGS.
7904 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7905 Change FSR parameter to a pointer.
7906 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7907 Assume FSR parameter is a pointer.
7908 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7909 Make fsr a pointer.
7910 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7911 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7912 saved_regs a pointer.
7913 (hppa_frame_saved_pc): Ditto.
7914 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7915 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7916 pointer.
7917 (restore_pc_queue): Make fsr a pointer.
7918 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7919 (hppa_frame_chain): Make saved_regs a pointer, call
7920 hppa_frame_init_saved_regs.
7921 * sparc-tdep.c: Include "gdb_assert.h".
7922 (sparc_frame_find_saved_regs): Replace internal_error with
7923 gdb_assert.
7924 * remote-vxsparc.c (vx_read_register): Delete reference to
7925 FRAME_FIND_SAVED_REGS.
7926 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7927 * gdbarch.h: Regenerate.
7928 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7929 (deprecated_get_frame_saved_regs): Delete declaration.
7930 (struct frame_saved_regs): Delete definition.
7931 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7932 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7933 (hppa_frame_find_saved_regs): Delete declaration.
7934 (FRAME_FIND_SAVED_REGS): Delete macro.
7935 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7936 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7937 FRAME_FIND_SAVED_REGS in comment.
7938
7939 2003-04-05 Andrew Cagney <cagney@redhat.com>
7940
7941 * frame.c (frame_func_unwind, get_frame_func): New functions.
7942 * frame.h (get_frame_func, frame_func_unwind): Declare.
7943 (struct frame_info): Add field "prev_func" for caching the
7944 previous frame's function address.
7945 * arm-tdep.c (arm_frameless_function_invocation): Combine
7946 get_pc_function_start and get_frame_pc into get_frame_func.
7947 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7948 (sh64_nofp_frame_init_saved_regs): Ditto.
7949 * s390-tdep.c (s390_function_start): Ditto.
7950 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7951 (rs6000_frameless_function_invocation): Ditto.
7952 (rs6000_frame_saved_pc): Ditto.
7953 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7954 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7955 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7956 (i386_frame_init_saved_regs): Ditto.
7957 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7958 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7959 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7960 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7961 * blockframe.c (frameless_look_for_prologue): Ditto.
7962
7963 2003-04-05 Andrew Cagney <cagney@redhat.com>
7964
7965 * frame.c (legacy_get_prev_frame): Link prev to next at the
7966 function start. Update comments.
7967
7968 2003-04-05 Andrew Cagney <cagney@redhat.com>
7969
7970 * frame.c (get_frame_id): Update comment.
7971 (legacy_get_prev_frame): Update comment.
7972 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7973 * gdbarch.h: Regenerate.
7974 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7975 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7976
7977 2003-04-05 Andrew Cagney <cagney@redhat.com>
7978
7979 * stack.c (print_frame_info): Use get_frame_pc.
7980
7981 2003-04-04 Andrew Cagney <cagney@redhat.com>
7982
7983 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7984 the frame's type from the unwinder.
7985 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7986 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7987 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7988 (get_frame_base_address): Use get_frame_type.
7989 (get_frame_locals_address, get_frame_args_address): Ditto.
7990 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7991 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7992 (struct frame_info): Add comment explaining why the frame contains
7993 a "type" field.
7994 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7995 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7996 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7997 NORMAL_FRAME.
7998 * frame-unwind.h: Include "frame.h".
7999 (struct frame_unwind): Add "type" field.
8000 * Makefile.in (frame_unwind_h): Add $(frame_h).
8001
8002 2003-04-04 Andrew Cagney <cagney@redhat.com>
8003
8004 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8005 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8006 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8007 get_frame_base.
8008 (d10v_unwind_dummy_id): Use frame_id_build.
8009 * frame.c (find_frame_sal): Use get_frame_pc.
8010 (create_new_frame): Use deprecated_update_frame_pc_hack and
8011 deprecated_update_frame_base_hack.
8012 (create_sentinel_frame): Add comment about ->pc going away.
8013 (get_prev_frame): Add comment about ->pc going away.
8014 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8015 frame_id_build, deprecated_update_frame_pc_hack and
8016 deprecated_update_frame_base_hack.
8017 (select_frame): Use get_frame_pc.
8018 (legacy_saved_regs_this_id): Use frame_id_build.
8019
8020 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8021
8022 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8023 signed integer case.
8024 (classify_argument): Handle enumerations and references.
8025
8026 2003-04-04 Andrew Cagney <cagney@redhat.com>
8027
8028 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8029 ID to NULL.
8030
8031 2003-04-01 Adam Fedor <fedor@gnu.org>
8032
8033 * gdb/objc-lang.c (selectors_info): Replace calls to
8034 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8035 SYMBOL_NATURAL_NAME.
8036 (classes_info, find_methods): Likewise.
8037
8038 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8039
8040 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8041 ``mach'' to the value determined by bfd_default_set_arch_mach().
8042
8043 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8044
8045 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8046 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8047 (mi-cmd-file.o): Update dependencies.
8048
8049 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8050
8051 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8052 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8053
8054 2003-04-01 Adam Fedor <fedor@gnu.org>
8055
8056 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8057 * language.h (struct language_defn): Add la_demangle.
8058 (language_demangle): Declare.
8059 * language.c (language_demangle): New function.
8060 (unk_lang_demangle): Likewise.
8061 (unknown_language_defn, auto_language_defn, local_language_defn):
8062 Add ukn_lang_demangle.
8063 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8064 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8065 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8066 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8067 * jv-lang.c (java_demangle): New function
8068 (java_language_defn): Use it for la_demangle element.
8069 * objc-lang.c (objc_demangle): Add options argument
8070 (objc_language_defn): Use objc_demangle for la_demangle element.
8071 * maint.c (maintenance_demangle): Replace switch with
8072 call to language_demangle.
8073 * utils.c (fprintf_symbol_filtered): Likewise.
8074
8075 2003-04-01 Andrew Cagney <cagney@redhat.com>
8076
8077 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8078 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8079 PRINT_TYPELESS_INTEGER.
8080 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8081 PUSH_RETURN_ADDRESS.
8082
8083 2003-04-01 Andrew Cagney <cagney@redhat.com>
8084
8085 * Makefile.in (d10v-tdep.o): Update dependencies.
8086 * d10v-tdep.c: Include "frame-base.h".
8087 (d10v_frame_unwind): Make constant.
8088 (d10v_frame_base_address): New function.
8089 (d10v_frame_base): New variable.
8090 (d10v_gdbarch_init): Set frame_base default.
8091 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8092 comment for base.
8093 (d10v_frame_unwind_cache): Set and use "prev_sp".
8094 (d10v_frame_this_id): Use the previous frame's inner most stack
8095 address and this frame's func address for the frame ID. Use
8096 frame_id_build. Don't analyze beyond the current instruction.
8097
8098 2003-04-01 Andrew Cagney <cagney@redhat.com>
8099
8100 * frame.h (get_frame_locals_address, get_frame_args_address):
8101 Refer to the base address, instead of the address of the first
8102 local or parameter.
8103
8104 2003-04-01 Andrew Cagney <cagney@redhat.com>
8105
8106 Add frame debug info addresses:
8107 * frame-base.c: New file.
8108 * frame-base.h: New file.
8109 * frame.h (struct frame_base): Add opaque declaration.
8110 (get_frame_base): Update comment.
8111 (get_frame_base_address): Declare.
8112 (get_frame_locals_address): Declare.
8113 (get_frame_args_address): Declare.
8114 (struct frame_info): Add "base" and "base_cache". Update
8115 comments on the unwinder.
8116 * frame.c: Include "frame-base.h".
8117 (get_frame_locals_address): New function.
8118 (get_frame_base_address): New function.
8119 (get_frame_args_address): New function.
8120 * findvar.c (read_var_value): Use get_frame_locals_address and
8121 get_frame_args_address.
8122 * stack.c (frame_info): Use get_frame_locals_address and
8123 get_frame_args_address.
8124 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8125 moved to "frame-base.c".
8126 * printcmd.c (print_frame_nameless_args): Ditto.
8127 * symtab.h (address_class): Update comments.
8128 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8129 get_frame_base_address.
8130 * dwarf2expr.c (execute_stack_op): Ditto.
8131 * Makefile.in (frame_base_h): Define.
8132 (frame.o): Update dependencies.
8133 (frame-base.o): Add dependencies.
8134 (SFILES): Add frame-base.c.
8135 (COMMON_OBS): Add frame-base.o.
8136
8137 2003-04-01 Andrew Cagney <cagney@redhat.com>
8138
8139 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8140 CALL_DUMMY_LENGTH): Ditto.
8141 * gdbarch.c: Re-generate.
8142 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8143 (CALL_DUMMY_LENGTH): Delete macro.
8144 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8145 * arm-tdep.c (arm_gdbarch_init): Ditto.
8146 * avr-tdep.c (avr_gdbarch_init): Ditto.
8147 * cris-tdep.c (cris_gdbarch_init): Ditto.
8148 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8149 * frv-tdep.c (frv_gdbarch_init): Ditto.
8150 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8151 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8152 * i386-tdep.c (i386_gdbarch_init): Ditto.
8153 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8154 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8155 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8156 * mips-tdep.c (mips_gdbarch_init): Ditto.
8157 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8158 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8159 * s390-tdep.c (s390_gdbarch_init): Ditto.
8160 * sh-tdep.c (sh_gdbarch_init): Ditto.
8161 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8162 * v850-tdep.c (v850_gdbarch_init): Ditto.
8163 * vax-tdep.c (vax_gdbarch_init): Ditto.
8164 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8165
8166 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8167
8168 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8169
8170 2003-04-01 Andrew Cagney <cagney@redhat.com>
8171
8172 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8173 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8174 * gdbarch.h, gdbarch.c: Re-generate.
8175 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8176 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8177 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8178 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8179 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8180 * infcmd.c (run_stack_dummy): Simplify assuming
8181 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8182 * infrun.c (handle_inferior_event): Ditto.
8183 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8184 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8185 * arm-tdep.c (arm_gdbarch_init): Ditto.
8186 * avr-tdep.c (avr_gdbarch_init): Ditto.
8187 * cris-tdep.c (cris_gdbarch_init): Ditto.
8188 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8189 * frv-tdep.c (frv_gdbarch_init): Ditto.
8190 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8191 * i386-tdep.c (i386_gdbarch_init): Ditto.
8192 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8193 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8194 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8195 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8196 * mips-tdep.c (mips_gdbarch_init): Ditto.
8197 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8198 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8199 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8200 * s390-tdep.c (s390_gdbarch_init): Ditto.
8201 * sh-tdep.c (sh_gdbarch_init): Ditto.
8202 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8203 * v850-tdep.c (v850_gdbarch_init): Ditto.
8204 * vax-tdep.c (vax_gdbarch_init): Ditto.
8205 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8206
8207 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8208
8209 * symfile.c (symfile_relocate_debug_section): Update call to
8210 bfd_simple_get_relocated_section_contents.
8211
8212 2003-03-31 Andrew Cagney <cagney@redhat.com>
8213
8214 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8215 * gdbarch.h, gdbarch.c: Regenerate.
8216 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8217 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8218 available.
8219 * frame.h (generic_fix_call_dummy): Delete declaration.
8220 * dummy-frame.h: Update comment.
8221 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8222 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8223 fix_call_dummy.
8224 * sh-tdep.c (sh_gdbarch_init): Ditto.
8225 * s390-tdep.c (s390_gdbarch_init): Ditto.
8226 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8227 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8228 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8229 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8230 * i386-tdep.c (i386_gdbarch_init): Ditto.
8231 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8232 * frv-tdep.c (frv_gdbarch_init): Ditto.
8233 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8234 * cris-tdep.c (cris_gdbarch_init): Ditto.
8235 * avr-tdep.c (avr_gdbarch_init): Ditto.
8236 * arm-tdep.c (arm_gdbarch_init): Ditto.
8237
8238 2003-03-31 J. Brobecker <brobecker@gnat.com>
8239
8240 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8241 (INIT_FRAME_AP): Likewise.
8242 (EXTRA_FRAME_INFO): Likewise.
8243
8244 2003-03-31 Andrew Cagney <cagney@redhat.com>
8245
8246 * gdbarch.sh: Include "symfile.h".
8247 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8248 * gdbarch.h, gdbarch.c: Re-generate.
8249 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8250 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8251 call_dummy_address, the default is at entry_point_address.
8252 * v850-tdep.c (v850_gdbarch_init): Ditto.
8253 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8254 * sh-tdep.c (sh_gdbarch_init): Ditto.
8255 * s390-tdep.c (s390_gdbarch_init): Ditto.
8256 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8257 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8258 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8259 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8260 * i386-tdep.c (i386_gdbarch_init): Ditto.
8261 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8262 * frv-tdep.c (frv_gdbarch_init): Ditto.
8263 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8264 * cris-tdep.c (cris_gdbarch_init): Ditto.
8265 * arm-tdep.c (arm_gdbarch_init): Ditto.
8266
8267 2003-03-31 Andrew Cagney <cagney@redhat.com>
8268
8269 * gdbarch.sh (CALL_DUMMY_P): Delete.
8270 * gdbarch.h, gdbarch.c: Re-generate.
8271 * inferior.h (CALL_DUMMY_P): Delete macro.
8272 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8273 * vax-tdep.c (vax_gdbarch_init): Update.
8274 * v850-tdep.c (v850_gdbarch_init): Update.
8275 * sparc-tdep.c (sparc_gdbarch_init): Update.
8276 * sh-tdep.c (sh_gdbarch_init): Update.
8277 * s390-tdep.c (s390_gdbarch_init): Update.
8278 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8279 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8280 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8281 * mips-tdep.c (mips_gdbarch_init): Update.
8282 * mcore-tdep.c (mcore_gdbarch_init): Update.
8283 * m68k-tdep.c (m68k_gdbarch_init): Update.
8284 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8285 * ia64-tdep.c (ia64_gdbarch_init): Update.
8286 * i386-tdep.c (i386_gdbarch_init): Update.
8287 * h8300-tdep.c (h8300_gdbarch_init): Update.
8288 * frv-tdep.c (frv_gdbarch_init): Update.
8289 * d10v-tdep.c (d10v_gdbarch_init): Update.
8290 * cris-tdep.c (cris_gdbarch_init): Update.
8291 * breakpoint.c (deprecated_frame_in_dummy): Update.
8292 * avr-tdep.c (avr_gdbarch_init): Update.
8293 * alpha-tdep.c (alpha_gdbarch_init): Update.
8294 * arm-tdep.c (arm_gdbarch_init): Update.
8295 * dummy-frame.c (dummy_frame_this_id): Update comments.
8296 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8297 * frame.c (legacy_get_prev_frame): Ditto.
8298 * valops.c (call_function_by_hand): Delete function.
8299 (hand_function_call): Rename to call_function_by_hand
8300
8301 2003-03-30 Andrew Cagney <cagney@redhat.com>
8302
8303 2002-11-10 Klee Dienes <kdienes@apple.com>
8304 * value.h (struct value): Update comment.
8305
8306 2003-03-30 Andrew Cagney <cagney@redhat.com>
8307
8308 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8309 D10V_FP_REGNUM.
8310 (d10v_gdbarch_init): Do not set fp_regnum.
8311
8312 * frame.c (get_frame_base): Force ID initialization.
8313 (get_prev_frame): Move computation of the frame ID from here ...
8314 (get_frame_id): ... to here.
8315 (legacy_get_prev_frame): Mark the frame ID as valid.
8316 * frame.h (struct frame_info): Add field "id_p".
8317
8318 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8319
8320 * i386-tdep.c (i386_store_struct_return): Removed.
8321 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8322
8323 2003-03-30 Andrew Cagney <cagney@redhat.com>
8324
8325 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8326 * gdbarch.h, gdbarch.c: Regenerate.
8327 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8328 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8329 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8330 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8331 * i386-tdep.c (i386_gdbarch_init): Ditto.
8332 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8333 * cris-tdep.c (cris_gdbarch_init): Ditto.
8334 * vax-tdep.c (vax_gdbarch_init): Ditto.
8335 * s390-tdep.c (s390_gdbarch_init): Ditto.
8336 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8337 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8338 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8339 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8340 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8341 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8342 * sparc-tdep.c (sparc_gdbarch_init): Update.
8343 * sh-tdep.c (sh_gdbarch_init): Update.
8344 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8345 * mips-tdep.c (mips_gdbarch_init): Update.
8346 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8347 * ia64-tdep.c (ia64_gdbarch_init): Update.
8348 * frv-tdep.c (frv_gdbarch_init): Update.
8349 * avr-tdep.c (avr_gdbarch_init): Update.
8350 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8351 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8352 instead of when push_dummy_call is not available.
8353
8354 2003-03-30 Andrew Cagney <cagney@redhat.com>
8355
8356 * infttrace.c: Include "gdbthread.h".
8357 (parent_attach_all): Fix function signature.
8358 (call_ptrace): Update call.
8359 * Makefile.in (infttrace.o): Update dependencies.
8360
8361 2003-03-30 Andrew Cagney <cagney@redhat.com>
8362
8363 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8364 PUSH_RETURN_ADDRESS.
8365 * gdbarch.h, gdbarch.c: Regenerate.
8366 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8367 * x86-64-tdep.c (x86_64_init_abi): Update.
8368 * v850-tdep.c (v850_gdbarch_init): Update.
8369 * sparc-tdep.c (sparc_gdbarch_init): Update.
8370 * sh-tdep.c (sh_gdbarch_init): Update.
8371 * s390-tdep.c (s390_gdbarch_init): Update.
8372 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8373 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8374 * mips-tdep.c (mips_gdbarch_init): Update.
8375 * mcore-tdep.c (mcore_gdbarch_init): Update.
8376 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8377 * ia64-tdep.c (ia64_gdbarch_init): Update.
8378 * i386-tdep.c (i386_gdbarch_init): Update.
8379 * h8300-tdep.c (h8300_gdbarch_init): Update.
8380 * frv-tdep.c (frv_gdbarch_init): Update.
8381 * cris-tdep.c (cris_gdbarch_init): Update.
8382 * avr-tdep.c (avr_gdbarch_init): Update.
8383 * arm-tdep.c (arm_gdbarch_init): Update.
8384 * valops.c (hand_function_call): Update.
8385
8386 2003-03-29 Andrew Cagney <cagney@redhat.com>
8387
8388 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8389 sizeof_call_dummy_words.
8390 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8391 define.
8392 * gdbarch.h: Regenerate.
8393
8394 2003-03-29 Andrew Cagney <cagney@redhat.com>
8395
8396 * infttrace.h: New file.
8397 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8398 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8399 (hpread_read_doc_function_type): Detect an initialized type1.
8400 (hpread_quick_traverse): Initialize mod_name_string.
8401 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8402 (som_solib_get_solib_by_pc): Declare.
8403 (so_lib_thread_start_addr): Declare.
8404 (no_shared_libraries): Declare.
8405 * somread.c (init_import_symbols): Make static. Add forward
8406 declaration.
8407 * config/pa/nm-hppah.h: Include "infttrace.h" for
8408 parent_attach_all.
8409 (hppa_insert_hw_watchpoint): Declare.
8410 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8411 * hppah-nat.c: Include "gdb_string.h".
8412 (parent_attach_all): Delete extern declaration, moved to
8413 "infttrace.h".
8414 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8415 int.
8416 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8417 * Makefile.in (infttrace_h): Define.
8418 (hpread.o): Update dependencies.
8419 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8420 * hppa-hpux-tdep.c: Include "gdb_string.h".
8421 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8422 * infrun.c (handle_inferior_event): Always initialize
8423 stepped_after_stopped_by_watchpoint. Add default and remove
8424 fallthrough in switch statement.
8425 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8426 parameter to int.
8427 (hppa_remove_hw_watchpoint): Ditto.
8428
8429 2003-03-29 Andrew Cagney <cagney@redhat.com>
8430
8431 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8432 offset.
8433
8434 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8435
8436 * arm-tdep.c (arm_push_arguments): Delete.
8437 (struct stack_item): New type.
8438 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8439 (arm_store_struct_return): Delte.
8440 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8441 arm_push_arguments or arm_store_struct_return.
8442
8443 2003-03-28 Andrew Cagney <cagney@redhat.com>
8444
8445 * Makefile.in (d10v-tdep.o): Update dependencies.
8446 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8447 * d10v-tdep.c: Include "remote.h".
8448 (target_resume_hook): Delete extern declaration.
8449 (target_wait_loop_hook): Ditto.
8450 (tdisassemble_command): Eliminate assignment in "if" conditional.
8451 (d10v_ts2_register_sim_regno): Eliminate call to
8452 legacy_register_sim_regno.
8453 (d10v_ts3_register_sim_regno): Ditto.
8454
8455 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8456
8457 * thread.c: Reindented.
8458 * lin-lwp.c: Ditto.
8459 * linux-proc.c: Ditto.
8460
8461 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8462
8463 * MAINTAINERS (write after approval): Add myself.
8464
8465 2003-03-27 Theodore A. Roth <troth@openavr.org>
8466
8467 * objc-exp.y: Add missing semi-colons.
8468
8469 2003-03-27 Andrew Cagney <cagney@redhat.com>
8470
8471 * regcache.c (write_sp): Delete function and references.
8472 * inferior.h (write_sp): Delete declaration.
8473 * valops.c (hand_function_call): Replace write_sp with
8474 TARGET_WRITE_SP.
8475 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8476 (sparc_pop_frame): Ditto.
8477
8478 2003-03-27 Andrew Cagney <cagney@redhat.com>
8479
8480 * NEWS: Mention removal of support for hppa*-*-bsd* and
8481 hppa*-*-osf* natives, and hppa*-*-pro* target.
8482 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8483 * config/pa/xm-pa.h: Obsolete file.
8484 * config/pa/xm-hppab.h: Obsolete file.
8485 * config/pa/nm-hppab.h: Obsolete file.
8486 * config/pa/tm-hppab.h: Obsolete file.
8487 * config/pa/tm-hppao.h: Obsolete file.
8488 * config/pa/nm-hppao.h: Obsolete file.
8489 * config/pa/tm-pro.h: Obsolete file.
8490 * config/pa/hppaosf.mt: Obsolete file.
8491 * config/pa/hppaosf.mh: Obsolete file.
8492 * config/pa/hppapro.mt: Obsolete file.
8493 * config/pa/hppabsd.mt: Obsolete file.
8494 * config/pa/hppabsd.mh: Obsolete file.
8495 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8496 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8497 hppa*-*-osf*.
8498
8499 2003-03-27 Andrew Cagney <cagney@redhat.com>
8500
8501 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8502 push_arguments. Don't set push_return_address or write_sp.
8503 (d10v_push_dummy_call): Replace d10v_push_arguments.
8504 (d10v_push_return_address, d10v_write_sp): Delete function,
8505 handled by push_dummy_call.
8506
8507 2003-03-26 Andrew Cagney <cagney@redhat.com>
8508
8509 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8510 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8511 regcache and dummy_addr parameters.
8512 * gdbarch.h, gdbarch.c: Re-generate.
8513 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8514 available; assume it will handle stack alignment and return
8515 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8516 legacy_push_arguments.
8517 (legacy_push_arguments): Rename default_push_arguments.
8518 * value.h (legacy_push_arguments): Rename default_push_arguments.
8519 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8520 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8521 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8522 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8523 * config/i386/tm-symmetry.h: Update.
8524 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8525 * x86-64-tdep.c (x86_64_init_abi): Update.
8526 * v850-tdep.c (v850_gdbarch_init): Update.
8527 * sparc-tdep.c (sparc_gdbarch_init): Update.
8528 * sh-tdep.c (sh_gdbarch_init): Update.
8529 * s390-tdep.c (s390_gdbarch_init): Update.
8530 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8531 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8532 * mips-tdep.c (mips_gdbarch_init): Update.
8533 * mcore-tdep.c (mcore_gdbarch_init): Update.
8534 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8535 * ia64-tdep.c (ia64_gdbarch_init): Update.
8536 * i386-tdep.c (i386_gdbarch_init): Update.
8537 * hppa-tdep.c (hppa_gdbarch_init): Update.
8538 * h8300-tdep.c (h8300_gdbarch_init): Update.
8539 * frv-tdep.c (frv_gdbarch_init): Update.
8540 * d10v-tdep.c (d10v_gdbarch_init): Update.
8541 * cris-tdep.c (cris_gdbarch_init): Update.
8542 * avr-tdep.c (avr_gdbarch_init): Update.
8543 * arm-tdep.c (arm_gdbarch_init): Update.
8544 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8545 * alpha-tdep.c (alpha_gdbarch_init): Update.
8546
8547 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8548
8549 * signals/signals.c (do_target_signal_to_host): Correct realtime
8550 signal range test.
8551
8552 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8553
8554 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8555 (struct sal_chain, map_catch_names): Remove.
8556 (catch_exception_command_1): Don't call
8557 handle_gnu_4_16_catch_command.
8558
8559 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8560
8561 From Mark Dettinger <dettinge@de.ibm.com>:
8562 * dwarf2cfi.c (read_2u): Increment pointer by two.
8563
8564 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8565
8566 * signals/signals.c: Fix typos in last change.
8567
8568 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8569
8570 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8571 not already defined. Use __SIGRTMIN if available.
8572 (target_signal_from_host): Remove SIGRTMIN block.
8573 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8574 the signal is within the realtime range.
8575
8576 2003-03-25 Adam Fedor <fedor@gnu.org>
8577
8578 * Makefile.in (infrun.o): Add $(language_h)
8579 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8580 for language specific trampolines.
8581 * language.h (struct language_defn): Add skip_trampoline.
8582 (skip_language_trampoline): Declare.
8583 * language.c (unk_lang_trampoline, skip_language_trampoline):
8584 New functions.
8585 (unknown_language_defn, auto_language_defn, local_language_defn):
8586 Add ukn_lang_trampoline.
8587 * ada-lang.c (ada_language_defn): Add NULL for language
8588 specific skip_trampoline.
8589 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8590 scm-lang.c: Likewise.
8591 * objc-lang.c (objc_skip_trampoline): New function.
8592 (objc_language_defn): Add objc_skip_trampoline.
8593
8594 2003-03-25 Andrew Cagney <cagney@redhat.com>
8595
8596 * frame.c (get_prev_frame): Delay validating a frame's ID -
8597 non-NULL, didn't go backwards - until an attempt to unwind it to
8598 the previous frame.
8599
8600 2003-03-25 Andrew Cagney <cagney@redhat.com>
8601
8602 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8603 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8604 * gdbarch.h, gdbarch.c: Re-generate.
8605 * config/sparc/tm-sparc.h
8606 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8607 * sparc-tdep.c (sparc_gdbarch_init): Set
8608 deprecated_extra_stack_alignment_needed.
8609 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8610 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8611 extra_stack_alignment_needed.
8612 * v850-tdep.c (v850_gdbarch_init): Ditto.
8613 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8614 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8615 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8616 * cris-tdep.c (cris_gdbarch_init): Ditto.
8617 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8618 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8619
8620 2003-03-25 Andrew Cagney <cagney@redhat.com>
8621
8622 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8623 STORE_STRUCT_RETURN.
8624 * gdbarch.h, gdbarch.c: Regenerate.
8625 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8626 (d10v_push_arguments): Set the struct return register.
8627 (d10v_gdbarch_init): Update.
8628 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8629 * x86-64-tdep.c (x86_64_init_abi): Update.
8630 * vax-tdep.c (vax_gdbarch_init): Update.
8631 * v850-tdep.c (v850_gdbarch_init): Update.
8632 * sparc-tdep.c (sparc_gdbarch_init): Update.
8633 * sh-tdep.c (sh_gdbarch_init): Update.
8634 * s390-tdep.c (s390_gdbarch_init): Update.
8635 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8636 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8637 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8638 * mips-tdep.c (mips_gdbarch_init): Update.
8639 * mcore-tdep.c (mcore_gdbarch_init): Update.
8640 * m68k-tdep.c (m68k_gdbarch_init): Update.
8641 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8642 * ia64-tdep.c (ia64_gdbarch_init): Update.
8643 * i386-tdep.c (i386_gdbarch_init): Update.
8644 * hppa-tdep.c (hppa_gdbarch_init): Update.
8645 * h8300-tdep.c (h8300_gdbarch_init): Update.
8646 * frv-tdep.c (frv_gdbarch_init): Update.
8647 * cris-tdep.c (cris_gdbarch_init): Update.
8648 * avr-tdep.c (avr_gdbarch_init): Update.
8649 * arm-tdep.c (arm_gdbarch_init): Update.
8650 * alpha-tdep.c (alpha_gdbarch_init): Update.
8651
8652 2003-03-25 Andrew Cagney <cagney@redhat.com>
8653
8654 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8655 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8656 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8657 * gdbarch.h, gdbarch.c: Regenerate.
8658 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8659 call_dummy_stack_adjust_p.
8660 * vax-tdep.c (vax_gdbarch_init): Ditto.
8661 * v850-tdep.c (v850_gdbarch_init): Ditto.
8662 * sh-tdep.c (sh_gdbarch_init): Ditto.
8663 * s390-tdep.c (s390_gdbarch_init): Ditto.
8664 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8665 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8666 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8667 * mips-tdep.c (mips_gdbarch_init): Ditto.
8668 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8669 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8670 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8671 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8672 * i386-tdep.c (i386_gdbarch_init): Ditto.
8673 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8674 * frv-tdep.c (frv_gdbarch_init): Ditto.
8675 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8676 * cris-tdep.c (cris_gdbarch_init): Ditto.
8677 * avr-tdep.c (avr_gdbarch_init): Ditto.
8678 * arm-tdep.c (arm_gdbarch_init): Ditto.
8679 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8680 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8681 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8682 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8683 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8684 call_dummy_stack_adjust_p.
8685 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8686 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8687 * sparc-tdep.c (sparc32_push_arguments): Update.
8688 * valops.c (hand_function_call): Update.
8689
8690 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8691
8692 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8693 set_gdbarch_char_signed.
8694
8695 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8696
8697 PR cli/548
8698 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8699
8700 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8701
8702 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8703 (_initialize_arm_tdep): Don't set tm_print_insn.
8704
8705 2003-03-24 Adam Fedor <fedor@gnu.org>
8706
8707 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8708 * objc-lang.h: Add multiple inclusion protection.
8709 (start_msglist, add_msglist, end_msglist): Additional declarations.
8710
8711 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8712
8713 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8714 value was renamed to ARM_FLOAT_SOFT_FPA.
8715
8716 2003-03-23 Andrew Cagney <cagney@redhat.com>
8717
8718 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8719 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8720 * gdbarch.h, gdbarch.c: Regenerate.
8721 * valops.c (hand_function_call): Update.
8722 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8723 * frame.c (legacy_saved_regs_this_id): Update.
8724 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8725 * dummy-frame.h: Update.
8726 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8727 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8728 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8729 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8730 * config/m68k/tm-sun3.h: Update.
8731 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8732 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8733 * x86-64-tdep.c (x86_64_init_abi): Update.
8734 * vax-tdep.c (vax_gdbarch_init): Update.
8735 * v850-tdep.c (v850_gdbarch_init): Update.
8736 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8737 * sh-tdep.c (sh_gdbarch_init): Update.
8738 * s390-tdep.c (s390_gdbarch_init): Update.
8739 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8740 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8741 (frame_get_saved_regs): Update.
8742 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8743 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8744 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8745 * mips-tdep.c (mips_gdbarch_init): Update.
8746 * mcore-tdep.c (mcore_gdbarch_init): Update.
8747 * m68k-tdep.c (m68k_gdbarch_init): Update.
8748 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8749 * ia64-tdep.c (ia64_gdbarch_init): Update.
8750 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8751 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8752 (i386_interix_back_one_frame): Update.
8753 * hppa-tdep.c (hppa_gdbarch_init): Update.
8754 (hppa_init_extra_frame_info): Update.
8755 * h8300-tdep.c (h8300_gdbarch_init): Update.
8756 * frv-tdep.c (frv_gdbarch_init): Update.
8757 * cris-tdep.c (cris_gdbarch_init): Update.
8758 * avr-tdep.c (avr_gdbarch_init): Update.
8759 * arm-tdep.c (arm_gdbarch_init): Update.
8760 * alpha-tdep.c (alpha_gdbarch_init): Update.
8761
8762 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8763
8764 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8765 (arm_get_fp_model): Declare.
8766 * arm-tdep.c (fp_model_strings): New string array.
8767 (arm_fp_model, current_fp_model): New variables.
8768 (arm_get_fp_model): New function.
8769 (arm_set_fp): New function.
8770 (set_fp_model_sfunc): New function.
8771 (show_fp_model): New function.
8772 (_initialize_arm_tdep): Add new command to set/show the FPU.
8773 (arm_extract_return_value): Use arm_get_fp_model.
8774 (arm_store_return_value): Likewise.
8775 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8776 to initialize the floating-point data types.
8777 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8778 model is FPA.
8779
8780 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8781
8782 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8783 the current setting of each value.
8784 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8785 new_set and new_show. Use add_setshow_cmd_full and
8786 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8787 commands and add new version as subcommands of "set/show arm".
8788
8789 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8790
8791 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8792 (set_arm_command, show_arm_command): New functions.
8793 (_initialize_arm_tdep): Add them.
8794 (num_disassembly_options): Renamed from num_flavor_options.
8795 (valid_disassembly_styles): Renamed from valid_flavors.
8796 (disassembly_style): Renamed from disassembly_flavor.
8797 (set_disassembly_style_sfunc): Renamed from
8798 set_disassembly_flavor_sfunc.
8799 (set_disassembly_style): Renamed from set_disassembly_flavor.
8800 (arm_othernames): Updated.
8801 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8802 command. Add "set/show arm disassembly" commands. Deprecate
8803 "othernames" command.
8804
8805 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8806
8807 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8808 (arm-tdep.o): Depend on elf_arm_h.
8809
8810 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8811
8812 * Makefile.in (coff_internal_h): Define.
8813 (arm-tdep.o): Update dependencies.
8814
8815 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8816
8817 * arm-tdep.c (prologue_cache): Delete.
8818 (check_prologue_cache, save_prologue_cache): Delete.
8819 (arm_scan_prologue): Don't check or update the prologue_cache.
8820 (arm_gdb_arch_init): Don't initialize it.
8821 (_initialize_arm_tdep): Likewise.
8822
8823 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8824
8825 * MAINTAINERS (tui): Maintainer of tui code.
8826
8827 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8828
8829 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8830 (i386-cygwin-tdep.o): Add dependencies.
8831 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8832 * i386-cygwin-tdep.c: New file.
8833 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8834 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8835
8836 2003-03-20 Andrew Cagney <cagney@redhat.com>
8837
8838 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8839 (handle_inferior_event): Remove code calling
8840 DYNAMIC_TRAMPOLINE_NEXTPC.
8841
8842 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8843 already has a full path.
8844
8845 * main.c (gdb_main): Return 1.
8846 (captured_main): Call error to report an invalid interpreter.
8847
8848 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8849 * alpha-osf1-tdep.c: Include "gdb_string.h".
8850
8851 2003-03-19 J. Brobecker <brobecker@gnat.com>
8852
8853 Continuing work to convert the hppa targets to multiarch partial.
8854
8855 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8856 method, now that hppa_push_dummy_frame has a conformant prototype.
8857 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8858 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8859 for the switch to multiarch partial.
8860
8861 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8862
8863 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8864 when iss is issNull.
8865
8866 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8867
8868 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8869 NUM_REGS bounds check.
8870
8871 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8872
8873 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8874 * mips-tdep.c (gdb_assert.h): Include.
8875 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8876 (mips_register_name): Handle integer registers explicitly. Add
8877 bounds checking.
8878 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8879 (mips_lsi33k_reg_names): Don't list integer registers; they're
8880 handled by mips_register_name() now.
8881 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8882 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8883 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8884 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8885 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8886
8887 2003-03-18 Andrew Cagney <cagney@redhat.com>
8888
8889 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8890 a void pointer.
8891 * gdbtypes.h (print_scalar_formatted): Update declaration.
8892 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8893
8894 2003-03-18 J. Brobecker <brobecker@gnat.com>
8895
8896 * infrun.c (observer.h): Add #include.
8897 (normal_stop): Add call to observer_notify_normal_stop.
8898 * Makefile.in (infrun.o): Add dependency on observer.h.
8899
8900 2003-03-18 J. Brobecker <brobecker@gnat.com>
8901
8902 Continuing work to convert the hppa targets to multiarch partial.
8903 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8904 parameter. Reformat comment.
8905 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8906 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8907 to match new profile.
8908
8909 2003-03-18 J. Brobecker <brobecker@gnat.com>
8910
8911 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8912 appear to be working in any case.
8913
8914 2003-03-18 J. Brobecker <brobecker@gnat.com>
8915
8916 * observer.c (observer_test_first_observer): New static variable.
8917 (observer_test_second_observer): Likewise.
8918 (observer_test_third_observer): Likewise.
8919 (observer_test_first_notification_function): New static function.
8920 (observer_test_second_notification_function): Likewise.
8921 (observer_test_third_notification_function): Likewise.
8922
8923 2003-03-17 J. Brobecker <brobecker@gnat.com>
8924
8925 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8926 * somsolib.c (gdb_assert.h): Likewise.
8927 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8928 (somsolib.o): Likewise.
8929
8930 2003-03-17 Andrew Cagney <cagney@redhat.com>
8931
8932 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8933 BFD. Simplify setting of di.endian.
8934
8935 2003-03-17 Andrew Cagney <cagney@redhat.com>
8936
8937 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8938 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8939
8940 From Elena Zannoni <ezannoni@redhat.com>
8941 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8942 vector and floating-point parameters.
8943 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8944 convention.
8945 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8946
8947 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8948
8949 * MAINTAINERS: Remove my name from several maintainership roles.
8950
8951 2003-03-17 Andrew Cagney <cagney@redhat.com>
8952
8953 Fix frame off-by-one bug.
8954 * frame-unwind.h (frame_this_id_ftype): Replace
8955 frame_unwind_id_ftype.
8956 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8957 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8958 with "prev_register".
8959 * frame-unwind.c (frame_unwind_find_by_pc): Return
8960 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8961 comment.
8962 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8963 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8964 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8965 (dummy_frame_unwind): Update.
8966 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8967 sentinel_frame_register_unwind.
8968 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8969 (sentinel_frame_unwinder): Update.
8970 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8971 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8972 * frame.c (create_sentinel_frame): Update. Initialize
8973 "prologue_cache" instead of "unwind_cache".
8974 (frame_register_unwind): Call this frame's prev_register with the
8975 next frame and this frame's prologue cache.
8976 (get_prev_frame): Simplify. Always call prev frame's this_id with
8977 this frame and prev frame's prologue cache. Document that this
8978 call is shifted one to the left when compared to the
8979 frame_register_unwind call.
8980 (legacy_saved_regs_prev_register): Replace
8981 frame_saved_regs_register_unwind.
8982 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8983 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8984 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8985 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8986 (d10v_frame_unwind): Update.
8987 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8988 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8989 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8990 "saved_regs" with "this_saved_regs".
8991
8992 2003-03-16 Andrew Cagney <cagney@redhat.com>
8993
8994 * frame.c (frame_pop): Don't call target_store_registers. Fix
8995 problem reported by Mark Kettenis.
8996
8997 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8998
8999 * i386-tdep.c (i386_register_type): Renamed from
9000 i386_register_virtual_type. Adjust function signature.
9001 (i386_gdbarch_init): Set register_type instead of
9002 deprecated_max_register_raw_size,
9003 deprecated_max_register_virtual_size and register_virtual_type.
9004
9005 2003-03-14 Andrew Cagney <cagney@redhat.com>
9006
9007 * frame.c (get_prev_frame): When a legacy frame, always call
9008 legacy_get_prev_frame. Simplify unwind code using assumption that
9009 the unwinder is new.
9010 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9011 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9012 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9013
9014 2003-03-14 Andrew Cagney <cagney@redhat.com>
9015
9016 * frame.c (get_saved_register): Delete function.
9017 * frame.h (get_saved_register): Delete declaration.
9018 * xstormy16-tdep.c: Update comment.
9019 * regcache.h: Update comments.
9020 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9021 get_saved_register and extract_address, use
9022 frame_read_unsigned_register.
9023 (sparc_frame_saved_pc): Ditto.
9024 (sparc_get_saved_register): Instead of get_saved_register, use
9025 frame_register.
9026 (sparc_pop_frame): Ditto.
9027 * findvar.c: Update comments.
9028 (value_of_register): Call frame_register instead of
9029 get_saved_register.
9030 (value_from_register): Ditto.
9031 * config/sparc/tm-sparc.h: Update comment.
9032 * breakpoint.c: Update comment.
9033
9034 2003-03-14 Andrew Cagney <cagney@redhat.com>
9035
9036 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9037 GET_SAVED_REGISTER.
9038 * gdbarch.h, gdbarch.c: Re-generate.
9039 * frame.h: Update comments.
9040 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9041 * x86-64-tdep.c (x86_64_init_abi): Update.
9042 * sparc-tdep.c (sparc_gdbarch_init): Update.
9043 * sh-tdep.c (sh_gdbarch_init): Update.
9044 * mips-tdep.c (mips_gdbarch_init): Update.
9045 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9046 * cris-tdep.c (cris_gdbarch_init): Update.
9047 * ia64-tdep.c (ia64_gdbarch_init): Update.
9048 * frame.c (frame_register): Update.
9049 (get_saved_register): Update.
9050 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9051
9052 2003-03-13 Andrew Cagney <cagney@redhat.com>
9053
9054 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9055 * gdbarch.h, gdbarch.c: Regenerate.
9056 * valops.c (hand_function_call): Update comment.
9057 * stack.c (return_command): Update comment.
9058 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9059 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9060 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9061 * x86-64-tdep.c (x86_64_init_abi): Update.
9062 * vax-tdep.c (vax_gdbarch_init): Update.
9063 * v850-tdep.c (v850_gdbarch_init): Update.
9064 * sparc-tdep.c (sparc_gdbarch_init): Update.
9065 * sh-tdep.c (sh_gdbarch_init): Update.
9066 * s390-tdep.c (s390_gdbarch_init): Update.
9067 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9068 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9069 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9070 * mips-tdep.c (mips_gdbarch_init): Update.
9071 * mcore-tdep.c (mcore_gdbarch_init): Update.
9072 * m68k-tdep.c (m68k_gdbarch_init): Update.
9073 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9074 * ia64-tdep.c (ia64_gdbarch_init): Update.
9075 * i386-tdep.c (i386_gdbarch_init): Update.
9076 * hppa-tdep.c (hppa_gdbarch_init): Update.
9077 * h8300-tdep.c (h8300_gdbarch_init): Update.
9078 * frv-tdep.c (frv_gdbarch_init): Update.
9079 * cris-tdep.c (cris_gdbarch_init): Update.
9080 * avr-tdep.c (avr_gdbarch_init): Update.
9081 * arm-tdep.c (arm_gdbarch_init): Update.
9082 * alpha-tdep.c (alpha_gdbarch_init): Update.
9083
9084 2003-03-13 Andrew Cagney <cagney@redhat.com>
9085
9086 * frame.c (legacy_frame_p): New function.
9087 (get_prev_frame): Use legacy_frame_p.
9088 * frame.h (legacy_frame_p): Declare.
9089
9090 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9091
9092 * MAINTAINERS (write after approval): Alphabetically
9093 listing corrected.
9094
9095 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9096
9097 * MAINTAINERS (write after approval): Add myself.
9098
9099 2003-03-12 Andrew Cagney <cagney@redhat.com>
9100
9101 * frame.c (get_prev_frame): Rename the frame parameter to
9102 "this_frame".
9103 (get_next_frame, legacy_get_prev_frame): Ditto.
9104
9105 2003-03-12 Andrew Cagney <cagney@redhat.com>
9106
9107 * frame.c (get_current_frame): Check target_has_registers before
9108 checking target_has_stack.
9109 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9110 instead of deprecated_selected_frame.
9111 * findvar.c (value_of_register): Pass "frame", not
9112 deprecated_selected_frame, to value_of_builtin_reg.
9113
9114 2003-03-12 Andrew Cagney <cagney@redhat.com>
9115
9116 * regcache.c (regcache_cooked_write_signed): New function.
9117 (regcache_cooked_write_unsigned): New function.
9118 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9119 (regcache_cooked_read_signed): Fix regnum in range assertion.
9120 * regcache.h (regcache_cooked_write_signed): Declare.
9121 (regcache_cooked_write_unsigned): Declare.
9122
9123 2003-03-12 Andrew Cagney <cagney@redhat.com>
9124
9125 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9126 * gdbarch.h, gdbarch.c: Re-generate.
9127 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9128 * x86-64-tdep.h: Update.
9129 * x86-64-tdep.c (x86_64_init_abi): Update.
9130 * v850-tdep.c (v850_gdbarch_init): Update.
9131 * sparc-tdep.c (sparc_gdbarch_init): Update.
9132 * sh-tdep.c (sh_gdbarch_init): Update.
9133 * s390-tdep.c (s390_gdbarch_init): Update.
9134 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9135 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9136 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9137 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9138 * mips-tdep.c (mips_gdbarch_init): Update.
9139 * mcore-tdep.c (mcore_gdbarch_init): Update.
9140 * m68k-tdep.c (m68k_gdbarch_init): Update.
9141 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9142 * ia64-tdep.c (ia64_gdbarch_init): Update.
9143 * i386-tdep.c (i386_gdbarch_init): Update.
9144 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9145 * hppa-tdep.c (hppa_gdbarch_init): Update.
9146 * h8300-tdep.c (h8300_gdbarch_init): Update.
9147 * frv-tdep.c (frv_gdbarch_init): Update.
9148 * cris-tdep.c (cris_gdbarch_init): Update.
9149 * avr-tdep.c (avr_gdbarch_init): Update.
9150 * arm-tdep.c (arm_gdbarch_init): Update.
9151 * alpha-tdep.c (alpha_gdbarch_init): Update.
9152 * sh-tdep.c (sh_init_extra_frame_info): Update.
9153 (sh64_init_extra_frame_info): Update.
9154 * ns32knbsd-nat.c (frame_num_args): Update.
9155 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9156 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9157 (xstormy16_frame_chain_valid): Update.
9158 * vax-tdep.c (vax_saved_pc_after_call): Update.
9159 * v850-tdep.c (v850_frame_chain): Update.
9160 (v850_pop_frame): Update.
9161 (v850_init_extra_frame_info): Update.
9162 * sparc-tdep.c (setup_arbitrary_frame): Update.
9163 * ns32k-tdep.c (umax_frame_num_args): Update.
9164 * s390-tdep.c (s390_pop_frame_regular): Update.
9165 * mn10300-tdep.c (mn10300_frame_chain): Update.
9166 (mn10300_pop_frame_regular): Update.
9167 (mn10300_init_extra_frame_info): Update.
9168 * mips-tdep.c (mips_init_frame_pc_first): Update.
9169 (mips_frame_chain): Update.
9170 (mips_pop_frame): Update.
9171 * mcore-tdep.c (mcore_frame_chain): Update.
9172 (mcore_pop_frame): Update.
9173 (mcore_init_extra_frame_info): Update.
9174 * arch-utils.c (init_frame_pc_default): Update.
9175 * m68k-tdep.c (isi_frame_num_args): Update.
9176 (delta68_frame_num_args): Update.
9177 (news_frame_num_args): Update.
9178 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9179 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9180 (alpha_frame_chain): Update.
9181 (alpha_pop_frame): Update.
9182 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9183 (hppa_init_extra_frame_info): Update.
9184 (hppa_frame_chain): Update.
9185 (hppa_frame_chain_valid): Update.
9186 * cris-tdep.c (cris_init_extra_frame_info): Update.
9187 * avr-tdep.c (avr_init_extra_frame_info): Update.
9188 * arm-tdep.c (arm_frame_chain_valid): Update.
9189 (arm_init_extra_frame_info): Update.
9190 (arm_pop_frame): Update.
9191 * frame.c (frame_pc_unwind): Update.
9192 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9193 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9194 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9195 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9196 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9197 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9198
9199 2003-03-12 Andrew Cagney <cagney@redhat.com>
9200
9201 Eliminate the need for POP_FRAME.
9202 * frame.c (do_frame_unwind_register): New function.
9203 (frame_pop): When no POP_FRAME, pop the frame using register
9204 unwind and a scratch regcache.
9205 (frame_saved_regs_pop): Delete function.
9206 (trad_frame_unwinder): Update.
9207 * d10v-tdep.c (d10v_frame_pop): Delete function.
9208 (d10v_frame_unwind): Update.
9209 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9210 (sentinel_frame_unwinder): Update.
9211 * dummy-frame.c (dummy_frame_pop): Delete function.
9212 (dummy_frame_unwind): Update.
9213 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9214 (struct frame_unwind): Update.
9215
9216 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9217
9218 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9219 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9220 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9221 Do range checks on register number obtained from debugging info.
9222 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9223 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9224 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9225 mapping function.
9226 (do_fp_register_row): Fix typo which caused double type to be
9227 used when attempting to unpack a float.
9228
9229 2003-03-11 J. Brobecker <brobecker@gnat.com>
9230
9231 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9232
9233 2003-03-11 Andrew Cagney <cagney@redhat.com>
9234
9235 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9236 frame. Problem found by Corinna Vinschen.
9237
9238 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9239
9240 * doublest.c (floatformat_from_length): Accept also
9241 the real size of 'long double' type.
9242
9243 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9244
9245 From Klee Dienes <kdienes@apple.com>:
9246 * breakpoint.c (bpstat_copy): Copy the command lines as well
9247 as the old value, to match what is freed in bpstat_clear.
9248
9249 2003-03-10 David Carlton <carlton@math.stanford.edu>
9250
9251 * minsyms.c (add_minsym_to_hash_table): Replace
9252 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9253 (compare_minimal_symbols, compact_minimal_symbols)
9254 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9255 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9256 of DEPRECATED_SYMBOL_MATCHES_NAME.
9257 (lookup_minimal_symbol_solib_trampoline): Ditto.
9258
9259 2003-03-10 Andrew Cagney <cagney@redhat.com>
9260
9261 * regcache.h (regcache_cooked_read_ftype): Define.
9262 (regcache_save, regcache_restore): Add a cooked_read parameter.
9263 * regcache.c (regcache_save, regcache_restore): Update.
9264 (do_cooked_read): New function.
9265 (regcache_cpy): Pass do_cooked_read to regcache_save and
9266 regcache_restore.
9267
9268 2003-03-10 Andrew Cagney <cagney@redhat.com>
9269
9270 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9271 * gdbarch.h, gdbarch.c: Re-generate.
9272 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9273 * x86-64-tdep.h: Update.
9274 * x86-64-tdep.c (x86_64_init_abi): Update.
9275 * v850-tdep.c (v850_gdbarch_init): Update.
9276 * sparc-tdep.c (sparc_gdbarch_init): Update.
9277 * sh-tdep.c (sh_gdbarch_init): Update.
9278 * s390-tdep.c (s390_gdbarch_init): Update.
9279 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9280 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9281 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9282 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9283 * mips-tdep.c (mips_gdbarch_init): Update.
9284 * mcore-tdep.c (mcore_gdbarch_init): Update.
9285 * m68k-tdep.c (m68k_gdbarch_init): Update.
9286 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9287 * ia64-tdep.c (ia64_gdbarch_init): Update.
9288 * i386-tdep.c (i386_gdbarch_init): Update.
9289 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9290 * hppa-tdep.c (hppa_gdbarch_init): Update.
9291 * h8300-tdep.c (h8300_gdbarch_init): Update.
9292 * frv-tdep.c (frv_gdbarch_init): Update.
9293 * cris-tdep.c (cris_gdbarch_init): Update.
9294 * avr-tdep.c (avr_gdbarch_init): Update.
9295 * arm-tdep.c (arm_gdbarch_init): Update.
9296 * alpha-tdep.c (alpha_gdbarch_init): Update.
9297 * sh-tdep.c (sh_init_extra_frame_info): Update.
9298 (sh64_init_extra_frame_info): Update.
9299 * ns32knbsd-nat.c (frame_num_args): Update.
9300 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9301 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9302 (xstormy16_frame_chain_valid): Update.
9303 * vax-tdep.c (vax_saved_pc_after_call): Update.
9304 * v850-tdep.c (v850_frame_chain): Update.
9305 (v850_pop_frame): Update.
9306 (v850_init_extra_frame_info): Update.
9307 * sparc-tdep.c (setup_arbitrary_frame): Update.
9308 * ns32k-tdep.c (umax_frame_num_args): Update.
9309 * s390-tdep.c (s390_pop_frame_regular): Update.
9310 * mn10300-tdep.c (mn10300_frame_chain): Update.
9311 (mn10300_pop_frame_regular): Update.
9312 (mn10300_init_extra_frame_info): Update.
9313 * mips-tdep.c (mips_init_frame_pc_first): Update.
9314 (mips_frame_chain): Update.
9315 (mips_pop_frame): Update.
9316 * mcore-tdep.c (mcore_frame_chain): Update.
9317 (mcore_pop_frame): Update.
9318 (mcore_init_extra_frame_info): Update.
9319 * arch-utils.c (init_frame_pc_default): Update.
9320 * m68k-tdep.c (isi_frame_num_args): Update.
9321 (delta68_frame_num_args): Update.
9322 (news_frame_num_args): Update.
9323 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9324 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9325 (alpha_frame_chain): Update.
9326 (alpha_pop_frame): Update.
9327 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9328 (hppa_init_extra_frame_info): Update.
9329 (hppa_frame_chain): Update.
9330 (hppa_frame_chain_valid): Update.
9331 * cris-tdep.c (cris_init_extra_frame_info): Update.
9332 * avr-tdep.c (avr_init_extra_frame_info): Update.
9333 * arm-tdep.c (arm_frame_chain_valid): Update.
9334 (arm_init_extra_frame_info): Update.
9335 (arm_pop_frame): Update.
9336 * frame.c (frame_pc_unwind): Update.
9337 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9338 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9339 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9340 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9341 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9342 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9343
9344 2003-03-10 Andrew Cagney <cagney@redhat.com>
9345
9346 * gdbarch.sh (gdbarch_unwind_pc): New method.
9347 * gdbarch.h, gdbarch.c: Regenerate.
9348 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9349 but use read_pc and FRAME_SAVED_PC as fall backs.
9350 (frame_saved_regs_pc_unwind): Delete function.
9351 (trad_frame_unwinder): Update.
9352 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9353 (struct frame_unwind): Update.
9354 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9355 (dummy_frame_unwind): Update.
9356 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9357 (sentinel_frame_unwinder): Update.
9358 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9359 (d10v_frame_unwind): Update.
9360 (d10v_unwind_pc): New function.
9361 (d10v_gdbarch_init): Set unwind_pc.
9362
9363 2003-03-10 Andrew Cagney <cagney@redhat.com>
9364
9365 * gdbarch.h: Re-generate.
9366
9367 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9368 PC.
9369 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9370 the PC register.
9371
9372 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9373
9374 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9375
9376 2003-03-08 Andrew Cagney <cagney@redhat.com>
9377
9378 * cli-out.c: Update copyright.
9379 (cli_out_data): Define typedef. Use instead of ui_out_data.
9380
9381 2003-03-08 Andrew Cagney <cagney@redhat.com>
9382
9383 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9384 the result.
9385
9386 2003-03-07 Andrew Cagney <cagney@redhat.com>
9387
9388 * gdbarch.sh: Don't generate two macro definitions when an
9389 undefined macro taking no arguments.
9390 * gdbarch.h: Regenerate.
9391
9392 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9393
9394 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9395 (x86_64_unwind_dummy_id): New functions.
9396 (x86_64_init_abi): Register these two new functions.
9397
9398 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9399
9400 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9401 (x86_64_skip_prologue): Move prologue detection to
9402 separate function.
9403 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9404
9405 2003-03-05 Andrew Cagney <cagney@redhat.com>
9406
9407 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9408 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9409 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9410 to use unwind_dummy_id when a dummy frame.
9411 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9412 predicate.
9413 * gdbarch.h, gdbarch.c: Regneerate.
9414
9415 2003-03-05 Andrew Cagney <cagney@redhat.com>
9416
9417 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9418 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9419 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9420 values.
9421
9422 2003-03-05 Andrew Cagney <cagney@redhat.com>
9423
9424 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9425 (struct d10v_unwind_cache): Delete field "frameless". Replace
9426 "next_addr" with "sp_offset". Add "r11_offset".
9427 (d10v_frame_unwind_cache): Update.
9428 (prologue_find_regs): Update. When "mv r11, sp", save the
9429 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9430 RN was saved in r11_offset.
9431
9432 2003-03-05 Andrew Cagney <cagney@redhat.com>
9433
9434 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9435 cached PC value in the next frame.
9436
9437 2003-03-05 Andrew Cagney <cagney@redhat.com>
9438
9439 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9440 "id_unwind_cache" with "id".
9441 (frame_id_unwind): Delete declaration.
9442 * frame.c (frame_id_unwind): Delete function.
9443 (get_prev_frame): Call the frame id unwind method directly. Store
9444 the returned next frame's ID value in NEXT_FRAME. Note that there
9445 is a problem with the wrong unwind ID being called with the wrong
9446 unwind cache.
9447
9448 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9449
9450 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9451
9452 2003-03-05 James Ingham <jingham@apple.com>
9453 Daniel Jacobowitz <drow@mvista.com>
9454
9455 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9456 (auto_cp_abi): New variable.
9457 (current_cp_abi, num_cp_abis): Make static.
9458 (CP_ABI_MAX): Define.
9459 (cp_abis): Turn into an array.
9460 (value_virtual_fn_field): Fix formatting.
9461 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9462 takes a pointer.
9463 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9464 (list_cp_abis, _initialize_cp_abi): New functions.
9465 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9466 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9467 switch_to_cp_abi. Update prototype for register_cp_abi.
9468 * Makefile.in (cp-abi.o): Update dependencies.
9469 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9470 instead of switch_to_cp_abi.
9471 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9472 register_cp_abi.
9473 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9474 register_cp_abi.
9475 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9476
9477 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9478
9479 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9480 * dwarf2loc.c: Include "regcache.h".
9481 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9482 register_size.
9483 * Makefile.in (dwarf2loc.o): Update dependencies.
9484
9485 2003-03-04 Theodore A. Roth <troth@openavr.org>
9486
9487 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9488 number of io registers reported by remote target is not a multiple of
9489 step.
9490
9491 2003-03-04 David Carlton <carlton@math.stanford.edu>
9492
9493 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9494 (lookup_symbol_aux_psymtabs): Update call to
9495 lookup_partial_symbol.
9496 (lookup_transparent_type, find_main_psymtab)
9497 (make_symbol_overload_list): Ditto.
9498
9499 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9500
9501 * MAINTAINERS (Write after approval): Update my email address.
9502
9503 2003-03-03 Andrew Cagney <cagney@redhat.com>
9504
9505 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9506 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9507 predicate. Replace MAX_REGISTER_RAW_SIZE.
9508 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9509 MAX_REGISTER_VIRTUAL_SIZE.
9510 * regcache.c (legacy_max_register_raw_size): New function.
9511 (legacy_max_register_virtual_size): New function.
9512 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9513 (MAX_REGISTER_RAW_SIZE): Define.
9514 (legacy_max_register_raw_size): Declare.
9515 (legacy_max_register_virtual_size): Declare.
9516 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9517 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9518 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9519 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9520 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9521 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9522 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9523 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9524 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9525 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9526 * vax-tdep.c (vax_gdbarch_init): Update.
9527 * v850-tdep.c (v850_gdbarch_init): Update.
9528 * sparc-tdep.c (sparc_gdbarch_init): Update.
9529 * sh-tdep.c (sh_gdbarch_init): Update.
9530 * s390-tdep.c (s390_gdbarch_init): Update.
9531 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9532 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9533 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9534 * mips-tdep.c (mips_gdbarch_init): Update.
9535 * mcore-tdep.c (mcore_gdbarch_init): Update.
9536 * m68k-tdep.c (m68k_gdbarch_init): Update.
9537 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9538 * ia64-tdep.c (ia64_gdbarch_init): Update.
9539 * i386-tdep.c (i386_gdbarch_init): Update.
9540 * hppa-tdep.c (hppa_gdbarch_init): Update.
9541 * h8300-tdep.c (h8300_gdbarch_init): Update.
9542 * frv-tdep.c (frv_gdbarch_init): Update.
9543 * cris-tdep.c (cris_gdbarch_init): Update.
9544 * avr-tdep.c (avr_gdbarch_init): Update.
9545 * arm-tdep.c (arm_gdbarch_init): Update.
9546 * alpha-tdep.c (alpha_gdbarch_init): Update.
9547 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9548 max_register_raw_size or max_register_virtual_size.
9549
9550 2003-03-03 David Carlton <carlton@math.stanford.edu>
9551
9552 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9553 SYMBOL_MATCHES_NAME, add comment.
9554 (SYMBOL_MATCHES_NATURAL_NAME): New.
9555 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9556 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9557 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9558 * symtab.c (lookup_partial_symbol): Use
9559 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9560 unhelpful comment.
9561 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9562 SYMBOL_MATCHES_NAME.
9563 Fix for PR c++/33.
9564
9565 2003-03-03 David Carlton <carlton@math.stanford.edu>
9566
9567 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9568 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9569 by regexp matching against SYMBOL_NATURAL_NAME.
9570
9571 2003-03-03 David Carlton <carlton@math.stanford.edu>
9572
9573 * linespec.c (find_method): Extract code into collect_methods.
9574 (collect_methods): New.
9575
9576 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9577
9578 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9579 get_frame_base.
9580
9581 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9582 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9583
9584 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9585
9586 * arch-utils.c (generic_register_byte): Fix to use the loop index
9587 and not regnum when summing the size of all registers up to regnum.
9588
9589 2003-03-01 Andrew Cagney <cagney@redhat.com>
9590
9591 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9592 FRAME_INIT_SAVED_REGS.
9593 * gdbarch.h, gdbarch.c: Regenerate.
9594 * stack.c (frame_info): Update.
9595 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9596 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9597 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9598 * ns32k-tdep.c (ns32k_pop_frame): Update.
9599 * mips-tdep.c (mips_pop_frame): Update.
9600 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9601 * ia64-tdep.c (ia64_frame_chain): Update.
9602 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9603 (ia64_frameless_function_invocation): Update.
9604 (ia64_init_extra_frame_info): Update.
9605 (ia64_pop_frame_regular): Update.
9606 * frame.h (struct frame_info): Update comment.
9607 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9608 * frame.c (frame_saved_regs_register_unwind): Update.
9609 (frame_saved_regs_register_unwind): Update.
9610 (deprecated_generic_get_saved_register): Update.
9611 * cris-tdep.c: Update comment.
9612 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9613 Rename macro.
9614 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9615 * x86-64-tdep.c (x86_64_init_abi): Update.
9616 * vax-tdep.c (vax_gdbarch_init): Update.
9617 * v850-tdep.c (v850_gdbarch_init): Update.
9618 * sparc-tdep.c (sparc_gdbarch_init): Update.
9619 * sh-tdep.c (sh_gdbarch_init): Update.
9620 * s390-tdep.c (s390_gdbarch_init): Update.
9621 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9622 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9623 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9624 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9625 * mips-tdep.c (mips_gdbarch_init): Update.
9626 * mcore-tdep.c (mcore_gdbarch_init): Update.
9627 * m68k-tdep.c (m68k_gdbarch_init): Update.
9628 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9629 * ia64-tdep.c (ia64_gdbarch_init): Update.
9630 * i386-tdep.c (i386_gdbarch_init): Update.
9631 * frv-tdep.c (frv_gdbarch_init): Update.
9632 * avr-tdep.c (avr_gdbarch_init): Update.
9633 * arm-tdep.c (arm_gdbarch_init): Update.
9634 * alpha-tdep.c (alpha_gdbarch_init): Update.
9635
9636 2003-03-01 Andrew Cagney <cagney@redhat.com>
9637
9638 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9639 option enum and switch. When no windows, set the interpreter to
9640 INTERP_CONSOLE.
9641
9642 2003-03-01 Andrew Cagney <cagney@redhat.com>
9643
9644 * main.c (captured_main): Replace magic option characters with an
9645 enum.
9646
9647 2003-03-01 Andrew Cagney <cagney@redhat.com>
9648
9649 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9650 INIT_EXTRA_FRAME_INFO.
9651 * gdbarch.h, gdbarch.c: Regenerate.
9652 * arm-tdep.c: Update comments.
9653 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9654 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9655 * frame.h, avr-tdep.c: Ditto.
9656 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9657 (create_new_frame, legacy_get_prev_frame): Ditto.
9658 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9659 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9660 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9661 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9662 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9663 * v850-tdep.c (v850_gdbarch_init): Ditto.
9664 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9665 * sh-tdep.c (sh_gdbarch_init): Ditto.
9666 * s390-tdep.c (s390_gdbarch_init): Ditto.
9667 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9668 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9669 * mips-tdep.c (mips_gdbarch_init): Ditto.
9670 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9671 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9672 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9673 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9674 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9675 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9676 * frv-tdep.c (frv_gdbarch_init): Ditto.
9677 * cris-tdep.c (cris_gdbarch_init): Ditto.
9678 * avr-tdep.c (avr_gdbarch_init): Ditto.
9679 * arm-tdep.c (arm_gdbarch_init): Ditto.
9680 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9681 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9682
9683 2003-03-01 Andrew Cagney <cagney@redhat.com>
9684
9685 * gdbarch.sh (register_type): New function with predicate.
9686 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9687 * gdbarch.h, gdbarch.c: Re-generate.
9688 * arch-utils.c (generic_register_byte): Use generic_register_size.
9689 (generic_register_size): When available, use
9690 gdbarch_register_type.
9691 * regcache.c (init_regcache_descr): When available, initialize the
9692 register type array using gdbarch_register_type. If the
9693 architecture supplies gdbarch_register_type, do not use the legacy
9694 regcache layout.
9695 * d10v-tdep.c (d10v_register_type): Replace
9696 d10v_register_virtual_type.
9697 (d10v_gdbarch_init): Set register_type instead of
9698 register_virtual_type.
9699
9700 2003-03-01 Andrew Cagney <cagney@redhat.com>
9701
9702 * Makefile.in (ax-gdb.o): Update dependencies.
9703 * ax-gdb.c: Include "regcache.h".
9704 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9705 * findvar.c (value_of_register): Ditto.
9706 * infcmd.c (default_print_registers_info): Ditto.
9707
9708 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9709
9710 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9711 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9712
9713 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9714
9715 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9716 of STREQ.
9717
9718 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9719
9720 * Makefile.in (dwarf2loc.o): Update dependencies.
9721 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9722 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9723 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9724 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9725 (locexpr_tracepoint_var_ref): New function.
9726 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9727
9728 2003-02-28 Andrew Cagney <cagney@redhat.com>
9729
9730 * regcache.c (register_size): New function.
9731 * regcache.h (register_size): Declare
9732 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9733 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9734
9735 2003-02-28 David Carlton <carlton@math.stanford.edu>
9736
9737 * linespec.c (decode_compound): Extract code into find_method.
9738 (find_method): New.
9739
9740 2003-02-28 J. Brobecker <brobecker@gnat.com>
9741
9742 * Makefile.in: Add rules to build and link in observer.o.
9743
9744 2003-02-27 J. Brobecker <brobecker@gnat.com>
9745
9746 * observer.c: Minor comments edits.
9747
9748 2003-02-27 J. Brobecker <brobecker@gnat.com>
9749
9750 * observer.h, observer.c: New file.
9751
9752 2003-02-27 Andrew Cagney <cagney@redhat.com>
9753
9754 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9755
9756 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9757
9758 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9759 (M6812_OP_STS_EXT): Likewise.
9760 (m6811_prologue): Use the above to recognize prologue.
9761 (m6812_prologue): Likewise.
9762
9763 2003-02-27 David Carlton <carlton@math.stanford.edu>
9764
9765 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9766 SYMBOL_PRINT_NAME.
9767 (compare_psymbols): Ditto.
9768 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9769
9770 2003-02-27 Michael Snyder <msnyder@redhat.com>
9771
9772 * f-lang.c (build_fortran_types): New function.
9773 (_initialize_f_language): Gdbarch-register built-in fortran types.
9774 * doublest.c (extract_floating): Fix warning text.
9775
9776 2003-02-27 Andrew Cagney <cagney@redhat.com>
9777
9778 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9779 predicate. Replaces PUSH_DUMMY_FRAME.
9780 * gdbarch.h, gdbarch.c: Regnerate.
9781 * valops.c (hand_function_call): Update. Call
9782 generic_push_dummy_frame directly.
9783 * vax-tdep.c (vax_gdbarch_init): Update.
9784 * sparc-tdep.c (sparc_gdbarch_init): Update.
9785 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9786 * m68k-tdep.c (m68k_gdbarch_init): Update.
9787 * hppa-tdep.c (hppa_gdbarch_init): Update.
9788 * alpha-tdep.c (alpha_gdbarch_init): Update.
9789 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9790 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9791 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9792 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9793 push_dummy_frame to generic_push_dummy_frame.
9794 * v850-tdep.c (v850_gdbarch_init): Ditto.
9795 * sh-tdep.c (sh_gdbarch_init): Ditto.
9796 * s390-tdep.c (s390_gdbarch_init): Ditto.
9797 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9798 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9799 * mips-tdep.c (mips_gdbarch_init): Ditto.
9800 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9801 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9802 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9803 * i386-tdep.c (i386_gdbarch_init): Ditto.
9804 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9805 * frv-tdep.c (frv_gdbarch_init): Ditto.
9806 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9807 * cris-tdep.c (cris_gdbarch_init): Ditto.
9808 * avr-tdep.c (avr_gdbarch_init): Ditto.
9809 * arm-tdep.c (arm_gdbarch_init): Ditto.
9810
9811 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9812
9813 * mips-tdep.c (show_mips_abi): New function.
9814 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9815 command ``show mips abi''.
9816
9817 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9818
9819 From Elena Zannoni <ezannoni@redhat.com>
9820 * dbxread.c (process_one_symbol): Only record line 0 if one or
9821 more sline entries have been seen for the function.
9822
9823 2003-02-26 Michael Chastain <mec@shout.net>
9824
9825 * configure: Regenerate with autoconf 000227.
9826
9827 2003-02-26 Michael Chastain <mec@shout.net>
9828
9829 Close PR build/660.
9830 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9831 for old libc5/glibc.
9832 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9833
9834 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9835
9836 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9837 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9838
9839 2003-02-26 Michael Chastain <mec@shout.net>
9840
9841 * configure.in: New variable HAVE_UINTPTR_T.
9842 * configure, config.in: Regenerated.
9843
9844 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9845
9846 Fix PR build/1097.
9847 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9848
9849 2003-02-25 Andrew Cagney <cagney@redhat.com>
9850
9851 * frame.c (get_prev_frame): Add comment on check for
9852 inside_entry_func. Only check for inside_entry_file when not a
9853 dummy and not a sentinel. Check that the new frame is not inner
9854 to the old frame.
9855
9856 2003-02-25 Andrew Cagney <cagney@redhat.com>
9857
9858 * frame.c (frame_debug): New variable.
9859 (_initialize_frame): Add "set/show debug frame" command.
9860 (get_prev_frame): When frame_debug, print reason why unwind
9861 failed.
9862
9863 2003-02-25 Michael Chastain <mec@shout.net>
9864
9865 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9866 to avoid uintptr_t definition problems.
9867
9868 2003-02-25 David Carlton <carlton@math.stanford.edu>
9869
9870 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9871 (SYMBOL_LINKAGE_NAME): Ditto.
9872 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9873 SYMBOL_LINKAGE_NAME.
9874 (struct general_symbol_info): Expand comment.
9875 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9876 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9877 (SYMBOL_MATCHES_REGEXP): Ditto.
9878 * symtab.c (symbol_natural_name): New function.
9879 * objfiles.h: Replace all uses of SYMBOL_NAME by
9880 DEPRECATED_SYMBOL_NAME.
9881 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9882 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9883 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9884 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9885 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9886 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9887 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9888 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9889 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9890 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9891 * ada-exp.y: Ditto.
9892 * ada-exp.y: Update copyright.
9893 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9894 * cp-valprint.c: Ditto.
9895
9896 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9897
9898 * infptrace.c (detach): Do not flag error if ptrace detach fails
9899 and errno is set to ESRCH.
9900
9901 2003-02-24 Andrew Cagney <cagney@redhat.com>
9902
9903 * infptrace.c (udot_info): Change type of udot_off to long. Use
9904 paddr when printing udot_off's value.
9905
9906 2003-02-24 David Carlton <carlton@math.stanford.edu>
9907
9908 * symtab.c (make_symbol_overload_list): Only read in partial
9909 symtabs containing a matching partial symbol.
9910
9911 2003-02-24 David Carlton <carlton@math.stanford.edu>
9912
9913 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9914 do the comparison, not strcmp.
9915 * symfile.c (compare_psymbols): Ditto.
9916 * defs.h: Declare strcmp_iw_ordered.
9917 * utils.c (strcmp_iw_ordered): New function.
9918
9919 2003-02-24 Jim Blandy <jimb@redhat.com>
9920
9921 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9922 support, shared libs): Remove my name from here, to better reflect
9923 reality.
9924
9925 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9926
9927 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9928 (target_ops): Add to_have_continuable_watchpoint.
9929 * target.c (update_current_target): Add INHERIT line for
9930 to_have_continuable_watchpoint.
9931 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9932 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9933 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9934 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9935
9936 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9937
9938 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9939 maintainership.
9940
9941 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9942
9943 * solib.c (solib_open): Call target defined search function after
9944 failing with solib-search-path.
9945 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9946 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9947
9948 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9949
9950 * MAINTAINERS: Add myself to Write After section.
9951
9952 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9953
9954 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9955
9956 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9957
9958 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9959 (m68hc11_add_reggroups): New function.
9960 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9961 (m68hc11_gdbarch_init): Install the reggroups.
9962 (_initialize_m68hc11_tdep): Initialize them.
9963
9964 2003-02-21 James E Wilson <wilson@tuliptree.org>
9965
9966 * MAINTAINERS: Update my email address.
9967
9968 2003-02-21 David Carlton <carlton@math.stanford.edu>
9969
9970 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9971
9972 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9973
9974 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9975 * symtab.h: Add opaque declarations of struct axs_value and
9976 struct agent_expr.
9977 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9978 (struct location_funcs): New type.
9979 (struct symbol): Add "loc" to aux_value.
9980 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9981 * dwarf2read.c: Include "dwarf2expr.h".
9982 (dwarf2_symbol_mark_computed): New function.
9983 (read_func_scope): Use it.
9984 (var_decode_location): New function.
9985 (new_symbol): Use it.
9986 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9987
9988 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9989 (dwarf2expr_h, dwarf2loc_h): New variables.
9990 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9991 (dwarf2expr.o, dwarf2loc.o): New rules.
9992 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9993 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9994 LOC_COMPUTED_ARG.
9995 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9996 * m2-exp.y (yylex): Likewise.
9997 * printcmd.c (address_info, print_frame_args): Likewise.
9998 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9999 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10000 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10001 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10002 * symtab.c (lookup_block_symbol): Likewise.
10003
10004 2003-02-20 Adam Fedor <fedor@gnu.org>
10005
10006 * symtab.h: Remove objc_specific struct
10007 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10008 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10009 Have language_objc use cplus_specific struct.
10010
10011 2003-02-20 Tom Tromey <tromey@redhat.com>
10012
10013 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10014 TYPE_NAME, when printing a String value. PR java/1075.
10015
10016 2003-02-20 Adam Fedor <fedor@gnu.org>
10017
10018 * objc-lang.h (find_methods): Remove declaration.
10019 * objc-lang.c (find_methods): Make static.
10020
10021 2003-02-20 Christopher Faylor <cgf@redhat.com>
10022
10023 * win32-nat.c (get_image_name): Check return value from
10024 ReadProcessMemory.
10025 (child_xfer_memory): Ditto.
10026
10027 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10028
10029 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10030 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10031 '${exec_prefix}' (in addition to the expansion thereof) as
10032 relocatable.
10033 * configure: Rebuilt.
10034
10035 2003-02-20 David Carlton <carlton@math.stanford.edu>
10036
10037 * symtab.c (search_symbols): Revert the search_symbols part of my
10038 2002-12-23 patch. Add comment.
10039
10040 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10041
10042 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10043 * dbxread.c (elfstab_build_psymtabs): Don't call
10044 install_minimal_symbols.
10045 (stabsect_build_psymtabs): Likewise.
10046 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10047 earlier.
10048 * somread.c (som_symfile_read): Call install_minimal_symbols
10049 and do_cleanups earlier.
10050 * nlmread.c (nlm_symfile_read): Likewise.
10051 * mdebugread.c (elfmdebug_build_psymtabs): Call
10052 install_minimal_symbols and make appropriate cleanups.
10053
10054 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10055
10056 * solib.c (reload_shared_libraries): New function.
10057 (_initialize_solib): Add callbacks for ``set solib-search-path''
10058 and ``set solib-absolute-prefix''.
10059
10060 2003-02-20 David Carlton <carlton@math.stanford.edu>
10061
10062 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10063 expand comment.
10064 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10065 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10066 * ada-typeprint.c (ada_typedef_print): Ditto.
10067 * ax-gdb.c (gen_var_ref): Ditto.
10068 * breakpoint.c (print_one_breakpoint): Ditto.
10069 * buildsym.c (finish_block): Ditto.
10070 * c-valprint.c (c_val_print): Ditto.
10071 * expprint.c (print_subexp): Ditto.
10072 * findvar.c (locate_var_value): Ditto.
10073 * infcmd.c (jump_command): Ditto.
10074 * linespec.c (decode_line_2, decode_compound): Ditto.
10075 * maint.c (maintenance_translate_address): Ditto.
10076 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10077 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10078 Ditto.
10079 * p-valprint.c (pascal_val_print): Ditto.
10080 * stabsread.c (define_symbol): Ditto.
10081 * stack.c (print_frame, frame_info, print_block_frame_locals)
10082 (print_frame_arg_vars, return_command): Ditto.
10083 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10084 * symmisc.c (print_symbol): Ditto.
10085 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10086 (compare_search_syms, print_symbol_info, print_msymbol_info)
10087 (rbreak_command): Ditto.
10088 * tracepoint.c (tracepoints_info): Ditto.
10089 * typeprint.c (typedef_print): Ditto.
10090 * valops.c (value_of_variable, hand_function_call): Ditto.
10091 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10092 * ada-typeprint.c: Update Copyright.
10093 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10094 * tracepoint.c, cli/cli-cmds.c: Ditto.
10095
10096 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10097
10098 * frame.c (generic_unwind_get_saved_register): Make non-static.
10099 * frame.h (generic_unwind_get_saved_register): Declare.
10100 * mips-tdep.c (read_next_frame_reg): Fetch register from
10101 current regcache when frame is NULL.
10102 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10103 that must be NULL.
10104 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10105 instead of frame_register_unwind().
10106
10107 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10108
10109 * remote-sim.c (gdbsim_insert_breakpoint)
10110 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10111 code.
10112
10113 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10114
10115 * remote.c (_initialize_remote): Add commands "set/show remote
10116 hardware-watchpoint-limit" and "set/show remote
10117 hardware-breakpoint-limit".
10118 (remote_hw_watchpoint_limit): Initialize to -1.
10119 (remote_hw_breakpoint_limit): Ditto.
10120 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10121
10122 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10123
10124 * coff-pe-read.c: New file - support reading of minimal symbols from a
10125 portable executable using the export table.
10126 * coff-pe-read.h: New file.
10127 * coffread.c: Include coff-pe-read.h.
10128 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10129 debugging symbols found.
10130 * Makefile.in (SFILES): Add coff-pe-read.o.
10131 (coff_pe_read_h): Define.
10132 (COMMON_OBS): Add coff-pe-read.o.
10133 (coffread.o): Add coff_pe_read_h dependency.
10134 (coff-pe-read.o): New target.
10135
10136 2003-02-19 David Carlton <carlton@math.stanford.edu>
10137
10138 * Makefile.in (SFILES): Add block.c.
10139 (block_h): New.
10140 (COMMON_OBS): Add block.o.
10141 (block.o): New.
10142 (x86-64-tdep.o): Add $(block_h).
10143 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10144 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10145 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10146 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10147 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10148 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10149 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10150 * value.h: Add opaque declaration for struct block.
10151 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10152 * ada-lang.h: Ditto.
10153 * x86-64-tdep.c: #include "block.h"
10154 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10155 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10156 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10157 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10158 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10159 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10160 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10161 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10162 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10163 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10164 * symtab.c (block_function): Ditto.
10165 (contained_in): Ditto.
10166 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10167 block.h. Add opaque declaration for struct block.
10168 * symtab.h: Move block_function and contained_in declarations to
10169 block.h. Add opaque declarations for struct block, struct
10170 blockvector.
10171 (struct block): Move to block.h.
10172 (struct blockvector): Ditto.
10173 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10174 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10175 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10176 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10177 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10178 Ditto.
10179 * block.c: New file.
10180 * block.h: New file.
10181
10182 2003-02-19 Theodore A. Roth <troth@openavr.org>
10183
10184 * avr-tdep.c (avr_extract_return_value): Remove function.
10185 (avr_store_return_value): Remove function.
10186 (avr_extract_struct_value_address): Remove function.
10187 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10188
10189 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10190
10191 * rs6000-tdep.c: Include "gdb_assert.h".
10192 (registers_e500): Add "acc" and "spefscr".
10193 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10194 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10195 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10196 really is "r0".
10197 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10198
10199 2003-02-18 Keith Seitz <keiths@redhat.com>
10200
10201 * Makefile.in: Add gdbtk-interps.c.
10202
10203 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10204
10205 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10206 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10207
10208 2003-02-18 Andrew Cagney <cagney@redhat.com>
10209
10210 * symtab.h (struct objfile): Add opaque declaration.
10211
10212 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10213
10214 From Jim Ingham <jingham@apple.com>:
10215 * dbxread.c (process_one_symbol): Use last_function_start rather
10216 than function_start_offset to find the real beginning of the
10217 current function. The latter is just the text section offset on
10218 some systems, the former is always the real function start.
10219
10220 2003-02-17 Andrew Cagney <cagney@redhat.com>
10221
10222 * configure.in: Revert ${target} != ${host}.
10223
10224 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10225
10226 * configure.in (Makefile): Use the test ${target} != ${host},
10227 instead of the absence of the "nm.h" file, to determine of the
10228 configuration non-native.
10229 * configure: Regenerate.
10230
10231 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10232
10233 From Brian Ford <ford@vss.fsi.com>
10234
10235 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10236 conditionalize tui_active test.
10237 (lookup_cmd_1): Ditto.
10238
10239 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10240
10241 * configure.in: Add check for _etext.
10242 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10243 available.
10244 * config.in, configure: regenerated.
10245
10246 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10247
10248 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10249
10250 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10251
10252 * main.c (tui_version): Delete variable.
10253 (captured_main): When --tui, set interpreter_p to "tui" instead of
10254 enabling tui_version.
10255 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10256 tui_version.
10257 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10258 * cli/cli-cmds.c (disassemble_command): Ditto.
10259 * defs.h (tui_version): Delete declaration.
10260 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10261 (tui-interp.o): Add rules.
10262 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10263
10264 2003-02-14 Christopher Faylor <cgf@redhat.com>
10265
10266 * win32-nat.c (register_loaded_dll): Correctly set address range for
10267 just-loaded dll.
10268
10269 2003-02-12 Jason Molenda (jmolenda@apple.com)
10270
10271 * symmisc.c (print_objfile_statistics): Include information about
10272 the number of psymtabs and symtabs in each object file.
10273
10274 2003-02-13 Keith R Seitz <keiths@redhat.com>
10275
10276 * main.h (struct captured_main_args): Add interpreter_p.
10277 * main.c (captured_main): Initialize interpreter_p from context.
10278 * gdb.c (main): Set interpreter_p argument.
10279 * Makefile.in (gdb.o): Add dependency for interps.h.
10280
10281 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10282
10283 * event-top.c (cli_command_loop): Delete declaration.
10284 (_initialize_event_loop): Delete function setting event_loop_hook.
10285 * event-top.h (cli_command_loop): Declare. Update copyright.
10286 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10287 * interps.c (current_interp_command_loop): When event_loop_p, call
10288 cli_command_loop.
10289
10290 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10291
10292 * interps.h (interp_command_loop_ftype): Change return type to
10293 void.
10294
10295 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10296
10297 * x86-64-tdep.c (x86_64_extract_return_value)
10298 (x86_64_store_return_value): Use regcache instead of regbuf.
10299 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10300 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10301
10302 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10303
10304 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10305 * aclocal.m4: Regenerate.
10306 * configure: Regenerate.
10307
10308 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10309 TCL_LD_SEARCH_FLAGS.
10310
10311 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10312
10313 * dwarf2cfi.c: Reindented.
10314
10315 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10316
10317 * interps.c (clear_interpreter_hooks): Convert function definition
10318 to ISO C.
10319
10320 2003-02-07 David Carlton <carlton@math.stanford.edu>
10321
10322 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10323
10324 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10325
10326 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10327 (struct type): ...to here.
10328 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10329 field.
10330 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10331 (replace_type): Set length on all type variants for a given type.
10332
10333 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10334
10335 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10336 <sys/stat.h>.
10337 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10338
10339 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10340
10341 * Makefile.in (symm-nat.o): Update dependencies.
10342 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10343 (lynx-nat.o, ia64-linux-nat.): Ditto.
10344 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10345 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10346 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10347
10348 * Makefile.in (inflow_h): Define.
10349 (procfs.o, inflow.o, procfs.o): Update dependencies.
10350 * inftarg.c (child_stop): Delete extern declaration of
10351 inferior_process_group. Include "inflow.h".
10352 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10353 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10354 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10355 (our_process_group, inferior_process_group): Extern declarations.
10356
10357 * procfs.c: Include "gdb_assert.h".
10358
10359 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10360 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10361 * jv-typeprint.c (java_type_print_base): Ditto.
10362 * typeprint.c (typedef_print): Eliminate STREQ.
10363 * cli/cli-script.c (define_command, define_command): Ditto.
10364 * main.c (captured_main): Ditto.
10365 * values.c (lookup_internalvar): Ditto.
10366 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10367 within `if' conditional.
10368 * linespec.c (decode_line_2): Ditto.
10369 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10370 (bfd_openw_with_cleanup): Ditto.
10371
10372 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10373
10374 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10375 legacy_extract_return_value and store_return_value to
10376 legacy_return_value.
10377
10378 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10379
10380 * win32-nat.c (get_relocated_section_addrs): New function. Find
10381 section load addresses for symbol handling in relocated DLLs.
10382 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10383
10384 2003-02-05 Fred Fish <fnf@intrinsity.com>
10385
10386 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10387 '=' and '!='.
10388 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10389 with '&' and '=='.
10390 (angel_RDI_info): Ditto.
10391 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10392 with '&' and '!='.
10393 (threads_continue_all_with_signals): Ditto.
10394
10395 2003-02-05 Jim Ingham <jingham@apple.com>
10396 Keith Seitz <keiths@redhat.com>
10397 Elena Zannoni <ezannoni@redhat.com>
10398 Andrew Cagney <ac131313@redhat.com>
10399
10400 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10401 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10402 (SUBDIR_MI_OBS): Add "mi-interp.o".
10403 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10404 (SFILES): Add "interps.c".
10405 (COMMON_OBS): Add "interps.o".
10406 (interps_h, mi_main_h): Define.
10407 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10408 (mi-main.o, main.o, event-top.o): Update dependencies.
10409 * cli/cli-interp.c: New file.
10410 * interps.h, interps.c: New files.
10411 * top.c: (gdb_init): Don't install the default interpreter, handed
10412 by captured_main.
10413 * main.c: Include "interps.h".
10414 (interpreter_p): Note that it should malloc'ed.
10415 (captured_command_loop): Call current_interp_command_loop.
10416 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10417 xfree and xstrdup when updating interpreter_p. Install the
10418 default interpreter. Add hack to stop mi1's copyright notice
10419 being encoded.
10420 * event-top.h (gdb_setup_readline): Declare.
10421 (gdb_disable_readline): Declare.
10422 * event-top.c: Include "interps.h".
10423 (display_gdb_prompt): Call current_interp_display_prompt_p.
10424 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10425 gdb_stdlog, and gdb_stdtarg.
10426 (_initialize_event_loop): Don't call gdb_setup_readline.
10427 * cli-out.c (cli_out_set_stream): New function.
10428 * cli-out.h (cli_out_set_stream): Declare.
10429
10430 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10431
10432 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10433 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10434 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10435 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10436 config/i386/i386v42mp.mt: Removed.
10437
10438 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10439
10440 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10441 GDB_OSABI_SOLARIS.
10442
10443 2003-02-05 Michael Chastain <mec@shout.net>
10444
10445 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10446 2.12.1 and earlier versions.
10447
10448 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10449
10450 Remove orphaned hosts, targets and files.
10451 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10452 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10453 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10454 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10455 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10456 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10457 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10458 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10459 * config/sparc/tm-sp64sim.h: Delete.
10460 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10461 hosts.
10462 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10463 mips*-dec-mach3* targets.
10464
10465 2003-02-04 Michael Chastain <mec@shout.net>
10466
10467 * NEWS: Fix typo: sepcifying -> specifying.
10468
10469 2003-02-04 Michael Chastain <mec@shout.net>
10470
10471 * dwarfread.c: Add documentation on the state of dwarf-1,
10472 looking towards obsoletion.
10473
10474 2003-02-03 Michael Chastain <mec@shout.net>
10475
10476 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10477 gdb/testsuite/gdb.c++/pr-1023.exp.
10478
10479 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10480
10481 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10482 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10483
10484 * utils.c (init_page_info): Delete reference to MPW in comments.
10485 * main.c (captured_main): Delete #ifdef MPW.
10486
10487 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10488
10489 * NEWS: Note that the m32r-*-elf* is obsolete.
10490 * monitor.c (monitor_expect): Obsolete reference to m32r.
10491 * configure.tgt: Mark m32r-*-elf* as obsolete.
10492 * MAINTAINERS: Mark m32k as obsolete.
10493 * m32r-rom.c: Obsolete file.
10494 * config/m32r/m32r.mt: Obsolete file.
10495 * config/m32r/tm-m32r.h: Obsolete file.
10496 * m32r-stub.c: Obsolete file.
10497 * m32r-tdep.c: Obsolete file.
10498
10499 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10500
10501 * NEWS: Mention that the z8k-zilog-none is obsolete.
10502 * MAINTAINERS: Mark z8k as obsolete.
10503 * configure.tgt: Obsolete the z8k-*-coff* target.
10504 * config/z8k/z8k.mt: Obsolete file.
10505 * config/z8k/tm-z8k.h: Obsolete file.
10506 * z8k-tdep.c: Obsolete file.
10507
10508 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10509
10510 * NEWS: Mention that the mn10200-elf is obsolete.
10511 * configure.tgt: Obsolete mn10200-*-* target.
10512 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10513 mention that the mn10200 is obsolete.
10514 * breakpoint.h: Ditto.
10515 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10516 * config/mn10200/mn10200.mt: Obsolete file.
10517 * config/mn10200/tm-mn10200.h: Obsolete file.
10518 * mn10200-tdep.c: Obsolete file.
10519
10520 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10521
10522 * MAINTAINERS: Mark h8500 as obsolete.
10523 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10524 * findvar.c (value_from_register): Ditto.
10525 * h8500-tdep.c: Mark file as obsolete.
10526 * config/h8500/h8500.mt: Ditto.
10527 * config/h8500/tm-h8500.h: Ditto.
10528 * NEWS: Mention that h8500 is obsolete.
10529
10530 2003-02-04 David Carlton <carlton@math.stanford.edu>
10531
10532 * objfiles.c (allocate_objfile): Always set name. Add comment at
10533 start of function.
10534 * jv-lang.c (get_dynamics_objfile): Add comment.
10535
10536 2003-02-04 David Carlton <carlton@math.stanford.edu>
10537
10538 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10539 * printcmd.c (build_address_symbolic): Replace uses of
10540 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10541 SYMBOL_NAME, and asm_demangle.
10542 Update copyright.
10543
10544 2003-02-04 David Carlton <carlton@math.stanford.edu>
10545
10546 * linespec.c (decode_compound): Extract code into
10547 lookup_prefix_sym.
10548 (lookup_prefix_sym): New function.
10549
10550 2003-02-04 David Carlton <carlton@math.stanford.edu>
10551
10552 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10553 FLOAT_COERCION_BADNESS.
10554 * gdbtypes.c (rank_one_type): Replace all uses of
10555 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10556
10557 2003-02-04 Jim Blandy <jimb@redhat.com>
10558
10559 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10560 section, let dwarf_macinfo_section point to it, not
10561 dwarf_loc_section.
10562
10563 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10564
10565 Pointed out by Anton Blanchard <anton@samba.org>.
10566 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10567 (ppc_linux_at_sigtramp_return_path): Use it.
10568
10569 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10570
10571 * defs.h (streq): Add prototype.
10572 * utils.c (streq): New function.
10573
10574 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10575 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10576 * mdebugread.c (new_symbol): Likewise.
10577 * stabsread.c (define_symbol): Likewise.
10578 * coffread.c (process_coff_symbol): Likewise.
10579 * dwarfread.c (new_symbol): Likewise.
10580
10581 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10582 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10583 here.
10584 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10585 SYMBOL_INIT_DEMANGLED_NAME.
10586 * objfiles.c: Include "hashtab.h".
10587 (allocate_objfile): Call htab_set_functions_ex for the
10588 demangled_names_hash.
10589 (free_objfile): Call htab_delete for the demangled_names_hash.
10590 * objfiles.h (struct htab): Add declaration.
10591 (struct objfile): Add demangled_names_hash.
10592 * symfile.c: Include "hashtab.h".
10593 (reread_symbols): Call htab_delete for the demangled_names_hash.
10594 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10595 SYMBOL_NAME in the bcache.
10596 * symtab.c: Include "hashtab.h". Update comments.
10597 (create_demangled_names_hash, symbol_set_names): New functions.
10598 (symbol_find_demangled_name): New function, broken out from
10599 symbol_init_demangled_names.
10600 (symbol_init_demangled_names): Use it.
10601 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10602 (SYMBOL_SET_NAMES): New macro.
10603 (symbol_set_names): Add prototype.
10604
10605 2003-02-03 Jim Blandy <jimb@redhat.com>
10606
10607 Use a single, consistent representation for an empty minimal
10608 symbol table in an objfile.
10609 * objfiles.c (terminate_minimal_symbol_table): New function.
10610 (allocate_objfile): Call it.
10611 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10612 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10613 non-NULL.
10614 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10615 objfile has minimal symbols, compare minimal_symbol_count to zero,
10616 instead of comparing msymbols with NULL.
10617 * objfiles.c (have_minimal_symbols): Same.
10618 * solib-sunos.c (solib_add_common_symbols): Call
10619 terminate_minimal_symbol_table.
10620 * symfile.c (reread_symbols): Same.
10621
10622 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10623
10624 * s390-tdep.c (s390_address_class_type_flags)
10625 (s390_address_class_type_flags_to_name)
10626 (s390_address_class_name_to_type_flags): New functions.
10627 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10628 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10629
10630 2003-02-03 Michael Snyder <msnyder@redhat.com>
10631
10632 * arm-tdep.c: Fix spell-o in comment.
10633
10634 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10635
10636 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10637 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10638 error messages to contain BFD filename.
10639
10640 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10641
10642 Fix PR gdb/742 gdb/743 gdb/877
10643 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10644 (do_mixed_source_and_assembly): Use
10645 make_cleanup_ui_out_tuple_begin_end and
10646 make_cleanup_ui_out_tuple_begin_end.
10647 (do_mixed_source_and_assembly): Ditto.
10648 * thread.c (do_captured_list_thread_ids): Ditto.
10649 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10650 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10651 ui_out_tuple_end): Delete prototypes.
10652 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10653 ui_out_list_end, ui_out_tuple_end): Delete.
10654
10655 From Kevin Buettner <kevinb@redhat.com>:
10656 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10657 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10658 (do_cleanup_table_end): New functions.
10659 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10660 Use cleanups to invoke_ui_out_tuple_end().
10661 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10662 * cli/cli-setshow.c (cmd_show_list): Use
10663 make_cleanup_ui_out_tuple_begin_end.
10664
10665 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10666
10667 * frame.c (frame_unwind_register): New function.
10668 (frame_unwind_unsigned_register): Use.
10669 (frame_unwind_signed_register): Use.
10670 (frame_read_register): New function.
10671 * frame.h (frame_unwind_register): Declare.
10672 (frame_read_register): Declare.
10673
10674 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10675 and frame_unwind_register instead of read_memory, write_register
10676 and deprecated_write_register_bytes.
10677
10678 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10679
10680 * frame.h: Note that namelen can be negative.
10681 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10682 NAME's length.
10683
10684 * NEWS: Mention that the d10v's `regs' command is deprecated.
10685 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10686 (d10v_print_registers_info): New function.
10687 (show_regs): Call d10v_print_registers_info.
10688 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10689
10690 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10691
10692 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10693 lost in the previous patch.
10694
10695 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10696
10697 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10698 * stack.c (print_frame_info_base): Output complete FRAME tuple
10699 for synthesized frames.
10700
10701 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10702
10703 * mips-nat.c (zerobuf): Delete.
10704 (fetch_inferior_registers): Alloc local zerobuf.
10705 (fetch_core_registers): Alloc local zerobuf.
10706 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10707 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10708 * thread-db.c (thread_db_store_registers): Ditto.
10709 * sh-tdep.c (sh_do_register): Ditto.
10710 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10711 * remote-sim.c (gdbsim_store_register): Ditto.
10712 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10713 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10714 * monitor.c (monitor_supply_register): Ditto.
10715 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10716 * mips-nat.c (fetch_inferior_registers): Ditto.
10717 * m68klinux-nat.c (fetch_register): Ditto.
10718 * lynx-nat.c (fetch_inferior_registers): Ditto.
10719 (fetch_inferior_registers): Ditto.
10720 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10721 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10722 (hpux_thread_store_registers): Ditto.
10723 * hppah-nat.c (fetch_register): Ditto.
10724 * hppab-nat.c (fetch_register): Ditto.
10725 * hppa-tdep.c (pa_register_look_aside): Ditto.
10726 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10727 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10728
10729 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10730
10731 * gdbarch.sh: Explictly specify all method levels. When a
10732 variable with an empty level, provide a non-multi-arch default.
10733 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10734 * gdbarch.h: Re-generate.
10735 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10736 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10737
10738 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10739
10740 * defs.h (host_pointer_to_address): Delete declaration.
10741 (address_to_host_pointer): Delete declaration.
10742 * utils.c (host_pointer_to_address): Delete function.
10743 (address_to_host_pointer): Delete function.
10744 * procfs.c (procfs_address_to_host_pointer): New function.
10745 * procfs.c (proc_set_watchpoint): Use.
10746 (procfs_can_use_hw_breakpoint): Update comments.
10747 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10748 (som_solib_add): Use.
10749 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10750 * hppa-tdep.c (unwind_command): Use.
10751
10752 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10753
10754 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10755 strlen d_name.
10756
10757 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10758 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10759 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10760 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10761 (define_symbol): Update.
10762 * symfile.c (generic_load): Remove references to nindy.
10763 * symtab.c: Remove references to nindy.
10764
10765 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10766
10767 * infcmd.c (print_float_info): Delete code conditional on
10768 FLOAT_INFO.
10769 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10770 * config/m68k/nm-apollo68b.h: Ditto.
10771 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10772 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10773 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10774
10775 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10776
10777 * config/i386/tm-i386os9k.h: Removed.
10778
10779 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10780 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10781 they're identical to i[3456]86-*-sysv* now.
10782 * config/i386/i386v32.mh: Removed.
10783 * config/i386/xm-i386v32.h: Removed.
10784 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10785
10786 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10787
10788 * config/i386/i386dgux.mh: Removed.
10789 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10790
10791 * configure.in: Fix typo.
10792 * configure: Regenerated.
10793
10794 2003-01-31 David Carlton <carlton@math.stanford.edu>
10795
10796 * dwarf2read.c (dwarf2_locate_sections): Set
10797 dwarf_ranges_section.
10798
10799 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10800
10801 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10802 * utils.c: Update comments documenting legitimate uses of PTR.
10803
10804 * utils.c: Re-indent.
10805
10806 * config/djgpp/fnchange.lst: Delete nindy files.
10807 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10808 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10809 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10810 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10811 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10812 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10813 * Makefile.in (init.c): Remove nindy references.
10814 (saber_gdb): Delete rule.
10815 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10816 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10817 and a68v-nat.c.
10818 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10819 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10820 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10821 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10822 nindy-share/stop.h.
10823 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10824 * saber.suppress: Delete file.
10825
10826 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10827
10828 * dbxread.c (stabs_data): New static variable.
10829 (fill_symbuf): Support an in-memory buffer for stabs data.
10830 (stabs_seek): New function.
10831 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10832 (read_ofile_symtab): Use stabs_seek.
10833 (elfstab_build_psymtabs): Take an asection* instead of
10834 an offset and size. Relocate the stabs data if necessary.
10835 Save the section* for dbx_psymtab_to_symtab.
10836 * dwarf2read.c: Add section variables for each debug section.
10837 (dwarf2_locate_sections): Fill them in.
10838 (dwarf2_read_section): Take an asection* argument.
10839 Relocate the section contents if necessary.
10840 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10841 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10842 it to dwarf2_read_section.
10843 (dwarf2_build_frame_info): Update callers.
10844 * elfread.c (elf_symfile_read): Update call to
10845 elfstab_build_psymtabs.
10846 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10847 (DBX_STAB_SECTION): New macro.
10848 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10849 * symfile.c (symfile_dummy_outputs): New function.
10850 (symfile_relocate_debug_section): New function.
10851 * symfile.h (symfile_relocate_debug_section): Add prototype.
10852
10853 2003-01-31 Richard Henderson <rth@redhat.com>
10854
10855 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10856 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10857 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10858 * alpha-tdep.c (alpha_register_name): Add "unique".
10859 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10860 (ALPHA_UNIQUE_REGNUM): New.
10861 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10862
10863 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10864
10865 * README: Remove reference to Ericsson 1800 monitor.
10866 * Makefile.in (remote-es.o): Delete rule.
10867 (ALLDEPFILES): Delete remote-es.c.
10868 * remote-es.c: Delete file.
10869 * config/m68k/es1800.mt: Delete file.
10870 * config/djgpp/fnchange.lst: Update.
10871 * configure.tgt: Delete m68*-ericsson-* target.
10872
10873 2003-01-31 Adam Fedor <fedor@gnu.org>
10874
10875 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10876 Remove duplicate/shadowing variable of same name.
10877
10878 2003-01-30 Jim Blandy <jimb@redhat.com>
10879
10880 * symfile.c (find_separate_debug_file): Assert that the objfile's
10881 directory name we compute ends with a slash, and then assume that
10882 that's so everywhere we use it.
10883
10884 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10885
10886 * valops.c (value_assign): Flush frame cache after stores to memory
10887 also.
10888
10889 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10890
10891 * Makefile.in (mon960-rom.o): Delete rule.
10892 * mon960-rom.c: Delete file.
10893
10894 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10895
10896 * d10v-tdep.c: Include "frame-unwind.h".
10897 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10898 list.
10899 (next_addr, uses_frame): Delete.
10900 (struct d10v_unwind_cache): Define.
10901 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10902 Use info instead of next_addr and uses_frame globals.
10903 (d10v_frame_init_saved_regs): Delete function.
10904 (d10v_init_extra_frame_info): Delete function.
10905 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10906 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10907 init_frame_pc or frame_saved_pc.
10908 (d10v_pop_frame): Delete function.
10909 (do_d10v_pop_frame): Delete function.
10910 (d10v_frame_chain): Delete function.
10911 (d10v_frame_chain_valid): Delete function.
10912 (d10v_frame_pc_unwind): New function.
10913 (d10v_frame_id_unwind): New function.
10914 (saved_regs_unwinder): New function.
10915 (d10v_frame_register_unwind): New function.
10916 (d10v_frame_pop): New function.
10917 (d10v_frame_unwind): New variable.
10918 (d10v_frame_p): New function.
10919 (d10v_frame_saved_pc): Delete function.
10920 * Makefile.in (d10v-tdep.o): Update dependencies.
10921
10922 2003-01-30 J. Brobecker <brobecker@gnat.com>
10923
10924 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10925 causing some regressions due to a change in the default value
10926 for this macro.
10927
10928 2003-01-29 Richard Henderson <rth@redhat.com>
10929 Elena Zannoni <ezannoni@redhat.com>
10930 Daniel Jacobowitz <drow@mvista.com>
10931
10932 Fix PR gdb/961.
10933 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10934 variables.
10935 (RANGES_SECTION): New.
10936 (dwarf_ranges_buffer): New variable.
10937 (struct comp_unit_head): Add member "die".
10938 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10939 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10940 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10941 (dwarf2_locate_sections): Likewise.
10942 (dwarf2_build_psymtabs): Read .debug_ranges.
10943 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10944 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10945 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10946 Look for DW_AT_ranges and return the bounding box.
10947
10948 2003-01-29 Brian Ford <ford@vss.fsi.com>
10949
10950 * win32-nat.c (cygwin_pid): Removed as unused.
10951 (child_attach): Try fall back to Cygwin pid.
10952
10953 2003-01-29 Jim Blandy <jimb@redhat.com>
10954
10955 * objfiles.h (struct objfile): Doc fix.
10956
10957 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10958
10959 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10960 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10961 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10962 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10963 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10964 (FRAME_SAVED_PC): Change to a function with predicate.
10965 * gdbarch.h, gdbarch.c: Re-generate.
10966
10967 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10968
10969 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10970
10971 * complaints.c (complain): Delete function.
10972 * complaints.h (struct deprecated_complaint): Delete definition.
10973 (complain): Delete declaration.
10974
10975 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10976
10977 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10978 dummy frames.
10979
10980 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10981
10982 * sentinel-frame.h, sentinel-frame.c: New files.
10983 * Makefile.in (frame.o): Update dependencies.
10984 (SFILES): Add sentinel-frame.c.
10985 (sentinel_frame_h): Define.
10986 (COMMON_OBS): Add sentinel-frame.o.
10987 (sentinel-frame.o): Specify dependencies.
10988 * frame.c: Include "sentinel-frame.h".
10989 (frame_register_unwind): Rewrite assuming that there is always a a
10990 ->next frame.
10991 (frame_register, generic_unwind_get_saved_register): Ditto.
10992 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10993 (create_sentinel_frame, unwind_to_current_frame): New functions.
10994 (get_current_frame): Rewrite using create_sentinel_frame and
10995 unwind_to_current_frame. When possible, always create a frame.
10996 (create_new_frame): Set next to the sentinel frame.
10997 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10998 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10999 ID cache when necessary.
11000 (frame_saved_regs_id_unwind): Use frame_relative_level.
11001 (deprecated_generic_get_saved_register): Use frame_relative_level,
11002 get_frame_saved_regs, get_frame_pc, get_frame_base and
11003 get_next_frame.
11004 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11005 frame_register.
11006
11007 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11008
11009 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11010
11011 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11012
11013 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11014 (maintenance_set_profile_cmd): Use error () instead of warning ().
11015
11016 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11017
11018 * configure.in: Check that -pg works if using --enable-profiling.
11019 Check for monstartup and _mcleanup regardless of --enable-profiling.
11020 * maint.c: Check for monstartup and _mcleanup before using them.
11021 * config.in: Regenerated.
11022 * configure: Regenerated.
11023
11024 2003-01-24 Nick Clifton <nickc@redhat.com>
11025
11026 * Add sh2e support:
11027
11028 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11029
11030 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11031 (sh2e_show_regs): New.
11032 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11033 * config/sh/tm-sh.h: Added sh2e to comments.
11034
11035 2003-01-23 Jim Blandy <jimb@redhat.com>
11036
11037 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11038 symbols found)" message here; we haven't checked for a separate
11039 debug info file yet, so we don't know yet.
11040 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11041 we've looked everywhere. Also, there's no need to print a special
11042 message when we're loading the separate debug info file: the one
11043 symbol_file_add prints is fine.
11044
11045 2003-01-23 Alexander Larsson <alexl@redhat.com>
11046 Jim Blandy <jimb@redhat.com>
11047
11048 Add support for executables whose debug info has been separated
11049 out into a separate file, leaving only a link behind.
11050 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11051 and separate_debug_objfile_backlink.
11052 (put_objfile_before): New declaration.
11053 * symfile.c: #include "filenames.h".
11054 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11055 debug info in a separate file, read that, too. Save the addrs
11056 argument, so we can use it again to read the separated debug info;
11057 syms_from_objfile modifies the table we pass it.
11058 (reread_symbols): After re-reading an objfile, call
11059 reread_separate_symbols to refresh its separate debug info
11060 objfile, if it has one.
11061 (reread_separate_symbols, find_separate_debug_file,
11062 get_debug_link_info, separate_debug_file_exists): New functions.
11063 (debug_file_directory): New global var.
11064 (_initialize_symfile): Initialize debug_file_directory, and
11065 provide the new `set debug-file-directory' command to let the user
11066 change it.
11067 * objfiles.c (free_objfile): If this objfile has its debug info in
11068 a separate objfile, free that one too. If this is itself a
11069 separate debug info objfile, clear our parent's backlink.
11070 (put_objfile_before): New function.
11071 * utils.c (gnu_debuglink_crc32): New function.
11072 * defs.h (gnu_debuglink_crc32): New declaration.
11073 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11074 * configure.in: Handle --with-separate-debug-dir config option.
11075 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11076 * acconfig.h (DEBUGDIR): New macro.
11077 * configure, aclocal.m4, config.in: Regenerated.
11078
11079 2003-01-22 Jim Blandy <jimb@redhat.com>
11080
11081 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11082 like the old symbol_file_add, but taking new arguments: you can
11083 now pass in either a `struct section_addr_info' list to say where
11084 each section is loaded, or a `struct section_offsets' table. Pass
11085 these new arguments through to syms_from_objfile as appropriate.
11086 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11087 with the appropriate quiescent values for the new arguments.
11088
11089 * symfile.c: #include "gdb_assert.h".
11090 (syms_from_objfile): Add the ability to pass in a section offset
11091 table directly, as an alternative to the section_addr_info table.
11092 Document arguments better.
11093 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11094 * symfile.h (syms_from_objfile): Update declaration.
11095 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11096 syms_from_objfile.
11097 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11098
11099 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11100
11101 Original patch by Tom Tromey <tromey@cygnus.com> and
11102 Jason Molenda <jmolenda@apple.com>.
11103 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11104 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11105 * NEWS: Mention profiling.
11106 * configure.in (--enable-gdbtk): Fix typo.
11107 (--enable-profiling): New. Set PROFILE_CFLAGS.
11108 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11109 Fill in function.
11110 (profiling_state): New variable.
11111 (mcleanup_wrapper): New function.
11112 (_initialize_maint): Remove NOTYET, fix call to
11113 add_setshow_boolean_cmd for "maint set profile".
11114 * configure: Regenerated.
11115
11116 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11117
11118 * Makefile.in (install-gdbtk): Install PNG images too.
11119
11120 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11121
11122 * exec.c (text_start): Delete global variable.
11123 (exec_file_attach): Make text_start local to the function.
11124 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11125 * valops.c (hand_function_call): Delete code that handles
11126 BEFORE_TEXT_END and AFTER_TEXT_END.
11127 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11128 of CALL_DUMMY_LOCATION.
11129 * gdbarch.c: Regenerate.
11130 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11131 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11132 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11133 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11134 (text_end): Delete extern declaration.
11135
11136 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11137
11138 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11139 * blockframe.c (backtrace_below_main): Move to "frame.c".
11140 (frame_chain_valid): Delete check for backtrace_below_main.
11141 (_initialize_blockframe): Delete initialization, move ``set
11142 backtrace-below-main'' command to "frame.c".
11143 (do_flush_frames_sfunc): Delete function.
11144 * frame.c: Include "command.h" and "gdbcmd.h".
11145 (frame_type_from_pc): New function.
11146 (create_new_frame): Use frame_type_from_pc.
11147 (legacy_get_prev_frame): New function.
11148 (get_prev_frame): Rewrite. When an old style frame, call
11149 legacy_get_prev_frame. Otherwize, unwind the PC first.
11150 (_initialize_frame): Add ``set backtrace-below-main'' command.
11151 * Makefile.in (frame.o): Update dependencies.
11152
11153 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11154
11155 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11156 DEPRECATED_REGISTERS_INFO.
11157
11158 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11159
11160 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11161 Maintainers'. Update `Various Maintainers'.
11162
11163 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11164
11165 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11166 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11167 Suppress actual parameters when `-'.
11168 * gdbarch.h, gdbarch.c: Regenerate.
11169
11170 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11171
11172 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11173 code handling dummy frames.
11174
11175 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11176
11177 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11178 (struct frame_unwind): Add field pop.
11179 * frame.h (frame_pop): Declare.
11180 * frame.c (frame_saved_regs_pop): New function.
11181 (trad_frame_unwinder): Add frame_saved_regs_pop.
11182 (frame_pop): New function.
11183 * dummy-frame.c (dummy_frame_pop): New function.
11184 (discard_innermost_dummy): New function.
11185 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11186 (dummy_frame_unwind): Add dummy_frame_pop.
11187 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11188 * valops.c (hand_function_call): Ditto.
11189 * stack.c (return_command): Ditto.
11190
11191 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11192
11193 * cris-tdep.c: Fix function declaration indentation.
11194 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11195 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11196 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11197 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11198 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11199 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11200
11201 2003-01-18 Michael Chastain <mec@shout.net>
11202
11203 * README (Unpacking and Installation -- quick overview):
11204 Warn against ".../gdb-5.3/gdb/configure".
11205
11206 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11207
11208 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11209 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11210 (struct frame_unwind): Declare opaque.
11211 (dummy_frame_p): Declare function.
11212 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11213 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11214 * dummy-frame.c: Include "frame-unwind.h".
11215 (dummy_frame_p): New function.
11216 (dummy_frame_unwind): New variable.
11217 * frame.c: Include "frame-unwind.h".
11218 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11219 to use the new unwind field.
11220 (set_unwind_by_pc): Delete function.
11221 (create_new_frame, get_prev_frame): Set unwind field using
11222 frame_unwind_find_by_pc.
11223 (trad_frame_unwind, trad_frame_unwinder): New variables.
11224 * frame.h (trad_frame_unwind): Declare variable.
11225 (frame_id_unwind_ftype): Delete declaration.
11226 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11227 (struct frame_unwind): Declare opaque.
11228 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11229 register_unwind with a single unwind pointer.
11230 * frame-unwind.h, frame-unwind.c: New files.
11231 * Makefile.in (SFILES): Add frame-unwind.c.
11232 (frame_unwind_h): Define.
11233 (COMMON_OBS): Add frame-unwind.o.
11234 (frame-unwind.o): Specify dependencies.
11235 (frame.o, dummy-frame.o): Update dependencies.
11236
11237 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11238
11239 * ada-valprint.c: Eliminate PTR.
11240 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11241 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11242 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11243 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11244 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11245 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11246 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11247
11248 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11249
11250 * main.c (captured_main): Don't use PTR.
11251 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11252 * gdbtypes.c (lookup_primitive_typename): Ditto.
11253 (lookup_struct_elt_type): Ditto.
11254 * f-valprint.c (info_common_command): Ditto.
11255 (list_all_visible_commons): Ditto.
11256 * jv-typeprint.c (java_type_print_base): Ditto.
11257
11258 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11259 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11260 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11261 i386-interix-nat.c and i386-interix-tdep.c. Rename
11262 m68klinux-nat.c and m68klinux-tdep.c. Rename
11263 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11264 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11265 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11266 * main.c (captured_main): Use xfree, not free.
11267
11268 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11269
11270 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11271 ID back using a parameter.
11272 * frame.c (frame_id_unwind): Update call.
11273 (frame_saved_regs_id_unwind): Update.
11274 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11275 * dummy-frame.h (struct frame_id): Add opaque declaration.
11276 (dummy_frame_id_unwind): Update declaration.
11277
11278 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11279
11280 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11281
11282 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11283
11284 * MAINTAINERS (Stephen P. Smith): Updated email address.
11285
11286 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11287
11288 Fix PR gdb/898
11289 * breakpoint.c (until_break_command): Add new argument. Use it to
11290 decide whether to stop only at the current frame or not.
11291 * breakpoint.h (until_break_command): Update prototype.
11292 * infcmd.c (until_command): Add new argument to until_break_command
11293 call.
11294 (advance_command): New function.
11295 (_initialize_infcmd): Update help string for 'until' command.
11296 Add new 'advance' command.
11297
11298 2003-01-14 David Carlton <carlton@math.stanford.edu>
11299
11300 * linespec.c (decode_line_1): Normalize comments.
11301 (set_flags): Ditto.
11302 (locate_first_half): Ditto.
11303 (decode_compound): Ditto.
11304 (symtab_from_filename): Ditto.
11305 (decode_all_digits): Ditto.
11306 (decode_dollar): Ditto.
11307 (find_methods): Ditto.
11308 (find_toplevel_char): Ditto.
11309
11310 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11311
11312 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11313 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11314 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11315 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11316 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11317 * language.c, language.h, m32r-tdep.c: Update copyright.
11318 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11319 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11320 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11321 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11322 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11323 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11324
11325 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11326
11327 * stabsread.h (process_later, resolve_cfront_continuation):
11328 Obsolete.
11329 Update copyright years.
11330 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11331 Update copyright year.
11332 * dbxread.c(struct cont_elem): Obsolete.
11333 (process_later, process_now): Obsolete functions.
11334 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11335 Update copyright year.
11336 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11337 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11338 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11339 (parse_partial_symbols): Obsolete cfront support.
11340 * stabsread.c
11341 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11342 macros.
11343 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11344 read_cfront_baseclasses, read_cfront_member_functions,
11345 resolve_cfront_continuation,read_cfront_static_fields,
11346 copy_cfront_struct_fields): Obsolete functions.
11347 (define_symbol, read_one_struct_field): Obsolete cfront support.
11348 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11349 Update Copyright year.
11350
11351 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11352
11353 * stack.c (print_frame_info, print_stack_frame_base_stub,
11354 print_stack_frame_base, show_and_print_stack_frame_stub,
11355 show_and_print_stack_frame, print_only_stack_frame_stub,
11356 print_only_stack_frame): Delete functions.
11357 (print_stack_frame_stub): Call print_frame_info instead of
11358 print_frame_info_base.
11359 (print_frame_info_base): Rename to print_frame_info.
11360 (backtrace_command_1): Call print_frame_info, instead of
11361 print_frame_info_base.
11362 (current_frame_command): Call print_stack_frame, instead of
11363 print_only_stack_frame.
11364 (frame_command): Call print_stack_frame, instead of
11365 show_and_print_stack_frame.
11366 (up_command): Ditto.
11367 (down_command): Ditto.
11368 * frame.h (print_only_stack_frame): Delete prototype.
11369 * infrun.c (normal_stop): Call print_stack_frame, instead of
11370 show_and_print_stack_frame.
11371 * thread.c (info_threads_command): Call print_stack_frame, instead
11372 of print_only_stack_frame.
11373
11374 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11375
11376 * README (Graphical interface to GDB): Update URL. Point at
11377 gdb/links/.
11378
11379 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11380 version match.
11381
11382 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11383
11384 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11385 lines.
11386
11387 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11388
11389 * thread-db.c (attach_thread): Prototype.
11390 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11391 thread information (ti), and valid flags (th_valid, ti_valid).
11392 (attach_thread): Move target_pid_to_str call to after the thread
11393 is added to GDB's list. Initialize the cache.
11394 (thread_get_info_callback, thread_db_map_id2thr)
11395 (thread_db_get_info): New functions.
11396 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11397 (thread_db_store_registers, thread_db_thread_alive)
11398 (thread_db_get_thread_local_address): Use them.
11399 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11400 of calling error() for threads in unknown state.
11401
11402 (clear_lwpid_callback): New function.
11403 (thread_db_resume): Use it to clear the cache.
11404
11405 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11406
11407 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11408 (resume_callback): Remove dead code.
11409
11410 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11411
11412 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11413 predicate.
11414 * gdbarch.h, gdbarch.c: Regenerate.
11415 * stack.c (frame_info): Only initialize the saved registers when
11416 FRAME_INIT_SAVED_REGS_P.
11417 * frame.c (frame_saved_regs_register_unwind): Assert
11418 FRAME_INIT_SAVED_REGS_P.
11419 (deprecated_generic_get_saved_register): Ditto.
11420
11421 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11422
11423 * source.c (openp): Squelch warning about "filename".
11424
11425 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11426
11427 * source.c (openp): If the file does not exist don't necessarily
11428 search the path.
11429
11430 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11431
11432 Fix PR gdb/872.
11433 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11434 (integer_types_same_name_p): New function.
11435 (rank_one_type): Use it.
11436 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11437
11438 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11439
11440 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11441 variables.
11442 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11443 * configure.in: Add --with-sysroot.
11444 * configure: Regenerated.
11445 * main.c (gdb_sysroot): New variable.
11446 (captured_main): Initialize gdb_sysroot.
11447 * defs.h (gdb_sysroot): New extern declaration.
11448 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11449
11450 2003-01-12 Michael Chastain <mec@shout.net>
11451
11452 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11453
11454 2003-01-12 Michael Chastain <mec@shout.net>
11455
11456 * top.c (print_gdb_version): Bump copyright year to 2003.
11457
11458 2003-01-12 David Carlton <carlton@bactrian.org>
11459
11460 * linespec.c (symtab_from_filename): Rename variable 's' to
11461 'file_symtab'.
11462
11463 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11464
11465 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11466 dummy frame.
11467 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11468
11469 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11470
11471 * d10v-tdep.c: Include "gdb_assert.h".
11472 (d10v_store_return_value): Rewrite to match current interface.
11473 (d10v_extract_struct_value_address): Ditto.
11474 (d10v_extract_return_value): Ditto.
11475 (d10v_gdbarch_init): Set store_restore_value,
11476 extract_struct_value_address and extract_return_value.
11477
11478 2003-01-12 J. Brobecker <brobecker@gnat.com>
11479
11480 * hpread.c (set_namestring): New procedure replacing the
11481 SET_NAMESTRING macro.
11482 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11483 by calls to set_namestring.
11484
11485 2003-01-11 J. Brobecker <brobecker@gnat.com>
11486
11487 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11488 a compilation warning.
11489 (hpread_process_one_debug_symbol): Likewise.
11490
11491 2003-01-10 David Carlton <carlton@math.stanford.edu>
11492
11493 * linespec.c (decode_line_1): Rename variable 's' to
11494 'file_symtab'.
11495 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11496 (decode_dollar): Ditto.
11497 (decode_variable): Ditto.
11498 (symbol_found): Ditto.
11499
11500 2003-01-09 Michael Chastain <mec@shout.net>
11501
11502 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11503
11504 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11505
11506 * win32-nat.c (set_process_privilege): New function.
11507 (child_attach): Call set_process_privilege() to enable the
11508 SE_DEBUG_NAME user privilege if available in process token.
11509
11510 2003-01-10 J. Brobecker <brobecker@gnat.com>
11511
11512 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11513 compilation error in the previous revision.
11514
11515 2003-01-09 David Carlton <carlton@math.stanford.edu>
11516
11517 * linespec.c: Update copyright.
11518
11519 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11520
11521 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11522 than inferior_ptid.
11523 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11524
11525 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11526
11527 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11528 Update comments.
11529 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11530 (frame_saved_regs_zalloc): Update.
11531 (frame_saved_regs_register_unwind): Update.
11532 (create_new_frame): Update.
11533 (get_prev_frame): Update.
11534 (frame_extra_info_zalloc): Update.
11535 (deprecated_get_frame_saved_regs): Update.
11536 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11537 * cris-tdep.c: Update comment.
11538
11539 * somsolib.h: Fix function indentation.
11540 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11541 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11542 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11543 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11544 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11545
11546 * infrun.c (follow_fork): Use ISO C definition.
11547 * expprint.c (print_subexp): Use xfree instead of free.
11548 * charset.c: Include "gdb_string.h" instead of <string.h>.
11549 (register_iconv_charsets): Use ISO C definition.
11550 (host_charset, target_charset): Ditto.
11551 * Makefile.in (charset.o): Update dependencies.
11552 (mi-cmd-env.o): Update dependencies.
11553
11554 2003-01-08 Andrew Cagney <cagney@redhat.com>
11555
11556 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11557 get_frame_base.
11558
11559 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11560
11561 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11562 build directories. Save edited gdb output in Mbuild.log. If a
11563 build fails, remove any final GDB executable.
11564
11565 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11566
11567 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11568 replacing hex constants with function names and stripping leading
11569 file name directory prefixes.
11570
11571 2003-01-08 Andrew Cagney <cagney@redhat.com>
11572
11573 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11574 get_frame_base.
11575
11576 2003-01-08 David Carlton <carlton@math.stanford.edu>
11577
11578 * linespec.c (decode_line_1): Move code into decode_variable.
11579 (decode_variable): New function.
11580
11581 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11582
11583 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11584
11585 2003-01-08 Andrew Cagney <cagney@redhat.com>
11586
11587 * cris-tdep.c (cris_frame_init_saved_regs): Use
11588 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11589 saved_regs buffer.
11590 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11591 (sh64_nofp_frame_init_saved_regs): Ditto.
11592 (sh_fp_frame_init_saved_regs): Ditto.
11593 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11594 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11595 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11596 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11597
11598 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11599
11600 * minsyms.c (lookup_minimal_symbol): Update comment.
11601 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11602 (lookup_minimal_symbol_solib_trampoline): Likewise.
11603
11604 2003-01-08 Andrew Cagney <cagney@redhat.com>
11605
11606 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11607 frame_relative_level.
11608
11609 * alpha-tdep.c: Use get_frame_extra_info.
11610 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11611 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11612 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11613 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11614
11615 * alpha-tdep.c: Use get_next_frame.
11616 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11617 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11618 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11619 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11620 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11621 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11622 * xstormy16-tdep.c: Ditto.
11623
11624 2003-01-07 Andrew Cagney <cagney@redhat.com>
11625
11626 * alpha-tdep.c: Use get_frame_base.
11627 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11628 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11629 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11630 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11631 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11632 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11633 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11634 * config/sparc/tm-sparc.h: Ditto.
11635
11636 2003-01-07 Andrew Cagney <cagney@redhat.com>
11637
11638 * frame.c (deprecated_get_frame_context): New function.
11639 (deprecated_set_frame_context): New function.
11640 * frame.h (deprecated_get_frame_context): Declare.
11641 (deprecated_set_frame_context): Declare.
11642 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11643 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11644
11645 2003-01-07 Andrew Cagney <cagney@redhat.com>
11646
11647 * frame.c (deprecated_set_frame_next_hack): New function.
11648 (deprecated_set_frame_prev_hack): New function.
11649 * frame.h (deprecated_set_frame_next_hack): Declare.
11650 (deprecated_set_frame_prev_hack): Declare.
11651 * mcore-tdep.c (analyze_dummy_frame): Use
11652 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11653 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11654
11655 2003-01-07 David Carlton <carlton@math.stanford.edu>
11656
11657 * linespec.c (decode_line_1): Move code into decode_dollar.
11658 (decode_dollar): New function.
11659
11660 2003-01-07 Andrew Cagney <cagney@redhat.com>
11661
11662 * arm-tdep.c (arm_init_extra_frame_info): Use
11663 deprecated_update_frame_base_hack.
11664 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11665 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11666 (fix_frame_pointer): Ditto.
11667 (mn10300_analyze_prologue): Ditto.
11668
11669 2003-01-07 Andrew Cagney <cagney@redhat.com>
11670
11671 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11672 extra_info using frame_extra_info_zalloc.
11673 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11674 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11675 (sh64_init_extra_frame_info): Ditto.
11676 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11677 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11678 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11679 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11680 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11681 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11682 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11683 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11684 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11685 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11686 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11687 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11688
11689 * mn10300-tdep.c (analyze_dummy_frame): Use
11690 deprecated_set_frame_extra_info_hack.
11691 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11692
11693 2003-01-07 J. Brobecker <brobecker@gnat.com>
11694
11695 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11696 class is not scText. These do not define "real" procedures.
11697 (parse_partial_symbols): Likewise.
11698
11699 2003-01-06 Michael Snyder <msnyder@redhat.com>
11700
11701 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11702
11703 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11704
11705 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11706 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11707 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11708 deprecated_frame_xmalloc_with_cleanup.
11709 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11710 deprecated_frame_xmalloc.
11711 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11712 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11713
11714 2003-01-06 Andrew Cagney <cagney@redhat.com>
11715
11716 * x86-64-linux-tdep.c: Include "osabi.h".
11717 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11718
11719 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11720
11721 2003-01-06 Andrew Cagney <cagney@redhat.com>
11722
11723 * MAINTAINERS (Target Instruction Set Architectures): Update
11724 arm-elf. Can be built with -Werror, has been multiarched.
11725
11726 * value.h (unpack_long): Make buffer parameter constant.
11727 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11728 * scm-lang.h (scm_parse): Ditto.
11729 * defs.h (extract_typed_address, extract_address): Ditto.
11730 (extract_long_unsigned_integer): Ditto.
11731 * inferior.h (unsigned_pointer_to_address): Ditto.
11732 (signed_pointer_to_address): Ditto.
11733 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11734 * gdbarch.h, gdbarch.c: Regenerate.
11735 * findvar.c (extract_long_unsigned_integer): Update.
11736 (extract_address): Update.
11737 (extract_typed_address): Update.
11738 (unsigned_pointer_to_address): Update.
11739 * values.c (unpack_long): Update.
11740 (unpack_double): Update.
11741 (unpack_pointer): Update.
11742 (unpack_field_as_long): Update.
11743 * d10v-tdep.c (d10v_pointer_to_address): Update.
11744 * avr-tdep.c (avr_pointer_to_address): Update.
11745 * scm-lang.c (scm_unpack): Update.
11746 * findvar.c (signed_pointer_to_address): Update.
11747
11748 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11749
11750 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11751 since it is in i386-tdep.c.
11752
11753 2003-01-06 J. Brobecker <brobecker@gnat.com>
11754
11755 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11756 failure introduced in the previous change.
11757
11758 2003-01-05 Michael Chastain <mec@shout.net>
11759
11760 * README: Remove references to deleted remote-*.c files:
11761 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11762 remote-nrom.c, remote-os9k.c, remote-udi.c.
11763
11764 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11765
11766 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11767 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11768 i386_get_longjmp_target.
11769
11770 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11771
11772 * arm-tdep.c (prologue_cache): Change to a pointer.
11773 (_initialize_arm_tdep): Allocate prologue_cache.
11774 (check_prologue_cache): Update.
11775 (save_prologue_cache): Update.
11776 (arm_gdbarch_init): Update.
11777
11778 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11779
11780 * stabsread.c (update_method_name_from_physname): Call complaint()
11781 instead of error.
11782
11783 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11784
11785 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11786 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11787 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11788
11789 * blockframe.c: Include "gdbcmd.h" and "command.h".
11790 (backtrace_below_main): New variable.
11791 (file_frame_chain_valid, func_frame_chain_valid)
11792 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11793 (generic_func_frame_chain_valid): Remove functions.
11794 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11795 (_initialize_blockframe): New function.
11796 * Makefile.in (blockframe.o): Update dependencies.
11797 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11798 comment. Call frame_chain_valid ().
11799 * frame.h: Remove old prototypes. Add prototype for
11800 frame_chain_valid and update comments to match.
11801 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11802 Remove old comment.
11803 * gdbarch.h: Regenerated.
11804 * gdbarch.c: Regenerated.
11805
11806 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11807 set_gdbarch_frame_chain_valid.
11808 * avr-tdep.c (avr_gdbarch_init): Likewise.
11809 * cris-tdep.c (cris_gdbarch_init): Likewise.
11810 * frv-tdep.c (frv_gdbarch_init): Likewise.
11811 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11812 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11813 (i386_nw_init_abi): Likewise.
11814 (i386_gdbarch_init): Likewise.
11815 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11816 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11817 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11818 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11819 * mips-tdep.c (mips_gdbarch_init): Likewise.
11820 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11821 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11822 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11823 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11824 * s390-tdep.c (s390_gdbarch_init): Likewise.
11825 * sh-tdep.c (sh_gdbarch_init): Likewise.
11826 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11827 * v850-tdep.c (v850_gdbarch_init): Likewise.
11828 * vax-tdep.c (vax_gdbarch_init): Likewise.
11829 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11830
11831 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11832 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11833 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11834 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11835 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11836 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11837 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11838 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11839
11840 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11841
11842 * Makefile.in (acconfig_h): Remove incorrect macro.
11843 (config_h): Define.
11844 (osabi.o): Update dependencies.
11845 * configure.tgt: Set gdb_osabi based on target triplet.
11846 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11847 * configure: Regenerated.
11848 * config.in: Regenerated.
11849 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11850 (GDB_OSABI_DEFAULT): Define if not already defined.
11851 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11852 (set_osabi_string): New variables.
11853 (gdbarch_register_osabi): Add new OS ABI to
11854 gdb_osabi_available_names.
11855 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11856 (set_osabi, show_osabi): New functions.
11857 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11858
11859 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11860
11861 * arch-utils.c (gdbarch_info_init): Set osabi to
11862 GDB_OSABI_UNINITIALIZED.
11863 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11864 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11865 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11866 * gdbarch.c: Regenerated.
11867 * gdbarch.h: Regenerated.
11868 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11869 there's no BFD.
11870 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11871 * osabi.h (enum gdb_osabi): Move to defs.h.
11872 (gdbarch_init_osabi): Update prototype.
11873 * defs.h (enum gdb_osabi): Moved here.
11874 * Makefile.in: Update dependencies.
11875
11876 * alpha-tdep.h: Don't include "osabi.h".
11877 (struct gdbarch_tdep): Remove osabi member.
11878 * alpha-tdep.c: Include "osabi.h".
11879 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11880 iterate over arches. Update call to gdbarch_init_osabi.
11881 (alpha_dump_tdep): Don't dump osabi.
11882 * alpha-linux-tdep.c: Include "osabi.h".
11883 * alpha-osf1-tdep.c: Include "osabi.h".
11884 * alphafbsd-tdep.c: Include "osabi.h".
11885 * alphanbsd-tdep.c: Include "osabi.h".
11886
11887 * arm-tdep.h: Don't include "osabi.h".
11888 (struct gdbarch_tdep): Remove osabi member.
11889 * arm-tdep.c: Include "osabi.h".
11890 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11891 iterate over arches. Update call to gdbarch_init_osabi.
11892 (arm_dump_tdep): Don't dump osabi.
11893 * arm-linux-tdep.c: Include "osabi.h".
11894 * armnbsd-tdep.c: Include "osabi.h".
11895
11896 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11897 Update call to gdbarch_init_osabi.
11898
11899 * i386-tdep.h: Don't include "osabi.h".
11900 (struct gdbarch_tdep): Remove osabi member.
11901 * i386-tdep.c: Include "osabi.h".
11902 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11903 iterate over arches. Update call to gdbarch_init_osabi.
11904 (i386_dump_tdep): Don't dump osabi.
11905 * i386-linux-tdep.c: Include "osabi.h".
11906 * i386-sol2-tdep.c: Include "osabi.h".
11907 * i386bsd-tdep.c: Include "osabi.h".
11908 * i386gnu-tdep.c: Include "osabi.h".
11909 * i386ly-tdep.c: Include "osabi.h".
11910 * i386nbsd-tdep.c: Include "osabi.h".
11911 * i386obsd-tdep.c: Include "osabi.h".
11912
11913 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11914 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11915 check osabi when iterating over arches. Update call to
11916 gdbarch_init_osabi.
11917 (mips_dump_tdep): Don't dump osabi.
11918
11919 * ns32k-tdep.h: Don't include "osabi.h".
11920 (struct gdbarch_tdep): Remove.
11921 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11922 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11923 allocate tdep. Update call to gdbarch_init_osabi.
11924 (ns32k_dump_tdep): Remove.
11925 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11926 * ns32knbsd-tdep.c: Include "osabi.h".
11927
11928 * ppc-tdep.h: Don't include "osabi.h".
11929 (struct gdbarch_tdep): Remove osabi member.
11930 * rs6000-tdep.c: Include "osabi.h".
11931 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11932 osabi when iterating over arches. Update call to
11933 gdbarch_init_osabi.
11934 (rs6000_dump_tdep): Don't dump osabi.
11935 * ppc-linux-tdep.c: Include "osabi.h".
11936 * ppcnbsd-tdep.c: Include "osabi.h".
11937
11938 * sh-tdep.h: Don't include "osabi.h".
11939 (struct gdbarch_tdep): Remove osabi member.
11940 * sh-tdep.c: Include "osabi.h".
11941 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11942 iterate over arches. Update call to gdbarch_init_osabi.
11943 (sh_dump_tdep): Don't dump osabi.
11944 * shnbsd-tdep.c: Include "osabi.h".
11945
11946 * sparc-tdep.c: Include "osabi.h".
11947 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11948 iterate over arches. Update call to gdbarch_init_osabi.
11949 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11950 tdep structure.
11951
11952 * vax-tdep.h: Don't include "osabi.h".
11953 (struct gdbarch_tdep): Remove.
11954 * vax-tdep.c: Include "osabi.h".
11955 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11956 iterate over arches. Don't allocate tdep. Update call
11957 to gdbarch_init_osabi.
11958 (vax_dump_tdep): Remove.
11959 (_initialize_vax_tdep): Update call to gdbarch_register.
11960
11961 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11962
11963 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11964 entirely.
11965 (breakpoint_re_set_one): Don't fetch the value for a disabled
11966 watchpoint.
11967
11968 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11969
11970 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11971 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11972 (COERCE_FLOAT_TO_DOUBLE): Remove.
11973 * gdbarch.c: Regenerate.
11974 * gdbarch.h: Regenerate.
11975 * Makefile.in: Remove value_h from gdbarch_h.
11976 * valops.c (coerce_float_to_double): New variable.
11977 (default_coerce_float_to_double): Remove.
11978 (standard_coerce_float_to_double): Remove.
11979 (value_arg_coerce): Use coerce_float_to_double.
11980 (_initialize_valops): Add "set coerce-float-to-double".
11981 * value.h (default_coerce_float_to_double): Remove prototype.
11982 (standard_coerce_float_to_double): Remove prototype.
11983
11984 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11985 prototyped.
11986 * mdebugread.c (parse_symbol): Likewise.
11987 * stabsread.c (define_symbol): Mark all functions as prototyped.
11988
11989 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11990 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11991 set_gdbarch_coerce_float_to_double.
11992 * arm-tdep.c (arm_gdbarch_init): Likewise.
11993 * frv-tdep.c (frv_gdbarch_init): Likewise.
11994 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11995 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11996 * mips-tdep.c (mips_gdbarch_init): Likewise.
11997 (mips_coerce_float_to_double): Remove.
11998 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11999 (rs6000_coerce_float_to_double): Remove.
12000 * s390-tdep.c (s390_gdbarch_init): Likewise.
12001 * sh-tdep.c (sh_gdbarch_init): Likewise.
12002 (sh_coerce_float_to_double): Remove.
12003 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12004 (sparc_coerce_float_to_double): Remove.
12005 * v850-tdep.c (v850_gdbarch_init): Likewise.
12006 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12007 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12008 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12009 (hppa_coerce_float_to_double): Remove prototype.
12010 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12011
12012 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12013
12014 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12015
12016 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12017
12018 Suggested by Stewart Brown <sb24@avaya.com>:
12019 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12020 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12021 (c_type_print_varspec_suffix): Likewise.
12022
12023 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12024
12025 * configure.in: Don't set and AC_SUBST SUBDIRS.
12026 * configure: Regenerated.
12027
12028 * configure.in: Remove code dealing with shared libraries.
12029 * Makefile.in: Remove HLDFLAGS and HLDENV.
12030 * configure: Regenerated.
12031
12032 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12033
12034 * frame.c (deprecated_frame_xmalloc): New function.
12035 (deprecated_set_frame_saved_regs_hack): New function.
12036 (deprecated_set_frame_extra_info_hack): New function.
12037 * frame.h (deprecated_frame_xmalloc): Declare.
12038 (deprecated_set_frame_saved_regs_hack): Declare.
12039 (deprecated_set_frame_extra_info_hack): Declare.
12040
12041 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12042
12043 * configure.in: Move code that provides the --enable-gdbtk option
12044 right after the code that handles the --enable-tui option, and
12045 polish it somewhat.
12046 * configure: Regenerated.
12047
12048 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12049 AC_CHECK_FUNCS and remove the old check for pread64.
12050 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12051 * acconfig.h (_GNU_SOURCE): Add.
12052 (HAVE_PREAD64): Remove.
12053 * configure, aclocal.m4, config.in: Regenerated.
12054
12055 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12056
12057 * alpha-tdep.c: Use get_frame_saved_regs.
12058 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12059 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12060 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12061 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12062 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12063
12064 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12065
12066 * configure.in: Remove all use of the SUBDIRS variable; add
12067 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12068 code providing the --enable-multi-ice option, and move it right in
12069 front of the code that checks whether gdbserver is supported.
12070 Polish that too.
12071 * configure: Regenerated.
12072 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12073 @SUBDIRS@.
12074
12075 2003-01-03 Andrew Cagney <cagney@redhat.com>
12076
12077 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12078 * avr-tdep.c, cris-tdep.c: Ditto.
12079 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12080 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12081
12082 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12083
12084 * configure.in: Remove --enable-netrom option.
12085 * configure: Regenerated.
12086
12087 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12088
12089 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12090 declaration for `struct re_pattern_buffer' instead.
12091 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12092
12093 2003-01-03 J. Brobecker <brobecker@gnat.com>
12094
12095 * mdebugread.c (parse_symbol): Count until the stEnd matching
12096 the structure name.
12097
12098 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12099
12100 * configure.in: Remove --with-cpu option.
12101 subscripts. Remove evil changequotes here.
12102 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12103 * config.in, configure: Regenerated.
12104
12105 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12106 * configure.in: Cleanup section that sources GDB and BFD configure
12107 subscripts. Remove evil changequotes here.
12108 * config.in, configure: Regenerated.
12109
12110 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12111
12112 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12113 frame accessor methods.
12114 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12115 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12116 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12117 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12118 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12119 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12120 * z8k-tdep.c: Ditto.
12121
12122 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12123
12124 * configure.in: Remove UI_OUT configuration code.
12125 * ada-lang.c: Update assuming UI_OUT is always true.
12126 * Makefile.in (UIOUT_CFLAGS): Remove.
12127 * configure: Regenerated.
12128 * TODO: Remove blurb about elimination of -DUI_OUT.
12129
12130 * configure.in: Move code that provides the --enable-gdbcli,
12131 --enable-gdbmi options right before the code that handles the
12132 --enable-tui option. Polish a bit.
12133 * configure: Regenerated.
12134
12135 * configure.in: Rewrite check for GNU regex and the
12136 --without-included regex option, and move it into the "Checks for
12137 library functions" section. This makes us use the system regex
12138 again by default on systems with version 2 of the GNU C library.
12139 This was apparently broken.
12140 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12141 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12142 * config.in, configure: Regenerated.
12143
12144 * configure.in: Move code that provides the --enable-tui option
12145 before the "Checks for libraries" section. Polish the code
12146 somewhat and set need_curses to yes if we build the TUI. Rewrite
12147 code that looks for a library providing termcap functionality to
12148 match more closely what's done in the Readline library, and move
12149 it into to the "Checks for libraries" section.
12150 * configure: Regenerated.
12151 * Makefile.in (TERMCAP): Remove variable.
12152 * config/i386/go32.mh (TERMCAP): Remove variable.
12153
12154 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12155
12156 * MAINTAINERS: Mention gdb_mbuild.sh.
12157 * gdb_mbuild.sh: Rewrite.
12158
12159 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12160
12161 * configure.in: Fix typo in last change.
12162 * config.in, configure: Regenerated.
12163
12164 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12165
12166 * valarith.c (value_binop): Delete obsolete code and comments.
12167 * configure.host: Ditto.
12168 * buildsym.h (make_blockvector): Ditto.
12169 * buildsym.c (make_blockvector): Ditto.
12170 * defs.h (enum language): Ditto.
12171 (chill_demangle): Ditto.
12172 * elfread.c (elf_symtab_read): Ditto.
12173 * dwarfread.c (CHILL_PRODUCER): Ditto.
12174 (set_cu_language): Ditto.
12175 (handle_producer): Ditto.
12176 * expprint.c (print_subexp): Ditto.
12177 * gdbtypes.c (chill_varying_type): Ditto.
12178 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12179 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12180 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12181 (chill_varying_type): Ditto.
12182 * language.h (_LANG_chill): Ditto.
12183 * language.c (binop_result_type, integral_type): Ditto.
12184 (character_type, string_type, structured_type): Ditto.
12185 (lang_bool_type, binop_type_check): Ditto.
12186 * stabsread.h (os9k_stabs): Ditto.
12187 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12188 (define_symbol, read_type, read_struct_fields): Ditto.
12189 (read_array_type, read_enum_type, read_huge_number): Ditto.
12190 (read_range_type, start_stabs): Ditto.
12191 * symfile.c (init_filename_language_table): Ditto.
12192 (add_psymbol_with_dem_name_to_list): Ditto.
12193 * symtab.c (symbol_init_language_specific): Ditto.
12194 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12195 * symtab.h (struct general_symbol_info): Ditto.
12196 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12197 * typeprint.c (typedef_print): Ditto.
12198 * utils.c (fprintf_symbol_filtered): Ditto.
12199 * valops.c (value_cast, search_struct_field, value_slice): Delete
12200 obsolete code.
12201 (varying_to_slice): Delete function.
12202 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12203 (varying_to_slice): Delete declaration.
12204 * MAINTAINERS: Update.
12205
12206 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12207
12208 * configure.in: Reorganize "Checks for library functions section"
12209 a bit. Remove check for `btowc' and `isascii' functions.
12210 * configure: Regenerated.
12211
12212 * acconfig.h (_MSE_INT_H): Remove.
12213 * configure.in: Create "Checks for header files" section, and move
12214 appropriate tests there. Don't check for objlist.h, wchar.h,
12215 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12216 misdetection fix. Also add "Checks for types", "Checks for
12217 compiler characteristics" and "Checks for library functions"
12218 sections.
12219 * config.in, configure: Regenerated.
12220
12221 * configure.in: Create "Checks for programs" section, and move
12222 appropriate tests there.
12223
12224 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12225
12226 * configure.in: Create "Checks for libraries" section, and move
12227 appropriate tests there. Cleanup check for wctype in libw. Use
12228 AC_SEARCH_LIBS to see whether we need libsocket.
12229 * configure: Regenerated.
12230
12231 For older changes see ChangeLog-2002
12232 \f
12233 Local Variables:
12234 mode: change-log
12235 left-margin: 8
12236 fill-column: 74
12237 version-control: never
12238 End:
This page took 0.334532 seconds and 4 git commands to generate.