12fd3c2d34642cc173e522bf531c9efc65f2ef62
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2
3 * parser-defs.h (struct exp_descriptor): New definition, containing
4 language-specific info for printing, prefixifying, dumping, and
5 evaluating expressions.
6 (exp_descriptor_standard): Declare new variable.
7 (print_subexp): Make global and declare here (from expprint.c).
8 (dump_subexp): Ditto.
9 (dump_subexp_body_standard): Declare.
10 (operator_length_standard): Declare.
11 (op_name_standard): Declare.
12 (print_subexp): Declare.
13 (print_subexp_standard): Declare.
14
15 * language.h (struct language_defn): Add la_exp_desc field to hold
16 pointer to table for language-specific operators.
17 Remove evaluate_exp field, which is now in struct exp_descriptor.
18
19 * parse.c (operator_length): Move most code to new
20 operator_length_standard function. Use language-specific information.
21 (operator_length_standard): New function taking most code from
22 operator_length.
23 (exp_descriptor_standard): New constant.
24
25 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
26 and OP_EXTENDED_LAST.
27
28 * expprint.c (print_subexp): Use language-specific print_subexp.
29 Make global; remove static declaration.
30 Move most code to print_subexp_standard.
31 (print_subexp_standard): New function, containing code formerly in
32 print_subexp.
33 (op_name): Add expression to argument signature.
34 Use langauge-specific op_name.
35 Move most code to op_name_standard.
36 (op_name_standard): New function, containing code formerly in op_name.
37 (dump_subexp): Use new version of op_name function.
38 Use language-specific dump_subexp_body, and move most existing code to
39 dump_subexp_body_standard.
40 (dump_raw_expression): Use new op_name interface.
41 (dump_subexp_body): Move most code to dump_subexp_body_standard.
42 (dump_subexp_body_standard): New function, containing code formerly
43 in dump_subexp_body.
44
45 * language.c (unknown_language): Add default la_exp_desc field and
46 remove evaluate_exp field.
47 (auto_language): Ditto.
48 (local_language): Ditto.
49 * f-lang.c (f_language_defn): Ditto.
50 * c-lang.c (c_language_defn): Ditto.
51 (cplus_language_defn): Ditto.
52 (asm_language_defn): Ditto.
53 (minimal_language_defn): Ditto.
54 * p-lang.c (pascal_language_defn): Ditto.
55 * m2-lang.c (m2_language_defn): Ditto.
56 * objc-lang.c (objc_language_defn): Ditto.
57
58 * jv-lang.c (exp_descriptor_java): New variable, containing
59 Java-specific expression evaluator.
60 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
61 field.
62 * scm-lang.c (exp_descriptor_scm): New variable, containing
63 Scheme-specific expression evaluator.
64 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
65 field.
66 * objc-lang.c (print_object_command): Take evaluate_exp from the
67 la_exp_desc field.
68
69 * Makefile.in (eval.o): Add dependency on parser-defs.h.
70
71 * eval.c: Include parser-defs.h for the full declaration of
72 la_exp_desc's type.
73 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
74
75 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
76
77 * parser-defs.h (operator_length): Declare.
78
79 * parse.c (length_of_subexp): Use operator_length to get operator
80 lengths and arities for operators.
81 Move most code to new operator_length function.
82 (operator_length): New function absorbing most code from
83 length_of_subexp.
84 (prefixify_subexp): Remove large case and use operator_length instead.
85 (parse_exp_1): Use renamings:
86 dump_prefix_expression => dump_raw_expression and
87 dump_postfix_expression => dump_prefix_expression.
88
89 * expression.h (dump_prefix_expression): Rename to ...
90 (dump_raw_expression): New name.
91 (dump_postfix_expression): Rename to ...
92 (dump_prefix_expression): New name.
93
94 * expprint.c (dump_subexp): Make global. Add comment.
95 Move most existing code to dump_subexp_body.
96 (dump_subexp_body): New function.
97 (dump_prefix_expression): Rename to dump_raw_expression.
98 Remove attempt to print the expression via print_expression: it can't
99 work before the expression is prefixified.
100 (dump_raw_expression): Renamed from dump_prefix_expression.
101 (dump_postfix_expression): Rename to dump_prefix_expression, since
102 that's what it does.
103 Remove 'note' parameter, since this routine must be used on
104 prefixified expression.
105 (dump_prefix_expression): Renamed from dump_postfix_expression.
106
107 2003-09-22 Jim Blandy <jimb@redhat.com>
108
109 * dwarf2read.c (read_array_type): When building the type for an
110 array of unspecified length, make sure to choose the upper bound
111 so that the array's total length comes out to be zero --- that's
112 how we represent such arrays.
113
114 2003-09-22 Michael Chastain <mec@shout.net>
115
116 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
117
118 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
119
120 * top.c (quit_force): Fix indirect call to quit_target so
121 a struct qt_args pointer is passed.
122
123 2003-09-22 Andrew Cagney <cagney@redhat.com>
124
125 * arch-utils.h (init_frame_pc_noop): Delete declaration.
126 * arch-utils.c (init_frame_pc_noop): Delete function.
127 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
128 "init_frame_pc".
129 * mips-tdep.c (mips_gdbarch_init): Ditto.
130 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
131 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
132 declaration.
133 (DEPRECATED_INIT_FRAME_PC): Delete macro.
134 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
135 declaration.
136 (DEPRECATED_INIT_FRAME_PC): Delete macro.
137
138 2003-09-22 Anthony Green <green@redhat.com>
139
140 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
141 declaration.
142
143 2003-09-20 Andrew Cagney <cagney@redhat.com>
144
145 * breakpoint.c: Eliminate ARGSUSED.
146 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
147 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
148 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
149 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
150 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
151 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
152 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
153 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
154 * wince.c, remote-vx.c: Ditto.
155
156 * cli/cli-script.c: Remove "register" attributes.
157 * config/pa/tm-hppa.h: Ditto.
158 * cli/cli-decode.c: Ditto.
159 * cli/cli-cmds.c: Ditto.
160
161 2003-09-19 Andrew Cagney <cagney@redhat.com>
162
163 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
164 DEPRECATED_NPC_REGNUM.
165 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
166
167 2003-09-19 Christopher Faylor <cgf@redhat.com>
168
169 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
170
171 2003-09-19 Jim Blandy <jimb@redhat.com>
172
173 * macrotab.c (macro_include): Use the correct comparison to find
174 the appropriate place for this inclusion in the list.
175
176 2003-09-19 Andrew Cagney <cagney@redhat.com>
177
178 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
179 (DEPRECATED_HPUX_TEXT_END): Define.
180 (deprecated_hpux_text_end): Declare.
181 (struct target_ops): Declare opaque.
182 * hppah-nat.c (text_end): Make static.
183 (deprecated_hpux_text_end): New function.
184 * exec.c (text_end): Delete global variable.
185 (NEED_TEXT_START_END): Do not define.
186 (exec_file_attach): Replace code computing "text_end" code with
187 call to DEPRECATED_HPUX_TEXT_END.
188
189 2003-09-19 Andrew Cagney <cagney@redhat.com>
190
191 * utils.c (align_up, align_down): New functions.
192 * defs.h (align_up, align_down): Declare.
193 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
194 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
195 and "align_down".
196 (round_up, round_down): Delete functions.
197 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
198 "align_down".
199 (ROUND_DOWN, ROUND_UP): Delete macros.
200 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
201 * h8300-tdep.c: Replace "round_up" and "round_down" with
202 "align_up" and "align_down".
203 (round_up, round_down): Delete macros.
204 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
205 "align_down".
206 (ROUND_UP, ROUND_DOWN): Delete macros.
207
208 2003-09-18 J. Brobecker <brobecker@gnat.com>
209
210 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
211 hard-coded constant. Use the proper machine name instead.
212
213 2003-09-17 Andrew Cagney <cagney@redhat.com>
214
215 * sparc-tdep.c (legacy_register_name): Delete function.
216 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
217 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
218 * infcmd.c (gdb_register_name): Delete variable.
219 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
220 REGISTER_NAME and "tm.h".
221 * gdbarch.h, gdbarch.c: Regenerate.
222 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
223 REGISTER_NAMES in comments.
224 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
225 * m68klinux-nat.c (regmap): Ditto.
226
227 2003-09-17 Jim Blandy <jimb@redhat.com>
228
229 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
230
231 2003-09-17 Andrew Cagney <cagney@redhat.com>
232
233 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
234 (ppcnbsd_init_abi): Set "use_struct_convention" to
235 "ppcnbsd_use_struct_convention".
236
237 2003-09-17 Mark Kettenis <kettenis@gnu.org>
238
239 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
240 * gdbarch.h, gdbarch.c: Regenerate.
241 (stabs_argument_has_addr): New architecture method.
242 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
243 * arch-utils.c: Include "buildsym.h".
244 (default_stabs_argument_has_addr): New function.
245 * stabsread.c (define_symbol): Use stabs_argument_has_addr
246 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
247
248 2003-09-17 Andrew Cagney <cagney@redhat.com>
249
250 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
251 * gdbarch.h, gdbarch.c: Regenerate.
252 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
253 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
254 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
255 * sparcnbsd-tdep.c: Update.
256
257 2003-09-17 Andrew Cagney <cagney@redhat.com>
258
259 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
260 * gdbarch.h, gdbarch.c: Regenerate.
261 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
262 * d10v-tdep.c, frame.c: Update.
263 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
264 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
265 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
266 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
267 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
268 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
269 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
270 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
271 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
272 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
273 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
274 * config/pa/nm-hppah.h: Update.
275
276 2003-09-16 Andrew Cagney <cagney@redhat.com>
277
278 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
279 "use_struct_convention" to "ppc_linux_use_struct_convention".
280 (ppc_linux_use_struct_convention): New function.
281 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
282 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
283 "rs6000_use_struct_convention".
284 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
285 declaration.
286 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
287 Delete function.
288
289 2003-09-16 Andrew Cagney <cagney@redhat.com>
290
291 * buildsym.c: Remove more occurances of "register".
292 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
293 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
294 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
295 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
296 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
297 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
298 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
299 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
300
301 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
302
303 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
304 numbers to enumeration values.
305 * sh-tdep.c: Accomodate above change.
306 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
307 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
308 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
309 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
310 (IS_FPUSH): Rename from IS_FMOV.
311 (sh_extract_struct_value_address): Remove useless comment.
312 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
313 instead of own local values.
314 (sh_dump_tdep): Remove.
315 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
316 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
317
318 2003-09-15 Andrew Cagney <cagney@redhat.com>
319
320 * doublest.c (convert_floatformat_to_doublest): No longer need to
321 cast "exp_bias" to an int. Reverts 2002-12-04 change.
322
323 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
324
325 * values.c (unpack_double): Call floatformat_is_valid.
326
327 2003-09-15 Mark Kettenis <kettenis@gnu.org>
328
329 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
330 ps_strings into a long.
331
332 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
333 _initialize_am64fbsd_nat.
334
335 2003-09-15 Kevin Buettner <kevinb@redhat.com>
336
337 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
338 associated with DW_AT_ranges attribute is out of bounds.
339
340 2003-09-15 David Lecomber <dsl@sources.redhat.com>
341
342 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
343
344 2003-09-14 Michael Chastain <mec@shout.net>
345
346 * config/m68k/nm-apollo68v.h: Delete.
347 * config/m68k/xm-apollo68v.h: Delete.
348
349 2003-09-14 Andrew Cagney <cagney@redhat.com>
350
351 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
352 * dcache.c: Update copyrights and descriptions.
353 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
354
355 2003-09-14 Andrew Cagney <cagney@redhat.com>
356
357 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
358 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
359
360 2003-09-14 Andrew Cagney <cagney@redhat.com>
361
362 * alpha-nat.c: Remove some occurances of "register".
363 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
364 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
365 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
366 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
367 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
368 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
369 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
370 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
371 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
372 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
373 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
374 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
375 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
376 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
377 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
378 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
379 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
380 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
381 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
382 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
383 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
384 * values.c, vax-tdep.c, xcoffread.c: Ditto.
385
386 2003-09-13 Andrew Cagney <cagney@redhat.com>
387
388 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
389 * ppc-tdep.h (struct regcache): Declare opaque.
390 * objfiles.h (struct objfile_data): Declare opaque.
391 * cp-support.h (struct objfile): Declare opaque.
392 * linux-nat.h (target_waitstatus): Declare opaque.
393
394 2003-09-14 Mark Kettenis <kettenis@gnu.org>
395
396 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
397 (stabs_argument_has_addr): New architecture method.
398 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
399 * arch-utils.c: Include "buildsym.h".
400 (default_stabs_argument_has_addr): New function.
401 * stabsread.c (define_symbol): Use stabs_argument_has_addr
402 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
403
404 * cris-tdep.c (cris_gdbarch_init): Set
405 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
406 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
407 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
408 * mips-tdep.c (mips_gdbarch_init): Likewise.
409 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
410 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
411
412 2003-09-13 Andrew Cagney <cagney@redhat.com>
413
414 * values.c (using_struct_return): Delete "function" and "funcaddr"
415 parameters.
416 * value.h (using_struct_return): Update declaration.
417 * infcmd.c (finish_command_continuation): Update.
418 (finish_command): Update.
419 * infcall.c (call_function_by_hand): Update.
420 * eval.c (evaluate_subexp_standard): Update.
421
422 2003-09-13 Christopher Faylor <cgf@redhat.com>
423
424 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
425 SSE registers since gdb will not operate correctly without this.
426 Restore include file ordering munged in previous change.
427 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
428
429 2003-09-13 Mark Kettenis <kettenis@gnu.org>
430
431 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
432 REG_STRUCT_HAS_ADDR.
433 * gdbarch.c, gdbarch.h: Updated.
434 * infcall.c (call_function_by_hand): Update.
435 * stabsread.c (define_symbol): Updated.
436
437 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
438
439 2003-09-12 Christopher Faylor <cgf@redhat.com>
440
441 * win32-nat.c: Reorganize so that defines used by target headers are
442 actually defined by the system headers.
443 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
444 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
445
446 2003-09-12 Jim Blandy <jimb@redhat.com>
447
448 * dbxread.c (read_dbx_symtab): Don't report an internal error if
449 the file has no .data, .bss, or .rodata sections. Instead wait
450 until we see a variable alleged to live in one of those sections.
451
452 * dbxread.c (read_dbx_symtab): If we have no .data section and no
453 .bss section, presume that any variables we find live in the
454 .rodata section.
455
456 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
457 offsets for global and static variables.
458
459 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
460 symbol types are, by definition, in the .data section, so it is
461 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
462 If there is no .data section, there should be no N_DATA or N_DATA
463 | N_EXT symbols.
464
465 2003-09-12 Mark Kettenis <kettenis@gnu.org>
466
467 * amd64fbsd-tdep.c: Fix sigtramp recognition.
468 (amd64fbsd_sigcontext_addr): Rewrite.
469 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
470 with correct values.
471 (amd64fbsd_sc_reg_offset): Initialize with correct values.
472 (amd64fbsd_init_abi): Fix typo.
473
474 2003-09-12 Andrew Cagney <cagney@redhat.com>
475
476 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
477 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
478
479 2003-09-12 Andrew Cagney <cagney@redhat.com>
480
481 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
482 "entry_file_highpc". Update comments.
483 * defs.h (deprecated_inside_entry_file): Rename
484 "inside_entry_file".
485 * blockframe.c (deprecated_inside_entry_file): Rename
486 "inside_entry_file".
487 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
488 * vax-tdep.c (vax_frame_chain): Update.
489 * sh64-tdep.c (sh64_frame_chain): Update.
490 * sh-tdep.c (sh_frame_chain): Update.
491 * rs6000-tdep.c (rs6000_frame_chain): Update.
492 * ns32k-tdep.c (ns32k_frame_chain): Update.
493 * mips-tdep.c (mips_frame_chain): Update.
494 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
495 * m32r-tdep.c (m32r_frame_this_id): Update.
496 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
497 * frv-tdep.c (frv_frame_this_id): Update.
498 * d10v-tdep.c (d10v_frame_this_id): Update.
499 * cris-tdep.c (cris_frame_chain): Update.
500 * blockframe.c (legacy_frame_chain_valid): Update.
501 * avr-tdep.c (avr_frame_this_id): Update.
502 * arm-tdep.c (arm_prologue_this_id): Update.
503 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
504 * objfiles.c (objfile_relocate): Update.
505 * mipsread.c (mipscoff_symfile_read): Update.
506 (mipscoff_symfile_read): Update.
507 * mdebugread.c (parse_partial_symbols): Update.
508 * dwarfread.c (read_file_scope): Update.
509 * dwarf2read.c (read_file_scope): Update.
510 * dbxread.c (read_dbx_symtab): Update.
511 (read_dbx_symtab): Update.
512 * coffread.c (complete_symtab): Update.
513
514 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
515
516 * top.c (quit_target): New static helper function.
517 (quit_force): Moved code to quit_target(). Call quit_target()
518 via catch_errors() to catch errors during quit.
519
520 2003-09-11 David Carlton <carlton@kealia.com>
521
522 * buildsym.c (finish_block): Use allocate_block to allocate the
523 block.
524 * mdebugread.c (new_block): Add FIXME.
525
526 2003-09-11 David Carlton <carlton@kealia.com>
527
528 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
529 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
530 (recursive_dump_type): Ditto.
531 * printcmd.c (print_formatted): Ditto.
532 * typeprint.c (print_type_scalar): Ditto.
533 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
534 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
535 * cp-support.h: Declare cp_check_possible_namespace_symbols,
536 maint_cplus_cmd_list.
537 * cp-support.c: Make maint_cplus_cmd_list extern.
538 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
539 command.h.
540 (lookup_symbol_file): Look in possible namespace blocks when
541 appropriate.
542 (initialize_namespace_symtab): New.
543 (get_possible_namespace_block, free_namespace_block)
544 (check_possible_namespace_symbols)
545 (check_possible_namespace_symbols_loop)
546 (check_one_possible_namespace_symbol)
547 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
548 (_initialize_cp_namespace): Ditto.
549 * block.h: Declare allocate_block.
550 * block.c (allocate_block): New.
551 * jv-lang.c (get_java_class_symtab): Allocate blocks via
552 allocate_block.
553 * symfile.h: Update declaration of add_psymbol_to_list.
554 * symfile.c (add_psymbol_to_list): Return the partial symbol in
555 question.
556 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
557 scan_partial_symbols_call.
558 (scan_partial_symbols): Add NAMESPACE argument; update calls to
559 helper functions.
560 (add_partial_symbol): If necessary, scan mangled names for names
561 of namespaces.
562 (add_partial_namespace): Add NAMESPACE argument; generate partial
563 symbols associated to namespaces.
564 (add_partial_enumeration): Add NAMESPACE argument.
565 (new_symbol): Allow namespace syms.
566 (read_namespace): Generate namespace syms.
567 * objfiles.h: Add opaque declaration of struct symtab.
568 (struct objfile): Add cp_namespace_symtab member.
569 * objfiles.c (allocate_objfile): Set
570 objfile->cp_namespace_symtab.
571 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
572 dictionary_h, command_h.
573
574 2003-09-11 Andrew Cagney <cagney@redhat.com>
575
576 * rs6000-tdep.c (rs6000_push_dummy_call): Use
577 regcache_raw_write_signed to set SP_REGNUM, move the operation to
578 near the function's end.
579 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
580 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
581 regcache_raw_write_signed to set SP_REGNUM.
582
583 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
584
585 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
586 orig_addrs is set up properly.
587
588 2003-09-11 Andrew Cagney <cagney@redhat.com>
589
590 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
591 * gdbarch.h, gdbarch.c: Re-generate.
592 * infcall.c (call_function_by_hand): Update.
593 * hppa-tdep.c (hppa_push_arguments): Update.
594 * ada-lang.c (place_on_stack): Update.
595 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
596 * sparc-tdep.c (sparc_gdbarch_init): Update.
597 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
598 * hppa-tdep.c (hppa_gdbarch_init): Update.
599 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
600 stack_align.
601
602 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
603
604 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
605 register do need a frame.
606
607 2003-09-11 Andrew Cagney <cagney@redhat.com>
608
609 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
610 buildable since GDB 5.0.
611 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
612 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
613 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
614 * irix4-nat.c: Delete file.
615 * config/mips/irix4.mh: Delete file.
616 * config/mips/irix3.mh: Delete file.
617 * config/mips/irix3.mt: Delete file.
618 * config/mips/tm-irix3.h: Delete file.
619 * config/mips/nm-irix3.h: Delete file.
620 * config/mips/xm-irix3.h: Delete file.
621 * config/mips/nm-irix4.h: Delete file.
622 * config/mips/xm-irix4.h: Delete file.
623 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
624
625 2003-09-10 J. Brobecker <brobecker@gnat.com>
626
627 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
628 * Makefile.in (hppa-tdep.o): Update dependencies.
629
630 2003-09-10 James E Wilson <wilson@specifixinc.com>
631
632 * MAINTAINERS: Change my e-mail address. Move to paper trail
633 section.
634
635 2003-09-10 Kevin Buettner <kevinb@redhat.com>
636
637 * MAINTAINERS (frv): New ISA entry.
638
639 2003-09-10 Kevin Buettner <kevinb@redhat.com>
640
641 * frv-tdep.c (dis-asm.h): Include.
642 * Makefile.in (frv-tdep.o): Update dependencies.
643
644 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
645
646 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
647 Fix typo for high range of floating registers.
648
649 2003-09-09 David Carlton <carlton@kealia.com>
650
651 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
652 highpc initialization here out of scan_partial_symbols.
653 (scan_partial_symbols): Restructure into a recursive version,
654 calling add_partial_namespace and add_partial_enumeration when
655 appropriate.
656 (add_partial_namespace): New.
657 (add_partial_enumeration, locate_pdi_sibling): Ditto.
658
659 2003-09-09 Andrew Cagney <cagney@redhat.com>
660
661 * rs6000-tdep.c (ppc_push_return_address): Delete function.
662 (rs6000_push_dummy_call): Set LR to BP_ADDR.
663 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
664 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
665
666 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
667 (rs6000_push_dummy_call): Set the "TOC" register.
668
669 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
670 methods "max_register_raw_size", "max_register_virtual_size" or
671 "register_virtual_size".
672
673 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
674
675 * MAINTAINERS: Update my e-mail address.
676
677 2003-09-09 Andrew Cagney <cagney@redhat.com>
678
679 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
680 (rs6000_push_dummy_call): Store the struct return address.
681 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
682
683 2003-09-09 Andrew Cagney <cagney@redhat.com>
684
685 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
686 "ppc_sysv_abi_push_arguments".
687 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
688 "ppc_sysv_abi_push_arguments".
689 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
690 instead of "push_arguments".
691 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
692
693 2003-09-09 Andrew Cagney <cagney@redhat.com>
694
695 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
696 instead of CALL_DUMMY_ADDRESS.
697
698 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
699
700 * p-lang.c: Eliminate "register".
701 * c-lang.c: Ditto.
702 * expprint.c: Ditto.
703 * f-lang.c: Ditto.
704 * jv-lang.c: Ditto.
705 * language.c: Ditto.
706 * m2-lang.c: Ditto.
707 * parse.c: Ditto.
708 * scm-lang.c: Ditto.
709 * objc-lang.c: Ditto.
710
711 2003-09-09 Nick Clifton <nickc@redhat.com>
712
713 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
714
715 2003-09-04 Andrew Cagney <cagney@redhat.com>
716
717 * avr-tdep.c: Include "dis-asm.h".
718 * cris-tdep.c: Include "dis-asm.h".
719 (cris_delayed_get_disassembler): Use "struct disassemble_info"
720 instead of corresponding typedef.
721 * h8300-tdep.c: Include "dis-asm.h".
722 * ia64-tdep.c: Include "dis-asm.h".
723 * i386-tdep.c: Include "dis-asm.h".
724 (i386_print_insn): Use "struct disassemble_info" instead of
725 corresponding typedef.
726 * m68k-tdep.c: Include "dis-asm.h".
727 * mcore-tdep.c: Include "dis-asm.h".
728 * mips-tdep.c: Include "dis-asm.h".
729 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
730 instead of corresponding typedef.
731 * ns32k-tdep.c: Include "dis-asm.h".
732 * s390-tdep.c: Include "dis-asm.h".
733 * sparc-tdep.c: Include "dis-asm.h".
734 * vax-tdep.c: Include "dis-asm.h".
735 * v850-tdep.c: Include "dis-asm.h".
736 * mn10300-tdep.c: Include "dis-asm.h".
737 * rs6000-tdep.c: Include "dis-asm.h".
738 * xstormy16-tdep.c: Include "dis-asm.h".
739 (_initialize_xstormy16_tdep): Delete "extern" declaration of
740 print_insn_xstormy16.
741 * Makefile.in (v850-tdep.o): Update dependencies.
742 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
743 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
744 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
745 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
746 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
747 (gdbarch_h): Remove $(dis_asm_h).
748 * disasm.c: Include "dis-asm.h".
749 (dis_asm_read_memory): Use "struct disassemble_info" instead of
750 corresponding typedef.
751 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
752 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
753 * gdbarch.sh: Do not include "dis-asm.h".
754 (struct disassemble_info): Declare opaque.
755 (TARGET_PRINT_INSN): Update declaration.
756 * gdbarch.h, gdbarch.c: Re-generate.
757
758 2003-09-08 Andrew Cagney <cagney@redhat.com>
759
760 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
761 CALL_DUMMY_ADDRESS, change to a predicate.
762 * gdbarch.h, gdbarch.c: Re-generate.
763 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
764 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
765 * infcall.c (call_function_by_hand): Ditto.
766 * sparc-tdep.c (sparc_push_return_address): Ditto.
767 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
768 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
769 CALL_DUMMY_ADDRESS with entry_point_address.
770 * v850-tdep.c (v850_push_return_address): Ditto.
771 * s390-tdep.c (s390_push_return_address): Ditto.
772 * rs6000-tdep.c (ppc_push_return_address): Ditto.
773 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
774 * mcore-tdep.c (mcore_push_return_address): Ditto.
775 * cris-tdep.c (cris_push_return_address): Ditto.
776 * arm-tdep.c (arm_push_return_address): Ditto.
777
778 2003-09-08 Andrew Cagney <cagney@redhat.com>
779
780 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
781 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
782 and REG_UNMODIFIED to REG_SAME_VALUE.
783 (execute_cfa_program): Update.
784 (dwarf2_frame_cache): Update. Initialize table to
785 REG_UNSPECIFIED, complain if CFI fails to specify a register's
786 location.
787 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
788
789 2003-09-08 Andrew Cagney <cagney@redhat.com>
790
791 * gnu-nat.c: Remove "inline" function attribute.
792 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
793
794 2003-09-08 Kevin Buettner <kevinb@redhat.com>
795
796 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
797 target.
798
799 2003-09-08 Kevin Buettner <kevinb@redhat.com>
800
801 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
802 (frame_extra_info): Rename this struct to frv_unwind_cache.
803 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
804 Add fields ``prev_sp'' and ``base''.
805 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
806 (frv_saved_pc_after_call, frv_init_extra_frame_info)
807 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
808 Delete.
809 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
810 Revise all callers. Fill in the unwind cache argument and make
811 other adjustments to account for new frame mechanisms.
812 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
813 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
814 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
815 (frv_frame_unwind, frv_frame_base): New structs.
816 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
817 additional arguments expected by this method and adjust function
818 body accordingly.
819 (frv_gdbarch_init): Remove calls to the following functions:
820 set_gdbarch_deprecated_init_frame_pc(),
821 set_gdbarch_deprecated_saved_pc_after_call(),
822 set_gdbarch_deprecated_frame_chain(),
823 set_gdbarch_deprecated_frame_saved_pc(),
824 set_gdbarch_deprecated_frame_init_saved_regs(),
825 set_gdbarch_deprecated_push_arguments(),
826 set_gdbarch_deprecated_push_return_address(),
827 set_gdbarch_deprecated_pop_frame(),
828 set_gdbarch_deprecated_call_dummy_words(),
829 set_gdbarch_deprecated_sizeof_call_dummy_words(),
830 set_gdbarch_deprecated_init_extra_frame_info(),
831 set_gdbarch_deprecated_dummy_write_sp(), and
832 set_gdbarch_deprecated_pc_in_call_dummy().
833 Add calls to the following functions:
834 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
835 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
836 frame_base_set_default().
837 * Makefile.in (frv-tdep.o): Update dependencies.
838
839 2003-09-09 Mark Kettenis <kettenis@gnu.org>
840
841 * dwarf2-frame.c (read_encoded_value): Add support for
842 DW_EH_PE_aligned encoding.
843
844 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
845
846 * infrun.c (normal_stop): Don't print a message if the inferior
847 has exited.
848
849 2003-09-08 Jim Blandy <jimb@redhat.com>
850
851 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
852 * dbxread.c: #include "gdb_assert.h".
853 (read_dbx_symtab): If the objfile has no .data section, use the
854 section index for the .bss section instead.
855
856 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
857
858 * frame.c (deprecated_safe_get_selected_frame): New function.
859 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
860 * findvar.c (read_var_value): Call it.
861
862 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
863
864 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
865 (sh64-tdep.o): Add dependencies.
866 * configure.tgt: Add FIXME to sh-*-linux*.
867 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
868 (sh_gdbarch_init): Always set correct sh_show_regs function
869 pointer. Call sh64_gdbarch_init() if machine type is sh5.
870 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
871 * sh64-tdep.c: New file, containing all sh64 related code from
872 sh-tdep.c.
873 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
874 * config/sh/linux.mt (TDEPFILES): Ditto.
875 * config/sh/nbsd.mt (TDEPFILES): Ditto.
876 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
877 * config/sh/wince.mt (TDEPFILES): Ditto.
878
879 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
880
881 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
882 (stop_wait_callback): Handle !lp->signalled also.
883 (lin_lwp_has_pending, flush_callback): New functions.
884 (lin_lwp_wait): Call flush_callback.
885 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
886 (linux_proc_pending_signals): New function.
887 * linux-nat.h (linux_proc_pending_signals): Add prototype.
888
889 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
890
891 From Nick Kelsey <nickk@ubicom.com>:
892 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
893 when the stop PC is at the beginning of a function also.
894
895 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
896
897 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
898 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
899
900 2003-09-06 Mark Kettenis <kettenis@gnu.org>
901
902 * sol-thread.c: Include "gdb_string.h".
903
904 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
905
906 * gcore.c: Reorder include files in alphabetical order. Include
907 "gdb_assert.h". Various coding style fixes.
908 (derive_stack_segment, derive_heap_segment): Replace check for
909 non-null BOTTOM and TOP with gdb_assert.
910 (derive_heap_segment): Replace check for successful creation of
911 ZERO with gdb_assert.
912 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
913
914 2003-09-04 Andrew Cagney <cagney@redhat.com>
915
916 * thread-db.c (verbose_dlsym): New function.
917 (thread_db_load): Use verbose_dlsym
918 (thread_db_new_objfile): Print that libthread_db was loaded, and
919 that thread debugging was enabled.
920
921 2003-09-04 Andrew Cagney <cagney@redhat.com>
922
923 * configure.tgt: Add "mips64*-*-*" target. Delete
924 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
925 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
926 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
927 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
928 mips*-sony-*, and mips64*-*-elf* targets.
929 * config/mips/embedl.mt: Delete file.
930 * config/mips/embedl64.mt: Delete file.
931 * config/mips/mips.mt: Delete file.
932 * config/mips/mips64.mt: Delete file.
933 * config/mips/tm-embed.h: Delete file.
934 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
935 * config/mips/embed64.mt: Delete out-of-date comment.
936
937 2003-09-04 Andrew Cagney <cagney@redhat.com>
938
939 * hppa-tdep.c (hppa_gdbarch_init): Set
940 "have_nonsteppable_watchpoint".
941 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
942 * mips-tdep.c (mips_dump_tdep): Do not print
943 HAVE_NONSTEPPABLE_WATCHPOINT.
944 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
945 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
946 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
947 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
948
949 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
950
951 * breakpoint.c (watchpoint_check): Remove accidentally checked in
952 unused code. Add comment.
953
954 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
955
956 * breakpoint.c (watchpoint_check): Check for pc being in an
957 epilogue if watchpoint frame couldn't be found.
958
959 2003-09-04 Andrew Cagney <cagney@redhat.com>
960
961 * Makefile.in: Re-generate all dependencies.
962
963 2003-09-03 Andrew Cagney <cagney@redhat.com>
964
965 * arch-utils.h (legacy_print_insn): Delete declaration.
966 * arch-utils.c (legacy_print_insn): Delete function.
967 * disasm.c (deprecated_tm_print_insn_info): Delete.
968 (_initialize_disasm): Delete function, contained code initializing
969 deprecated_tm_print_insn_info.
970 * gdbarch.sh (deprecated_tm_print_insn): Delete.
971 (deprecated_tm_print_insn_info): Delete.
972 (TARGET_PRINT_INSN): Do not provide a default.
973 * gdbarch.h, gdbarch.c: Re-generate.
974
975 2003-09-03 Andrew Cagney <cagney@redhat.com>
976
977 * disasm.c (fprintf_disasm): New function.
978 (gdb_disassemble_info): Call "init_disassemble_info", instead of
979 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
980 reverts 2003-08-14 change.
981 (_initialize_disasm): Call "init_disassemble_info", instead of
982 INIT_DISASSEMBLE_INFO_NO_ARCH.
983
984 2003-09-03 Michael Snyder <msnyder@redhat.com>
985
986 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
987
988 2003-09-03 Andrew Cagney <cagney@redhat.com>
989
990 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
991 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
992 * symfile.c (syms_from_objfile): Update.
993 (reread_symbols): `Update
994 * exec.c (exec_file_attach): Update.
995 (exec_file_attach): Update.
996 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
997 2003-08-29 change.
998 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
999
1000 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1001
1002 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1003 trad-frame.h.
1004 (arm_get_cache): Delete macro.
1005 (struct arm_prologue_cache): Update comments. Make saved_regs into
1006 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1007 to prev_sp.
1008 (thumb_scan_prologue): Update for cache changes. Don't call
1009 DEPRECATED_PC_IN_CALL_DUMMY.
1010 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1011 argument and use it in desperation search for our prologue. Do not
1012 search past the specified PC.
1013 (arm_make_prologue_cache): Simplify.
1014
1015 (arm_prologue_this_id, arm_prologue_prev_register)
1016 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1017 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1018 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1019 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1020 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1021
1022 (arm_frame_chain_valid, arm_find_callers_reg)
1023 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1024 (arm_pop_frame): Delete obsolete methods.
1025 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1026
1027 (arm_gdbarch_init): Update for new frame methods. Register prologue
1028 and sigtramp unwinders. Set the default frame base method.
1029
1030 * Makefile.in (arm-tdep.o): Update dependencies.
1031 * varobj.c (find_frame_addr_in_frame_chain): Call
1032 get_frame_base_address.
1033 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1034
1035 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1036
1037 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1038 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1039 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1040 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1041 Take NEXT_FRAME and CACHE arguments. Call
1042 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1043 Set unwound_pc in CACHE instead of modifying the frame argument.
1044 Don't bother checking the frame type when looking for sigtramp
1045 frames.
1046 (arm_make_prologue_cache, arm_frame_chain)
1047 (arm_init_extra_frame_info): New functions.
1048
1049 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1050
1051 * arm-tdep.c (arm_get_cache): Define.
1052 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1053 unwound_sp, unwound_pc, and saved_regs.
1054 (thumb_scan_prologue): Take a cache instead of the frame.
1055 (arm_scan_prologue): Likewise.
1056 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1057 instead of a temporary frame.
1058 (arm_init_extra_frame_info): Allocate and use a cache.
1059 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1060
1061 2003-09-03 Andrew Cagney <cagney@redhat.com>
1062
1063 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1064 * config/mips/wince.mt (TM_CLIBS): Ditto.
1065 * config/sh/wince.mt (TM_CLIBS): Ditto.
1066 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1067 * config/sparc/sp64.mt (CC): Delete.
1068
1069 2003-09-03 Andrew Cagney <cagney@redhat.com>
1070
1071 * defs.h: Do not include "arch-utils.h".
1072 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1073 GDB_MULTI_ARCH_PURE.
1074 * configure.in (GDB_MULTI_ARCH): Do not define.
1075 * configure, config.in: Regenerate.
1076 * configure.tgt: Do not set variable "gdb_multi_arch".
1077 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1078 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1079 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1080 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1081 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1082 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1083 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1084 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1085 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1086 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1087 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1088 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1089 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1090 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1091 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1092 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1093 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1094 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1095
1096 2003-08-30 Michael Chastain <mec@shout.net>
1097
1098 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1099 * config/m68k/nm-hp300hpux.h: Delete.
1100 * config/m68k/tm-hp300hpux.h: Delete.
1101 * config/m68k/xm-hp300hpux.h: Delete.
1102 * config/m68k/xm-hp300bsd.h: Delete.
1103 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1104 tm-hp300hpux.h, xm-hp300hpux.h.
1105 * somsolib.c: Remove comment about hp300 shared libraries.
1106
1107 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1108
1109 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1110 Only define PTRACE_GET_THREAD_AREA is not already defined.
1111 Various style fixes in code and comments and some additional
1112 spelling fixes in comments. Move after functions dealing with
1113 debug registers.
1114 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1115 Fix coding-style.
1116
1117 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1118 frame_unwind_register_unsigned instead of
1119 frame_unwind_unsigned_register.
1120
1121 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1122
1123 * configure.in: Search for gethostbyname in libnsl.
1124 * configure: Regenerated.
1125
1126 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1127
1128 * configure.in: Remove redundant AC_MSG_RESULT in check for
1129 uintptr_t in stdint.h.
1130 * configure: Regenerated.
1131
1132 * amd64-nat.h (struct regcache): Add opaque declaration.
1133
1134 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1135 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1136 Change "register array" to "register cache" in comments.
1137 (x86_64_linux_gregset64_reg_offset): New variable.
1138 (GETREGS_SUPPLIES): Remove macro.
1139 (supply_gregset): Call amd64_supply_native_gregset instead of
1140 x86_64_linux_supply_gregset.
1141 (fill_gregset): Rename `regno' to `regnum'. Call
1142 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1143 (store_regs): Rename `regno' to `regnum'.
1144 (store_fpregs): Rename `regno' to `regnum'.
1145 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1146 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1147 Reorganize function a bit.
1148 (store_inferior_registers): Rename `regno' to `regnum'. Use
1149 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1150 Reorganize function a bit.
1151 (_initialize_x86_64_linux_nat): New function.
1152 * config/i386/x86-64linux.mh.
1153
1154 2003-08-29 Andrew Cagney <cagney@redhat.com>
1155
1156 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1157 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1158 (target_remove_watchpoint): Delete macro.
1159 (target_insert_watchpoint): Delete macro.
1160 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1161 (remote_mips_stopped_by_watchpoint): Delete declaration.
1162 (remote_mips_remove_watchpoint): Delete declaration.
1163 (remote_mips_set_watchpoint): Delete declaration.
1164 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1165 * remote-mips.c (_initialize_remote_mips): Set
1166 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1167 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1168 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1169 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1170 (mips_stopped_by_watchpoint): Rename
1171 remote_mips_stopped_by_watchpoint.
1172 (mips_can_hardware_watchpoint): Rename
1173 remote_mips_can_use_hardware_watchpoint, update function
1174 signature.
1175
1176 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1177
1178 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1179 USER_DS. We haven't given them a register number yet.
1180
1181 * amd64-nat.h: New file.
1182 * amd64-nat.c: New file.
1183 * amd64fbsd-nat.c: Include "amd64-nat.h".
1184 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1185 (amd64fbsd32_r_reg_offset): New variable.
1186 (supply_gregset): Simply call amd64_supply_native_gregset.
1187 (fill_gregset): Rename `regno' to `regnum'. Simply call
1188 amd64_collect_native_gregset.
1189 (fill_fpregset): Rename `regno' to `regnum'.
1190 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1191 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1192 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1193 `fpregset_t'. Call amd64_supply_native_gregset instead of
1194 supply_gregset. Call x86_64_supply_fxsave instead of
1195 supply_fpregset.
1196 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1197 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1198 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1199 `fpregset_t'. Call amd64_collect_native_gregset instead of
1200 fill_gregset. Call x86_64_collect_fxsave instead of
1201 fill_fpregset.
1202 (_initialize_am64fbsd_nat): Initialize
1203 amd64_native_gregset32_reg_offset and
1204 amd64_native_gregset64_reg_offset.
1205 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1206
1207 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1208 null pointer. Fix typo in comment.
1209
1210 * regcache.c (supply_register): Reimplement to call
1211 regcache_raw_supply.
1212 (regcache_collect): Reimplement by calling regcache_raw_collect.
1213
1214 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1215
1216 * regcache.c (register_buffer): Consitify first argument.
1217 (regcache_raw_supply, regcache_raw_collect): New
1218 functions.
1219
1220 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1221
1222 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1223 by Nathan J. Williams.
1224
1225 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1226
1227 * lin-lwp.c (wait_lwp): New function, copied from
1228 stop_wait_callback. Clean up.
1229 (stop_wait_callback): Use wait_lwp.
1230
1231 2003-08-28 Andrew Cagney <cagney@redhat.com>
1232
1233 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1234 flavour and disassembler options.
1235 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1236 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1237 deprecated_tm_print_insn_info.
1238
1239 2003-08-27 Andrew Cagney <cagney@redhat.com>
1240
1241 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1242 Use target_read_memory.
1243 (s390_get_frame_info): Update. Do not reference
1244 deprecated_tm_print_insn_info.
1245 (s390_check_function_end, s390_is_sigreturn): Ditto.
1246
1247 2003-08-27 Andrew Cagney <cagney@redhat.com>
1248
1249 * Makefile.in (cris-tdep.o): Update dependencies.
1250 * cris-tdep.c: Include "gdb_assert.h".
1251 (cris_gdbarch_init): Set print_insn.
1252 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1253 (cris_delayed_get_disassembler): Simplify, directly call the
1254 disassembler returned by cris_get_disassembler.
1255 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1256 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1257 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1258 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1259 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1260 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1261 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1262 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1263 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1264 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1265 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1266 (gdb_print_insn_sparc): Delete function.
1267 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1268 deprecated_tm_print_insn_info.
1269 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1270 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1271 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1272 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1273 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1274 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1275 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1276 (s390_gdbarch_init): Set print_insn.
1277
1278 2003-08-27 Andrew Cagney <cagney@redhat.com>
1279
1280 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1281 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1282 * infcall.c (call_function_by_hand): Convert the entry point
1283 address into a code address.
1284
1285 2003-08-27 Andrew Cagney <cagney@redhat.com>
1286
1287 * dsrec.c: Include "gdb_string.h".
1288 * Makefile.in (dsrec.o): Update dependencies.
1289
1290 2003-08-27 Michael Chastain <mec@shout.net>
1291
1292 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1293
1294 2003-08-27 Andrew Cagney <cagney@redhat.com>
1295
1296 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1297 (alpha_osf1_init_abi): Do not set call_dummy_address.
1298
1299 2003-08-27 David Carlton <carlton@kealia.com>
1300
1301 From Randolph Chung <tausq@debian.org>:
1302 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1303 compiles with -Wformat-nonliteral -Werror.
1304
1305 2003-08-26 Jim Blandy <jimb@redhat.com>
1306
1307 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1308 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1309 bfd_lookup_symbol, since we only want symbols in code sections.
1310 (look_for_base): Pass zero as the SECT_FLAGS argument to
1311 bfd_lookup_symbol, since we're not concerned about which section
1312 the symbol is in.
1313
1314 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1315
1316 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1317 we are frameless or the return address register is already known.
1318
1319 2003-08-26 Andrew Cagney <cagney@redhat.com>
1320
1321 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1322 in size. Add comments.
1323
1324 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1325
1326 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1327 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1328
1329 2003-08-26 Jason Merrill <jason@redhat.com>
1330
1331 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1332 case out of #ifdef MIPS block.
1333
1334 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1335
1336 PR java/1322
1337 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1338 available before calling SECT_OFF_TEXT.
1339 * PROBLEMS: Remove description of java/1322.
1340
1341 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1342
1343 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1344 bof, and nat0-nat127 as pseudo-registers.
1345 (ia64_frame_cache): New struct used to cache frame info.
1346 (ia64_register_reggroup_p): New routine used to override default
1347 register grouping so registers without names are still saved and
1348 restored.
1349 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1350 pseudo values.
1351 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1352 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1353 (ia64_alloc_frame_cache): New routine to create a new
1354 ia64_frame_cache.
1355 (examine_prologue): Change prototype to add next_frame pointer.
1356 Assume frameless until otherwise proven. Verify that the cfm for
1357 current frame matches the cfm that should occur for the prologues
1358 alloc insn and if equal, mark as not frameless. At end of routine,
1359 if not frameless, calculate registers for the previous frame and store
1360 in the cache, if a cache is provided.
1361 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1362 and pass 0 for next_frame.
1363 (ia64_store_return_value): Change to use convert_typed_floating()
1364 instead of calling ia64_convert_to_raw().
1365 (ia64_extract_return_value): Change to use convert_typed_floating()
1366 instead of calling ia64_convert_to_virtual().
1367 (ia64_frame_cache): New routine to support new frame model.
1368 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1369 (ia64_frame_sniffer): Ditto.
1370 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1371 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1372 (ia64_sigtramp_frame_prev_register): Ditto.
1373 (ia64_sigtramp_frame_sniffer): Ditto.
1374 (ia64_frame_base_address): Ditto.
1375 (ia64_extract_struct_value_address): Change to issue error message.
1376 (ia64_frame_align): New routine to align sp.
1377 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1378 (ia64_push_arguments): Removed. Logic moved to
1379 ia64_push_dummy_call().
1380 (ia64_push_return_address): Ditto.
1381 (ia64_unwind_dummy_id): New function.
1382 (ia64_unwind_pc): Ditto.
1383 (ia64_convert_register_p): Ditto.
1384 (ia64_register_to_value): Ditto.
1385 (ia64_value_to_register): Ditto.
1386 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1387 (ia64_register_byte, ia64_register_raw_size): Ditto.
1388 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1389 (ia64_saved_pc_after_call): Ditto.
1390 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1391 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1392 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1393 (ia64_register_convert_to_raw): Ditto.
1394 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1395 (ia64_init_extra_frame_info): Ditto.
1396 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1397 (ia64_gdbarch_init): Remove registering of deprecated functions that
1398 are no longer used. Add registration of new gdbarch functions.
1399 Remove registering deprecated_write_sp. Replace
1400 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1401 Delete set_gdbarch_deprecated_register_convertible(),
1402 set_gdbarch_deprecated_register_convert_to_virtual(), and
1403 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1404 set_gdbarch_deprecated_register_size(),
1405 set_gdbarch_deprecated_register_bytes(),
1406 set_gdbarch_pcregnum(),
1407 set_gdbarch_deprecated_register_byte(),
1408 set_gdbarch_deprecated_register_raw_size(),
1409 set_gdbarch_deprecated_max_register_raw_size(),
1410 set_gdbarch_deprecated_register_virtual_size(),
1411 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1412 Replace set_gdbarch_deprecated_extract_return_value() with
1413 set_gdbarch_extract_return_value(). Remove calls to:
1414 set_gdbarch_deprecated_saved_pc_after_call();
1415 set_gdbarch_deprecated_frame_chain(),
1416 set_gdbarch_deprecated_frame_saved_pc(),
1417 set_gdbarch_deprecated_frame_init_saved_regs(),
1418 set_gdbarch_deprecated_get_saved_register(),
1419 set_gdbarch_deprecated_call_dummy_words(),
1420 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1421 set_gdbarch_deprecated_init_extra_frame_info(),
1422 set_gdbarch_deprecated_frame_args_address(),
1423 set_gdbarch_deprecated_frame_locals_address(),
1424 and set_gdbarch_deprecated_dummy_write_sp().
1425 Add set_gdbarch_convert_register_p(),
1426 set_gdbarch_register_to_value(),
1427 set_gdbarch_value_to_register(),
1428 set_gdbarch_push_dummy_call(),
1429 set_gdbarch_frame_align(),
1430 set_gdbarch_unwind_dummy_id(),
1431 set_gdbarch_unwind_pc(),
1432 frame_unwind_append_sniffer(),
1433 frame_unwind_append_sniffer(),
1434 and frame_base_set_default().
1435
1436 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1437
1438 * configure.tgt: Document need for special "mipsisa64" handling.
1439 (mipsisa64*-*-linux64): Handle as target linux64.
1440 (mipsisa64*-*-*): Handle as target embed64.
1441
1442 2003-08-18 Michael Chastain <mec@shout.net>
1443
1444 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1445 objfile bug.
1446
1447 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1448
1449 * i387-tdep.h: Update copyright date.
1450 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1451
1452 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1453 CFLAGS games to reflect reality.
1454
1455 2003-08-24 Andrew Cagney <cagney@redhat.com>
1456
1457 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1458 GDB_MULTI_ARCH is always non-zero.
1459 * osabi.c (_initialize_gdb_osabi): Ditto.
1460 (gdbarch_init_osabi): Ditto.
1461 * sparc-tdep.c: Ditto for #if code.
1462
1463 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1464
1465 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1466 Update comments.
1467 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1468 comments.
1469 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1470 x86_64_supply_fxsave.
1471 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1472 x86_64_supply_fxsave.
1473 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1474 x86_64_supply_fxsave.
1475
1476 2003-08-23 Andreas Jaeger <aj@suse.de>
1477
1478 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1479 i387_supply_fxsave.
1480
1481 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1482
1483 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1484 i387_supply_register.
1485 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1486 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1487 i387_supply_fsave.
1488 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1489 i387_supply_fxsave.
1490 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1491 i387_supply_fsave.
1492 * i386bsd-nat.c (supply_fpregset): Adjust call to
1493 i387_supply_fsave.
1494 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1495 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1496 supply_fpregset.
1497 (store_inferior_registers): Remove extraneous whitespace. Call
1498 i387_fill_fsave instead of fill_fpregset.
1499 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1500 (supply_fpregset): Likewise.
1501 * i386v4-nat.c (supply_fpregset): Adjust call to
1502 i387_supply_fsave.
1503 * i386-interix-nat.c (supply_fpregset): Adjust call to
1504 i387_supply_fsave.
1505 * i386-linux-nat.c (supply_fpregset): Adjust call to
1506 i387_supply_fsave.
1507 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1508 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1509 i387supply_fsave and i387_supply_fxsave.
1510 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1511 Incorporate code from `i387_supply_register.
1512 (i387_supply_register): Remove.
1513 (i387_supply_fxsave): Add `regnum' argument.
1514 Update comments.
1515 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1516 prototype.
1517 (i387_supply_register): remove prototype.
1518 Update comments.
1519
1520 2003-08-22 Michael Chastain <mec@shout.net>
1521
1522 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1523 Add lines for files in gdb/testsuite/gdb.cp/* that are
1524 still not 8.3 unique.
1525
1526 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1527
1528 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1529 TYPE_VPTR_FIELDNO is valid.
1530
1531 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1532
1533 * utils.c (set_width_command): Remove prototypes.
1534 (set_screen_size): New prototype.
1535 (init_page_info): Simplify by fetching the screen size from
1536 Readline. Call set_screen_size.
1537 (set_screen_size): New function.
1538 (set_width): Add missing whitespace in comment.
1539 (set_width_command): Call set_screen_size.
1540 (set_height_command): New function.
1541 (initialize_utils): Fix formatting. Make "set height" command
1542 call set_height_command. Remove redundant code that turns off
1543 pagination if output isn't a terminal. Remove redundant call to
1544 set_width_command.
1545
1546 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1547
1548 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1549 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1550 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1551 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1552 `case' keyword.
1553 (sparc64_register_info): Give the reister with number
1554 SPARC64_STATE_REGNUM a name.
1555 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1556 %asi and %ccr.
1557 (sparc64_push_dummy_call): Take BIAS into account when checking
1558 stcak alignment.
1559 (sparc_software_single_step): Remove assertions that check whether
1560 NPC and NNPC were zero.
1561 (sparc_supply_rwindow): Make public. Merge functionality with
1562 sparc64_supply_rwindow.
1563 (sparc_fill_rwindow): Make public. Merge functionality with
1564 sparc64_fill_rwindow.
1565 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1566 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1567 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1568 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1569 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1570
1571 * reggroups.c: Add whitespace after declarations of local
1572 variables in functions.
1573
1574 2003-08-21 Michael Chastain <mec@shout.net>
1575
1576 * gdbtypes.h: Change array bound type from an int to enum.
1577
1578 2003-08-21 Andrew Cagney <cagney@redhat.com>
1579
1580 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1581 * config/sparc/tm-sparc.h: Ditto.
1582 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1583 unconditionally.
1584 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1585
1586 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1587
1588 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1589 (register_objfile_data, set_objfile_data, objfile_data): New
1590 prototypes.
1591 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1592 prototypes.
1593 (allocate_objfile): Call objfile_alloc_data.
1594 (free_objfile): Call objfile_free_data.
1595 (struct objfile_data): New.
1596 (struct objfile_data_registration): New.
1597 (struct objfile_data_registry): New.
1598 (objfile_data_registry): New variable.
1599 (register_objfile_data): New function.
1600 (objfile_alloc_data, objfile_free_data): New functions.
1601 (set_objfile_data, objfile_data): New functions.
1602 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1603 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1604 (_initialize_dwarf2_frame): New function and prototype.
1605
1606 2003-08-21 Andrew Cagney <cagney@redhat.com>
1607
1608 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1609 a specific architecture.
1610 * arch-utils.h (set_architecture_from_arch_mach): Delete
1611 declaration.
1612 (target_architecture_hook): Delete declaration.
1613 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1614 (default_float_format): Assume GDB_MULTI_ARCH.
1615 (default_double_format): Assume GDB_MULTI_ARCH.
1616 (set_endian_from_file): Delete function.
1617 (arch_ok): Delete function.
1618 (set_arch): Delete function.
1619 (set_architecture_from_arch_mach): Delete function.
1620 (set_architecture_from_file): Delete function.
1621 (set_architecture): Assume GDB_MULTI_ARCH.
1622 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1623
1624 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1625
1626 Rewrite FreeBSD/sparc64 native configuration.
1627 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1628 * sparc64fbsd-nat.c: New file.
1629 * sparc64fbsd-tdep.c: New file.
1630 * sparc64-tdep.c sparc64-tdep.h: New files.
1631 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1632 sparc64fbsd-tdep.o): New dependencies.
1633 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1634 and sparc64fbsd-tdep.c.
1635 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1636 * config/sparc/fbsd.mh: Remove copyright notice.
1637 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1638 sparcbsd-nat.o.
1639 * config/sparc/fbsd.mt: Remove copyright notice.
1640 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1641 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1642 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1643 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1644 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1645 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1646 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1647 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1648 "sparc/tm-sp64.h".
1649 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1650 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1651
1652 2003-08-21 Michael Chastain <mec@shout.net>
1653
1654 * symtab.h: Add doco on the space critical structures and
1655 some measurements of space usage.
1656
1657 2003-08-21 Michael Snyder <msnyder@redhat.com>
1658
1659 * tracepoint.c (trace_dump_command): Trace break address
1660 is subject to DECR_PC_AFTER_BREAK.
1661 (set_traceframe_context): Make "trace_line" an int.
1662 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1663
1664 2003-08-20 Michael Snyder <msnyder@redhat.com>
1665
1666 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1667 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1668 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1669 argument passing.
1670 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1671 functions, replace sh_push_dummy_call.
1672 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1673
1674 2003-08-20 Michael Chastain <mec@shout.net>
1675
1676 * gdbtypes.h (struct main_type): Rearrange to save space.
1677
1678 2003-08-20 Michael Snyder <msnyder@redhat.com>
1679
1680 * trad-frame.c: Comment typo fix.
1681
1682 2003-08-20 Michael Snyder <msnyder@redhat.com>
1683 Kevin Buettner <kevinb@redhat.com>
1684
1685 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1686 (frv_frame_init_saved_regs): Add declaration.
1687 (frame_extra_info): Add new field ``saved_regs''.
1688 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1689 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1690 Update frame related code.
1691 (frv_extract_struct_value_address): Adjust formatting.
1692 * Makefile.in (frv-tdep.o): Update dependencies.
1693 * config/frv/tm-frv.h (target_insert_watchpoint)
1694 (target_remove_watchpoint, target_insert_hw_breakpoint)
1695 (target_remove_hw_breakpoint): Delete these macros.
1696 (remote_insert_watchpoint, remote_remove_watchpoint)
1697 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1698 these declarations.
1699
1700 2003-08-20 Michael Chastain <mec@shout.net>
1701
1702 * defs.h (ENUM_BITFIELD): New macro.
1703 * symtab.h (ENUM_BITFIELD): Use it.
1704 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1705
1706 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1707
1708 * MAINTAINERS (write after approval): Add myself.
1709
1710 2003-08-18 Andrew Cagney <cagney@redhat.com>
1711
1712 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1713 * gdbarch.h, gdbarch.c: Re-generate.
1714 * infcall.c (call_function_by_hand): Adjust the SP by
1715 frame_red_zone_size before allocating any stack space.
1716 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1717 * x86-64-tdep.c (x86_64_frame_align): New function.
1718 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1719
1720 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1721 Remove code adjusting SP so that it skips over the Red Zone.
1722
1723 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1724
1725 * NEWS (New native configurations): Mention FreeBSD/amd64.
1726
1727 2003-08-18 Andrew Cagney <cagney@redhat.com>
1728
1729 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1730 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1731 "m68k_frame_p".
1732 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1733
1734 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1735
1736 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1737
1738 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1739
1740 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1741 Define.
1742 * i386-linux-nat.c: Include "linux-nat.h".
1743 (child_post_startup_inferior): New function.
1744
1745 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1746
1747 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1748 at the start of a frameless function. This probably fixes PR
1749 backtrace/1338.
1750
1751 2003-08-17 Michael Chastain <mec@shout.net>
1752
1753 * symfile.c (find_sym_fns): Remove special case for apollo target.
1754
1755 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1756
1757 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1758 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1759 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1760 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1761 (linux_supports_tracevforkdone): New function.
1762 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1763 TRACEVFORKDONE.
1764 (child_follow_fork): Handle vfork.
1765 (linux_handle_extended_wait): Likewise. Also handle exec.
1766 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1767 * NEWS: Mention fork tracing.
1768
1769 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1770
1771 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1772
1773 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1774
1775 * Makefile.in (i386-linux-nat.o): Update dependencies.
1776 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1777 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1778 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1779 * i386-linux-nat.c: Include "linux-nat.h".
1780 (child_post_startup_inferior): New function.
1781 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1782 * infptrace.c (kill_inferior): Wrap in #ifdef.
1783 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1784 attaching to each LWP.
1785 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1786 (init_lin_lwp_ops): Fill in some more operations.
1787 * linux-nat.h (linux_enable_event_reporting)
1788 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1789 prototypes.
1790 * linux-nat.c (linux_enable_event_reporting): New function.
1791 (child_post_attach, linux_child_post_startup_inferior)
1792 (child_post_startup_inferior, child_follow_fork)
1793 (linux_handle_extended_wait, kill_inferior): New functions.
1794
1795 2003-08-16 Andrew Cagney <cagney@redhat.com>
1796
1797 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1798 * gdbarch.h, gdbarch.c: Re-generate.
1799
1800 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1801
1802 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1803
1804 2003-08-16 Andrew Cagney <cagney@redhat.com>
1805
1806 * NEWS: Mention that "set prompt-escape-char" was deleted.
1807 * top.c (get_prompt_1): Delete function.
1808 (gdb_prompt_escape):
1809 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1810 prompt-escape-char" command.
1811 (MAX_PROMPT_SIZE): Delete macro.
1812 (get_prompt): Simplify, do not call get_prompt_1.
1813
1814 2003-08-16 Andrew Cagney <cagney@redhat.com>
1815
1816 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1817 -Werror. -Wformat-nonliteral problems.
1818
1819 2003-08-15 J. Brobecker <brobecker@gnat.com>
1820
1821 Further multiarching work mostly for hppa64-*-hpux11:
1822 * hppa-tdep.h: New file.
1823 * hppa-tdep.c: #include hppa-tdep.c.
1824 (hppa32_num_regs): Renamed from hppa_num_regs.
1825 (hppa64_num_regs): New constant.
1826 (hppa64_call_dummy_breakpoint_offset): New constant.
1827 (hppa32_call_dummy_length): New constant.
1828 (hppa64_call_dummy_length): New constant.
1829 (hppa32_stack_align): Make name 32bit explicit.
1830 (hppa32_register_virtual_type): Likewise.
1831 (hppa32_extract_return_value): Likewise.
1832 (hppa32_use_struct_convention): Likewise.
1833 (hppa32_store_return_value): Likewise.
1834 (hppa64_register_virtual_type): New function.
1835 (hppa64_extract_return_value): New function.
1836 (hppa64_use_struct_convention): New function.
1837 (hppa64_store_return_value): New function.
1838 (hppa_frame_locals_address): Remove declaration, function does
1839 not exist anymore.
1840 (hppa_register_byte): Add support for PA64 ABI.
1841 (hppa_gdbarch_init): Add support for PA64 ABI.
1842 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1843 Make name 32bit explicit.
1844 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1845 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1846 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1847 (hppa64_hpux_frame_base_before_sigtramp): New function.
1848 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1849 * config/pa/tm-hppa64.h: Remove macros that are no longer
1850 necessary now that the gdbarch vector is properly setup.
1851 Transform some macros into function calls. Some minor cleanup.
1852 * config/pa/tm-hppah.h: Update function calls in macros
1853 following the function renaming in hppa-hpux-tdep.c.
1854 * Makefile.in (hppa_tdep_h): New variable.
1855 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1856
1857 2003-08-14 Michael Snyder <msnyder@redhat.com>
1858
1859 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1860
1861 2003-08-13 J. Brobecker <brobecker@gnat.com>
1862
1863 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1864 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1865 routine.
1866
1867 2003-08-13 Michael Snyder <msnyder@redhat.com>
1868
1869 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1870 (frv_saved_pc_after_call): Use deprecated ftype.
1871 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1872 (frv_remote_translate_xfer_address): Remove.
1873 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1874
1875 2003-08-13 J. Brobecker <brobecker@gnat.com>
1876
1877 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1878 initialization after the common gdbarch initialization, not before.
1879
1880 2003-08-13 J. Brobecker <brobecker@gnat.com>
1881
1882 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1883 (ADDR_BITS_REMOVE): Remove, redundant.
1884
1885 2003-08-13 J. Brobecker <brobecker@gnat.com>
1886
1887 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1888 gdbarch method to clear the 2 low bits of text addresses.
1889
1890 2003-08-12 Andrew Cagney <cagney@redhat.com>
1891
1892 * Makefile.in (dsrec.o): Update dependencies.
1893 * dsrec.c: Include "gdb_assert.h".
1894 (make_srec): Use snprintf instead of sprintf, use a literal format
1895 string.
1896
1897 2003-08-12 Andrew Cagney <cagney@redhat.com>
1898
1899 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1900 FRAME_OBSTACK_ZALLOC.
1901
1902 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1903
1904 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1905 SSE registers.
1906
1907 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1908
1909 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1910 amd64fbsd_sc_reg_offset): Add extern declarations.
1911 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1912 declarations.
1913
1914 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1915
1916 * MAINTAINERS (write after approval): Update my mail address.
1917
1918 2003-08-10 Andrew Cagney <cagney@redhat.com>
1919
1920 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1921
1922 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1923
1924 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1925 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1926 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1927 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1928 i386bsd_sc_reg_offset): Add extern declarations.
1929 * i386obsd-nat.c: Include "i386-tdep.h"
1930 (_initialize_i386obsd_nat): Remove extern declarations.
1931 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1932 declarations.
1933 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1934 declarations.
1935
1936 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1937 instead of frame_read_register.
1938 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1939 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1940 SP_REGNUM.
1941 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1942 instead of frame_unwind_unsigned_register. Use
1943 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1944 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1945 instead of read_register. Use builtin_type_void_data_ptr instead
1946 of builtin_type_void_func_ptr when extracting the address of the
1947 jmp_buf.
1948 (i386_extract_return_value, i386_store_return_value,
1949 i386_pseudo_register_read, i386_pseudo_register_write): Use
1950 register_size instead REGISTER_RAW_SIZE.
1951
1952 2003-08-10 Andrew Cagney <cagney@redhat.com>
1953
1954 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1955 sprintf. Make "name" constant.
1956
1957 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1958
1959 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1960 instead of frame_read_register.
1961 (i387_print_float_info): Use get_frame_register and
1962 get_frame_register_unsigned instead of frame_register_read.
1963
1964 * i386fbsd-nat.c: Include "i386-tdep.h".
1965 (child_resume): Make `eflags' an ULONGEST. Use
1966 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1967 instead of register_read and register_write.
1968
1969 * i386bsd-nat.c (fetch_inferior_registers,
1970 store_inferior_registers): Don't use && at the end of a line.
1971 (_initialize_i386bsd_nat): Fix typo.
1972
1973 * frame.c (_initialize_frame): Add missing backslash.
1974
1975 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1976 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1977 and supply_register instead of manipulating the register buffer
1978 directly.
1979
1980 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1981 * config/i386/nm-i386sol2.h
1982 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1983
1984 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1985 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1986 instructions that GCC likes to mingle into the prologue. Fixes
1987 gdb/1253 and gdb/1255.
1988
1989 2003-08-09 Andrew Cagney <cagney@redhat.com>
1990
1991 Fix GDB PR cli/926.
1992 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1993 * command.h (add_setshow_uinteger_cmd): Declare.
1994 * frame.c (set_backtrace_cmd): New function.
1995 (show_backtrace_cmd): New function.
1996 * frame.c (_initialize_frame): Replace "set/show
1997 backtrace-below-main" with "set/show backtrace past-main". Add
1998 command "set/show backtrace limit".
1999 (backtrace_past_main): Rename "backtrace_below_main".
2000 (backtrace_limit): New variable.
2001 (get_prev_frame): Update. Check the backtrace_limit.
2002
2003 2003-08-09 Andrew Cagney <cagney@redhat.com>
2004
2005 * defs.h (xstrprintf): Declare.
2006 * utils.c (xstrprintf): New function.
2007 * breakpoint.c (insert_breakpoints): Replace sprintf and
2008 non-literal format strings, with xstrprintf and cleanups.
2009 (delete_breakpoint,breakpoint_re_set): Ditto.
2010 (commands_command, insert_breakpoints): Ditto.
2011 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2012 (break_at_finish_command_1): Ditto.
2013
2014 2003-08-09 Andrew Cagney <cagney@redhat.com>
2015
2016 * MAINTAINERS (language support): List Adam Fedor as Objective C
2017 maintainer.
2018
2019 2003-08-08 J. Brobecker <brobecker@gnat.com>
2020
2021 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2022 are now multiarched.
2023
2024 2003-08-08 J. Brobecker <brobecker@gnat.com>
2025
2026 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2027 longer necessary now that hppa64 is partially multiarch'ed.
2028
2029 2003-08-08 Andrew Cagney <cagney@redhat.com>
2030
2031 * interps.c (interp_set): Check for a NULL "old_interp".
2032
2033 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2034
2035 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2036 (install-only): Support DESTDIR.
2037 (uninstall): Likewise.
2038 (install-gdbtk): Likewise.
2039
2040 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2041
2042 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2043 contains something meaningful at all times.
2044
2045 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2046
2047 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2048
2049 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2050
2051 * MAINTAINERS (write after approval): Added self.
2052
2053 2003-08-07 Andrew Cagney <cagney@redhat.com>
2054
2055 * inferior.h (AT_SYMBOL): Define.
2056 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2057 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2058 * mips-tdep.c (mips_call_dummy_address): Delete function.
2059 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2060 set call_dummy_address.
2061
2062 2003-08-07 Andrew Cagney <cagney@redhat.com>
2063
2064 * language.c (op_error): Delete function.
2065 (binop_type_check): Delete function.
2066 * language.h (type_op_error, range_op_error): Delete macros.
2067 (op_error): Delete declaration.
2068
2069 2003-08-07 Andrew Cagney <cagney@redhat.com>
2070
2071 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2072
2073 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2074
2075 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2076 (x86_64_push_arguments): Skip the red zone.
2077
2078 2003-08-05 Andrew Cagney <cagney@redhat.com>
2079
2080 * reggroups.c (reggroup_next): Check for the final entry.
2081
2082 2003-08-04 Andrew Cagney <cagney@redhat.com>
2083
2084 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2085 * cli/cli-script.c (define_command): Call query directly, instead
2086 of passing it a buffer.
2087 * ocd.c (ocd_error): Pass error a constant format string.
2088 * remote-mips.c (mips_error): Use fputs_filtered.
2089
2090 * solib-svr4.c (_initialize_svr4_solib): Update
2091 register_gdbarch_data call.
2092 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2093
2094 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2095 (register_gdbarch_data): Delete "free" parameter. Update
2096 comments.
2097 * gdbarch.h, gdbarch.c: Re-generate.
2098 * reggroups.c (_initialize_reggroup): Update.
2099 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2100 * frame-base.c (_initialize_frame_base): Update.
2101 * frame-unwind.c (_initialize_frame_unwind): Update.
2102 * user-regs.c (_initialize_user_regs): Update.
2103 * remote.c (_initialize_remote): Update.
2104 * regcache.c (_initialize_regcache): Update.
2105
2106 * regcache.c (xfree_regcache_descr): Delete function.
2107 (_initialize_regcache): Update call to register_gdbarch_data.
2108 (init_regcache_descr, init_legacy_regcache_descr): Use
2109 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2110
2111 * remote.c (free_remote_state): Delete function.
2112 (_initialize_remote): Update register_gdbarch_data.
2113 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2114 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2115
2116 2003-08-04 Andrew Cagney <cagney@redhat.com>
2117
2118 * reggroups.c (struct reggroup_el): Define.
2119 (struct reggroups): Delete field "nr_group". Replace array
2120 "group" with a "first" to "last" linked list.
2121 (reggroups_init): Update. Allocate using gdbarch's obstack.
2122 (reggroups_free): Delete function.
2123 (add_group): Update. Add "el" parameter.
2124 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2125 (default_groups): Update.
2126 (reggroup_next): Replace reggroups.
2127 (reggroups_dump): Update.
2128 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2129 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2130 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2131
2132 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2133
2134 * Makefile.in (tui-interp.o): Update dependencies.
2135
2136 2003-08-04 David Carlton <carlton@kealia.com>
2137
2138 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2139 to internal_error call.
2140 * source.c (forward_search_command): Add "%s" format argument.
2141 (reverse_search_command): Ditto.
2142 * top.c (quit_confirm): Ditto.
2143 * cli/cli-setshow.c (do_setshow_command): Ditto.
2144 * cp-valprint.c (cp_print_class_method): Replace
2145 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2146 (cp_print_class_member): Ditto.
2147 * event-top.c (command_line_handler): Ditto.
2148 * linux-proc.c (linux_info_proc_cmd): Ditto.
2149 * p-typeprint.c (pascal_type_print_base): Ditto.
2150 * p-valprint.c (pascal_object_print_class_method): Ditto.
2151 (pascal_object_print_class_member): Ditto.
2152 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2153 * remote.c (remote_cisco_section_offsets): Ditto.
2154 * top.c (command_line_input): Ditto.
2155 * utils.c (vwarning,error_stream,quit): Ditto.
2156 * valprint.c (print_floating,print_binary_chars)
2157 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2158
2159 2003-08-04 Andrew Cagney <cagney@redhat.com>
2160
2161 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2162
2163 2003-08-02 Andrew Cagney <cagney@redhat.com>
2164
2165 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2166 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2167 amd64fbsd-nat.c.
2168
2169 2003-08-02 Andrew Cagney <cagney@redhat.com>
2170
2171 * Makefile.in: Update all dependencies and definitions.
2172
2173 2003-08-02 Adam Fedor <fedor@gnu.org>
2174
2175 * linespec.c (is_objc_method_format): New function
2176 (decode_line_1, locate_first_half): Use it.
2177 Fixes PR objc/1298
2178
2179 2003-08-01 Andrew Cagney <cagney@redhat.com>
2180
2181 * NEWS: Mention that m32r is multi-arch.
2182 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2183 * configure.tgt: Recognize m32r-*-*.
2184 * config/m32r/tm-m32r.h: Delete file.
2185 * config/m32r/m32r.mt: New file.
2186 * m32r-rom.c (m32r_upload_command): Use hostent only when
2187 gethostname succeeds, in order to avoid a compilation
2188 warning.
2189 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2190 compiler warning.
2191
2192 2003-08-01 Michael Snyder <msnyder@redhat.com>
2193
2194 * sh-tdep.c (sh_frame_align): New gdbarch method.
2195 (sh_gdbarch_init): Set up frame_align method.
2196
2197 2003-07-31 Michael Snyder <msnyder@redhat.com>
2198
2199 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2200 which is already covered by the new frames infrastructure.
2201
2202 2003-07-31 Andrew Cagney <cagney@redhat.com>
2203
2204 * user-regs.c (struct user_reg): Add "next" link.
2205 (struct user_regs): Replace "user" with "first" and "last" links.
2206 (append_user_reg): Add pre-allocated "reg" parameter.
2207 (builtin_user_regs): Provide initial value for "last".
2208 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2209 (user_regs_init): Allocate memory from the gdbarch obstack.
2210 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2211 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2212 linked list.
2213 (usernum_to_user_reg): New function.
2214 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2215 (value_of_user_reg): Use usernum_to_user_reg.
2216 (user_regs_free): Delete function.
2217 (_initialize_user_regs): Update register_gdbarch_data call.
2218
2219 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2220
2221 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2222
2223 2003-07-30 Michael Snyder <msnyder@redhat.com>
2224
2225 * value.h (value_being_returned): Add a struct_addr argument.
2226 * infcall.c (call_function_by_hand): Pass struct_addr to
2227 value_being_returned.
2228 * infcmd.c (print_return_value): Pass zero as struct_addr.
2229 * values.c (value_being_returned): If struct_addr is passed,
2230 use it instead of trying to recover it from the inferior.
2231
2232 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2233
2234 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2235 the prologue analyzer won't need to attempt to extract the pc
2236 value from the woefully incomplete dummy frame.
2237 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2238 possible. Disable code which modifies the frame.
2239
2240 2003-07-28 Andrew Cagney <cagney@redhat.com>
2241
2242 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2243 to level 2.
2244 (annotate_breakpoints_table, annotate_record): Ditto.
2245 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2246 (annotate_field_name_end, annotate_field_value): Ditto.
2247 (annotate_field_end, annotate_frame_source_begin): Ditto.
2248 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2249 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2250 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2251 (annotate_frame_address_end, annotate_frame_address): Ditto.
2252 (annotate_frame_args, annotate_frame_end): Ditto.
2253 (annotate_frame_where, annotate_arg_begin): Ditto.
2254 (annotate_arg_name_end, annotate_arg_value): Ditto.
2255 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2256 (annotate_function_call, annotate_signal_name): Ditto.
2257 (annotate_signal_string, annotate_signal_name_end): Ditto.
2258 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2259 (annotate_value_begin, annotate_value_history_value): Ditto.
2260 (annotate_value_history_end, annotate_value_end): Ditto.
2261 (annotate_display_begin, annotate_display_number_end): Ditto.
2262 (annotate_display_format, annotate_display_expression): Ditto.
2263 (annotate_display_expression_end, annotate_display_value): Ditto.
2264 (annotate_display_end, annotate_array_section_begin): Ditto.
2265 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2266 (annotate_elt, annotate_array_section_end): Ditto.
2267
2268 2003-07-28 Andrew Cagney <cagney@redhat.com>
2269
2270 * regcache.c (struct regcache_descr): Update comments on
2271 nr_raw_registers.
2272 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2273 sizeof_raw_register_valid_p.
2274 (init_regcache_descr): Set nr_raw_registers and
2275 sizeof_raw_register_valid_p before calling
2276 init_legacy_regcache_descr.
2277
2278 2003-07-28 Andrew Cagney <cagney@redhat.com>
2279
2280 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2281 MOD NUM_REGS.
2282
2283 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2284
2285 * thread.c (info_threads_command): Use get_selected_frame ().
2286 Check that there is at least one non-sentinel frame.
2287
2288 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2289
2290 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2291 (m68hc11_pop_frame): Remove.
2292 (m68hc11_frame_saved_pc): Remove.
2293 (m68hc11_frame_chain): Remove.
2294 (m68hc11_frame_init_saved_regs): Remove.
2295 (m68hc11_init_extra_frame_info): Remove.
2296 (m68hc11_store_struct_return): Remove.
2297 (m68hc11_saved_pc_after_call): Remove.
2298
2299 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2300
2301 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2302 frame unwind information.
2303 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2304 and adapted for frame unwinding.
2305 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2306 (m68hc11_unwind_pc): New function.
2307 (m68hc11_frame_unwind_cache): New function to analyze frames.
2308 (m68hc11_frame_this_id): New function to create new frame struct.
2309 (m68hc11_frame_prev_register): New function to unwind a register from
2310 the frame.
2311 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2312 (m68hc11_frame_p): New function for the above.
2313 (m68hc11_frame_base_address): New function to return fp of frame.
2314 (m68hc11_frame_args_address): Update for frame.
2315 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2316 (m68hc11_unwind_sp): New function.
2317 (m68hc11_unwind_dummy_id): New function.
2318 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2319 calls.
2320
2321 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2322
2323 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2324 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2325 when we are beyond the current pc.
2326
2327 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2328
2329 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2330 from m68hc11_push_arguments.
2331 (m68hc11_push_arguments): Remove.
2332 (m68hc11_push_return_address): Remove.
2333 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2334 handlers; remove deprecated_extra_stack_alignment_needed.
2335
2336 2003-07-27 Andrew Cagney <cagney@redhat.com>
2337
2338 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2339 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2340 REAL_PC and not the pointer.
2341 * hppa-hpux-tdep.c: Include frame.h
2342
2343 2003-07-27 Andrew Cagney <cagney@redhat.com>
2344
2345 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2346 GDB_MULTI_ACH_PARTIAL.
2347
2348 2003-07-27 Andrew Cagney <cagney@redhat.com>
2349
2350 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2351 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2352 operator at start and not end of line.
2353 (decode_prologue): Ditto.
2354 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2355 frame_unwind_register_unsigned instead of
2356 frame_unwind_unsigned_register.
2357 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2358 read_register.
2359 (m32r_push_dummy_call): Use register_size instead of
2360 REGISTER_RAW_SIZE.
2361 (m32r_frame_sniffer): Replace m32r_frame_p.
2362 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2363 * m32r-rom.c (report_transfer_performance): Delete extern
2364 declaration.
2365 (m32r_load, m32r_upload_command): Use print_transfer_performance
2366 instead of report_transfer_performance.
2367 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2368 / add_show_from_set.
2369
2370 2003-07-26 Andrew Cagney <cagney@redhat.com>
2371
2372 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2373 store_return_value and extract_struct_value_address.
2374
2375 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2376
2377 PR c++/1267
2378 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2379 NULL, default to the section containing PC.
2380
2381 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2382
2383 * NEWS: Mention "regs" deprecated for m68hc11 too.
2384
2385 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2386 (m68hc11_print_register): New function to print out one register.
2387 (m68hc11_print_registers_info): New function to print registers.
2388 (show_regs): Deprecate and use the above.
2389 (m68hc11_gdbarch_init): Install the print_registers_info.
2390
2391 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2392
2393 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2394 that we have a SIGTRAP before returning non-zero.
2395
2396 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2397 Elena Zannoni <ezannoni@redhat.com>
2398
2399 * linespec.c (decode_line_2): Avoid crash if
2400 find_function_start_sal() returns empty record.
2401
2402 2003-07-23 Andreas Schwab <schwab@suse.de>
2403
2404 * ia64-tdep.c (ia64_print_insn): New function.
2405 (ia64_gdbarch_init): Set print_insn to it.
2406 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2407 deprecated_tm_print_insn_info.
2408
2409 2003-07-22 Michael Snyder <msnyder@redhat.com>
2410
2411 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2412 handle 8-bit returns (long long).
2413 (h8300h_extract_return_value): Ditto.
2414 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2415
2416 2003-07-22 Andrew Cagney <cagney@redhat.com>
2417
2418 * gdbarch.c Include "gdb_obstack.h".
2419 (struct gdbarch): Add an "obstack".
2420 (alloc_gdbarch_data): Allocate the gdbarch data using
2421 GDBARCH_OBSTACK_CALLOC.
2422 (free_gdbarch_data): Delete function.
2423 (gdbarch_obstack_zalloc): New function.
2424 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2425 Assert that the architecture is not initialized.
2426 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2427 vector from the obstack.
2428 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2429 architecture obstack.
2430 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2431 (set_gdbarch_data): Assert that the data is not initialized.
2432 (struct gdbarch_data): Delete member "free".
2433 (register_gdbarch_data): Do not initialize "free".
2434 * gdbarch.h, gdbarch.c: Re-generate.
2435
2436 2003-07-22 Andrew Cagney <cagney@redhat.com>
2437
2438 * configure.in (build_warnings): Add -Wformat-nonliteral.
2439 * configure: Re-generate.
2440
2441 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2442
2443 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2444
2445 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2446
2447 * findvar.c (read_var_value): Remove case for thread local storage
2448 variables. It is now entirely handled by the dwarf2 location
2449 expression code.
2450 * printcmd.c (address_info): Ditto.
2451 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2452 enumeration value.
2453 (struct symbol): Remove objfile field, which was used by
2454 LOC_THREAD_LOCAL_STATIC only.
2455 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2456 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2457 usage of objfile pointer.
2458 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2459 thread local variables.
2460 Add include of objfiles.h.
2461 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2462 storage variables.
2463 * Makefile.in (dwarf2loc.o): Update dependencies.
2464
2465 2003-07-22 Andrew Cagney <cagney@redhat.com>
2466
2467 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2468 get_frame_base.
2469 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2470 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2471 (struct value): Add opaque declaration.
2472 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2473
2474 2003-07-21 Andrew Cagney <cagney@redhat.com>
2475
2476 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2477 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2478
2479 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2480
2481 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2482 regcache_cooked_read_unsigned instead of read_register.
2483 (m68hc11_saved_pc_after_call): Likewise.
2484 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2485 instead of write_register.
2486 (m68hc11_register_type): New function.
2487 (m68hc11_register_virtual_type): Remove.
2488 (m68hc11_store_return_value): Convert to use the regcache.
2489 (m68hc11_extract_struct_value_address): Likewise.
2490 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2491 m68hc11_register_type; undeprecate store_return_value and
2492 extract_struct_value_address.
2493
2494 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2495
2496 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2497 and translate to use regcache.
2498 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2499
2500 2003-07-18 Andrew Cagney <cagney@redhat.com>
2501
2502 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2503 * gdbarch.h, gdbarch.c: Re-generate.
2504 * i386-tdep.c (i386_gdbarch_init): Do not set
2505 DWARF2_BUILD_FRAME_INFO.
2506 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2507 unconditionally.
2508 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2509 DWARF2_BUILD_FRAME_INFO.
2510
2511 2003-07-18 Andrew Cagney <cagney@redhat.com>
2512
2513 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2514 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2515
2516 2003-07-18 Andrew Cagney <cagney@redhat.com>
2517
2518 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2519 frame_unwind_address_in_block, instead of frame_pc_unwind.
2520 (dwarf2_frame_cache): Ditto.
2521
2522 2003-07-18 Andrew Cagney <cagney@redhat.com>
2523
2524 * user-regs.h (struct gdbarch): Declare opaque.
2525 * ui-out.h (struct ui_file): Declare opaque.
2526 * dwarf2-frame.h (struct frame_info): Declare opaque.
2527
2528 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2529
2530 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2531 #include "...".
2532 (procfs_meminfo): Change strerror to safe_strerror.
2533 (procfs_can_run): Remove K&R badness.
2534
2535 2003-07-17 Michael Snyder <msnyder@redhat.com>
2536
2537 * remote-sim.c: Comment typo fix.
2538
2539 2003-07-17 Andrew Cagney <cagney@redhat.com>
2540
2541 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2542 configure.
2543 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2544 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2545 GDB_MULTI_ARCH_PARTIAL.
2546
2547 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2548
2549 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2550 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2551 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2552
2553 2003-07-16 Theodore A. Roth <troth@openavr.org>
2554
2555 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2556 found.
2557 (avr_frame_unwind_cache): Don't unwind FP for main.
2558 Update a comment.
2559 Save the computed prev_sp.
2560 (avr_saved_regs_unwinder): Remove function.
2561 (avr_frame_prev_register): Use PC unwind logic from
2562 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2563
2564 2003-07-16 Andrew Cagney <cagney@redhat.com>
2565
2566 * frame-base.h (frame_base_p_ftype): Delete definition.
2567 (frame_base_append_predicate): Delete declaration.
2568 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2569 (frame_unwind_append_predicate): Delete declaration.
2570 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2571 (append_predicate): Delete parameter "p".
2572 (frame_unwind_append_predicate): Delete function.
2573 (frame_unwind_append_sniffer): Update call to append_predicate.
2574 (frame_unwind_free): Delete function.
2575 (_initialize_frame_unwind): Pass NULL as "free" to
2576 register_gdbarch_data.
2577 (frame_unwind_init): Append the dummy_frame_sniffer.
2578 (frame_unwind_find_by_frame): Simplify.
2579 * frame-base.c (struct frame_base_table): Delete field "p".
2580 (append_predicate): Delete parameter "p".
2581 (frame_base_append_predicate): Delete function.
2582 (frame_base_append_sniffer): Update call to append_predicate.
2583 (frame_base_free): Delete function.
2584 (frame_base_find_by_frame): Simplify.
2585 (_initialize_frame_base): Pass NULL as "free" to
2586 register_gdbarch_data.
2587 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2588 (x86_64_sigtramp_frame_sniffer): Replace
2589 "x86_64_sigtramp_frame_p".
2590 (x86_64_init_abi): Set the frame unwind sniffers.
2591 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2592 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2593 (m68k_gdbarch_init): Set the frame unwind sniffers.
2594 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2595 "i386_sigtramp_frame_p".
2596 (i386_frame_sniffer): Replace "i386_frame_p".
2597 (i386_gdbarch_init): Set the frame unwind sniffers.
2598 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2599 (avr_gdbarch_init): Set the frame unwind sniffers.
2600 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2601 "alpha_sigtramp_frame_p"
2602 (alpha_heuristic_frame_sniffer): Replace
2603 "alpha_heuristic_frame_p".
2604 (alpha_gdbarch_init): Set the frame unwind sniffers.
2605 (alpha_dwarf2_init_abi): Ditto.
2606 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2607 "alpha_debug_frame_p".
2608 (alpha_mdebug_frame_base_sniffer): Replace
2609 "alpha_mdebug_frame_base_p".
2610 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2611 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2612 (d10v_gdbarch_init): Set the frame unwind sniffer.
2613 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2614 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2615 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2616 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2617 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2618 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2619
2620 2003-07-16 Michael Snyder <msnyder@redhat.com>
2621
2622 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2623 should go thru sh_dsp_register_sim_regno, else the dsp regs
2624 will not get the right values.
2625
2626 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2627
2628 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2629 deprecated_store_floating by call to store_typed_floating.
2630 (sh_sh4_register_convert_to_raw): Substitute call to
2631 deprecated_extract_floating by call to extract_typed_floating.
2632
2633 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2634
2635 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2636
2637 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2638
2639 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2640 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2641 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2642 as possible.
2643 (do_pseudo_register): Remove.
2644 (sh_push_dummy_code): New function.
2645 (sh64_store_struct_return): Rename from sh_store_struct_return.
2646 Only called for sh64 now.
2647 (sh_extract_struct_value_address): Regcache'ify.
2648 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2649 and accomodate new tasks.
2650 (sh64_push_return_address): Rename from sh_push_return_address.
2651 Only called for sh64 now.
2652 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2653 Regcache'ify.
2654 (sh3e_sh4_extract_return_value): Regcache'ify.
2655 (sh_default_store_return_value): Ditto.
2656 (sh3e_sh4_store_return_value): Ditto.
2657 (sh_default_register_byte): Remove.
2658 (sh_sh4_register_byte): Remove.
2659 (sh_default_register_raw_size): Remove.
2660 (sh_sh4_register_raw_size): Remove.
2661 (sh_register_virtual_size): Remove.
2662 (sh_sh3e_register_virtual_type): Remove.
2663 (sh_sh3e_register_type): New function.
2664 (sh_sh4_register_virtual_type): Remove.
2665 (sh_sh4_register_type): New function.
2666 (sh_default_register_virtual_type): Remove.
2667 (sh_default_register_type): New function.
2668 (do_fv_register_info): Add parameters to accomodate call from
2669 sh_print_registers_info.
2670 (do_dr_register_info): Ditto.
2671 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2672 Add parameters to accomodate call from sh_print_registers_info.
2673 (sh_do_fp_register): Ditto.
2674 (sh64_do_pseudo_register): Call do_dr_register_info,
2675 do_fv_register_info and sh_do_fp_register with default parameters.
2676 (sh_do_register): Add parameters to accomodate call from
2677 sh_print_registers_info.
2678 (sh_print_register): Ditto.
2679 (sh_print_registers_info): Rename from sh_do_registers_info.
2680 Add parameters to be used as gdbarch_print_registers_info
2681 implementation. Accomodate removed do_pseudo_register function
2682 pointer.
2683 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2684 function pointer. Call sh_print_register with default parameters.
2685 (sh64_do_registers_info): Call sh_print_registers_info instead of
2686 sh_do_registers_info.
2687 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2688 detection of deprecated vs. non-deprecated functionality.
2689 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2690 function pointer assignments by direct function calls.
2691
2692 2003-07-15 Andrew Cagney <cagney@redhat.com>
2693
2694 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2695 (frame_register_unwind, create_new_frame): Ditto.
2696 (legacy_get_prev_frame, get_frame_type): Ditto.
2697 (get_frame_base_address): Use frame_base_find_by_frame.
2698 (get_frame_locals_address): Use frame_base_find_by_frame.
2699 (get_frame_args_address): Use frame_base_find_by_frame.
2700 * frame-base.h (frame_base_sniffer_ftype): Declare.
2701 (frame_base_append_sniffer): Declare.
2702 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2703 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2704 (frame_base_append_sniffer): New function.
2705 (frame_base_append_predicate): Add a NULL sniffer.
2706 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2707 (struct frame_base_table): Add "sniffer".
2708 (frame_base_free): Free the "sniffer" table.
2709 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2710 (frame_unwind_append_sniffer): Declare.
2711 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2712 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2713 (struct frame_unwind_table): Add "sniffer", delete "middle".
2714 (append_predicate): Add "sniffer" parameter, append the sniffer.
2715 (frame_unwind_init): Update append_predicate call.
2716 (frame_unwind_append_sniffer): New function.
2717 (frame_unwind_append_predicate): Update append_predicate call.
2718 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2719
2720 2003-07-15 Andrew Cagney <cagney@redhat.com>
2721
2722 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2723 before code inhibiting repeated unwind attempts. Add to
2724 commentary on that test's problems.
2725 * blockframe.c (inside_main_func): Look for "main" in the minimal
2726 symbol table.
2727 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2728 identical.
2729
2730 2003-07-15 Andrew Cagney <cagney@redhat.com>
2731
2732 * complaints.c (struct explanation): Define.
2733 (struct complaints): Change type of "explanation" to "struct
2734 explanation".
2735 (symfile_explanations): Convert to a "struct explanation" table.
2736 (vcomplaint): Update.
2737
2738 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2739
2740 * x86-64-linux-nat.c (regmap): Removed.
2741 (supply_gregset, fill_gregset): Call
2742 x86_64_linux_(fill,supply)_gregset functions.
2743 * x86-64-linux-tdep.c (USER_*): New defines.
2744 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2745 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2746 New functions.
2747 (fetch_core_registers): Ditto.
2748 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2749 * x86-64-linux-tdep.h: New file.
2750 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2751 and core-regset.o.
2752 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2753
2754 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2755
2756 * x86-64-tdep.c (x86_64_store_return_value): Use
2757 regcache_cooked_write_part instead of regcache_cooked_write.
2758
2759 * configure.host: Add x86_64-*-freebsd*.
2760 * configure.tgt: Add x86_64-*-freebsd*.
2761 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2762 * amd64fbsd-nat.c: New file.
2763 * amd64fbsd-tdep.c: New file.
2764 * config/i386/nm-fbsd64.h: New file.
2765 * config/i386/fbsd64.mh: New file.
2766 * config/i386/fbsd64.mt: New file.
2767
2768 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2769
2770 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2771 `sc_regs_offset' and `sc_fpregs_offset'.
2772 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2773 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2774 (alpha_sigtramp_register_address): Rewrite to use new members of
2775 `struct gdbarch_tdep'.
2776 (alpha_gdbarch_init): Initialize new members of struct
2777 gdbarch_tdep'.
2778 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2779 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2780 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2781 (alphafbsd_pc_in_sigtramp): Implement.
2782 (alphafbsd_sigtramp_offset): New function.
2783 (alphafbsd_sigcontext_addr): New function.
2784 (alphafbsd_init_abi): Initialize signal trampoline related members
2785 of `struct gdbarch_tdep'.
2786 (_initialize_alphafbsd_tdep): Add prototype.
2787
2788 2003-07-11 Theodore A. Roth <troth@openavr.org>
2789
2790 * Makefile.in (install-only): Quote sed expression when generating
2791 transformed_name.
2792
2793 2003-07-11 Richard Henderson <rth@redhat.com>
2794
2795 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2796 * dwarf2-frame.c: Include complaints.h.
2797 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2798 variable initialization; return NULL on error.
2799 (decode_frame_entry): New.
2800
2801 2003-07-11 Andrew Cagney <cagney@redhat.com>
2802
2803 * frame.h (frame_address_in_block): Delete declaration.
2804 * blockframe.c (frame_address_in_block): Delete function.
2805 (get_frame_block): Use get_frame_address_in_block.
2806 (block_innermost_frame): Ditto.
2807 * stack.c (print_frame, backtrace_command_1): Ditto.
2808
2809 * frame.h (get_frame_address_in_block): Declare.
2810 (frame_unwind_address_in_block): Declare.
2811 * frame.c (frame_unwind_address_in_block): New function.
2812 (get_frame_address_in_block): New function.
2813
2814 2003-07-10 Andrew Cagney <cagney@redhat.com>
2815
2816 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2817 pre-default. Note: re-generate has no effect.
2818
2819 2003-07-10 Andrew Cagney <cagney@redhat.com>
2820
2821 * gdbarch.sh: When a variable, but not a function, compare against
2822 0. Fix problem in previous patch.
2823 * gdbarch.c: Re-generate.
2824
2825 2003-07-10 Andrew Cagney <cagney@redhat.com>
2826
2827 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2828 functions against NULL, not 0.
2829 * gdbarch.c: Re-generate.
2830
2831 2003-07-10 Fred Fish <fnf@ninemoons.com>
2832
2833 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2834 null string instead of a null pointer.
2835 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2836
2837 2003-07-09 Michael Snyder <msnyder@redhat.com>
2838
2839 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2840
2841 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2842
2843 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2844 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2845 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2846 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2847 * x86-64-tdep.c: ... from here.
2848
2849 2003-07-09 Andreas Schwab <schwab@suse.de>
2850
2851 * m68k-tdep.h (enum struct_return): Define.
2852 (struct gdbarch_tdep): Add struct_return.
2853 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2854 bytes are padded to the right, not to the left. Pass struct value
2855 address in register %a1, not on stack.
2856 (m68k_use_struct_convention): New function.
2857 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2858 struct_return in tdep to pcc_struct_return.
2859 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2860 reg_struct_return.
2861
2862 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2863
2864 * somread.c (som_symfile_offsets): Fix compilation error.
2865
2866 2003-07-09 Andrew Cagney <cagney@redhat.com>
2867
2868 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2869 Add comments about the checks.
2870
2871 2003-07-08 Andrew Cagney <cagney@redhat.com>
2872
2873 * Makefile.in: Make dependency section headers consistent.
2874 (config_h): Move to $BUILD headers section.
2875 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2876 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2877 (ada-exp.tab.c): Move to YACC/LEX section.
2878 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2879 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2880
2881 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2882
2883 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2884 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2885 of strerror with safe_strerror, use ISO C function definitions,
2886 and replace instances of sprintf with snprintf.
2887
2888 2003-07-07 Andrew Cagney <cagney@redhat.com>
2889
2890 * frame.c (get_prev_frame): Enable check for identical frames.
2891 Update comments. Update error messages.
2892
2893 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2894
2895 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2896
2897 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2898
2899 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2900 sort_symtab_syms, no longer necessary.
2901
2902 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2903
2904 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2905
2906 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2907
2908 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2909 (mips_register_byte): Likewise.
2910
2911 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2912
2913 * Makefile.in (sparc_tdep_h): New.
2914 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2915 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2916 * sparc-linux-nat.c: Include "sparc-tdep.h".
2917 * sparc-nat.c: Likewise.
2918 * sparc-tdep.c: Likewise.
2919 * sparc64nbsd-nat.c: Likewise.
2920 * sparcnbsd-nat.c: Likewise.
2921 * sparcnbsd-tdep.c: Likewise.
2922 * sparc-tdep.h: New file.
2923 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2924 and sparc_npc_regnum.
2925
2926 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2927
2928 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2929 (mips_linux_cannot_store_register): List supported instead of
2930 unsupported registers.
2931
2932 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2933
2934 * disasm.c (dump_insns): Separate instructions from addresses.
2935
2936 2003-07-07 Andreas Schwab <schwab@suse.de>
2937
2938 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2939 dependencies.
2940 * m68k-tdep.c (NUM_FREGS): Delete.
2941 (SIG_PC_FP_OFFSET): Delete.
2942 (TARGET_M68K): Delete.
2943 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2944 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2945 P_MOVEL_SP, P_MOVEML_SP): Define.
2946 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2947 P_TRAP): Delete.
2948 (m68k_register_raw_size): Delete.
2949 (m68k_register_virtual_size): Delete.
2950 (m68k_register_type): Renamed from m68k_register_virtual_type and
2951 add gdbarch argument.
2952 (m68k_store_struct_return): Delete.
2953 (m68k_deprecated_extract_return_value): Delete.
2954 (m68k_deprecated_extract_struct_value_address): Delete.
2955 (m68k_frame_chain): Delete.
2956 (m68k_frame_saved_pc): Delete.
2957 (m68k_fix_call_dummy): Delete.
2958 (m68k_push_dummy_frame): Delete.
2959 (m68k_pop_frame): Delete.
2960 (m68k_extract_return_value): New function.
2961 (m68k_store_return_value): Rewrite using regcache.
2962 (m68k_extract_struct_value_address): Rewrite using regcache.
2963 (m68k_push_dummy_call): New function.
2964 (struct m68k_frame_cache): Define.
2965 (m68k_alloc_frame_cache): New function.
2966 (m68k_analyze_frame_setup): New function.
2967 (m68k_analyze_register_saves): New function.
2968 (m68k_analyze_prologue): New function.
2969 (m68k_skip_prologue): Rewrite using above functions.
2970 (m68k_unwind_pc): New function.
2971 (m68k_frame_cache): New function.
2972 (m68k_frame_this_id): New function.
2973 (m68k_frame_prev_register): New function.
2974 (m68k_frame_unwind): New variable.
2975 (m68k_frame_p): New function.
2976 (m68k_sigtramp_frame_cache): New function.
2977 (m68k_sigtramp_frame_this_id): New function.
2978 (m68k_sigtramp_frame_prev_register): New function.
2979 (m68k_sigtramp_frame_unwind): New variable.
2980 (m68k_sigtramp_frame_p): New function.
2981 (m68k_frame_base_address): New function.
2982 (m68k_frame_base): New function.
2983 (m68k_unwind_dummy_id): New function.
2984 (fill_gregset): Use regcache_collect.
2985 (fill_fpregset): Likewise.
2986 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2987 defined.
2988 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2989 deprecated_init_frame_pc, deprecated_store_struct_return,
2990 deprecated_extract_return_value, deprecated_store_return_value,
2991 deprecated_frame_chain, deprecated_frame_saved_pc,
2992 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2993 deprecated_register_virtual_size,
2994 deprecated_max_register_raw_size,
2995 deprecated_max_register_virtual_size,
2996 deprecated_register_virtual_type, deprecated_register_size,
2997 deprecated_register_byte, deprecated_register_bytes,
2998 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2999 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3000 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3001 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3002 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3003 deprecated_push_dummy_frame, deprecated_pop_frame,
3004 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3005 only if SYSCALL_TRAP is defined. Set extract_return_value,
3006 store_return_value, extract_struct_value_address, register_type,
3007 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3008 predicates.
3009 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3010 M68K_MAX_REGISTER_SIZE): Define.
3011 (struct m68k_sigtramp_info): Define.
3012 (struct gdbarch_tdep): Add get_sigtramp_info.
3013 * m68klinux-nat.c (fetch_register): Use register_size instead of
3014 REGISTER_RAW_SIZE. Don't put assignment in if.
3015 (store_register): Likewise.
3016 (fetch_inferior_registers): Likewise.
3017 (store_inferior_registers): Likewise.
3018 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3019 (m68k_linux_frame_saved_pc): Delete.
3020 (m68k_linux_sigcontext_reg_offset,
3021 m68k_linux_ucontext_reg_offset): Define.
3022 (m68k_linux_get_sigtramp_info): New function.
3023 (m68k_linux_extract_return_value): Rewrite using regcache.
3024 (m68k_linux_store_return_value): Likewise.
3025 (m68k_linux_extract_struct_value_address): Likewise.
3026 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3027 Don't set deprecated_frame_saved_pc,
3028 deprecated_extract_return_value, deprecated_store_return_value,
3029 deprecated_extract_struct_value_address. Set
3030 extract_return_value, store_return_value,
3031 extract_struct_value_address.
3032
3033 2003-07-07 Andrew Cagney <cagney@redhat.com>
3034
3035 * expprint.c: Include "user-regs.h" instead of "frame.h".
3036 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3037 frame_map_regnum_to_name.
3038 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3039 (frame_map_name_to_regnum): Simplify, call
3040 user_reg_map_name_to_regnum.
3041 (frame_map_regnum_to_name): Simplify, call
3042 user_reg_map_regnum_to_name.
3043 (frame_register_unwind): Update.
3044 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3045 (_initialize_frame_reg): Call user_reg_add_builtin.
3046 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3047 (value_of_register): Use value_of_user_reg.
3048 * eval.c (evaluate_subexp_standard): Update.
3049 * parse.c (write_dollar_variable): Update.
3050 * d10v-tdep.c (d10v_print_registers_info): Update.
3051 * infcmd.c (registers_info): Update.
3052 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3053 (builtin_regs_h): Delete macro.
3054 (user_regs_h): Define.
3055 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3056 (builtin-regs.o): Delete target.
3057 (user-regs.o): Specify dependencies.
3058 (expprint.o): Update dependencies.
3059 (findvar.o): Update dependencies.
3060 (frame.o): Update dependencies.
3061 (std-regs.o): Update dependencies.
3062
3063 2003-07-06 Christopher Faylor <cgf@redhat.com>
3064
3065 * win32-nat.c (solib_symbols_add): Use one variable for all section
3066 address stuff. Pass variable rather than address of variable to
3067 safe_symbol_file_add.
3068
3069 2003-07-06 Andreas Schwab <schwab@suse.de>
3070
3071 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3072
3073 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3074
3075 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3076
3077 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3078
3079 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3080
3081 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3082
3083 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3084 * config/i386/nto.mh: New file.
3085 * config/i386/nm-nto.h: New file.
3086 * configure.host: Add i[3456]86-*-nto*.
3087
3088 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3089
3090 * remote-vx.c (vx_add_symbols): Fix compilation error.
3091
3092 2003-07-03 Andrew Cagney <cagney@redhat.com>
3093
3094 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3095 * gdbarch.h, gdbarch.c: Re-generate.
3096 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3097 (legacy_register_name): Declare.
3098 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3099 (REGISTER_NAME): Define.
3100 * sparc-tdep.c (legacy_register_name): New function.
3101 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3102 (REGISTER_NAME): Define.
3103 (hppa64_register_name): Declare.
3104 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3105 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3106 (hppa64_register_name): New function.
3107 (hppa_register_name): New function.
3108 * arch-utils.c (legacy_register_name): Delete.
3109 * arch-utils.h (legacy_register_name): Delete.
3110
3111 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3112
3113 * cli/cli-interp.c (cli_interpreter_resume): Update the
3114 cli_uiout's stream to gdb_stdout.
3115
3116 2003-07-03 Andrew Cagney <cagney@redhat.com>
3117
3118 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3119 predicate.
3120 * gdbarch.h, gdbarch.c: Re-generate.
3121 * regcache.c (init_regcache_descr): Use legacy code when either
3122 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3123
3124 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3125
3126 * NEWS: Move "set logging" entry into GDB 6.0 section.
3127
3128 2003-07-02 Jim Blandy <jimb@redhat.com>
3129
3130 * s390-tdep.c (struct frame_extra_info): new member:
3131 'stack_bought_valid'.
3132 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3133 initialize fextra_info->stack_bought.
3134 (s390_frameless_function_invocation): Don't trust the value of
3135 fextra_info_ptr->stack_bought unless
3136 fextra_info->stack_bought_valid is set.
3137
3138 New S390 prologue analyzer.
3139 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3140 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3141 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3142 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3143 compute_x_addr, s390_on_stack, s390_store,
3144 s390_get_signal_frame_info): New functions.
3145 (S390_NUM_SPILL_SLOTS): New macro.
3146 (s390_get_frame_info): Rewritten.
3147 (is_arg_reg): Deleted.
3148
3149 Break out the decoding of S/390 instructions into separate
3150 functions, to make it more legible, and easier to check
3151 against the spec.
3152 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3153 is_rx, is_rxe): New functions.
3154 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3155 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3156 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3157 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3158 enums for opcode values. (Is this an improvement?)
3159
3160 2003-07-02 Andrew Cagney <cagney@redhat.com>
3161
3162 * i386-tdep.c: Revert change committed as part of trad-frame code
3163 below.
3164
3165 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3166
3167 * breakpoint.c (insert_catchpoint): Make static.
3168
3169 2003-07-02 Andreas Schwab <schwab@suse.de>
3170
3171 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3172 former ia64_push_arguments and ia64_push_return_address, and use
3173 regcache functions instead of read/write_register.
3174 (ia64_gdbarch_init): Set push_dummy_call instead of
3175 deprecated_push_arguments and deprecated_push_return_address.
3176
3177 2003-07-01 Andreas Jaeger <aj@suse.de>
3178
3179 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3180 before the call.
3181 Set %rax only to number of SSE registers used.
3182
3183 2003-07-01 Andrew Cagney <cagney@redhat.com>
3184
3185 * trad-frame.h: Update comments, a -1 .addr is reserved.
3186 (trad_frame_value_p, trad_frame_addr_p): Declare.
3187 (trad_frame_reg_p): Declare.
3188 (trad_frame_set_value): Rename trad_frame_register_value.
3189 (trad_frame_set_unknown): Declare.
3190 * trad-frame.c (trad_frame_realreg_p): New function.
3191 (trad_frame_addr_p, trad_frame_value_p): New function.
3192 (trad_frame_set_unknown): New function.
3193 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3194 (trad_frame_prev_register): Use trad_frame_realreg_p,
3195 trad_frame_addr_p and trad_frame_value_p.
3196 (trad_frame_set_value): Rename trad_frame_register_value.
3197 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3198 and trad_frame_set_value.
3199
3200 2003-06-30 Jim Blandy <jimb@redhat.com>
3201
3202 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3203 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3204 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3205 for 16 registers, and then 32 more bytes.
3206 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3207 New macros.
3208 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3209 Move up in the file, since it's now used by is_simple_arg.
3210 (is_simple_arg): Don't assume registers are four bytes long.
3211 Exclude all double arguments. Extended floats are not simple
3212 args.
3213 (is_power_of_two): New function.
3214 (pass_by_copy_ref): Call is_power_of_two, and check that the
3215 length fits in a register, rather than listing all the acceptable
3216 sizes. Extended floats are not passed by reference.
3217 (s390_push_arguments): Don't assume registers are four bytes long.
3218 Reserve an argument register to point to the buffer for structures
3219 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3220 S390_STACK_FRAME_OVERHEAD.
3221
3222 2003-06-30 Andreas Schwab <schwab@suse.de>
3223
3224 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3225 format error message.
3226
3227 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3228
3229 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3230
3231 2003-06-30 David Carlton <carlton@kealia.com>
3232
3233 Band-aid for PR c++/1245.
3234 * Makefile.in (cp-support.o): Depend on complaints_h.
3235 * cp-support.c: Include complaints.h. Add declaration for
3236 find_last_component.
3237 (cp_find_first_component): Separate code into
3238 cp_find_first_component_aux.
3239 (cp_find_first_component_aux): Call demangled_name_complaint.
3240 (demangled_name_complaint): New.
3241
3242 2003-06-30 Andrew Cagney <cagney@redhat.com>
3243
3244 * remote.c (remote_write_bytes): Explicitly compute and then use
3245 the payload size. Update comments to reflect. Fixes problem of
3246 GDB not sending small packets as found by Fred Fish.
3247
3248 2003-06-30 Andrew Cagney <cagney@redhat.com>
3249
3250 * remote.c (remote_async_wait): Fix -Wformat problem.
3251
3252 2003-06-29 Andrew Cagney <cagney@redhat.com>
3253
3254 * remote.c (remote_wait): Call error, and not warning, when the
3255 packet is corrupt.
3256 (remote_async_wait): Ditto.
3257
3258 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3259
3260 * sparc-tdep.c (sparc_y_regnum): Make external again.
3261
3262 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3263
3264 * cli/cli-logging.c (pop_output_files): Add void to function
3265 definition.
3266
3267 2003-06-29 Andrew Cagney <cagney@redhat.com>
3268
3269 * frame.c (frame_register_unwind): Use unsigned char when dumping
3270 the buffer contents.
3271
3272 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3273
3274 * cli/cli-logging.c: New file.
3275 * cli-out.c (struct ui_out_data): Add original_stream.
3276 (cli_redirect): New function.
3277 (cli_ui_out_impl): Add cli_redirect.
3278 (cli_out_new): Initialize original_stream.
3279 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3280 (uo_redirect, ui_out_redirect): New.
3281 * ui-out.h (struct ui_out_impl): Add redirect member.
3282 (redirect_ftype): New.
3283 (ui_out_redirect): Add prototype.
3284 * Makefile.in: Add rules for cli-logging.c.
3285 * NEWS: Mention "set logging".
3286
3287 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3288
3289 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3290
3291 2003-06-27 Andrew Cagney <cagney@redhat.com>
3292
3293 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3294 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3295 * avr-tdep.c (avr_call_dummy_address): Delete function.
3296 (avr_gdbarch_init): Do not set call_dummy_address.
3297
3298 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3299
3300 * symfile.c (syms_from_objfile): Move variables to inner block.
3301 Move the checks for the non-mainline case a bit earlier to avoid
3302 doing some useless computations.
3303
3304 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3305
3306 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3307
3308 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3309
3310 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3311 sections.
3312
3313 2003-06-26 Michael Chastain <mec@shout.net>
3314
3315 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3316 gdb/testsuite/gdb.c++/pr-1210.exp.
3317
3318 2003-06-26 Andrew Cagney <cagney@redhat.com>
3319
3320 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3321 altivec_expression.h and altivec_registers.h.
3322
3323 2003-06-26 Andrew Cagney <cagney@redhat.com>
3324
3325 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3326 info->mach when MIPS16. Patch suggested by Fred Fish.
3327
3328 2003-06-26 Andrew Cagney <cagney@redhat.com>
3329
3330 * utils.c (internal_vproblem): Print the problem to a reason
3331 buffer and then pass to query. Make the msg variable more local.
3332
3333 2003-06-26 Andrew Cagney <cagney@redhat.com>
3334
3335 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3336 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3337 * gdbarch.h, gdbarch.c: Re-generate.
3338 * frame-base.c (default_frame_args_address): Update. Use
3339 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3340 not available.
3341 (default_frame_locals_address): Ditto for
3342 DEPRECATED_FRAME_LOCALS_ADDRESS.
3343 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3344 (vax_frame_num_args): Update.
3345 (vax_gdbarch_init): Update.
3346 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3347 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3348 * mcore-tdep.c (mcore_gdbarch_init): Update.
3349 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3350 * ia64-tdep.c (ia64_gdbarch_init): Update.
3351 * symtab.h (address_class): Update comments.
3352 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3353 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3354 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3355 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3356 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3357 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3358 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3359 * alpha-mdebug-tdep.c: Update.
3360 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3361
3362 2003-06-26 Andreas Jaeger <aj@suse.de>
3363
3364 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3365 of SSE registers so that varargs functions work. Rework handling
3366 of passing arguments on the stack.
3367 (x86_64_store_return_value): Return double and float values in SSE
3368 register.
3369
3370 2003-06-24 Michael Chastain <mec@shout.net>
3371
3372 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3373 the "constructor breakpoints ignored" bug.
3374
3375 2003-06-25 David Carlton <carlton@kealia.com>
3376
3377 * MAINTAINERS: Update e-mail address.
3378
3379 2003-06-24 Jim Blandy <jimb@redhat.com>
3380
3381 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3382
3383 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3384 function.
3385 (ppc_linux_init_abi): Register it as the
3386 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3387
3388 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3389 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3390 method.
3391
3392 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3393 (ppc64_standard_linkage_target): Use it.
3394
3395 2003-06-23 Andrew Cagney <cagney@redhat.com>
3396
3397 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3398 for 0 "int0" and 4 "int32" sized registers.
3399 * gdbtypes.c (builtin_type_int0): Define.
3400 (build_gdbtypes): Initialize builtin_type_int0.
3401 * gdbtypes.h (builtin_type_int0): Declare.
3402
3403 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3404
3405 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3406 as characters are unsigned.
3407
3408 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3409
3410 PR gdb/1179
3411 * dwarfread.c (struct_type): Skip static fields without crashing.
3412
3413 2003-06-22 Andrew Cagney <cagney@redhat.com>
3414
3415 GDB 6.0 branch created.
3416 * README: Update.
3417 * PROBLEMS: Update. Empty.
3418 * NEWS: Update.
3419
3420 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3421
3422 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3423 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3424
3425 2003-06-22 Andrew Cagney <cagney@redhat.com>
3426
3427 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3428 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3429 Velikov.
3430
3431 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3432
3433 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3434 compilers.
3435
3436 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3437
3438 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3439 argument of val_print.
3440 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3441 to the address argument of baseclass_offset or target_read_memory.
3442 Do add it to the argument of cp_print_value_fields.
3443
3444 2003-06-21 Andrew Cagney <cagney@redhat.com>
3445
3446 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3447 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3448 instead of 0..NUM_REGS.
3449 (mips_register_reggroup_p): New function.
3450 (mips_pseudo_register_write): New function.
3451 (mips_pseudo_register_read): New function.
3452 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3453 based on the register's type.
3454 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3455 cooked.
3456 (mips_get_saved_register): Simplify. Assert that REGNO is a
3457 pseudo / cooked.
3458 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3459 (mips_register_type): Replace mips_register_virtual_type. Map
3460 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3461 when available.
3462 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3463 that the register is cooked / virtual.
3464 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3465 Only get the extra info when needed.
3466 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3467 (mips32_heuristic_proc_desc): Fetch the cooked register.
3468 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3469 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3470 (mips_print_register): Use gdbarch_register_type, instead of
3471 REGISTER_VIRTUAL_TYPE.
3472 (print_gp_register_row): Use gdbarch_register_type, instead of
3473 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3474 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3475 Print the pseudo / cooked registers.
3476 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3477 Print the pseudo / cooked registers.
3478 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3479 REG_NUM is pseudo / cooked.
3480 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3481 (mips_n32n64_xfer_return_value): Ditto.
3482 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3483 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3484 (mips_register_sim_regno): New function.
3485 (mips_gdbarch_init): Set deprecated_register_byte,
3486 register_group_p, pseudo_register_write, pseudo_register_read,
3487 register_sim_regno, and num_pseudo_regs. Set register_type,
3488 instead of register_virtual_type.
3489 * Makefile.in (mips-tdep.o): Update dependencies.
3490 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3491 REGISTER_VIRTUAL_TYPE.
3492 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3493 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3494 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3495 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3496 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3497
3498 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3499
3500 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3501 * cli/cli-cmds.c: Include "gdb_vfork.h".
3502 (shell_escape): Use vfork.
3503
3504 2003-06-21 Andrew Cagney <cagney@redhat.com>
3505
3506 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3507 32 bit floating-point register saves.
3508
3509 * frame.h (deprecated_unwind_get_saved_register): Delete.
3510 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3511 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3512 and deprecated_get_next_frame_hack instead of
3513 deprecated_unwind_get_saved_register.
3514
3515 * mips-tdep.c (mips_dump_tdep): Do not print
3516 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3517
3518 * frame.c (get_frame_register): New function.
3519 (frame_unwind_register_signed): New function.
3520 (get_frame_register_signed): New function.
3521 (frame_unwind_register_unsigned): New function.
3522 (get_frame_register_unsigned): New function.
3523 * frame.h: Add comments on naming schema.
3524 (get_frame_register, frame_unwind_register_signed): Declare.
3525 (get_frame_register_signed, get_frame_register_signed): Declare.
3526 (frame_unwind_register_unsigned): Declare.
3527 (get_frame_register_unsigned): Declare.
3528
3529 2003-06-20 Theodore A. Roth <troth@openavr.org>
3530
3531 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3532
3533 2003-06-20 Theodore A. Roth <troth@openavr.org>
3534
3535 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3536 (avr_read_sp): Ditto.
3537
3538 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3539
3540 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3541 * config/arm/nm-linux.h: Likewise.
3542 * config/arm/tm-linux.h: Likewise.
3543 * config/ia64/nm-linux.h: Likewise.
3544 * config/ia64/tm-ia64.h: Likewise.
3545 * config/s390/tm-linux.h: Likewise.
3546 * config/s390/tm-s390.h: Likewise.
3547 * s390-nat.c: Likewise.
3548 * s390-tdep.c: Likewise.
3549
3550 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3551 * config/ia64/linux.mt: Likewise.
3552 * config/m68k/linux.mh: Likewise.
3553 * config/mips/linux.mt: Likewise.
3554 * config/powerpc/linux.mh: Likewise.
3555 * config/sh/linux.mt: Likewise.
3556
3557 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3558
3559 * solib.c (solib_open): Change tests for whether to search
3560 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3561 comments.
3562
3563 2003-06-19 Theodore A. Roth <troth@openavr.org>
3564
3565 * avr-tdep.c (avr_frame_address): Delete function.
3566 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3567 set_gdbarch_frame_args_address.
3568
3569 2003-06-19 Andrew Cagney <cagney@redhat.com>
3570
3571 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3572 (REGISTER_CONVERT_FROM_TYPE): Delete.
3573 (mips_register_convert_to_type): Delete declaration.
3574 (mips_register_convert_from_type): Delete declaration.
3575 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3576 kernel/.
3577
3578 2003-06-19 Michael Snyder <msnyder@redhat.com>
3579
3580 * linux-nat.h: New file.
3581 * linux-nat.c: Include linux-nat.h.
3582 * lin-lwp.c: Include linux-nat.h.
3583 Move struct lwp_info def to linux-nat.h.
3584 * linux-proc.c: Include linux-nat.h.
3585 (linux_make_note_section): Iterate over lwps instead of threads.
3586 (linux_do_thread_registers): Use lwp instead of merged pid.
3587 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3588 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3589 Add dependency on linux_nat_h.
3590
3591 2003-06-19 Theodore A. Roth <troth@openavr.org>
3592
3593 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3594
3595 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3596
3597 * varobj.c (get_type, get_target_type): Use check_typedef.
3598
3599 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3600
3601 * breakpoint.c (insert_catchpoint): Call internal_error.
3602
3603 2003-06-19 Theodore A. Roth <troth@openavr.org>
3604
3605 * avr-tdep.c (avr_push_dummy_code): Delete function.
3606 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3607
3608 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3609
3610 * arch-utils.c (default_prepare_to_proceed): Remove.
3611 (generic_prepare_to_proceed): Remove.
3612 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3613 (generic_prepare_to_proceed): Remove prototype.
3614 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3615 * gdbarch.c: Regenerate.
3616 * gdbarch.h: Regenerate.
3617 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3618 * hppah-nat.c (hppa_switched_threads): Remove.
3619 * infrun.c (prepare_to_proceed): New static function, copied from
3620 generic_prepare_to_proceed. Remove select_it argument.
3621 (proceed): Call prepare_to_proceed.
3622 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3623 variables.
3624 (ptrace_wait): Don't set the removed variables.
3625 (hppa_switched_threads): Remove.
3626 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3627 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3628 (lin_lwp_prepare_to_proceed): Remove prototype.
3629 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3630 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3631
3632 2003-06-18 Theodore A. Roth <troth@openavr.org>
3633
3634 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3635 trad-frame.h.
3636 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3637 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3638 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3639 (AVR_PROLOGUE_*): Enumerate prologue types.
3640 (struct frame_extra_info): Remove.
3641 (struct avr_unwind_cache): Define.
3642 (avr_write_sp): Delete function.
3643 (avr_read_fp): Ditto.
3644 (avr_init_extra_frame_info): Ditto.
3645 (avr_pop_frame): Ditto.
3646 (avr_frame_saved_pc): Ditto.
3647 (avr_saved_pc_after_call): Ditto.
3648 (avr_push_return_address): Ditto.
3649 (avr_frame_chain): Ditto.
3650 (avr_store_struct_return): Ditto.
3651 (avr_push_arguments): Ditto.
3652 (avr_scan_prologue): Update comments. Changed to set up the info for
3653 cache unwinding. Now returns end of prologue PC.
3654 (avr_skip_prologue): Better handling of functions lacking a prologue
3655 by using avr_scan_prologue.
3656 (avr_scan_arg_moves): New function.
3657 (avr_saved_regs_unwinder): Ditto.
3658 (avr_frame_unwind_cache): Ditto.
3659 (avr_unwind_pc): Ditto.
3660 (avr_frame_this_id): Ditto.
3661 (avr_frame_prev_register): Ditto.
3662 (avr_frame_p): Ditto.
3663 (avr_frame_base_address ): Ditto.
3664 (avr_unwind_dummy_id): Ditto.
3665 (avr_push_dummy_code): Ditto.
3666 (push_stack_item): Ditto.
3667 (pop_stack_item): Ditto.
3668 (avr_push_dummy_call): Ditto.
3669 (struct stack_item): Define.
3670 (avr_frame_unwind): Declare structure.
3671 (avr_frame_base): Ditto.
3672 (avr_gdbarch_init): Remove calls to
3673 set_gdbarch_deprecated_init_frame_pc,
3674 set_gdbarch_deprecated_target_read_fp,
3675 set_gdbarch_deprecated_dummy_write_sp,
3676 set_gdbarch_deprecated_fp_regnum,
3677 set_gdbarch_deprecated_push_arguments,
3678 set_gdbarch_deprecated_push_return_address,
3679 set_gdbarch_deprecated_pop_frame,
3680 set_gdbarch_deprecated_store_struct_return,
3681 set_gdbarch_deprecated_frame_init_saved_regs,
3682 set_gdbarch_deprecated_init_extra_frame_info,
3683 set_gdbarch_deprecated_frame_chain,
3684 set_gdbarch_deprecated_frame_saved_pc,
3685 set_gdbarch_deprecated_saved_pc_after_call.
3686 Add calls to set_gdbarch_push_dummy_call,
3687 set_gdbarch_push_dummy_code,
3688 frame_unwind_append_predicate,
3689 frame_base_set_default,
3690 set_gdbarch_unwind_dummy_id,
3691 set_gdbarch_unwind_pc.
3692 Wrap a long line.
3693
3694 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3695
3696 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3697 registers for H8/300S.
3698 (h8300_print_registers_info): Ditto.
3699 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3700
3701 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3702
3703 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3704 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3705 (lin_lwp_wait): Likewise. Update comments.
3706 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3707 (pull_pid_from_list, linux_record_stopped_pid): New.
3708
3709 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3710
3711 * ada-lang.c (scan_discrim_bound): Name first argument.
3712 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3713 declared by ALL_BLOCK_SYMBOLS.
3714
3715 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3716
3717 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3718 ("regcache.h"): Include it.
3719 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3720
3721 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3722
3723 * NEWS: Mention gdbserver detach change and "disconnect" command.
3724 * infcmd.c (disconnect_command): New function.
3725 (_initialize_infcmd): Add ``disconnect'' command.
3726 * remote.c (remote_async_detach): Delete.
3727 (remote_detach): Merge remote_async_detach.
3728 (remote_disconnect): New.
3729 (init_remote_ops): Set to_disconnect.
3730 (init_remote_cisco_ops): Likewise.
3731 (init_remote_async_ops): Likewise. Use remote_detach.
3732 * target.c (cleanup_target): Default to_disconnect.
3733 (update_current_target): Inherit to_disconnect.
3734 (target_disconnect, debug_to_disconnect): New functions.
3735 (setup_target_debug): Set to_disconnect.
3736 * target.h (struct target_ops): Add to_disconnect.
3737 (target_disconnect): Add prototype.
3738
3739 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3740
3741 * breakpoint.c (insert_catchpoint): New function.
3742 (insert_breakpoints): Use catch_exceptions to call
3743 insert_catchpoint. Disable catchpoints if they fail to insert.
3744
3745 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3746
3747 * symfile.c (reread_symbols): Clear sym_private.
3748
3749 2003-06-17 Andrew Cagney <cagney@redhat.com>
3750
3751 * trad-frame.h (struct frame_info): Add opaque declaration.
3752 * remote-fileio.h (struct cmd_list_element): Add opaque
3753 declaration.
3754 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3755 comments.
3756
3757 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3758
3759 * remote.c (remote_prepare_to_store): Replace call to
3760 deprecated_read_register_bytes with multiple regcache_raw_read
3761 calls.
3762
3763 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3764
3765 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3766 (nto_find_and_open_solib): Likewise.
3767 (nto_init_solib_absolute_prefix): Likewise.
3768 (_initialize_nto_tdep): Fix indentation.
3769
3770 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3771
3772 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3773
3774 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3775
3776 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3777
3778 2003-06-17 Jim Blandy <jimb@redhat.com>
3779
3780 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3781
3782 2003-06-16 Theodore A. Roth <troth@openavr.org>
3783
3784 * avr-tdep.c (avr_extract_return_value): New function.
3785 (avr_gdbarch_init): Set extract_return_value method.
3786
3787 2003-06-16 Andrew Cagney <cagney@redhat.com>
3788
3789 * frame.h (deprecated_get_next_frame_hack): Declare.
3790 * frame.c (legacy_saved_regs_prev_register): Only require
3791 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3792 there are always saved regs.
3793 (deprecated_generic_get_saved_register): Do not require
3794 DEPRECATED_FRAME_INIT_SAVED_REGS.
3795 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3796 use frame ID unwind instead.
3797 (deprecated_get_next_frame_hack): New function.
3798
3799 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3800
3801 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3802 (h8300_push_dummy_call): ...this function. Some minor optimization.
3803 (h8300_push_return_address): Remove.
3804 (h8300_gdbarch_init): Remove calls to
3805 set_gdbarch_deprecated_dummy_write_sp,
3806 set_gdbarch_deprecated_push_arguments and
3807 set_gdbarch_deprecated_push_return_address.
3808 Add call to set_gdbarch_push_dummy_call.
3809
3810 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3811
3812 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3813 (E_PSEUDO_EXR_REGNUM): Ditto.
3814 (h8300_is_argument_spill): Check for instructions moving argument
3815 registers into safe registers.
3816 (h8300_skip_prologue): Check for stm instruction to push registers
3817 used for register variables onto stack.
3818 (gdb_print_insn_h8300): Remove.
3819 (h8300_examine_prologue): Add a comment.
3820 (h8300_register_name): Take pseudo registers into account.
3821 (h8300s_register_name): Ditto.
3822 (h8300sx_register_name): Ditto.
3823 (h8300_print_register): Ditto.
3824 (h8300_print_registers_info): Define "nice" printing order.
3825 (h8300_saved_pc_after_call): Take pseudo registers into account.
3826 (h8300_register_type): Ditto. Return type used for remote connection
3827 when requesting real CCR or EXR register, return actual type when
3828 requesting pseudo CCR or EXR.
3829 (h8300_pseudo_register_read): New function.
3830 (h8300_pseudo_register_write): Ditto.
3831 (h8300_dbg_reg_to_regnum): Ditto.
3832 (h8300s_dbg_reg_to_regnum): Ditto.
3833 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3834 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3835 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3836 set_gdbarch_print_insn architecture dependent.
3837 Call set_gdbarch_pseudo_register_read and
3838 set_gdbarch_pseudo_register_write.
3839 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3840
3841 2003-06-16 Andrew Cagney <cagney@redhat.com>
3842
3843 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3844 * gdbarch.h, gdbarch.c: Re-generate.
3845 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3846 * s390-tdep.c (s390_gdbarch_init): Update.
3847 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3848 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3849 * mips-tdep.c (mips_gdbarch_init): Update.
3850 * mcore-tdep.c (mcore_gdbarch_init): Update.
3851 * cris-tdep.c (cris_gdbarch_init): Update.
3852 * infcall.c (call_function_by_hand): Update.
3853 * ia64-tdep.c (ia64_push_arguments): Update comment.
3854 * frame.c (legacy_get_prev_frame): Do not assume
3855 SAVE_DUMMY_FRAME_TOS_P.
3856 * dummy-frame.c (find_dummy_frame): Update comment.
3857
3858 2003-06-16 Andrew Cagney <cagney@redhat.com>
3859
3860 * regcache.c (do_cooked_read): Do not use register_valid_p.
3861
3862 2003-06-15 Theodore A. Roth <troth@openavr.org>
3863
3864 * avr-tdep.c (avr_register_type): Remove a blank line.
3865 (avr_scan_prologue): Correct some comments.
3866
3867 2003-06-15 Theodore A. Roth <troth@openavr.org>
3868
3869 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3870 prologue types.
3871 Properly scan prologues generated by gcc with the -mcall-prologues
3872 option.
3873 Add code to scan -mcall-prologues for mega devices.
3874
3875 2003-06-15 Theodore A. Roth <troth@openavr.org>
3876
3877 * avr-tdep.c (avr_register_byte): Delete function.
3878 (avr_register_raw_size): Delete function.
3879 (avr_register_virtual_size): Delete function.
3880 (avr_register_virtual_type): Delete function.
3881 (avr_register_type): New function.
3882 (avr_address_to_pointer): Remove unused code.
3883 (avr_read_fp): Need to read FP as two separate bytes due to change to
3884 avr_register_type() usage.
3885 (avr_gdbarch_init): Don't set deprecated_register_size.
3886 Don't set deprecated_register_bytes.
3887 Don't set deprecated_register_byte.
3888 Don't set deprecated_register_raw_size.
3889 Don't set deprecated_max_register_raw_size.
3890 Don't set deprecated_register_virtual_size.
3891 Don't set deprecated_max_register_virtual_size.
3892 Don't set deprecated_register_virtual_type.
3893 Set register_type method.
3894
3895 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3896
3897 * Makefile.in (linux-nat.o): Add rule.
3898 * linux-nat.c: New file.
3899 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3900 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3901 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3902 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3903 * config/arm/linux.mh (NATDEPFILES): Likewise.
3904 * config/i386/linux.mh (NATDEPFILES): Likewise.
3905 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3906 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3907 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3908 * config/mips/linux.mh (NATDEPFILES): Likewise.
3909 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3910 * config/s390/s390.mh (NATDEPFILES): Likewise.
3911 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3912
3913 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3914
3915 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3916 replace out-of-date comment.
3917
3918 2003-06-15 Andrew Cagney <cagney@redhat.com>
3919
3920 * rdi-share/host.h (Fail): Change to a varargs function.
3921 * remote-rdi.c (Fail): Update.
3922
3923 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3924
3925 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3926 (i386_convert_register_p, i386_register_to_value,
3927 i386_register_from_value): Handle types longer than 8 bytes.
3928
3929 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3930
3931 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3932 Move floating-point code to new function in i387-tdep.c.
3933 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3934 New functions containing code moved here from i386-tdep.c.
3935 * i387-tdep.h: Add opaque declaration for `struct type'.
3936 (i387_register_to_value, i387_value_to_register): New prototypes.
3937 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3938 (x86_64_init_abi): Set convert_register_p, register_to_value and
3939 value_to_register here.
3940
3941 2003-06-14 Andrew Cagney <cagney@redhat.com>
3942
3943 * mips-tdep.c (mips_register_to_value): Make static.
3944 (mips_value_to_register): Make static.
3945 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3946 * ia64-tdep.c (ia64_register_raw_size): Make static.
3947 (ia64_register_virtual_size): Make static.
3948 (ia64_register_byte): Make static.
3949 * i387-tdep.c: Include "i387-tdep.h".
3950 (print_387_control_word): Delete function.
3951 (print_387_status_word): Delete function.
3952 (print_387_status_bits): Delete function.
3953 (print_387_control_bits): Delete function.
3954 * Makefile.in (i387-tdep.o): Update dependencies.
3955 * rdi-share/host.h (Fail): Declare.
3956 * remote-rdi.c (Fail): Update to match declaration.
3957
3958 2003-06-14 Andrew Cagney <cagney@redhat.com>
3959
3960 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3961 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3962 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3963 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3964 * README: Delete reference to remote-array.
3965 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3966 (remote-array.o): Delete target.
3967 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3968 * remote-array.c: Delete file.
3969
3970 2003-06-14 Andrew Cagney <cagney@redhat.com>
3971 Mark Kettenis <kettenis@gnu.org>
3972
3973 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3974 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3975 parameter with "frame".
3976 * gdbarch.h, gdbarch.c: Re-generate.
3977 * frame.h (put_frame_register): Declare.
3978 * frame.c (put_frame_register): New function.
3979 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3980 (legacy_register_to_value): Rewrite, use "frame" to get the
3981 register value.
3982 (legacy_value_to_register): Rewrite, use "frame" to find the
3983 register's location before storing.
3984 * arch-utils.h (legacy_convert_register_p): Update.
3985 (legacy_register_to_value, legacy_value_to_register): Update.
3986 * findvar.c (value_from_register): Rewrite, eliminate use of
3987 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3988 "frame" to REGISTER_TO_VALUE.
3989 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3990 lval_reg_frame_relative + lval_register branch of the switch. Do
3991 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3992 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3993 I386_EDI_REGNUM): New defines.
3994 (i386_next_regnum, i386_convert_register_p,
3995 i386_register_to_value, i386_value_to_register): New functions.
3996 (i386_register_convertible, i386_register_convert_to_virtual,
3997 i386_convert_to_raw): Remove functions.
3998 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3999 value_to_register instead of register_convertible,
4000 register_convert_to_virtual and register_convert_to_raw.
4001 * mips-tdep.c (mips_convert_register_p): New function.
4002 (mips_value_to_register): Replace mips_register_convert_from_type.
4003 (mips_register_to_value): Replace mips_register_convert_to_type.
4004 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4005 register_to_value.
4006 * alpha-tdep.c (alpha_convert_register_p): Update.
4007 (alpha_value_to_register): Update, store the register.
4008 (alpha_register_to_value): Update, fetch the register.
4009
4010 2003-06-14 Theodore A. Roth <troth@openavr.org>
4011
4012 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4013 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4014 Don't set deprecated_call_dummy_words.
4015 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4016 Don't set remote_translate_xfer_address.
4017 (avr_io_reg_read_command): Remove commented out debug printf.
4018 Wrap a long line.
4019
4020 2003-06-14 Theodore A. Roth <troth@openavr.org>
4021
4022 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4023 causes gdb to seg fault.
4024
4025 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4026
4027 * sparc-nat.c (fetch_inferior_registers): Correct
4028 a reference to "registers".
4029
4030 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4031
4032 * Makefile.in (exc_request_U_h): Define
4033 (exc_request_S_h): Likewise.
4034 (msg_reply_S_h): Likewise.
4035 (msg_U_h): Likewise.
4036 (notify_S_h): Likewise.
4037 (process_reply_S_h): Likewise.
4038 (gnu-nat.o): Depend on gdb_obstack_h
4039 * gnu-nat.c: Include "gdb_obstack.h".
4040
4041 2003-06-13 Andrew Cagney <cagney@redhat.com>
4042
4043 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4044 * gdbarch.h, gdbarch.c: Re-generate.
4045
4046 2003-06-13 Andrew Cagney <cagney@redhat.com>
4047
4048 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4049 when deprecated REGISTER macros can be deleted.
4050 * gdbarch.h, gdbarch.c: Re-generate.
4051
4052 2003-06-13 Jim Blandy <jimb@redhat.com>
4053
4054 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4055 Linux entry point symbols for _dl_debug_state, too.
4056
4057 2003-06-13 Andrew Cagney <cagney@redhat.com>
4058
4059 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4060 available, do not use the FP register, and always save the TOS.
4061 * dummy-frame.c (dummy_frame_this_id): Do not assert
4062 SAVE_DUMMY_FRAME_TOS.
4063 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4064 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4065 (i386_push_dummy_call): Add 8 to the returned SP.
4066 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4067 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4068 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4069 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4070 (x86_64_push_dummy_call): Return "sp + 16".
4071 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4072 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4073 save_dummy_frame_tos.
4074
4075 2003-06-13 Jim Blandy <jimb@redhat.com>
4076
4077 * frv-tdep.c (frv_use_struct_convention): Delete static
4078 declaration for function deleted in my change of 2003-06-12.
4079
4080 2003-06-13 Theodore A. Roth <troth@openavr.org>
4081
4082 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4083 (avr_pointer_to_address): Shift code addrs left 1 bit.
4084 (avr_convert_from_func_ptr_addr): Delete function since operation is
4085 better handled by avr_address_to_pointer and avr_pointer_to_address.
4086 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4087
4088 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4089
4090 From Kelley Cook <kelleycook@wideopenwest.com>:
4091 * configure.host: Accept i[34567]86 variants.
4092 * configure.tgt: Likewise.
4093 * nlm/configure.in: Likewise.
4094 * nlm/configure: Regenerated.
4095
4096 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4097
4098 * arm-tdep.c (solib-svr4.h): Dont' include it.
4099 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4100 * arm-linux-tdep.c: ... here. Make static.
4101 (arm_linux_init_abi): Register it.
4102 (solib-svr4.h): Include it.
4103 * Makefile.in: Update dependencies.
4104 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4105 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4106
4107 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4108
4109 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4110 indicate registers used for return values.
4111 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4112 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4113 members.
4114 (h8300_init_extra_frame_info): Ditto.
4115 (h8300_frame_locals_address): Removed.
4116 (h8300_frame_args_address): Removed.
4117 (h8300_extract_return_value): Use new regcache structure. Only care
4118 for 16 bit CPUs.
4119 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4120 (h8300_store_return_value): Use new regcache structure. Only care
4121 for 16 bit CPUs.
4122 (h8300h_store_return_value): Same function for 32 bit CPUs.
4123 (h8300_store_struct_return): Removed.
4124 (h8300_extract_struct_value_address): Use new regcache structure.
4125 (h8300h_extract_struct_value_address): Removed.
4126 (h8300_push_dummy_code): New function.
4127 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4128 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4129 set_gdbarch_store_return_value architecture dependent.
4130 Call set_gdbarch_push_dummy_code and
4131 set_gdbarch_extract_struct_value_address.
4132 Remove calls to set_gdbarch_frame_args_address,
4133 set_gdbarch_frame_locals_address,
4134 set_gdbarch_deprecated_store_struct_return,
4135 set_gdbarch_deprecated_extract_return_value,
4136 set_gdbarch_deprecated_extract_struct_value_address,
4137 set_gdbarch_deprecated_call_dummy_words and
4138 set_gdbarch_deprecated_sizeof_call_dummy_words.
4139
4140 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4141
4142 * h8300-tdep.c (h8300_register_byte): Remove.
4143 (h8300h_register_byte): Remove.
4144 (h8300_register_virtual_type): Remove. Substitute by...
4145 (h8300_register_type): New function.
4146 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4147 (h8300h_extract_struct_value_address): Ditto.
4148 (h8300_gdbarch_init): Drop calls to
4149 set_gdbarch_deprecated_register_byte and
4150 set_gdbarch_deprecated_register_virtual_type.
4151 Add call to set_gdbarch_register_type.
4152
4153 2003-06-13 Andrew Cagney <cagney@redhat.com>
4154
4155 * gdbarch.sh: Update comments on registers.
4156 (deprecated_register_byte): Rename register_byte.
4157 (deprecated_register_raw_size): Rename register_raw_size.
4158 (deprecated_register_virtual_size): Rename register_virtual_size.
4159 (deprecated_register_virtual_type): Rename register_virtual_type.
4160 * gdbarch.h, gdbarch.c: Re-generate.
4161 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4162 * vax-tdep.c (vax_gdbarch_init): Update.
4163 * v850-tdep.c (v850_gdbarch_init): Update.
4164 * sparc-tdep.c (sparc_gdbarch_init): Update.
4165 * sh-tdep.c (sh_gdbarch_init): Update.
4166 * s390-tdep.c (s390_gdbarch_init): Update.
4167 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4168 * ns32k-tdep.c: Update.
4169 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4170 * mips-tdep.c (mips_gdbarch_init): Update.
4171 * mcore-tdep.c (mcore_gdbarch_init): Update.
4172 * m68k-tdep.c (m68k_gdbarch_init): Update.
4173 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4174 * ia64-tdep.c (ia64_gdbarch_init): Update.
4175 * hppa-tdep.c (hppa_gdbarch_init): Update.
4176 * h8300-tdep.c (h8300_gdbarch_init): Update.
4177 * frv-tdep.c (frv_gdbarch_init): Update.
4178 * cris-tdep.c (cris_gdbarch_init): Update.
4179 * avr-tdep.c (avr_gdbarch_init): Update.
4180 * alpha-tdep.c (alpha_gdbarch_init): Update.
4181 * arm-tdep.c (arm_gdbarch_init): Update.
4182
4183 2003-06-13 Andrew Cagney <cagney@redhat.com>
4184
4185 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4186 mips_o32_use_struct_convention with always_use_struct_convention.
4187
4188 2003-06-12 David Carlton <carlton@kealia.com>
4189
4190 * cp-namespace.c (cp_set_block_scope): Comment out
4191 processing_has_namespace_info branch.
4192
4193 2003-06-12 Jim Blandy <jimb@redhat.com>
4194
4195 Recognize and skip 64-bit PowerPC Linux linkage functions.
4196 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4197 insn_pattern, insns_match_pattern, d_field, ds_field): New
4198 functions, macros, and types for working with PPC instructions.
4199 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4200 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4201 ppc64_skip_trampoline_code): New functions, variables, and macros
4202 for recognizing and skipping linkage functions.
4203 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4204 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4205
4206 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4207 register offsets for both the 32- and 64-bit interfaces.
4208
4209 Actually finish the job started by my change of 2003-05-29.
4210 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4211 other #definition of this.
4212 (ppc_linux_skip_trampoline_code): Remove declaration.
4213 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4214 static.
4215 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4216 method for GDBARCH.
4217
4218 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4219 'long' on ppc64-*-linux*.
4220
4221 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4222 isn't #defined, assume the register doesn't exist: act as if
4223 tdep->ppc_mq_regnum were -1.
4224
4225 * configure.host, configure.tgt: Add entries for
4226 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4227 powerpc/linux.mt.
4228 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4229 New files.
4230
4231 * arch-utils.c (always_use_struct_convention): New function.
4232 * arch-utils.h (always_use_struct_convention): New prototype.
4233 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4234 (alpha_gdbarch_init): Register always_use_struct_convention,
4235 instead of alpha_use_struct_convention.
4236 * cris-tdep.c (cris_use_struct_convention): Delete.
4237 (cris_gdbarch_init): Register always_use_struct_convention,
4238 instead of cris_use_struct_convention.
4239 * frv-tdep.c (frv_use_struct_convention): Delete.
4240 (frv_gdbarch_init): Register always_use_struct_convention,
4241 instead of frv_use_struct_convention.
4242 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4243 (h8300_gdbarch_init): Register always_use_struct_convention,
4244 instead of h8300_use_struct_convention.
4245 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4246 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4247 instead of mips_o32_use_struct_convention.
4248
4249 2003-06-12 Andrew Cagney <cagney@redhat.com>
4250
4251 * wince.c: Include "mips-tdep.h".
4252 * mips-tdep.h (mips_next_pc): Declare.
4253 * mcore-tdep.c: Make more local functions static.
4254 * Makefile.in (wince.o): Update dependencies.
4255
4256 2003-06-12 David Carlton <carlton@kealia.com>
4257
4258 * symtab.c (lookup_symbol_aux_minsyms): Replace
4259 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4260 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4261 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4262 SYMBOL_NATURAL_NAME.
4263
4264 2003-06-12 Andreas Schwab <schwab@suse.de>
4265
4266 * Makefile.in (tuiDisassem.o): Update dependencies.
4267
4268 2003-06-12 David Carlton <carlton@bactrian.org>
4269
4270 * symtab.h: Delete declaration of make_symbol_overload_list.
4271 Add declaration of lookup_partial_symbol.
4272 * symtab.c (remove_params): Move to cp-support.c.
4273 (overload_list_add_symbol, make_symbol_overload_list)
4274 (sym_return_val_size, sym_return_val_index): Ditto.
4275 (lookup_partial_symbol): Make extern.
4276 * cp-support.h: Add declaration of make_symbol_overload_list.
4277 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4278 symtab.h, and block.h.
4279 (remove_params): Move here from symtab.c.
4280 (overload_list_add_symbol, make_symbol_overload_list)
4281 (sym_return_val_size, sym_return_val_index): Ditto.
4282 * valops.c: Include cp-support.h.
4283 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4284 frame_h, and block_h.
4285 (valops.o): Depend on cp_support_h.
4286
4287 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4288
4289 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4290 substitute by NUM_REGS throughout.
4291 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4292 (h8300s_register_name): New function for H8S registers.
4293 (h8300sx_register_name): Ditto for H8SX registers.
4294 (h8300_print_register): Revise register printing, avoid depending
4295 on 32 bit long.
4296 (h8300_register_byte): Only care for H8/300 registers.
4297 (h8300h_register_byte): New function for any other architecture.
4298 (h8300_register_raw_size): Remove.
4299 (h8300_register_virtual_type): Revise to return actually useful
4300 type.
4301 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4302 (h8300h_extract_struct_value_address): New function for any other
4303 architecture.
4304 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4305 set_gdbarch_register_name, set_gdbarch_register_byte,
4306 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4307 Remove calls to set_gdbarch_deprecated_register_size,
4308 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4309 set_gdbarch_deprecated_max_register_raw_size,
4310 set_gdbarch_register_virtual_size and
4311 set_gdbarch_deprecated_max_register_virtual_size entirely.
4312 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4313 set_gdbarch_long_double_bit.
4314
4315 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4316
4317 * doublest.c (convert_doublest_to_floatformat): When dealing
4318 with the implied integer bit, only alter mant_bits if we are
4319 processing a full 32 bits of mantissa.
4320
4321 2003-06-11 David Carlton <carlton@bactrian.org>
4322
4323 * dictionary.h: New.
4324 * dictionary.c: New.
4325 * block.h: Add opaque declaration for struct dictionary.
4326 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4327 'sym' members.
4328 (BLOCK_DICT): New macro.
4329 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4330 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4331 BLOCK_SHOULD_SORT.
4332 (ALL_BLOCK_SYMBOLS): Update definition.
4333 * Makefile.in (SFILES): Add dictionary.c.
4334 (dictionary_h): New.
4335 (COMMON_OBS): Add dictionary.o.
4336 (dictionary.o): New.
4337 (ada-lang.o): Depend on dictionary_h.
4338 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4339 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4340 (mi-cmd-stack.o): Ditto.
4341 (gdbtk-cmds.o): Update dependencies.
4342 (gdbtk-stack.o): Ditto.
4343 * ada-lang.c: Include dictionary.h.
4344 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4345 (fill_in_ada_prototype, debug_print_block): Ditto.
4346 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4347 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4348 'is_sorted'.
4349 * mdebugread.c: Include dictionary.h.
4350 (struct parse_stack): Delete 'maxsyms' member.
4351 (parse_symbol): Update calls to new_block. Delete calls to
4352 shrink_block. Use dictionary methods.
4353 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4354 Update calls to new_symtab. Don't maintain maxsyms data.
4355 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4356 (add_symbol): Just call dict_add_symbol.
4357 (new_symtab): Delete 'maxsyms' argument.
4358 (new_symtab): Update calls to new_block.
4359 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4360 (shrink_block): Delete function.
4361 (fixup_sigtramp): Update call to new_block. Add symbol via
4362 dict_add_symbol.
4363 * jv-lang.c: Include dictionary.h.
4364 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4365 appropriately. Set class_symtab->free_func. Make sure the
4366 blockvector is big enough to hold two blocks.
4367 (add_class_symtab_symbol): Use dictionary methods.
4368 (free_class_block): New function.
4369 (type_from_class): Replace explicit iteration by
4370 ALL_BLOCK_SYMBOLS.
4371 * symtab.h (struct symtab): Replace 'free_ptr' method by
4372 'free_func'.
4373 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4374 sort_symtab_syms.
4375 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4376 sort_symtab_syms.
4377 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4378 Include dictionary.h.
4379 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4380 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4381 sort_symtab_syms.
4382 * objfiles.c: Include dictionary.h.
4383 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4384 * buildsym.c: Include dictionary.h.
4385 (finish_block): Use dictionary methods.
4386 (end_symtab): Set free_func to NULL, not free_ptr.
4387 * tracepoint.c: Include dictionary.h.
4388 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4389 (scope_info): Ditto.
4390 * stack.c: Include dictionary.h.
4391 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4392 (print_block_frame_labels, print_frame_arg_vars)
4393 (print_frame_args): Ditto.
4394 * symmisc.c (free_symtab_block): Use dictionary methods.
4395 (dump_symtab): Ditto.
4396 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4397 Include dictionary.h.
4398 * symfile.h: Delete declarations of sort_block_syms,
4399 sort_symtab_syms.
4400 * symfile.c (sort_block_syms): Delete.
4401 (sort_symtab_syms): Delete.
4402 * symtab.c: Include dictionary.h.
4403 (lookup_block_symbol): Use dictionary iterators.
4404 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4405 (search_symbols, make_symbol_completion_list): Ditto.
4406 (make_symbol_overload_list): Ditto.
4407 * valops.c (value_of_local): Use dict_empty.
4408 Include dictionary.h.
4409
4410 2003-06-11 J. Brobecker <brobecker@gnat.com>
4411
4412 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4413
4414 2003-06-11 David Carlton <carlton@bactrian.org>
4415
4416 * block.h (BLOCK_SHOULD_SORT): Delete.
4417 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4418 blocks.
4419 * ada-lang.c (ada_add_block_symbols): Ditto.
4420 * symfile.c (sort_block_syms): Delete.
4421 (sort_symtab_syms): Ditto.
4422 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4423 declarations.
4424 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4425 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4426 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4427 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4428 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4429 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4430 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4431
4432 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4433
4434 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4435 bits to 128.
4436
4437 2003-06-11 Andrew Cagney <cagney@redhat.com>
4438
4439 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4440 REGISTER_CONVERTIBLE.
4441 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4442 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4443 * gdbarch.h, gdbarch.c: Re-generate.
4444 * arch-utils.h (deprecated_register_convertible_not): Rename
4445 generic_register_convertible_not.
4446 * arch-utils.c (deprecated_register_convertible_not): Rename
4447 generic_register_convertible.
4448 (legacy_convert_register_p, legacy_register_to_value): Update.
4449 * sh-tdep.c (sh64_push_arguments): Update.
4450 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4451 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4452 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4453 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4454 * arch-utils.c (legacy_value_to_register): Update.
4455 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4456 (rs6000_register_convert_to_raw): Make parameter "from" const.
4457 * mips-tdep.c (mips_gdbarch_init): Update.
4458 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4459 * infcmd.c (default_print_registers_info): Update.
4460 * ia64-tdep.c (ia64_gdbarch_init): Update.
4461 (ia64_register_convert_to_raw): Make parameter "from" const.
4462 * i386-tdep.c (i386_gdbarch_init): Update.
4463 (i386_register_convert_to_raw): Update.
4464
4465 2003-06-11 Andrew Cagney <cagney@redhat.com>
4466
4467 * remote-fileio.c: Include "remote-fileio.h".
4468 * Makefile.in (remote-fileio.o): Update dependencies.
4469 (remote_fileio_h): Fix typo.
4470
4471 2003-06-11 Andrew Cagney <cagney@redhat.com>
4472
4473 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4474 (xstormy16_save_dummy_frame_tos): Make static.
4475 (_initialize_xstormy16_tdep): Add declaration.
4476 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4477 * v850-tdep.c: Make local functions static.
4478 (_initialize_v850_tdep): Add declaration.
4479 * sparc-tdep.c: Make local functions static.
4480 (_initialize_sparc_tdep): Add declaration.
4481 * sh-tdep.c: Make local functions static.
4482 (_initialize_sh_tdep): Add declaration.
4483 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4484 * s390-tdep.c: Make local functions static.
4485 (_initialize_s390_tdep): Add declaration.
4486 * dbxread.c (find_stab_function_addr): Make static.
4487 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4488 * ocd.c (_initialize_remote_ocd): Add declaration.
4489 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4490 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4491 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4492 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4493 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4494 * remote-array.c (_initialize_array): Add declaration.
4495 (_initialize_remote_monitors): Add declaration.
4496 * remote-mips.c: Make local functions static.
4497 (_initialize_remote_mips): Add declaration.
4498 * mcore-tdep.c: Make all local functions static.
4499 (_initialize_mcore_tdep): Add declaration.
4500 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4501 * abug-rom.c (_initialize_abug_rom): Add declaration.
4502 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4503 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4504 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4505 * remote-est.c (_initialize_est): Add declaration.
4506 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4507 (m68hc11_call_dummy_address): Make static.
4508 * ia64-tdep.c: Make local functions static.
4509 (_initialize_ia64_tdep): Add declaration.
4510 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4511 * monitor.c (monitor_wait_filter): Make static.
4512 (_initialize_remote_monitors): Add declaration.
4513 * remote-hms.c (_initialize_remote_hms): Add declaration.
4514 * remote-e7000.c (fetch_regs_from_dump): Make static.
4515 (expect_n): Make static.
4516 (_initialize_remote_e7000): Add declaration.
4517 * ser-e7kpc.c: Always include "defs.h".
4518 (_initialize_ser_e7000pc): Add declaration.
4519 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4520 * cris-tdep.c: Make all but one function static.
4521 (_initialize_cris_tdep): Add declaration.
4522 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4523 * solib.c (update_solib_list): Make static.
4524 (_initialize_solib): Add declaration.
4525 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4526 (_initialize_avr_tdep): Add declaration.
4527 * remote-rdi.c (voiddummy): Make static.
4528 (_initialize_remote_rdi): Add declaration.
4529 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4530 * remote-rdp.c (send_rdp): Make static.
4531 (_initialize_remote_rdp): Add declaration.
4532 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4533
4534 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4535
4536 * remote-fileio.c: Make ari happy.
4537
4538 2003-06-10 J. Brobecker <brobecker@gnat.com>
4539
4540 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4541 fetching the trailing bytes of the buffer we are about to write.
4542
4543 2003-06-10 Andrew Cagney <cagney@redhat.com>
4544
4545 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4546 * Makefile.in (remote-fileio.o): Update dependencies.
4547 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4548 include <setjmp.h>, or <sys/types.h> conditional on USG.
4549 (remote_fio_jmp_buf): Delete global variable.
4550
4551 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4552 Martin M. Hunt <hunt@redhat.com>
4553
4554 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4555 (SFILES): Add remote-fileio.c.
4556 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4557 dependencies for building remote.o.
4558 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4559 * remote-fileio.h: New header file defining remote File-I/O interface.
4560 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4561 static storage class.
4562 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4563 'F' packet.
4564 (_initialize_remote): Call initialize_remote_fileio().
4565 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4566 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4567 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4568 (captured_main): Initialize new ui_files.
4569 * ui-file.c: Add read and fgets input functions.
4570 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4571 (null_file_read): New function.
4572 (ui_file_read): New function.
4573 (set_ui_file_read): New function.
4574 (stdio_file_read): New function.
4575 * ui-file.h: New type ui_file_read_ftype.
4576 (set_ui_file_read): Declare.
4577 (ui_file_read): Declare.
4578
4579 2003-06-09 Andrew Cagney <cagney@redhat.com>
4580
4581 * frame.h (deprecated_unwind_get_saved_register): Rename
4582 generic_unwind_get_saved_register, update comments.
4583 * mips-tdep.c (mips_get_saved_register): Update.
4584 * frame.c (deprecated_unwind_get_saved_register): Update.
4585
4586 2003-06-09 Andrew Cagney <cagney@redhat.com>
4587
4588 * vax-tdep.c (vax_frame_locals_address): Delete function.
4589 (vax_gdbarch_init): Do not set frame_locals_address.
4590 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4591 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4592 * s390-tdep.c (s390_frame_args_address): Delete function.
4593 (s390_gdbarch_init): Do not set frame_args_address or
4594 frame_locals_address.
4595 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4596 (ns32k_gdbarch_init): Do not set frame_locals_address.
4597 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4598 (hppa_frame_locals_address): Delete function.
4599 (hppa_gdbarch_init): Do not set frame_args_address, or
4600 frame_locals_address.
4601 * arm-tdep.c (arm_frame_args_address): Delete.
4602 (arm_frame_locals_address): Delete.
4603 (arm_gdbarch_init): Do not set frame_args_address, or
4604 frame_locals_address.
4605
4606 2003-06-09 Andrew Cagney <cagney@redhat.com>
4607
4608 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4609 * gdbarch.h, gdbarch.c: Re-generate.
4610 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4611 * arch-utils.c (frame_num_args_unknown): Delete function.
4612 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4613 (frame_info): Use FRAME_NUM_ARGS_P.
4614 * arm-tdep.c (arm_frame_num_args): Delete function.
4615 (arm_gdbarch_init): Do not set frame_num_args.
4616 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4617 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4618 (hppa_gdbarch_init): Do not set frame_num_args.
4619 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4620 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4621 frame_num_args to default frame_num_args_unknown.
4622 * v850-tdep.c (v850_gdbarch_init): Ditto.
4623 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4624 * sh-tdep.c (sh_gdbarch_init): Ditto.
4625 * s390-tdep.c (s390_gdbarch_init): Ditto.
4626 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4627 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4628 * mips-tdep.c (mips_gdbarch_init): Ditto.
4629 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4630 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4631 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4632 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4633 * i386-tdep.c (i386_gdbarch_init): Ditto.
4634 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4635 * frv-tdep.c (frv_gdbarch_init): Ditto.
4636 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4637 * cris-tdep.c (cris_gdbarch_init): Ditto.
4638 * avr-tdep.c (avr_gdbarch_init): Ditto.
4639 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4640
4641 2003-06-09 Andrew Cagney <cagney@redhat.com>
4642
4643 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4644 (print_frame_args): Moved to "stack.c".
4645 * stack.c: Include "gdb_assert.h".
4646 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4647 (print_frame_args): Moved from "printcmd.c".
4648 * frame.h (print_frame_args): Delete declaration.
4649 * Makefile.in (stack.o): Update dependencies.
4650
4651 2003-06-08 Andrew Cagney <cagney@redhat.com>
4652
4653 * frame.c (get_prev_frame): Remove reference to
4654 frame_args_address_correct in comments.
4655 * frame-base.c (default_frame_args_address): Delete code
4656 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4657 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4658 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4659 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4660 (vax_frame_args_address_correct): Delete declaration.
4661
4662 2003-06-08 Andrew Cagney <cagney@redhat.com>
4663
4664 * gdbarch.sh (UNWIND_SP): Add.
4665 * gdbarch.h, gdbarch.c: Re-generate.
4666 * frame.c (frame_sp_unwind): New function.
4667 (get_frame_sp): New function.
4668 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4669 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4670 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4671 value.
4672 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4673 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4674
4675 2003-06-08 Andrew Cagney <cagney@redhat.com>
4676
4677 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4678 REMOTE_BREAKPOINT.
4679 * remote.c: Update.
4680 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4681 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4682 * config/m68k/tm-sun3.h: Update.
4683 * config/m68k/tm-m68klynx.h: Update.
4684 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4685
4686 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4687 trad_frame". Update comments.
4688 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4689 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4690 (trad_frame_register_value, trad_frame_prev_register): Update.
4691
4692 2003-06-08 Andrew Cagney <cagney@redhat.com>
4693
4694 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4695 from GCC's acinclude.m4.
4696 * configure.in: Check for getopt's delcaration.
4697 * aclocal.m4, config.in, configure: Re-generate.
4698 * main.c (error_init): Delete declaration.
4699 * defs.h (error_init): Declare.
4700 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4701 (rs6000_convert_from_func_ptr_addr): Make static.
4702 (_initialize_rs6000_tdep): Add declaration.
4703 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4704 (show_commands, set_verbose, show_history): Delete declaration.
4705 * top.h (set_verbose): Add declaration.
4706 (show_history, set_history, show_commands): Add declaration.
4707 (do_restore_instream_cleanup): Add declaration.
4708 * objc-lang.c (specialcmp): Make static.
4709 (print_object_command): Make static.
4710 (find_objc_msgsend): Make static.
4711 (find_objc_msgcall_submethod_helper): Make static.
4712 (find_objc_msgcall_submethod): Make static.
4713 (_initialize_objc_language): Add declaration.
4714 (find_implementation_from_class): Make static.
4715 (find_implementation): Make static.
4716 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4717 * objc-lang.h (lookup_struct_typedef): Add declaration.
4718 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4719 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4720 (do_restore_user_call_depth): Make static.
4721 (do_restore_instream_cleanup): Delete declaration.
4722 (dont_repeat): Delete declaration.
4723 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4724 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4725 * reggroups.c (_initialize_reggroup): Add declaration.
4726 * cp-support.c (_initialize_cp_support): Add declaration.
4727 * cp-abi.c (_initialize_cp_abi): Add declaration.
4728 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4729 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4730 (_initialize_gnu_v3_abi): Add declaration.
4731 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4732 (_initialize_gnu_v2_abi): Add declaration.
4733 * frame-base.c (_initialize_frame_base): Add declaration.
4734 * doublest.c (floatformat_from_length): Make static.
4735 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4736 * frame.c (create_sentinel_frame): Make static.
4737 (_initialize_frame): Add declaration.
4738 * top.c (do_catch_errors): Make static.
4739 (gdb_rl_operate_and_get_next_completion): Make static.
4740 * typeprint.c: Include "typeprint.h".
4741 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4742 (sentinel_frame_this_id): Make static.
4743 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4744 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4745 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4746 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4747 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4748 * maint.c (maintenance_print_architecture): Make static.
4749 * signals/signals.c (_initialize_signals): Add declaration.
4750 * std-regs.c (_initialize_frame_reg): Add declaration.
4751 * jv-exp.y (push_variable): ISO C definition.
4752 (push_qualified_expression_name): Ditto.
4753 * memattr.c (_initialize_mem): Add declaration.
4754 * remote.c (remote_check_watch_resources): Make static.
4755 (remote_stopped_by_watchpoint): Make static.
4756 (remote_stopped_data_address): Make static.
4757 * d10v-tdep.c (nr_dmap_regs): Make static.
4758 (a0_regnum): Make static.
4759 (d10v_frame_unwind_cache): Make static.
4760 (d10v_frame_p): Make static.
4761 * osabi.c (show_osabi): Make static.
4762 (_initialize_gdb_osabi): Add extern declaration.
4763 * gdbtypes.c (make_qualified_type): Make static.
4764 (safe_parse_type): Make static.
4765 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4766 * macrotab.c (macro_bcache_free): Make static.
4767 * interps.c (interp_set_quiet): Make static.
4768 (interpreter_exec_cmd): Make static.
4769 * stack.h (select_frame_command): New file.
4770 * stack.c: Include "stack.h".
4771 (select_frame_command_wrapper): Delete function.
4772 (select_frame_command): Make global.
4773 * infcall.c: Include "infcall.h".
4774 * linespec.c: Include "linespec.h".
4775 * symfile.c (sections_overlap): Make static.
4776 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4777 * charset.c (_initialize_charset): Add missing prototype.
4778 * regcache.c (init_legacy_regcache_descr): Make static.
4779 (do_regcache_xfree): Make static.
4780 (regcache_xfer_part): Make static.
4781 (_initialize_regcache): Add missing prototype.
4782 * breakpoint.c (parse_breakpoint_sals): Make static.
4783 (breakpoint_sals_to_pc): Make static.
4784 * interps.h (clear_interpreter_hooks): ISO C declaration.
4785 * Makefile.in (stack_h): Define.
4786 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4787 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4788
4789 2003-06-08 Andrew Cagney <cagney@redhat.com>
4790
4791 * Makefile.in (d10v-tdep.o): Update dependencies.
4792 (SFILES): Add trad-frame.c.
4793 (trad_frame_h): Define.
4794 (COMMON_OBS): Add trad-frame.o.
4795 (trad-frame.o): Specify dependencies.
4796 * d10v-tdep.c: Include "trad-frame.h".
4797 (saved_regs_unwinder): Delete function.
4798 (d10v_frame_prev_register): Use trad_frame_prev_register.
4799 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4800 trad_frame", delete "regs" and "prev_sp".
4801 (prologue_find_regs): Use trad-frame.
4802 * trad-frame.h, trad-frame.c: New files.
4803
4804 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4805
4806 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4807
4808 2003-06-07 Adam Fedor <fedor@gnu.org>
4809
4810 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4811 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4812 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4813 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4814 resolve_msgsend_super, resolve_msgsend_super_stret):
4815 Use it.
4816
4817 2003-06-07 Andrew Cagney <cagney@redhat.com>
4818
4819 * symfile.h: Re-indent, clean up comments.
4820
4821 2003-06-07 Andrew Cagney <cagney@redhat.com>
4822
4823 * inferior.h (deprecated_write_sp): Replace
4824 generic_target_write_sp.
4825 * regcache.c (deprecated_write_sp): Replace
4826 generic_target_write_sp.
4827 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4828 * vax-tdep.c (vax_gdbarch_init): Update.
4829 * v850-tdep.c (v850_gdbarch_init): Update.
4830 * sparc-tdep.c (sparc_gdbarch_init): Update.
4831 * sh-tdep.c (sh_gdbarch_init): Update.
4832 * s390-tdep.c (s390_gdbarch_init): Update.
4833 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4834 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4835 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4836 * mcore-tdep.c (mcore_gdbarch_init): Update.
4837 * m68k-tdep.c (m68k_gdbarch_init): Update.
4838 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4839 * ia64-tdep.c (ia64_gdbarch_init): Update.
4840 * h8300-tdep.c (h8300_gdbarch_init): Update.
4841 * frv-tdep.c (frv_gdbarch_init): Update.
4842 * cris-tdep.c (cris_gdbarch_init): Update.
4843 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4844
4845 2003-06-07 Andrew Cagney <cagney@redhat.com>
4846
4847 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4848 Assert that PC_REGNUM is valid.
4849 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4850
4851 2003-06-07 Andrew Cagney <cagney@redhat.com>
4852
4853 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4854 * gdbarch.h, gdbarch.c: Regenerate.
4855 * mn10300-tdep.c: Include "gdb_assert.h".
4856 (mn10300_read_fp): New function.
4857 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4858 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4859 * ia64-tdep.c: Include "gdb_assert.h".
4860 (ia64_read_fp): New function.
4861 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4862 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4863 * regcache.c (generic_target_read_sp): Delete function.
4864 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4865 * inferior.h (generic_target_read_sp): Delete declaration.
4866 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4867 generic_target_read_sp.
4868 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4869 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4870 * sh-tdep.c (sh_gdbarch_init): Ditto.
4871 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4872 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4873
4874 2003-06-07 Andrew Cagney <cagney@redhat.com>
4875
4876 * gdbarch.sh: Comment each field of startup_gdbarch.
4877 * gdbarch.h, gdbarch.c: Re-generate.
4878
4879 2003-06-07 Andrew Cagney <cagney@redhat.com>
4880
4881 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4882 * gdbarch.h, gdbarch.c: Re-generate.
4883 * regcache.c: Update comments on read_pc et.al.
4884 (generic_target_read_pc): Delete function.
4885 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4886 * inferior.h (generic_target_read_pc): Delete declaration.
4887 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4888 generic_target_read_pc.
4889 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4890 * sh-tdep.c (sh_gdbarch_init): Ditto.
4891 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4892 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4893
4894 2003-06-07 Andrew Cagney <cagney@redhat.com>
4895
4896 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4897 "index" with "special_local_sect". Use strcmp instead of STREQ.
4898 Append period to coments.
4899
4900 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4901
4902 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4903 (elfstab_offset_sections): Likewise.
4904 * gdb-stabs.h (stab_section_info): Likewise.
4905 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4906 * objfiles.c (objfile_relocate): Likewise.
4907 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4908 * remote.c (get_offsets): Likewise.
4909 (remote_cisco_objfile_relocate): Likewise.
4910 * somread.c (som_symfile_offsets): Likewise.
4911 * symfile.c (alloc_section_addr_info): New function.
4912 (build_section_addr_info_from_section_tab): Use it.
4913 (free_section_addr_info): Adjust.
4914 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4915 (syms_from_objfile): Allocate local_addr dynamically.
4916 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4917 dynamically.
4918 (add_symbol_file_command): Allocate sect_opts dynamically.
4919 (reread_symbols): Avoid use of SECT_OFF_MAX.
4920 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4921 (alloc_section_addr_info): Declare it.
4922 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4923 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4924 dynamically.
4925 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4926
4927 2003-06-06 Andrew Cagney <cagney@redhat.com>
4928
4929 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4930 (d10v_frame_unwind_cache): Do not set "return_pc".
4931
4932 2003-06-06 Michael Snyder <msnyder@redhat.com>
4933
4934 * h8300-tdep.c: Make tidy (long lines).
4935
4936 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4937
4938 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4939 to regcache_collect().
4940
4941 2003-06-05 J. Brobecker <brobecker@gnat.com>
4942
4943 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4944 pc_in_sigtramp multiarch method.
4945 (hppa_hpux_som_init_abi): Use it.
4946 (hppa_hpux_elf_init_abi): Likewise.
4947 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4948 macro has been multiarched.
4949 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4950 macro here, as hppa64 isn't multiarched yet.
4951
4952 2003-06-05 Andrew Cagney <cagney@redhat.com>
4953
4954 * Makefile.in (value_h): Add $(frame_h).
4955 * value.h: Include "frame.h".
4956 (struct value): Replace "frame_addr" with "frame_id".
4957 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4958 * values.c (allocate_value): Use VALUE_FRAME_ID.
4959 (value_copy): Use VALUE_FRAME_ID.
4960 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4961 * valops.c (value_assign): Update. Use frame_find_by_id.
4962
4963 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4964
4965 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4966 in each pass.
4967
4968 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4969
4970 * thread-db.c (check_event): For create/death event breakpoints,
4971 loop through all messages to ensure that we read the message
4972 corresponding to the breakpoint we are at.
4973
4974 2003-06-04 Michael Snyder <msnyder@redhat.com>
4975
4976 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4977
4978 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4979
4980 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4981 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4982 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4983 when handling .eh_frame sections.
4984
4985 2003-06-04 J. Brobecker <brobecker@gnat.com>
4986
4987 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4988 prepare_to_proceed procedure instead of the hppa-specific one.
4989 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4990
4991 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4992
4993 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4994 * config.in: Regenerated.
4995 * configure.in: Add test for syscall function and check for
4996 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4997 * configure: Regenerated.
4998 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4999 <sys/syscall.h>.
5000 (kill_lwp): New function that uses tkill syscall or
5001 uses kill, depending on whether threading model is nptl or not.
5002 All callers of kill() changed to use kill_lwp().
5003 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5004 see if all threads have already exited in the nptl model.
5005 (stop_and_resume_callback): New callback function used by the
5006 lin_lwp_wait thread exit handling code.
5007 (stop_wait_callback): Check for threads already having exited and
5008 delete such threads fromt the lwp list when discovered.
5009 (stop_callback): Don't assert retcode of kill call.
5010
5011 Roland McGrath <roland@redhat.com>
5012 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5013 nptl libthread_db.
5014
5015 2003-06-03 Richard Henderson <rth@redhat.com>
5016
5017 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5018 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5019 (alpha_sigtramp_frame_prev_register): Likewise.
5020 (alpha_heuristic_frame_prev_register): Likewise.
5021 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5022
5023 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5024 alpha-specific register id names.
5025 (alpha_mdebug_frame_unwind_cache): Likewise.
5026 (alpha_mdebug_frame_prev_register): Likewise.
5027
5028 2003-06-03 Richard Henderson <rth@redhat.com>
5029
5030 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5031 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5032 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5033 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5034 unwind routines.
5035 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5036 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5037 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5038
5039 * alpha-linux-tdep.c: Remove unnecessary includes.
5040 * Makefile.in (alpha-linux-tdep.o): Update.
5041
5042 2003-06-03 Richard Henderson <rth@redhat.com>
5043
5044 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5045 (alphabsd_fill_fpreg): Likewise.
5046
5047 2003-06-03 J. Brobecker <brobecker@gnat.com>
5048
5049 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5050 references to struct frame_info fields by calls to the equivalent
5051 accessors. Necessary now that frame_info is opaque.
5052
5053 2003-06-03 J. Brobecker <brobecker@gnat.com>
5054
5055 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5056 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5057 structure, field no longer exists.
5058
5059 2003-06-03 J. Brobecker <brobecker@gnat.com>
5060
5061 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5062 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5063
5064 2003-06-03 J. Brobecker <brobecker@gnat.com>
5065
5066 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5067 references to struct frame_info fields by calls to the equivalent
5068 accessors. Necessary now that frame_info is opaque.
5069
5070 2003-06-03 J. Brobecker <brobecker@gnat.com>
5071
5072 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5073 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5074 structure, field no longer exists.
5075
5076 2003-06-03 Theodore A. Roth <troth@openavr.org>
5077
5078 * remote.c (init_remote_state): Compute sizeof_g_packet by
5079 accumulation of the size of all registers instead of blindly using
5080 DEPRECATED_REGISTER_BYTES.
5081
5082 2003-06-03 Michael Snyder <msnyder@redhat.com>
5083
5084 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5085 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5086 for h8300sx.
5087
5088 2003-06-03 J. Brobecker <brobecker@gnat.com>
5089
5090 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5091 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5092
5093 2003-06-03 Andrew Cagney <cagney@redhat.com>
5094
5095 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5096 (sparc_convert_to_raw): Delete function.
5097 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5098 register_convert_to_virtual.
5099
5100 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5101
5102 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5103 layer if not dealing with a statically-linked threaded program.
5104
5105 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5106
5107 * solib.c (solib_open): Update comment to reflect actual search order.
5108
5109 2003-06-03 Andrew Cagney <cagney@redhat.com>
5110
5111 * frame.c (get_frame_memory_signed): New function.
5112 (get_frame_memory, get_frame_memory_unsigned): New function.
5113 (get_frame_arch): New function.
5114 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5115 (get_frame_memory, get_frame_unsigned_memory): Declare.
5116 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5117 get_frame_memory_unsigned and get_frame_arch.
5118 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5119
5120 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5121
5122 * MAINTAINERS (write after approval): Add myself.
5123
5124 2003-06-03 Jim Blandy <jimb@redhat.com>
5125
5126 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5127 elements of gregset_t are 64 bits each, but access registers
5128 are still 32 bits, so they're packed two per gregset_t
5129 element. Unpack/pack them properly.
5130
5131 2003-06-02 David Carlton <carlton@bactrian.org>
5132
5133 * linespec.c (find_methods): Break out code into
5134 add_matching_methods and add_constructors.
5135 (add_matching_methods): New.
5136 (add_constructors): Ditto.
5137
5138 2003-06-02 Andrew Cagney <cagney@redhat.com>
5139
5140 * sparc-tdep.c (sparc_print_registers): Delete call to
5141 REGISTER_CONVERTIBLE.
5142 (sparc_gdbarch_init): Do not set register_convertible.
5143 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5144 * frv-tdep.c (frv_gdbarch_init): Ditto.
5145 * cris-tdep.c (cris_gdbarch_init): Ditto.
5146
5147 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5148
5149 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5150 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5151 (syms_from_objfile): Ditto.
5152
5153 2003-06-03 Andreas Schwab <schwab@suse.de>
5154
5155 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5156 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5157
5158 2003-06-02 Richard Henderson <rth@redhat.com>
5159
5160 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5161 a member of all_reggroup.
5162
5163 2003-06-02 Richard Henderson <rth@redhat.com>
5164
5165 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5166 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5167 (alpha_lds, alpha_sts): New.
5168 (alpha_convert_register_p): Change from _register_convertible.
5169 (alpha_register_to_value): Change from _convert_to_virtual;
5170 restructure and fail for type sizes other than 4 or 8.
5171 (alpha_value_to_register): Similarly.
5172 (alpha_extract_return_value): Use alpha_sts.
5173 (alpha_store_return_value): Use alpha_lds.
5174 (alpha_gdbarch_init): Update hooks.
5175
5176 2003-06-02 Richard Henderson <rth@redhat.com>
5177
5178 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5179 regnum identifiers.
5180 (alpha_sigtramp_register_address): Likewise.
5181
5182 2003-06-02 Richard Henderson <rth@redhat.com>
5183
5184 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5185 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5186 * alpha-tdep.h: Declare them.
5187
5188 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5189 Remove zerobuf. Don't error on UNIQUE.
5190 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5191 (ALPHA_REGSET_UNIQUE): Provide default.
5192 (supply_gregset): Use alpha_supply_int_regs.
5193 (fill_gregset): Use alpha_fill_int_regs.
5194 (supply_fpregset): Use alpha_supply_fp_regs.
5195 (fill_fpregset): Use alpha_fill_fp_regs.
5196 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5197 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5198 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5199 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5200 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5201 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5202
5203 2003-06-02 Richard Henderson <rth@redhat.com>
5204
5205 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5206
5207 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5208 (alpha_store_return_value): Likewise.
5209
5210 2003-06-02 David Carlton <carlton@math.stanford.edu>
5211
5212 * block.c (contained_in): Add 'const' to arguments.
5213 (block_function): Ditto.
5214 * block.h: Update declarations for block_function and
5215 contained_in.
5216
5217 2003-06-02 David Carlton <carlton@math.stanford.edu>
5218
5219 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5220 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5221 * p-valprint.c (pascal_val_print): Ditto.
5222 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5223
5224 2003-06-02 Richard Henderson <rth@redhat.com>
5225
5226 * alpha-tdep.c (alpha_push_dummy_call): Use
5227 builtin_type_ieee_double_little instead of builtin_type_double.
5228
5229 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5230 sign-extension of 32-bit values.
5231 (alpha_store_return_value): Similarly.
5232
5233 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5234 (alpha_extract_return_value): Likewise.
5235 (alpha_store_return_value): Likewise.
5236
5237 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5238 (alpha_store_return_value): Error on IEEE Quad floats.
5239
5240 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5241 (alpha_extract_struct_value_address): Likewise.
5242 (alpha_store_return_value): Likewise.
5243 (alpha_store_struct_return): Remove.
5244 (alpha_gdbarch_init): Update hook registration to match.
5245
5246 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5247 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5248 macros where appropriate.
5249 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5250 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5251
5252 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5253 for SP, GP; void_func_ptr for PC; non-language-specific types
5254 for all others.
5255 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5256
5257 2003-06-02 Richard Henderson <rth@redhat.com>
5258
5259 * top.h (lim_at_start): Declare.
5260 * main.c (captured_main): Set it.
5261 * top.c (lim_at_start): Define.
5262 (command_loop): Use it instead of &environ.
5263 * event-top.c (command_handler): Likewise.
5264
5265 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5266
5267 * mipsnbsd-tdep.c: Update copyright years.
5268 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5269
5270 2003-06-01 Richard Henderson <rth@redhat.com>
5271
5272 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5273 (alpha-linux-tdep.o): Update dependencies.
5274 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5275 * alpha-mdebug-tdep.c: Remove unneeded includes.
5276
5277 2003-06-01 Richard Henderson <rth@redhat.com>
5278
5279 * alpha-tdep.c (alpha_register_reggroup_p): New.
5280 (alpha_gdbarch_init): Register it.
5281
5282 2003-06-02 Andrew Cagney <cagney@redhat.com>
5283
5284 * dwarfread.c: Eliminate "register"
5285 (decode_die_type): Eliminate assignment within "if".
5286 (struct_type, decode_array_element_type): Ditto.
5287 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5288 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5289 (decode_modified_type, completedieinfo): Ditto.
5290 * block.c: Eliminate "register".
5291 (blockvector_for_pc_sect): Eliminate assignment within "if".
5292 * cp-support.h (struct symbol): Opaque declaration.
5293 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5294
5295 2003-06-01 Richard Henderson <rth@redhat.com>
5296
5297 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5298 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5299
5300 2003-06-01 Adam Fedor <fedor@gnu.org>
5301
5302 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5303 * gdbarch.[ch]: Regenerate.
5304 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5305 (hppa_gdbarch_init): Set it in the gdbarch vector.
5306 * i386-tdep.c (i386_fetch_pointer_argument): New
5307 (i386_gdbarch_init): Set it into gdbarch.
5308 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5309 (rs6000_gdbarch_init): Set it in gdbarch.
5310 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5311 (sparc_gdbarch_init): Set it in gdbarch.
5312
5313 2003-06-01 Andrew Cagney <cagney@redhat.com>
5314
5315 * defs.h (extract_address): Delete declaration.
5316 * findvar.c (extract_address): Delete function.
5317 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5318 extract_address with the inline equivalent,
5319 extract_unsigned_integer.
5320 (xstormy16_extract_struct_value_address): Ditto.
5321 (xstormy16_pointer_to_address): Ditto.
5322 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5323 * v850-tdep.c (v850_push_arguments): Ditto.
5324 (v850_extract_return_value): Ditto.
5325 (v850_extract_struct_value_address): Ditto.
5326 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5327 (sparcnbsd_get_longjmp_target_64): Ditto.
5328 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5329 (get_longjmp_target): Ditto.
5330 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5331 (sh64_extract_struct_value_address): Ditto.
5332 (sh_push_arguments): Ditto.
5333 (sh64_push_arguments): Ditto.
5334 * remote-vxsparc.c (vx_read_register): Ditto.
5335 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5336 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5337 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5338 * mipsv4-nat.c (get_longjmp_target): Ditto.
5339 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5340 * mips-nat.c (get_longjmp_target): Ditto.
5341 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5342 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5343 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5344 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5345 * irix5-nat.c (get_longjmp_target): Ditto.
5346 * irix4-nat.c (get_longjmp_target): Ditto.
5347 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5348 (ia64_push_arguments): Ditto.
5349 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5350 * h8300-tdep.c (h8300_push_arguments): Ditto.
5351 (h8300_store_return_value): Ditto.
5352 (h8300_extract_struct_value_address): Ditto.
5353 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5354 (frv_push_arguments): Ditto.
5355 * avr-tdep.c (avr_pointer_to_address): Ditto.
5356 (avr_push_arguments): Ditto.
5357 * arm-tdep.c (arm_push_dummy_call): Ditto.
5358 (arm_get_longjmp_target): Ditto.
5359 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5360 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5361 (alpha_get_longjmp_target): Ditto.
5362
5363 * solib-irix.c (extract_mips_address): Inline extract_address,
5364 replacing it with extract_signed_integer.
5365 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5366 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5367 (first_link_map_member, open_symbol_file_object): Ditto.
5368 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5369 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5370 (LM_NEXT, LM_NAME): Ditto.
5371
5372 2003-06-01 Richard Henderson <rth@redhat.com>
5373
5374 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5375 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5376 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5377 (alpha_cannot_store_register): Likewise.
5378 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5379 * alpha-nat.c (supply_gregset): Likewise.
5380 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5381
5382 2003-06-01 Andrew Cagney <cagney@redhat.com>
5383
5384 * infcall.c (call_function_by_hand): Update comment on
5385 DEPRECATED_DUMMY_WRITE_SP.
5386
5387 * mips-tdep.c (mips_gdbarch_init): Do not set
5388 deprecated_dummy_write_sp.
5389 (mips_eabi_push_dummy_call): Set the SP register.
5390 (mips_o64_push_dummy_call): Set the SP register.
5391 (mips_o32_push_dummy_call): Set the SP register.
5392 (mips_n32n64_push_dummy_call): Set the SP register.
5393
5394 2003-06-01 Richard Henderson <rth@redhat.com>
5395
5396 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5397 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5398 (supply_gregset): Likewise.
5399 * alpha-tdep.c (alpha_store_return_value): Likewise.
5400 (alpha_get_longjmp_target): Likewise.
5401 (alpha_register_name): Constify array.
5402 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5403 deprecated_register_size, deprecated_register_bytes,
5404 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5405 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5406 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5407
5408 2003-06-01 Richard Henderson <rth@redhat.com>
5409
5410 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5411 from arg_reg_buffer to regcache to avoid double conversion.
5412
5413 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5414
5415 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5416 SP_REGNUM.
5417 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5418 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5419
5420 2003-06-01 Richard Henderson <rth@redhat.com>
5421
5422 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5423 (decode_frame_entry): Set it. Skip FDE augmentation.
5424
5425 2003-06-01 Richard Henderson <rth@redhat.com>
5426
5427 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5428 not overlapping PC_REGNUM.
5429
5430 2003-06-01 Richard Henderson <rth@redhat.com>
5431
5432 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5433 alpha_push_arguments. Don't dump argument register data to
5434 the target stack. Fix float and 128-bit long double semantics.
5435 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5436 (alpha_fix_call_dummy): Remove.
5437 (alpha_call_dummy_words): Remove.
5438 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5439
5440 2003-06-01 Richard Henderson <rth@redhat.com>
5441
5442 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5443
5444 2003-06-01 Andrew Cagney <cagney@redhat.com>
5445
5446 * mips-tdep.c (is_mips16_addr): New function.
5447 (make_mips16_addr, unmake_mips16_addr): New functions.
5448 (pc_is_mips16, mips_fetch_instruction): Use.
5449 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5450 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5451 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5452 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5453 TARGET_MIPS.
5454 * config/mips/tm-mips.h: Update copyright.
5455 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5456 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5457 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5458 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5459 (TM_PRINT_INSN_MACH): Delete.
5460 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5461
5462 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5463 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5464 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5465 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5466 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5467 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5468 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5469 mips*-*-riscos* and mips*-*-sysv* onto mips.
5470 * config/mips/mips64.mt: New file.
5471 * config/mips/mips.mt: New file.
5472 * config/mips/littlemips.mt: Delete file.
5473 * config/mips/decstation.mt: Delete file.
5474 * config/mips/vr4300el.mt: Delete file.
5475 * config/mips/vr5000el.mt: Delete file.
5476 * config/mips/vr5000.mt: Delete file.
5477 * config/mips/vr4100.mt: Delete file.
5478 * config/mips/vr4xxxel.mt: Delete file.
5479 * config/mips/vr4300.mt: Delete file.
5480 * config/mips/vr4xxx.mt: Delete file.
5481 * config/mips/bigmips.mt: Delete file.
5482 * config/mips/bigmips64.mt: Delete file.
5483 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5484 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5485 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5486 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5487 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5488 "tm-bigmips.h".
5489 * config/mips/tm-irix3.h: Ditto.
5490 * config/mips/tm-mipsv4.h: Ditto.
5491 * config/mips/tm-embed.h: Ditto.
5492 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5493 "tm-bigmips64.h".
5494 * config/mips/tm-vr5000el.h: Delete file.
5495 * config/mips/tm-tx39l.h: Delete file.
5496 * config/mips/tm-vr4300el.h: Delete file.
5497 * config/mips/tm-vr4xxxel.h: Delete file.
5498 * config/mips/tm-vr4300.h: Delete file.
5499 * config/mips/tm-vr4100.h: Delete file.
5500 * config/mips/tm-vr4xxx.h: Delete file.
5501 * config/mips/tm-vr5000.h: Delete file.
5502 * config/mips/tm-embedl64.h: Delete file.
5503 * config/mips/tm-embedl.h: Delete file.
5504 * config/mips/tm-embed64.h: Delete file.
5505 * config/mips/tm-bigmips64.h: Delete file.
5506 * config/mips/tm-bigmips.h: Delete file.
5507
5508 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5509
5510 Fix gdb/1216.
5511 * shnbsd-nat.c: Include "sh-tdep.h".
5512
5513 From Richard Henderson <rth@redhat.com>:
5514 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5515
5516 2003-05-31 Andrew Cagney <cagney@redhat.com>
5517
5518 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5519 forward declaration.
5520 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5521 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5522 (mips_find_saved_regs): Use set_reg_offset.
5523 (mips_frame_init_saved_regs): Delete function.
5524 (mips_pop_frame): Call mips_find_saved_regs instead of
5525 DEPRECATED_FRAME_INIT_SAVED_REGS.
5526
5527 2003-05-31 Andrew Cagney <cagney@redhat.com>
5528
5529 * mips-tdep.c (mips_gdbarch_init): Do not set
5530 deprecated_max_register_raw_size, register_virtual_size, and
5531 deprecated_max_register_virtual_size.
5532
5533 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5534
5535 * i386-tdep.c: Include "dwarf2-frame.h".
5536 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5537 * Makefile.in (i386-tdep.o): Update dependencies.
5538
5539 * dwarf2-frame.c, dwarf2-frame.h: New files.
5540 * Makefile.in (SFILES): Add dwarf2-frame.c.
5541 (dwarf2_frame_h): Define.
5542 (COMMON_OBS): Add dwarf2-frame.o.
5543 (dwarf2-frame.o): Add dependencies.
5544
5545 2003-05-31 Andreas Jaeger <aj@suse.de>
5546
5547 * x86-64-linux-nat.c: Fix comment.
5548
5549 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5550
5551 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5552 function signature.
5553
5554 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5555 have a sigcontext_addr handler.
5556 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5557 sigcontext_addr handler.
5558
5559 2003-05-31 Andrew Cagney <cagney@redhat.com>
5560
5561 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5562 (print_fp_register_row): Replace do_fp_register_row.
5563 (mips_print_fp_register): Add "file" and "frame" parameters.
5564 (mips_print_register): Add "file" and "frame" parameters.
5565 (mips_print_registers_info): Replace mips_do_registers_info.
5566 (mips_gdbarch_init): Set print_registers_info instead of
5567 deprecated_do_registers_info.
5568 (mips_read_fp_register_single): Add "frame" parameter.
5569 (mips_read_fp_register_double): Add "frame" parameter.
5570
5571 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5572
5573 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5574 Fixes a bug where GDB would print the wrong register names for
5575 targets without SSE.
5576
5577 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5578 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5579 registers.
5580
5581 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5582 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5583 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5584 TDEP->sc_sp_offset.
5585
5586 From Michal Ludvig <mludvig@suse.cz>:
5587 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5588 and `sc_num_regs'.
5589 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5590 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5591 I386_ST0_REGNUM): Move here from...
5592 * i386-tdep.c: ... here.
5593 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5594 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5595 registers if possible.
5596 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5597 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5598 Remove variables.
5599 (i386bsd_sc_reg_offset): New variable.
5600 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5601 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5602 TDEP->sc_sp_offset.
5603 (i386fbsd_sc_reg_offset): New variable.
5604 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5605 TDEP->sc_num_regs.
5606 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5607 variables.
5608 (i386fbsd4_sc_reg_offset): New variable.
5609 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5610 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5611 TDEP->sc_sp_offset.
5612 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5613 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5614 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5615 Remove variables.
5616 (i386nbsd_sc_reg_offset): New variable.
5617 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5618 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5619 TDEP->sc_sp_offset.
5620 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5621 Remove variables.
5622 (i386obsd_sc_reg_offset): New variable.
5623 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5624 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5625 TDEP->sc_sp_offset.
5626 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5627 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5628 for frame pointer offset in `struct sigcontext'.
5629
5630 2003-05-31 Andrew Cagney <cagney@redhat.com>
5631
5632 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5633 architecture methods call_dummy_words, sizeof_call_dummy_words,
5634 push_return_address, store_struct_return, and fix_call_dummy. Set
5635 push_dummy_call instead of deprecated_push_arguments.
5636 (mips_store_struct_return): Delete function.
5637 (mips_fix_call_dummy): Delete function.
5638 (mips_push_return_address): Delete function.
5639 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5640 RA_REGNUM and T9_REGNUM.
5641 (mips_n32n64_push_dummy_call): Ditto for
5642 mips_n32n64_push_arguments.
5643 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5644 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5645
5646 2003-05-31 Andrew Cagney <cagney@redhat.com>
5647
5648 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5649 "dummy_addr" to "bp_addr".
5650 * infcall.c (call_function_by_hand): Pass "funaddr" to
5651 gdbarch_push_dummy_call.
5652 * gdbarch.h, gdbarch.c: Re-generate.
5653 * i386-tdep.c (i386_push_dummy_call): Update.
5654 * arm-tdep.c (arm_push_dummy_call): Update.
5655 * d10v-tdep.c (d10v_push_dummy_call): Update.
5656
5657 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5658
5659 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5660 variable declarations.
5661 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5662 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5663 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5664 x86_64_init_frame_pc, x86_64_init_frame_pc,
5665 x86_64_function_has_prologue): Remove prototypes.
5666 (X86_64_NUM_GREGS): New define.
5667 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5668 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5669 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5670 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5671 XMM1_REGNUM): Remove defines.
5672 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5673 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5674 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5675 X86_64_XMM1_REGNUM): New defines.
5676 (struct x86_64_register_info): Renamed from `struct
5677 register_info'. Remove `size' member.
5678 (x86_64_register_info_table): Remove variable.
5679 (x86_64_register_info): New variable.
5680 (X86_64_NUM_REGS): New define.
5681 (X86_64_NUM_GREGS): Remove define.
5682 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5683 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5684 Remove variables.
5685 (x86_54_dwarf2_reg_to_regnum): Remove function.
5686 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5687 (x86_64_dwarf_reg_to_regnum): New function.
5688 (x86_64_register_name): Rewrite.
5689 (x86_64_register_raw_size): Remove function.
5690 (x86_64_register_byte_table): Remove variable.
5691 (x86_64_register_byte): Remove function.
5692 (x86_64_register_virtual_type): Remove function.
5693 (x86_64_register_type): New function.
5694 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5695 x86_64_register_convert_to_raw): Remove functions.
5696 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5697 (x86_64_use_struct_convention): Make static. Adjust for renamed
5698 defines.
5699 (x86_64_frame_init_saved_regs): Remove function.
5700 (x86_64_push_arguments): Make static. Change to accept a regcache
5701 as argument.
5702 (x86_64_store_return_value, x86_64_extract_return_value): Make
5703 static. Rewrite based on i386 counterparts.
5704 (x86_64_push_dummy_call): New function.
5705 (X86_64_NUM_SAVED_REGS): New define.
5706 (x86_64_register_number): Remove function.
5707 (x86_64_store_struct_return): Remove function.
5708 (x86_64_frameless_function_invocation,
5709 x86_64_function_has_prologue): Remove functions.
5710 (PROLOG_BUFSIZE): Remove define.
5711 (struct x86_64_frame_cache): New structure.
5712 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5713 x86_64_frame_cache, x86_64_frame_this_id,
5714 x86_64_frame_prev_register, x86_64_frame_p,
5715 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5716 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5717 functions.
5718 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5719 variables.
5720 (x86_64_skip_prologue): Rewrite in terms of
5721 x86_64_analyze_prologue.
5722 (x86_64_frame_base_address): New function.
5723 (x86_64_frame_base): New variable.
5724 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5725 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5726 set deprecated_fp_regnum, deprecated_register_size,
5727 deprecated_register_bytes, register_raw_size, register_byte,
5728 register_virtual_type, register_convertiable,
5729 register_convert_to_virtual, convert_to_raw,
5730 deprecated_get_saved_register, deprecated_target_read_fp,
5731 deprecated_push_arguments, deprecated_push_return_address,
5732 deprecated_pop_frame, deprecated_store_struct_return,
5733 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5734 frameless_function_invocation, deprecated_frame_saved_pc,
5735 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5736 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5737 deprecated_init_frame_pc and virtual_frame_pointer. Call
5738 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5739 and x86_64_frame_p. Call frame_base_set_default to register
5740 x86_64_frame_base.
5741 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5742 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5743 (_initialize_x86_64_tdep): Remove function.
5744 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5745 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5746 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5747 define.
5748 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5749 (x86_64_linux_sigcontext_addr): Rewrite.
5750 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5751 x86_64_linux_frame_saved_pc): Remove functions.
5752 (x86_64_linux_pc_in_sigtramp): Renamed from
5753 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5754 trampoline.
5755 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5756 Remove_functions.
5757 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5758 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5759 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5760 (x86_64_regmap): Rename to regmap.
5761 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5762 x86_64_num_gregs.
5763 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5764 x86_64_regmap.
5765 (x86_64_fxsave_offset): Remove function.
5766 (supply_fpregset): Simply call x86_64_supply_fxsave.
5767 (fill_fpregset): Simply call x86_64_fill_fxsave.
5768 (fetch_inferior_registers, store_inferior_registers): Avoid
5769 asignment in if-statement.
5770 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5771 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5772 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5773 (fetch_core_registers): Remove function.
5774 (linux_elf_core_fns): Remove.
5775 (offsetoff): Don't define.
5776 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5777 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5778 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5779 add core-regset.o.
5780 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5781 protection against multiple includes instead of NM_X86_64_h. Add
5782 various comments. Include "config/nm-linux.h". Don't include
5783 <signal.h>.
5784 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5785 GET_THREAD_SIGNALS): Remove defines.
5786 (x86_64_register_u_addr, kernel_u_size,
5787 lin_thread_get_thread_signals): Remove prototypes.
5788 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5789 [HAVE_LINK_H]: Don't include "solib.h".
5790 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5791 * config/i386/tm-x86-64linux.h: Fix comments.
5792 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5793 x86-64-tdep.o): Update dependencies.
5794
5795 2003-05-30 Andrew Cagney <cagney@redhat.com>
5796
5797 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5798 Change parameter type to a "struct regcache *".
5799
5800 * gdbarch.sh: Regardless of the multi-arch level, always define
5801 the macro when not already defined.
5802 * gdbarch.h, gdbarch.c: Re-generate.
5803
5804 2003-05-30 Richard Henderson <rth@redhat.com>
5805
5806 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5807 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5808 (alpha_mdebug_frame_this_id): Likewise.
5809 (alpha_mdebug_frame_prev_register): Likewise.
5810 (alpha_mdebug_frame_base_address): Likewise.
5811 (alpha_mdebug_frame_locals_address): Likewise.
5812 (alpha_mdebug_frame_args_address): Likewise.
5813 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5814 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5815 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5816 loop increment.
5817 (alpha_heuristic_frame_this_id): Make static.
5818 (alpha_heuristic_frame_prev_register): Likewise.
5819 (alpha_heuristic_frame_base_address): Likewise.
5820 * alpha-tdep.h: Update.
5821
5822 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5823
5824 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5825 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5826 defenitions.
5827 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5828 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5829 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5830 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5831 I386_ST0_REGNUM): New defines.
5832 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5833 codestream_get): Remove define.
5834 (codestream_next_addr, condestream_addr, condestream_buf,
5835 codestream_off, codestream_cnt): Remove variables.
5836 (codestream_fill, codestream_seek, codestream_read): Remove
5837 functions.
5838 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5839 functionality.
5840 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5841 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5842 i386_frame_saved_pc, i386_saved_pc_after_call,
5843 i386_frame_num_args, i386_frame_init_saved_regs,
5844 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5845 i386_push_arguments): Remove functions.
5846 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5847 functionality. Use i386_analyze_prologue instead of
5848 i386_get_frame_setup.
5849 (I386_NUM_SAVED_REGS): New define.
5850 (struct i386_frame_cache): New structure.
5851 (i386_alloc_frame_cache, i386_analyze_struct_return,
5852 i386_skip_probe, i386_analyze_frame_setup,
5853 i386_analyze_register_saves, i386_analyze_prologue,
5854 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5855 i386_frame_prev_register, i386_sigtramp_frame_cache,
5856 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5857 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5858 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5859 New functions.
5860 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5861 New variables.
5862 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5863 I386_EAX_REGNUM and I386_EDX_REGNUM.
5864 (i386_extract_return_value, i386_store_return_value): Use
5865 I386_ST0_REGNUM where appropriate.
5866 (i386_extract_struct_value_address): Rewrite to use extract_address.
5867 (i386_svr4_pc_in_sigtramp): Add comment.
5868 (i386_svr4_sigcontext_addr): Rewrite.
5869 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5870 TDEP->sc_sp_offset.
5871 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5872 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5873 of new defines. Set push_dummy_call, don't set
5874 deprecated_push_arguments, deprecated_push_return_address,
5875 deprecated_pop_frame. Don't set parm_boundary. Don't set
5876 deprecated_frame_chain, deprecated_frame_saved_pc,
5877 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5878 save_dummy_frame_tos, unwind_pc. Call
5879 frame_unwind_append_predicate and frame_base_set_default. Don't
5880 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5881 Don't set frameless_function_invocation. Don't set
5882 deprecated_register_bytes, deprecated_register_size,
5883 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5884 * i386-linux-tdep.c: Fix formatting in some comments.
5885 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5886 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5887 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5888 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5889 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5890 redundant parentheses.
5891 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5892 (i386_linux_sigcontext_addr): Use it. Rewrite.
5893 (find_minsym_and_objfile): Change name of second argument.
5894 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5895 changed. Use frame_pc_unwind instead of
5896 DEPRECATED_SAVED_PC_AFTER_CALL.
5897 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5898 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5899 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5900 unwinder.
5901 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5902 "dummy-frame.h".
5903 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5904 (_initialize_i386_cygwin_tdep): New prototype.
5905 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5906 deprecated_frame_chain_valid.
5907 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5908 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5909 Rely on the SVR4 defaults.
5910 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5911 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5912
5913 2003-05-30 Andrew Cagney <cagney@redhat.com>
5914
5915 * infcall.c (call_function_by_hand): Always call
5916 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5917
5918 2003-05-30 Richard Henderson <rth@redhat.com>
5919
5920 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5921 increment.
5922
5923 2003-05-29 Jim Blandy <jimb@redhat.com>
5924
5925 Use gdbarch methods for solib stuff on PowerPC Linux.
5926 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5927 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5928 show through.
5929 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5930 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5931 giving the same effect as the #definitions above.
5932
5933 2003-05-29 Adam Fedor <fedor@gnu.org>
5934
5935 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5936 (find_implementation_from_class): Replace it with the standard
5937 case i.e. do nothing.
5938
5939 2003-05-29 Richard Henderson <rth@redhat.com>
5940
5941 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5942 (alpha_linux_sigtramp_offset): Use it. Make static.
5943 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5944 update for new frame model.
5945 * alpha-mdebug-tdep.c: New file.
5946 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5947 (alpha_osf1_init_abi): Install it.
5948 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5949 (linked_proc_desc_table): Remove.
5950 (alpha_frame_past_sigtramp_frame): Remove.
5951 (alpha_dynamic_sigtramp_offset): Remove.
5952 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5953 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5954 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5955 (push_sigtramp_desc): Remove.
5956 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5957 (alpha_cannot_store_register): Likewise.
5958 (alpha_sigcontext_addr): Remove.
5959 (alpha_find_saved_regs): Remove.
5960 (alpha_frame_init_saved_regs): Remove.
5961 (alpha_init_frame_pc_first): Remove.
5962 (read_next_frame_reg): Remove.
5963 (alpha_frame_saved_pc): Remove.
5964 (alpha_saved_pc_after_call): Remove.
5965 (temp_proc_desc, temp_saved_regs): Remove.
5966 (alpha_about_to_return): Remove.
5967 (cached_proc_desc): Remove.
5968 (alpha_frame_chain): Remove.
5969 (alpha_print_extra_frame_info): Remove.
5970 (alpha_init_extra_frame_info): Remove.
5971 (alpha_frame_locals_address): Remove.
5972 (alpha_frame_args_address): Remove.
5973 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5974 (alpha_push_dummy_frame): Remove.
5975 (alpha_pop_frame): Remove.
5976 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5977 (alpha_read_insn): New.
5978 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5979 for different insn encodings.
5980 (alpha_in_lenient_prologue): Remove.
5981 (struct alpha_sigtramp_unwind_cache): New.
5982 (alpha_sigtramp_frame_unwind_cache): New.
5983 (alpha_sigtramp_register_address): New.
5984 (alpha_sigtramp_frame_this_id): New.
5985 (alpha_sigtramp_frame_prev_register): New.
5986 (alpha_sigtramp_frame_unwind): New.
5987 (alpha_sigtramp_frame_p): New.
5988 (struct alpha_heuristic_unwind_cache): New.
5989 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5990 don't count nop insns that occur between functions.
5991 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5992 heuristic_proc_desc, but without the mdebug wrapping.
5993 (alpha_heuristic_frame_this_id): New.
5994 (alpha_heuristic_frame_prev_register): New.
5995 (alpha_heuristic_frame_unwind): New.
5996 (alpha_heuristic_frame_p): New.
5997 (alpha_heuristic_frame_base_address): New.
5998 (alpha_heuristic_frame_base): New.
5999 (alpha_unwind_dummy_id): New.
6000 (alpha_unwind_pc): New.
6001 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6002 frame related deprecated initializations; install replacements.
6003 (alpha_dump_tdep): Remove.
6004 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6005 (alpha_read_insn, alpha_after_prologue,
6006 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6007 alpha_heuristic_frame_prev_register,
6008 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6009 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6010 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6011 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6012
6013 2003-05-29 Andrew Cagney <cagney@redhat.com>
6014
6015 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6016 dependant on the availability of ASSERT_FUNCTION.
6017 (ASSERT_FUNCTION): Do not define when there is no function name.
6018
6019 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6020
6021 From Jimi X <jimix@watson.ibm.com>:
6022 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6023
6024 2003-05-28 Jim Blandy <jimb@redhat.com>
6025
6026 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6027 argument to ptrace to int; the system headers should give it the
6028 right type, and pointers don't fit in ints on powerpc64-*-*.
6029
6030 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6031
6032 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6033 DW_TAG_catch_block.
6034
6035 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6036
6037 * stabsread.c (dbx_lookup_type): Make static.
6038 (read_type): Ditto.
6039 (add_undefined_type): Ditto.
6040 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6041 not export.
6042
6043 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6044
6045 * hpread.c (hpread_has_name): Make static.
6046 (hpread_psymtab_to_symtab): Ditto.
6047 (file_exists): Ditto.
6048 (hpread_call_pxdb): Ditto.
6049 (hpread_pxdb_needed): Ditto.
6050 (hpread_quick_traverse): Ditto.
6051 (hpread_get_header): Ditto.
6052 (hpread_get_lntt): Ditto.
6053 (hpread_get_slt): Ditto.
6054 (class_of): Ditto.
6055
6056 2003-05-25 Andreas Schwab <schwab@suse.de>
6057
6058 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6059 stack_align and deprecated_extra_stack_alignment_needed.
6060 (m68k_stack_align): Delete.
6061
6062 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6063 (m68k_register_virtual_size): Likewise.
6064 (altos_skip_prologue): Remove obsolete function.
6065 (isi_frame_num_args): Likewise.
6066 (news_frame_num_args): Likewise.
6067 (m68k_fix_call_dummy): Make static.
6068 (m68k_push_dummy_frame): Likewise.
6069 (m68k_pop_frame): Likewise.
6070 (m68k_skip_prologue): Likewise.
6071 (m68k_frame_init_saved_regs): Likewise.
6072 (m68k_saved_pc_after_call): Likewise.
6073 (m68k_get_longjmp_target): Make multi-arch.
6074 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6075 structure. Register m68k_get_longjmp_target if enabled.
6076 * m68k-tdep.h (struct gdbarch_tdep): Define.
6077 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6078
6079 * Makefile.in (config.status): Also depend on configure.tgt
6080 and configure.host.
6081 (m68klinux-tdep.o): Update dependencies.
6082 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6083 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6084 (M68K_LINUX_JB_PC): Define.
6085 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6086 and take additional parameter.
6087 (m68k_linux_sigtramp_saved_pc): Update.
6088 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6089 m68k_linux_pc_in_sigtramp, in_plt_section,
6090 find_solib_trampoline_target.
6091 * config/m68k/tm-linux.h: Don't include any tm headers.
6092 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6093 (JB_ELEMENT_SIZE): Likewise.
6094 (JB_PC): Likewise.
6095 (GET_LONGJMP_TARGET): Likewise.
6096 (IN_SIGTRAMP): Likewise.
6097 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6098
6099 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6100
6101 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6102 (sparc32_push_arguments): Re-implement by calling
6103 sparc32_do_push_arguments.
6104
6105 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6106
6107 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6108 SPARC_O1_REGNUM): New defines.
6109 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6110 (sparc32_store_return_value): New function.
6111 (sparc_extract_struct_value_address): Rewrite to operate on a
6112 regcache.
6113 (sparc_gdbarch_init): Don't set
6114 deprecated_extract_struct_value_address. Set
6115 extract_struct_value_address instead. Don't set
6116 deprecated_extract_return_value and deprecated_store_return_value
6117 for 32-bit targets. Set extract_return_value and
6118 store_return_value instead.
6119 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6120 DEPRECTAED_EXTRACT_RETURN_VALUE,
6121 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6122 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6123 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6124 (sparc_store_return_value): Remove prototype.
6125 (sparc32_store_return_value): New prototype.
6126 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6127 Adjust prototypes.
6128
6129 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6130
6131 * sparcnbsd-tdep.c: Include "gdb_string.h".
6132
6133 2003-05-23 Andrew Cagney <cagney@redhat.com>
6134
6135 * p-valprint.c (pascal_val_print): Replace extract_address with
6136 the inline equivalent extract_unsigned_integer.
6137 * jv-valprint.c (java_value_print): Ditto.
6138 * ada-valprint.c (ada_val_print_1): Ditto.
6139 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6140
6141 2003-05-23 Theodore A. Roth <troth@openavr.org>
6142
6143 * blockframe.c (frameless_look_for_prologue): Remove unused
6144 after_prologue variable.
6145
6146 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6147
6148 * blockframe.c (get_pc_function_start): Rewrite to avoid
6149 asignments in if-statements.
6150
6151 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6152
6153 Committed by Elena Zannoni <ezannoni@redhat.com>.
6154 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6155 files, don't relocate absolute symbols (and do use mst_abs).
6156
6157 2003-05-23 Andrew Cagney <cagney@redhat.com>
6158
6159 * objc-lang.c: Include "gdb_assert.h".
6160 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6161 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6162 (gdb_check, gdb_check_fatal): Delete functions.
6163 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6164 gdb_assert.
6165 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6166 * Makefile.in (objc-lang.o): Update dependencies.
6167
6168 2003-05-22 Ian Lance Taylor <ian@airs.com>
6169
6170 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6171 with fprintf_filtered, not fprintf_unfiltered.
6172
6173 2003-05-22 Andrew Cagney <cagney@redhat.com>
6174
6175 * stack.c (frame_info): Inline extract_address, replacing it with
6176 extract_unsigned_integer.
6177 * findvar.c (unsigned_pointer_to_address): Ditto.
6178 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6179 * dwarf2expr.c (dwarf2_read_address): Ditto.
6180 * frame.c (frame_pc_unwind): Update comment.
6181 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6182
6183 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6184
6185 * infptrace.c (detach): Call print_sys_errmsg rather than
6186 perror_with_name to issue warning message when errno is non-zero
6187 after calling ptrace detach.
6188
6189 2003-05-21 J. Brobecker <brobecker@gnat.com>
6190
6191 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6192 macro definitions from here...
6193 * hppa-tdep.c: ...to there.
6194
6195 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6196
6197 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6198 register_ptrace_addr(). Fix all callers.
6199
6200 2003-05-21 Andreas Schwab <schwab@suse.de>
6201
6202 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6203 dependencies.
6204 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6205 end.
6206 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6207 (_initialize_m68k_linux_tdep): New function.
6208 (m68k_linux_frame_saved_pc): Make static.
6209 (m68k_linux_extract_return_value): Likewise.
6210 (m68k_linux_store_return_value): Likewise.
6211 (m68k_linux_extract_struct_value_address): Likewise.
6212 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6213 Remove.
6214 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6215 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6216 (DEPRECATED_FRAME_SAVED_PC): Remove.
6217
6218 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6219
6220 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6221 regset numbering rather than our own.
6222
6223 2003-05-19 David Carlton <carlton@bactrian.org>
6224
6225 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6226
6227 2003-05-19 David Carlton <carlton@bactrian.org>
6228
6229 Partial fix for PR c++/827.
6230 * cp-support.h: Include symtab.h.
6231 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6232 * cp-namespace.c: Update contributors.
6233 (cp_lookup_symbol_nonlocal): New.
6234 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6235 (lookup_symbol_file): Ditto.
6236 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6237 * block.h: Declare block_scope, block_using, block_global_block.
6238 * block.c (block_scope): New.
6239 (block_using, block_global_block): Ditto.
6240 * Makefile.in (cp_support_h): Depend on symtab_h.
6241 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6242
6243 2003-05-19 David Carlton <carlton@bactrian.org>
6244
6245 * language.h (struct language_defn): Add 'la_value_of_this'
6246 and 'la_lookup_symbol_nonlocal' members.
6247 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6248 lookup_symbol_static, lookup_symbol_global,
6249 lookup_symbol_aux_block.
6250 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6251 if we should search fields of this and how to do static/global
6252 lookup.
6253 (lookup_symbol_aux_block): Make extern.
6254 (basic_lookup_symbol_nonlocal): New.
6255 (lookup_symbol_static, lookup_symbol_global): Ditto.
6256 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6257 'la_lookup_symbol_nonlocal' members.
6258 * c-lang.c (c_language_defn, cplus_language_defn)
6259 (asm_language_defn, minimal_language_defn): Ditto.
6260 * jv-lang.c (java_language_defn): Ditto.
6261 * language.c (unknown_language_defn, auto_language_defn)
6262 (local_language_defn): Ditto.
6263 * m2-lang.c (m2_language_defn): Ditto.
6264 * objc-lang.c (objc_language_defn): Ditto.
6265 * scm-lang.c (scm_language_defn): Ditto.
6266 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6267 * p-lang.c (pascal_language_defn): Ditto for both.
6268 * Makefile.in (f-lang.o): Depend on value_h.
6269 (p-lang.o): Ditto.
6270
6271 2003-05-19 David Carlton <carlton@bactrian.org>
6272
6273 * block.h: Declare block_static_block.
6274 * block.c (block_static_block): New.
6275 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6276 lookup_symbol_aux_local, calling block_static_block instead.
6277 (lookup_symbol_aux_local): Delete 'static_block' argument.
6278
6279 2003-05-19 David Carlton <carlton@bactrian.org>
6280
6281 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6282
6283 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6284
6285 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6286 register numbers mapping.
6287
6288 2003-05-18 Adam Fedor <fedor@gnu.org>
6289
6290 * symtab.c (completion_list_objc_symbol): New function.
6291 (make_symbol_completion_list): Use it to add ObjC symbols
6292 when looking though the list.
6293 (language_search_unquoted_string): New function.
6294 (make_file_symbol_completion_list): Use it.
6295
6296 2003-05-18 Andreas Schwab <schwab@suse.de>
6297
6298 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6299 dependencies.
6300 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6301 as m68k_linux_extract_return_value.
6302 (DEPRECATED_STORE_RETURN_VALUE): Define as
6303 m68k_linux_store_return_value.
6304 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6305 m68k_linux_extract_struct_value_address.
6306 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6307 get_next_frame, get_frame_base, get_frame_pc.
6308 (m68k_linux_frame_saved_pc): Use get_frame_base.
6309 (m68k_linux_extract_return_value): New function.
6310 (m68k_linux_store_return_value): New function.
6311 (m68k_linux_extract_struct_value_address): New function.
6312 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6313
6314 * c-exp.y (typebase): Remove duplicate occurence of
6315 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6316 of lookup_signed_typename.
6317
6318 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6319
6320 * dwarf2loc.c (find_location_expression): Change type of second
6321 argument to `size_t *'.
6322 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6323 for size variable.
6324
6325 2003-05-18 David Carlton <carlton@bactrian.org>
6326
6327 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6328 'linkage_name'. Add comment.
6329 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6330 'linkage_name'.
6331 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6332 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6333 (lookup_block_symbol): Ditto.
6334
6335 2003-05-16 Andrew Cagney <cagney@redhat.com>
6336
6337 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6338 * gdbarch.h, gdbarch.c: Re-generate.
6339 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6340 * TODO (REGISTER_BYTES): Delete reference.
6341 * alpha-tdep.c (alpha_gdbarch_init): Update.
6342 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6343 * x86-64-tdep.c (x86_64_init_abi): Update.
6344 * vax-tdep.c (vax_gdbarch_init): Update.
6345 * v850-tdep.c (v850_gdbarch_init): Update.
6346 * sparc-tdep.c (sparc_gdbarch_init): Update.
6347 * sh-tdep.c (sh_gdbarch_init): Update.
6348 * s390-tdep.c (s390_gdbarch_init): Update.
6349 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6350 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6351 (ns32k_gdbarch_init_32382): Update.
6352 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6353 * mcore-tdep.c (mcore_gdbarch_init): Update.
6354 * m68k-tdep.c (m68k_gdbarch_init): Update.
6355 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6356 * ia64-tdep.c (ia64_gdbarch_init): Update.
6357 * i386-tdep.c (i386_gdbarch_init): Update.
6358 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6359 * hppa-tdep.c (hppa_gdbarch_init): Update.
6360 * h8300-tdep.c (h8300_gdbarch_init): Update.
6361 * frv-tdep.c (frv_gdbarch_init): Update.
6362 * cris-tdep.c (cris_gdbarch_init): Update.
6363 * avr-tdep.c (avr_gdbarch_init): Update.
6364 * arm-tdep.c (arm_gdbarch_init): Update.
6365 * sparc-tdep.c (sparc_pop_frame): Update.
6366 * rs6000-tdep.c (rs6000_pop_frame): Update.
6367 * remote.c (init_remote_state): Update.
6368 (remote_prepare_to_store): Update.
6369 * remote-vx.c (vx_prepare_to_store): Update.
6370 * remote-sds.c (sds_fetch_registers): Update.
6371 (sds_prepare_to_store): Update.
6372 * remote-array.c: Update.
6373 * regcache.c (init_legacy_regcache_descr): Update.
6374 (init_regcache_descr): Update.
6375 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6376 (mips_o64_extract_return_value): Update.
6377 * irix5-nat.c (fetch_core_registers): Update.
6378 * irix4-nat.c (fetch_core_registers): Update.
6379 * i386-tdep.h: Update.
6380 * hppa-tdep.c (pa_do_registers_info): Update.
6381 (pa_do_strcat_registers_info): Update.
6382 * cris-tdep.c (cris_register_bytes_ok): Update.
6383 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6384 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6385 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6386 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6387 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6388 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6389 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6390 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6391 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6392 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6393 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6394 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6395 (REGISTER_BYTES_OK): Update.
6396 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6397 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6398
6399 2003-05-16 Ian Lance Taylor <ian@airs.com>
6400
6401 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6402 (vax_print_insn, print_insn_arg): Remove static functions.
6403 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6404 print_insn_vax from opcodes library.
6405 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6406
6407 2003-05-15 Andrew Cagney <cagney@redhat.com>
6408
6409 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6410 * target.h (memory_breakpoint_from_pc): Delete declaration.
6411 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6412 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6413 * monitor.c (monitor_insert_breakpoint): Use
6414 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6415 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6416 * gdbarch.h, gdbarch.c: Re-generate.
6417 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6418 (sparc_gdbarch_init): Set breakpoint_from_pc to
6419 sparc_breakpoint_from_pc.
6420 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6421 (BREAKPOINT_FROM_PC): Define.
6422 (sparc_breakpoint_from_pc): Declare.
6423 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6424 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6425 (BREAKPOINT_FROM_PC): Define.
6426 (BREAKPOINT): Delete macro.
6427 * target.h: Update comment.
6428 * s390-tdep.c (s390_gdbarch_init): Update comments.
6429 * remote.c: Update comments.
6430 * remote-mips.c: Update comments.
6431 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6432 * mem-break.c: Update comment.
6433 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6434 (ia64_memory_insert_breakpoint): Update.
6435 * config/sparc/tm-sparc.h: Update comment.
6436 * config/pa/tm-hppa64.h: Update comment.
6437 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6438 (rs6000_breakpoint_from_pc): Update.
6439 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6440 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6441 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6442 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6443 (mips_breakpoint_from_pc): Update.
6444 (mips_dump_tdep): Update.
6445
6446 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6447 * minsyms.c (lookup_minimal_symbol): Inline
6448 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6449
6450 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6451 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6452 * p-lang.c (pascal_printstr): Ditto.
6453 * objc-lang.c (objc_printstr): Ditto.
6454 * m2-lang.c (m2_printstr): Ditto.
6455 * jv-valprint.c (java_print_value_fields): Ditto.
6456 * f-lang.c (f_printstr): Ditto.
6457 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6458 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6459 for repeat_count_threshold.
6460 * Makefile.in (cp-valprint.o): Update dependencies.
6461
6462 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6463
6464 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6465 (examine_prologue): Support looking through leaf functions, knowing
6466 they start with mov r2,r12. Support skipping over indirect stores
6467 of the input registers. Upon hitting a non-nop branch instruction
6468 or predicated instruction, bail out by setting lim_pc to the current
6469 pc value in the loop. At the end, if the lim_pc value is still
6470 beyond our calculated value and we have trust_limit set,
6471 use the lim_pc value.
6472
6473 2003-05-15 Andrew Cagney <cagney@redhat.com>
6474
6475 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6476 generic_find_dummy_frame.
6477 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6478 (deprecated_generic_find_dummy_frame): Update.
6479 (deprecated_read_register_dummy): Update.
6480 * frame.c (deprecated_generic_get_saved_register): Update.
6481
6482 2003-05-15 Theodore A. Roth <troth@openavr.org>
6483
6484 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6485 (avr_gdbarch_init): Set breakpoint_from_pc method.
6486
6487 2003-05-15 Andrew Cagney <cagney@redhat.com>
6488
6489 * regcache.c (build_regcache): Set deprecated_register_valid
6490 directly.
6491 (deprecated_grub_regcache_for_register_valid): Delete function.
6492 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6493 declaration.
6494
6495 2003-05-15 David Carlton <carlton@bactrian.org>
6496
6497 Committed by Elena Zannoni <ezannoni@redhat.com>
6498 * symtab.c (lookup_symbol_aux): Delete calls to
6499 lookup_symbol_aux_minsyms.
6500 (lookup_symbol_aux_minsyms): Comment out function and
6501 prototype. Delete lookup by mangled name.
6502
6503 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6504
6505 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6506 correctly indicate an empty stack and ``stack_allocated'' to the
6507 indicate the number of elements initially allocated.
6508 (dwarf_expr_grow_stack): Simplify method for computing new
6509 stack size. Don't loop infinitely if ``stack_len'' is zero.
6510 (execute_stack_op): Move ``ctx->in_reg'' initialization
6511 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6512 be used in conjuction with DW_OP_piece. Revise error message
6513 accordingly.
6514
6515 2003-05-14 Theodore A. Roth <troth@openavr.org>
6516
6517 * MAINTAINERS: Update my email address.
6518 * avr-tdep.c: Ditto.
6519
6520 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6521
6522 * symtab.h (enum domain_enum): Rename from namespace_enum.
6523 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6524 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6525 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6526 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6527 TYPES_NAMESPACE, METHODS_NAMESPACE.
6528 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6529 (struct symbol, struct partial_symbol): Rename field
6530 'namespace_enum namespace' to 'domain_enum domain'.
6531 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6532 Delete old define kludge for namespace.
6533
6534 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6535 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6536 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6537 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6538 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6539 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6540 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6541 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6542 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6543 occurrences of the above.
6544
6545 2003-05-14 Ian Lance Taylor <ian@airs.com>
6546
6547 * Makefile.in (install-only): Use $(SHELL) when running
6548 mkinstalldirs.
6549
6550 2003-05-13 Ian Lance Taylor <ian@airs.com>
6551
6552 * MAINTAINERS (write after approval): Add myself.
6553
6554 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6555 second and third arguments.
6556 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6557 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6558
6559 2003-05-13 Andrew Cagney <cagney@redhat.com>
6560
6561 * defs.h (store_address): Delete declaration.
6562 findvar.c (store_address): Delete function.
6563 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6564 store_unsigned_integer.
6565 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6566 * v850-tdep.c (v850_push_arguments): Ditto.
6567 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6568 * sh-tdep.c (sh64_get_saved_register): Ditto.
6569 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6570 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6571 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6572 (mips_get_saved_register): Ditto.
6573 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6574 (find_func_descr, ia64_push_arguments): Ditto.
6575 * i386-tdep.c (i386_push_arguments): Ditto.
6576 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6577 * frv-tdep.c (frv_push_arguments): Ditto.
6578 * frame.c (legacy_saved_regs_prev_register): Ditto.
6579 (deprecated_generic_get_saved_register): Ditto.
6580 * findvar.c (unsigned_address_to_pointer): Ditto.
6581 * dwarf2read.c (dwarf2_const_value): Ditto.
6582 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6583 * alpha-tdep.c (alpha_push_arguments): Ditto.
6584
6585 2003-05-12 J. Brobecker <brobecker@gnat.com>
6586
6587 * NEWS: Mention that the hppa-hpux port has been partially
6588 multiarched (32bit ABIT only, so far).
6589
6590 2003-05-11 Andrew Cagney <cagney@redhat.com>
6591
6592 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6593 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6594 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6595 sim/testsuite/sim/arm/misaligned2.ms, and
6596 sim/testsuite/sim/arm/misaligned3.ms.
6597 * disasm.h (struct ui_file): Add opaque struct declaration.
6598 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6599 * frame.h (struct ui_file): Ditto.
6600
6601 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6602
6603 * value.h: Pretty print.
6604
6605 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6606
6607 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6608
6609 2003-05-08 Andrew Cagney <cagney@redhat.com>
6610
6611 * regcache.h (max_register_size): Delete declaration.
6612 * regcache.c (max_register_size): Delete function.
6613 (struct regcache_descr): Delete field "max_register_size".
6614 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6615 registers fit in MAX_REGISTER_SIZE.
6616 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6617 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6618 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6619 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6620 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6621 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6622 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6623 * dve3900-rom.c, hppa-tdep.c: Ditto.
6624
6625 2003-05-08 David Carlton <carlton@math.stanford.edu>
6626
6627 * valops.c (push_word): Fix typo.
6628
6629 2003-05-08 Andrew Cagney <cagney@redhat.com>
6630
6631 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6632 * gdbarch.h: Re-generate.
6633 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6634 (legacy_max_register_raw_size): Delete declaration.
6635 * regcache.c (legacy_max_register_raw_size): Delete function.
6636 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6637 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6638 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6639 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6640 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6641 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6642 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6643 * findvar.c, dwarf2cfi.c: Ditto.
6644
6645 2003-05-08 Andrew Cagney <cagney@redhat.com>
6646
6647 * mips-tdep.c (read_signed_register): New function, moved to here
6648 from "regcache.c".
6649 (read_signed_register_pid): Ditto.
6650 * regcache.c (read_signed_register_pid): Delete function, moved to
6651 "mips-tdep.c".
6652 (read_signed_register): Ditto.
6653 * regcache.h (read_signed_register): Delete declaration.
6654 (read_signed_register_pid): Delete declaration.
6655
6656 2003-05-08 Andrew Cagney <cagney@redhat.com>
6657
6658 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6659 * gdbarch.h: Re-generate.
6660 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6661 (legacy_max_register_virtual_size): Delete declaration.
6662 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6663 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6664 * tracepoint.c (memrange_sortmerge): Ditto.
6665 * sparc-tdep.c (sparc_print_registers): Ditto.
6666 * regcache.c (legacy_max_register_virtual_size): Delete function.
6667
6668 2002-05-08 J. Brobecker <brobecker@gnat.com>
6669
6670 * fork-child.c (escape_bang_in_quoted_argument): New function.
6671 (fork_inferior): Escape '!' characters in quoted arguments
6672 only when needed.
6673
6674 2003-05-08 J. Brobecker <brobecker@gnat.com>
6675
6676 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6677 the language of the CU is not currently supported by GDB.
6678
6679 2003-05-08 J. Brobecker <brobecker@gnat.com>
6680
6681 * defs.h (language): Add language_minimal enum value.
6682 * c-lang.c (minimal_language_defn): New language definition.
6683 (_initialize_c_language): Add the new minimal language to the list
6684 of languages known to GDB.
6685
6686 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6687
6688 * frame.c (get_frame_type): Don't attempt to lazily initialize
6689 frame's unwinder for legacy frames.
6690
6691 2003-05-07 Andrew Cagney <cagney@redhat.com>
6692
6693 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6694 and "regcache" parameters.
6695 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6696
6697 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6698
6699 * dwarf2read.c (dwarf_decode_lines): Only use output of
6700 check_cu_functions() when calling record_line(). Do not update
6701 the current address.
6702
6703 2003-05-07 Andrew Cagney <cagney@redhat.com>
6704
6705 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6706 code.
6707
6708 2003-05-07 Jim Blandy <jimb@redhat.com>
6709
6710 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6711 'maint info symtabs' and 'maint info psymtabs'.
6712 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6713 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6714 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6715 Declarations updated.
6716 * maint.c (maintenance_list_command): Delete.
6717 (_initialize_maint_cmds): Update calls to add_cmd.
6718 * gdbcmd.h (maintenancelistlist): Delete declaration.
6719 * cli/cli-cmds.c (maintenancelistlist): Delete.
6720 (init_cmd_lists): Don't initialize it.
6721 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6722
6723 2003-05-07 Andrew Cagney <cagney@redhat.com>
6724
6725 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6726 "regcache".
6727 (d10v_print_registers_info): Update.
6728 (d10v_dmap_register, d10v_imap_register): Delete functions.
6729 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6730 and "imap_register".
6731 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6732 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6733 * arch-utils.c (generic_remote_translate_xfer_address): Add
6734 "regcache" and "gdbarch" parameters.
6735 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6736 parameter. Change class to multi-arch.
6737 * gdbarch.h, gdbarch.c: Re-generate.
6738 * remote.c (remote_xfer_memory): Use
6739 gdbarch_remote_translate_xfer_address.
6740
6741 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6742
6743 * infrun.c (prev_pc): Move declaration ahead of proceed().
6744 (proceed): Refresh prev_pc value before resuming.
6745 (stop_stepping): Remove code to refresh prev_pc.
6746
6747 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6748
6749 * nto-tdep.c: Removed stray comment.
6750
6751 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6752
6753 * i386-nto-tdep.c: Fix old K&R function definitions.
6754 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6755 Also change add_show_from_set() call to add_setshow_cmd().
6756 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6757
6758 2003-05-05 Andrew Cagney <cagney@redhat.com>
6759
6760 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6761 (fprint_dummy_frames): New function.
6762 (maintenance_print_dummy_frames): New function.
6763 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6764 * frame.c (fprint_frame_id): Make global.
6765 * frame.h (fprint_frame_id): Declare.
6766 * Makefile.in (dummy-frame.o): Update dependencies.
6767
6768 2003-05-05 Andrew Cagney <cagney@redhat.com>
6769
6770 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6771 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6772 SIZEOF_CALL_DUMMY_WORDS.
6773 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6774 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6775 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6776 CALL_DUMMY_BREAKPOINT_OFFSET.
6777 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6778 CALL_DUMMY_START_OFFSET.
6779 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6780 * gdbarch.h, gdbarch.c: Re-generate.
6781 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6782 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6783 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6784 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6785 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6786 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6787 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6788 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6789 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6790 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6791 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6792 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6793 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6794 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6795 * config/sparc/tm-sparc.h: Update.
6796
6797 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6798
6799 * configure.tgt: Add i[3456]86-*-nto*.
6800 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6801 * nto-tdep.c: New file. Neutrino target support routines.
6802 * nto-tdep.h: New file. Neutrino target header.
6803 * config/tm-qnxnto.h: New file.
6804 * config/i386/i386nto.mt: New file.
6805 * config/i386/tm-i386nto.h: New file.
6806
6807 2003-05-04 Andrew Cagney <cagney@redhat.com>
6808
6809 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6810 (load_infrun_state): Ditto.
6811 (struct thread_info): Drop "prev_func_name" field.
6812 * thread.c (load_infrun_state): Update.
6813 (save_infrun_state): Update.
6814 * infrun.c (prev_func_name): Delete variable.
6815 (init_wait_for_inferior): Do not clear prev_func_name.
6816 (stop_stepping, keep_going, context_switch): Do not swap
6817 prev_func_name.
6818 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6819 instead of PC_IN_SIGTRAMP.
6820
6821 2003-05-04 Andrew Cagney <cagney@redhat.com>
6822
6823 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6824 REGISTER_BYTE with register_offset_hack.
6825 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6826 that REGISTER_BYTE is consistent with the regcache.
6827 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6828 * gdbarch.h, gdbarch.c: Regenerate.
6829
6830 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6831
6832 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6833 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6834
6835 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6836
6837 2003-05-03 J. Brobecker <brobecker@gnat.com>
6838
6839 From Thierry Schneider <tpschneider1@yahoo.com>
6840 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6841 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6842 (mi-cmd-symbol.o): Add rule.
6843
6844 2003-05-03 Andrew Cagney <cagney@redhat.com>
6845
6846 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6847 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6848 * gdbarch.h, gdbarch.c: Re-generate.
6849 * d10v-tdep.c (d10v_push_dummy_code): New function.
6850 (d10v_gdbarch_init): Set push_dummy_code.
6851 * infcall.c (legacy_push_dummy_code): New function.
6852 (generic_push_dummy_code): New function.
6853 (push_dummy_code): New function.
6854 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6855 instead of dummy_addr, to push_dummy_call. Move call to
6856 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6857 switch.
6858 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6859
6860 2003-05-03 Andrew Cagney <cagney@redhat.com>
6861
6862 * disasm.h (print_insn): Declare.
6863 * disasm.c (init_gdb_disassemble_info): New function.
6864 (gdb_disassembly): Call init_gdb_disassemble_info.
6865 (gdb_print_insn): New function.
6866 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6867 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6868 * mcore-tdep.c: Include "disasm.h"
6869 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6870 * d10v-tdep.c: Include "disasm.h".
6871 (display_trace): Call gdb_print_insn, instead of print_insn.
6872 (print_insn): Delete function.
6873 * printcmd.c: Include "disasm.h".
6874 (print_insn): Delete function.
6875 (print_formatted): Call gdb_print_insn, instead of print_insn.
6876 * Makefile.in (printcmd.o): Update dependencies.
6877 (mcore-tdep.o, d10v-tdep.o): Ditto.
6878
6879 2003-05-02 Andrew Cagney <cagney@redhat.com>
6880
6881 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6882 PC_REGNUM, re-indent.
6883 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6884 PC_REGNUM isn't set.
6885
6886 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6887 * gdbarch.h, gdbarch.c: Re-generate.
6888 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6889 register_virtual_size, pc_regnum, or register_bytes.
6890 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6891 (d10v_register_type): Use D10V_PC_REGNUM.
6892 (d10v_print_registers_info, d10v_read_pc): Ditto.
6893 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6894 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6895
6896 2003-05-02 David Carlton <carlton@bactrian.org>
6897
6898 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6899 the name with mstrsave.
6900
6901 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6902
6903 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6904 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6905 (host_charset_name, target_charset_name): New vars for use by
6906 set/show commands.
6907 (host_charset_enum, target_charset_enum): New enums for set/show
6908 commands.
6909 (set_charset_sfunc, set_host_charset_sfunc,
6910 set_target_charset_sfunc): New functions.
6911 (set_host_charset, set_target_charset): Make static.
6912 (list_charsets, set_host_charset_command,
6913 set_target_charset_command): Delete functions.
6914 (show_charset_command): Rewrite as....
6915 (show_charset): Hook this up with the set/show command mechanism.
6916 (_initialize_charset): Change names of charsets to match the
6917 set/show enums. Use host_charset_name and target_charset_name.
6918 Use set/show mechanism for charset, host-charset, target-charset
6919 commands. Do not make 'show host-charset' and 'show
6920 target-charset' be aliases of 'show charset'.
6921
6922 * charset.h (set_host_charset, set_target_charset): Don't export,
6923 they are not used outside the file.
6924
6925 2003-05-01 Andrew Cagney <cagney@redhat.com>
6926
6927 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6928 (gdb_disassembly): Make "di" non static, always initialize and
6929 cleanup. Always use dis_asm_read_memory.
6930 (gdb_dis_asm_read_memory): Delete function.
6931
6932 2003-05-01 Andrew Cagney <cagney@redhat.com>
6933
6934 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6935 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6936
6937 2003-04-30 Andrew Cagney <cagney@redhat.com>
6938
6939 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6940 "tm_print_insn_info".
6941 (TARGET_PRINT_INSN_INFO): Delete macro.
6942 (dis_asm_read_memory): Delete function declaration.
6943 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6944 (tm_print_insn_info): Delete variable definition.
6945 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6946 * gdbarch.h, gdbarch.c: Re-generate.
6947 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6948 "deprecated_tm_print_insn_info".
6949 * mcore-tdep.c (mcore_dump_insn): Ditto.
6950 * mips-tdep.c (mips_gdbarch_init): Ditto.
6951 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6952 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6953 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6954 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6955 instead of TARGET_PRINT_INSN_INFO, add comment.
6956 * s390-tdep.c (s390_get_frame_info): Instead of
6957 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6958 (s390_check_function_end, s390_is_sigreturn): Ditto.
6959 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6960 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6961 * disasm.c: Include "gdbcore.h".
6962 (_initialize_disasm): New function, initialize
6963 "deprecated_tm_print_insn_info".
6964 (deprecated_tm_print_insn_info): New variable.
6965 (dis_asm_read_memory): Moved from "corefile.c", made static.
6966 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6967 * Makefile.in (disasm.o): Update dependencies.
6968
6969 2003-04-30 Andrew Cagney <cagney@redhat.com>
6970
6971 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6972
6973 2003-04-29 Adam Fedor <fedor@gnu.org>
6974
6975 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6976 * infcall.c (find_function_addr): Make non-static.
6977 * infcall.h (find_function_addr): Declare.
6978 * Makefile.in (eval.o): Update dependencies.
6979
6980 2003-04-28 Adam Fedor <fedor@gnu.org>
6981
6982 * symtab.c (symbol_find_demangled_name): Check for and demangle
6983 ObjC symbols.
6984 (symbol_init_demangled_name): Init for language_objc as well.
6985
6986 2003-04-28 Andrew Cagney <cagney@redhat.com>
6987
6988 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6989 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6990 * gdbarch.h, gdbarch.c: Re-generate.
6991 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6992 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6993 * inferior.h (deprecated_read_fp): Rename read_fp.
6994 (generic_target_read_fp): Delete declaration.
6995 * regcache.c (generic_target_read_fp): Delete function.
6996 (deprecated_read_fp): Replace read_fp, use
6997 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6998 * d10v-tdep.c (d10v_read_fp): Delete function.
6999 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7000
7001 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7002 deprecated_target_read_fp to generic_target_read_fp.
7003 * sh-tdep.c (sh_gdbarch_init): Ditto.
7004 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7005 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7006 * frv-tdep.c (frv_gdbarch_init): Ditto.
7007
7008 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7009 deprecated_fp_regnum.
7010 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7011 * vax-tdep.c (vax_gdbarch_init): Ditto.
7012 * v850-tdep.c (v850_gdbarch_init): Ditto.
7013 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7014 * sh-tdep.c (sh_gdbarch_init): Ditto.
7015 * s390-tdep.c (s390_gdbarch_init): Ditto.
7016 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7017 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7018 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7019 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7020 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7021 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7022 * i386-tdep.c (i386_gdbarch_init): Ditto.
7023 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7024 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7025 * frv-tdep.c (frv_gdbarch_init): Ditto.
7026 * cris-tdep.c (cris_gdbarch_init): Ditto.
7027 * avr-tdep.c (avr_gdbarch_init): Ditto.
7028 * arm-tdep.c (arm_gdbarch_init): Ditto.
7029 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7030
7031 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7032 * v850-tdep.c (v850_gdbarch_init): Ditto.
7033 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7034 * sh-tdep.c (sh_gdbarch_init): Ditto.
7035 * s390-tdep.c (s390_gdbarch_init): Ditto.
7036 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7037 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7038 * mips-tdep.c (mips_gdbarch_init): Ditto.
7039 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7040 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7041 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7042 * frv-tdep.c (frv_gdbarch_init): Ditto.
7043 * avr-tdep.c (avr_gdbarch_init): Ditto.
7044 * arm-tdep.c (arm_gdbarch_init): Ditto.
7045
7046 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7047 DEPRECATED_FP_REGNUM.
7048 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7049 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7050 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7051 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7052 (sparc32_register_virtual_type): Ditto.
7053 * sh-tdep.c (sh64_frame_chain): Ditto.
7054 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7055 (sh_nofp_frame_init_saved_regs): Ditto.
7056 (sh64_nofp_frame_init_saved_regs): Ditto.
7057 (sh_fp_frame_init_saved_regs): Ditto.
7058 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7059 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7060 * procfs.c (procfs_fetch_registers): Ditto.
7061 (procfs_store_registers): Ditto.
7062 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7063 (store_inferior_registers, fetch_core_registers): Ditto.
7064 (fetch_kcore_registers, clear_regs): Ditto.
7065 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7066 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7067 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7068 * nlm/i386.c (do_status): Ditto.
7069 * mipsv4-nat.c (supply_gregset): Ditto.
7070 * mips-tdep.c: Ditto for comments.
7071 * mips-nat.c (fetch_inferior_registers): Ditto.
7072 (store_inferior_registers, fetch_core_registers): Ditto.
7073 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7074 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7075 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7076 (i386_do_pop_frame, i386_register_type): Ditto.
7077 * hppa-tdep.c (hppa_frame_chain): Ditto.
7078 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7079 (hppa_pop_frame, hppa_read_fp): Ditto.
7080 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7081 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7082 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7083 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7084 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7085 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7086 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7087 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7088 * blockframe.c: Ditto for comments.
7089 * arch-utils.h: Ditto for comments.
7090 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7091 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7092 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7093 * alpha-tdep.h: Ditto for comments.
7094 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7095 (alpha_cannot_store_register): Ditto.
7096 (alpha_push_dummy_frame): Ditto.
7097 * alpha-nat.c (supply_gregset): Ditto.
7098
7099 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7100 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7101 * config/sparc/tm-sparc.h: Update comment.
7102
7103 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7104 deprecated_read_fp instead of TARGET_READ_FP.
7105 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7106 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7107 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7108 deprecated_read_fp instead of read_fp.
7109 * s390-tdep.c (s390_push_arguments): Ditto.
7110 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7111 * frame.h: Ditto in comments.
7112 * frame.c (legacy_get_prev_frame): Ditto.
7113 * dummy-frame.c (dummy_frame_this_id): Ditto.
7114 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7115
7116 2003-04-28 Andrew Cagney <cagney@redhat.com>
7117
7118 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7119 * gdbarch.h, gdbarch.c: Re-generate.
7120 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7121 * vax-tdep.c (_initialize_vax_tdep): Update.
7122 * v850-tdep.c (_initialize_v850_tdep): Update.
7123 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7124 * s390-tdep.c (_initialize_s390_tdep): Update.
7125 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7126 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7127 * mips-tdep.c (_initialize_mips_tdep): Update.
7128 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7129 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7130 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7131 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7132 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7133 * frv-tdep.c (_initialize_frv_tdep): Update.
7134 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7135 (_initialize_cris_tdep): Update.
7136 * arch-utils.c (legacy_print_insn): Update.
7137 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7138
7139 2003-04-26 Adam Fedor <fedor@gnu.org>
7140
7141 * linespec.c (decode_objc): New function to decode ObjC calls
7142 (decode_line_1): Check for ObjC calls (using decode_objc)
7143 * Makefile (linespec.o): Update dependencies.
7144
7145 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7146
7147 * breakpoint.h (struct breakpoint_ops): New.
7148 (struct breakpoint): Add ops member.
7149
7150 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7151 (mention): Use new breakpoint ops member.
7152 (set_raw_breakpoint): Initialize ops field to NULL.
7153 (print_exception_catchpoint, print_one_exception_catchpoint)
7154 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7155 (gnu_v3_exception_catchpoint_ops): New.
7156 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7157
7158 2003-04-25 Adam Fedor <fedor@gnu.org>
7159
7160 * Makefile.in (COMMON_OBS): Add objc-lang.o
7161
7162 2003-04-25 Andrew Cagney <cagney@redhat.com>
7163
7164 * d10v-tdep.c (print_insn): Delete function.
7165 (display_trace): Use TARGET_PRINT_INSN.
7166 (_initialize_d10v_tdep): Do not set tm_print_insn.
7167 (d10v_gdbarch_init): Set print_insn.
7168
7169 2003-04-25 Andrew Cagney <cagney@redhat.com>
7170
7171 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7172 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7173 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7174 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7175 (nr_dmap_regs, a0_regnum): ... new functions.
7176 (d10v_print_registers_info): Use a0_regnum, use register_size.
7177 (d10v_register_byte): Delete function.
7178 (d10v_register_raw_size): Delete function.
7179 (d10v_register_type): Use a0_regnum.
7180 (d10v_print_registers_info): Use a0_regnum.
7181 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7182 (d10v_gdbarch_init): Do not set register_byte or
7183 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7184 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7185 extract_address.
7186 (trace_command): Use XCALLOC.
7187 (print_insn): Delete reference to tm_print_insn.
7188 (saved_regs_unwinder): Use store_unsigned_integer instead of
7189 store_address.
7190 * frame.h (FRAME_OBSTACK_CALLOC): Define
7191
7192 2003-04-25 David Carlton <carlton@bactrian.org>
7193
7194 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7195
7196 2003-04-24 Adam Fedor <fedor@gnu.org>
7197
7198 * objc-lang.c: Include "valprint.h"
7199 * Makefile.in (objc-lang.o): Update dependencies.
7200
7201 2003-04-24 Adam Fedor <fedor@gnu.org>
7202
7203 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7204 architecture dependant compilation and mark as unimplemented
7205 (until they get put in the gdbarch vector).
7206
7207 2003-04-23 David Carlton <carlton@bactrian.org>
7208
7209 * cp-support.c (cp_find_first_component): Accept 'operator' in
7210 more locations.
7211
7212 2003-04-23 Andrew Cagney <cagney@redhat.com>
7213
7214 * infcall.c (call_function_by_hand): Eliminate redundant
7215 indentation. Move "saved_async" and "old_cleanups" to where they
7216 are needed.
7217
7218 2003-04-23 Andrew Cagney <cagney@redhat.com>
7219
7220 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7221 and "buffer". Move the "name" code to where it is needed.
7222
7223 2003-04-23 Andrew Cagney <cagney@redhat.com>
7224
7225 * infcall.c (call_function_by_hand): Move variables "start_sp",
7226 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7227 code to ON_STACK switch branch.
7228
7229 2003-04-23 Andrew Cagney <cagney@redhat.com>
7230
7231 * infcall.c (call_function_by_hand): Make declaration of "i",
7232 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7233 lint.
7234
7235 2003-04-23 Andrew Cagney <cagney@redhat.com>
7236
7237 * infcall.c (call_function_by_hand): Delete variable
7238 "n_method_args". Localize "param_type"'s declaration to the loop
7239 that it is used. Reinstate code assigning to said variable -
7240 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7241 Rationalize code using "param_type".
7242
7243 2003-04-22 Andrew Cagney <cagney@redhat.com>
7244
7245 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7246 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7247 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7248 to DEPRECATED_PUSH_RETURN_ADDRESS.
7249
7250 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7251
7252 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7253 on the DWARF2 register number prior to fetching a register.
7254
7255 2003-04-22 J. Brobecker <brobecker@gnat.com>
7256
7257 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7258 Update all the tests using SOFT_FLOAT considering the fact that
7259 this macro was always set to 0.
7260 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7261 considering the fact that this macro was always set to 0.
7262 * hppa-tdep.h (hppa_store_return_value): Likewise.
7263 (hppa_extract_return_value): Likewise.
7264
7265 2003-04-22 J. Brobecker <brobecker@gnat.com>
7266
7267 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7268 the hppa-pro target only.
7269
7270 2003-04-21 J. Brobecker <brobecker@gnat.com>
7271
7272 Ongoing multi-arch conversion effort for HP/UX:
7273 * config/pa/tm-hppa.h: Move all macro that are no longer
7274 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7275 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7276
7277 2003-04-21 J. Brobecker <brobecker@gnat.com>
7278
7279 * config/pa/tm-hppa.h: Obsolete a section that was only used
7280 for hppa-pro.
7281
7282 2003-04-21 J. Brobecker <brobecker@gnat.com>
7283
7284 Ongoing multi-arch conversion for HP/UX.
7285 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7286 if already defined (allows hppa64 to stay non-multiarched for now).
7287 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7288
7289 2003-04-21 Andrew Cagney <cagney@redhat.com>
7290
7291 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7292
7293 2003-04-21 Andrew Cagney <cagney@redhat.com>
7294
7295 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7296 "i386_num_mmx_regs".
7297
7298 2003-04-21 Andrew Cagney <cagney@redhat.com>
7299
7300 * infcall.c: New file.
7301 * infcall.h: New file.
7302 * valarith.c: Include "infcall.h".
7303 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7304 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7305 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7306 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7307 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7308 (SFILES): Add "infcall.c"
7309 (COMMON_OBS): Add "infcall.o".
7310 (infcall.o): Specify dependencies.
7311 * value.h (call_function_by_hand): Delete declaration.
7312 * inferior.h (run_stack_dummy): Delete declaration.
7313 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7314 (run_stack_dummy): Move to "infcall.c", merged into
7315 call_function_by_hand.
7316 * valops.c (call_function_by_hand): Moved to "infcall.c".
7317 (find_function_addr, value_arg_coerce): Ditto.
7318 (unwindonsignal_p, coerce_float_to_double): Ditto.
7319 (_initialize_valops): Move "set/show coerce-float-to-double", and
7320 "set/show unwindonsignal" commands to "infcall.c".
7321 * v850-tdep.c, target.h: Update comments.
7322 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7323 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7324 (sh64_init_extra_frame_info): Update comments.
7325 * mn10300-tdep.c: Update comments.
7326 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7327 * config/sparc/tm-sparc.h: Update comments.
7328 * breakpoint.h: Update comments.
7329 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7330 * arm-tdep.c: Update comment.
7331
7332 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7333
7334 * i386-tdep.c (i386_num_register_names): New variable.
7335 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7336 (MM0_REGNUM): Remove redundant parentheses in define.
7337 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7338 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7339 i386_mxcsr_regnum_p): Remove redundant parentheses.
7340 (i386_register_name): Use i386_num_register_names.
7341
7342 * i386-tdep.c (i386_extract_return_value,
7343 i386_store_return_value): Correct check for availability of
7344 floating-point registers.
7345
7346 * i386-tdep.c (i386_frame_num_args): Remove function.
7347 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7348
7349 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7350 mmx_regnum_to_fp_regnum. Adjust all callers.
7351
7352 * i386-tdep.c (i386_get_longjmp_target): Use
7353 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7354 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7355 extract_address.
7356
7357 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7358
7359 * core-regset.c: Update comments to reflect reality. Re-order
7360 includes.
7361 (fetch_core_registers): Use switch instead of if. Remove
7362 redundant prototype.
7363
7364 2003-04-18 Jim Blandy <jimb@redhat.com>
7365
7366 * s390-tdep.c (s390_frame_align): New function.
7367 (s390_gdbarch_init): Register it with the gdbarch object.
7368
7369 2003-04-17 Richard Henderson <rth@redhat.com>
7370
7371 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7372
7373 2003-04-17 Michael Snyder <msnyder@redhat.com>
7374 Karen Bennet <bennet@redhat.com>
7375
7376 Committed by Elena Zannoni <ezannoni@redhat.com>
7377 * gdb_gcore.sh: New script to create a core dump of a process.
7378
7379 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7380
7381 * values.c (value_being_returned): Don't fetch the return
7382 value if the return type is void.
7383
7384 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7385
7386 * thread-db.c: Reindented.
7387
7388 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7389
7390 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7391 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7392 as types.
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7419
7420 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7421 the size of ``long double'' to 16, instead of 8.
7422
7423 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7424
7425 * i386-linux-nat.c: Add some whitespace to make things more
7426 readable.
7427 (fetch_register, store_register, fetch_inferior_registers,
7428 store_inferior_registers): Get rid of assignment in if-statement.
7429 (store_register): Fix typo in error message.
7430
7431 2003-04-16 Andrew Cagney <cagney@redhat.com>
7432
7433 * utils.c (xmmalloc): Always allocate something, matches
7434 libiberty/xmalloc's semantics.
7435 (xmrealloc, xmcalloc): Ditto.
7436
7437 2003-04-16 Andrew Cagney <cagney@redhat.com>
7438
7439 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7440 update comments.
7441 (get_frame_type): Initialize unwind and type when needed.
7442 (get_frame_id, frame_register_unwind): Ditto.
7443
7444 2003-04-16 Andrew Cagney <cagney@redhat.com>
7445
7446 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7447 obsolete.
7448 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7449 * sparcl-stub.c: Obsolete file.
7450 * config/sparc/tm-sparclet.h: Obsolete file.
7451 * sparclet-stub.c: Obsolete file.
7452 * sparclet-rom.c: Obsolete file.
7453 * sparcl-tdep.c: Obsolete file.
7454 * config/sparc/tm-sparclite.h: Obsolete file.
7455 * config/sparc/sparclite.mt: Obsolete file.
7456 * config/sparc/sparclet.mt: Obsolete file.
7457 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7458 sparc86x-*-* obsolete.
7459
7460 2003-04-15 David Carlton <carlton@math.stanford.edu>
7461
7462 * Makefile.in (SFILES): Add cp-namespace.c.
7463 (COMMON_OBS): Add cp-namespace.o.
7464 (block.o): Depend on gdb_obstack_h and cp_support_h.
7465 (buildsym.o): Depend on cp_support_h.
7466 (cp-namespace.o): New.
7467 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7468 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7469 (dwarf2read.o): Depend on cp_support_h.
7470 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7471 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7472 processing_current_namespace.
7473 (read_namespace): Update processing_current_namespace; check for
7474 anonymous namespaces.
7475 (dwarf2_name): New function.
7476 (dwarf2_extension): Ditto.
7477 * cp-support.h: Update copyright, contributors.
7478 Add inclusion guards.
7479 Add opaque declaration for structs obstack, block, symbol.
7480 (struct using_direct): New struct.
7481 Add declarations for cp_find_first_component,
7482 cp_entire_prefix_len, processing_has_namespace_info,
7483 processing_current_namespace, cp_is_anonymous,
7484 cp_add_using_directive, cp_initialize_namespace,
7485 cp_finalize_namespace, cp_set_block_scope,
7486 cp_scan_for_anonymous_namespaces.
7487 * cp-namespace.c: New file.
7488 * cp-support.c: Update copyright.
7489 Include ctype.h, gdb_assert.h, gdbcmd.h.
7490 New variable maint_cplus_cmd_list.
7491 (cp_find_first_component): New function.
7492 (cp_entire_prefix_len, maint_cplus_command)
7493 (first_component_command, _initialize_cp_support): Ditto.
7494 * buildsym.c: Include cp-support.h.
7495 New variable using_list.
7496 (add_symbol_to_list): Check for anonymous namespaces.
7497 (finish_block): Set block's scope.
7498 (start_symtab): Initialize C++ namespace support.
7499 (end_symtab): Finalize C++ namespace support.
7500 * block.h: Add opaque declarations for structs
7501 block_namespace_info, using_direct, and obstack.
7502 Add declarations for block_set_scope and block_set_using.
7503 (struct block): Add 'language_specific' member.
7504 (BLOCK_NAMESPACE): New macro.
7505 * block.c: Include gdb_obstack.h and cp-support.h.
7506 (struct block_namespace_info): New struct.
7507 (block_set_scope): New function.
7508 (block_set_using, block_initialize_namespace): Ditto.
7509
7510 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7511
7512 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7513 (locate_base): Return early if there aren't any link map offsets.
7514 (svr4_solib_create_inferior_hook): Warn if shared library support
7515 is unavailable.
7516
7517 2003-04-14 David Carlton <carlton@math.stanford.edu>
7518
7519 * symtab.c (symbol_set_names): Add prefix when storing Java names
7520 in hash table. Fix for PR java/1039.
7521
7522 2003-04-14 David Carlton <carlton@math.stanford.edu>
7523
7524 * symtab.c (symbol_set_names): Rename 'name' arg to
7525 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7526 * symtab.h: Change 'name' argument in declaration of
7527 symbol_set_names to 'linkage_name'.
7528 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7529
7530 2003-04-14 Andrew Cagney <cagney@redhat.com>
7531
7532 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7533 return the fully sign-extended register value.
7534 (get_frame_pointer): Ditto.
7535 (mips_pop_frame): Initialize "proc_desc" after checking for a
7536 dummy frame.
7537
7538 2003-04-14 Andrew Cagney <cagney@redhat.com>
7539
7540 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7541 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7542 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7543 (mips_push_register): Delete function.
7544 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7545 PUSH_FP_REGNUM.
7546
7547 2003-04-14 Jim Blandy <jimb@redhat.com>
7548
7549 * symmisc.c: #include "gdb_regex.h".
7550 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7551 functions.
7552 * maint.c (maintenance_list_command): New function.
7553 (_initialize_maint_cmds): Register the above as commands.
7554 * symtab.h (maintenance_list_symtabs,
7555 maintenance_list_psymtabs): New declarations.
7556 * cli/cli-cmds.c (maintenancelistlist): New variable.
7557 (init_cmd_lists): Initialize it.
7558 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7559 * gdbcmd.h (maintenancelistlist): New declaration.
7560 * Makefile.in (symmisc.o): Update dependencies.
7561
7562 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7563
7564 * s390-nat.c: Include asm/types.h for addr_t.
7565
7566 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7567
7568 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7569 actually incoming type.
7570
7571 2003-04-13 Andrew Cagney <cagney@redhat.com>
7572
7573 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7574 get_next_frame and get_frame_saved_regs.
7575
7576 2003-04-13 Andrew Cagney <cagney@redhat.com>
7577
7578 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7579 of gdbarch_num_regs.
7580
7581 2003-04-13 Andrew Cagney <cagney@redhat.com>
7582
7583 * frame.h: Mention what replaced what in "struct frame_info".
7584 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7585 deprecated_update_frame_base_hack and
7586 deprecated_update_frame_pc_hack.
7587 * hppa-tdep.c: Ditto.
7588
7589 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7590
7591 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7592 to read_reg and update its comment. Remove regnum member.
7593 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7594 Don't call read_reg when setting in_reg. Call read_reg to get
7595 the frame base if it's in a register. Return the register number
7596 on the stack instead of in the context. Remove extra arguments
7597 to read_reg.
7598 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7599 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7600 the register number on the expression stack.
7601 (needs_frame_read_reg): Remove extra arguments.
7602
7603 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7604
7605 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7606 made non-static.
7607 (execute_stack_op): All callers updated.
7608 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7609 * dwarf2loc.c (find_location_expression): New function.
7610 (dwarf_expr_frame_base): Call it.
7611 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7612 (dwarf2_tracepoint_var_ref): New function, broken out from
7613 locexpr_tracepoint_var_ref.
7614 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7615 Make static.
7616 (loclist_read_variable, loclist_read_needs_frame): New functions.
7617 (loclist_describe_location, loclist_tracepoint_var_ref): New
7618 functions.
7619 (dwarf2_loclist_funcs): New struct location_funcs.
7620 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7621 (struct dwarf2_locexpr_baton): Add comments.
7622 (dwarf2_loclist_funcs): New extern.
7623 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7624 base_address and base_known.
7625 (dwarf_loc_buffer): New variable.
7626 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7627 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7628 (dwarf2_has_info): Initialize dwarf_loc_offset.
7629 (dwarf2_build_psymtabs): Read in .debug_loc.
7630 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7631 DWARF_LOC_SIZE.
7632 (psymtab_to_symtab_1): Likewise. Move base address calculation
7633 here, from...
7634 (dwarf2_get_pc_bounds): ... here. Use the base address from
7635 cu_header.
7636 (dwarf2_symbol_mark_computed): Handle location lists.
7637
7638 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7639
7640 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7641 if the linkage name demangled successfully.
7642
7643 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7644
7645 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7646 disassmbly_flavour): Removed.
7647
7648 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7649
7650 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7651
7652 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7653
7654 2003-04-12 Andrew Cagney <cagney@redhat.com>
7655
7656 * frame.h (struct frame_info): Move definition from here ...
7657 * frame.c (struct frame_info): ... to here.
7658
7659 2003-04-12 Andrew Cagney <cagney@redhat.com>
7660
7661 * gdbthread.h (save_infrun_state): Delete parameter
7662 "prev_func_start".
7663 (struct thread_info): Delete field "prev_func_start".
7664 (load_infrun_state): Ditto.
7665 * thread.c (load_infrun_state, save_infrun_state): Update.
7666 * infrun.c (prev_func_start): Delete variable.
7667 (context_switch, init_wait_for_inferior): Update.
7668 (stop_stepping, keep_going): Update.
7669
7670 2003-04-12 Andrew Cagney <cagney@redhat.com>
7671
7672 * gdbarch.sh: Add missing opaque declarations.
7673 * gdbarch.h: Regnerate.
7674 * symtab.h: Add missing opaque declarations.
7675 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7676 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7677 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7678 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7679 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7680 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7681 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7682 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7683 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7684 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7685 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7686 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7687 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7688
7689 2003-04-11 Andrew Cagney <cagney@redhat.com>
7690
7691 * frame.c (get_frame_id): Return this frame's "id".
7692 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7693 function start.
7694 (legacy_saved_regs_this_id): Replace function body with
7695 internal-error.
7696 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7697 FRAME_OBSTACK_ZALLOC.
7698 (create_new_frame): Mark the frame ID as valid.
7699
7700 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7701
7702 * Makefile.in (libbfd_h): Added missing setting.
7703 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7704 according to the selected ABI.
7705
7706 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7707
7708 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7709
7710 2003-04-11 Andrew Cagney <cagney@redhat.com>
7711
7712 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7713 SAVED_PC_AFTER_CALL.
7714 * gdbarch.h, gdbarch.c: Regenerate.
7715 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7716 * x86-64-tdep.c (x86_64_init_abi): Update.
7717 * vax-tdep.c (vax_gdbarch_init): Update.
7718 * v850-tdep.c (v850_gdbarch_init): Update.
7719 * sparc-tdep.c (sparc_gdbarch_init): Update.
7720 * sh-tdep.c (sh_gdbarch_init): Update.
7721 * s390-tdep.c (s390_gdbarch_init): Update.
7722 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7723 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7724 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7725 * mips-tdep.c (mips_gdbarch_init): Update.
7726 * mcore-tdep.c (mcore_gdbarch_init): Update.
7727 * m68k-tdep.c (m68k_gdbarch_init): Update.
7728 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7729 * ia64-tdep.c (ia64_gdbarch_init): Update.
7730 (ia64_saved_pc_after_call): Update declaration.
7731 * i386ly-tdep.c (i386lynx_init_abi): Update.
7732 * i386-tdep.c (i386_gdbarch_init): Update.
7733 * hppa-tdep.c (hppa_gdbarch_init): Update.
7734 * h8300-tdep.c (h8300_gdbarch_init): Update.
7735 * frv-tdep.c (frv_gdbarch_init): Update.
7736 * cris-tdep.c (cris_gdbarch_init): Update.
7737 * avr-tdep.c (avr_gdbarch_init): Update.
7738 * arm-tdep.c (arm_gdbarch_init): Update.
7739 * alpha-tdep.c (alpha_gdbarch_init): Update.
7740 * ns32knbsd-nat.c (frame_num_args): Update.
7741 * ns32k-tdep.c (umax_frame_num_args): Update.
7742 * mips-tdep.c (mips_init_frame_pc_first): Update.
7743 * infrun.c (step_over_function): Update.
7744 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7745 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7746 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7747 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7748 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7749 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7750 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7751 * arch-utils.c (init_frame_pc_default): Update.
7752 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7753 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7754 declaration.
7755
7756 2003-04-11 Andrew Cagney <cagney@redhat.com>
7757
7758 * i387-tdep.c: Update copyright.
7759 (i387_to_double): Delete function.
7760 (double_to_i387): Delete function.
7761
7762 2003-04-10 Andrew Cagney <cagney@redhat.com>
7763
7764 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7765 frame's function's address. Simplify.
7766 (d10v_frame_unwind_cache): Check that the frame's function is
7767 non-zero.
7768
7769 2003-04-10 Jim Blandy <jimb@redhat.com>
7770
7771 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7772 call to set_gdbarch_deprecated_push_arguments.
7773
7774 2003-04-10 Andrew Cagney <cagney@redhat.com>
7775
7776 * frame.c (fprint_frame_id): New function.
7777 (fprint_frame_type, fprint_frame): New function.
7778 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7779 (create_sentinel_frame, get_frame_id): Ditto.
7780 (frame_id_p, frame_id_eq): Ditto.
7781 (frame_id_inner, create_new_frame): Ditto.
7782 (legacy_get_prev_frame, get_prev_frame): Ditto.
7783 (deprecated_update_frame_pc_hack): Ditto.
7784 (frame_register_unwind): Ditto.
7785 (deprecated_update_frame_base_hack): Ditto.
7786
7787 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7788
7789 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7790 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7791 frame_chain function.
7792 * Makefile.in: Add dependencies due to above change.
7793
7794 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7795
7796 * blockframe.c (legacy_frame_chain_valid): Move call to
7797 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7798 inside_entry_file.
7799
7800 2003-04-09 Andrew Cagney <cagney@redhat.com>
7801
7802 * frame.h (struct frame_id): Replace "pc" and "base" with
7803 "stack_addr" and "code_addr". Update comments.
7804 (frame_id_build): Update parameter names and comment.
7805 (struct frame_info): Replace "id_p" and "id" with "this_id".
7806 * dummy-frame.c (dummy_frame_this_id): Update.
7807 * breakpoint.c (print_one_breakpoint): Update.
7808 * frame.c (get_frame_id): Update.
7809 (get_frame_base, frame_id_build): Update.
7810 (create_sentinel_frame, legacy_get_prev_frame): Update.
7811 (deprecated_update_frame_base_hack): Update.
7812 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7813 (frame_id_inner): Ditto.
7814
7815 2003-04-09 Andrew Cagney <cagney@redhat.com>
7816
7817 * defs.h (gdb_print_host_address): Make "addr" parameter a
7818 pointer constant.
7819 * utils.c (gdb_print_host_address): Update.
7820
7821 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7822
7823 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7824 register number for R0 is 0.
7825
7826 2003-04-09 J. Brobecker <brobecker@gnat.com>
7827
7828 * frame.h (struct gdbarch): Add opaque structure definition
7829 to avoid a compilation warning on LynxOS 4.0.
7830
7831 2003-04-09 Andrew Cagney <cagney@redhat.com>
7832
7833 * frame.h (struct frame_info): Delete field "pc". Replace
7834 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7835 structure.
7836 * frame.c (frame_pc_unwind): Update.
7837 (create_sentinel_frame): Do not set "pc".
7838 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7839 (get_frame_pc): Call frame_pc_unwind.
7840 (deprecated_update_frame_pc_hack): Update.
7841 (create_new_frame): Use "pc" not "->pc".
7842
7843 2003-04-09 Andrew Cagney <cagney@redhat.com>
7844
7845 * frame.c (get_frame_id): Eliminate code updating "frame".
7846 (legacy_get_prev_frame): Ditto.
7847 (get_frame_base): Return id.base directly.
7848 (deprecated_update_frame_base_hack): Update "id.base".
7849 * frame.h (struct frame_info): Delete field "frame".
7850
7851 2003-04-09 Andrew Cagney <cagney@redhat.com>
7852
7853 * NEWS: Mention that the "Sequent family" is obsolete.
7854 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7855 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7856 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7857 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7858 * config/i386/tm-ptx4.h: Obsolete file.
7859 * config/i386/tm-ptx.h: Obsolete file.
7860 * symm-tdep.c: Obsolete file.
7861 * config/i386/symmetry.mt: Obsolete file.
7862 * config/i386/tm-symmetry.h: Obsolete file.
7863 * symm-nat.c: Obsolete file.
7864 * config/i386/nm-symmetry.h: Obsolete file.
7865 * config/i386/xm-symmetry.h: Obsolete file.
7866 * config/i386/symmetry.mh: Obsolete file.
7867 * config/i386/nm-ptx4.h: Obsolete file.
7868 * config/i386/ptx4.mh: Obsolete file.
7869 * config/i386/ptx.mt: Obsolete file.
7870 * config/i386/ptx.mh: Obsolete file.
7871 * config/i386/xm-ptx4.h: Obsolete file.
7872 * config/i386/xm-ptx.h: Obsolete file.
7873
7874 2003-04-09 Andrew Cagney <cagney@redhat.com>
7875
7876 Obsolete mips*-*-mach3*.
7877 * NEWS: Mention that mips*-*-mach3* is obsolete.
7878 * m3-nat.c: Obsolete file.
7879 * config/nm-m3.h: Obsolete file.
7880 * config/mips/tm-mipsm3.h: Obsolete file.
7881 * config/mips/mipsm3.mt: Obsolete file.
7882 * config/mips/mipsm3.mh: Obsolete file.
7883 * config/mips/xm-mipsm3.h: Obsolete file.
7884 * mipsm3-nat.c: Obsolete file.
7885 * configure.host: Obsolete mips-dec-mach3*.
7886 * configure.tgt: Obsolete mips*-*-mach3*.
7887
7888 2003-04-09 Andrew Cagney <cagney@redhat.com>
7889
7890 * doublest.h: Update copyright.
7891 (deprecated_store_floating, deprecated_extract_floating): Rename
7892 store_floating and extract_floating. Update comments.
7893 * doublest.c: Update copyright.
7894 (extract_floating_by_length): Replace extract_floating.
7895 (store_floating_by_length): Replace store_floating.
7896 (deprecated_extract_floating): New function.
7897 (deprecated_store_floating): New function.
7898 (extract_typed_floating): Call extract_floating_by_length.
7899 (store_typed_floating): Call store_floating_by_length.
7900 * x86-64-tdep.c (x86_64_store_return_value): Update.
7901 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7902 (sh64_extract_return_value): Update.
7903 (sh_sh4_register_convert_to_virtual): Update.
7904 (sh_sh64_register_convert_to_virtual): Update.
7905 (sh_sh4_register_convert_to_raw): Update.
7906 (sh_sh64_register_convert_to_raw): Update.
7907 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7908 (rs6000_register_convert_to_raw): Update.
7909 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7910 (ia64_register_convert_to_raw): Update.
7911 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7912 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7913 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7914 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7915 (alpha_register_convert_to_raw): Update.
7916
7917 2003-04-08 Andrew Cagney <cagney@redhat.com>
7918
7919 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7920 * gdbarch.h, gdbarch.c: Re-generate.
7921 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7922 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7923 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7924 conditionally, use frame_pc_unwind as an alternative. Add
7925 comments.
7926 * arch-utils.c (init_frame_pc_default): Only call
7927 SAVED_PC_AFTER_CALL when available.
7928
7929 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7930
7931 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7932 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7933 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7934 (start_remote): Ditto.
7935 (handle_inferior_event): Ditto.
7936 (save_inferior_status): Ditto.
7937 (restore_inferior_status): Ditto.
7938 * infcmd.c (attach_command): Ditto.
7939 * fork-child.c (startup_inferior): Ditto.
7940 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7941 * alpha-tdep.c (heuristic_proc_start): Ditto.
7942 * mips-tdep.c (heuristic_proc_start): Ditto.
7943 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7944 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7945 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7946 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7947 * remote-vx.c (vx_create_inferior): Ditto.
7948
7949 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7950
7951 * infrun.c (stop_soon_quietly): Make it an enum, to better
7952 override the default behavior of handle_inferior_event.
7953 (clear_proceed_status): Update uses of stop_soon_quietly to
7954 reflect that it is now an enum.
7955 (start_remote): Ditto.
7956 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7957 is set to handle the new GNU/Linux kernel behavior for
7958 attach/sigstop. Update uses of stop_soon_quietly.
7959 * inferior.h (enum stop_kind): New enum.
7960 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7961 Reset normal handle_inferior_event behavior, afterwards.
7962 * fork-child.c (startup_inferior): Update.
7963 * alpha-tdep.c (heuristic_proc_start): Update.
7964 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7965 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7966 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7967 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7968 * remote-vx.c (vx_create_inferior): Update.
7969 * mips-tdep.c (heuristic_proc_start): Update.
7970
7971 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7972
7973 * disasm.c (dump_insns): Move variables inside loop, or they will
7974 be freed more than once, causing wild memory corruptions.
7975 (gdb_disassembly): Look for the substring "-thread",
7976 instead of "-threads" in the target name, to make sure to find
7977 the 'multi-thread' target. Also, make sure we do the right thing
7978 with the "core" target.
7979
7980 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7981
7982 * mips-tdep.c (mips_print_fp_register): New function, created from
7983 do_fp_register_row(). Registers are now (also) printed as hex.
7984 Only one register is printed per row.
7985 (mips_print_register, do_fp_register_row): Print floating point
7986 registers with mips_print_fp_register().
7987
7988 2003-04-06 Andrew Cagney <cagney@redhat.com>
7989
7990 * valprint.h (inspect_it): Add extern declaration.
7991 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7992 (selectors_info, classes_info): Ditto.
7993 (find_objc_msgcall): Fix indentation.
7994 (objc_printstr): Delete extern declarations.
7995
7996 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7997
7998 2003-04-06 Andrew Cagney <cagney@redhat.com>
7999
8000 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8001 Update comment.
8002 * frame.c (legacy_saved_regs_this_id): Update.
8003 (legacy_get_prev_frame): Update.
8004 * xstormy16-tdep.c: Update comment.
8005 * sparc-tdep.c (sparc_frame_chain): Update comment.
8006 * blockframe.c (legacy_frame_chain_valid): Update.
8007
8008 2003-04-06 Andrew Cagney <cagney@redhat.com>
8009
8010 * valprint.c (val_print_type_code_int): Delete #ifdef
8011 PRINT_TYPELESS_INTEGER code.
8012
8013 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8014 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8015 multi-arch definition.
8016 * gdbarch.h: Re-generate.
8017
8018 2003-04-05 Andrew Cagney <cagney@redhat.com>
8019
8020 Eliminate FRAME_FIND_SAVED_REGS.
8021 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8022 Change FSR parameter to a pointer.
8023 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8024 Assume FSR parameter is a pointer.
8025 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8026 Make fsr a pointer.
8027 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8028 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8029 saved_regs a pointer.
8030 (hppa_frame_saved_pc): Ditto.
8031 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8032 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8033 pointer.
8034 (restore_pc_queue): Make fsr a pointer.
8035 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8036 (hppa_frame_chain): Make saved_regs a pointer, call
8037 hppa_frame_init_saved_regs.
8038 * sparc-tdep.c: Include "gdb_assert.h".
8039 (sparc_frame_find_saved_regs): Replace internal_error with
8040 gdb_assert.
8041 * remote-vxsparc.c (vx_read_register): Delete reference to
8042 FRAME_FIND_SAVED_REGS.
8043 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8044 * gdbarch.h: Regenerate.
8045 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8046 (deprecated_get_frame_saved_regs): Delete declaration.
8047 (struct frame_saved_regs): Delete definition.
8048 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8049 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8050 (hppa_frame_find_saved_regs): Delete declaration.
8051 (FRAME_FIND_SAVED_REGS): Delete macro.
8052 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8053 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8054 FRAME_FIND_SAVED_REGS in comment.
8055
8056 2003-04-05 Andrew Cagney <cagney@redhat.com>
8057
8058 * frame.c (frame_func_unwind, get_frame_func): New functions.
8059 * frame.h (get_frame_func, frame_func_unwind): Declare.
8060 (struct frame_info): Add field "prev_func" for caching the
8061 previous frame's function address.
8062 * arm-tdep.c (arm_frameless_function_invocation): Combine
8063 get_pc_function_start and get_frame_pc into get_frame_func.
8064 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8065 (sh64_nofp_frame_init_saved_regs): Ditto.
8066 * s390-tdep.c (s390_function_start): Ditto.
8067 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8068 (rs6000_frameless_function_invocation): Ditto.
8069 (rs6000_frame_saved_pc): Ditto.
8070 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8071 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8072 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8073 (i386_frame_init_saved_regs): Ditto.
8074 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8075 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8076 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8077 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8078 * blockframe.c (frameless_look_for_prologue): Ditto.
8079
8080 2003-04-05 Andrew Cagney <cagney@redhat.com>
8081
8082 * frame.c (legacy_get_prev_frame): Link prev to next at the
8083 function start. Update comments.
8084
8085 2003-04-05 Andrew Cagney <cagney@redhat.com>
8086
8087 * frame.c (get_frame_id): Update comment.
8088 (legacy_get_prev_frame): Update comment.
8089 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8090 * gdbarch.h: Regenerate.
8091 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8092 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8093
8094 2003-04-05 Andrew Cagney <cagney@redhat.com>
8095
8096 * stack.c (print_frame_info): Use get_frame_pc.
8097
8098 2003-04-04 Andrew Cagney <cagney@redhat.com>
8099
8100 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8101 the frame's type from the unwinder.
8102 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8103 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8104 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8105 (get_frame_base_address): Use get_frame_type.
8106 (get_frame_locals_address, get_frame_args_address): Ditto.
8107 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8108 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8109 (struct frame_info): Add comment explaining why the frame contains
8110 a "type" field.
8111 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8112 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8113 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8114 NORMAL_FRAME.
8115 * frame-unwind.h: Include "frame.h".
8116 (struct frame_unwind): Add "type" field.
8117 * Makefile.in (frame_unwind_h): Add $(frame_h).
8118
8119 2003-04-04 Andrew Cagney <cagney@redhat.com>
8120
8121 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8122 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8123 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8124 get_frame_base.
8125 (d10v_unwind_dummy_id): Use frame_id_build.
8126 * frame.c (find_frame_sal): Use get_frame_pc.
8127 (create_new_frame): Use deprecated_update_frame_pc_hack and
8128 deprecated_update_frame_base_hack.
8129 (create_sentinel_frame): Add comment about ->pc going away.
8130 (get_prev_frame): Add comment about ->pc going away.
8131 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8132 frame_id_build, deprecated_update_frame_pc_hack and
8133 deprecated_update_frame_base_hack.
8134 (select_frame): Use get_frame_pc.
8135 (legacy_saved_regs_this_id): Use frame_id_build.
8136
8137 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8138
8139 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8140 signed integer case.
8141 (classify_argument): Handle enumerations and references.
8142
8143 2003-04-04 Andrew Cagney <cagney@redhat.com>
8144
8145 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8146 ID to NULL.
8147
8148 2003-04-01 Adam Fedor <fedor@gnu.org>
8149
8150 * gdb/objc-lang.c (selectors_info): Replace calls to
8151 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8152 SYMBOL_NATURAL_NAME.
8153 (classes_info, find_methods): Likewise.
8154
8155 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8156
8157 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8158 ``mach'' to the value determined by bfd_default_set_arch_mach().
8159
8160 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8161
8162 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8163 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8164 (mi-cmd-file.o): Update dependencies.
8165
8166 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8167
8168 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8169 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8170
8171 2003-04-01 Adam Fedor <fedor@gnu.org>
8172
8173 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8174 * language.h (struct language_defn): Add la_demangle.
8175 (language_demangle): Declare.
8176 * language.c (language_demangle): New function.
8177 (unk_lang_demangle): Likewise.
8178 (unknown_language_defn, auto_language_defn, local_language_defn):
8179 Add ukn_lang_demangle.
8180 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8181 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8182 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8183 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8184 * jv-lang.c (java_demangle): New function
8185 (java_language_defn): Use it for la_demangle element.
8186 * objc-lang.c (objc_demangle): Add options argument
8187 (objc_language_defn): Use objc_demangle for la_demangle element.
8188 * maint.c (maintenance_demangle): Replace switch with
8189 call to language_demangle.
8190 * utils.c (fprintf_symbol_filtered): Likewise.
8191
8192 2003-04-01 Andrew Cagney <cagney@redhat.com>
8193
8194 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8195 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8196 PRINT_TYPELESS_INTEGER.
8197 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8198 PUSH_RETURN_ADDRESS.
8199
8200 2003-04-01 Andrew Cagney <cagney@redhat.com>
8201
8202 * Makefile.in (d10v-tdep.o): Update dependencies.
8203 * d10v-tdep.c: Include "frame-base.h".
8204 (d10v_frame_unwind): Make constant.
8205 (d10v_frame_base_address): New function.
8206 (d10v_frame_base): New variable.
8207 (d10v_gdbarch_init): Set frame_base default.
8208 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8209 comment for base.
8210 (d10v_frame_unwind_cache): Set and use "prev_sp".
8211 (d10v_frame_this_id): Use the previous frame's inner most stack
8212 address and this frame's func address for the frame ID. Use
8213 frame_id_build. Don't analyze beyond the current instruction.
8214
8215 2003-04-01 Andrew Cagney <cagney@redhat.com>
8216
8217 * frame.h (get_frame_locals_address, get_frame_args_address):
8218 Refer to the base address, instead of the address of the first
8219 local or parameter.
8220
8221 2003-04-01 Andrew Cagney <cagney@redhat.com>
8222
8223 Add frame debug info addresses:
8224 * frame-base.c: New file.
8225 * frame-base.h: New file.
8226 * frame.h (struct frame_base): Add opaque declaration.
8227 (get_frame_base): Update comment.
8228 (get_frame_base_address): Declare.
8229 (get_frame_locals_address): Declare.
8230 (get_frame_args_address): Declare.
8231 (struct frame_info): Add "base" and "base_cache". Update
8232 comments on the unwinder.
8233 * frame.c: Include "frame-base.h".
8234 (get_frame_locals_address): New function.
8235 (get_frame_base_address): New function.
8236 (get_frame_args_address): New function.
8237 * findvar.c (read_var_value): Use get_frame_locals_address and
8238 get_frame_args_address.
8239 * stack.c (frame_info): Use get_frame_locals_address and
8240 get_frame_args_address.
8241 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8242 moved to "frame-base.c".
8243 * printcmd.c (print_frame_nameless_args): Ditto.
8244 * symtab.h (address_class): Update comments.
8245 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8246 get_frame_base_address.
8247 * dwarf2expr.c (execute_stack_op): Ditto.
8248 * Makefile.in (frame_base_h): Define.
8249 (frame.o): Update dependencies.
8250 (frame-base.o): Add dependencies.
8251 (SFILES): Add frame-base.c.
8252 (COMMON_OBS): Add frame-base.o.
8253
8254 2003-04-01 Andrew Cagney <cagney@redhat.com>
8255
8256 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8257 CALL_DUMMY_LENGTH): Ditto.
8258 * gdbarch.c: Re-generate.
8259 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8260 (CALL_DUMMY_LENGTH): Delete macro.
8261 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8262 * arm-tdep.c (arm_gdbarch_init): Ditto.
8263 * avr-tdep.c (avr_gdbarch_init): Ditto.
8264 * cris-tdep.c (cris_gdbarch_init): Ditto.
8265 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8266 * frv-tdep.c (frv_gdbarch_init): Ditto.
8267 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8268 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8269 * i386-tdep.c (i386_gdbarch_init): Ditto.
8270 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8271 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8272 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8273 * mips-tdep.c (mips_gdbarch_init): Ditto.
8274 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8275 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8276 * s390-tdep.c (s390_gdbarch_init): Ditto.
8277 * sh-tdep.c (sh_gdbarch_init): Ditto.
8278 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8279 * v850-tdep.c (v850_gdbarch_init): Ditto.
8280 * vax-tdep.c (vax_gdbarch_init): Ditto.
8281 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8282
8283 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8284
8285 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8286
8287 2003-04-01 Andrew Cagney <cagney@redhat.com>
8288
8289 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8290 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8291 * gdbarch.h, gdbarch.c: Re-generate.
8292 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8293 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8294 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8295 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8296 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8297 * infcmd.c (run_stack_dummy): Simplify assuming
8298 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8299 * infrun.c (handle_inferior_event): Ditto.
8300 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8301 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8302 * arm-tdep.c (arm_gdbarch_init): Ditto.
8303 * avr-tdep.c (avr_gdbarch_init): Ditto.
8304 * cris-tdep.c (cris_gdbarch_init): Ditto.
8305 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8306 * frv-tdep.c (frv_gdbarch_init): Ditto.
8307 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8308 * i386-tdep.c (i386_gdbarch_init): Ditto.
8309 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8310 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8311 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8312 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8313 * mips-tdep.c (mips_gdbarch_init): Ditto.
8314 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8315 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8316 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8317 * s390-tdep.c (s390_gdbarch_init): Ditto.
8318 * sh-tdep.c (sh_gdbarch_init): Ditto.
8319 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8320 * v850-tdep.c (v850_gdbarch_init): Ditto.
8321 * vax-tdep.c (vax_gdbarch_init): Ditto.
8322 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8323
8324 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8325
8326 * symfile.c (symfile_relocate_debug_section): Update call to
8327 bfd_simple_get_relocated_section_contents.
8328
8329 2003-03-31 Andrew Cagney <cagney@redhat.com>
8330
8331 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8332 * gdbarch.h, gdbarch.c: Regenerate.
8333 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8334 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8335 available.
8336 * frame.h (generic_fix_call_dummy): Delete declaration.
8337 * dummy-frame.h: Update comment.
8338 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8339 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8340 fix_call_dummy.
8341 * sh-tdep.c (sh_gdbarch_init): Ditto.
8342 * s390-tdep.c (s390_gdbarch_init): Ditto.
8343 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8344 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8345 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8346 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8347 * i386-tdep.c (i386_gdbarch_init): Ditto.
8348 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8349 * frv-tdep.c (frv_gdbarch_init): Ditto.
8350 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8351 * cris-tdep.c (cris_gdbarch_init): Ditto.
8352 * avr-tdep.c (avr_gdbarch_init): Ditto.
8353 * arm-tdep.c (arm_gdbarch_init): Ditto.
8354
8355 2003-03-31 J. Brobecker <brobecker@gnat.com>
8356
8357 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8358 (INIT_FRAME_AP): Likewise.
8359 (EXTRA_FRAME_INFO): Likewise.
8360
8361 2003-03-31 Andrew Cagney <cagney@redhat.com>
8362
8363 * gdbarch.sh: Include "symfile.h".
8364 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8365 * gdbarch.h, gdbarch.c: Re-generate.
8366 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8367 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8368 call_dummy_address, the default is at entry_point_address.
8369 * v850-tdep.c (v850_gdbarch_init): Ditto.
8370 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8371 * sh-tdep.c (sh_gdbarch_init): Ditto.
8372 * s390-tdep.c (s390_gdbarch_init): Ditto.
8373 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8374 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8375 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8376 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8377 * i386-tdep.c (i386_gdbarch_init): Ditto.
8378 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8379 * frv-tdep.c (frv_gdbarch_init): Ditto.
8380 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8381 * cris-tdep.c (cris_gdbarch_init): Ditto.
8382 * arm-tdep.c (arm_gdbarch_init): Ditto.
8383
8384 2003-03-31 Andrew Cagney <cagney@redhat.com>
8385
8386 * gdbarch.sh (CALL_DUMMY_P): Delete.
8387 * gdbarch.h, gdbarch.c: Re-generate.
8388 * inferior.h (CALL_DUMMY_P): Delete macro.
8389 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8390 * vax-tdep.c (vax_gdbarch_init): Update.
8391 * v850-tdep.c (v850_gdbarch_init): Update.
8392 * sparc-tdep.c (sparc_gdbarch_init): Update.
8393 * sh-tdep.c (sh_gdbarch_init): Update.
8394 * s390-tdep.c (s390_gdbarch_init): Update.
8395 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8396 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8397 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8398 * mips-tdep.c (mips_gdbarch_init): Update.
8399 * mcore-tdep.c (mcore_gdbarch_init): Update.
8400 * m68k-tdep.c (m68k_gdbarch_init): Update.
8401 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8402 * ia64-tdep.c (ia64_gdbarch_init): Update.
8403 * i386-tdep.c (i386_gdbarch_init): Update.
8404 * h8300-tdep.c (h8300_gdbarch_init): Update.
8405 * frv-tdep.c (frv_gdbarch_init): Update.
8406 * d10v-tdep.c (d10v_gdbarch_init): Update.
8407 * cris-tdep.c (cris_gdbarch_init): Update.
8408 * breakpoint.c (deprecated_frame_in_dummy): Update.
8409 * avr-tdep.c (avr_gdbarch_init): Update.
8410 * alpha-tdep.c (alpha_gdbarch_init): Update.
8411 * arm-tdep.c (arm_gdbarch_init): Update.
8412 * dummy-frame.c (dummy_frame_this_id): Update comments.
8413 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8414 * frame.c (legacy_get_prev_frame): Ditto.
8415 * valops.c (call_function_by_hand): Delete function.
8416 (hand_function_call): Rename to call_function_by_hand
8417
8418 2003-03-30 Andrew Cagney <cagney@redhat.com>
8419
8420 2002-11-10 Klee Dienes <kdienes@apple.com>
8421 * value.h (struct value): Update comment.
8422
8423 2003-03-30 Andrew Cagney <cagney@redhat.com>
8424
8425 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8426 D10V_FP_REGNUM.
8427 (d10v_gdbarch_init): Do not set fp_regnum.
8428
8429 * frame.c (get_frame_base): Force ID initialization.
8430 (get_prev_frame): Move computation of the frame ID from here ...
8431 (get_frame_id): ... to here.
8432 (legacy_get_prev_frame): Mark the frame ID as valid.
8433 * frame.h (struct frame_info): Add field "id_p".
8434
8435 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8436
8437 * i386-tdep.c (i386_store_struct_return): Removed.
8438 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8439
8440 2003-03-30 Andrew Cagney <cagney@redhat.com>
8441
8442 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8443 * gdbarch.h, gdbarch.c: Regenerate.
8444 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8445 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8446 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8447 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8448 * i386-tdep.c (i386_gdbarch_init): Ditto.
8449 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8450 * cris-tdep.c (cris_gdbarch_init): Ditto.
8451 * vax-tdep.c (vax_gdbarch_init): Ditto.
8452 * s390-tdep.c (s390_gdbarch_init): Ditto.
8453 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8454 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8455 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8456 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8457 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8458 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8459 * sparc-tdep.c (sparc_gdbarch_init): Update.
8460 * sh-tdep.c (sh_gdbarch_init): Update.
8461 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8462 * mips-tdep.c (mips_gdbarch_init): Update.
8463 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8464 * ia64-tdep.c (ia64_gdbarch_init): Update.
8465 * frv-tdep.c (frv_gdbarch_init): Update.
8466 * avr-tdep.c (avr_gdbarch_init): Update.
8467 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8468 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8469 instead of when push_dummy_call is not available.
8470
8471 2003-03-30 Andrew Cagney <cagney@redhat.com>
8472
8473 * infttrace.c: Include "gdbthread.h".
8474 (parent_attach_all): Fix function signature.
8475 (call_ptrace): Update call.
8476 * Makefile.in (infttrace.o): Update dependencies.
8477
8478 2003-03-30 Andrew Cagney <cagney@redhat.com>
8479
8480 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8481 PUSH_RETURN_ADDRESS.
8482 * gdbarch.h, gdbarch.c: Regenerate.
8483 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8484 * x86-64-tdep.c (x86_64_init_abi): Update.
8485 * v850-tdep.c (v850_gdbarch_init): Update.
8486 * sparc-tdep.c (sparc_gdbarch_init): Update.
8487 * sh-tdep.c (sh_gdbarch_init): Update.
8488 * s390-tdep.c (s390_gdbarch_init): Update.
8489 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8490 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8491 * mips-tdep.c (mips_gdbarch_init): Update.
8492 * mcore-tdep.c (mcore_gdbarch_init): Update.
8493 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8494 * ia64-tdep.c (ia64_gdbarch_init): Update.
8495 * i386-tdep.c (i386_gdbarch_init): Update.
8496 * h8300-tdep.c (h8300_gdbarch_init): Update.
8497 * frv-tdep.c (frv_gdbarch_init): Update.
8498 * cris-tdep.c (cris_gdbarch_init): Update.
8499 * avr-tdep.c (avr_gdbarch_init): Update.
8500 * arm-tdep.c (arm_gdbarch_init): Update.
8501 * valops.c (hand_function_call): Update.
8502
8503 2003-03-29 Andrew Cagney <cagney@redhat.com>
8504
8505 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8506 sizeof_call_dummy_words.
8507 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8508 define.
8509 * gdbarch.h: Regenerate.
8510
8511 2003-03-29 Andrew Cagney <cagney@redhat.com>
8512
8513 * infttrace.h: New file.
8514 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8515 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8516 (hpread_read_doc_function_type): Detect an initialized type1.
8517 (hpread_quick_traverse): Initialize mod_name_string.
8518 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8519 (som_solib_get_solib_by_pc): Declare.
8520 (so_lib_thread_start_addr): Declare.
8521 (no_shared_libraries): Declare.
8522 * somread.c (init_import_symbols): Make static. Add forward
8523 declaration.
8524 * config/pa/nm-hppah.h: Include "infttrace.h" for
8525 parent_attach_all.
8526 (hppa_insert_hw_watchpoint): Declare.
8527 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8528 * hppah-nat.c: Include "gdb_string.h".
8529 (parent_attach_all): Delete extern declaration, moved to
8530 "infttrace.h".
8531 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8532 int.
8533 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8534 * Makefile.in (infttrace_h): Define.
8535 (hpread.o): Update dependencies.
8536 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8537 * hppa-hpux-tdep.c: Include "gdb_string.h".
8538 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8539 * infrun.c (handle_inferior_event): Always initialize
8540 stepped_after_stopped_by_watchpoint. Add default and remove
8541 fallthrough in switch statement.
8542 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8543 parameter to int.
8544 (hppa_remove_hw_watchpoint): Ditto.
8545
8546 2003-03-29 Andrew Cagney <cagney@redhat.com>
8547
8548 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8549 offset.
8550
8551 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8552
8553 * arm-tdep.c (arm_push_arguments): Delete.
8554 (struct stack_item): New type.
8555 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8556 (arm_store_struct_return): Delte.
8557 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8558 arm_push_arguments or arm_store_struct_return.
8559
8560 2003-03-28 Andrew Cagney <cagney@redhat.com>
8561
8562 * Makefile.in (d10v-tdep.o): Update dependencies.
8563 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8564 * d10v-tdep.c: Include "remote.h".
8565 (target_resume_hook): Delete extern declaration.
8566 (target_wait_loop_hook): Ditto.
8567 (tdisassemble_command): Eliminate assignment in "if" conditional.
8568 (d10v_ts2_register_sim_regno): Eliminate call to
8569 legacy_register_sim_regno.
8570 (d10v_ts3_register_sim_regno): Ditto.
8571
8572 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8573
8574 * thread.c: Reindented.
8575 * lin-lwp.c: Ditto.
8576 * linux-proc.c: Ditto.
8577
8578 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8579
8580 * MAINTAINERS (write after approval): Add myself.
8581
8582 2003-03-27 Theodore A. Roth <troth@openavr.org>
8583
8584 * objc-exp.y: Add missing semi-colons.
8585
8586 2003-03-27 Andrew Cagney <cagney@redhat.com>
8587
8588 * regcache.c (write_sp): Delete function and references.
8589 * inferior.h (write_sp): Delete declaration.
8590 * valops.c (hand_function_call): Replace write_sp with
8591 TARGET_WRITE_SP.
8592 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8593 (sparc_pop_frame): Ditto.
8594
8595 2003-03-27 Andrew Cagney <cagney@redhat.com>
8596
8597 * NEWS: Mention removal of support for hppa*-*-bsd* and
8598 hppa*-*-osf* natives, and hppa*-*-pro* target.
8599 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8600 * config/pa/xm-pa.h: Obsolete file.
8601 * config/pa/xm-hppab.h: Obsolete file.
8602 * config/pa/nm-hppab.h: Obsolete file.
8603 * config/pa/tm-hppab.h: Obsolete file.
8604 * config/pa/tm-hppao.h: Obsolete file.
8605 * config/pa/nm-hppao.h: Obsolete file.
8606 * config/pa/tm-pro.h: Obsolete file.
8607 * config/pa/hppaosf.mt: Obsolete file.
8608 * config/pa/hppaosf.mh: Obsolete file.
8609 * config/pa/hppapro.mt: Obsolete file.
8610 * config/pa/hppabsd.mt: Obsolete file.
8611 * config/pa/hppabsd.mh: Obsolete file.
8612 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8613 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8614 hppa*-*-osf*.
8615
8616 2003-03-27 Andrew Cagney <cagney@redhat.com>
8617
8618 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8619 push_arguments. Don't set push_return_address or write_sp.
8620 (d10v_push_dummy_call): Replace d10v_push_arguments.
8621 (d10v_push_return_address, d10v_write_sp): Delete function,
8622 handled by push_dummy_call.
8623
8624 2003-03-26 Andrew Cagney <cagney@redhat.com>
8625
8626 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8627 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8628 regcache and dummy_addr parameters.
8629 * gdbarch.h, gdbarch.c: Re-generate.
8630 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8631 available; assume it will handle stack alignment and return
8632 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8633 legacy_push_arguments.
8634 (legacy_push_arguments): Rename default_push_arguments.
8635 * value.h (legacy_push_arguments): Rename default_push_arguments.
8636 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8637 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8638 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8639 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8640 * config/i386/tm-symmetry.h: Update.
8641 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8642 * x86-64-tdep.c (x86_64_init_abi): Update.
8643 * v850-tdep.c (v850_gdbarch_init): Update.
8644 * sparc-tdep.c (sparc_gdbarch_init): Update.
8645 * sh-tdep.c (sh_gdbarch_init): Update.
8646 * s390-tdep.c (s390_gdbarch_init): Update.
8647 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8648 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8649 * mips-tdep.c (mips_gdbarch_init): Update.
8650 * mcore-tdep.c (mcore_gdbarch_init): Update.
8651 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8652 * ia64-tdep.c (ia64_gdbarch_init): Update.
8653 * i386-tdep.c (i386_gdbarch_init): Update.
8654 * hppa-tdep.c (hppa_gdbarch_init): Update.
8655 * h8300-tdep.c (h8300_gdbarch_init): Update.
8656 * frv-tdep.c (frv_gdbarch_init): Update.
8657 * d10v-tdep.c (d10v_gdbarch_init): Update.
8658 * cris-tdep.c (cris_gdbarch_init): Update.
8659 * avr-tdep.c (avr_gdbarch_init): Update.
8660 * arm-tdep.c (arm_gdbarch_init): Update.
8661 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8662 * alpha-tdep.c (alpha_gdbarch_init): Update.
8663
8664 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8665
8666 * signals/signals.c (do_target_signal_to_host): Correct realtime
8667 signal range test.
8668
8669 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8670
8671 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8672 (struct sal_chain, map_catch_names): Remove.
8673 (catch_exception_command_1): Don't call
8674 handle_gnu_4_16_catch_command.
8675
8676 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8677
8678 From Mark Dettinger <dettinge@de.ibm.com>:
8679 * dwarf2cfi.c (read_2u): Increment pointer by two.
8680
8681 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8682
8683 * signals/signals.c: Fix typos in last change.
8684
8685 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8686
8687 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8688 not already defined. Use __SIGRTMIN if available.
8689 (target_signal_from_host): Remove SIGRTMIN block.
8690 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8691 the signal is within the realtime range.
8692
8693 2003-03-25 Adam Fedor <fedor@gnu.org>
8694
8695 * Makefile.in (infrun.o): Add $(language_h)
8696 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8697 for language specific trampolines.
8698 * language.h (struct language_defn): Add skip_trampoline.
8699 (skip_language_trampoline): Declare.
8700 * language.c (unk_lang_trampoline, skip_language_trampoline):
8701 New functions.
8702 (unknown_language_defn, auto_language_defn, local_language_defn):
8703 Add ukn_lang_trampoline.
8704 * ada-lang.c (ada_language_defn): Add NULL for language
8705 specific skip_trampoline.
8706 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8707 scm-lang.c: Likewise.
8708 * objc-lang.c (objc_skip_trampoline): New function.
8709 (objc_language_defn): Add objc_skip_trampoline.
8710
8711 2003-03-25 Andrew Cagney <cagney@redhat.com>
8712
8713 * frame.c (get_prev_frame): Delay validating a frame's ID -
8714 non-NULL, didn't go backwards - until an attempt to unwind it to
8715 the previous frame.
8716
8717 2003-03-25 Andrew Cagney <cagney@redhat.com>
8718
8719 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8720 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8721 * gdbarch.h, gdbarch.c: Re-generate.
8722 * config/sparc/tm-sparc.h
8723 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8724 * sparc-tdep.c (sparc_gdbarch_init): Set
8725 deprecated_extra_stack_alignment_needed.
8726 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8727 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8728 extra_stack_alignment_needed.
8729 * v850-tdep.c (v850_gdbarch_init): Ditto.
8730 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8731 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8732 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8733 * cris-tdep.c (cris_gdbarch_init): Ditto.
8734 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8735 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8736
8737 2003-03-25 Andrew Cagney <cagney@redhat.com>
8738
8739 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8740 STORE_STRUCT_RETURN.
8741 * gdbarch.h, gdbarch.c: Regenerate.
8742 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8743 (d10v_push_arguments): Set the struct return register.
8744 (d10v_gdbarch_init): Update.
8745 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8746 * x86-64-tdep.c (x86_64_init_abi): Update.
8747 * vax-tdep.c (vax_gdbarch_init): Update.
8748 * v850-tdep.c (v850_gdbarch_init): Update.
8749 * sparc-tdep.c (sparc_gdbarch_init): Update.
8750 * sh-tdep.c (sh_gdbarch_init): Update.
8751 * s390-tdep.c (s390_gdbarch_init): Update.
8752 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8753 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8754 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8755 * mips-tdep.c (mips_gdbarch_init): Update.
8756 * mcore-tdep.c (mcore_gdbarch_init): Update.
8757 * m68k-tdep.c (m68k_gdbarch_init): Update.
8758 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8759 * ia64-tdep.c (ia64_gdbarch_init): Update.
8760 * i386-tdep.c (i386_gdbarch_init): Update.
8761 * hppa-tdep.c (hppa_gdbarch_init): Update.
8762 * h8300-tdep.c (h8300_gdbarch_init): Update.
8763 * frv-tdep.c (frv_gdbarch_init): Update.
8764 * cris-tdep.c (cris_gdbarch_init): Update.
8765 * avr-tdep.c (avr_gdbarch_init): Update.
8766 * arm-tdep.c (arm_gdbarch_init): Update.
8767 * alpha-tdep.c (alpha_gdbarch_init): Update.
8768
8769 2003-03-25 Andrew Cagney <cagney@redhat.com>
8770
8771 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8772 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8773 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8774 * gdbarch.h, gdbarch.c: Regenerate.
8775 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8776 call_dummy_stack_adjust_p.
8777 * vax-tdep.c (vax_gdbarch_init): Ditto.
8778 * v850-tdep.c (v850_gdbarch_init): Ditto.
8779 * sh-tdep.c (sh_gdbarch_init): Ditto.
8780 * s390-tdep.c (s390_gdbarch_init): Ditto.
8781 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8782 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8783 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8784 * mips-tdep.c (mips_gdbarch_init): Ditto.
8785 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8786 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8787 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8788 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8789 * i386-tdep.c (i386_gdbarch_init): Ditto.
8790 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8791 * frv-tdep.c (frv_gdbarch_init): Ditto.
8792 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8793 * cris-tdep.c (cris_gdbarch_init): Ditto.
8794 * avr-tdep.c (avr_gdbarch_init): Ditto.
8795 * arm-tdep.c (arm_gdbarch_init): Ditto.
8796 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8797 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8798 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8799 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8800 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8801 call_dummy_stack_adjust_p.
8802 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8803 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8804 * sparc-tdep.c (sparc32_push_arguments): Update.
8805 * valops.c (hand_function_call): Update.
8806
8807 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8808
8809 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8810 set_gdbarch_char_signed.
8811
8812 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8813
8814 PR cli/548
8815 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8816
8817 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8818
8819 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8820 (_initialize_arm_tdep): Don't set tm_print_insn.
8821
8822 2003-03-24 Adam Fedor <fedor@gnu.org>
8823
8824 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8825 * objc-lang.h: Add multiple inclusion protection.
8826 (start_msglist, add_msglist, end_msglist): Additional declarations.
8827
8828 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8829
8830 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8831 value was renamed to ARM_FLOAT_SOFT_FPA.
8832
8833 2003-03-23 Andrew Cagney <cagney@redhat.com>
8834
8835 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8836 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8837 * gdbarch.h, gdbarch.c: Regenerate.
8838 * valops.c (hand_function_call): Update.
8839 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8840 * frame.c (legacy_saved_regs_this_id): Update.
8841 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8842 * dummy-frame.h: Update.
8843 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8844 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8845 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8846 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8847 * config/m68k/tm-sun3.h: Update.
8848 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8849 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8850 * x86-64-tdep.c (x86_64_init_abi): Update.
8851 * vax-tdep.c (vax_gdbarch_init): Update.
8852 * v850-tdep.c (v850_gdbarch_init): Update.
8853 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8854 * sh-tdep.c (sh_gdbarch_init): Update.
8855 * s390-tdep.c (s390_gdbarch_init): Update.
8856 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8857 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8858 (frame_get_saved_regs): Update.
8859 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8860 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8861 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8862 * mips-tdep.c (mips_gdbarch_init): Update.
8863 * mcore-tdep.c (mcore_gdbarch_init): Update.
8864 * m68k-tdep.c (m68k_gdbarch_init): Update.
8865 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8866 * ia64-tdep.c (ia64_gdbarch_init): Update.
8867 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8868 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8869 (i386_interix_back_one_frame): Update.
8870 * hppa-tdep.c (hppa_gdbarch_init): Update.
8871 (hppa_init_extra_frame_info): Update.
8872 * h8300-tdep.c (h8300_gdbarch_init): Update.
8873 * frv-tdep.c (frv_gdbarch_init): Update.
8874 * cris-tdep.c (cris_gdbarch_init): Update.
8875 * avr-tdep.c (avr_gdbarch_init): Update.
8876 * arm-tdep.c (arm_gdbarch_init): Update.
8877 * alpha-tdep.c (alpha_gdbarch_init): Update.
8878
8879 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8880
8881 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8882 (arm_get_fp_model): Declare.
8883 * arm-tdep.c (fp_model_strings): New string array.
8884 (arm_fp_model, current_fp_model): New variables.
8885 (arm_get_fp_model): New function.
8886 (arm_set_fp): New function.
8887 (set_fp_model_sfunc): New function.
8888 (show_fp_model): New function.
8889 (_initialize_arm_tdep): Add new command to set/show the FPU.
8890 (arm_extract_return_value): Use arm_get_fp_model.
8891 (arm_store_return_value): Likewise.
8892 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8893 to initialize the floating-point data types.
8894 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8895 model is FPA.
8896
8897 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8898
8899 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8900 the current setting of each value.
8901 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8902 new_set and new_show. Use add_setshow_cmd_full and
8903 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8904 commands and add new version as subcommands of "set/show arm".
8905
8906 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8907
8908 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8909 (set_arm_command, show_arm_command): New functions.
8910 (_initialize_arm_tdep): Add them.
8911 (num_disassembly_options): Renamed from num_flavor_options.
8912 (valid_disassembly_styles): Renamed from valid_flavors.
8913 (disassembly_style): Renamed from disassembly_flavor.
8914 (set_disassembly_style_sfunc): Renamed from
8915 set_disassembly_flavor_sfunc.
8916 (set_disassembly_style): Renamed from set_disassembly_flavor.
8917 (arm_othernames): Updated.
8918 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8919 command. Add "set/show arm disassembly" commands. Deprecate
8920 "othernames" command.
8921
8922 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8923
8924 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8925 (arm-tdep.o): Depend on elf_arm_h.
8926
8927 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8928
8929 * Makefile.in (coff_internal_h): Define.
8930 (arm-tdep.o): Update dependencies.
8931
8932 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8933
8934 * arm-tdep.c (prologue_cache): Delete.
8935 (check_prologue_cache, save_prologue_cache): Delete.
8936 (arm_scan_prologue): Don't check or update the prologue_cache.
8937 (arm_gdb_arch_init): Don't initialize it.
8938 (_initialize_arm_tdep): Likewise.
8939
8940 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8941
8942 * MAINTAINERS (tui): Maintainer of tui code.
8943
8944 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8945
8946 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8947 (i386-cygwin-tdep.o): Add dependencies.
8948 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8949 * i386-cygwin-tdep.c: New file.
8950 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8951 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8952
8953 2003-03-20 Andrew Cagney <cagney@redhat.com>
8954
8955 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8956 (handle_inferior_event): Remove code calling
8957 DYNAMIC_TRAMPOLINE_NEXTPC.
8958
8959 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8960 already has a full path.
8961
8962 * main.c (gdb_main): Return 1.
8963 (captured_main): Call error to report an invalid interpreter.
8964
8965 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8966 * alpha-osf1-tdep.c: Include "gdb_string.h".
8967
8968 2003-03-19 J. Brobecker <brobecker@gnat.com>
8969
8970 Continuing work to convert the hppa targets to multiarch partial.
8971
8972 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8973 method, now that hppa_push_dummy_frame has a conformant prototype.
8974 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8975 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8976 for the switch to multiarch partial.
8977
8978 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8979
8980 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8981 when iss is issNull.
8982
8983 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8984
8985 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8986 NUM_REGS bounds check.
8987
8988 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8989
8990 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8991 * mips-tdep.c (gdb_assert.h): Include.
8992 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8993 (mips_register_name): Handle integer registers explicitly. Add
8994 bounds checking.
8995 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8996 (mips_lsi33k_reg_names): Don't list integer registers; they're
8997 handled by mips_register_name() now.
8998 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8999 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9000 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9001 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9002 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9003
9004 2003-03-18 Andrew Cagney <cagney@redhat.com>
9005
9006 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9007 a void pointer.
9008 * gdbtypes.h (print_scalar_formatted): Update declaration.
9009 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9010
9011 2003-03-18 J. Brobecker <brobecker@gnat.com>
9012
9013 * infrun.c (observer.h): Add #include.
9014 (normal_stop): Add call to observer_notify_normal_stop.
9015 * Makefile.in (infrun.o): Add dependency on observer.h.
9016
9017 2003-03-18 J. Brobecker <brobecker@gnat.com>
9018
9019 Continuing work to convert the hppa targets to multiarch partial.
9020 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9021 parameter. Reformat comment.
9022 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9023 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9024 to match new profile.
9025
9026 2003-03-18 J. Brobecker <brobecker@gnat.com>
9027
9028 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9029 appear to be working in any case.
9030
9031 2003-03-18 J. Brobecker <brobecker@gnat.com>
9032
9033 * observer.c (observer_test_first_observer): New static variable.
9034 (observer_test_second_observer): Likewise.
9035 (observer_test_third_observer): Likewise.
9036 (observer_test_first_notification_function): New static function.
9037 (observer_test_second_notification_function): Likewise.
9038 (observer_test_third_notification_function): Likewise.
9039
9040 2003-03-17 J. Brobecker <brobecker@gnat.com>
9041
9042 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9043 * somsolib.c (gdb_assert.h): Likewise.
9044 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9045 (somsolib.o): Likewise.
9046
9047 2003-03-17 Andrew Cagney <cagney@redhat.com>
9048
9049 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9050 BFD. Simplify setting of di.endian.
9051
9052 2003-03-17 Andrew Cagney <cagney@redhat.com>
9053
9054 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9055 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9056
9057 From Elena Zannoni <ezannoni@redhat.com>
9058 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9059 vector and floating-point parameters.
9060 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9061 convention.
9062 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9063
9064 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9065
9066 * MAINTAINERS: Remove my name from several maintainership roles.
9067
9068 2003-03-17 Andrew Cagney <cagney@redhat.com>
9069
9070 Fix frame off-by-one bug.
9071 * frame-unwind.h (frame_this_id_ftype): Replace
9072 frame_unwind_id_ftype.
9073 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9074 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9075 with "prev_register".
9076 * frame-unwind.c (frame_unwind_find_by_pc): Return
9077 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9078 comment.
9079 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9080 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9081 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9082 (dummy_frame_unwind): Update.
9083 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9084 sentinel_frame_register_unwind.
9085 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9086 (sentinel_frame_unwinder): Update.
9087 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9088 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9089 * frame.c (create_sentinel_frame): Update. Initialize
9090 "prologue_cache" instead of "unwind_cache".
9091 (frame_register_unwind): Call this frame's prev_register with the
9092 next frame and this frame's prologue cache.
9093 (get_prev_frame): Simplify. Always call prev frame's this_id with
9094 this frame and prev frame's prologue cache. Document that this
9095 call is shifted one to the left when compared to the
9096 frame_register_unwind call.
9097 (legacy_saved_regs_prev_register): Replace
9098 frame_saved_regs_register_unwind.
9099 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9100 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9101 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9102 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9103 (d10v_frame_unwind): Update.
9104 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9105 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9106 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9107 "saved_regs" with "this_saved_regs".
9108
9109 2003-03-16 Andrew Cagney <cagney@redhat.com>
9110
9111 * frame.c (frame_pop): Don't call target_store_registers. Fix
9112 problem reported by Mark Kettenis.
9113
9114 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9115
9116 * i386-tdep.c (i386_register_type): Renamed from
9117 i386_register_virtual_type. Adjust function signature.
9118 (i386_gdbarch_init): Set register_type instead of
9119 deprecated_max_register_raw_size,
9120 deprecated_max_register_virtual_size and register_virtual_type.
9121
9122 2003-03-14 Andrew Cagney <cagney@redhat.com>
9123
9124 * frame.c (get_prev_frame): When a legacy frame, always call
9125 legacy_get_prev_frame. Simplify unwind code using assumption that
9126 the unwinder is new.
9127 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9128 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9129 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9130
9131 2003-03-14 Andrew Cagney <cagney@redhat.com>
9132
9133 * frame.c (get_saved_register): Delete function.
9134 * frame.h (get_saved_register): Delete declaration.
9135 * xstormy16-tdep.c: Update comment.
9136 * regcache.h: Update comments.
9137 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9138 get_saved_register and extract_address, use
9139 frame_read_unsigned_register.
9140 (sparc_frame_saved_pc): Ditto.
9141 (sparc_get_saved_register): Instead of get_saved_register, use
9142 frame_register.
9143 (sparc_pop_frame): Ditto.
9144 * findvar.c: Update comments.
9145 (value_of_register): Call frame_register instead of
9146 get_saved_register.
9147 (value_from_register): Ditto.
9148 * config/sparc/tm-sparc.h: Update comment.
9149 * breakpoint.c: Update comment.
9150
9151 2003-03-14 Andrew Cagney <cagney@redhat.com>
9152
9153 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9154 GET_SAVED_REGISTER.
9155 * gdbarch.h, gdbarch.c: Re-generate.
9156 * frame.h: Update comments.
9157 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9158 * x86-64-tdep.c (x86_64_init_abi): Update.
9159 * sparc-tdep.c (sparc_gdbarch_init): Update.
9160 * sh-tdep.c (sh_gdbarch_init): Update.
9161 * mips-tdep.c (mips_gdbarch_init): Update.
9162 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9163 * cris-tdep.c (cris_gdbarch_init): Update.
9164 * ia64-tdep.c (ia64_gdbarch_init): Update.
9165 * frame.c (frame_register): Update.
9166 (get_saved_register): Update.
9167 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9168
9169 2003-03-13 Andrew Cagney <cagney@redhat.com>
9170
9171 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9172 * gdbarch.h, gdbarch.c: Regenerate.
9173 * valops.c (hand_function_call): Update comment.
9174 * stack.c (return_command): Update comment.
9175 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9176 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9177 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9178 * x86-64-tdep.c (x86_64_init_abi): Update.
9179 * vax-tdep.c (vax_gdbarch_init): Update.
9180 * v850-tdep.c (v850_gdbarch_init): Update.
9181 * sparc-tdep.c (sparc_gdbarch_init): Update.
9182 * sh-tdep.c (sh_gdbarch_init): Update.
9183 * s390-tdep.c (s390_gdbarch_init): Update.
9184 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9185 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9186 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9187 * mips-tdep.c (mips_gdbarch_init): Update.
9188 * mcore-tdep.c (mcore_gdbarch_init): Update.
9189 * m68k-tdep.c (m68k_gdbarch_init): Update.
9190 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9191 * ia64-tdep.c (ia64_gdbarch_init): Update.
9192 * i386-tdep.c (i386_gdbarch_init): Update.
9193 * hppa-tdep.c (hppa_gdbarch_init): Update.
9194 * h8300-tdep.c (h8300_gdbarch_init): Update.
9195 * frv-tdep.c (frv_gdbarch_init): Update.
9196 * cris-tdep.c (cris_gdbarch_init): Update.
9197 * avr-tdep.c (avr_gdbarch_init): Update.
9198 * arm-tdep.c (arm_gdbarch_init): Update.
9199 * alpha-tdep.c (alpha_gdbarch_init): Update.
9200
9201 2003-03-13 Andrew Cagney <cagney@redhat.com>
9202
9203 * frame.c (legacy_frame_p): New function.
9204 (get_prev_frame): Use legacy_frame_p.
9205 * frame.h (legacy_frame_p): Declare.
9206
9207 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9208
9209 * MAINTAINERS (write after approval): Alphabetically
9210 listing corrected.
9211
9212 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9213
9214 * MAINTAINERS (write after approval): Add myself.
9215
9216 2003-03-12 Andrew Cagney <cagney@redhat.com>
9217
9218 * frame.c (get_prev_frame): Rename the frame parameter to
9219 "this_frame".
9220 (get_next_frame, legacy_get_prev_frame): Ditto.
9221
9222 2003-03-12 Andrew Cagney <cagney@redhat.com>
9223
9224 * frame.c (get_current_frame): Check target_has_registers before
9225 checking target_has_stack.
9226 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9227 instead of deprecated_selected_frame.
9228 * findvar.c (value_of_register): Pass "frame", not
9229 deprecated_selected_frame, to value_of_builtin_reg.
9230
9231 2003-03-12 Andrew Cagney <cagney@redhat.com>
9232
9233 * regcache.c (regcache_cooked_write_signed): New function.
9234 (regcache_cooked_write_unsigned): New function.
9235 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9236 (regcache_cooked_read_signed): Fix regnum in range assertion.
9237 * regcache.h (regcache_cooked_write_signed): Declare.
9238 (regcache_cooked_write_unsigned): Declare.
9239
9240 2003-03-12 Andrew Cagney <cagney@redhat.com>
9241
9242 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9243 * gdbarch.h, gdbarch.c: Re-generate.
9244 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9245 * x86-64-tdep.h: Update.
9246 * x86-64-tdep.c (x86_64_init_abi): Update.
9247 * v850-tdep.c (v850_gdbarch_init): Update.
9248 * sparc-tdep.c (sparc_gdbarch_init): Update.
9249 * sh-tdep.c (sh_gdbarch_init): Update.
9250 * s390-tdep.c (s390_gdbarch_init): Update.
9251 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9252 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9253 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9254 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9255 * mips-tdep.c (mips_gdbarch_init): Update.
9256 * mcore-tdep.c (mcore_gdbarch_init): Update.
9257 * m68k-tdep.c (m68k_gdbarch_init): Update.
9258 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9259 * ia64-tdep.c (ia64_gdbarch_init): Update.
9260 * i386-tdep.c (i386_gdbarch_init): Update.
9261 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9262 * hppa-tdep.c (hppa_gdbarch_init): Update.
9263 * h8300-tdep.c (h8300_gdbarch_init): Update.
9264 * frv-tdep.c (frv_gdbarch_init): Update.
9265 * cris-tdep.c (cris_gdbarch_init): Update.
9266 * avr-tdep.c (avr_gdbarch_init): Update.
9267 * arm-tdep.c (arm_gdbarch_init): Update.
9268 * alpha-tdep.c (alpha_gdbarch_init): Update.
9269 * sh-tdep.c (sh_init_extra_frame_info): Update.
9270 (sh64_init_extra_frame_info): Update.
9271 * ns32knbsd-nat.c (frame_num_args): Update.
9272 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9273 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9274 (xstormy16_frame_chain_valid): Update.
9275 * vax-tdep.c (vax_saved_pc_after_call): Update.
9276 * v850-tdep.c (v850_frame_chain): Update.
9277 (v850_pop_frame): Update.
9278 (v850_init_extra_frame_info): Update.
9279 * sparc-tdep.c (setup_arbitrary_frame): Update.
9280 * ns32k-tdep.c (umax_frame_num_args): Update.
9281 * s390-tdep.c (s390_pop_frame_regular): Update.
9282 * mn10300-tdep.c (mn10300_frame_chain): Update.
9283 (mn10300_pop_frame_regular): Update.
9284 (mn10300_init_extra_frame_info): Update.
9285 * mips-tdep.c (mips_init_frame_pc_first): Update.
9286 (mips_frame_chain): Update.
9287 (mips_pop_frame): Update.
9288 * mcore-tdep.c (mcore_frame_chain): Update.
9289 (mcore_pop_frame): Update.
9290 (mcore_init_extra_frame_info): Update.
9291 * arch-utils.c (init_frame_pc_default): Update.
9292 * m68k-tdep.c (isi_frame_num_args): Update.
9293 (delta68_frame_num_args): Update.
9294 (news_frame_num_args): Update.
9295 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9296 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9297 (alpha_frame_chain): Update.
9298 (alpha_pop_frame): Update.
9299 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9300 (hppa_init_extra_frame_info): Update.
9301 (hppa_frame_chain): Update.
9302 (hppa_frame_chain_valid): Update.
9303 * cris-tdep.c (cris_init_extra_frame_info): Update.
9304 * avr-tdep.c (avr_init_extra_frame_info): Update.
9305 * arm-tdep.c (arm_frame_chain_valid): Update.
9306 (arm_init_extra_frame_info): Update.
9307 (arm_pop_frame): Update.
9308 * frame.c (frame_pc_unwind): Update.
9309 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9310 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9311 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9312 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9313 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9314 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9315
9316 2003-03-12 Andrew Cagney <cagney@redhat.com>
9317
9318 Eliminate the need for POP_FRAME.
9319 * frame.c (do_frame_unwind_register): New function.
9320 (frame_pop): When no POP_FRAME, pop the frame using register
9321 unwind and a scratch regcache.
9322 (frame_saved_regs_pop): Delete function.
9323 (trad_frame_unwinder): Update.
9324 * d10v-tdep.c (d10v_frame_pop): Delete function.
9325 (d10v_frame_unwind): Update.
9326 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9327 (sentinel_frame_unwinder): Update.
9328 * dummy-frame.c (dummy_frame_pop): Delete function.
9329 (dummy_frame_unwind): Update.
9330 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9331 (struct frame_unwind): Update.
9332
9333 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9334
9335 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9336 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9337 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9338 Do range checks on register number obtained from debugging info.
9339 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9340 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9341 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9342 mapping function.
9343 (do_fp_register_row): Fix typo which caused double type to be
9344 used when attempting to unpack a float.
9345
9346 2003-03-11 J. Brobecker <brobecker@gnat.com>
9347
9348 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9349
9350 2003-03-11 Andrew Cagney <cagney@redhat.com>
9351
9352 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9353 frame. Problem found by Corinna Vinschen.
9354
9355 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9356
9357 * doublest.c (floatformat_from_length): Accept also
9358 the real size of 'long double' type.
9359
9360 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9361
9362 From Klee Dienes <kdienes@apple.com>:
9363 * breakpoint.c (bpstat_copy): Copy the command lines as well
9364 as the old value, to match what is freed in bpstat_clear.
9365
9366 2003-03-10 David Carlton <carlton@math.stanford.edu>
9367
9368 * minsyms.c (add_minsym_to_hash_table): Replace
9369 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9370 (compare_minimal_symbols, compact_minimal_symbols)
9371 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9372 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9373 of DEPRECATED_SYMBOL_MATCHES_NAME.
9374 (lookup_minimal_symbol_solib_trampoline): Ditto.
9375
9376 2003-03-10 Andrew Cagney <cagney@redhat.com>
9377
9378 * regcache.h (regcache_cooked_read_ftype): Define.
9379 (regcache_save, regcache_restore): Add a cooked_read parameter.
9380 * regcache.c (regcache_save, regcache_restore): Update.
9381 (do_cooked_read): New function.
9382 (regcache_cpy): Pass do_cooked_read to regcache_save and
9383 regcache_restore.
9384
9385 2003-03-10 Andrew Cagney <cagney@redhat.com>
9386
9387 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9388 * gdbarch.h, gdbarch.c: Re-generate.
9389 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9390 * x86-64-tdep.h: Update.
9391 * x86-64-tdep.c (x86_64_init_abi): Update.
9392 * v850-tdep.c (v850_gdbarch_init): Update.
9393 * sparc-tdep.c (sparc_gdbarch_init): Update.
9394 * sh-tdep.c (sh_gdbarch_init): Update.
9395 * s390-tdep.c (s390_gdbarch_init): Update.
9396 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9397 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9398 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9399 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9400 * mips-tdep.c (mips_gdbarch_init): Update.
9401 * mcore-tdep.c (mcore_gdbarch_init): Update.
9402 * m68k-tdep.c (m68k_gdbarch_init): Update.
9403 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9404 * ia64-tdep.c (ia64_gdbarch_init): Update.
9405 * i386-tdep.c (i386_gdbarch_init): Update.
9406 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9407 * hppa-tdep.c (hppa_gdbarch_init): Update.
9408 * h8300-tdep.c (h8300_gdbarch_init): Update.
9409 * frv-tdep.c (frv_gdbarch_init): Update.
9410 * cris-tdep.c (cris_gdbarch_init): Update.
9411 * avr-tdep.c (avr_gdbarch_init): Update.
9412 * arm-tdep.c (arm_gdbarch_init): Update.
9413 * alpha-tdep.c (alpha_gdbarch_init): Update.
9414 * sh-tdep.c (sh_init_extra_frame_info): Update.
9415 (sh64_init_extra_frame_info): Update.
9416 * ns32knbsd-nat.c (frame_num_args): Update.
9417 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9418 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9419 (xstormy16_frame_chain_valid): Update.
9420 * vax-tdep.c (vax_saved_pc_after_call): Update.
9421 * v850-tdep.c (v850_frame_chain): Update.
9422 (v850_pop_frame): Update.
9423 (v850_init_extra_frame_info): Update.
9424 * sparc-tdep.c (setup_arbitrary_frame): Update.
9425 * ns32k-tdep.c (umax_frame_num_args): Update.
9426 * s390-tdep.c (s390_pop_frame_regular): Update.
9427 * mn10300-tdep.c (mn10300_frame_chain): Update.
9428 (mn10300_pop_frame_regular): Update.
9429 (mn10300_init_extra_frame_info): Update.
9430 * mips-tdep.c (mips_init_frame_pc_first): Update.
9431 (mips_frame_chain): Update.
9432 (mips_pop_frame): Update.
9433 * mcore-tdep.c (mcore_frame_chain): Update.
9434 (mcore_pop_frame): Update.
9435 (mcore_init_extra_frame_info): Update.
9436 * arch-utils.c (init_frame_pc_default): Update.
9437 * m68k-tdep.c (isi_frame_num_args): Update.
9438 (delta68_frame_num_args): Update.
9439 (news_frame_num_args): Update.
9440 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9441 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9442 (alpha_frame_chain): Update.
9443 (alpha_pop_frame): Update.
9444 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9445 (hppa_init_extra_frame_info): Update.
9446 (hppa_frame_chain): Update.
9447 (hppa_frame_chain_valid): Update.
9448 * cris-tdep.c (cris_init_extra_frame_info): Update.
9449 * avr-tdep.c (avr_init_extra_frame_info): Update.
9450 * arm-tdep.c (arm_frame_chain_valid): Update.
9451 (arm_init_extra_frame_info): Update.
9452 (arm_pop_frame): Update.
9453 * frame.c (frame_pc_unwind): Update.
9454 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9455 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9456 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9457 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9458 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9459 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9460
9461 2003-03-10 Andrew Cagney <cagney@redhat.com>
9462
9463 * gdbarch.sh (gdbarch_unwind_pc): New method.
9464 * gdbarch.h, gdbarch.c: Regenerate.
9465 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9466 but use read_pc and FRAME_SAVED_PC as fall backs.
9467 (frame_saved_regs_pc_unwind): Delete function.
9468 (trad_frame_unwinder): Update.
9469 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9470 (struct frame_unwind): Update.
9471 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9472 (dummy_frame_unwind): Update.
9473 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9474 (sentinel_frame_unwinder): Update.
9475 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9476 (d10v_frame_unwind): Update.
9477 (d10v_unwind_pc): New function.
9478 (d10v_gdbarch_init): Set unwind_pc.
9479
9480 2003-03-10 Andrew Cagney <cagney@redhat.com>
9481
9482 * gdbarch.h: Re-generate.
9483
9484 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9485 PC.
9486 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9487 the PC register.
9488
9489 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9490
9491 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9492
9493 2003-03-08 Andrew Cagney <cagney@redhat.com>
9494
9495 * cli-out.c: Update copyright.
9496 (cli_out_data): Define typedef. Use instead of ui_out_data.
9497
9498 2003-03-08 Andrew Cagney <cagney@redhat.com>
9499
9500 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9501 the result.
9502
9503 2003-03-07 Andrew Cagney <cagney@redhat.com>
9504
9505 * gdbarch.sh: Don't generate two macro definitions when an
9506 undefined macro taking no arguments.
9507 * gdbarch.h: Regenerate.
9508
9509 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9510
9511 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9512 (x86_64_unwind_dummy_id): New functions.
9513 (x86_64_init_abi): Register these two new functions.
9514
9515 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9516
9517 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9518 (x86_64_skip_prologue): Move prologue detection to
9519 separate function.
9520 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9521
9522 2003-03-05 Andrew Cagney <cagney@redhat.com>
9523
9524 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9525 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9526 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9527 to use unwind_dummy_id when a dummy frame.
9528 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9529 predicate.
9530 * gdbarch.h, gdbarch.c: Regneerate.
9531
9532 2003-03-05 Andrew Cagney <cagney@redhat.com>
9533
9534 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9535 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9536 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9537 values.
9538
9539 2003-03-05 Andrew Cagney <cagney@redhat.com>
9540
9541 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9542 (struct d10v_unwind_cache): Delete field "frameless". Replace
9543 "next_addr" with "sp_offset". Add "r11_offset".
9544 (d10v_frame_unwind_cache): Update.
9545 (prologue_find_regs): Update. When "mv r11, sp", save the
9546 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9547 RN was saved in r11_offset.
9548
9549 2003-03-05 Andrew Cagney <cagney@redhat.com>
9550
9551 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9552 cached PC value in the next frame.
9553
9554 2003-03-05 Andrew Cagney <cagney@redhat.com>
9555
9556 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9557 "id_unwind_cache" with "id".
9558 (frame_id_unwind): Delete declaration.
9559 * frame.c (frame_id_unwind): Delete function.
9560 (get_prev_frame): Call the frame id unwind method directly. Store
9561 the returned next frame's ID value in NEXT_FRAME. Note that there
9562 is a problem with the wrong unwind ID being called with the wrong
9563 unwind cache.
9564
9565 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9566
9567 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9568
9569 2003-03-05 James Ingham <jingham@apple.com>
9570 Daniel Jacobowitz <drow@mvista.com>
9571
9572 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9573 (auto_cp_abi): New variable.
9574 (current_cp_abi, num_cp_abis): Make static.
9575 (CP_ABI_MAX): Define.
9576 (cp_abis): Turn into an array.
9577 (value_virtual_fn_field): Fix formatting.
9578 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9579 takes a pointer.
9580 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9581 (list_cp_abis, _initialize_cp_abi): New functions.
9582 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9583 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9584 switch_to_cp_abi. Update prototype for register_cp_abi.
9585 * Makefile.in (cp-abi.o): Update dependencies.
9586 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9587 instead of switch_to_cp_abi.
9588 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9589 register_cp_abi.
9590 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9591 register_cp_abi.
9592 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9593
9594 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9595
9596 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9597 * dwarf2loc.c: Include "regcache.h".
9598 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9599 register_size.
9600 * Makefile.in (dwarf2loc.o): Update dependencies.
9601
9602 2003-03-04 Theodore A. Roth <troth@openavr.org>
9603
9604 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9605 number of io registers reported by remote target is not a multiple of
9606 step.
9607
9608 2003-03-04 David Carlton <carlton@math.stanford.edu>
9609
9610 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9611 (lookup_symbol_aux_psymtabs): Update call to
9612 lookup_partial_symbol.
9613 (lookup_transparent_type, find_main_psymtab)
9614 (make_symbol_overload_list): Ditto.
9615
9616 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9617
9618 * MAINTAINERS (Write after approval): Update my email address.
9619
9620 2003-03-03 Andrew Cagney <cagney@redhat.com>
9621
9622 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9623 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9624 predicate. Replace MAX_REGISTER_RAW_SIZE.
9625 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9626 MAX_REGISTER_VIRTUAL_SIZE.
9627 * regcache.c (legacy_max_register_raw_size): New function.
9628 (legacy_max_register_virtual_size): New function.
9629 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9630 (MAX_REGISTER_RAW_SIZE): Define.
9631 (legacy_max_register_raw_size): Declare.
9632 (legacy_max_register_virtual_size): Declare.
9633 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9634 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9635 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9636 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9637 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9638 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9639 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9640 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9641 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9642 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9643 * vax-tdep.c (vax_gdbarch_init): Update.
9644 * v850-tdep.c (v850_gdbarch_init): Update.
9645 * sparc-tdep.c (sparc_gdbarch_init): Update.
9646 * sh-tdep.c (sh_gdbarch_init): Update.
9647 * s390-tdep.c (s390_gdbarch_init): Update.
9648 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9649 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9650 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9651 * mips-tdep.c (mips_gdbarch_init): Update.
9652 * mcore-tdep.c (mcore_gdbarch_init): Update.
9653 * m68k-tdep.c (m68k_gdbarch_init): Update.
9654 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9655 * ia64-tdep.c (ia64_gdbarch_init): Update.
9656 * i386-tdep.c (i386_gdbarch_init): Update.
9657 * hppa-tdep.c (hppa_gdbarch_init): Update.
9658 * h8300-tdep.c (h8300_gdbarch_init): Update.
9659 * frv-tdep.c (frv_gdbarch_init): Update.
9660 * cris-tdep.c (cris_gdbarch_init): Update.
9661 * avr-tdep.c (avr_gdbarch_init): Update.
9662 * arm-tdep.c (arm_gdbarch_init): Update.
9663 * alpha-tdep.c (alpha_gdbarch_init): Update.
9664 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9665 max_register_raw_size or max_register_virtual_size.
9666
9667 2003-03-03 David Carlton <carlton@math.stanford.edu>
9668
9669 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9670 SYMBOL_MATCHES_NAME, add comment.
9671 (SYMBOL_MATCHES_NATURAL_NAME): New.
9672 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9673 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9674 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9675 * symtab.c (lookup_partial_symbol): Use
9676 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9677 unhelpful comment.
9678 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9679 SYMBOL_MATCHES_NAME.
9680 Fix for PR c++/33.
9681
9682 2003-03-03 David Carlton <carlton@math.stanford.edu>
9683
9684 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9685 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9686 by regexp matching against SYMBOL_NATURAL_NAME.
9687
9688 2003-03-03 David Carlton <carlton@math.stanford.edu>
9689
9690 * linespec.c (find_method): Extract code into collect_methods.
9691 (collect_methods): New.
9692
9693 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9694
9695 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9696 get_frame_base.
9697
9698 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9699 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9700
9701 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9702
9703 * arch-utils.c (generic_register_byte): Fix to use the loop index
9704 and not regnum when summing the size of all registers up to regnum.
9705
9706 2003-03-01 Andrew Cagney <cagney@redhat.com>
9707
9708 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9709 FRAME_INIT_SAVED_REGS.
9710 * gdbarch.h, gdbarch.c: Regenerate.
9711 * stack.c (frame_info): Update.
9712 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9713 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9714 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9715 * ns32k-tdep.c (ns32k_pop_frame): Update.
9716 * mips-tdep.c (mips_pop_frame): Update.
9717 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9718 * ia64-tdep.c (ia64_frame_chain): Update.
9719 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9720 (ia64_frameless_function_invocation): Update.
9721 (ia64_init_extra_frame_info): Update.
9722 (ia64_pop_frame_regular): Update.
9723 * frame.h (struct frame_info): Update comment.
9724 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9725 * frame.c (frame_saved_regs_register_unwind): Update.
9726 (frame_saved_regs_register_unwind): Update.
9727 (deprecated_generic_get_saved_register): Update.
9728 * cris-tdep.c: Update comment.
9729 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9730 Rename macro.
9731 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9732 * x86-64-tdep.c (x86_64_init_abi): Update.
9733 * vax-tdep.c (vax_gdbarch_init): Update.
9734 * v850-tdep.c (v850_gdbarch_init): Update.
9735 * sparc-tdep.c (sparc_gdbarch_init): Update.
9736 * sh-tdep.c (sh_gdbarch_init): Update.
9737 * s390-tdep.c (s390_gdbarch_init): Update.
9738 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9739 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9740 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9741 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9742 * mips-tdep.c (mips_gdbarch_init): Update.
9743 * mcore-tdep.c (mcore_gdbarch_init): Update.
9744 * m68k-tdep.c (m68k_gdbarch_init): Update.
9745 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9746 * ia64-tdep.c (ia64_gdbarch_init): Update.
9747 * i386-tdep.c (i386_gdbarch_init): Update.
9748 * frv-tdep.c (frv_gdbarch_init): Update.
9749 * avr-tdep.c (avr_gdbarch_init): Update.
9750 * arm-tdep.c (arm_gdbarch_init): Update.
9751 * alpha-tdep.c (alpha_gdbarch_init): Update.
9752
9753 2003-03-01 Andrew Cagney <cagney@redhat.com>
9754
9755 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9756 option enum and switch. When no windows, set the interpreter to
9757 INTERP_CONSOLE.
9758
9759 2003-03-01 Andrew Cagney <cagney@redhat.com>
9760
9761 * main.c (captured_main): Replace magic option characters with an
9762 enum.
9763
9764 2003-03-01 Andrew Cagney <cagney@redhat.com>
9765
9766 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9767 INIT_EXTRA_FRAME_INFO.
9768 * gdbarch.h, gdbarch.c: Regenerate.
9769 * arm-tdep.c: Update comments.
9770 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9771 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9772 * frame.h, avr-tdep.c: Ditto.
9773 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9774 (create_new_frame, legacy_get_prev_frame): Ditto.
9775 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9776 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9777 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9778 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9779 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9780 * v850-tdep.c (v850_gdbarch_init): Ditto.
9781 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9782 * sh-tdep.c (sh_gdbarch_init): Ditto.
9783 * s390-tdep.c (s390_gdbarch_init): Ditto.
9784 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9785 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9786 * mips-tdep.c (mips_gdbarch_init): Ditto.
9787 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9788 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9789 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9790 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9791 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9792 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9793 * frv-tdep.c (frv_gdbarch_init): Ditto.
9794 * cris-tdep.c (cris_gdbarch_init): Ditto.
9795 * avr-tdep.c (avr_gdbarch_init): Ditto.
9796 * arm-tdep.c (arm_gdbarch_init): Ditto.
9797 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9798 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9799
9800 2003-03-01 Andrew Cagney <cagney@redhat.com>
9801
9802 * gdbarch.sh (register_type): New function with predicate.
9803 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9804 * gdbarch.h, gdbarch.c: Re-generate.
9805 * arch-utils.c (generic_register_byte): Use generic_register_size.
9806 (generic_register_size): When available, use
9807 gdbarch_register_type.
9808 * regcache.c (init_regcache_descr): When available, initialize the
9809 register type array using gdbarch_register_type. If the
9810 architecture supplies gdbarch_register_type, do not use the legacy
9811 regcache layout.
9812 * d10v-tdep.c (d10v_register_type): Replace
9813 d10v_register_virtual_type.
9814 (d10v_gdbarch_init): Set register_type instead of
9815 register_virtual_type.
9816
9817 2003-03-01 Andrew Cagney <cagney@redhat.com>
9818
9819 * Makefile.in (ax-gdb.o): Update dependencies.
9820 * ax-gdb.c: Include "regcache.h".
9821 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9822 * findvar.c (value_of_register): Ditto.
9823 * infcmd.c (default_print_registers_info): Ditto.
9824
9825 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9826
9827 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9828 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9829
9830 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9831
9832 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9833 of STREQ.
9834
9835 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9836
9837 * Makefile.in (dwarf2loc.o): Update dependencies.
9838 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9839 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9840 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9841 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9842 (locexpr_tracepoint_var_ref): New function.
9843 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9844
9845 2003-02-28 Andrew Cagney <cagney@redhat.com>
9846
9847 * regcache.c (register_size): New function.
9848 * regcache.h (register_size): Declare
9849 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9850 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9851
9852 2003-02-28 David Carlton <carlton@math.stanford.edu>
9853
9854 * linespec.c (decode_compound): Extract code into find_method.
9855 (find_method): New.
9856
9857 2003-02-28 J. Brobecker <brobecker@gnat.com>
9858
9859 * Makefile.in: Add rules to build and link in observer.o.
9860
9861 2003-02-27 J. Brobecker <brobecker@gnat.com>
9862
9863 * observer.c: Minor comments edits.
9864
9865 2003-02-27 J. Brobecker <brobecker@gnat.com>
9866
9867 * observer.h, observer.c: New file.
9868
9869 2003-02-27 Andrew Cagney <cagney@redhat.com>
9870
9871 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9872
9873 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9874
9875 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9876 (M6812_OP_STS_EXT): Likewise.
9877 (m6811_prologue): Use the above to recognize prologue.
9878 (m6812_prologue): Likewise.
9879
9880 2003-02-27 David Carlton <carlton@math.stanford.edu>
9881
9882 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9883 SYMBOL_PRINT_NAME.
9884 (compare_psymbols): Ditto.
9885 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9886
9887 2003-02-27 Michael Snyder <msnyder@redhat.com>
9888
9889 * f-lang.c (build_fortran_types): New function.
9890 (_initialize_f_language): Gdbarch-register built-in fortran types.
9891 * doublest.c (extract_floating): Fix warning text.
9892
9893 2003-02-27 Andrew Cagney <cagney@redhat.com>
9894
9895 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9896 predicate. Replaces PUSH_DUMMY_FRAME.
9897 * gdbarch.h, gdbarch.c: Regnerate.
9898 * valops.c (hand_function_call): Update. Call
9899 generic_push_dummy_frame directly.
9900 * vax-tdep.c (vax_gdbarch_init): Update.
9901 * sparc-tdep.c (sparc_gdbarch_init): Update.
9902 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9903 * m68k-tdep.c (m68k_gdbarch_init): Update.
9904 * hppa-tdep.c (hppa_gdbarch_init): Update.
9905 * alpha-tdep.c (alpha_gdbarch_init): Update.
9906 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9907 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9908 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9909 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9910 push_dummy_frame to generic_push_dummy_frame.
9911 * v850-tdep.c (v850_gdbarch_init): Ditto.
9912 * sh-tdep.c (sh_gdbarch_init): Ditto.
9913 * s390-tdep.c (s390_gdbarch_init): Ditto.
9914 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9915 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9916 * mips-tdep.c (mips_gdbarch_init): Ditto.
9917 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9918 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9919 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9920 * i386-tdep.c (i386_gdbarch_init): Ditto.
9921 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9922 * frv-tdep.c (frv_gdbarch_init): Ditto.
9923 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9924 * cris-tdep.c (cris_gdbarch_init): Ditto.
9925 * avr-tdep.c (avr_gdbarch_init): Ditto.
9926 * arm-tdep.c (arm_gdbarch_init): Ditto.
9927
9928 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9929
9930 * mips-tdep.c (show_mips_abi): New function.
9931 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9932 command ``show mips abi''.
9933
9934 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9935
9936 From Elena Zannoni <ezannoni@redhat.com>
9937 * dbxread.c (process_one_symbol): Only record line 0 if one or
9938 more sline entries have been seen for the function.
9939
9940 2003-02-26 Michael Chastain <mec@shout.net>
9941
9942 * configure: Regenerate with autoconf 000227.
9943
9944 2003-02-26 Michael Chastain <mec@shout.net>
9945
9946 Close PR build/660.
9947 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9948 for old libc5/glibc.
9949 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9950
9951 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9952
9953 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9954 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9955
9956 2003-02-26 Michael Chastain <mec@shout.net>
9957
9958 * configure.in: New variable HAVE_UINTPTR_T.
9959 * configure, config.in: Regenerated.
9960
9961 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9962
9963 Fix PR build/1097.
9964 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9965
9966 2003-02-25 Andrew Cagney <cagney@redhat.com>
9967
9968 * frame.c (get_prev_frame): Add comment on check for
9969 inside_entry_func. Only check for inside_entry_file when not a
9970 dummy and not a sentinel. Check that the new frame is not inner
9971 to the old frame.
9972
9973 2003-02-25 Andrew Cagney <cagney@redhat.com>
9974
9975 * frame.c (frame_debug): New variable.
9976 (_initialize_frame): Add "set/show debug frame" command.
9977 (get_prev_frame): When frame_debug, print reason why unwind
9978 failed.
9979
9980 2003-02-25 Michael Chastain <mec@shout.net>
9981
9982 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9983 to avoid uintptr_t definition problems.
9984
9985 2003-02-25 David Carlton <carlton@math.stanford.edu>
9986
9987 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9988 (SYMBOL_LINKAGE_NAME): Ditto.
9989 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9990 SYMBOL_LINKAGE_NAME.
9991 (struct general_symbol_info): Expand comment.
9992 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9993 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9994 (SYMBOL_MATCHES_REGEXP): Ditto.
9995 * symtab.c (symbol_natural_name): New function.
9996 * objfiles.h: Replace all uses of SYMBOL_NAME by
9997 DEPRECATED_SYMBOL_NAME.
9998 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9999 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10000 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10001 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10002 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10003 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10004 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10005 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10006 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10007 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10008 * ada-exp.y: Ditto.
10009 * ada-exp.y: Update copyright.
10010 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10011 * cp-valprint.c: Ditto.
10012
10013 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10014
10015 * infptrace.c (detach): Do not flag error if ptrace detach fails
10016 and errno is set to ESRCH.
10017
10018 2003-02-24 Andrew Cagney <cagney@redhat.com>
10019
10020 * infptrace.c (udot_info): Change type of udot_off to long. Use
10021 paddr when printing udot_off's value.
10022
10023 2003-02-24 David Carlton <carlton@math.stanford.edu>
10024
10025 * symtab.c (make_symbol_overload_list): Only read in partial
10026 symtabs containing a matching partial symbol.
10027
10028 2003-02-24 David Carlton <carlton@math.stanford.edu>
10029
10030 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10031 do the comparison, not strcmp.
10032 * symfile.c (compare_psymbols): Ditto.
10033 * defs.h: Declare strcmp_iw_ordered.
10034 * utils.c (strcmp_iw_ordered): New function.
10035
10036 2003-02-24 Jim Blandy <jimb@redhat.com>
10037
10038 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10039 support, shared libs): Remove my name from here, to better reflect
10040 reality.
10041
10042 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10043
10044 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10045 (target_ops): Add to_have_continuable_watchpoint.
10046 * target.c (update_current_target): Add INHERIT line for
10047 to_have_continuable_watchpoint.
10048 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10049 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10050 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10051 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10052
10053 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10054
10055 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10056 maintainership.
10057
10058 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10059
10060 * solib.c (solib_open): Call target defined search function after
10061 failing with solib-search-path.
10062 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10063 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10064
10065 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10066
10067 * MAINTAINERS: Add myself to Write After section.
10068
10069 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10070
10071 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10072
10073 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10074
10075 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10076 (m68hc11_add_reggroups): New function.
10077 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10078 (m68hc11_gdbarch_init): Install the reggroups.
10079 (_initialize_m68hc11_tdep): Initialize them.
10080
10081 2003-02-21 James E Wilson <wilson@tuliptree.org>
10082
10083 * MAINTAINERS: Update my email address.
10084
10085 2003-02-21 David Carlton <carlton@math.stanford.edu>
10086
10087 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10088
10089 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10090
10091 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10092 * symtab.h: Add opaque declarations of struct axs_value and
10093 struct agent_expr.
10094 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10095 (struct location_funcs): New type.
10096 (struct symbol): Add "loc" to aux_value.
10097 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10098 * dwarf2read.c: Include "dwarf2expr.h".
10099 (dwarf2_symbol_mark_computed): New function.
10100 (read_func_scope): Use it.
10101 (var_decode_location): New function.
10102 (new_symbol): Use it.
10103 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10104
10105 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10106 (dwarf2expr_h, dwarf2loc_h): New variables.
10107 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10108 (dwarf2expr.o, dwarf2loc.o): New rules.
10109 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10110 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10111 LOC_COMPUTED_ARG.
10112 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10113 * m2-exp.y (yylex): Likewise.
10114 * printcmd.c (address_info, print_frame_args): Likewise.
10115 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10116 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10117 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10118 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10119 * symtab.c (lookup_block_symbol): Likewise.
10120
10121 2003-02-20 Adam Fedor <fedor@gnu.org>
10122
10123 * symtab.h: Remove objc_specific struct
10124 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10125 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10126 Have language_objc use cplus_specific struct.
10127
10128 2003-02-20 Tom Tromey <tromey@redhat.com>
10129
10130 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10131 TYPE_NAME, when printing a String value. PR java/1075.
10132
10133 2003-02-20 Adam Fedor <fedor@gnu.org>
10134
10135 * objc-lang.h (find_methods): Remove declaration.
10136 * objc-lang.c (find_methods): Make static.
10137
10138 2003-02-20 Christopher Faylor <cgf@redhat.com>
10139
10140 * win32-nat.c (get_image_name): Check return value from
10141 ReadProcessMemory.
10142 (child_xfer_memory): Ditto.
10143
10144 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10145
10146 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10147 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10148 '${exec_prefix}' (in addition to the expansion thereof) as
10149 relocatable.
10150 * configure: Rebuilt.
10151
10152 2003-02-20 David Carlton <carlton@math.stanford.edu>
10153
10154 * symtab.c (search_symbols): Revert the search_symbols part of my
10155 2002-12-23 patch. Add comment.
10156
10157 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10158
10159 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10160 * dbxread.c (elfstab_build_psymtabs): Don't call
10161 install_minimal_symbols.
10162 (stabsect_build_psymtabs): Likewise.
10163 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10164 earlier.
10165 * somread.c (som_symfile_read): Call install_minimal_symbols
10166 and do_cleanups earlier.
10167 * nlmread.c (nlm_symfile_read): Likewise.
10168 * mdebugread.c (elfmdebug_build_psymtabs): Call
10169 install_minimal_symbols and make appropriate cleanups.
10170
10171 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10172
10173 * solib.c (reload_shared_libraries): New function.
10174 (_initialize_solib): Add callbacks for ``set solib-search-path''
10175 and ``set solib-absolute-prefix''.
10176
10177 2003-02-20 David Carlton <carlton@math.stanford.edu>
10178
10179 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10180 expand comment.
10181 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10182 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10183 * ada-typeprint.c (ada_typedef_print): Ditto.
10184 * ax-gdb.c (gen_var_ref): Ditto.
10185 * breakpoint.c (print_one_breakpoint): Ditto.
10186 * buildsym.c (finish_block): Ditto.
10187 * c-valprint.c (c_val_print): Ditto.
10188 * expprint.c (print_subexp): Ditto.
10189 * findvar.c (locate_var_value): Ditto.
10190 * infcmd.c (jump_command): Ditto.
10191 * linespec.c (decode_line_2, decode_compound): Ditto.
10192 * maint.c (maintenance_translate_address): Ditto.
10193 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10194 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10195 Ditto.
10196 * p-valprint.c (pascal_val_print): Ditto.
10197 * stabsread.c (define_symbol): Ditto.
10198 * stack.c (print_frame, frame_info, print_block_frame_locals)
10199 (print_frame_arg_vars, return_command): Ditto.
10200 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10201 * symmisc.c (print_symbol): Ditto.
10202 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10203 (compare_search_syms, print_symbol_info, print_msymbol_info)
10204 (rbreak_command): Ditto.
10205 * tracepoint.c (tracepoints_info): Ditto.
10206 * typeprint.c (typedef_print): Ditto.
10207 * valops.c (value_of_variable, hand_function_call): Ditto.
10208 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10209 * ada-typeprint.c: Update Copyright.
10210 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10211 * tracepoint.c, cli/cli-cmds.c: Ditto.
10212
10213 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10214
10215 * frame.c (generic_unwind_get_saved_register): Make non-static.
10216 * frame.h (generic_unwind_get_saved_register): Declare.
10217 * mips-tdep.c (read_next_frame_reg): Fetch register from
10218 current regcache when frame is NULL.
10219 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10220 that must be NULL.
10221 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10222 instead of frame_register_unwind().
10223
10224 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10225
10226 * remote-sim.c (gdbsim_insert_breakpoint)
10227 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10228 code.
10229
10230 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10231
10232 * remote.c (_initialize_remote): Add commands "set/show remote
10233 hardware-watchpoint-limit" and "set/show remote
10234 hardware-breakpoint-limit".
10235 (remote_hw_watchpoint_limit): Initialize to -1.
10236 (remote_hw_breakpoint_limit): Ditto.
10237 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10238
10239 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10240
10241 * coff-pe-read.c: New file - support reading of minimal symbols from a
10242 portable executable using the export table.
10243 * coff-pe-read.h: New file.
10244 * coffread.c: Include coff-pe-read.h.
10245 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10246 debugging symbols found.
10247 * Makefile.in (SFILES): Add coff-pe-read.o.
10248 (coff_pe_read_h): Define.
10249 (COMMON_OBS): Add coff-pe-read.o.
10250 (coffread.o): Add coff_pe_read_h dependency.
10251 (coff-pe-read.o): New target.
10252
10253 2003-02-19 David Carlton <carlton@math.stanford.edu>
10254
10255 * Makefile.in (SFILES): Add block.c.
10256 (block_h): New.
10257 (COMMON_OBS): Add block.o.
10258 (block.o): New.
10259 (x86-64-tdep.o): Add $(block_h).
10260 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10261 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10262 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10263 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10264 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10265 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10266 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10267 * value.h: Add opaque declaration for struct block.
10268 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10269 * ada-lang.h: Ditto.
10270 * x86-64-tdep.c: #include "block.h"
10271 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10272 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10273 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10274 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10275 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10276 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10277 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10278 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10279 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10280 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10281 * symtab.c (block_function): Ditto.
10282 (contained_in): Ditto.
10283 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10284 block.h. Add opaque declaration for struct block.
10285 * symtab.h: Move block_function and contained_in declarations to
10286 block.h. Add opaque declarations for struct block, struct
10287 blockvector.
10288 (struct block): Move to block.h.
10289 (struct blockvector): Ditto.
10290 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10291 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10292 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10293 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10294 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10295 Ditto.
10296 * block.c: New file.
10297 * block.h: New file.
10298
10299 2003-02-19 Theodore A. Roth <troth@openavr.org>
10300
10301 * avr-tdep.c (avr_extract_return_value): Remove function.
10302 (avr_store_return_value): Remove function.
10303 (avr_extract_struct_value_address): Remove function.
10304 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10305
10306 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10307
10308 * rs6000-tdep.c: Include "gdb_assert.h".
10309 (registers_e500): Add "acc" and "spefscr".
10310 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10311 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10312 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10313 really is "r0".
10314 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10315
10316 2003-02-18 Keith Seitz <keiths@redhat.com>
10317
10318 * Makefile.in: Add gdbtk-interps.c.
10319
10320 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10321
10322 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10323 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10324
10325 2003-02-18 Andrew Cagney <cagney@redhat.com>
10326
10327 * symtab.h (struct objfile): Add opaque declaration.
10328
10329 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10330
10331 From Jim Ingham <jingham@apple.com>:
10332 * dbxread.c (process_one_symbol): Use last_function_start rather
10333 than function_start_offset to find the real beginning of the
10334 current function. The latter is just the text section offset on
10335 some systems, the former is always the real function start.
10336
10337 2003-02-17 Andrew Cagney <cagney@redhat.com>
10338
10339 * configure.in: Revert ${target} != ${host}.
10340
10341 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10342
10343 * configure.in (Makefile): Use the test ${target} != ${host},
10344 instead of the absence of the "nm.h" file, to determine of the
10345 configuration non-native.
10346 * configure: Regenerate.
10347
10348 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10349
10350 From Brian Ford <ford@vss.fsi.com>
10351
10352 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10353 conditionalize tui_active test.
10354 (lookup_cmd_1): Ditto.
10355
10356 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10357
10358 * configure.in: Add check for _etext.
10359 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10360 available.
10361 * config.in, configure: regenerated.
10362
10363 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10364
10365 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10366
10367 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10368
10369 * main.c (tui_version): Delete variable.
10370 (captured_main): When --tui, set interpreter_p to "tui" instead of
10371 enabling tui_version.
10372 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10373 tui_version.
10374 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10375 * cli/cli-cmds.c (disassemble_command): Ditto.
10376 * defs.h (tui_version): Delete declaration.
10377 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10378 (tui-interp.o): Add rules.
10379 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10380
10381 2003-02-14 Christopher Faylor <cgf@redhat.com>
10382
10383 * win32-nat.c (register_loaded_dll): Correctly set address range for
10384 just-loaded dll.
10385
10386 2003-02-12 Jason Molenda (jmolenda@apple.com)
10387
10388 * symmisc.c (print_objfile_statistics): Include information about
10389 the number of psymtabs and symtabs in each object file.
10390
10391 2003-02-13 Keith R Seitz <keiths@redhat.com>
10392
10393 * main.h (struct captured_main_args): Add interpreter_p.
10394 * main.c (captured_main): Initialize interpreter_p from context.
10395 * gdb.c (main): Set interpreter_p argument.
10396 * Makefile.in (gdb.o): Add dependency for interps.h.
10397
10398 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10399
10400 * event-top.c (cli_command_loop): Delete declaration.
10401 (_initialize_event_loop): Delete function setting event_loop_hook.
10402 * event-top.h (cli_command_loop): Declare. Update copyright.
10403 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10404 * interps.c (current_interp_command_loop): When event_loop_p, call
10405 cli_command_loop.
10406
10407 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10408
10409 * interps.h (interp_command_loop_ftype): Change return type to
10410 void.
10411
10412 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10413
10414 * x86-64-tdep.c (x86_64_extract_return_value)
10415 (x86_64_store_return_value): Use regcache instead of regbuf.
10416 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10417 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10418
10419 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10420
10421 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10422 * aclocal.m4: Regenerate.
10423 * configure: Regenerate.
10424
10425 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10426 TCL_LD_SEARCH_FLAGS.
10427
10428 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10429
10430 * dwarf2cfi.c: Reindented.
10431
10432 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10433
10434 * interps.c (clear_interpreter_hooks): Convert function definition
10435 to ISO C.
10436
10437 2003-02-07 David Carlton <carlton@math.stanford.edu>
10438
10439 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10440
10441 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10442
10443 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10444 (struct type): ...to here.
10445 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10446 field.
10447 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10448 (replace_type): Set length on all type variants for a given type.
10449
10450 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10451
10452 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10453 <sys/stat.h>.
10454 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10455
10456 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10457
10458 * Makefile.in (symm-nat.o): Update dependencies.
10459 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10460 (lynx-nat.o, ia64-linux-nat.): Ditto.
10461 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10462 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10463 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10464
10465 * Makefile.in (inflow_h): Define.
10466 (procfs.o, inflow.o, procfs.o): Update dependencies.
10467 * inftarg.c (child_stop): Delete extern declaration of
10468 inferior_process_group. Include "inflow.h".
10469 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10470 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10471 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10472 (our_process_group, inferior_process_group): Extern declarations.
10473
10474 * procfs.c: Include "gdb_assert.h".
10475
10476 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10477 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10478 * jv-typeprint.c (java_type_print_base): Ditto.
10479 * typeprint.c (typedef_print): Eliminate STREQ.
10480 * cli/cli-script.c (define_command, define_command): Ditto.
10481 * main.c (captured_main): Ditto.
10482 * values.c (lookup_internalvar): Ditto.
10483 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10484 within `if' conditional.
10485 * linespec.c (decode_line_2): Ditto.
10486 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10487 (bfd_openw_with_cleanup): Ditto.
10488
10489 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10490
10491 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10492 legacy_extract_return_value and store_return_value to
10493 legacy_return_value.
10494
10495 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10496
10497 * win32-nat.c (get_relocated_section_addrs): New function. Find
10498 section load addresses for symbol handling in relocated DLLs.
10499 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10500
10501 2003-02-05 Fred Fish <fnf@intrinsity.com>
10502
10503 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10504 '=' and '!='.
10505 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10506 with '&' and '=='.
10507 (angel_RDI_info): Ditto.
10508 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10509 with '&' and '!='.
10510 (threads_continue_all_with_signals): Ditto.
10511
10512 2003-02-05 Jim Ingham <jingham@apple.com>
10513 Keith Seitz <keiths@redhat.com>
10514 Elena Zannoni <ezannoni@redhat.com>
10515 Andrew Cagney <ac131313@redhat.com>
10516
10517 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10518 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10519 (SUBDIR_MI_OBS): Add "mi-interp.o".
10520 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10521 (SFILES): Add "interps.c".
10522 (COMMON_OBS): Add "interps.o".
10523 (interps_h, mi_main_h): Define.
10524 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10525 (mi-main.o, main.o, event-top.o): Update dependencies.
10526 * cli/cli-interp.c: New file.
10527 * interps.h, interps.c: New files.
10528 * top.c: (gdb_init): Don't install the default interpreter, handed
10529 by captured_main.
10530 * main.c: Include "interps.h".
10531 (interpreter_p): Note that it should malloc'ed.
10532 (captured_command_loop): Call current_interp_command_loop.
10533 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10534 xfree and xstrdup when updating interpreter_p. Install the
10535 default interpreter. Add hack to stop mi1's copyright notice
10536 being encoded.
10537 * event-top.h (gdb_setup_readline): Declare.
10538 (gdb_disable_readline): Declare.
10539 * event-top.c: Include "interps.h".
10540 (display_gdb_prompt): Call current_interp_display_prompt_p.
10541 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10542 gdb_stdlog, and gdb_stdtarg.
10543 (_initialize_event_loop): Don't call gdb_setup_readline.
10544 * cli-out.c (cli_out_set_stream): New function.
10545 * cli-out.h (cli_out_set_stream): Declare.
10546
10547 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10548
10549 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10550 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10551 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10552 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10553 config/i386/i386v42mp.mt: Removed.
10554
10555 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10556
10557 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10558 GDB_OSABI_SOLARIS.
10559
10560 2003-02-05 Michael Chastain <mec@shout.net>
10561
10562 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10563 2.12.1 and earlier versions.
10564
10565 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10566
10567 Remove orphaned hosts, targets and files.
10568 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10569 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10570 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10571 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10572 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10573 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10574 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10575 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10576 * config/sparc/tm-sp64sim.h: Delete.
10577 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10578 hosts.
10579 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10580 mips*-dec-mach3* targets.
10581
10582 2003-02-04 Michael Chastain <mec@shout.net>
10583
10584 * NEWS: Fix typo: sepcifying -> specifying.
10585
10586 2003-02-04 Michael Chastain <mec@shout.net>
10587
10588 * dwarfread.c: Add documentation on the state of dwarf-1,
10589 looking towards obsoletion.
10590
10591 2003-02-03 Michael Chastain <mec@shout.net>
10592
10593 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10594 gdb/testsuite/gdb.c++/pr-1023.exp.
10595
10596 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10597
10598 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10599 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10600
10601 * utils.c (init_page_info): Delete reference to MPW in comments.
10602 * main.c (captured_main): Delete #ifdef MPW.
10603
10604 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10605
10606 * NEWS: Note that the m32r-*-elf* is obsolete.
10607 * monitor.c (monitor_expect): Obsolete reference to m32r.
10608 * configure.tgt: Mark m32r-*-elf* as obsolete.
10609 * MAINTAINERS: Mark m32k as obsolete.
10610 * m32r-rom.c: Obsolete file.
10611 * config/m32r/m32r.mt: Obsolete file.
10612 * config/m32r/tm-m32r.h: Obsolete file.
10613 * m32r-stub.c: Obsolete file.
10614 * m32r-tdep.c: Obsolete file.
10615
10616 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10617
10618 * NEWS: Mention that the z8k-zilog-none is obsolete.
10619 * MAINTAINERS: Mark z8k as obsolete.
10620 * configure.tgt: Obsolete the z8k-*-coff* target.
10621 * config/z8k/z8k.mt: Obsolete file.
10622 * config/z8k/tm-z8k.h: Obsolete file.
10623 * z8k-tdep.c: Obsolete file.
10624
10625 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10626
10627 * NEWS: Mention that the mn10200-elf is obsolete.
10628 * configure.tgt: Obsolete mn10200-*-* target.
10629 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10630 mention that the mn10200 is obsolete.
10631 * breakpoint.h: Ditto.
10632 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10633 * config/mn10200/mn10200.mt: Obsolete file.
10634 * config/mn10200/tm-mn10200.h: Obsolete file.
10635 * mn10200-tdep.c: Obsolete file.
10636
10637 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10638
10639 * MAINTAINERS: Mark h8500 as obsolete.
10640 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10641 * findvar.c (value_from_register): Ditto.
10642 * h8500-tdep.c: Mark file as obsolete.
10643 * config/h8500/h8500.mt: Ditto.
10644 * config/h8500/tm-h8500.h: Ditto.
10645 * NEWS: Mention that h8500 is obsolete.
10646
10647 2003-02-04 David Carlton <carlton@math.stanford.edu>
10648
10649 * objfiles.c (allocate_objfile): Always set name. Add comment at
10650 start of function.
10651 * jv-lang.c (get_dynamics_objfile): Add comment.
10652
10653 2003-02-04 David Carlton <carlton@math.stanford.edu>
10654
10655 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10656 * printcmd.c (build_address_symbolic): Replace uses of
10657 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10658 SYMBOL_NAME, and asm_demangle.
10659 Update copyright.
10660
10661 2003-02-04 David Carlton <carlton@math.stanford.edu>
10662
10663 * linespec.c (decode_compound): Extract code into
10664 lookup_prefix_sym.
10665 (lookup_prefix_sym): New function.
10666
10667 2003-02-04 David Carlton <carlton@math.stanford.edu>
10668
10669 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10670 FLOAT_COERCION_BADNESS.
10671 * gdbtypes.c (rank_one_type): Replace all uses of
10672 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10673
10674 2003-02-04 Jim Blandy <jimb@redhat.com>
10675
10676 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10677 section, let dwarf_macinfo_section point to it, not
10678 dwarf_loc_section.
10679
10680 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10681
10682 Pointed out by Anton Blanchard <anton@samba.org>.
10683 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10684 (ppc_linux_at_sigtramp_return_path): Use it.
10685
10686 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10687
10688 * defs.h (streq): Add prototype.
10689 * utils.c (streq): New function.
10690
10691 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10692 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10693 * mdebugread.c (new_symbol): Likewise.
10694 * stabsread.c (define_symbol): Likewise.
10695 * coffread.c (process_coff_symbol): Likewise.
10696 * dwarfread.c (new_symbol): Likewise.
10697
10698 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10699 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10700 here.
10701 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10702 SYMBOL_INIT_DEMANGLED_NAME.
10703 * objfiles.c: Include "hashtab.h".
10704 (allocate_objfile): Call htab_set_functions_ex for the
10705 demangled_names_hash.
10706 (free_objfile): Call htab_delete for the demangled_names_hash.
10707 * objfiles.h (struct htab): Add declaration.
10708 (struct objfile): Add demangled_names_hash.
10709 * symfile.c: Include "hashtab.h".
10710 (reread_symbols): Call htab_delete for the demangled_names_hash.
10711 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10712 SYMBOL_NAME in the bcache.
10713 * symtab.c: Include "hashtab.h". Update comments.
10714 (create_demangled_names_hash, symbol_set_names): New functions.
10715 (symbol_find_demangled_name): New function, broken out from
10716 symbol_init_demangled_names.
10717 (symbol_init_demangled_names): Use it.
10718 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10719 (SYMBOL_SET_NAMES): New macro.
10720 (symbol_set_names): Add prototype.
10721
10722 2003-02-03 Jim Blandy <jimb@redhat.com>
10723
10724 Use a single, consistent representation for an empty minimal
10725 symbol table in an objfile.
10726 * objfiles.c (terminate_minimal_symbol_table): New function.
10727 (allocate_objfile): Call it.
10728 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10729 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10730 non-NULL.
10731 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10732 objfile has minimal symbols, compare minimal_symbol_count to zero,
10733 instead of comparing msymbols with NULL.
10734 * objfiles.c (have_minimal_symbols): Same.
10735 * solib-sunos.c (solib_add_common_symbols): Call
10736 terminate_minimal_symbol_table.
10737 * symfile.c (reread_symbols): Same.
10738
10739 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10740
10741 * s390-tdep.c (s390_address_class_type_flags)
10742 (s390_address_class_type_flags_to_name)
10743 (s390_address_class_name_to_type_flags): New functions.
10744 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10745 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10746
10747 2003-02-03 Michael Snyder <msnyder@redhat.com>
10748
10749 * arm-tdep.c: Fix spell-o in comment.
10750
10751 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10752
10753 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10754 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10755 error messages to contain BFD filename.
10756
10757 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10758
10759 Fix PR gdb/742 gdb/743 gdb/877
10760 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10761 (do_mixed_source_and_assembly): Use
10762 make_cleanup_ui_out_tuple_begin_end and
10763 make_cleanup_ui_out_tuple_begin_end.
10764 (do_mixed_source_and_assembly): Ditto.
10765 * thread.c (do_captured_list_thread_ids): Ditto.
10766 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10767 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10768 ui_out_tuple_end): Delete prototypes.
10769 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10770 ui_out_list_end, ui_out_tuple_end): Delete.
10771
10772 From Kevin Buettner <kevinb@redhat.com>:
10773 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10774 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10775 (do_cleanup_table_end): New functions.
10776 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10777 Use cleanups to invoke_ui_out_tuple_end().
10778 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10779 * cli/cli-setshow.c (cmd_show_list): Use
10780 make_cleanup_ui_out_tuple_begin_end.
10781
10782 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10783
10784 * frame.c (frame_unwind_register): New function.
10785 (frame_unwind_unsigned_register): Use.
10786 (frame_unwind_signed_register): Use.
10787 (frame_read_register): New function.
10788 * frame.h (frame_unwind_register): Declare.
10789 (frame_read_register): Declare.
10790
10791 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10792 and frame_unwind_register instead of read_memory, write_register
10793 and deprecated_write_register_bytes.
10794
10795 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10796
10797 * frame.h: Note that namelen can be negative.
10798 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10799 NAME's length.
10800
10801 * NEWS: Mention that the d10v's `regs' command is deprecated.
10802 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10803 (d10v_print_registers_info): New function.
10804 (show_regs): Call d10v_print_registers_info.
10805 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10806
10807 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10808
10809 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10810 lost in the previous patch.
10811
10812 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10813
10814 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10815 * stack.c (print_frame_info_base): Output complete FRAME tuple
10816 for synthesized frames.
10817
10818 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10819
10820 * mips-nat.c (zerobuf): Delete.
10821 (fetch_inferior_registers): Alloc local zerobuf.
10822 (fetch_core_registers): Alloc local zerobuf.
10823 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10824 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10825 * thread-db.c (thread_db_store_registers): Ditto.
10826 * sh-tdep.c (sh_do_register): Ditto.
10827 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10828 * remote-sim.c (gdbsim_store_register): Ditto.
10829 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10830 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10831 * monitor.c (monitor_supply_register): Ditto.
10832 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10833 * mips-nat.c (fetch_inferior_registers): Ditto.
10834 * m68klinux-nat.c (fetch_register): Ditto.
10835 * lynx-nat.c (fetch_inferior_registers): Ditto.
10836 (fetch_inferior_registers): Ditto.
10837 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10838 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10839 (hpux_thread_store_registers): Ditto.
10840 * hppah-nat.c (fetch_register): Ditto.
10841 * hppab-nat.c (fetch_register): Ditto.
10842 * hppa-tdep.c (pa_register_look_aside): Ditto.
10843 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10844 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10845
10846 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10847
10848 * gdbarch.sh: Explictly specify all method levels. When a
10849 variable with an empty level, provide a non-multi-arch default.
10850 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10851 * gdbarch.h: Re-generate.
10852 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10853 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10854
10855 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10856
10857 * defs.h (host_pointer_to_address): Delete declaration.
10858 (address_to_host_pointer): Delete declaration.
10859 * utils.c (host_pointer_to_address): Delete function.
10860 (address_to_host_pointer): Delete function.
10861 * procfs.c (procfs_address_to_host_pointer): New function.
10862 * procfs.c (proc_set_watchpoint): Use.
10863 (procfs_can_use_hw_breakpoint): Update comments.
10864 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10865 (som_solib_add): Use.
10866 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10867 * hppa-tdep.c (unwind_command): Use.
10868
10869 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10870
10871 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10872 strlen d_name.
10873
10874 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10875 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10876 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10877 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10878 (define_symbol): Update.
10879 * symfile.c (generic_load): Remove references to nindy.
10880 * symtab.c: Remove references to nindy.
10881
10882 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10883
10884 * infcmd.c (print_float_info): Delete code conditional on
10885 FLOAT_INFO.
10886 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10887 * config/m68k/nm-apollo68b.h: Ditto.
10888 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10889 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10890 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10891
10892 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10893
10894 * config/i386/tm-i386os9k.h: Removed.
10895
10896 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10897 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10898 they're identical to i[3456]86-*-sysv* now.
10899 * config/i386/i386v32.mh: Removed.
10900 * config/i386/xm-i386v32.h: Removed.
10901 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10902
10903 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10904
10905 * config/i386/i386dgux.mh: Removed.
10906 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10907
10908 * configure.in: Fix typo.
10909 * configure: Regenerated.
10910
10911 2003-01-31 David Carlton <carlton@math.stanford.edu>
10912
10913 * dwarf2read.c (dwarf2_locate_sections): Set
10914 dwarf_ranges_section.
10915
10916 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10917
10918 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10919 * utils.c: Update comments documenting legitimate uses of PTR.
10920
10921 * utils.c: Re-indent.
10922
10923 * config/djgpp/fnchange.lst: Delete nindy files.
10924 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10925 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10926 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10927 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10928 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10929 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10930 * Makefile.in (init.c): Remove nindy references.
10931 (saber_gdb): Delete rule.
10932 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10933 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10934 and a68v-nat.c.
10935 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10936 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10937 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10938 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10939 nindy-share/stop.h.
10940 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10941 * saber.suppress: Delete file.
10942
10943 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10944
10945 * dbxread.c (stabs_data): New static variable.
10946 (fill_symbuf): Support an in-memory buffer for stabs data.
10947 (stabs_seek): New function.
10948 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10949 (read_ofile_symtab): Use stabs_seek.
10950 (elfstab_build_psymtabs): Take an asection* instead of
10951 an offset and size. Relocate the stabs data if necessary.
10952 Save the section* for dbx_psymtab_to_symtab.
10953 * dwarf2read.c: Add section variables for each debug section.
10954 (dwarf2_locate_sections): Fill them in.
10955 (dwarf2_read_section): Take an asection* argument.
10956 Relocate the section contents if necessary.
10957 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10958 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10959 it to dwarf2_read_section.
10960 (dwarf2_build_frame_info): Update callers.
10961 * elfread.c (elf_symfile_read): Update call to
10962 elfstab_build_psymtabs.
10963 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10964 (DBX_STAB_SECTION): New macro.
10965 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10966 * symfile.c (symfile_dummy_outputs): New function.
10967 (symfile_relocate_debug_section): New function.
10968 * symfile.h (symfile_relocate_debug_section): Add prototype.
10969
10970 2003-01-31 Richard Henderson <rth@redhat.com>
10971
10972 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10973 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10974 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10975 * alpha-tdep.c (alpha_register_name): Add "unique".
10976 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10977 (ALPHA_UNIQUE_REGNUM): New.
10978 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10979
10980 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10981
10982 * README: Remove reference to Ericsson 1800 monitor.
10983 * Makefile.in (remote-es.o): Delete rule.
10984 (ALLDEPFILES): Delete remote-es.c.
10985 * remote-es.c: Delete file.
10986 * config/m68k/es1800.mt: Delete file.
10987 * config/djgpp/fnchange.lst: Update.
10988 * configure.tgt: Delete m68*-ericsson-* target.
10989
10990 2003-01-31 Adam Fedor <fedor@gnu.org>
10991
10992 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10993 Remove duplicate/shadowing variable of same name.
10994
10995 2003-01-30 Jim Blandy <jimb@redhat.com>
10996
10997 * symfile.c (find_separate_debug_file): Assert that the objfile's
10998 directory name we compute ends with a slash, and then assume that
10999 that's so everywhere we use it.
11000
11001 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11002
11003 * valops.c (value_assign): Flush frame cache after stores to memory
11004 also.
11005
11006 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11007
11008 * Makefile.in (mon960-rom.o): Delete rule.
11009 * mon960-rom.c: Delete file.
11010
11011 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11012
11013 * d10v-tdep.c: Include "frame-unwind.h".
11014 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11015 list.
11016 (next_addr, uses_frame): Delete.
11017 (struct d10v_unwind_cache): Define.
11018 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11019 Use info instead of next_addr and uses_frame globals.
11020 (d10v_frame_init_saved_regs): Delete function.
11021 (d10v_init_extra_frame_info): Delete function.
11022 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11023 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11024 init_frame_pc or frame_saved_pc.
11025 (d10v_pop_frame): Delete function.
11026 (do_d10v_pop_frame): Delete function.
11027 (d10v_frame_chain): Delete function.
11028 (d10v_frame_chain_valid): Delete function.
11029 (d10v_frame_pc_unwind): New function.
11030 (d10v_frame_id_unwind): New function.
11031 (saved_regs_unwinder): New function.
11032 (d10v_frame_register_unwind): New function.
11033 (d10v_frame_pop): New function.
11034 (d10v_frame_unwind): New variable.
11035 (d10v_frame_p): New function.
11036 (d10v_frame_saved_pc): Delete function.
11037 * Makefile.in (d10v-tdep.o): Update dependencies.
11038
11039 2003-01-30 J. Brobecker <brobecker@gnat.com>
11040
11041 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11042 causing some regressions due to a change in the default value
11043 for this macro.
11044
11045 2003-01-29 Richard Henderson <rth@redhat.com>
11046 Elena Zannoni <ezannoni@redhat.com>
11047 Daniel Jacobowitz <drow@mvista.com>
11048
11049 Fix PR gdb/961.
11050 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11051 variables.
11052 (RANGES_SECTION): New.
11053 (dwarf_ranges_buffer): New variable.
11054 (struct comp_unit_head): Add member "die".
11055 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11056 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11057 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11058 (dwarf2_locate_sections): Likewise.
11059 (dwarf2_build_psymtabs): Read .debug_ranges.
11060 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11061 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11062 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11063 Look for DW_AT_ranges and return the bounding box.
11064
11065 2003-01-29 Brian Ford <ford@vss.fsi.com>
11066
11067 * win32-nat.c (cygwin_pid): Removed as unused.
11068 (child_attach): Try fall back to Cygwin pid.
11069
11070 2003-01-29 Jim Blandy <jimb@redhat.com>
11071
11072 * objfiles.h (struct objfile): Doc fix.
11073
11074 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11075
11076 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11077 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11078 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11079 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11080 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11081 (FRAME_SAVED_PC): Change to a function with predicate.
11082 * gdbarch.h, gdbarch.c: Re-generate.
11083
11084 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11085
11086 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11087
11088 * complaints.c (complain): Delete function.
11089 * complaints.h (struct deprecated_complaint): Delete definition.
11090 (complain): Delete declaration.
11091
11092 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11093
11094 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11095 dummy frames.
11096
11097 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11098
11099 * sentinel-frame.h, sentinel-frame.c: New files.
11100 * Makefile.in (frame.o): Update dependencies.
11101 (SFILES): Add sentinel-frame.c.
11102 (sentinel_frame_h): Define.
11103 (COMMON_OBS): Add sentinel-frame.o.
11104 (sentinel-frame.o): Specify dependencies.
11105 * frame.c: Include "sentinel-frame.h".
11106 (frame_register_unwind): Rewrite assuming that there is always a a
11107 ->next frame.
11108 (frame_register, generic_unwind_get_saved_register): Ditto.
11109 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11110 (create_sentinel_frame, unwind_to_current_frame): New functions.
11111 (get_current_frame): Rewrite using create_sentinel_frame and
11112 unwind_to_current_frame. When possible, always create a frame.
11113 (create_new_frame): Set next to the sentinel frame.
11114 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11115 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11116 ID cache when necessary.
11117 (frame_saved_regs_id_unwind): Use frame_relative_level.
11118 (deprecated_generic_get_saved_register): Use frame_relative_level,
11119 get_frame_saved_regs, get_frame_pc, get_frame_base and
11120 get_next_frame.
11121 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11122 frame_register.
11123
11124 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11125
11126 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11127
11128 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11129
11130 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11131 (maintenance_set_profile_cmd): Use error () instead of warning ().
11132
11133 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11134
11135 * configure.in: Check that -pg works if using --enable-profiling.
11136 Check for monstartup and _mcleanup regardless of --enable-profiling.
11137 * maint.c: Check for monstartup and _mcleanup before using them.
11138 * config.in: Regenerated.
11139 * configure: Regenerated.
11140
11141 2003-01-24 Nick Clifton <nickc@redhat.com>
11142
11143 * Add sh2e support:
11144
11145 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11146
11147 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11148 (sh2e_show_regs): New.
11149 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11150 * config/sh/tm-sh.h: Added sh2e to comments.
11151
11152 2003-01-23 Jim Blandy <jimb@redhat.com>
11153
11154 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11155 symbols found)" message here; we haven't checked for a separate
11156 debug info file yet, so we don't know yet.
11157 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11158 we've looked everywhere. Also, there's no need to print a special
11159 message when we're loading the separate debug info file: the one
11160 symbol_file_add prints is fine.
11161
11162 2003-01-23 Alexander Larsson <alexl@redhat.com>
11163 Jim Blandy <jimb@redhat.com>
11164
11165 Add support for executables whose debug info has been separated
11166 out into a separate file, leaving only a link behind.
11167 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11168 and separate_debug_objfile_backlink.
11169 (put_objfile_before): New declaration.
11170 * symfile.c: #include "filenames.h".
11171 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11172 debug info in a separate file, read that, too. Save the addrs
11173 argument, so we can use it again to read the separated debug info;
11174 syms_from_objfile modifies the table we pass it.
11175 (reread_symbols): After re-reading an objfile, call
11176 reread_separate_symbols to refresh its separate debug info
11177 objfile, if it has one.
11178 (reread_separate_symbols, find_separate_debug_file,
11179 get_debug_link_info, separate_debug_file_exists): New functions.
11180 (debug_file_directory): New global var.
11181 (_initialize_symfile): Initialize debug_file_directory, and
11182 provide the new `set debug-file-directory' command to let the user
11183 change it.
11184 * objfiles.c (free_objfile): If this objfile has its debug info in
11185 a separate objfile, free that one too. If this is itself a
11186 separate debug info objfile, clear our parent's backlink.
11187 (put_objfile_before): New function.
11188 * utils.c (gnu_debuglink_crc32): New function.
11189 * defs.h (gnu_debuglink_crc32): New declaration.
11190 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11191 * configure.in: Handle --with-separate-debug-dir config option.
11192 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11193 * acconfig.h (DEBUGDIR): New macro.
11194 * configure, aclocal.m4, config.in: Regenerated.
11195
11196 2003-01-22 Jim Blandy <jimb@redhat.com>
11197
11198 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11199 like the old symbol_file_add, but taking new arguments: you can
11200 now pass in either a `struct section_addr_info' list to say where
11201 each section is loaded, or a `struct section_offsets' table. Pass
11202 these new arguments through to syms_from_objfile as appropriate.
11203 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11204 with the appropriate quiescent values for the new arguments.
11205
11206 * symfile.c: #include "gdb_assert.h".
11207 (syms_from_objfile): Add the ability to pass in a section offset
11208 table directly, as an alternative to the section_addr_info table.
11209 Document arguments better.
11210 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11211 * symfile.h (syms_from_objfile): Update declaration.
11212 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11213 syms_from_objfile.
11214 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11215
11216 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11217
11218 Original patch by Tom Tromey <tromey@cygnus.com> and
11219 Jason Molenda <jmolenda@apple.com>.
11220 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11221 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11222 * NEWS: Mention profiling.
11223 * configure.in (--enable-gdbtk): Fix typo.
11224 (--enable-profiling): New. Set PROFILE_CFLAGS.
11225 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11226 Fill in function.
11227 (profiling_state): New variable.
11228 (mcleanup_wrapper): New function.
11229 (_initialize_maint): Remove NOTYET, fix call to
11230 add_setshow_boolean_cmd for "maint set profile".
11231 * configure: Regenerated.
11232
11233 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11234
11235 * Makefile.in (install-gdbtk): Install PNG images too.
11236
11237 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11238
11239 * exec.c (text_start): Delete global variable.
11240 (exec_file_attach): Make text_start local to the function.
11241 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11242 * valops.c (hand_function_call): Delete code that handles
11243 BEFORE_TEXT_END and AFTER_TEXT_END.
11244 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11245 of CALL_DUMMY_LOCATION.
11246 * gdbarch.c: Regenerate.
11247 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11248 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11249 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11250 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11251 (text_end): Delete extern declaration.
11252
11253 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11254
11255 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11256 * blockframe.c (backtrace_below_main): Move to "frame.c".
11257 (frame_chain_valid): Delete check for backtrace_below_main.
11258 (_initialize_blockframe): Delete initialization, move ``set
11259 backtrace-below-main'' command to "frame.c".
11260 (do_flush_frames_sfunc): Delete function.
11261 * frame.c: Include "command.h" and "gdbcmd.h".
11262 (frame_type_from_pc): New function.
11263 (create_new_frame): Use frame_type_from_pc.
11264 (legacy_get_prev_frame): New function.
11265 (get_prev_frame): Rewrite. When an old style frame, call
11266 legacy_get_prev_frame. Otherwize, unwind the PC first.
11267 (_initialize_frame): Add ``set backtrace-below-main'' command.
11268 * Makefile.in (frame.o): Update dependencies.
11269
11270 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11271
11272 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11273 DEPRECATED_REGISTERS_INFO.
11274
11275 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11276
11277 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11278 Maintainers'. Update `Various Maintainers'.
11279
11280 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11281
11282 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11283 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11284 Suppress actual parameters when `-'.
11285 * gdbarch.h, gdbarch.c: Regenerate.
11286
11287 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11288
11289 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11290 code handling dummy frames.
11291
11292 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11293
11294 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11295 (struct frame_unwind): Add field pop.
11296 * frame.h (frame_pop): Declare.
11297 * frame.c (frame_saved_regs_pop): New function.
11298 (trad_frame_unwinder): Add frame_saved_regs_pop.
11299 (frame_pop): New function.
11300 * dummy-frame.c (dummy_frame_pop): New function.
11301 (discard_innermost_dummy): New function.
11302 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11303 (dummy_frame_unwind): Add dummy_frame_pop.
11304 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11305 * valops.c (hand_function_call): Ditto.
11306 * stack.c (return_command): Ditto.
11307
11308 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11309
11310 * cris-tdep.c: Fix function declaration indentation.
11311 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11312 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11313 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11314 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11315 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11316 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11317
11318 2003-01-18 Michael Chastain <mec@shout.net>
11319
11320 * README (Unpacking and Installation -- quick overview):
11321 Warn against ".../gdb-5.3/gdb/configure".
11322
11323 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11324
11325 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11326 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11327 (struct frame_unwind): Declare opaque.
11328 (dummy_frame_p): Declare function.
11329 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11330 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11331 * dummy-frame.c: Include "frame-unwind.h".
11332 (dummy_frame_p): New function.
11333 (dummy_frame_unwind): New variable.
11334 * frame.c: Include "frame-unwind.h".
11335 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11336 to use the new unwind field.
11337 (set_unwind_by_pc): Delete function.
11338 (create_new_frame, get_prev_frame): Set unwind field using
11339 frame_unwind_find_by_pc.
11340 (trad_frame_unwind, trad_frame_unwinder): New variables.
11341 * frame.h (trad_frame_unwind): Declare variable.
11342 (frame_id_unwind_ftype): Delete declaration.
11343 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11344 (struct frame_unwind): Declare opaque.
11345 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11346 register_unwind with a single unwind pointer.
11347 * frame-unwind.h, frame-unwind.c: New files.
11348 * Makefile.in (SFILES): Add frame-unwind.c.
11349 (frame_unwind_h): Define.
11350 (COMMON_OBS): Add frame-unwind.o.
11351 (frame-unwind.o): Specify dependencies.
11352 (frame.o, dummy-frame.o): Update dependencies.
11353
11354 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11355
11356 * ada-valprint.c: Eliminate PTR.
11357 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11358 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11359 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11360 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11361 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11362 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11363 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11364
11365 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11366
11367 * main.c (captured_main): Don't use PTR.
11368 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11369 * gdbtypes.c (lookup_primitive_typename): Ditto.
11370 (lookup_struct_elt_type): Ditto.
11371 * f-valprint.c (info_common_command): Ditto.
11372 (list_all_visible_commons): Ditto.
11373 * jv-typeprint.c (java_type_print_base): Ditto.
11374
11375 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11376 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11377 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11378 i386-interix-nat.c and i386-interix-tdep.c. Rename
11379 m68klinux-nat.c and m68klinux-tdep.c. Rename
11380 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11381 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11382 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11383 * main.c (captured_main): Use xfree, not free.
11384
11385 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11386
11387 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11388 ID back using a parameter.
11389 * frame.c (frame_id_unwind): Update call.
11390 (frame_saved_regs_id_unwind): Update.
11391 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11392 * dummy-frame.h (struct frame_id): Add opaque declaration.
11393 (dummy_frame_id_unwind): Update declaration.
11394
11395 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11396
11397 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11398
11399 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11400
11401 * MAINTAINERS (Stephen P. Smith): Updated email address.
11402
11403 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11404
11405 Fix PR gdb/898
11406 * breakpoint.c (until_break_command): Add new argument. Use it to
11407 decide whether to stop only at the current frame or not.
11408 * breakpoint.h (until_break_command): Update prototype.
11409 * infcmd.c (until_command): Add new argument to until_break_command
11410 call.
11411 (advance_command): New function.
11412 (_initialize_infcmd): Update help string for 'until' command.
11413 Add new 'advance' command.
11414
11415 2003-01-14 David Carlton <carlton@math.stanford.edu>
11416
11417 * linespec.c (decode_line_1): Normalize comments.
11418 (set_flags): Ditto.
11419 (locate_first_half): Ditto.
11420 (decode_compound): Ditto.
11421 (symtab_from_filename): Ditto.
11422 (decode_all_digits): Ditto.
11423 (decode_dollar): Ditto.
11424 (find_methods): Ditto.
11425 (find_toplevel_char): Ditto.
11426
11427 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11428
11429 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11430 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11431 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11432 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11433 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11434 * language.c, language.h, m32r-tdep.c: Update copyright.
11435 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11436 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11437 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11438 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11439 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11440 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11441
11442 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11443
11444 * stabsread.h (process_later, resolve_cfront_continuation):
11445 Obsolete.
11446 Update copyright years.
11447 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11448 Update copyright year.
11449 * dbxread.c(struct cont_elem): Obsolete.
11450 (process_later, process_now): Obsolete functions.
11451 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11452 Update copyright year.
11453 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11454 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11455 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11456 (parse_partial_symbols): Obsolete cfront support.
11457 * stabsread.c
11458 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11459 macros.
11460 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11461 read_cfront_baseclasses, read_cfront_member_functions,
11462 resolve_cfront_continuation,read_cfront_static_fields,
11463 copy_cfront_struct_fields): Obsolete functions.
11464 (define_symbol, read_one_struct_field): Obsolete cfront support.
11465 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11466 Update Copyright year.
11467
11468 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11469
11470 * stack.c (print_frame_info, print_stack_frame_base_stub,
11471 print_stack_frame_base, show_and_print_stack_frame_stub,
11472 show_and_print_stack_frame, print_only_stack_frame_stub,
11473 print_only_stack_frame): Delete functions.
11474 (print_stack_frame_stub): Call print_frame_info instead of
11475 print_frame_info_base.
11476 (print_frame_info_base): Rename to print_frame_info.
11477 (backtrace_command_1): Call print_frame_info, instead of
11478 print_frame_info_base.
11479 (current_frame_command): Call print_stack_frame, instead of
11480 print_only_stack_frame.
11481 (frame_command): Call print_stack_frame, instead of
11482 show_and_print_stack_frame.
11483 (up_command): Ditto.
11484 (down_command): Ditto.
11485 * frame.h (print_only_stack_frame): Delete prototype.
11486 * infrun.c (normal_stop): Call print_stack_frame, instead of
11487 show_and_print_stack_frame.
11488 * thread.c (info_threads_command): Call print_stack_frame, instead
11489 of print_only_stack_frame.
11490
11491 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11492
11493 * README (Graphical interface to GDB): Update URL. Point at
11494 gdb/links/.
11495
11496 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11497 version match.
11498
11499 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11500
11501 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11502 lines.
11503
11504 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11505
11506 * thread-db.c (attach_thread): Prototype.
11507 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11508 thread information (ti), and valid flags (th_valid, ti_valid).
11509 (attach_thread): Move target_pid_to_str call to after the thread
11510 is added to GDB's list. Initialize the cache.
11511 (thread_get_info_callback, thread_db_map_id2thr)
11512 (thread_db_get_info): New functions.
11513 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11514 (thread_db_store_registers, thread_db_thread_alive)
11515 (thread_db_get_thread_local_address): Use them.
11516 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11517 of calling error() for threads in unknown state.
11518
11519 (clear_lwpid_callback): New function.
11520 (thread_db_resume): Use it to clear the cache.
11521
11522 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11523
11524 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11525 (resume_callback): Remove dead code.
11526
11527 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11528
11529 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11530 predicate.
11531 * gdbarch.h, gdbarch.c: Regenerate.
11532 * stack.c (frame_info): Only initialize the saved registers when
11533 FRAME_INIT_SAVED_REGS_P.
11534 * frame.c (frame_saved_regs_register_unwind): Assert
11535 FRAME_INIT_SAVED_REGS_P.
11536 (deprecated_generic_get_saved_register): Ditto.
11537
11538 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11539
11540 * source.c (openp): Squelch warning about "filename".
11541
11542 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11543
11544 * source.c (openp): If the file does not exist don't necessarily
11545 search the path.
11546
11547 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11548
11549 Fix PR gdb/872.
11550 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11551 (integer_types_same_name_p): New function.
11552 (rank_one_type): Use it.
11553 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11554
11555 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11556
11557 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11558 variables.
11559 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11560 * configure.in: Add --with-sysroot.
11561 * configure: Regenerated.
11562 * main.c (gdb_sysroot): New variable.
11563 (captured_main): Initialize gdb_sysroot.
11564 * defs.h (gdb_sysroot): New extern declaration.
11565 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11566
11567 2003-01-12 Michael Chastain <mec@shout.net>
11568
11569 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11570
11571 2003-01-12 Michael Chastain <mec@shout.net>
11572
11573 * top.c (print_gdb_version): Bump copyright year to 2003.
11574
11575 2003-01-12 David Carlton <carlton@bactrian.org>
11576
11577 * linespec.c (symtab_from_filename): Rename variable 's' to
11578 'file_symtab'.
11579
11580 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11581
11582 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11583 dummy frame.
11584 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11585
11586 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11587
11588 * d10v-tdep.c: Include "gdb_assert.h".
11589 (d10v_store_return_value): Rewrite to match current interface.
11590 (d10v_extract_struct_value_address): Ditto.
11591 (d10v_extract_return_value): Ditto.
11592 (d10v_gdbarch_init): Set store_restore_value,
11593 extract_struct_value_address and extract_return_value.
11594
11595 2003-01-12 J. Brobecker <brobecker@gnat.com>
11596
11597 * hpread.c (set_namestring): New procedure replacing the
11598 SET_NAMESTRING macro.
11599 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11600 by calls to set_namestring.
11601
11602 2003-01-11 J. Brobecker <brobecker@gnat.com>
11603
11604 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11605 a compilation warning.
11606 (hpread_process_one_debug_symbol): Likewise.
11607
11608 2003-01-10 David Carlton <carlton@math.stanford.edu>
11609
11610 * linespec.c (decode_line_1): Rename variable 's' to
11611 'file_symtab'.
11612 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11613 (decode_dollar): Ditto.
11614 (decode_variable): Ditto.
11615 (symbol_found): Ditto.
11616
11617 2003-01-09 Michael Chastain <mec@shout.net>
11618
11619 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11620
11621 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11622
11623 * win32-nat.c (set_process_privilege): New function.
11624 (child_attach): Call set_process_privilege() to enable the
11625 SE_DEBUG_NAME user privilege if available in process token.
11626
11627 2003-01-10 J. Brobecker <brobecker@gnat.com>
11628
11629 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11630 compilation error in the previous revision.
11631
11632 2003-01-09 David Carlton <carlton@math.stanford.edu>
11633
11634 * linespec.c: Update copyright.
11635
11636 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11637
11638 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11639 than inferior_ptid.
11640 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11641
11642 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11643
11644 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11645 Update comments.
11646 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11647 (frame_saved_regs_zalloc): Update.
11648 (frame_saved_regs_register_unwind): Update.
11649 (create_new_frame): Update.
11650 (get_prev_frame): Update.
11651 (frame_extra_info_zalloc): Update.
11652 (deprecated_get_frame_saved_regs): Update.
11653 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11654 * cris-tdep.c: Update comment.
11655
11656 * somsolib.h: Fix function indentation.
11657 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11658 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11659 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11660 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11661 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11662
11663 * infrun.c (follow_fork): Use ISO C definition.
11664 * expprint.c (print_subexp): Use xfree instead of free.
11665 * charset.c: Include "gdb_string.h" instead of <string.h>.
11666 (register_iconv_charsets): Use ISO C definition.
11667 (host_charset, target_charset): Ditto.
11668 * Makefile.in (charset.o): Update dependencies.
11669 (mi-cmd-env.o): Update dependencies.
11670
11671 2003-01-08 Andrew Cagney <cagney@redhat.com>
11672
11673 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11674 get_frame_base.
11675
11676 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11677
11678 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11679 build directories. Save edited gdb output in Mbuild.log. If a
11680 build fails, remove any final GDB executable.
11681
11682 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11683
11684 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11685 replacing hex constants with function names and stripping leading
11686 file name directory prefixes.
11687
11688 2003-01-08 Andrew Cagney <cagney@redhat.com>
11689
11690 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11691 get_frame_base.
11692
11693 2003-01-08 David Carlton <carlton@math.stanford.edu>
11694
11695 * linespec.c (decode_line_1): Move code into decode_variable.
11696 (decode_variable): New function.
11697
11698 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11699
11700 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11701
11702 2003-01-08 Andrew Cagney <cagney@redhat.com>
11703
11704 * cris-tdep.c (cris_frame_init_saved_regs): Use
11705 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11706 saved_regs buffer.
11707 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11708 (sh64_nofp_frame_init_saved_regs): Ditto.
11709 (sh_fp_frame_init_saved_regs): Ditto.
11710 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11711 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11712 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11713 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11714
11715 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11716
11717 * minsyms.c (lookup_minimal_symbol): Update comment.
11718 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11719 (lookup_minimal_symbol_solib_trampoline): Likewise.
11720
11721 2003-01-08 Andrew Cagney <cagney@redhat.com>
11722
11723 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11724 frame_relative_level.
11725
11726 * alpha-tdep.c: Use get_frame_extra_info.
11727 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11728 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11729 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11730 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11731
11732 * alpha-tdep.c: Use get_next_frame.
11733 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11734 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11735 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11736 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11737 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11738 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11739 * xstormy16-tdep.c: Ditto.
11740
11741 2003-01-07 Andrew Cagney <cagney@redhat.com>
11742
11743 * alpha-tdep.c: Use get_frame_base.
11744 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11745 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11746 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11747 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11748 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11749 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11750 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11751 * config/sparc/tm-sparc.h: Ditto.
11752
11753 2003-01-07 Andrew Cagney <cagney@redhat.com>
11754
11755 * frame.c (deprecated_get_frame_context): New function.
11756 (deprecated_set_frame_context): New function.
11757 * frame.h (deprecated_get_frame_context): Declare.
11758 (deprecated_set_frame_context): Declare.
11759 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11760 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11761
11762 2003-01-07 Andrew Cagney <cagney@redhat.com>
11763
11764 * frame.c (deprecated_set_frame_next_hack): New function.
11765 (deprecated_set_frame_prev_hack): New function.
11766 * frame.h (deprecated_set_frame_next_hack): Declare.
11767 (deprecated_set_frame_prev_hack): Declare.
11768 * mcore-tdep.c (analyze_dummy_frame): Use
11769 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11770 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11771
11772 2003-01-07 David Carlton <carlton@math.stanford.edu>
11773
11774 * linespec.c (decode_line_1): Move code into decode_dollar.
11775 (decode_dollar): New function.
11776
11777 2003-01-07 Andrew Cagney <cagney@redhat.com>
11778
11779 * arm-tdep.c (arm_init_extra_frame_info): Use
11780 deprecated_update_frame_base_hack.
11781 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11782 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11783 (fix_frame_pointer): Ditto.
11784 (mn10300_analyze_prologue): Ditto.
11785
11786 2003-01-07 Andrew Cagney <cagney@redhat.com>
11787
11788 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11789 extra_info using frame_extra_info_zalloc.
11790 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11791 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11792 (sh64_init_extra_frame_info): Ditto.
11793 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11794 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11795 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11796 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11797 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11798 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11799 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11800 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11801 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11802 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11803 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11804 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11805
11806 * mn10300-tdep.c (analyze_dummy_frame): Use
11807 deprecated_set_frame_extra_info_hack.
11808 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11809
11810 2003-01-07 J. Brobecker <brobecker@gnat.com>
11811
11812 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11813 class is not scText. These do not define "real" procedures.
11814 (parse_partial_symbols): Likewise.
11815
11816 2003-01-06 Michael Snyder <msnyder@redhat.com>
11817
11818 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11819
11820 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11821
11822 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11823 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11824 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11825 deprecated_frame_xmalloc_with_cleanup.
11826 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11827 deprecated_frame_xmalloc.
11828 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11829 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11830
11831 2003-01-06 Andrew Cagney <cagney@redhat.com>
11832
11833 * x86-64-linux-tdep.c: Include "osabi.h".
11834 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11835
11836 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11837
11838 2003-01-06 Andrew Cagney <cagney@redhat.com>
11839
11840 * MAINTAINERS (Target Instruction Set Architectures): Update
11841 arm-elf. Can be built with -Werror, has been multiarched.
11842
11843 * value.h (unpack_long): Make buffer parameter constant.
11844 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11845 * scm-lang.h (scm_parse): Ditto.
11846 * defs.h (extract_typed_address, extract_address): Ditto.
11847 (extract_long_unsigned_integer): Ditto.
11848 * inferior.h (unsigned_pointer_to_address): Ditto.
11849 (signed_pointer_to_address): Ditto.
11850 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11851 * gdbarch.h, gdbarch.c: Regenerate.
11852 * findvar.c (extract_long_unsigned_integer): Update.
11853 (extract_address): Update.
11854 (extract_typed_address): Update.
11855 (unsigned_pointer_to_address): Update.
11856 * values.c (unpack_long): Update.
11857 (unpack_double): Update.
11858 (unpack_pointer): Update.
11859 (unpack_field_as_long): Update.
11860 * d10v-tdep.c (d10v_pointer_to_address): Update.
11861 * avr-tdep.c (avr_pointer_to_address): Update.
11862 * scm-lang.c (scm_unpack): Update.
11863 * findvar.c (signed_pointer_to_address): Update.
11864
11865 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11866
11867 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11868 since it is in i386-tdep.c.
11869
11870 2003-01-06 J. Brobecker <brobecker@gnat.com>
11871
11872 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11873 failure introduced in the previous change.
11874
11875 2003-01-05 Michael Chastain <mec@shout.net>
11876
11877 * README: Remove references to deleted remote-*.c files:
11878 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11879 remote-nrom.c, remote-os9k.c, remote-udi.c.
11880
11881 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11882
11883 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11884 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11885 i386_get_longjmp_target.
11886
11887 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11888
11889 * arm-tdep.c (prologue_cache): Change to a pointer.
11890 (_initialize_arm_tdep): Allocate prologue_cache.
11891 (check_prologue_cache): Update.
11892 (save_prologue_cache): Update.
11893 (arm_gdbarch_init): Update.
11894
11895 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11896
11897 * stabsread.c (update_method_name_from_physname): Call complaint()
11898 instead of error.
11899
11900 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11901
11902 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11903 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11904 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11905
11906 * blockframe.c: Include "gdbcmd.h" and "command.h".
11907 (backtrace_below_main): New variable.
11908 (file_frame_chain_valid, func_frame_chain_valid)
11909 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11910 (generic_func_frame_chain_valid): Remove functions.
11911 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11912 (_initialize_blockframe): New function.
11913 * Makefile.in (blockframe.o): Update dependencies.
11914 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11915 comment. Call frame_chain_valid ().
11916 * frame.h: Remove old prototypes. Add prototype for
11917 frame_chain_valid and update comments to match.
11918 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11919 Remove old comment.
11920 * gdbarch.h: Regenerated.
11921 * gdbarch.c: Regenerated.
11922
11923 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11924 set_gdbarch_frame_chain_valid.
11925 * avr-tdep.c (avr_gdbarch_init): Likewise.
11926 * cris-tdep.c (cris_gdbarch_init): Likewise.
11927 * frv-tdep.c (frv_gdbarch_init): Likewise.
11928 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11929 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11930 (i386_nw_init_abi): Likewise.
11931 (i386_gdbarch_init): Likewise.
11932 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11933 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11934 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11935 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11936 * mips-tdep.c (mips_gdbarch_init): Likewise.
11937 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11938 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11939 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11940 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11941 * s390-tdep.c (s390_gdbarch_init): Likewise.
11942 * sh-tdep.c (sh_gdbarch_init): Likewise.
11943 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11944 * v850-tdep.c (v850_gdbarch_init): Likewise.
11945 * vax-tdep.c (vax_gdbarch_init): Likewise.
11946 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11947
11948 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11949 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11950 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11951 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11952 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11953 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11954 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11955 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11956
11957 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11958
11959 * Makefile.in (acconfig_h): Remove incorrect macro.
11960 (config_h): Define.
11961 (osabi.o): Update dependencies.
11962 * configure.tgt: Set gdb_osabi based on target triplet.
11963 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11964 * configure: Regenerated.
11965 * config.in: Regenerated.
11966 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11967 (GDB_OSABI_DEFAULT): Define if not already defined.
11968 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11969 (set_osabi_string): New variables.
11970 (gdbarch_register_osabi): Add new OS ABI to
11971 gdb_osabi_available_names.
11972 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11973 (set_osabi, show_osabi): New functions.
11974 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11975
11976 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11977
11978 * arch-utils.c (gdbarch_info_init): Set osabi to
11979 GDB_OSABI_UNINITIALIZED.
11980 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11981 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11982 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11983 * gdbarch.c: Regenerated.
11984 * gdbarch.h: Regenerated.
11985 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11986 there's no BFD.
11987 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11988 * osabi.h (enum gdb_osabi): Move to defs.h.
11989 (gdbarch_init_osabi): Update prototype.
11990 * defs.h (enum gdb_osabi): Moved here.
11991 * Makefile.in: Update dependencies.
11992
11993 * alpha-tdep.h: Don't include "osabi.h".
11994 (struct gdbarch_tdep): Remove osabi member.
11995 * alpha-tdep.c: Include "osabi.h".
11996 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11997 iterate over arches. Update call to gdbarch_init_osabi.
11998 (alpha_dump_tdep): Don't dump osabi.
11999 * alpha-linux-tdep.c: Include "osabi.h".
12000 * alpha-osf1-tdep.c: Include "osabi.h".
12001 * alphafbsd-tdep.c: Include "osabi.h".
12002 * alphanbsd-tdep.c: Include "osabi.h".
12003
12004 * arm-tdep.h: Don't include "osabi.h".
12005 (struct gdbarch_tdep): Remove osabi member.
12006 * arm-tdep.c: Include "osabi.h".
12007 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12008 iterate over arches. Update call to gdbarch_init_osabi.
12009 (arm_dump_tdep): Don't dump osabi.
12010 * arm-linux-tdep.c: Include "osabi.h".
12011 * armnbsd-tdep.c: Include "osabi.h".
12012
12013 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12014 Update call to gdbarch_init_osabi.
12015
12016 * i386-tdep.h: Don't include "osabi.h".
12017 (struct gdbarch_tdep): Remove osabi member.
12018 * i386-tdep.c: Include "osabi.h".
12019 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12020 iterate over arches. Update call to gdbarch_init_osabi.
12021 (i386_dump_tdep): Don't dump osabi.
12022 * i386-linux-tdep.c: Include "osabi.h".
12023 * i386-sol2-tdep.c: Include "osabi.h".
12024 * i386bsd-tdep.c: Include "osabi.h".
12025 * i386gnu-tdep.c: Include "osabi.h".
12026 * i386ly-tdep.c: Include "osabi.h".
12027 * i386nbsd-tdep.c: Include "osabi.h".
12028 * i386obsd-tdep.c: Include "osabi.h".
12029
12030 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12031 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12032 check osabi when iterating over arches. Update call to
12033 gdbarch_init_osabi.
12034 (mips_dump_tdep): Don't dump osabi.
12035
12036 * ns32k-tdep.h: Don't include "osabi.h".
12037 (struct gdbarch_tdep): Remove.
12038 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12039 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12040 allocate tdep. Update call to gdbarch_init_osabi.
12041 (ns32k_dump_tdep): Remove.
12042 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12043 * ns32knbsd-tdep.c: Include "osabi.h".
12044
12045 * ppc-tdep.h: Don't include "osabi.h".
12046 (struct gdbarch_tdep): Remove osabi member.
12047 * rs6000-tdep.c: Include "osabi.h".
12048 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12049 osabi when iterating over arches. Update call to
12050 gdbarch_init_osabi.
12051 (rs6000_dump_tdep): Don't dump osabi.
12052 * ppc-linux-tdep.c: Include "osabi.h".
12053 * ppcnbsd-tdep.c: Include "osabi.h".
12054
12055 * sh-tdep.h: Don't include "osabi.h".
12056 (struct gdbarch_tdep): Remove osabi member.
12057 * sh-tdep.c: Include "osabi.h".
12058 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12059 iterate over arches. Update call to gdbarch_init_osabi.
12060 (sh_dump_tdep): Don't dump osabi.
12061 * shnbsd-tdep.c: Include "osabi.h".
12062
12063 * sparc-tdep.c: Include "osabi.h".
12064 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12065 iterate over arches. Update call to gdbarch_init_osabi.
12066 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12067 tdep structure.
12068
12069 * vax-tdep.h: Don't include "osabi.h".
12070 (struct gdbarch_tdep): Remove.
12071 * vax-tdep.c: Include "osabi.h".
12072 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12073 iterate over arches. Don't allocate tdep. Update call
12074 to gdbarch_init_osabi.
12075 (vax_dump_tdep): Remove.
12076 (_initialize_vax_tdep): Update call to gdbarch_register.
12077
12078 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12079
12080 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12081 entirely.
12082 (breakpoint_re_set_one): Don't fetch the value for a disabled
12083 watchpoint.
12084
12085 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12086
12087 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12088 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12089 (COERCE_FLOAT_TO_DOUBLE): Remove.
12090 * gdbarch.c: Regenerate.
12091 * gdbarch.h: Regenerate.
12092 * Makefile.in: Remove value_h from gdbarch_h.
12093 * valops.c (coerce_float_to_double): New variable.
12094 (default_coerce_float_to_double): Remove.
12095 (standard_coerce_float_to_double): Remove.
12096 (value_arg_coerce): Use coerce_float_to_double.
12097 (_initialize_valops): Add "set coerce-float-to-double".
12098 * value.h (default_coerce_float_to_double): Remove prototype.
12099 (standard_coerce_float_to_double): Remove prototype.
12100
12101 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12102 prototyped.
12103 * mdebugread.c (parse_symbol): Likewise.
12104 * stabsread.c (define_symbol): Mark all functions as prototyped.
12105
12106 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12107 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12108 set_gdbarch_coerce_float_to_double.
12109 * arm-tdep.c (arm_gdbarch_init): Likewise.
12110 * frv-tdep.c (frv_gdbarch_init): Likewise.
12111 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12112 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12113 * mips-tdep.c (mips_gdbarch_init): Likewise.
12114 (mips_coerce_float_to_double): Remove.
12115 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12116 (rs6000_coerce_float_to_double): Remove.
12117 * s390-tdep.c (s390_gdbarch_init): Likewise.
12118 * sh-tdep.c (sh_gdbarch_init): Likewise.
12119 (sh_coerce_float_to_double): Remove.
12120 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12121 (sparc_coerce_float_to_double): Remove.
12122 * v850-tdep.c (v850_gdbarch_init): Likewise.
12123 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12124 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12125 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12126 (hppa_coerce_float_to_double): Remove prototype.
12127 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12128
12129 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12130
12131 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12132
12133 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12134
12135 Suggested by Stewart Brown <sb24@avaya.com>:
12136 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12137 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12138 (c_type_print_varspec_suffix): Likewise.
12139
12140 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12141
12142 * configure.in: Don't set and AC_SUBST SUBDIRS.
12143 * configure: Regenerated.
12144
12145 * configure.in: Remove code dealing with shared libraries.
12146 * Makefile.in: Remove HLDFLAGS and HLDENV.
12147 * configure: Regenerated.
12148
12149 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12150
12151 * frame.c (deprecated_frame_xmalloc): New function.
12152 (deprecated_set_frame_saved_regs_hack): New function.
12153 (deprecated_set_frame_extra_info_hack): New function.
12154 * frame.h (deprecated_frame_xmalloc): Declare.
12155 (deprecated_set_frame_saved_regs_hack): Declare.
12156 (deprecated_set_frame_extra_info_hack): Declare.
12157
12158 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12159
12160 * configure.in: Move code that provides the --enable-gdbtk option
12161 right after the code that handles the --enable-tui option, and
12162 polish it somewhat.
12163 * configure: Regenerated.
12164
12165 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12166 AC_CHECK_FUNCS and remove the old check for pread64.
12167 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12168 * acconfig.h (_GNU_SOURCE): Add.
12169 (HAVE_PREAD64): Remove.
12170 * configure, aclocal.m4, config.in: Regenerated.
12171
12172 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12173
12174 * alpha-tdep.c: Use get_frame_saved_regs.
12175 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12176 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12177 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12178 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12179 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12180
12181 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12182
12183 * configure.in: Remove all use of the SUBDIRS variable; add
12184 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12185 code providing the --enable-multi-ice option, and move it right in
12186 front of the code that checks whether gdbserver is supported.
12187 Polish that too.
12188 * configure: Regenerated.
12189 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12190 @SUBDIRS@.
12191
12192 2003-01-03 Andrew Cagney <cagney@redhat.com>
12193
12194 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12195 * avr-tdep.c, cris-tdep.c: Ditto.
12196 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12197 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12198
12199 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12200
12201 * configure.in: Remove --enable-netrom option.
12202 * configure: Regenerated.
12203
12204 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12205
12206 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12207 declaration for `struct re_pattern_buffer' instead.
12208 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12209
12210 2003-01-03 J. Brobecker <brobecker@gnat.com>
12211
12212 * mdebugread.c (parse_symbol): Count until the stEnd matching
12213 the structure name.
12214
12215 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12216
12217 * configure.in: Remove --with-cpu option.
12218 subscripts. Remove evil changequotes here.
12219 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12220 * config.in, configure: Regenerated.
12221
12222 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12223 * configure.in: Cleanup section that sources GDB and BFD configure
12224 subscripts. Remove evil changequotes here.
12225 * config.in, configure: Regenerated.
12226
12227 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12228
12229 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12230 frame accessor methods.
12231 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12232 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12233 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12234 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12235 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12236 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12237 * z8k-tdep.c: Ditto.
12238
12239 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12240
12241 * configure.in: Remove UI_OUT configuration code.
12242 * ada-lang.c: Update assuming UI_OUT is always true.
12243 * Makefile.in (UIOUT_CFLAGS): Remove.
12244 * configure: Regenerated.
12245 * TODO: Remove blurb about elimination of -DUI_OUT.
12246
12247 * configure.in: Move code that provides the --enable-gdbcli,
12248 --enable-gdbmi options right before the code that handles the
12249 --enable-tui option. Polish a bit.
12250 * configure: Regenerated.
12251
12252 * configure.in: Rewrite check for GNU regex and the
12253 --without-included regex option, and move it into the "Checks for
12254 library functions" section. This makes us use the system regex
12255 again by default on systems with version 2 of the GNU C library.
12256 This was apparently broken.
12257 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12258 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12259 * config.in, configure: Regenerated.
12260
12261 * configure.in: Move code that provides the --enable-tui option
12262 before the "Checks for libraries" section. Polish the code
12263 somewhat and set need_curses to yes if we build the TUI. Rewrite
12264 code that looks for a library providing termcap functionality to
12265 match more closely what's done in the Readline library, and move
12266 it into to the "Checks for libraries" section.
12267 * configure: Regenerated.
12268 * Makefile.in (TERMCAP): Remove variable.
12269 * config/i386/go32.mh (TERMCAP): Remove variable.
12270
12271 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12272
12273 * MAINTAINERS: Mention gdb_mbuild.sh.
12274 * gdb_mbuild.sh: Rewrite.
12275
12276 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12277
12278 * configure.in: Fix typo in last change.
12279 * config.in, configure: Regenerated.
12280
12281 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12282
12283 * valarith.c (value_binop): Delete obsolete code and comments.
12284 * configure.host: Ditto.
12285 * buildsym.h (make_blockvector): Ditto.
12286 * buildsym.c (make_blockvector): Ditto.
12287 * defs.h (enum language): Ditto.
12288 (chill_demangle): Ditto.
12289 * elfread.c (elf_symtab_read): Ditto.
12290 * dwarfread.c (CHILL_PRODUCER): Ditto.
12291 (set_cu_language): Ditto.
12292 (handle_producer): Ditto.
12293 * expprint.c (print_subexp): Ditto.
12294 * gdbtypes.c (chill_varying_type): Ditto.
12295 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12296 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12297 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12298 (chill_varying_type): Ditto.
12299 * language.h (_LANG_chill): Ditto.
12300 * language.c (binop_result_type, integral_type): Ditto.
12301 (character_type, string_type, structured_type): Ditto.
12302 (lang_bool_type, binop_type_check): Ditto.
12303 * stabsread.h (os9k_stabs): Ditto.
12304 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12305 (define_symbol, read_type, read_struct_fields): Ditto.
12306 (read_array_type, read_enum_type, read_huge_number): Ditto.
12307 (read_range_type, start_stabs): Ditto.
12308 * symfile.c (init_filename_language_table): Ditto.
12309 (add_psymbol_with_dem_name_to_list): Ditto.
12310 * symtab.c (symbol_init_language_specific): Ditto.
12311 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12312 * symtab.h (struct general_symbol_info): Ditto.
12313 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12314 * typeprint.c (typedef_print): Ditto.
12315 * utils.c (fprintf_symbol_filtered): Ditto.
12316 * valops.c (value_cast, search_struct_field, value_slice): Delete
12317 obsolete code.
12318 (varying_to_slice): Delete function.
12319 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12320 (varying_to_slice): Delete declaration.
12321 * MAINTAINERS: Update.
12322
12323 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12324
12325 * configure.in: Reorganize "Checks for library functions section"
12326 a bit. Remove check for `btowc' and `isascii' functions.
12327 * configure: Regenerated.
12328
12329 * acconfig.h (_MSE_INT_H): Remove.
12330 * configure.in: Create "Checks for header files" section, and move
12331 appropriate tests there. Don't check for objlist.h, wchar.h,
12332 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12333 misdetection fix. Also add "Checks for types", "Checks for
12334 compiler characteristics" and "Checks for library functions"
12335 sections.
12336 * config.in, configure: Regenerated.
12337
12338 * configure.in: Create "Checks for programs" section, and move
12339 appropriate tests there.
12340
12341 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12342
12343 * configure.in: Create "Checks for libraries" section, and move
12344 appropriate tests there. Cleanup check for wctype in libw. Use
12345 AC_SEARCH_LIBS to see whether we need libsocket.
12346 * configure: Regenerated.
12347
12348 For older changes see ChangeLog-2002
12349 \f
12350 Local Variables:
12351 mode: change-log
12352 left-margin: 8
12353 fill-column: 74
12354 version-control: never
12355 End:
This page took 0.299928 seconds and 4 git commands to generate.