2003-09-20 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-09-20 Andrew Cagney <cagney@redhat.com>
2
3 * cli/cli-script.c: Remove "register" attributes.
4 * config/pa/tm-hppa.h: Ditto.
5 * cli/cli-decode.c: Ditto.
6 * cli/cli-cmds.c: Ditto.
7
8 2003-09-19 Andrew Cagney <cagney@redhat.com>
9
10 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
11 DEPRECATED_NPC_REGNUM.
12 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
13
14 2003-09-19 Christopher Faylor <cgf@redhat.com>
15
16 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
17
18 2003-09-19 Jim Blandy <jimb@redhat.com>
19
20 * macrotab.c (macro_include): Use the correct comparison to find
21 the appropriate place for this inclusion in the list.
22
23 2003-09-19 Andrew Cagney <cagney@redhat.com>
24
25 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
26 (DEPRECATED_HPUX_TEXT_END): Define.
27 (deprecated_hpux_text_end): Declare.
28 (struct target_ops): Declare opaque.
29 * hppah-nat.c (text_end): Make static.
30 (deprecated_hpux_text_end): New function.
31 * exec.c (text_end): Delete global variable.
32 (NEED_TEXT_START_END): Do not define.
33 (exec_file_attach): Replace code computing "text_end" code with
34 call to DEPRECATED_HPUX_TEXT_END.
35
36 2003-09-19 Andrew Cagney <cagney@redhat.com>
37
38 * utils.c (align_up, align_down): New functions.
39 * defs.h (align_up, align_down): Declare.
40 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
41 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
42 and "align_down".
43 (round_up, round_down): Delete functions.
44 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
45 "align_down".
46 (ROUND_DOWN, ROUND_UP): Delete macros.
47 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
48 * h8300-tdep.c: Replace "round_up" and "round_down" with
49 "align_up" and "align_down".
50 (round_up, round_down): Delete macros.
51 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
52 "align_down".
53 (ROUND_UP, ROUND_DOWN): Delete macros.
54
55 2003-09-18 J. Brobecker <brobecker@gnat.com>
56
57 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
58 hard-coded constant. Use the proper machine name instead.
59
60 2003-09-17 Andrew Cagney <cagney@redhat.com>
61
62 * sparc-tdep.c (legacy_register_name): Delete function.
63 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
64 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
65 * infcmd.c (gdb_register_name): Delete variable.
66 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
67 REGISTER_NAME and "tm.h".
68 * gdbarch.h, gdbarch.c: Regenerate.
69 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
70 REGISTER_NAMES in comments.
71 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
72 * m68klinux-nat.c (regmap): Ditto.
73
74 2003-09-17 Jim Blandy <jimb@redhat.com>
75
76 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
77
78 2003-09-17 Andrew Cagney <cagney@redhat.com>
79
80 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
81 (ppcnbsd_init_abi): Set "use_struct_convention" to
82 "ppcnbsd_use_struct_convention".
83
84 2003-09-17 Mark Kettenis <kettenis@gnu.org>
85
86 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
87 * gdbarch.h, gdbarch.c: Regenerate.
88 (stabs_argument_has_addr): New architecture method.
89 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
90 * arch-utils.c: Include "buildsym.h".
91 (default_stabs_argument_has_addr): New function.
92 * stabsread.c (define_symbol): Use stabs_argument_has_addr
93 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
94
95 2003-09-17 Andrew Cagney <cagney@redhat.com>
96
97 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
98 * gdbarch.h, gdbarch.c: Regenerate.
99 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
100 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
101 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
102 * sparcnbsd-tdep.c: Update.
103
104 2003-09-17 Andrew Cagney <cagney@redhat.com>
105
106 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
107 * gdbarch.h, gdbarch.c: Regenerate.
108 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
109 * d10v-tdep.c, frame.c: Update.
110 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
111 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
112 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
113 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
114 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
115 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
116 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
117 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
118 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
119 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
120 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
121 * config/pa/nm-hppah.h: Update.
122
123 2003-09-16 Andrew Cagney <cagney@redhat.com>
124
125 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
126 "use_struct_convention" to "ppc_linux_use_struct_convention".
127 (ppc_linux_use_struct_convention): New function.
128 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
129 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
130 "rs6000_use_struct_convention".
131 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
132 declaration.
133 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
134 Delete function.
135
136 2003-09-16 Andrew Cagney <cagney@redhat.com>
137
138 * buildsym.c: Remove more occurances of "register".
139 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
140 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
141 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
142 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
143 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
144 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
145 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
146 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
147
148 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
149
150 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
151 numbers to enumeration values.
152 * sh-tdep.c: Accomodate above change.
153 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
154 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
155 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
156 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
157 (IS_FPUSH): Rename from IS_FMOV.
158 (sh_extract_struct_value_address): Remove useless comment.
159 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
160 instead of own local values.
161 (sh_dump_tdep): Remove.
162 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
163 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
164
165 2003-09-15 Andrew Cagney <cagney@redhat.com>
166
167 * doublest.c (convert_floatformat_to_doublest): No longer need to
168 cast "exp_bias" to an int. Reverts 2002-12-04 change.
169
170 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
171
172 * values.c (unpack_double): Call floatformat_is_valid.
173
174 2003-09-15 Mark Kettenis <kettenis@gnu.org>
175
176 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
177 ps_strings into a long.
178
179 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
180 _initialize_am64fbsd_nat.
181
182 2003-09-15 Kevin Buettner <kevinb@redhat.com>
183
184 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
185 associated with DW_AT_ranges attribute is out of bounds.
186
187 2003-09-15 David Lecomber <dsl@sources.redhat.com>
188
189 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
190
191 2003-09-14 Michael Chastain <mec@shout.net>
192
193 * config/m68k/nm-apollo68v.h: Delete.
194 * config/m68k/xm-apollo68v.h: Delete.
195
196 2003-09-14 Andrew Cagney <cagney@redhat.com>
197
198 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
199 * dcache.c: Update copyrights and descriptions.
200 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
201
202 2003-09-14 Andrew Cagney <cagney@redhat.com>
203
204 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
205 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
206
207 2003-09-14 Andrew Cagney <cagney@redhat.com>
208
209 * alpha-nat.c: Remove some occurances of "register".
210 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
211 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
212 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
213 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
214 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
215 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
216 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
217 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
218 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
219 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
220 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
221 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
222 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
223 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
224 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
225 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
226 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
227 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
228 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
229 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
230 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
231 * values.c, vax-tdep.c, xcoffread.c: Ditto.
232
233 2003-09-13 Andrew Cagney <cagney@redhat.com>
234
235 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
236 * ppc-tdep.h (struct regcache): Declare opaque.
237 * objfiles.h (struct objfile_data): Declare opaque.
238 * cp-support.h (struct objfile): Declare opaque.
239 * linux-nat.h (target_waitstatus): Declare opaque.
240
241 2003-09-14 Mark Kettenis <kettenis@gnu.org>
242
243 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
244 (stabs_argument_has_addr): New architecture method.
245 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
246 * arch-utils.c: Include "buildsym.h".
247 (default_stabs_argument_has_addr): New function.
248 * stabsread.c (define_symbol): Use stabs_argument_has_addr
249 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
250
251 * cris-tdep.c (cris_gdbarch_init): Set
252 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
253 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
254 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
255 * mips-tdep.c (mips_gdbarch_init): Likewise.
256 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
257 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
258
259 2003-09-13 Andrew Cagney <cagney@redhat.com>
260
261 * values.c (using_struct_return): Delete "function" and "funcaddr"
262 parameters.
263 * value.h (using_struct_return): Update declaration.
264 * infcmd.c (finish_command_continuation): Update.
265 (finish_command): Update.
266 * infcall.c (call_function_by_hand): Update.
267 * eval.c (evaluate_subexp_standard): Update.
268
269 2003-09-13 Christopher Faylor <cgf@redhat.com>
270
271 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
272 SSE registers since gdb will not operate correctly without this.
273 Restore include file ordering munged in previous change.
274 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
275
276 2003-09-13 Mark Kettenis <kettenis@gnu.org>
277
278 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
279 REG_STRUCT_HAS_ADDR.
280 * gdbarch.c, gdbarch.h: Updated.
281 * infcall.c (call_function_by_hand): Update.
282 * stabsread.c (define_symbol): Updated.
283
284 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
285
286 2003-09-12 Christopher Faylor <cgf@redhat.com>
287
288 * win32-nat.c: Reorganize so that defines used by target headers are
289 actually defined by the system headers.
290 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
291 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
292
293 2003-09-12 Jim Blandy <jimb@redhat.com>
294
295 * dbxread.c (read_dbx_symtab): Don't report an internal error if
296 the file has no .data, .bss, or .rodata sections. Instead wait
297 until we see a variable alleged to live in one of those sections.
298
299 * dbxread.c (read_dbx_symtab): If we have no .data section and no
300 .bss section, presume that any variables we find live in the
301 .rodata section.
302
303 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
304 offsets for global and static variables.
305
306 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
307 symbol types are, by definition, in the .data section, so it is
308 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
309 If there is no .data section, there should be no N_DATA or N_DATA
310 | N_EXT symbols.
311
312 2003-09-12 Mark Kettenis <kettenis@gnu.org>
313
314 * amd64fbsd-tdep.c: Fix sigtramp recognition.
315 (amd64fbsd_sigcontext_addr): Rewrite.
316 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
317 with correct values.
318 (amd64fbsd_sc_reg_offset): Initialize with correct values.
319 (amd64fbsd_init_abi): Fix typo.
320
321 2003-09-12 Andrew Cagney <cagney@redhat.com>
322
323 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
324 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
325
326 2003-09-12 Andrew Cagney <cagney@redhat.com>
327
328 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
329 "entry_file_highpc". Update comments.
330 * defs.h (deprecated_inside_entry_file): Rename
331 "inside_entry_file".
332 * blockframe.c (deprecated_inside_entry_file): Rename
333 "inside_entry_file".
334 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
335 * vax-tdep.c (vax_frame_chain): Update.
336 * sh64-tdep.c (sh64_frame_chain): Update.
337 * sh-tdep.c (sh_frame_chain): Update.
338 * rs6000-tdep.c (rs6000_frame_chain): Update.
339 * ns32k-tdep.c (ns32k_frame_chain): Update.
340 * mips-tdep.c (mips_frame_chain): Update.
341 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
342 * m32r-tdep.c (m32r_frame_this_id): Update.
343 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
344 * frv-tdep.c (frv_frame_this_id): Update.
345 * d10v-tdep.c (d10v_frame_this_id): Update.
346 * cris-tdep.c (cris_frame_chain): Update.
347 * blockframe.c (legacy_frame_chain_valid): Update.
348 * avr-tdep.c (avr_frame_this_id): Update.
349 * arm-tdep.c (arm_prologue_this_id): Update.
350 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
351 * objfiles.c (objfile_relocate): Update.
352 * mipsread.c (mipscoff_symfile_read): Update.
353 (mipscoff_symfile_read): Update.
354 * mdebugread.c (parse_partial_symbols): Update.
355 * dwarfread.c (read_file_scope): Update.
356 * dwarf2read.c (read_file_scope): Update.
357 * dbxread.c (read_dbx_symtab): Update.
358 (read_dbx_symtab): Update.
359 * coffread.c (complete_symtab): Update.
360
361 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
362
363 * top.c (quit_target): New static helper function.
364 (quit_force): Moved code to quit_target(). Call quit_target()
365 via catch_errors() to catch errors during quit.
366
367 2003-09-11 David Carlton <carlton@kealia.com>
368
369 * buildsym.c (finish_block): Use allocate_block to allocate the
370 block.
371 * mdebugread.c (new_block): Add FIXME.
372
373 2003-09-11 David Carlton <carlton@kealia.com>
374
375 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
376 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
377 (recursive_dump_type): Ditto.
378 * printcmd.c (print_formatted): Ditto.
379 * typeprint.c (print_type_scalar): Ditto.
380 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
381 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
382 * cp-support.h: Declare cp_check_possible_namespace_symbols,
383 maint_cplus_cmd_list.
384 * cp-support.c: Make maint_cplus_cmd_list extern.
385 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
386 command.h.
387 (lookup_symbol_file): Look in possible namespace blocks when
388 appropriate.
389 (initialize_namespace_symtab): New.
390 (get_possible_namespace_block, free_namespace_block)
391 (check_possible_namespace_symbols)
392 (check_possible_namespace_symbols_loop)
393 (check_one_possible_namespace_symbol)
394 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
395 (_initialize_cp_namespace): Ditto.
396 * block.h: Declare allocate_block.
397 * block.c (allocate_block): New.
398 * jv-lang.c (get_java_class_symtab): Allocate blocks via
399 allocate_block.
400 * symfile.h: Update declaration of add_psymbol_to_list.
401 * symfile.c (add_psymbol_to_list): Return the partial symbol in
402 question.
403 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
404 scan_partial_symbols_call.
405 (scan_partial_symbols): Add NAMESPACE argument; update calls to
406 helper functions.
407 (add_partial_symbol): If necessary, scan mangled names for names
408 of namespaces.
409 (add_partial_namespace): Add NAMESPACE argument; generate partial
410 symbols associated to namespaces.
411 (add_partial_enumeration): Add NAMESPACE argument.
412 (new_symbol): Allow namespace syms.
413 (read_namespace): Generate namespace syms.
414 * objfiles.h: Add opaque declaration of struct symtab.
415 (struct objfile): Add cp_namespace_symtab member.
416 * objfiles.c (allocate_objfile): Set
417 objfile->cp_namespace_symtab.
418 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
419 dictionary_h, command_h.
420
421 2003-09-11 Andrew Cagney <cagney@redhat.com>
422
423 * rs6000-tdep.c (rs6000_push_dummy_call): Use
424 regcache_raw_write_signed to set SP_REGNUM, move the operation to
425 near the function's end.
426 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
427 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
428 regcache_raw_write_signed to set SP_REGNUM.
429
430 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
431
432 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
433 orig_addrs is set up properly.
434
435 2003-09-11 Andrew Cagney <cagney@redhat.com>
436
437 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
438 * gdbarch.h, gdbarch.c: Re-generate.
439 * infcall.c (call_function_by_hand): Update.
440 * hppa-tdep.c (hppa_push_arguments): Update.
441 * ada-lang.c (place_on_stack): Update.
442 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
443 * sparc-tdep.c (sparc_gdbarch_init): Update.
444 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
445 * hppa-tdep.c (hppa_gdbarch_init): Update.
446 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
447 stack_align.
448
449 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
450
451 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
452 register do need a frame.
453
454 2003-09-11 Andrew Cagney <cagney@redhat.com>
455
456 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
457 buildable since GDB 5.0.
458 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
459 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
460 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
461 * irix4-nat.c: Delete file.
462 * config/mips/irix4.mh: Delete file.
463 * config/mips/irix3.mh: Delete file.
464 * config/mips/irix3.mt: Delete file.
465 * config/mips/tm-irix3.h: Delete file.
466 * config/mips/nm-irix3.h: Delete file.
467 * config/mips/xm-irix3.h: Delete file.
468 * config/mips/nm-irix4.h: Delete file.
469 * config/mips/xm-irix4.h: Delete file.
470 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
471
472 2003-09-10 J. Brobecker <brobecker@gnat.com>
473
474 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
475 * Makefile.in (hppa-tdep.o): Update dependencies.
476
477 2003-09-10 James E Wilson <wilson@specifixinc.com>
478
479 * MAINTAINERS: Change my e-mail address. Move to paper trail
480 section.
481
482 2003-09-10 Kevin Buettner <kevinb@redhat.com>
483
484 * MAINTAINERS (frv): New ISA entry.
485
486 2003-09-10 Kevin Buettner <kevinb@redhat.com>
487
488 * frv-tdep.c (dis-asm.h): Include.
489 * Makefile.in (frv-tdep.o): Update dependencies.
490
491 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
492
493 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
494 Fix typo for high range of floating registers.
495
496 2003-09-09 David Carlton <carlton@kealia.com>
497
498 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
499 highpc initialization here out of scan_partial_symbols.
500 (scan_partial_symbols): Restructure into a recursive version,
501 calling add_partial_namespace and add_partial_enumeration when
502 appropriate.
503 (add_partial_namespace): New.
504 (add_partial_enumeration, locate_pdi_sibling): Ditto.
505
506 2003-09-09 Andrew Cagney <cagney@redhat.com>
507
508 * rs6000-tdep.c (ppc_push_return_address): Delete function.
509 (rs6000_push_dummy_call): Set LR to BP_ADDR.
510 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
511 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
512
513 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
514 (rs6000_push_dummy_call): Set the "TOC" register.
515
516 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
517 methods "max_register_raw_size", "max_register_virtual_size" or
518 "register_virtual_size".
519
520 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
521
522 * MAINTAINERS: Update my e-mail address.
523
524 2003-09-09 Andrew Cagney <cagney@redhat.com>
525
526 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
527 (rs6000_push_dummy_call): Store the struct return address.
528 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
529
530 2003-09-09 Andrew Cagney <cagney@redhat.com>
531
532 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
533 "ppc_sysv_abi_push_arguments".
534 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
535 "ppc_sysv_abi_push_arguments".
536 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
537 instead of "push_arguments".
538 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
539
540 2003-09-09 Andrew Cagney <cagney@redhat.com>
541
542 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
543 instead of CALL_DUMMY_ADDRESS.
544
545 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
546
547 * p-lang.c: Eliminate "register".
548 * c-lang.c: Ditto.
549 * expprint.c: Ditto.
550 * f-lang.c: Ditto.
551 * jv-lang.c: Ditto.
552 * language.c: Ditto.
553 * m2-lang.c: Ditto.
554 * parse.c: Ditto.
555 * scm-lang.c: Ditto.
556 * objc-lang.c: Ditto.
557
558 2003-09-09 Nick Clifton <nickc@redhat.com>
559
560 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
561
562 2003-09-04 Andrew Cagney <cagney@redhat.com>
563
564 * avr-tdep.c: Include "dis-asm.h".
565 * cris-tdep.c: Include "dis-asm.h".
566 (cris_delayed_get_disassembler): Use "struct disassemble_info"
567 instead of corresponding typedef.
568 * h8300-tdep.c: Include "dis-asm.h".
569 * ia64-tdep.c: Include "dis-asm.h".
570 * i386-tdep.c: Include "dis-asm.h".
571 (i386_print_insn): Use "struct disassemble_info" instead of
572 corresponding typedef.
573 * m68k-tdep.c: Include "dis-asm.h".
574 * mcore-tdep.c: Include "dis-asm.h".
575 * mips-tdep.c: Include "dis-asm.h".
576 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
577 instead of corresponding typedef.
578 * ns32k-tdep.c: Include "dis-asm.h".
579 * s390-tdep.c: Include "dis-asm.h".
580 * sparc-tdep.c: Include "dis-asm.h".
581 * vax-tdep.c: Include "dis-asm.h".
582 * v850-tdep.c: Include "dis-asm.h".
583 * mn10300-tdep.c: Include "dis-asm.h".
584 * rs6000-tdep.c: Include "dis-asm.h".
585 * xstormy16-tdep.c: Include "dis-asm.h".
586 (_initialize_xstormy16_tdep): Delete "extern" declaration of
587 print_insn_xstormy16.
588 * Makefile.in (v850-tdep.o): Update dependencies.
589 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
590 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
591 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
592 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
593 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
594 (gdbarch_h): Remove $(dis_asm_h).
595 * disasm.c: Include "dis-asm.h".
596 (dis_asm_read_memory): Use "struct disassemble_info" instead of
597 corresponding typedef.
598 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
599 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
600 * gdbarch.sh: Do not include "dis-asm.h".
601 (struct disassemble_info): Declare opaque.
602 (TARGET_PRINT_INSN): Update declaration.
603 * gdbarch.h, gdbarch.c: Re-generate.
604
605 2003-09-08 Andrew Cagney <cagney@redhat.com>
606
607 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
608 CALL_DUMMY_ADDRESS, change to a predicate.
609 * gdbarch.h, gdbarch.c: Re-generate.
610 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
611 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
612 * infcall.c (call_function_by_hand): Ditto.
613 * sparc-tdep.c (sparc_push_return_address): Ditto.
614 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
615 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
616 CALL_DUMMY_ADDRESS with entry_point_address.
617 * v850-tdep.c (v850_push_return_address): Ditto.
618 * s390-tdep.c (s390_push_return_address): Ditto.
619 * rs6000-tdep.c (ppc_push_return_address): Ditto.
620 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
621 * mcore-tdep.c (mcore_push_return_address): Ditto.
622 * cris-tdep.c (cris_push_return_address): Ditto.
623 * arm-tdep.c (arm_push_return_address): Ditto.
624
625 2003-09-08 Andrew Cagney <cagney@redhat.com>
626
627 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
628 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
629 and REG_UNMODIFIED to REG_SAME_VALUE.
630 (execute_cfa_program): Update.
631 (dwarf2_frame_cache): Update. Initialize table to
632 REG_UNSPECIFIED, complain if CFI fails to specify a register's
633 location.
634 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
635
636 2003-09-08 Andrew Cagney <cagney@redhat.com>
637
638 * gnu-nat.c: Remove "inline" function attribute.
639 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
640
641 2003-09-08 Kevin Buettner <kevinb@redhat.com>
642
643 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
644 target.
645
646 2003-09-08 Kevin Buettner <kevinb@redhat.com>
647
648 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
649 (frame_extra_info): Rename this struct to frv_unwind_cache.
650 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
651 Add fields ``prev_sp'' and ``base''.
652 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
653 (frv_saved_pc_after_call, frv_init_extra_frame_info)
654 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
655 Delete.
656 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
657 Revise all callers. Fill in the unwind cache argument and make
658 other adjustments to account for new frame mechanisms.
659 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
660 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
661 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
662 (frv_frame_unwind, frv_frame_base): New structs.
663 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
664 additional arguments expected by this method and adjust function
665 body accordingly.
666 (frv_gdbarch_init): Remove calls to the following functions:
667 set_gdbarch_deprecated_init_frame_pc(),
668 set_gdbarch_deprecated_saved_pc_after_call(),
669 set_gdbarch_deprecated_frame_chain(),
670 set_gdbarch_deprecated_frame_saved_pc(),
671 set_gdbarch_deprecated_frame_init_saved_regs(),
672 set_gdbarch_deprecated_push_arguments(),
673 set_gdbarch_deprecated_push_return_address(),
674 set_gdbarch_deprecated_pop_frame(),
675 set_gdbarch_deprecated_call_dummy_words(),
676 set_gdbarch_deprecated_sizeof_call_dummy_words(),
677 set_gdbarch_deprecated_init_extra_frame_info(),
678 set_gdbarch_deprecated_dummy_write_sp(), and
679 set_gdbarch_deprecated_pc_in_call_dummy().
680 Add calls to the following functions:
681 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
682 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
683 frame_base_set_default().
684 * Makefile.in (frv-tdep.o): Update dependencies.
685
686 2003-09-09 Mark Kettenis <kettenis@gnu.org>
687
688 * dwarf2-frame.c (read_encoded_value): Add support for
689 DW_EH_PE_aligned encoding.
690
691 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
692
693 * infrun.c (normal_stop): Don't print a message if the inferior
694 has exited.
695
696 2003-09-08 Jim Blandy <jimb@redhat.com>
697
698 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
699 * dbxread.c: #include "gdb_assert.h".
700 (read_dbx_symtab): If the objfile has no .data section, use the
701 section index for the .bss section instead.
702
703 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
704
705 * frame.c (deprecated_safe_get_selected_frame): New function.
706 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
707 * findvar.c (read_var_value): Call it.
708
709 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
710
711 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
712 (sh64-tdep.o): Add dependencies.
713 * configure.tgt: Add FIXME to sh-*-linux*.
714 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
715 (sh_gdbarch_init): Always set correct sh_show_regs function
716 pointer. Call sh64_gdbarch_init() if machine type is sh5.
717 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
718 * sh64-tdep.c: New file, containing all sh64 related code from
719 sh-tdep.c.
720 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
721 * config/sh/linux.mt (TDEPFILES): Ditto.
722 * config/sh/nbsd.mt (TDEPFILES): Ditto.
723 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
724 * config/sh/wince.mt (TDEPFILES): Ditto.
725
726 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
727
728 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
729 (stop_wait_callback): Handle !lp->signalled also.
730 (lin_lwp_has_pending, flush_callback): New functions.
731 (lin_lwp_wait): Call flush_callback.
732 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
733 (linux_proc_pending_signals): New function.
734 * linux-nat.h (linux_proc_pending_signals): Add prototype.
735
736 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
737
738 From Nick Kelsey <nickk@ubicom.com>:
739 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
740 when the stop PC is at the beginning of a function also.
741
742 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
743
744 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
745 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
746
747 2003-09-06 Mark Kettenis <kettenis@gnu.org>
748
749 * sol-thread.c: Include "gdb_string.h".
750
751 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
752
753 * gcore.c: Reorder include files in alphabetical order. Include
754 "gdb_assert.h". Various coding style fixes.
755 (derive_stack_segment, derive_heap_segment): Replace check for
756 non-null BOTTOM and TOP with gdb_assert.
757 (derive_heap_segment): Replace check for successful creation of
758 ZERO with gdb_assert.
759 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
760
761 2003-09-04 Andrew Cagney <cagney@redhat.com>
762
763 * thread-db.c (verbose_dlsym): New function.
764 (thread_db_load): Use verbose_dlsym
765 (thread_db_new_objfile): Print that libthread_db was loaded, and
766 that thread debugging was enabled.
767
768 2003-09-04 Andrew Cagney <cagney@redhat.com>
769
770 * configure.tgt: Add "mips64*-*-*" target. Delete
771 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
772 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
773 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
774 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
775 mips*-sony-*, and mips64*-*-elf* targets.
776 * config/mips/embedl.mt: Delete file.
777 * config/mips/embedl64.mt: Delete file.
778 * config/mips/mips.mt: Delete file.
779 * config/mips/mips64.mt: Delete file.
780 * config/mips/tm-embed.h: Delete file.
781 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
782 * config/mips/embed64.mt: Delete out-of-date comment.
783
784 2003-09-04 Andrew Cagney <cagney@redhat.com>
785
786 * hppa-tdep.c (hppa_gdbarch_init): Set
787 "have_nonsteppable_watchpoint".
788 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
789 * mips-tdep.c (mips_dump_tdep): Do not print
790 HAVE_NONSTEPPABLE_WATCHPOINT.
791 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
792 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
793 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
794 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
795
796 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
797
798 * breakpoint.c (watchpoint_check): Remove accidentally checked in
799 unused code. Add comment.
800
801 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
802
803 * breakpoint.c (watchpoint_check): Check for pc being in an
804 epilogue if watchpoint frame couldn't be found.
805
806 2003-09-04 Andrew Cagney <cagney@redhat.com>
807
808 * Makefile.in: Re-generate all dependencies.
809
810 2003-09-03 Andrew Cagney <cagney@redhat.com>
811
812 * arch-utils.h (legacy_print_insn): Delete declaration.
813 * arch-utils.c (legacy_print_insn): Delete function.
814 * disasm.c (deprecated_tm_print_insn_info): Delete.
815 (_initialize_disasm): Delete function, contained code initializing
816 deprecated_tm_print_insn_info.
817 * gdbarch.sh (deprecated_tm_print_insn): Delete.
818 (deprecated_tm_print_insn_info): Delete.
819 (TARGET_PRINT_INSN): Do not provide a default.
820 * gdbarch.h, gdbarch.c: Re-generate.
821
822 2003-09-03 Andrew Cagney <cagney@redhat.com>
823
824 * disasm.c (fprintf_disasm): New function.
825 (gdb_disassemble_info): Call "init_disassemble_info", instead of
826 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
827 reverts 2003-08-14 change.
828 (_initialize_disasm): Call "init_disassemble_info", instead of
829 INIT_DISASSEMBLE_INFO_NO_ARCH.
830
831 2003-09-03 Michael Snyder <msnyder@redhat.com>
832
833 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
834
835 2003-09-03 Andrew Cagney <cagney@redhat.com>
836
837 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
838 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
839 * symfile.c (syms_from_objfile): Update.
840 (reread_symbols): `Update
841 * exec.c (exec_file_attach): Update.
842 (exec_file_attach): Update.
843 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
844 2003-08-29 change.
845 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
846
847 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
848
849 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
850 trad-frame.h.
851 (arm_get_cache): Delete macro.
852 (struct arm_prologue_cache): Update comments. Make saved_regs into
853 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
854 to prev_sp.
855 (thumb_scan_prologue): Update for cache changes. Don't call
856 DEPRECATED_PC_IN_CALL_DUMMY.
857 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
858 argument and use it in desperation search for our prologue. Do not
859 search past the specified PC.
860 (arm_make_prologue_cache): Simplify.
861
862 (arm_prologue_this_id, arm_prologue_prev_register)
863 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
864 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
865 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
866 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
867 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
868
869 (arm_frame_chain_valid, arm_find_callers_reg)
870 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
871 (arm_pop_frame): Delete obsolete methods.
872 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
873
874 (arm_gdbarch_init): Update for new frame methods. Register prologue
875 and sigtramp unwinders. Set the default frame base method.
876
877 * Makefile.in (arm-tdep.o): Update dependencies.
878 * varobj.c (find_frame_addr_in_frame_chain): Call
879 get_frame_base_address.
880 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
881
882 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
883
884 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
885 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
886 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
887 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
888 Take NEXT_FRAME and CACHE arguments. Call
889 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
890 Set unwound_pc in CACHE instead of modifying the frame argument.
891 Don't bother checking the frame type when looking for sigtramp
892 frames.
893 (arm_make_prologue_cache, arm_frame_chain)
894 (arm_init_extra_frame_info): New functions.
895
896 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
897
898 * arm-tdep.c (arm_get_cache): Define.
899 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
900 unwound_sp, unwound_pc, and saved_regs.
901 (thumb_scan_prologue): Take a cache instead of the frame.
902 (arm_scan_prologue): Likewise.
903 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
904 instead of a temporary frame.
905 (arm_init_extra_frame_info): Allocate and use a cache.
906 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
907
908 2003-09-03 Andrew Cagney <cagney@redhat.com>
909
910 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
911 * config/mips/wince.mt (TM_CLIBS): Ditto.
912 * config/sh/wince.mt (TM_CLIBS): Ditto.
913 * config/pa/hppa64.mt (TM_CLIBS): Delete.
914 * config/sparc/sp64.mt (CC): Delete.
915
916 2003-09-03 Andrew Cagney <cagney@redhat.com>
917
918 * defs.h: Do not include "arch-utils.h".
919 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
920 GDB_MULTI_ARCH_PURE.
921 * configure.in (GDB_MULTI_ARCH): Do not define.
922 * configure, config.in: Regenerate.
923 * configure.tgt: Do not set variable "gdb_multi_arch".
924 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
925 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
926 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
927 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
928 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
929 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
930 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
931 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
932 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
933 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
934 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
935 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
936 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
937 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
938 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
939 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
940 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
941 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
942
943 2003-08-30 Michael Chastain <mec@shout.net>
944
945 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
946 * config/m68k/nm-hp300hpux.h: Delete.
947 * config/m68k/tm-hp300hpux.h: Delete.
948 * config/m68k/xm-hp300hpux.h: Delete.
949 * config/m68k/xm-hp300bsd.h: Delete.
950 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
951 tm-hp300hpux.h, xm-hp300hpux.h.
952 * somsolib.c: Remove comment about hp300 shared libraries.
953
954 2003-08-31 Mark Kettenis <kettenis@gnu.org>
955
956 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
957 Only define PTRACE_GET_THREAD_AREA is not already defined.
958 Various style fixes in code and comments and some additional
959 spelling fixes in comments. Move after functions dealing with
960 debug registers.
961 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
962 Fix coding-style.
963
964 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
965 frame_unwind_register_unsigned instead of
966 frame_unwind_unsigned_register.
967
968 2003-08-30 Mark Kettenis <kettenis@gnu.org>
969
970 * configure.in: Search for gethostbyname in libnsl.
971 * configure: Regenerated.
972
973 2003-08-29 Mark Kettenis <kettenis@gnu.org>
974
975 * configure.in: Remove redundant AC_MSG_RESULT in check for
976 uintptr_t in stdint.h.
977 * configure: Regenerated.
978
979 * amd64-nat.h (struct regcache): Add opaque declaration.
980
981 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
982 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
983 Change "register array" to "register cache" in comments.
984 (x86_64_linux_gregset64_reg_offset): New variable.
985 (GETREGS_SUPPLIES): Remove macro.
986 (supply_gregset): Call amd64_supply_native_gregset instead of
987 x86_64_linux_supply_gregset.
988 (fill_gregset): Rename `regno' to `regnum'. Call
989 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
990 (store_regs): Rename `regno' to `regnum'.
991 (store_fpregs): Rename `regno' to `regnum'.
992 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
993 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
994 Reorganize function a bit.
995 (store_inferior_registers): Rename `regno' to `regnum'. Use
996 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
997 Reorganize function a bit.
998 (_initialize_x86_64_linux_nat): New function.
999 * config/i386/x86-64linux.mh.
1000
1001 2003-08-29 Andrew Cagney <cagney@redhat.com>
1002
1003 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1004 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1005 (target_remove_watchpoint): Delete macro.
1006 (target_insert_watchpoint): Delete macro.
1007 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1008 (remote_mips_stopped_by_watchpoint): Delete declaration.
1009 (remote_mips_remove_watchpoint): Delete declaration.
1010 (remote_mips_set_watchpoint): Delete declaration.
1011 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1012 * remote-mips.c (_initialize_remote_mips): Set
1013 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1014 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1015 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1016 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1017 (mips_stopped_by_watchpoint): Rename
1018 remote_mips_stopped_by_watchpoint.
1019 (mips_can_hardware_watchpoint): Rename
1020 remote_mips_can_use_hardware_watchpoint, update function
1021 signature.
1022
1023 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1024
1025 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1026 USER_DS. We haven't given them a register number yet.
1027
1028 * amd64-nat.h: New file.
1029 * amd64-nat.c: New file.
1030 * amd64fbsd-nat.c: Include "amd64-nat.h".
1031 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1032 (amd64fbsd32_r_reg_offset): New variable.
1033 (supply_gregset): Simply call amd64_supply_native_gregset.
1034 (fill_gregset): Rename `regno' to `regnum'. Simply call
1035 amd64_collect_native_gregset.
1036 (fill_fpregset): Rename `regno' to `regnum'.
1037 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1038 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1039 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1040 `fpregset_t'. Call amd64_supply_native_gregset instead of
1041 supply_gregset. Call x86_64_supply_fxsave instead of
1042 supply_fpregset.
1043 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1044 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1045 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1046 `fpregset_t'. Call amd64_collect_native_gregset instead of
1047 fill_gregset. Call x86_64_collect_fxsave instead of
1048 fill_fpregset.
1049 (_initialize_am64fbsd_nat): Initialize
1050 amd64_native_gregset32_reg_offset and
1051 amd64_native_gregset64_reg_offset.
1052 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1053
1054 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1055 null pointer. Fix typo in comment.
1056
1057 * regcache.c (supply_register): Reimplement to call
1058 regcache_raw_supply.
1059 (regcache_collect): Reimplement by calling regcache_raw_collect.
1060
1061 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1062
1063 * regcache.c (register_buffer): Consitify first argument.
1064 (regcache_raw_supply, regcache_raw_collect): New
1065 functions.
1066
1067 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1068
1069 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1070 by Nathan J. Williams.
1071
1072 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1073
1074 * lin-lwp.c (wait_lwp): New function, copied from
1075 stop_wait_callback. Clean up.
1076 (stop_wait_callback): Use wait_lwp.
1077
1078 2003-08-28 Andrew Cagney <cagney@redhat.com>
1079
1080 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1081 flavour and disassembler options.
1082 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1083 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1084 deprecated_tm_print_insn_info.
1085
1086 2003-08-27 Andrew Cagney <cagney@redhat.com>
1087
1088 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1089 Use target_read_memory.
1090 (s390_get_frame_info): Update. Do not reference
1091 deprecated_tm_print_insn_info.
1092 (s390_check_function_end, s390_is_sigreturn): Ditto.
1093
1094 2003-08-27 Andrew Cagney <cagney@redhat.com>
1095
1096 * Makefile.in (cris-tdep.o): Update dependencies.
1097 * cris-tdep.c: Include "gdb_assert.h".
1098 (cris_gdbarch_init): Set print_insn.
1099 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1100 (cris_delayed_get_disassembler): Simplify, directly call the
1101 disassembler returned by cris_get_disassembler.
1102 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1103 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1104 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1105 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1106 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1107 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1108 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1109 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1110 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1111 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1112 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1113 (gdb_print_insn_sparc): Delete function.
1114 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1115 deprecated_tm_print_insn_info.
1116 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1117 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1118 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1119 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1120 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1121 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1122 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1123 (s390_gdbarch_init): Set print_insn.
1124
1125 2003-08-27 Andrew Cagney <cagney@redhat.com>
1126
1127 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1128 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1129 * infcall.c (call_function_by_hand): Convert the entry point
1130 address into a code address.
1131
1132 2003-08-27 Andrew Cagney <cagney@redhat.com>
1133
1134 * dsrec.c: Include "gdb_string.h".
1135 * Makefile.in (dsrec.o): Update dependencies.
1136
1137 2003-08-27 Michael Chastain <mec@shout.net>
1138
1139 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1140
1141 2003-08-27 Andrew Cagney <cagney@redhat.com>
1142
1143 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1144 (alpha_osf1_init_abi): Do not set call_dummy_address.
1145
1146 2003-08-27 David Carlton <carlton@kealia.com>
1147
1148 From Randolph Chung <tausq@debian.org>:
1149 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1150 compiles with -Wformat-nonliteral -Werror.
1151
1152 2003-08-26 Jim Blandy <jimb@redhat.com>
1153
1154 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1155 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1156 bfd_lookup_symbol, since we only want symbols in code sections.
1157 (look_for_base): Pass zero as the SECT_FLAGS argument to
1158 bfd_lookup_symbol, since we're not concerned about which section
1159 the symbol is in.
1160
1161 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1162
1163 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1164 we are frameless or the return address register is already known.
1165
1166 2003-08-26 Andrew Cagney <cagney@redhat.com>
1167
1168 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1169 in size. Add comments.
1170
1171 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1172
1173 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1174 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1175
1176 2003-08-26 Jason Merrill <jason@redhat.com>
1177
1178 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1179 case out of #ifdef MIPS block.
1180
1181 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1182
1183 PR java/1322
1184 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1185 available before calling SECT_OFF_TEXT.
1186 * PROBLEMS: Remove description of java/1322.
1187
1188 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1189
1190 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1191 bof, and nat0-nat127 as pseudo-registers.
1192 (ia64_frame_cache): New struct used to cache frame info.
1193 (ia64_register_reggroup_p): New routine used to override default
1194 register grouping so registers without names are still saved and
1195 restored.
1196 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1197 pseudo values.
1198 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1199 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1200 (ia64_alloc_frame_cache): New routine to create a new
1201 ia64_frame_cache.
1202 (examine_prologue): Change prototype to add next_frame pointer.
1203 Assume frameless until otherwise proven. Verify that the cfm for
1204 current frame matches the cfm that should occur for the prologues
1205 alloc insn and if equal, mark as not frameless. At end of routine,
1206 if not frameless, calculate registers for the previous frame and store
1207 in the cache, if a cache is provided.
1208 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1209 and pass 0 for next_frame.
1210 (ia64_store_return_value): Change to use convert_typed_floating()
1211 instead of calling ia64_convert_to_raw().
1212 (ia64_extract_return_value): Change to use convert_typed_floating()
1213 instead of calling ia64_convert_to_virtual().
1214 (ia64_frame_cache): New routine to support new frame model.
1215 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1216 (ia64_frame_sniffer): Ditto.
1217 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1218 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1219 (ia64_sigtramp_frame_prev_register): Ditto.
1220 (ia64_sigtramp_frame_sniffer): Ditto.
1221 (ia64_frame_base_address): Ditto.
1222 (ia64_extract_struct_value_address): Change to issue error message.
1223 (ia64_frame_align): New routine to align sp.
1224 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1225 (ia64_push_arguments): Removed. Logic moved to
1226 ia64_push_dummy_call().
1227 (ia64_push_return_address): Ditto.
1228 (ia64_unwind_dummy_id): New function.
1229 (ia64_unwind_pc): Ditto.
1230 (ia64_convert_register_p): Ditto.
1231 (ia64_register_to_value): Ditto.
1232 (ia64_value_to_register): Ditto.
1233 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1234 (ia64_register_byte, ia64_register_raw_size): Ditto.
1235 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1236 (ia64_saved_pc_after_call): Ditto.
1237 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1238 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1239 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1240 (ia64_register_convert_to_raw): Ditto.
1241 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1242 (ia64_init_extra_frame_info): Ditto.
1243 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1244 (ia64_gdbarch_init): Remove registering of deprecated functions that
1245 are no longer used. Add registration of new gdbarch functions.
1246 Remove registering deprecated_write_sp. Replace
1247 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1248 Delete set_gdbarch_deprecated_register_convertible(),
1249 set_gdbarch_deprecated_register_convert_to_virtual(), and
1250 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1251 set_gdbarch_deprecated_register_size(),
1252 set_gdbarch_deprecated_register_bytes(),
1253 set_gdbarch_pcregnum(),
1254 set_gdbarch_deprecated_register_byte(),
1255 set_gdbarch_deprecated_register_raw_size(),
1256 set_gdbarch_deprecated_max_register_raw_size(),
1257 set_gdbarch_deprecated_register_virtual_size(),
1258 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1259 Replace set_gdbarch_deprecated_extract_return_value() with
1260 set_gdbarch_extract_return_value(). Remove calls to:
1261 set_gdbarch_deprecated_saved_pc_after_call();
1262 set_gdbarch_deprecated_frame_chain(),
1263 set_gdbarch_deprecated_frame_saved_pc(),
1264 set_gdbarch_deprecated_frame_init_saved_regs(),
1265 set_gdbarch_deprecated_get_saved_register(),
1266 set_gdbarch_deprecated_call_dummy_words(),
1267 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1268 set_gdbarch_deprecated_init_extra_frame_info(),
1269 set_gdbarch_deprecated_frame_args_address(),
1270 set_gdbarch_deprecated_frame_locals_address(),
1271 and set_gdbarch_deprecated_dummy_write_sp().
1272 Add set_gdbarch_convert_register_p(),
1273 set_gdbarch_register_to_value(),
1274 set_gdbarch_value_to_register(),
1275 set_gdbarch_push_dummy_call(),
1276 set_gdbarch_frame_align(),
1277 set_gdbarch_unwind_dummy_id(),
1278 set_gdbarch_unwind_pc(),
1279 frame_unwind_append_sniffer(),
1280 frame_unwind_append_sniffer(),
1281 and frame_base_set_default().
1282
1283 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1284
1285 * configure.tgt: Document need for special "mipsisa64" handling.
1286 (mipsisa64*-*-linux64): Handle as target linux64.
1287 (mipsisa64*-*-*): Handle as target embed64.
1288
1289 2003-08-18 Michael Chastain <mec@shout.net>
1290
1291 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1292 objfile bug.
1293
1294 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1295
1296 * i387-tdep.h: Update copyright date.
1297 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1298
1299 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1300 CFLAGS games to reflect reality.
1301
1302 2003-08-24 Andrew Cagney <cagney@redhat.com>
1303
1304 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1305 GDB_MULTI_ARCH is always non-zero.
1306 * osabi.c (_initialize_gdb_osabi): Ditto.
1307 (gdbarch_init_osabi): Ditto.
1308 * sparc-tdep.c: Ditto for #if code.
1309
1310 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1311
1312 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1313 Update comments.
1314 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1315 comments.
1316 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1317 x86_64_supply_fxsave.
1318 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1319 x86_64_supply_fxsave.
1320 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1321 x86_64_supply_fxsave.
1322
1323 2003-08-23 Andreas Jaeger <aj@suse.de>
1324
1325 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1326 i387_supply_fxsave.
1327
1328 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1329
1330 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1331 i387_supply_register.
1332 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1333 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1334 i387_supply_fsave.
1335 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1336 i387_supply_fxsave.
1337 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1338 i387_supply_fsave.
1339 * i386bsd-nat.c (supply_fpregset): Adjust call to
1340 i387_supply_fsave.
1341 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1342 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1343 supply_fpregset.
1344 (store_inferior_registers): Remove extraneous whitespace. Call
1345 i387_fill_fsave instead of fill_fpregset.
1346 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1347 (supply_fpregset): Likewise.
1348 * i386v4-nat.c (supply_fpregset): Adjust call to
1349 i387_supply_fsave.
1350 * i386-interix-nat.c (supply_fpregset): Adjust call to
1351 i387_supply_fsave.
1352 * i386-linux-nat.c (supply_fpregset): Adjust call to
1353 i387_supply_fsave.
1354 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1355 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1356 i387supply_fsave and i387_supply_fxsave.
1357 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1358 Incorporate code from `i387_supply_register.
1359 (i387_supply_register): Remove.
1360 (i387_supply_fxsave): Add `regnum' argument.
1361 Update comments.
1362 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1363 prototype.
1364 (i387_supply_register): remove prototype.
1365 Update comments.
1366
1367 2003-08-22 Michael Chastain <mec@shout.net>
1368
1369 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1370 Add lines for files in gdb/testsuite/gdb.cp/* that are
1371 still not 8.3 unique.
1372
1373 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1374
1375 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1376 TYPE_VPTR_FIELDNO is valid.
1377
1378 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1379
1380 * utils.c (set_width_command): Remove prototypes.
1381 (set_screen_size): New prototype.
1382 (init_page_info): Simplify by fetching the screen size from
1383 Readline. Call set_screen_size.
1384 (set_screen_size): New function.
1385 (set_width): Add missing whitespace in comment.
1386 (set_width_command): Call set_screen_size.
1387 (set_height_command): New function.
1388 (initialize_utils): Fix formatting. Make "set height" command
1389 call set_height_command. Remove redundant code that turns off
1390 pagination if output isn't a terminal. Remove redundant call to
1391 set_width_command.
1392
1393 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1394
1395 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1396 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1397 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1398 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1399 `case' keyword.
1400 (sparc64_register_info): Give the reister with number
1401 SPARC64_STATE_REGNUM a name.
1402 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1403 %asi and %ccr.
1404 (sparc64_push_dummy_call): Take BIAS into account when checking
1405 stcak alignment.
1406 (sparc_software_single_step): Remove assertions that check whether
1407 NPC and NNPC were zero.
1408 (sparc_supply_rwindow): Make public. Merge functionality with
1409 sparc64_supply_rwindow.
1410 (sparc_fill_rwindow): Make public. Merge functionality with
1411 sparc64_fill_rwindow.
1412 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1413 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1414 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1415 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1416 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1417
1418 * reggroups.c: Add whitespace after declarations of local
1419 variables in functions.
1420
1421 2003-08-21 Michael Chastain <mec@shout.net>
1422
1423 * gdbtypes.h: Change array bound type from an int to enum.
1424
1425 2003-08-21 Andrew Cagney <cagney@redhat.com>
1426
1427 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1428 * config/sparc/tm-sparc.h: Ditto.
1429 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1430 unconditionally.
1431 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1432
1433 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1434
1435 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1436 (register_objfile_data, set_objfile_data, objfile_data): New
1437 prototypes.
1438 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1439 prototypes.
1440 (allocate_objfile): Call objfile_alloc_data.
1441 (free_objfile): Call objfile_free_data.
1442 (struct objfile_data): New.
1443 (struct objfile_data_registration): New.
1444 (struct objfile_data_registry): New.
1445 (objfile_data_registry): New variable.
1446 (register_objfile_data): New function.
1447 (objfile_alloc_data, objfile_free_data): New functions.
1448 (set_objfile_data, objfile_data): New functions.
1449 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1450 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1451 (_initialize_dwarf2_frame): New function and prototype.
1452
1453 2003-08-21 Andrew Cagney <cagney@redhat.com>
1454
1455 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1456 a specific architecture.
1457 * arch-utils.h (set_architecture_from_arch_mach): Delete
1458 declaration.
1459 (target_architecture_hook): Delete declaration.
1460 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1461 (default_float_format): Assume GDB_MULTI_ARCH.
1462 (default_double_format): Assume GDB_MULTI_ARCH.
1463 (set_endian_from_file): Delete function.
1464 (arch_ok): Delete function.
1465 (set_arch): Delete function.
1466 (set_architecture_from_arch_mach): Delete function.
1467 (set_architecture_from_file): Delete function.
1468 (set_architecture): Assume GDB_MULTI_ARCH.
1469 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1470
1471 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1472
1473 Rewrite FreeBSD/sparc64 native configuration.
1474 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1475 * sparc64fbsd-nat.c: New file.
1476 * sparc64fbsd-tdep.c: New file.
1477 * sparc64-tdep.c sparc64-tdep.h: New files.
1478 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1479 sparc64fbsd-tdep.o): New dependencies.
1480 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1481 and sparc64fbsd-tdep.c.
1482 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1483 * config/sparc/fbsd.mh: Remove copyright notice.
1484 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1485 sparcbsd-nat.o.
1486 * config/sparc/fbsd.mt: Remove copyright notice.
1487 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1488 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1489 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1490 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1491 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1492 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1493 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1494 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1495 "sparc/tm-sp64.h".
1496 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1497 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1498
1499 2003-08-21 Michael Chastain <mec@shout.net>
1500
1501 * symtab.h: Add doco on the space critical structures and
1502 some measurements of space usage.
1503
1504 2003-08-21 Michael Snyder <msnyder@redhat.com>
1505
1506 * tracepoint.c (trace_dump_command): Trace break address
1507 is subject to DECR_PC_AFTER_BREAK.
1508 (set_traceframe_context): Make "trace_line" an int.
1509 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1510
1511 2003-08-20 Michael Snyder <msnyder@redhat.com>
1512
1513 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1514 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1515 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1516 argument passing.
1517 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1518 functions, replace sh_push_dummy_call.
1519 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1520
1521 2003-08-20 Michael Chastain <mec@shout.net>
1522
1523 * gdbtypes.h (struct main_type): Rearrange to save space.
1524
1525 2003-08-20 Michael Snyder <msnyder@redhat.com>
1526
1527 * trad-frame.c: Comment typo fix.
1528
1529 2003-08-20 Michael Snyder <msnyder@redhat.com>
1530 Kevin Buettner <kevinb@redhat.com>
1531
1532 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1533 (frv_frame_init_saved_regs): Add declaration.
1534 (frame_extra_info): Add new field ``saved_regs''.
1535 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1536 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1537 Update frame related code.
1538 (frv_extract_struct_value_address): Adjust formatting.
1539 * Makefile.in (frv-tdep.o): Update dependencies.
1540 * config/frv/tm-frv.h (target_insert_watchpoint)
1541 (target_remove_watchpoint, target_insert_hw_breakpoint)
1542 (target_remove_hw_breakpoint): Delete these macros.
1543 (remote_insert_watchpoint, remote_remove_watchpoint)
1544 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1545 these declarations.
1546
1547 2003-08-20 Michael Chastain <mec@shout.net>
1548
1549 * defs.h (ENUM_BITFIELD): New macro.
1550 * symtab.h (ENUM_BITFIELD): Use it.
1551 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1552
1553 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1554
1555 * MAINTAINERS (write after approval): Add myself.
1556
1557 2003-08-18 Andrew Cagney <cagney@redhat.com>
1558
1559 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1560 * gdbarch.h, gdbarch.c: Re-generate.
1561 * infcall.c (call_function_by_hand): Adjust the SP by
1562 frame_red_zone_size before allocating any stack space.
1563 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1564 * x86-64-tdep.c (x86_64_frame_align): New function.
1565 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1566
1567 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1568 Remove code adjusting SP so that it skips over the Red Zone.
1569
1570 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1571
1572 * NEWS (New native configurations): Mention FreeBSD/amd64.
1573
1574 2003-08-18 Andrew Cagney <cagney@redhat.com>
1575
1576 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1577 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1578 "m68k_frame_p".
1579 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1580
1581 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1582
1583 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1584
1585 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1586
1587 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1588 Define.
1589 * i386-linux-nat.c: Include "linux-nat.h".
1590 (child_post_startup_inferior): New function.
1591
1592 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1593
1594 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1595 at the start of a frameless function. This probably fixes PR
1596 backtrace/1338.
1597
1598 2003-08-17 Michael Chastain <mec@shout.net>
1599
1600 * symfile.c (find_sym_fns): Remove special case for apollo target.
1601
1602 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1603
1604 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1605 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1606 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1607 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1608 (linux_supports_tracevforkdone): New function.
1609 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1610 TRACEVFORKDONE.
1611 (child_follow_fork): Handle vfork.
1612 (linux_handle_extended_wait): Likewise. Also handle exec.
1613 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1614 * NEWS: Mention fork tracing.
1615
1616 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1617
1618 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1619
1620 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1621
1622 * Makefile.in (i386-linux-nat.o): Update dependencies.
1623 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1624 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1625 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1626 * i386-linux-nat.c: Include "linux-nat.h".
1627 (child_post_startup_inferior): New function.
1628 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1629 * infptrace.c (kill_inferior): Wrap in #ifdef.
1630 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1631 attaching to each LWP.
1632 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1633 (init_lin_lwp_ops): Fill in some more operations.
1634 * linux-nat.h (linux_enable_event_reporting)
1635 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1636 prototypes.
1637 * linux-nat.c (linux_enable_event_reporting): New function.
1638 (child_post_attach, linux_child_post_startup_inferior)
1639 (child_post_startup_inferior, child_follow_fork)
1640 (linux_handle_extended_wait, kill_inferior): New functions.
1641
1642 2003-08-16 Andrew Cagney <cagney@redhat.com>
1643
1644 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1645 * gdbarch.h, gdbarch.c: Re-generate.
1646
1647 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1648
1649 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1650
1651 2003-08-16 Andrew Cagney <cagney@redhat.com>
1652
1653 * NEWS: Mention that "set prompt-escape-char" was deleted.
1654 * top.c (get_prompt_1): Delete function.
1655 (gdb_prompt_escape):
1656 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1657 prompt-escape-char" command.
1658 (MAX_PROMPT_SIZE): Delete macro.
1659 (get_prompt): Simplify, do not call get_prompt_1.
1660
1661 2003-08-16 Andrew Cagney <cagney@redhat.com>
1662
1663 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1664 -Werror. -Wformat-nonliteral problems.
1665
1666 2003-08-15 J. Brobecker <brobecker@gnat.com>
1667
1668 Further multiarching work mostly for hppa64-*-hpux11:
1669 * hppa-tdep.h: New file.
1670 * hppa-tdep.c: #include hppa-tdep.c.
1671 (hppa32_num_regs): Renamed from hppa_num_regs.
1672 (hppa64_num_regs): New constant.
1673 (hppa64_call_dummy_breakpoint_offset): New constant.
1674 (hppa32_call_dummy_length): New constant.
1675 (hppa64_call_dummy_length): New constant.
1676 (hppa32_stack_align): Make name 32bit explicit.
1677 (hppa32_register_virtual_type): Likewise.
1678 (hppa32_extract_return_value): Likewise.
1679 (hppa32_use_struct_convention): Likewise.
1680 (hppa32_store_return_value): Likewise.
1681 (hppa64_register_virtual_type): New function.
1682 (hppa64_extract_return_value): New function.
1683 (hppa64_use_struct_convention): New function.
1684 (hppa64_store_return_value): New function.
1685 (hppa_frame_locals_address): Remove declaration, function does
1686 not exist anymore.
1687 (hppa_register_byte): Add support for PA64 ABI.
1688 (hppa_gdbarch_init): Add support for PA64 ABI.
1689 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1690 Make name 32bit explicit.
1691 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1692 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1693 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1694 (hppa64_hpux_frame_base_before_sigtramp): New function.
1695 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1696 * config/pa/tm-hppa64.h: Remove macros that are no longer
1697 necessary now that the gdbarch vector is properly setup.
1698 Transform some macros into function calls. Some minor cleanup.
1699 * config/pa/tm-hppah.h: Update function calls in macros
1700 following the function renaming in hppa-hpux-tdep.c.
1701 * Makefile.in (hppa_tdep_h): New variable.
1702 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1703
1704 2003-08-14 Michael Snyder <msnyder@redhat.com>
1705
1706 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1707
1708 2003-08-13 J. Brobecker <brobecker@gnat.com>
1709
1710 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1711 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1712 routine.
1713
1714 2003-08-13 Michael Snyder <msnyder@redhat.com>
1715
1716 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1717 (frv_saved_pc_after_call): Use deprecated ftype.
1718 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1719 (frv_remote_translate_xfer_address): Remove.
1720 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1721
1722 2003-08-13 J. Brobecker <brobecker@gnat.com>
1723
1724 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1725 initialization after the common gdbarch initialization, not before.
1726
1727 2003-08-13 J. Brobecker <brobecker@gnat.com>
1728
1729 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1730 (ADDR_BITS_REMOVE): Remove, redundant.
1731
1732 2003-08-13 J. Brobecker <brobecker@gnat.com>
1733
1734 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1735 gdbarch method to clear the 2 low bits of text addresses.
1736
1737 2003-08-12 Andrew Cagney <cagney@redhat.com>
1738
1739 * Makefile.in (dsrec.o): Update dependencies.
1740 * dsrec.c: Include "gdb_assert.h".
1741 (make_srec): Use snprintf instead of sprintf, use a literal format
1742 string.
1743
1744 2003-08-12 Andrew Cagney <cagney@redhat.com>
1745
1746 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1747 FRAME_OBSTACK_ZALLOC.
1748
1749 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1750
1751 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1752 SSE registers.
1753
1754 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1755
1756 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1757 amd64fbsd_sc_reg_offset): Add extern declarations.
1758 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1759 declarations.
1760
1761 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1762
1763 * MAINTAINERS (write after approval): Update my mail address.
1764
1765 2003-08-10 Andrew Cagney <cagney@redhat.com>
1766
1767 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1768
1769 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1770
1771 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1772 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1773 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1774 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1775 i386bsd_sc_reg_offset): Add extern declarations.
1776 * i386obsd-nat.c: Include "i386-tdep.h"
1777 (_initialize_i386obsd_nat): Remove extern declarations.
1778 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1779 declarations.
1780 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1781 declarations.
1782
1783 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1784 instead of frame_read_register.
1785 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1786 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1787 SP_REGNUM.
1788 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1789 instead of frame_unwind_unsigned_register. Use
1790 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1791 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1792 instead of read_register. Use builtin_type_void_data_ptr instead
1793 of builtin_type_void_func_ptr when extracting the address of the
1794 jmp_buf.
1795 (i386_extract_return_value, i386_store_return_value,
1796 i386_pseudo_register_read, i386_pseudo_register_write): Use
1797 register_size instead REGISTER_RAW_SIZE.
1798
1799 2003-08-10 Andrew Cagney <cagney@redhat.com>
1800
1801 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1802 sprintf. Make "name" constant.
1803
1804 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1805
1806 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1807 instead of frame_read_register.
1808 (i387_print_float_info): Use get_frame_register and
1809 get_frame_register_unsigned instead of frame_register_read.
1810
1811 * i386fbsd-nat.c: Include "i386-tdep.h".
1812 (child_resume): Make `eflags' an ULONGEST. Use
1813 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1814 instead of register_read and register_write.
1815
1816 * i386bsd-nat.c (fetch_inferior_registers,
1817 store_inferior_registers): Don't use && at the end of a line.
1818 (_initialize_i386bsd_nat): Fix typo.
1819
1820 * frame.c (_initialize_frame): Add missing backslash.
1821
1822 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1823 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1824 and supply_register instead of manipulating the register buffer
1825 directly.
1826
1827 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1828 * config/i386/nm-i386sol2.h
1829 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1830
1831 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1832 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1833 instructions that GCC likes to mingle into the prologue. Fixes
1834 gdb/1253 and gdb/1255.
1835
1836 2003-08-09 Andrew Cagney <cagney@redhat.com>
1837
1838 Fix GDB PR cli/926.
1839 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1840 * command.h (add_setshow_uinteger_cmd): Declare.
1841 * frame.c (set_backtrace_cmd): New function.
1842 (show_backtrace_cmd): New function.
1843 * frame.c (_initialize_frame): Replace "set/show
1844 backtrace-below-main" with "set/show backtrace past-main". Add
1845 command "set/show backtrace limit".
1846 (backtrace_past_main): Rename "backtrace_below_main".
1847 (backtrace_limit): New variable.
1848 (get_prev_frame): Update. Check the backtrace_limit.
1849
1850 2003-08-09 Andrew Cagney <cagney@redhat.com>
1851
1852 * defs.h (xstrprintf): Declare.
1853 * utils.c (xstrprintf): New function.
1854 * breakpoint.c (insert_breakpoints): Replace sprintf and
1855 non-literal format strings, with xstrprintf and cleanups.
1856 (delete_breakpoint,breakpoint_re_set): Ditto.
1857 (commands_command, insert_breakpoints): Ditto.
1858 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1859 (break_at_finish_command_1): Ditto.
1860
1861 2003-08-09 Andrew Cagney <cagney@redhat.com>
1862
1863 * MAINTAINERS (language support): List Adam Fedor as Objective C
1864 maintainer.
1865
1866 2003-08-08 J. Brobecker <brobecker@gnat.com>
1867
1868 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1869 are now multiarched.
1870
1871 2003-08-08 J. Brobecker <brobecker@gnat.com>
1872
1873 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1874 longer necessary now that hppa64 is partially multiarch'ed.
1875
1876 2003-08-08 Andrew Cagney <cagney@redhat.com>
1877
1878 * interps.c (interp_set): Check for a NULL "old_interp".
1879
1880 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1881
1882 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1883 (install-only): Support DESTDIR.
1884 (uninstall): Likewise.
1885 (install-gdbtk): Likewise.
1886
1887 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1888
1889 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1890 contains something meaningful at all times.
1891
1892 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1893
1894 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1895
1896 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1897
1898 * MAINTAINERS (write after approval): Added self.
1899
1900 2003-08-07 Andrew Cagney <cagney@redhat.com>
1901
1902 * inferior.h (AT_SYMBOL): Define.
1903 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1904 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1905 * mips-tdep.c (mips_call_dummy_address): Delete function.
1906 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1907 set call_dummy_address.
1908
1909 2003-08-07 Andrew Cagney <cagney@redhat.com>
1910
1911 * language.c (op_error): Delete function.
1912 (binop_type_check): Delete function.
1913 * language.h (type_op_error, range_op_error): Delete macros.
1914 (op_error): Delete declaration.
1915
1916 2003-08-07 Andrew Cagney <cagney@redhat.com>
1917
1918 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1919
1920 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1921
1922 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1923 (x86_64_push_arguments): Skip the red zone.
1924
1925 2003-08-05 Andrew Cagney <cagney@redhat.com>
1926
1927 * reggroups.c (reggroup_next): Check for the final entry.
1928
1929 2003-08-04 Andrew Cagney <cagney@redhat.com>
1930
1931 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1932 * cli/cli-script.c (define_command): Call query directly, instead
1933 of passing it a buffer.
1934 * ocd.c (ocd_error): Pass error a constant format string.
1935 * remote-mips.c (mips_error): Use fputs_filtered.
1936
1937 * solib-svr4.c (_initialize_svr4_solib): Update
1938 register_gdbarch_data call.
1939 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1940
1941 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1942 (register_gdbarch_data): Delete "free" parameter. Update
1943 comments.
1944 * gdbarch.h, gdbarch.c: Re-generate.
1945 * reggroups.c (_initialize_reggroup): Update.
1946 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1947 * frame-base.c (_initialize_frame_base): Update.
1948 * frame-unwind.c (_initialize_frame_unwind): Update.
1949 * user-regs.c (_initialize_user_regs): Update.
1950 * remote.c (_initialize_remote): Update.
1951 * regcache.c (_initialize_regcache): Update.
1952
1953 * regcache.c (xfree_regcache_descr): Delete function.
1954 (_initialize_regcache): Update call to register_gdbarch_data.
1955 (init_regcache_descr, init_legacy_regcache_descr): Use
1956 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1957
1958 * remote.c (free_remote_state): Delete function.
1959 (_initialize_remote): Update register_gdbarch_data.
1960 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1961 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1962
1963 2003-08-04 Andrew Cagney <cagney@redhat.com>
1964
1965 * reggroups.c (struct reggroup_el): Define.
1966 (struct reggroups): Delete field "nr_group". Replace array
1967 "group" with a "first" to "last" linked list.
1968 (reggroups_init): Update. Allocate using gdbarch's obstack.
1969 (reggroups_free): Delete function.
1970 (add_group): Update. Add "el" parameter.
1971 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1972 (default_groups): Update.
1973 (reggroup_next): Replace reggroups.
1974 (reggroups_dump): Update.
1975 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1976 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1977 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1978
1979 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1980
1981 * Makefile.in (tui-interp.o): Update dependencies.
1982
1983 2003-08-04 David Carlton <carlton@kealia.com>
1984
1985 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1986 to internal_error call.
1987 * source.c (forward_search_command): Add "%s" format argument.
1988 (reverse_search_command): Ditto.
1989 * top.c (quit_confirm): Ditto.
1990 * cli/cli-setshow.c (do_setshow_command): Ditto.
1991 * cp-valprint.c (cp_print_class_method): Replace
1992 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1993 (cp_print_class_member): Ditto.
1994 * event-top.c (command_line_handler): Ditto.
1995 * linux-proc.c (linux_info_proc_cmd): Ditto.
1996 * p-typeprint.c (pascal_type_print_base): Ditto.
1997 * p-valprint.c (pascal_object_print_class_method): Ditto.
1998 (pascal_object_print_class_member): Ditto.
1999 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2000 * remote.c (remote_cisco_section_offsets): Ditto.
2001 * top.c (command_line_input): Ditto.
2002 * utils.c (vwarning,error_stream,quit): Ditto.
2003 * valprint.c (print_floating,print_binary_chars)
2004 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2005
2006 2003-08-04 Andrew Cagney <cagney@redhat.com>
2007
2008 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2009
2010 2003-08-02 Andrew Cagney <cagney@redhat.com>
2011
2012 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2013 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2014 amd64fbsd-nat.c.
2015
2016 2003-08-02 Andrew Cagney <cagney@redhat.com>
2017
2018 * Makefile.in: Update all dependencies and definitions.
2019
2020 2003-08-02 Adam Fedor <fedor@gnu.org>
2021
2022 * linespec.c (is_objc_method_format): New function
2023 (decode_line_1, locate_first_half): Use it.
2024 Fixes PR objc/1298
2025
2026 2003-08-01 Andrew Cagney <cagney@redhat.com>
2027
2028 * NEWS: Mention that m32r is multi-arch.
2029 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2030 * configure.tgt: Recognize m32r-*-*.
2031 * config/m32r/tm-m32r.h: Delete file.
2032 * config/m32r/m32r.mt: New file.
2033 * m32r-rom.c (m32r_upload_command): Use hostent only when
2034 gethostname succeeds, in order to avoid a compilation
2035 warning.
2036 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2037 compiler warning.
2038
2039 2003-08-01 Michael Snyder <msnyder@redhat.com>
2040
2041 * sh-tdep.c (sh_frame_align): New gdbarch method.
2042 (sh_gdbarch_init): Set up frame_align method.
2043
2044 2003-07-31 Michael Snyder <msnyder@redhat.com>
2045
2046 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2047 which is already covered by the new frames infrastructure.
2048
2049 2003-07-31 Andrew Cagney <cagney@redhat.com>
2050
2051 * user-regs.c (struct user_reg): Add "next" link.
2052 (struct user_regs): Replace "user" with "first" and "last" links.
2053 (append_user_reg): Add pre-allocated "reg" parameter.
2054 (builtin_user_regs): Provide initial value for "last".
2055 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2056 (user_regs_init): Allocate memory from the gdbarch obstack.
2057 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2058 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2059 linked list.
2060 (usernum_to_user_reg): New function.
2061 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2062 (value_of_user_reg): Use usernum_to_user_reg.
2063 (user_regs_free): Delete function.
2064 (_initialize_user_regs): Update register_gdbarch_data call.
2065
2066 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2067
2068 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2069
2070 2003-07-30 Michael Snyder <msnyder@redhat.com>
2071
2072 * value.h (value_being_returned): Add a struct_addr argument.
2073 * infcall.c (call_function_by_hand): Pass struct_addr to
2074 value_being_returned.
2075 * infcmd.c (print_return_value): Pass zero as struct_addr.
2076 * values.c (value_being_returned): If struct_addr is passed,
2077 use it instead of trying to recover it from the inferior.
2078
2079 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2080
2081 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2082 the prologue analyzer won't need to attempt to extract the pc
2083 value from the woefully incomplete dummy frame.
2084 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2085 possible. Disable code which modifies the frame.
2086
2087 2003-07-28 Andrew Cagney <cagney@redhat.com>
2088
2089 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2090 to level 2.
2091 (annotate_breakpoints_table, annotate_record): Ditto.
2092 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2093 (annotate_field_name_end, annotate_field_value): Ditto.
2094 (annotate_field_end, annotate_frame_source_begin): Ditto.
2095 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2096 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2097 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2098 (annotate_frame_address_end, annotate_frame_address): Ditto.
2099 (annotate_frame_args, annotate_frame_end): Ditto.
2100 (annotate_frame_where, annotate_arg_begin): Ditto.
2101 (annotate_arg_name_end, annotate_arg_value): Ditto.
2102 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2103 (annotate_function_call, annotate_signal_name): Ditto.
2104 (annotate_signal_string, annotate_signal_name_end): Ditto.
2105 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2106 (annotate_value_begin, annotate_value_history_value): Ditto.
2107 (annotate_value_history_end, annotate_value_end): Ditto.
2108 (annotate_display_begin, annotate_display_number_end): Ditto.
2109 (annotate_display_format, annotate_display_expression): Ditto.
2110 (annotate_display_expression_end, annotate_display_value): Ditto.
2111 (annotate_display_end, annotate_array_section_begin): Ditto.
2112 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2113 (annotate_elt, annotate_array_section_end): Ditto.
2114
2115 2003-07-28 Andrew Cagney <cagney@redhat.com>
2116
2117 * regcache.c (struct regcache_descr): Update comments on
2118 nr_raw_registers.
2119 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2120 sizeof_raw_register_valid_p.
2121 (init_regcache_descr): Set nr_raw_registers and
2122 sizeof_raw_register_valid_p before calling
2123 init_legacy_regcache_descr.
2124
2125 2003-07-28 Andrew Cagney <cagney@redhat.com>
2126
2127 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2128 MOD NUM_REGS.
2129
2130 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2131
2132 * thread.c (info_threads_command): Use get_selected_frame ().
2133 Check that there is at least one non-sentinel frame.
2134
2135 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2136
2137 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2138 (m68hc11_pop_frame): Remove.
2139 (m68hc11_frame_saved_pc): Remove.
2140 (m68hc11_frame_chain): Remove.
2141 (m68hc11_frame_init_saved_regs): Remove.
2142 (m68hc11_init_extra_frame_info): Remove.
2143 (m68hc11_store_struct_return): Remove.
2144 (m68hc11_saved_pc_after_call): Remove.
2145
2146 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2147
2148 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2149 frame unwind information.
2150 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2151 and adapted for frame unwinding.
2152 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2153 (m68hc11_unwind_pc): New function.
2154 (m68hc11_frame_unwind_cache): New function to analyze frames.
2155 (m68hc11_frame_this_id): New function to create new frame struct.
2156 (m68hc11_frame_prev_register): New function to unwind a register from
2157 the frame.
2158 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2159 (m68hc11_frame_p): New function for the above.
2160 (m68hc11_frame_base_address): New function to return fp of frame.
2161 (m68hc11_frame_args_address): Update for frame.
2162 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2163 (m68hc11_unwind_sp): New function.
2164 (m68hc11_unwind_dummy_id): New function.
2165 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2166 calls.
2167
2168 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2169
2170 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2171 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2172 when we are beyond the current pc.
2173
2174 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2175
2176 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2177 from m68hc11_push_arguments.
2178 (m68hc11_push_arguments): Remove.
2179 (m68hc11_push_return_address): Remove.
2180 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2181 handlers; remove deprecated_extra_stack_alignment_needed.
2182
2183 2003-07-27 Andrew Cagney <cagney@redhat.com>
2184
2185 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2186 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2187 REAL_PC and not the pointer.
2188 * hppa-hpux-tdep.c: Include frame.h
2189
2190 2003-07-27 Andrew Cagney <cagney@redhat.com>
2191
2192 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2193 GDB_MULTI_ACH_PARTIAL.
2194
2195 2003-07-27 Andrew Cagney <cagney@redhat.com>
2196
2197 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2198 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2199 operator at start and not end of line.
2200 (decode_prologue): Ditto.
2201 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2202 frame_unwind_register_unsigned instead of
2203 frame_unwind_unsigned_register.
2204 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2205 read_register.
2206 (m32r_push_dummy_call): Use register_size instead of
2207 REGISTER_RAW_SIZE.
2208 (m32r_frame_sniffer): Replace m32r_frame_p.
2209 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2210 * m32r-rom.c (report_transfer_performance): Delete extern
2211 declaration.
2212 (m32r_load, m32r_upload_command): Use print_transfer_performance
2213 instead of report_transfer_performance.
2214 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2215 / add_show_from_set.
2216
2217 2003-07-26 Andrew Cagney <cagney@redhat.com>
2218
2219 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2220 store_return_value and extract_struct_value_address.
2221
2222 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2223
2224 PR c++/1267
2225 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2226 NULL, default to the section containing PC.
2227
2228 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2229
2230 * NEWS: Mention "regs" deprecated for m68hc11 too.
2231
2232 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2233 (m68hc11_print_register): New function to print out one register.
2234 (m68hc11_print_registers_info): New function to print registers.
2235 (show_regs): Deprecate and use the above.
2236 (m68hc11_gdbarch_init): Install the print_registers_info.
2237
2238 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2239
2240 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2241 that we have a SIGTRAP before returning non-zero.
2242
2243 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2244 Elena Zannoni <ezannoni@redhat.com>
2245
2246 * linespec.c (decode_line_2): Avoid crash if
2247 find_function_start_sal() returns empty record.
2248
2249 2003-07-23 Andreas Schwab <schwab@suse.de>
2250
2251 * ia64-tdep.c (ia64_print_insn): New function.
2252 (ia64_gdbarch_init): Set print_insn to it.
2253 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2254 deprecated_tm_print_insn_info.
2255
2256 2003-07-22 Michael Snyder <msnyder@redhat.com>
2257
2258 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2259 handle 8-bit returns (long long).
2260 (h8300h_extract_return_value): Ditto.
2261 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2262
2263 2003-07-22 Andrew Cagney <cagney@redhat.com>
2264
2265 * gdbarch.c Include "gdb_obstack.h".
2266 (struct gdbarch): Add an "obstack".
2267 (alloc_gdbarch_data): Allocate the gdbarch data using
2268 GDBARCH_OBSTACK_CALLOC.
2269 (free_gdbarch_data): Delete function.
2270 (gdbarch_obstack_zalloc): New function.
2271 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2272 Assert that the architecture is not initialized.
2273 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2274 vector from the obstack.
2275 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2276 architecture obstack.
2277 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2278 (set_gdbarch_data): Assert that the data is not initialized.
2279 (struct gdbarch_data): Delete member "free".
2280 (register_gdbarch_data): Do not initialize "free".
2281 * gdbarch.h, gdbarch.c: Re-generate.
2282
2283 2003-07-22 Andrew Cagney <cagney@redhat.com>
2284
2285 * configure.in (build_warnings): Add -Wformat-nonliteral.
2286 * configure: Re-generate.
2287
2288 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2289
2290 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2291
2292 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2293
2294 * findvar.c (read_var_value): Remove case for thread local storage
2295 variables. It is now entirely handled by the dwarf2 location
2296 expression code.
2297 * printcmd.c (address_info): Ditto.
2298 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2299 enumeration value.
2300 (struct symbol): Remove objfile field, which was used by
2301 LOC_THREAD_LOCAL_STATIC only.
2302 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2303 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2304 usage of objfile pointer.
2305 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2306 thread local variables.
2307 Add include of objfiles.h.
2308 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2309 storage variables.
2310 * Makefile.in (dwarf2loc.o): Update dependencies.
2311
2312 2003-07-22 Andrew Cagney <cagney@redhat.com>
2313
2314 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2315 get_frame_base.
2316 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2317 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2318 (struct value): Add opaque declaration.
2319 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2320
2321 2003-07-21 Andrew Cagney <cagney@redhat.com>
2322
2323 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2324 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2325
2326 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2327
2328 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2329 regcache_cooked_read_unsigned instead of read_register.
2330 (m68hc11_saved_pc_after_call): Likewise.
2331 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2332 instead of write_register.
2333 (m68hc11_register_type): New function.
2334 (m68hc11_register_virtual_type): Remove.
2335 (m68hc11_store_return_value): Convert to use the regcache.
2336 (m68hc11_extract_struct_value_address): Likewise.
2337 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2338 m68hc11_register_type; undeprecate store_return_value and
2339 extract_struct_value_address.
2340
2341 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2342
2343 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2344 and translate to use regcache.
2345 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2346
2347 2003-07-18 Andrew Cagney <cagney@redhat.com>
2348
2349 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2350 * gdbarch.h, gdbarch.c: Re-generate.
2351 * i386-tdep.c (i386_gdbarch_init): Do not set
2352 DWARF2_BUILD_FRAME_INFO.
2353 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2354 unconditionally.
2355 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2356 DWARF2_BUILD_FRAME_INFO.
2357
2358 2003-07-18 Andrew Cagney <cagney@redhat.com>
2359
2360 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2361 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2362
2363 2003-07-18 Andrew Cagney <cagney@redhat.com>
2364
2365 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2366 frame_unwind_address_in_block, instead of frame_pc_unwind.
2367 (dwarf2_frame_cache): Ditto.
2368
2369 2003-07-18 Andrew Cagney <cagney@redhat.com>
2370
2371 * user-regs.h (struct gdbarch): Declare opaque.
2372 * ui-out.h (struct ui_file): Declare opaque.
2373 * dwarf2-frame.h (struct frame_info): Declare opaque.
2374
2375 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2376
2377 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2378 #include "...".
2379 (procfs_meminfo): Change strerror to safe_strerror.
2380 (procfs_can_run): Remove K&R badness.
2381
2382 2003-07-17 Michael Snyder <msnyder@redhat.com>
2383
2384 * remote-sim.c: Comment typo fix.
2385
2386 2003-07-17 Andrew Cagney <cagney@redhat.com>
2387
2388 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2389 configure.
2390 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2391 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2392 GDB_MULTI_ARCH_PARTIAL.
2393
2394 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2395
2396 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2397 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2398 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2399
2400 2003-07-16 Theodore A. Roth <troth@openavr.org>
2401
2402 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2403 found.
2404 (avr_frame_unwind_cache): Don't unwind FP for main.
2405 Update a comment.
2406 Save the computed prev_sp.
2407 (avr_saved_regs_unwinder): Remove function.
2408 (avr_frame_prev_register): Use PC unwind logic from
2409 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2410
2411 2003-07-16 Andrew Cagney <cagney@redhat.com>
2412
2413 * frame-base.h (frame_base_p_ftype): Delete definition.
2414 (frame_base_append_predicate): Delete declaration.
2415 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2416 (frame_unwind_append_predicate): Delete declaration.
2417 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2418 (append_predicate): Delete parameter "p".
2419 (frame_unwind_append_predicate): Delete function.
2420 (frame_unwind_append_sniffer): Update call to append_predicate.
2421 (frame_unwind_free): Delete function.
2422 (_initialize_frame_unwind): Pass NULL as "free" to
2423 register_gdbarch_data.
2424 (frame_unwind_init): Append the dummy_frame_sniffer.
2425 (frame_unwind_find_by_frame): Simplify.
2426 * frame-base.c (struct frame_base_table): Delete field "p".
2427 (append_predicate): Delete parameter "p".
2428 (frame_base_append_predicate): Delete function.
2429 (frame_base_append_sniffer): Update call to append_predicate.
2430 (frame_base_free): Delete function.
2431 (frame_base_find_by_frame): Simplify.
2432 (_initialize_frame_base): Pass NULL as "free" to
2433 register_gdbarch_data.
2434 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2435 (x86_64_sigtramp_frame_sniffer): Replace
2436 "x86_64_sigtramp_frame_p".
2437 (x86_64_init_abi): Set the frame unwind sniffers.
2438 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2439 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2440 (m68k_gdbarch_init): Set the frame unwind sniffers.
2441 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2442 "i386_sigtramp_frame_p".
2443 (i386_frame_sniffer): Replace "i386_frame_p".
2444 (i386_gdbarch_init): Set the frame unwind sniffers.
2445 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2446 (avr_gdbarch_init): Set the frame unwind sniffers.
2447 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2448 "alpha_sigtramp_frame_p"
2449 (alpha_heuristic_frame_sniffer): Replace
2450 "alpha_heuristic_frame_p".
2451 (alpha_gdbarch_init): Set the frame unwind sniffers.
2452 (alpha_dwarf2_init_abi): Ditto.
2453 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2454 "alpha_debug_frame_p".
2455 (alpha_mdebug_frame_base_sniffer): Replace
2456 "alpha_mdebug_frame_base_p".
2457 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2458 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2459 (d10v_gdbarch_init): Set the frame unwind sniffer.
2460 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2461 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2462 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2463 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2464 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2465 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2466
2467 2003-07-16 Michael Snyder <msnyder@redhat.com>
2468
2469 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2470 should go thru sh_dsp_register_sim_regno, else the dsp regs
2471 will not get the right values.
2472
2473 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2474
2475 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2476 deprecated_store_floating by call to store_typed_floating.
2477 (sh_sh4_register_convert_to_raw): Substitute call to
2478 deprecated_extract_floating by call to extract_typed_floating.
2479
2480 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2481
2482 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2483
2484 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2485
2486 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2487 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2488 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2489 as possible.
2490 (do_pseudo_register): Remove.
2491 (sh_push_dummy_code): New function.
2492 (sh64_store_struct_return): Rename from sh_store_struct_return.
2493 Only called for sh64 now.
2494 (sh_extract_struct_value_address): Regcache'ify.
2495 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2496 and accomodate new tasks.
2497 (sh64_push_return_address): Rename from sh_push_return_address.
2498 Only called for sh64 now.
2499 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2500 Regcache'ify.
2501 (sh3e_sh4_extract_return_value): Regcache'ify.
2502 (sh_default_store_return_value): Ditto.
2503 (sh3e_sh4_store_return_value): Ditto.
2504 (sh_default_register_byte): Remove.
2505 (sh_sh4_register_byte): Remove.
2506 (sh_default_register_raw_size): Remove.
2507 (sh_sh4_register_raw_size): Remove.
2508 (sh_register_virtual_size): Remove.
2509 (sh_sh3e_register_virtual_type): Remove.
2510 (sh_sh3e_register_type): New function.
2511 (sh_sh4_register_virtual_type): Remove.
2512 (sh_sh4_register_type): New function.
2513 (sh_default_register_virtual_type): Remove.
2514 (sh_default_register_type): New function.
2515 (do_fv_register_info): Add parameters to accomodate call from
2516 sh_print_registers_info.
2517 (do_dr_register_info): Ditto.
2518 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2519 Add parameters to accomodate call from sh_print_registers_info.
2520 (sh_do_fp_register): Ditto.
2521 (sh64_do_pseudo_register): Call do_dr_register_info,
2522 do_fv_register_info and sh_do_fp_register with default parameters.
2523 (sh_do_register): Add parameters to accomodate call from
2524 sh_print_registers_info.
2525 (sh_print_register): Ditto.
2526 (sh_print_registers_info): Rename from sh_do_registers_info.
2527 Add parameters to be used as gdbarch_print_registers_info
2528 implementation. Accomodate removed do_pseudo_register function
2529 pointer.
2530 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2531 function pointer. Call sh_print_register with default parameters.
2532 (sh64_do_registers_info): Call sh_print_registers_info instead of
2533 sh_do_registers_info.
2534 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2535 detection of deprecated vs. non-deprecated functionality.
2536 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2537 function pointer assignments by direct function calls.
2538
2539 2003-07-15 Andrew Cagney <cagney@redhat.com>
2540
2541 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2542 (frame_register_unwind, create_new_frame): Ditto.
2543 (legacy_get_prev_frame, get_frame_type): Ditto.
2544 (get_frame_base_address): Use frame_base_find_by_frame.
2545 (get_frame_locals_address): Use frame_base_find_by_frame.
2546 (get_frame_args_address): Use frame_base_find_by_frame.
2547 * frame-base.h (frame_base_sniffer_ftype): Declare.
2548 (frame_base_append_sniffer): Declare.
2549 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2550 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2551 (frame_base_append_sniffer): New function.
2552 (frame_base_append_predicate): Add a NULL sniffer.
2553 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2554 (struct frame_base_table): Add "sniffer".
2555 (frame_base_free): Free the "sniffer" table.
2556 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2557 (frame_unwind_append_sniffer): Declare.
2558 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2559 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2560 (struct frame_unwind_table): Add "sniffer", delete "middle".
2561 (append_predicate): Add "sniffer" parameter, append the sniffer.
2562 (frame_unwind_init): Update append_predicate call.
2563 (frame_unwind_append_sniffer): New function.
2564 (frame_unwind_append_predicate): Update append_predicate call.
2565 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2566
2567 2003-07-15 Andrew Cagney <cagney@redhat.com>
2568
2569 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2570 before code inhibiting repeated unwind attempts. Add to
2571 commentary on that test's problems.
2572 * blockframe.c (inside_main_func): Look for "main" in the minimal
2573 symbol table.
2574 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2575 identical.
2576
2577 2003-07-15 Andrew Cagney <cagney@redhat.com>
2578
2579 * complaints.c (struct explanation): Define.
2580 (struct complaints): Change type of "explanation" to "struct
2581 explanation".
2582 (symfile_explanations): Convert to a "struct explanation" table.
2583 (vcomplaint): Update.
2584
2585 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2586
2587 * x86-64-linux-nat.c (regmap): Removed.
2588 (supply_gregset, fill_gregset): Call
2589 x86_64_linux_(fill,supply)_gregset functions.
2590 * x86-64-linux-tdep.c (USER_*): New defines.
2591 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2592 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2593 New functions.
2594 (fetch_core_registers): Ditto.
2595 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2596 * x86-64-linux-tdep.h: New file.
2597 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2598 and core-regset.o.
2599 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2600
2601 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2602
2603 * x86-64-tdep.c (x86_64_store_return_value): Use
2604 regcache_cooked_write_part instead of regcache_cooked_write.
2605
2606 * configure.host: Add x86_64-*-freebsd*.
2607 * configure.tgt: Add x86_64-*-freebsd*.
2608 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2609 * amd64fbsd-nat.c: New file.
2610 * amd64fbsd-tdep.c: New file.
2611 * config/i386/nm-fbsd64.h: New file.
2612 * config/i386/fbsd64.mh: New file.
2613 * config/i386/fbsd64.mt: New file.
2614
2615 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2616
2617 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2618 `sc_regs_offset' and `sc_fpregs_offset'.
2619 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2620 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2621 (alpha_sigtramp_register_address): Rewrite to use new members of
2622 `struct gdbarch_tdep'.
2623 (alpha_gdbarch_init): Initialize new members of struct
2624 gdbarch_tdep'.
2625 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2626 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2627 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2628 (alphafbsd_pc_in_sigtramp): Implement.
2629 (alphafbsd_sigtramp_offset): New function.
2630 (alphafbsd_sigcontext_addr): New function.
2631 (alphafbsd_init_abi): Initialize signal trampoline related members
2632 of `struct gdbarch_tdep'.
2633 (_initialize_alphafbsd_tdep): Add prototype.
2634
2635 2003-07-11 Theodore A. Roth <troth@openavr.org>
2636
2637 * Makefile.in (install-only): Quote sed expression when generating
2638 transformed_name.
2639
2640 2003-07-11 Richard Henderson <rth@redhat.com>
2641
2642 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2643 * dwarf2-frame.c: Include complaints.h.
2644 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2645 variable initialization; return NULL on error.
2646 (decode_frame_entry): New.
2647
2648 2003-07-11 Andrew Cagney <cagney@redhat.com>
2649
2650 * frame.h (frame_address_in_block): Delete declaration.
2651 * blockframe.c (frame_address_in_block): Delete function.
2652 (get_frame_block): Use get_frame_address_in_block.
2653 (block_innermost_frame): Ditto.
2654 * stack.c (print_frame, backtrace_command_1): Ditto.
2655
2656 * frame.h (get_frame_address_in_block): Declare.
2657 (frame_unwind_address_in_block): Declare.
2658 * frame.c (frame_unwind_address_in_block): New function.
2659 (get_frame_address_in_block): New function.
2660
2661 2003-07-10 Andrew Cagney <cagney@redhat.com>
2662
2663 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2664 pre-default. Note: re-generate has no effect.
2665
2666 2003-07-10 Andrew Cagney <cagney@redhat.com>
2667
2668 * gdbarch.sh: When a variable, but not a function, compare against
2669 0. Fix problem in previous patch.
2670 * gdbarch.c: Re-generate.
2671
2672 2003-07-10 Andrew Cagney <cagney@redhat.com>
2673
2674 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2675 functions against NULL, not 0.
2676 * gdbarch.c: Re-generate.
2677
2678 2003-07-10 Fred Fish <fnf@ninemoons.com>
2679
2680 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2681 null string instead of a null pointer.
2682 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2683
2684 2003-07-09 Michael Snyder <msnyder@redhat.com>
2685
2686 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2687
2688 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2689
2690 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2691 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2692 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2693 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2694 * x86-64-tdep.c: ... from here.
2695
2696 2003-07-09 Andreas Schwab <schwab@suse.de>
2697
2698 * m68k-tdep.h (enum struct_return): Define.
2699 (struct gdbarch_tdep): Add struct_return.
2700 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2701 bytes are padded to the right, not to the left. Pass struct value
2702 address in register %a1, not on stack.
2703 (m68k_use_struct_convention): New function.
2704 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2705 struct_return in tdep to pcc_struct_return.
2706 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2707 reg_struct_return.
2708
2709 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2710
2711 * somread.c (som_symfile_offsets): Fix compilation error.
2712
2713 2003-07-09 Andrew Cagney <cagney@redhat.com>
2714
2715 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2716 Add comments about the checks.
2717
2718 2003-07-08 Andrew Cagney <cagney@redhat.com>
2719
2720 * Makefile.in: Make dependency section headers consistent.
2721 (config_h): Move to $BUILD headers section.
2722 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2723 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2724 (ada-exp.tab.c): Move to YACC/LEX section.
2725 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2726 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2727
2728 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2729
2730 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2731 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2732 of strerror with safe_strerror, use ISO C function definitions,
2733 and replace instances of sprintf with snprintf.
2734
2735 2003-07-07 Andrew Cagney <cagney@redhat.com>
2736
2737 * frame.c (get_prev_frame): Enable check for identical frames.
2738 Update comments. Update error messages.
2739
2740 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2741
2742 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2743
2744 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2745
2746 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2747 sort_symtab_syms, no longer necessary.
2748
2749 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2750
2751 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2752
2753 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2754
2755 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2756 (mips_register_byte): Likewise.
2757
2758 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2759
2760 * Makefile.in (sparc_tdep_h): New.
2761 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2762 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2763 * sparc-linux-nat.c: Include "sparc-tdep.h".
2764 * sparc-nat.c: Likewise.
2765 * sparc-tdep.c: Likewise.
2766 * sparc64nbsd-nat.c: Likewise.
2767 * sparcnbsd-nat.c: Likewise.
2768 * sparcnbsd-tdep.c: Likewise.
2769 * sparc-tdep.h: New file.
2770 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2771 and sparc_npc_regnum.
2772
2773 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2774
2775 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2776 (mips_linux_cannot_store_register): List supported instead of
2777 unsupported registers.
2778
2779 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2780
2781 * disasm.c (dump_insns): Separate instructions from addresses.
2782
2783 2003-07-07 Andreas Schwab <schwab@suse.de>
2784
2785 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2786 dependencies.
2787 * m68k-tdep.c (NUM_FREGS): Delete.
2788 (SIG_PC_FP_OFFSET): Delete.
2789 (TARGET_M68K): Delete.
2790 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2791 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2792 P_MOVEL_SP, P_MOVEML_SP): Define.
2793 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2794 P_TRAP): Delete.
2795 (m68k_register_raw_size): Delete.
2796 (m68k_register_virtual_size): Delete.
2797 (m68k_register_type): Renamed from m68k_register_virtual_type and
2798 add gdbarch argument.
2799 (m68k_store_struct_return): Delete.
2800 (m68k_deprecated_extract_return_value): Delete.
2801 (m68k_deprecated_extract_struct_value_address): Delete.
2802 (m68k_frame_chain): Delete.
2803 (m68k_frame_saved_pc): Delete.
2804 (m68k_fix_call_dummy): Delete.
2805 (m68k_push_dummy_frame): Delete.
2806 (m68k_pop_frame): Delete.
2807 (m68k_extract_return_value): New function.
2808 (m68k_store_return_value): Rewrite using regcache.
2809 (m68k_extract_struct_value_address): Rewrite using regcache.
2810 (m68k_push_dummy_call): New function.
2811 (struct m68k_frame_cache): Define.
2812 (m68k_alloc_frame_cache): New function.
2813 (m68k_analyze_frame_setup): New function.
2814 (m68k_analyze_register_saves): New function.
2815 (m68k_analyze_prologue): New function.
2816 (m68k_skip_prologue): Rewrite using above functions.
2817 (m68k_unwind_pc): New function.
2818 (m68k_frame_cache): New function.
2819 (m68k_frame_this_id): New function.
2820 (m68k_frame_prev_register): New function.
2821 (m68k_frame_unwind): New variable.
2822 (m68k_frame_p): New function.
2823 (m68k_sigtramp_frame_cache): New function.
2824 (m68k_sigtramp_frame_this_id): New function.
2825 (m68k_sigtramp_frame_prev_register): New function.
2826 (m68k_sigtramp_frame_unwind): New variable.
2827 (m68k_sigtramp_frame_p): New function.
2828 (m68k_frame_base_address): New function.
2829 (m68k_frame_base): New function.
2830 (m68k_unwind_dummy_id): New function.
2831 (fill_gregset): Use regcache_collect.
2832 (fill_fpregset): Likewise.
2833 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2834 defined.
2835 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2836 deprecated_init_frame_pc, deprecated_store_struct_return,
2837 deprecated_extract_return_value, deprecated_store_return_value,
2838 deprecated_frame_chain, deprecated_frame_saved_pc,
2839 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2840 deprecated_register_virtual_size,
2841 deprecated_max_register_raw_size,
2842 deprecated_max_register_virtual_size,
2843 deprecated_register_virtual_type, deprecated_register_size,
2844 deprecated_register_byte, deprecated_register_bytes,
2845 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2846 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2847 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2848 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2849 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2850 deprecated_push_dummy_frame, deprecated_pop_frame,
2851 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2852 only if SYSCALL_TRAP is defined. Set extract_return_value,
2853 store_return_value, extract_struct_value_address, register_type,
2854 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2855 predicates.
2856 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2857 M68K_MAX_REGISTER_SIZE): Define.
2858 (struct m68k_sigtramp_info): Define.
2859 (struct gdbarch_tdep): Add get_sigtramp_info.
2860 * m68klinux-nat.c (fetch_register): Use register_size instead of
2861 REGISTER_RAW_SIZE. Don't put assignment in if.
2862 (store_register): Likewise.
2863 (fetch_inferior_registers): Likewise.
2864 (store_inferior_registers): Likewise.
2865 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2866 (m68k_linux_frame_saved_pc): Delete.
2867 (m68k_linux_sigcontext_reg_offset,
2868 m68k_linux_ucontext_reg_offset): Define.
2869 (m68k_linux_get_sigtramp_info): New function.
2870 (m68k_linux_extract_return_value): Rewrite using regcache.
2871 (m68k_linux_store_return_value): Likewise.
2872 (m68k_linux_extract_struct_value_address): Likewise.
2873 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2874 Don't set deprecated_frame_saved_pc,
2875 deprecated_extract_return_value, deprecated_store_return_value,
2876 deprecated_extract_struct_value_address. Set
2877 extract_return_value, store_return_value,
2878 extract_struct_value_address.
2879
2880 2003-07-07 Andrew Cagney <cagney@redhat.com>
2881
2882 * expprint.c: Include "user-regs.h" instead of "frame.h".
2883 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2884 frame_map_regnum_to_name.
2885 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2886 (frame_map_name_to_regnum): Simplify, call
2887 user_reg_map_name_to_regnum.
2888 (frame_map_regnum_to_name): Simplify, call
2889 user_reg_map_regnum_to_name.
2890 (frame_register_unwind): Update.
2891 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2892 (_initialize_frame_reg): Call user_reg_add_builtin.
2893 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2894 (value_of_register): Use value_of_user_reg.
2895 * eval.c (evaluate_subexp_standard): Update.
2896 * parse.c (write_dollar_variable): Update.
2897 * d10v-tdep.c (d10v_print_registers_info): Update.
2898 * infcmd.c (registers_info): Update.
2899 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2900 (builtin_regs_h): Delete macro.
2901 (user_regs_h): Define.
2902 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2903 (builtin-regs.o): Delete target.
2904 (user-regs.o): Specify dependencies.
2905 (expprint.o): Update dependencies.
2906 (findvar.o): Update dependencies.
2907 (frame.o): Update dependencies.
2908 (std-regs.o): Update dependencies.
2909
2910 2003-07-06 Christopher Faylor <cgf@redhat.com>
2911
2912 * win32-nat.c (solib_symbols_add): Use one variable for all section
2913 address stuff. Pass variable rather than address of variable to
2914 safe_symbol_file_add.
2915
2916 2003-07-06 Andreas Schwab <schwab@suse.de>
2917
2918 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2919
2920 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2921
2922 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2923
2924 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2925
2926 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2927
2928 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2929
2930 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2931 * config/i386/nto.mh: New file.
2932 * config/i386/nm-nto.h: New file.
2933 * configure.host: Add i[3456]86-*-nto*.
2934
2935 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2936
2937 * remote-vx.c (vx_add_symbols): Fix compilation error.
2938
2939 2003-07-03 Andrew Cagney <cagney@redhat.com>
2940
2941 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2942 * gdbarch.h, gdbarch.c: Re-generate.
2943 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2944 (legacy_register_name): Declare.
2945 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2946 (REGISTER_NAME): Define.
2947 * sparc-tdep.c (legacy_register_name): New function.
2948 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2949 (REGISTER_NAME): Define.
2950 (hppa64_register_name): Declare.
2951 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2952 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2953 (hppa64_register_name): New function.
2954 (hppa_register_name): New function.
2955 * arch-utils.c (legacy_register_name): Delete.
2956 * arch-utils.h (legacy_register_name): Delete.
2957
2958 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2959
2960 * cli/cli-interp.c (cli_interpreter_resume): Update the
2961 cli_uiout's stream to gdb_stdout.
2962
2963 2003-07-03 Andrew Cagney <cagney@redhat.com>
2964
2965 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2966 predicate.
2967 * gdbarch.h, gdbarch.c: Re-generate.
2968 * regcache.c (init_regcache_descr): Use legacy code when either
2969 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2970
2971 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2972
2973 * NEWS: Move "set logging" entry into GDB 6.0 section.
2974
2975 2003-07-02 Jim Blandy <jimb@redhat.com>
2976
2977 * s390-tdep.c (struct frame_extra_info): new member:
2978 'stack_bought_valid'.
2979 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2980 initialize fextra_info->stack_bought.
2981 (s390_frameless_function_invocation): Don't trust the value of
2982 fextra_info_ptr->stack_bought unless
2983 fextra_info->stack_bought_valid is set.
2984
2985 New S390 prologue analyzer.
2986 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2987 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2988 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2989 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2990 compute_x_addr, s390_on_stack, s390_store,
2991 s390_get_signal_frame_info): New functions.
2992 (S390_NUM_SPILL_SLOTS): New macro.
2993 (s390_get_frame_info): Rewritten.
2994 (is_arg_reg): Deleted.
2995
2996 Break out the decoding of S/390 instructions into separate
2997 functions, to make it more legible, and easier to check
2998 against the spec.
2999 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3000 is_rx, is_rxe): New functions.
3001 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3002 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3003 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3004 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3005 enums for opcode values. (Is this an improvement?)
3006
3007 2003-07-02 Andrew Cagney <cagney@redhat.com>
3008
3009 * i386-tdep.c: Revert change committed as part of trad-frame code
3010 below.
3011
3012 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3013
3014 * breakpoint.c (insert_catchpoint): Make static.
3015
3016 2003-07-02 Andreas Schwab <schwab@suse.de>
3017
3018 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3019 former ia64_push_arguments and ia64_push_return_address, and use
3020 regcache functions instead of read/write_register.
3021 (ia64_gdbarch_init): Set push_dummy_call instead of
3022 deprecated_push_arguments and deprecated_push_return_address.
3023
3024 2003-07-01 Andreas Jaeger <aj@suse.de>
3025
3026 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3027 before the call.
3028 Set %rax only to number of SSE registers used.
3029
3030 2003-07-01 Andrew Cagney <cagney@redhat.com>
3031
3032 * trad-frame.h: Update comments, a -1 .addr is reserved.
3033 (trad_frame_value_p, trad_frame_addr_p): Declare.
3034 (trad_frame_reg_p): Declare.
3035 (trad_frame_set_value): Rename trad_frame_register_value.
3036 (trad_frame_set_unknown): Declare.
3037 * trad-frame.c (trad_frame_realreg_p): New function.
3038 (trad_frame_addr_p, trad_frame_value_p): New function.
3039 (trad_frame_set_unknown): New function.
3040 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3041 (trad_frame_prev_register): Use trad_frame_realreg_p,
3042 trad_frame_addr_p and trad_frame_value_p.
3043 (trad_frame_set_value): Rename trad_frame_register_value.
3044 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3045 and trad_frame_set_value.
3046
3047 2003-06-30 Jim Blandy <jimb@redhat.com>
3048
3049 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3050 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3051 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3052 for 16 registers, and then 32 more bytes.
3053 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3054 New macros.
3055 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3056 Move up in the file, since it's now used by is_simple_arg.
3057 (is_simple_arg): Don't assume registers are four bytes long.
3058 Exclude all double arguments. Extended floats are not simple
3059 args.
3060 (is_power_of_two): New function.
3061 (pass_by_copy_ref): Call is_power_of_two, and check that the
3062 length fits in a register, rather than listing all the acceptable
3063 sizes. Extended floats are not passed by reference.
3064 (s390_push_arguments): Don't assume registers are four bytes long.
3065 Reserve an argument register to point to the buffer for structures
3066 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3067 S390_STACK_FRAME_OVERHEAD.
3068
3069 2003-06-30 Andreas Schwab <schwab@suse.de>
3070
3071 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3072 format error message.
3073
3074 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3075
3076 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3077
3078 2003-06-30 David Carlton <carlton@kealia.com>
3079
3080 Band-aid for PR c++/1245.
3081 * Makefile.in (cp-support.o): Depend on complaints_h.
3082 * cp-support.c: Include complaints.h. Add declaration for
3083 find_last_component.
3084 (cp_find_first_component): Separate code into
3085 cp_find_first_component_aux.
3086 (cp_find_first_component_aux): Call demangled_name_complaint.
3087 (demangled_name_complaint): New.
3088
3089 2003-06-30 Andrew Cagney <cagney@redhat.com>
3090
3091 * remote.c (remote_write_bytes): Explicitly compute and then use
3092 the payload size. Update comments to reflect. Fixes problem of
3093 GDB not sending small packets as found by Fred Fish.
3094
3095 2003-06-30 Andrew Cagney <cagney@redhat.com>
3096
3097 * remote.c (remote_async_wait): Fix -Wformat problem.
3098
3099 2003-06-29 Andrew Cagney <cagney@redhat.com>
3100
3101 * remote.c (remote_wait): Call error, and not warning, when the
3102 packet is corrupt.
3103 (remote_async_wait): Ditto.
3104
3105 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3106
3107 * sparc-tdep.c (sparc_y_regnum): Make external again.
3108
3109 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3110
3111 * cli/cli-logging.c (pop_output_files): Add void to function
3112 definition.
3113
3114 2003-06-29 Andrew Cagney <cagney@redhat.com>
3115
3116 * frame.c (frame_register_unwind): Use unsigned char when dumping
3117 the buffer contents.
3118
3119 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3120
3121 * cli/cli-logging.c: New file.
3122 * cli-out.c (struct ui_out_data): Add original_stream.
3123 (cli_redirect): New function.
3124 (cli_ui_out_impl): Add cli_redirect.
3125 (cli_out_new): Initialize original_stream.
3126 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3127 (uo_redirect, ui_out_redirect): New.
3128 * ui-out.h (struct ui_out_impl): Add redirect member.
3129 (redirect_ftype): New.
3130 (ui_out_redirect): Add prototype.
3131 * Makefile.in: Add rules for cli-logging.c.
3132 * NEWS: Mention "set logging".
3133
3134 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3135
3136 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3137
3138 2003-06-27 Andrew Cagney <cagney@redhat.com>
3139
3140 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3141 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3142 * avr-tdep.c (avr_call_dummy_address): Delete function.
3143 (avr_gdbarch_init): Do not set call_dummy_address.
3144
3145 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3146
3147 * symfile.c (syms_from_objfile): Move variables to inner block.
3148 Move the checks for the non-mainline case a bit earlier to avoid
3149 doing some useless computations.
3150
3151 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3152
3153 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3154
3155 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3156
3157 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3158 sections.
3159
3160 2003-06-26 Michael Chastain <mec@shout.net>
3161
3162 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3163 gdb/testsuite/gdb.c++/pr-1210.exp.
3164
3165 2003-06-26 Andrew Cagney <cagney@redhat.com>
3166
3167 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3168 altivec_expression.h and altivec_registers.h.
3169
3170 2003-06-26 Andrew Cagney <cagney@redhat.com>
3171
3172 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3173 info->mach when MIPS16. Patch suggested by Fred Fish.
3174
3175 2003-06-26 Andrew Cagney <cagney@redhat.com>
3176
3177 * utils.c (internal_vproblem): Print the problem to a reason
3178 buffer and then pass to query. Make the msg variable more local.
3179
3180 2003-06-26 Andrew Cagney <cagney@redhat.com>
3181
3182 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3183 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3184 * gdbarch.h, gdbarch.c: Re-generate.
3185 * frame-base.c (default_frame_args_address): Update. Use
3186 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3187 not available.
3188 (default_frame_locals_address): Ditto for
3189 DEPRECATED_FRAME_LOCALS_ADDRESS.
3190 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3191 (vax_frame_num_args): Update.
3192 (vax_gdbarch_init): Update.
3193 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3194 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3195 * mcore-tdep.c (mcore_gdbarch_init): Update.
3196 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3197 * ia64-tdep.c (ia64_gdbarch_init): Update.
3198 * symtab.h (address_class): Update comments.
3199 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3200 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3201 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3202 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3203 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3204 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3205 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3206 * alpha-mdebug-tdep.c: Update.
3207 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3208
3209 2003-06-26 Andreas Jaeger <aj@suse.de>
3210
3211 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3212 of SSE registers so that varargs functions work. Rework handling
3213 of passing arguments on the stack.
3214 (x86_64_store_return_value): Return double and float values in SSE
3215 register.
3216
3217 2003-06-24 Michael Chastain <mec@shout.net>
3218
3219 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3220 the "constructor breakpoints ignored" bug.
3221
3222 2003-06-25 David Carlton <carlton@kealia.com>
3223
3224 * MAINTAINERS: Update e-mail address.
3225
3226 2003-06-24 Jim Blandy <jimb@redhat.com>
3227
3228 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3229
3230 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3231 function.
3232 (ppc_linux_init_abi): Register it as the
3233 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3234
3235 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3236 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3237 method.
3238
3239 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3240 (ppc64_standard_linkage_target): Use it.
3241
3242 2003-06-23 Andrew Cagney <cagney@redhat.com>
3243
3244 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3245 for 0 "int0" and 4 "int32" sized registers.
3246 * gdbtypes.c (builtin_type_int0): Define.
3247 (build_gdbtypes): Initialize builtin_type_int0.
3248 * gdbtypes.h (builtin_type_int0): Declare.
3249
3250 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3251
3252 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3253 as characters are unsigned.
3254
3255 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3256
3257 PR gdb/1179
3258 * dwarfread.c (struct_type): Skip static fields without crashing.
3259
3260 2003-06-22 Andrew Cagney <cagney@redhat.com>
3261
3262 GDB 6.0 branch created.
3263 * README: Update.
3264 * PROBLEMS: Update. Empty.
3265 * NEWS: Update.
3266
3267 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3268
3269 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3270 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3271
3272 2003-06-22 Andrew Cagney <cagney@redhat.com>
3273
3274 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3275 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3276 Velikov.
3277
3278 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3279
3280 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3281 compilers.
3282
3283 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3284
3285 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3286 argument of val_print.
3287 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3288 to the address argument of baseclass_offset or target_read_memory.
3289 Do add it to the argument of cp_print_value_fields.
3290
3291 2003-06-21 Andrew Cagney <cagney@redhat.com>
3292
3293 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3294 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3295 instead of 0..NUM_REGS.
3296 (mips_register_reggroup_p): New function.
3297 (mips_pseudo_register_write): New function.
3298 (mips_pseudo_register_read): New function.
3299 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3300 based on the register's type.
3301 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3302 cooked.
3303 (mips_get_saved_register): Simplify. Assert that REGNO is a
3304 pseudo / cooked.
3305 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3306 (mips_register_type): Replace mips_register_virtual_type. Map
3307 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3308 when available.
3309 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3310 that the register is cooked / virtual.
3311 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3312 Only get the extra info when needed.
3313 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3314 (mips32_heuristic_proc_desc): Fetch the cooked register.
3315 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3316 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3317 (mips_print_register): Use gdbarch_register_type, instead of
3318 REGISTER_VIRTUAL_TYPE.
3319 (print_gp_register_row): Use gdbarch_register_type, instead of
3320 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3321 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3322 Print the pseudo / cooked registers.
3323 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3324 Print the pseudo / cooked registers.
3325 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3326 REG_NUM is pseudo / cooked.
3327 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3328 (mips_n32n64_xfer_return_value): Ditto.
3329 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3330 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3331 (mips_register_sim_regno): New function.
3332 (mips_gdbarch_init): Set deprecated_register_byte,
3333 register_group_p, pseudo_register_write, pseudo_register_read,
3334 register_sim_regno, and num_pseudo_regs. Set register_type,
3335 instead of register_virtual_type.
3336 * Makefile.in (mips-tdep.o): Update dependencies.
3337 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3338 REGISTER_VIRTUAL_TYPE.
3339 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3340 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3341 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3342 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3343 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3344
3345 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3346
3347 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3348 * cli/cli-cmds.c: Include "gdb_vfork.h".
3349 (shell_escape): Use vfork.
3350
3351 2003-06-21 Andrew Cagney <cagney@redhat.com>
3352
3353 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3354 32 bit floating-point register saves.
3355
3356 * frame.h (deprecated_unwind_get_saved_register): Delete.
3357 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3358 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3359 and deprecated_get_next_frame_hack instead of
3360 deprecated_unwind_get_saved_register.
3361
3362 * mips-tdep.c (mips_dump_tdep): Do not print
3363 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3364
3365 * frame.c (get_frame_register): New function.
3366 (frame_unwind_register_signed): New function.
3367 (get_frame_register_signed): New function.
3368 (frame_unwind_register_unsigned): New function.
3369 (get_frame_register_unsigned): New function.
3370 * frame.h: Add comments on naming schema.
3371 (get_frame_register, frame_unwind_register_signed): Declare.
3372 (get_frame_register_signed, get_frame_register_signed): Declare.
3373 (frame_unwind_register_unsigned): Declare.
3374 (get_frame_register_unsigned): Declare.
3375
3376 2003-06-20 Theodore A. Roth <troth@openavr.org>
3377
3378 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3379
3380 2003-06-20 Theodore A. Roth <troth@openavr.org>
3381
3382 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3383 (avr_read_sp): Ditto.
3384
3385 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3386
3387 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3388 * config/arm/nm-linux.h: Likewise.
3389 * config/arm/tm-linux.h: Likewise.
3390 * config/ia64/nm-linux.h: Likewise.
3391 * config/ia64/tm-ia64.h: Likewise.
3392 * config/s390/tm-linux.h: Likewise.
3393 * config/s390/tm-s390.h: Likewise.
3394 * s390-nat.c: Likewise.
3395 * s390-tdep.c: Likewise.
3396
3397 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3398 * config/ia64/linux.mt: Likewise.
3399 * config/m68k/linux.mh: Likewise.
3400 * config/mips/linux.mt: Likewise.
3401 * config/powerpc/linux.mh: Likewise.
3402 * config/sh/linux.mt: Likewise.
3403
3404 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3405
3406 * solib.c (solib_open): Change tests for whether to search
3407 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3408 comments.
3409
3410 2003-06-19 Theodore A. Roth <troth@openavr.org>
3411
3412 * avr-tdep.c (avr_frame_address): Delete function.
3413 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3414 set_gdbarch_frame_args_address.
3415
3416 2003-06-19 Andrew Cagney <cagney@redhat.com>
3417
3418 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3419 (REGISTER_CONVERT_FROM_TYPE): Delete.
3420 (mips_register_convert_to_type): Delete declaration.
3421 (mips_register_convert_from_type): Delete declaration.
3422 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3423 kernel/.
3424
3425 2003-06-19 Michael Snyder <msnyder@redhat.com>
3426
3427 * linux-nat.h: New file.
3428 * linux-nat.c: Include linux-nat.h.
3429 * lin-lwp.c: Include linux-nat.h.
3430 Move struct lwp_info def to linux-nat.h.
3431 * linux-proc.c: Include linux-nat.h.
3432 (linux_make_note_section): Iterate over lwps instead of threads.
3433 (linux_do_thread_registers): Use lwp instead of merged pid.
3434 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3435 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3436 Add dependency on linux_nat_h.
3437
3438 2003-06-19 Theodore A. Roth <troth@openavr.org>
3439
3440 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3441
3442 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3443
3444 * varobj.c (get_type, get_target_type): Use check_typedef.
3445
3446 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3447
3448 * breakpoint.c (insert_catchpoint): Call internal_error.
3449
3450 2003-06-19 Theodore A. Roth <troth@openavr.org>
3451
3452 * avr-tdep.c (avr_push_dummy_code): Delete function.
3453 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3454
3455 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3456
3457 * arch-utils.c (default_prepare_to_proceed): Remove.
3458 (generic_prepare_to_proceed): Remove.
3459 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3460 (generic_prepare_to_proceed): Remove prototype.
3461 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3462 * gdbarch.c: Regenerate.
3463 * gdbarch.h: Regenerate.
3464 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3465 * hppah-nat.c (hppa_switched_threads): Remove.
3466 * infrun.c (prepare_to_proceed): New static function, copied from
3467 generic_prepare_to_proceed. Remove select_it argument.
3468 (proceed): Call prepare_to_proceed.
3469 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3470 variables.
3471 (ptrace_wait): Don't set the removed variables.
3472 (hppa_switched_threads): Remove.
3473 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3474 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3475 (lin_lwp_prepare_to_proceed): Remove prototype.
3476 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3477 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3478
3479 2003-06-18 Theodore A. Roth <troth@openavr.org>
3480
3481 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3482 trad-frame.h.
3483 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3484 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3485 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3486 (AVR_PROLOGUE_*): Enumerate prologue types.
3487 (struct frame_extra_info): Remove.
3488 (struct avr_unwind_cache): Define.
3489 (avr_write_sp): Delete function.
3490 (avr_read_fp): Ditto.
3491 (avr_init_extra_frame_info): Ditto.
3492 (avr_pop_frame): Ditto.
3493 (avr_frame_saved_pc): Ditto.
3494 (avr_saved_pc_after_call): Ditto.
3495 (avr_push_return_address): Ditto.
3496 (avr_frame_chain): Ditto.
3497 (avr_store_struct_return): Ditto.
3498 (avr_push_arguments): Ditto.
3499 (avr_scan_prologue): Update comments. Changed to set up the info for
3500 cache unwinding. Now returns end of prologue PC.
3501 (avr_skip_prologue): Better handling of functions lacking a prologue
3502 by using avr_scan_prologue.
3503 (avr_scan_arg_moves): New function.
3504 (avr_saved_regs_unwinder): Ditto.
3505 (avr_frame_unwind_cache): Ditto.
3506 (avr_unwind_pc): Ditto.
3507 (avr_frame_this_id): Ditto.
3508 (avr_frame_prev_register): Ditto.
3509 (avr_frame_p): Ditto.
3510 (avr_frame_base_address ): Ditto.
3511 (avr_unwind_dummy_id): Ditto.
3512 (avr_push_dummy_code): Ditto.
3513 (push_stack_item): Ditto.
3514 (pop_stack_item): Ditto.
3515 (avr_push_dummy_call): Ditto.
3516 (struct stack_item): Define.
3517 (avr_frame_unwind): Declare structure.
3518 (avr_frame_base): Ditto.
3519 (avr_gdbarch_init): Remove calls to
3520 set_gdbarch_deprecated_init_frame_pc,
3521 set_gdbarch_deprecated_target_read_fp,
3522 set_gdbarch_deprecated_dummy_write_sp,
3523 set_gdbarch_deprecated_fp_regnum,
3524 set_gdbarch_deprecated_push_arguments,
3525 set_gdbarch_deprecated_push_return_address,
3526 set_gdbarch_deprecated_pop_frame,
3527 set_gdbarch_deprecated_store_struct_return,
3528 set_gdbarch_deprecated_frame_init_saved_regs,
3529 set_gdbarch_deprecated_init_extra_frame_info,
3530 set_gdbarch_deprecated_frame_chain,
3531 set_gdbarch_deprecated_frame_saved_pc,
3532 set_gdbarch_deprecated_saved_pc_after_call.
3533 Add calls to set_gdbarch_push_dummy_call,
3534 set_gdbarch_push_dummy_code,
3535 frame_unwind_append_predicate,
3536 frame_base_set_default,
3537 set_gdbarch_unwind_dummy_id,
3538 set_gdbarch_unwind_pc.
3539 Wrap a long line.
3540
3541 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3542
3543 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3544 registers for H8/300S.
3545 (h8300_print_registers_info): Ditto.
3546 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3547
3548 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3549
3550 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3551 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3552 (lin_lwp_wait): Likewise. Update comments.
3553 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3554 (pull_pid_from_list, linux_record_stopped_pid): New.
3555
3556 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3557
3558 * ada-lang.c (scan_discrim_bound): Name first argument.
3559 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3560 declared by ALL_BLOCK_SYMBOLS.
3561
3562 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3563
3564 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3565 ("regcache.h"): Include it.
3566 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3567
3568 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3569
3570 * NEWS: Mention gdbserver detach change and "disconnect" command.
3571 * infcmd.c (disconnect_command): New function.
3572 (_initialize_infcmd): Add ``disconnect'' command.
3573 * remote.c (remote_async_detach): Delete.
3574 (remote_detach): Merge remote_async_detach.
3575 (remote_disconnect): New.
3576 (init_remote_ops): Set to_disconnect.
3577 (init_remote_cisco_ops): Likewise.
3578 (init_remote_async_ops): Likewise. Use remote_detach.
3579 * target.c (cleanup_target): Default to_disconnect.
3580 (update_current_target): Inherit to_disconnect.
3581 (target_disconnect, debug_to_disconnect): New functions.
3582 (setup_target_debug): Set to_disconnect.
3583 * target.h (struct target_ops): Add to_disconnect.
3584 (target_disconnect): Add prototype.
3585
3586 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3587
3588 * breakpoint.c (insert_catchpoint): New function.
3589 (insert_breakpoints): Use catch_exceptions to call
3590 insert_catchpoint. Disable catchpoints if they fail to insert.
3591
3592 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3593
3594 * symfile.c (reread_symbols): Clear sym_private.
3595
3596 2003-06-17 Andrew Cagney <cagney@redhat.com>
3597
3598 * trad-frame.h (struct frame_info): Add opaque declaration.
3599 * remote-fileio.h (struct cmd_list_element): Add opaque
3600 declaration.
3601 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3602 comments.
3603
3604 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3605
3606 * remote.c (remote_prepare_to_store): Replace call to
3607 deprecated_read_register_bytes with multiple regcache_raw_read
3608 calls.
3609
3610 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3611
3612 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3613 (nto_find_and_open_solib): Likewise.
3614 (nto_init_solib_absolute_prefix): Likewise.
3615 (_initialize_nto_tdep): Fix indentation.
3616
3617 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3618
3619 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3620
3621 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3622
3623 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3624
3625 2003-06-17 Jim Blandy <jimb@redhat.com>
3626
3627 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3628
3629 2003-06-16 Theodore A. Roth <troth@openavr.org>
3630
3631 * avr-tdep.c (avr_extract_return_value): New function.
3632 (avr_gdbarch_init): Set extract_return_value method.
3633
3634 2003-06-16 Andrew Cagney <cagney@redhat.com>
3635
3636 * frame.h (deprecated_get_next_frame_hack): Declare.
3637 * frame.c (legacy_saved_regs_prev_register): Only require
3638 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3639 there are always saved regs.
3640 (deprecated_generic_get_saved_register): Do not require
3641 DEPRECATED_FRAME_INIT_SAVED_REGS.
3642 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3643 use frame ID unwind instead.
3644 (deprecated_get_next_frame_hack): New function.
3645
3646 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3647
3648 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3649 (h8300_push_dummy_call): ...this function. Some minor optimization.
3650 (h8300_push_return_address): Remove.
3651 (h8300_gdbarch_init): Remove calls to
3652 set_gdbarch_deprecated_dummy_write_sp,
3653 set_gdbarch_deprecated_push_arguments and
3654 set_gdbarch_deprecated_push_return_address.
3655 Add call to set_gdbarch_push_dummy_call.
3656
3657 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3658
3659 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3660 (E_PSEUDO_EXR_REGNUM): Ditto.
3661 (h8300_is_argument_spill): Check for instructions moving argument
3662 registers into safe registers.
3663 (h8300_skip_prologue): Check for stm instruction to push registers
3664 used for register variables onto stack.
3665 (gdb_print_insn_h8300): Remove.
3666 (h8300_examine_prologue): Add a comment.
3667 (h8300_register_name): Take pseudo registers into account.
3668 (h8300s_register_name): Ditto.
3669 (h8300sx_register_name): Ditto.
3670 (h8300_print_register): Ditto.
3671 (h8300_print_registers_info): Define "nice" printing order.
3672 (h8300_saved_pc_after_call): Take pseudo registers into account.
3673 (h8300_register_type): Ditto. Return type used for remote connection
3674 when requesting real CCR or EXR register, return actual type when
3675 requesting pseudo CCR or EXR.
3676 (h8300_pseudo_register_read): New function.
3677 (h8300_pseudo_register_write): Ditto.
3678 (h8300_dbg_reg_to_regnum): Ditto.
3679 (h8300s_dbg_reg_to_regnum): Ditto.
3680 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3681 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3682 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3683 set_gdbarch_print_insn architecture dependent.
3684 Call set_gdbarch_pseudo_register_read and
3685 set_gdbarch_pseudo_register_write.
3686 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3687
3688 2003-06-16 Andrew Cagney <cagney@redhat.com>
3689
3690 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3691 * gdbarch.h, gdbarch.c: Re-generate.
3692 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3693 * s390-tdep.c (s390_gdbarch_init): Update.
3694 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3695 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3696 * mips-tdep.c (mips_gdbarch_init): Update.
3697 * mcore-tdep.c (mcore_gdbarch_init): Update.
3698 * cris-tdep.c (cris_gdbarch_init): Update.
3699 * infcall.c (call_function_by_hand): Update.
3700 * ia64-tdep.c (ia64_push_arguments): Update comment.
3701 * frame.c (legacy_get_prev_frame): Do not assume
3702 SAVE_DUMMY_FRAME_TOS_P.
3703 * dummy-frame.c (find_dummy_frame): Update comment.
3704
3705 2003-06-16 Andrew Cagney <cagney@redhat.com>
3706
3707 * regcache.c (do_cooked_read): Do not use register_valid_p.
3708
3709 2003-06-15 Theodore A. Roth <troth@openavr.org>
3710
3711 * avr-tdep.c (avr_register_type): Remove a blank line.
3712 (avr_scan_prologue): Correct some comments.
3713
3714 2003-06-15 Theodore A. Roth <troth@openavr.org>
3715
3716 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3717 prologue types.
3718 Properly scan prologues generated by gcc with the -mcall-prologues
3719 option.
3720 Add code to scan -mcall-prologues for mega devices.
3721
3722 2003-06-15 Theodore A. Roth <troth@openavr.org>
3723
3724 * avr-tdep.c (avr_register_byte): Delete function.
3725 (avr_register_raw_size): Delete function.
3726 (avr_register_virtual_size): Delete function.
3727 (avr_register_virtual_type): Delete function.
3728 (avr_register_type): New function.
3729 (avr_address_to_pointer): Remove unused code.
3730 (avr_read_fp): Need to read FP as two separate bytes due to change to
3731 avr_register_type() usage.
3732 (avr_gdbarch_init): Don't set deprecated_register_size.
3733 Don't set deprecated_register_bytes.
3734 Don't set deprecated_register_byte.
3735 Don't set deprecated_register_raw_size.
3736 Don't set deprecated_max_register_raw_size.
3737 Don't set deprecated_register_virtual_size.
3738 Don't set deprecated_max_register_virtual_size.
3739 Don't set deprecated_register_virtual_type.
3740 Set register_type method.
3741
3742 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3743
3744 * Makefile.in (linux-nat.o): Add rule.
3745 * linux-nat.c: New file.
3746 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3747 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3748 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3749 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3750 * config/arm/linux.mh (NATDEPFILES): Likewise.
3751 * config/i386/linux.mh (NATDEPFILES): Likewise.
3752 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3753 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3754 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3755 * config/mips/linux.mh (NATDEPFILES): Likewise.
3756 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3757 * config/s390/s390.mh (NATDEPFILES): Likewise.
3758 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3759
3760 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3761
3762 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3763 replace out-of-date comment.
3764
3765 2003-06-15 Andrew Cagney <cagney@redhat.com>
3766
3767 * rdi-share/host.h (Fail): Change to a varargs function.
3768 * remote-rdi.c (Fail): Update.
3769
3770 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3771
3772 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3773 (i386_convert_register_p, i386_register_to_value,
3774 i386_register_from_value): Handle types longer than 8 bytes.
3775
3776 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3777
3778 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3779 Move floating-point code to new function in i387-tdep.c.
3780 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3781 New functions containing code moved here from i386-tdep.c.
3782 * i387-tdep.h: Add opaque declaration for `struct type'.
3783 (i387_register_to_value, i387_value_to_register): New prototypes.
3784 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3785 (x86_64_init_abi): Set convert_register_p, register_to_value and
3786 value_to_register here.
3787
3788 2003-06-14 Andrew Cagney <cagney@redhat.com>
3789
3790 * mips-tdep.c (mips_register_to_value): Make static.
3791 (mips_value_to_register): Make static.
3792 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3793 * ia64-tdep.c (ia64_register_raw_size): Make static.
3794 (ia64_register_virtual_size): Make static.
3795 (ia64_register_byte): Make static.
3796 * i387-tdep.c: Include "i387-tdep.h".
3797 (print_387_control_word): Delete function.
3798 (print_387_status_word): Delete function.
3799 (print_387_status_bits): Delete function.
3800 (print_387_control_bits): Delete function.
3801 * Makefile.in (i387-tdep.o): Update dependencies.
3802 * rdi-share/host.h (Fail): Declare.
3803 * remote-rdi.c (Fail): Update to match declaration.
3804
3805 2003-06-14 Andrew Cagney <cagney@redhat.com>
3806
3807 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3808 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3809 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3810 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3811 * README: Delete reference to remote-array.
3812 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3813 (remote-array.o): Delete target.
3814 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3815 * remote-array.c: Delete file.
3816
3817 2003-06-14 Andrew Cagney <cagney@redhat.com>
3818 Mark Kettenis <kettenis@gnu.org>
3819
3820 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3821 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3822 parameter with "frame".
3823 * gdbarch.h, gdbarch.c: Re-generate.
3824 * frame.h (put_frame_register): Declare.
3825 * frame.c (put_frame_register): New function.
3826 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3827 (legacy_register_to_value): Rewrite, use "frame" to get the
3828 register value.
3829 (legacy_value_to_register): Rewrite, use "frame" to find the
3830 register's location before storing.
3831 * arch-utils.h (legacy_convert_register_p): Update.
3832 (legacy_register_to_value, legacy_value_to_register): Update.
3833 * findvar.c (value_from_register): Rewrite, eliminate use of
3834 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3835 "frame" to REGISTER_TO_VALUE.
3836 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3837 lval_reg_frame_relative + lval_register branch of the switch. Do
3838 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3839 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3840 I386_EDI_REGNUM): New defines.
3841 (i386_next_regnum, i386_convert_register_p,
3842 i386_register_to_value, i386_value_to_register): New functions.
3843 (i386_register_convertible, i386_register_convert_to_virtual,
3844 i386_convert_to_raw): Remove functions.
3845 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3846 value_to_register instead of register_convertible,
3847 register_convert_to_virtual and register_convert_to_raw.
3848 * mips-tdep.c (mips_convert_register_p): New function.
3849 (mips_value_to_register): Replace mips_register_convert_from_type.
3850 (mips_register_to_value): Replace mips_register_convert_to_type.
3851 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3852 register_to_value.
3853 * alpha-tdep.c (alpha_convert_register_p): Update.
3854 (alpha_value_to_register): Update, store the register.
3855 (alpha_register_to_value): Update, fetch the register.
3856
3857 2003-06-14 Theodore A. Roth <troth@openavr.org>
3858
3859 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3860 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3861 Don't set deprecated_call_dummy_words.
3862 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3863 Don't set remote_translate_xfer_address.
3864 (avr_io_reg_read_command): Remove commented out debug printf.
3865 Wrap a long line.
3866
3867 2003-06-14 Theodore A. Roth <troth@openavr.org>
3868
3869 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3870 causes gdb to seg fault.
3871
3872 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3873
3874 * sparc-nat.c (fetch_inferior_registers): Correct
3875 a reference to "registers".
3876
3877 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3878
3879 * Makefile.in (exc_request_U_h): Define
3880 (exc_request_S_h): Likewise.
3881 (msg_reply_S_h): Likewise.
3882 (msg_U_h): Likewise.
3883 (notify_S_h): Likewise.
3884 (process_reply_S_h): Likewise.
3885 (gnu-nat.o): Depend on gdb_obstack_h
3886 * gnu-nat.c: Include "gdb_obstack.h".
3887
3888 2003-06-13 Andrew Cagney <cagney@redhat.com>
3889
3890 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3891 * gdbarch.h, gdbarch.c: Re-generate.
3892
3893 2003-06-13 Andrew Cagney <cagney@redhat.com>
3894
3895 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3896 when deprecated REGISTER macros can be deleted.
3897 * gdbarch.h, gdbarch.c: Re-generate.
3898
3899 2003-06-13 Jim Blandy <jimb@redhat.com>
3900
3901 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3902 Linux entry point symbols for _dl_debug_state, too.
3903
3904 2003-06-13 Andrew Cagney <cagney@redhat.com>
3905
3906 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3907 available, do not use the FP register, and always save the TOS.
3908 * dummy-frame.c (dummy_frame_this_id): Do not assert
3909 SAVE_DUMMY_FRAME_TOS.
3910 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3911 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3912 (i386_push_dummy_call): Add 8 to the returned SP.
3913 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3914 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3915 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3916 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3917 (x86_64_push_dummy_call): Return "sp + 16".
3918 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3919 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3920 save_dummy_frame_tos.
3921
3922 2003-06-13 Jim Blandy <jimb@redhat.com>
3923
3924 * frv-tdep.c (frv_use_struct_convention): Delete static
3925 declaration for function deleted in my change of 2003-06-12.
3926
3927 2003-06-13 Theodore A. Roth <troth@openavr.org>
3928
3929 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3930 (avr_pointer_to_address): Shift code addrs left 1 bit.
3931 (avr_convert_from_func_ptr_addr): Delete function since operation is
3932 better handled by avr_address_to_pointer and avr_pointer_to_address.
3933 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3934
3935 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3936
3937 From Kelley Cook <kelleycook@wideopenwest.com>:
3938 * configure.host: Accept i[34567]86 variants.
3939 * configure.tgt: Likewise.
3940 * nlm/configure.in: Likewise.
3941 * nlm/configure: Regenerated.
3942
3943 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3944
3945 * arm-tdep.c (solib-svr4.h): Dont' include it.
3946 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3947 * arm-linux-tdep.c: ... here. Make static.
3948 (arm_linux_init_abi): Register it.
3949 (solib-svr4.h): Include it.
3950 * Makefile.in: Update dependencies.
3951 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3952 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3953
3954 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3955
3956 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3957 indicate registers used for return values.
3958 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3959 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3960 members.
3961 (h8300_init_extra_frame_info): Ditto.
3962 (h8300_frame_locals_address): Removed.
3963 (h8300_frame_args_address): Removed.
3964 (h8300_extract_return_value): Use new regcache structure. Only care
3965 for 16 bit CPUs.
3966 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3967 (h8300_store_return_value): Use new regcache structure. Only care
3968 for 16 bit CPUs.
3969 (h8300h_store_return_value): Same function for 32 bit CPUs.
3970 (h8300_store_struct_return): Removed.
3971 (h8300_extract_struct_value_address): Use new regcache structure.
3972 (h8300h_extract_struct_value_address): Removed.
3973 (h8300_push_dummy_code): New function.
3974 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3975 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3976 set_gdbarch_store_return_value architecture dependent.
3977 Call set_gdbarch_push_dummy_code and
3978 set_gdbarch_extract_struct_value_address.
3979 Remove calls to set_gdbarch_frame_args_address,
3980 set_gdbarch_frame_locals_address,
3981 set_gdbarch_deprecated_store_struct_return,
3982 set_gdbarch_deprecated_extract_return_value,
3983 set_gdbarch_deprecated_extract_struct_value_address,
3984 set_gdbarch_deprecated_call_dummy_words and
3985 set_gdbarch_deprecated_sizeof_call_dummy_words.
3986
3987 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3988
3989 * h8300-tdep.c (h8300_register_byte): Remove.
3990 (h8300h_register_byte): Remove.
3991 (h8300_register_virtual_type): Remove. Substitute by...
3992 (h8300_register_type): New function.
3993 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3994 (h8300h_extract_struct_value_address): Ditto.
3995 (h8300_gdbarch_init): Drop calls to
3996 set_gdbarch_deprecated_register_byte and
3997 set_gdbarch_deprecated_register_virtual_type.
3998 Add call to set_gdbarch_register_type.
3999
4000 2003-06-13 Andrew Cagney <cagney@redhat.com>
4001
4002 * gdbarch.sh: Update comments on registers.
4003 (deprecated_register_byte): Rename register_byte.
4004 (deprecated_register_raw_size): Rename register_raw_size.
4005 (deprecated_register_virtual_size): Rename register_virtual_size.
4006 (deprecated_register_virtual_type): Rename register_virtual_type.
4007 * gdbarch.h, gdbarch.c: Re-generate.
4008 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4009 * vax-tdep.c (vax_gdbarch_init): Update.
4010 * v850-tdep.c (v850_gdbarch_init): Update.
4011 * sparc-tdep.c (sparc_gdbarch_init): Update.
4012 * sh-tdep.c (sh_gdbarch_init): Update.
4013 * s390-tdep.c (s390_gdbarch_init): Update.
4014 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4015 * ns32k-tdep.c: Update.
4016 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4017 * mips-tdep.c (mips_gdbarch_init): Update.
4018 * mcore-tdep.c (mcore_gdbarch_init): Update.
4019 * m68k-tdep.c (m68k_gdbarch_init): Update.
4020 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4021 * ia64-tdep.c (ia64_gdbarch_init): Update.
4022 * hppa-tdep.c (hppa_gdbarch_init): Update.
4023 * h8300-tdep.c (h8300_gdbarch_init): Update.
4024 * frv-tdep.c (frv_gdbarch_init): Update.
4025 * cris-tdep.c (cris_gdbarch_init): Update.
4026 * avr-tdep.c (avr_gdbarch_init): Update.
4027 * alpha-tdep.c (alpha_gdbarch_init): Update.
4028 * arm-tdep.c (arm_gdbarch_init): Update.
4029
4030 2003-06-13 Andrew Cagney <cagney@redhat.com>
4031
4032 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4033 mips_o32_use_struct_convention with always_use_struct_convention.
4034
4035 2003-06-12 David Carlton <carlton@kealia.com>
4036
4037 * cp-namespace.c (cp_set_block_scope): Comment out
4038 processing_has_namespace_info branch.
4039
4040 2003-06-12 Jim Blandy <jimb@redhat.com>
4041
4042 Recognize and skip 64-bit PowerPC Linux linkage functions.
4043 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4044 insn_pattern, insns_match_pattern, d_field, ds_field): New
4045 functions, macros, and types for working with PPC instructions.
4046 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4047 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4048 ppc64_skip_trampoline_code): New functions, variables, and macros
4049 for recognizing and skipping linkage functions.
4050 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4051 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4052
4053 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4054 register offsets for both the 32- and 64-bit interfaces.
4055
4056 Actually finish the job started by my change of 2003-05-29.
4057 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4058 other #definition of this.
4059 (ppc_linux_skip_trampoline_code): Remove declaration.
4060 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4061 static.
4062 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4063 method for GDBARCH.
4064
4065 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4066 'long' on ppc64-*-linux*.
4067
4068 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4069 isn't #defined, assume the register doesn't exist: act as if
4070 tdep->ppc_mq_regnum were -1.
4071
4072 * configure.host, configure.tgt: Add entries for
4073 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4074 powerpc/linux.mt.
4075 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4076 New files.
4077
4078 * arch-utils.c (always_use_struct_convention): New function.
4079 * arch-utils.h (always_use_struct_convention): New prototype.
4080 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4081 (alpha_gdbarch_init): Register always_use_struct_convention,
4082 instead of alpha_use_struct_convention.
4083 * cris-tdep.c (cris_use_struct_convention): Delete.
4084 (cris_gdbarch_init): Register always_use_struct_convention,
4085 instead of cris_use_struct_convention.
4086 * frv-tdep.c (frv_use_struct_convention): Delete.
4087 (frv_gdbarch_init): Register always_use_struct_convention,
4088 instead of frv_use_struct_convention.
4089 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4090 (h8300_gdbarch_init): Register always_use_struct_convention,
4091 instead of h8300_use_struct_convention.
4092 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4093 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4094 instead of mips_o32_use_struct_convention.
4095
4096 2003-06-12 Andrew Cagney <cagney@redhat.com>
4097
4098 * wince.c: Include "mips-tdep.h".
4099 * mips-tdep.h (mips_next_pc): Declare.
4100 * mcore-tdep.c: Make more local functions static.
4101 * Makefile.in (wince.o): Update dependencies.
4102
4103 2003-06-12 David Carlton <carlton@kealia.com>
4104
4105 * symtab.c (lookup_symbol_aux_minsyms): Replace
4106 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4107 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4108 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4109 SYMBOL_NATURAL_NAME.
4110
4111 2003-06-12 Andreas Schwab <schwab@suse.de>
4112
4113 * Makefile.in (tuiDisassem.o): Update dependencies.
4114
4115 2003-06-12 David Carlton <carlton@bactrian.org>
4116
4117 * symtab.h: Delete declaration of make_symbol_overload_list.
4118 Add declaration of lookup_partial_symbol.
4119 * symtab.c (remove_params): Move to cp-support.c.
4120 (overload_list_add_symbol, make_symbol_overload_list)
4121 (sym_return_val_size, sym_return_val_index): Ditto.
4122 (lookup_partial_symbol): Make extern.
4123 * cp-support.h: Add declaration of make_symbol_overload_list.
4124 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4125 symtab.h, and block.h.
4126 (remove_params): Move here from symtab.c.
4127 (overload_list_add_symbol, make_symbol_overload_list)
4128 (sym_return_val_size, sym_return_val_index): Ditto.
4129 * valops.c: Include cp-support.h.
4130 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4131 frame_h, and block_h.
4132 (valops.o): Depend on cp_support_h.
4133
4134 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4135
4136 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4137 substitute by NUM_REGS throughout.
4138 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4139 (h8300s_register_name): New function for H8S registers.
4140 (h8300sx_register_name): Ditto for H8SX registers.
4141 (h8300_print_register): Revise register printing, avoid depending
4142 on 32 bit long.
4143 (h8300_register_byte): Only care for H8/300 registers.
4144 (h8300h_register_byte): New function for any other architecture.
4145 (h8300_register_raw_size): Remove.
4146 (h8300_register_virtual_type): Revise to return actually useful
4147 type.
4148 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4149 (h8300h_extract_struct_value_address): New function for any other
4150 architecture.
4151 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4152 set_gdbarch_register_name, set_gdbarch_register_byte,
4153 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4154 Remove calls to set_gdbarch_deprecated_register_size,
4155 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4156 set_gdbarch_deprecated_max_register_raw_size,
4157 set_gdbarch_register_virtual_size and
4158 set_gdbarch_deprecated_max_register_virtual_size entirely.
4159 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4160 set_gdbarch_long_double_bit.
4161
4162 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4163
4164 * doublest.c (convert_doublest_to_floatformat): When dealing
4165 with the implied integer bit, only alter mant_bits if we are
4166 processing a full 32 bits of mantissa.
4167
4168 2003-06-11 David Carlton <carlton@bactrian.org>
4169
4170 * dictionary.h: New.
4171 * dictionary.c: New.
4172 * block.h: Add opaque declaration for struct dictionary.
4173 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4174 'sym' members.
4175 (BLOCK_DICT): New macro.
4176 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4177 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4178 BLOCK_SHOULD_SORT.
4179 (ALL_BLOCK_SYMBOLS): Update definition.
4180 * Makefile.in (SFILES): Add dictionary.c.
4181 (dictionary_h): New.
4182 (COMMON_OBS): Add dictionary.o.
4183 (dictionary.o): New.
4184 (ada-lang.o): Depend on dictionary_h.
4185 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4186 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4187 (mi-cmd-stack.o): Ditto.
4188 (gdbtk-cmds.o): Update dependencies.
4189 (gdbtk-stack.o): Ditto.
4190 * ada-lang.c: Include dictionary.h.
4191 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4192 (fill_in_ada_prototype, debug_print_block): Ditto.
4193 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4194 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4195 'is_sorted'.
4196 * mdebugread.c: Include dictionary.h.
4197 (struct parse_stack): Delete 'maxsyms' member.
4198 (parse_symbol): Update calls to new_block. Delete calls to
4199 shrink_block. Use dictionary methods.
4200 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4201 Update calls to new_symtab. Don't maintain maxsyms data.
4202 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4203 (add_symbol): Just call dict_add_symbol.
4204 (new_symtab): Delete 'maxsyms' argument.
4205 (new_symtab): Update calls to new_block.
4206 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4207 (shrink_block): Delete function.
4208 (fixup_sigtramp): Update call to new_block. Add symbol via
4209 dict_add_symbol.
4210 * jv-lang.c: Include dictionary.h.
4211 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4212 appropriately. Set class_symtab->free_func. Make sure the
4213 blockvector is big enough to hold two blocks.
4214 (add_class_symtab_symbol): Use dictionary methods.
4215 (free_class_block): New function.
4216 (type_from_class): Replace explicit iteration by
4217 ALL_BLOCK_SYMBOLS.
4218 * symtab.h (struct symtab): Replace 'free_ptr' method by
4219 'free_func'.
4220 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4221 sort_symtab_syms.
4222 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4223 sort_symtab_syms.
4224 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4225 Include dictionary.h.
4226 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4227 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4228 sort_symtab_syms.
4229 * objfiles.c: Include dictionary.h.
4230 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4231 * buildsym.c: Include dictionary.h.
4232 (finish_block): Use dictionary methods.
4233 (end_symtab): Set free_func to NULL, not free_ptr.
4234 * tracepoint.c: Include dictionary.h.
4235 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4236 (scope_info): Ditto.
4237 * stack.c: Include dictionary.h.
4238 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4239 (print_block_frame_labels, print_frame_arg_vars)
4240 (print_frame_args): Ditto.
4241 * symmisc.c (free_symtab_block): Use dictionary methods.
4242 (dump_symtab): Ditto.
4243 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4244 Include dictionary.h.
4245 * symfile.h: Delete declarations of sort_block_syms,
4246 sort_symtab_syms.
4247 * symfile.c (sort_block_syms): Delete.
4248 (sort_symtab_syms): Delete.
4249 * symtab.c: Include dictionary.h.
4250 (lookup_block_symbol): Use dictionary iterators.
4251 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4252 (search_symbols, make_symbol_completion_list): Ditto.
4253 (make_symbol_overload_list): Ditto.
4254 * valops.c (value_of_local): Use dict_empty.
4255 Include dictionary.h.
4256
4257 2003-06-11 J. Brobecker <brobecker@gnat.com>
4258
4259 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4260
4261 2003-06-11 David Carlton <carlton@bactrian.org>
4262
4263 * block.h (BLOCK_SHOULD_SORT): Delete.
4264 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4265 blocks.
4266 * ada-lang.c (ada_add_block_symbols): Ditto.
4267 * symfile.c (sort_block_syms): Delete.
4268 (sort_symtab_syms): Ditto.
4269 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4270 declarations.
4271 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4272 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4273 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4274 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4275 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4276 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4277 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4278
4279 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4280
4281 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4282 bits to 128.
4283
4284 2003-06-11 Andrew Cagney <cagney@redhat.com>
4285
4286 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4287 REGISTER_CONVERTIBLE.
4288 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4289 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4290 * gdbarch.h, gdbarch.c: Re-generate.
4291 * arch-utils.h (deprecated_register_convertible_not): Rename
4292 generic_register_convertible_not.
4293 * arch-utils.c (deprecated_register_convertible_not): Rename
4294 generic_register_convertible.
4295 (legacy_convert_register_p, legacy_register_to_value): Update.
4296 * sh-tdep.c (sh64_push_arguments): Update.
4297 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4298 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4299 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4300 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4301 * arch-utils.c (legacy_value_to_register): Update.
4302 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4303 (rs6000_register_convert_to_raw): Make parameter "from" const.
4304 * mips-tdep.c (mips_gdbarch_init): Update.
4305 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4306 * infcmd.c (default_print_registers_info): Update.
4307 * ia64-tdep.c (ia64_gdbarch_init): Update.
4308 (ia64_register_convert_to_raw): Make parameter "from" const.
4309 * i386-tdep.c (i386_gdbarch_init): Update.
4310 (i386_register_convert_to_raw): Update.
4311
4312 2003-06-11 Andrew Cagney <cagney@redhat.com>
4313
4314 * remote-fileio.c: Include "remote-fileio.h".
4315 * Makefile.in (remote-fileio.o): Update dependencies.
4316 (remote_fileio_h): Fix typo.
4317
4318 2003-06-11 Andrew Cagney <cagney@redhat.com>
4319
4320 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4321 (xstormy16_save_dummy_frame_tos): Make static.
4322 (_initialize_xstormy16_tdep): Add declaration.
4323 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4324 * v850-tdep.c: Make local functions static.
4325 (_initialize_v850_tdep): Add declaration.
4326 * sparc-tdep.c: Make local functions static.
4327 (_initialize_sparc_tdep): Add declaration.
4328 * sh-tdep.c: Make local functions static.
4329 (_initialize_sh_tdep): Add declaration.
4330 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4331 * s390-tdep.c: Make local functions static.
4332 (_initialize_s390_tdep): Add declaration.
4333 * dbxread.c (find_stab_function_addr): Make static.
4334 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4335 * ocd.c (_initialize_remote_ocd): Add declaration.
4336 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4337 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4338 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4339 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4340 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4341 * remote-array.c (_initialize_array): Add declaration.
4342 (_initialize_remote_monitors): Add declaration.
4343 * remote-mips.c: Make local functions static.
4344 (_initialize_remote_mips): Add declaration.
4345 * mcore-tdep.c: Make all local functions static.
4346 (_initialize_mcore_tdep): Add declaration.
4347 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4348 * abug-rom.c (_initialize_abug_rom): Add declaration.
4349 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4350 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4351 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4352 * remote-est.c (_initialize_est): Add declaration.
4353 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4354 (m68hc11_call_dummy_address): Make static.
4355 * ia64-tdep.c: Make local functions static.
4356 (_initialize_ia64_tdep): Add declaration.
4357 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4358 * monitor.c (monitor_wait_filter): Make static.
4359 (_initialize_remote_monitors): Add declaration.
4360 * remote-hms.c (_initialize_remote_hms): Add declaration.
4361 * remote-e7000.c (fetch_regs_from_dump): Make static.
4362 (expect_n): Make static.
4363 (_initialize_remote_e7000): Add declaration.
4364 * ser-e7kpc.c: Always include "defs.h".
4365 (_initialize_ser_e7000pc): Add declaration.
4366 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4367 * cris-tdep.c: Make all but one function static.
4368 (_initialize_cris_tdep): Add declaration.
4369 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4370 * solib.c (update_solib_list): Make static.
4371 (_initialize_solib): Add declaration.
4372 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4373 (_initialize_avr_tdep): Add declaration.
4374 * remote-rdi.c (voiddummy): Make static.
4375 (_initialize_remote_rdi): Add declaration.
4376 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4377 * remote-rdp.c (send_rdp): Make static.
4378 (_initialize_remote_rdp): Add declaration.
4379 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4380
4381 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4382
4383 * remote-fileio.c: Make ari happy.
4384
4385 2003-06-10 J. Brobecker <brobecker@gnat.com>
4386
4387 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4388 fetching the trailing bytes of the buffer we are about to write.
4389
4390 2003-06-10 Andrew Cagney <cagney@redhat.com>
4391
4392 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4393 * Makefile.in (remote-fileio.o): Update dependencies.
4394 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4395 include <setjmp.h>, or <sys/types.h> conditional on USG.
4396 (remote_fio_jmp_buf): Delete global variable.
4397
4398 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4399 Martin M. Hunt <hunt@redhat.com>
4400
4401 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4402 (SFILES): Add remote-fileio.c.
4403 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4404 dependencies for building remote.o.
4405 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4406 * remote-fileio.h: New header file defining remote File-I/O interface.
4407 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4408 static storage class.
4409 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4410 'F' packet.
4411 (_initialize_remote): Call initialize_remote_fileio().
4412 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4413 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4414 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4415 (captured_main): Initialize new ui_files.
4416 * ui-file.c: Add read and fgets input functions.
4417 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4418 (null_file_read): New function.
4419 (ui_file_read): New function.
4420 (set_ui_file_read): New function.
4421 (stdio_file_read): New function.
4422 * ui-file.h: New type ui_file_read_ftype.
4423 (set_ui_file_read): Declare.
4424 (ui_file_read): Declare.
4425
4426 2003-06-09 Andrew Cagney <cagney@redhat.com>
4427
4428 * frame.h (deprecated_unwind_get_saved_register): Rename
4429 generic_unwind_get_saved_register, update comments.
4430 * mips-tdep.c (mips_get_saved_register): Update.
4431 * frame.c (deprecated_unwind_get_saved_register): Update.
4432
4433 2003-06-09 Andrew Cagney <cagney@redhat.com>
4434
4435 * vax-tdep.c (vax_frame_locals_address): Delete function.
4436 (vax_gdbarch_init): Do not set frame_locals_address.
4437 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4438 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4439 * s390-tdep.c (s390_frame_args_address): Delete function.
4440 (s390_gdbarch_init): Do not set frame_args_address or
4441 frame_locals_address.
4442 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4443 (ns32k_gdbarch_init): Do not set frame_locals_address.
4444 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4445 (hppa_frame_locals_address): Delete function.
4446 (hppa_gdbarch_init): Do not set frame_args_address, or
4447 frame_locals_address.
4448 * arm-tdep.c (arm_frame_args_address): Delete.
4449 (arm_frame_locals_address): Delete.
4450 (arm_gdbarch_init): Do not set frame_args_address, or
4451 frame_locals_address.
4452
4453 2003-06-09 Andrew Cagney <cagney@redhat.com>
4454
4455 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4456 * gdbarch.h, gdbarch.c: Re-generate.
4457 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4458 * arch-utils.c (frame_num_args_unknown): Delete function.
4459 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4460 (frame_info): Use FRAME_NUM_ARGS_P.
4461 * arm-tdep.c (arm_frame_num_args): Delete function.
4462 (arm_gdbarch_init): Do not set frame_num_args.
4463 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4464 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4465 (hppa_gdbarch_init): Do not set frame_num_args.
4466 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4467 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4468 frame_num_args to default frame_num_args_unknown.
4469 * v850-tdep.c (v850_gdbarch_init): Ditto.
4470 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4471 * sh-tdep.c (sh_gdbarch_init): Ditto.
4472 * s390-tdep.c (s390_gdbarch_init): Ditto.
4473 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4474 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4475 * mips-tdep.c (mips_gdbarch_init): Ditto.
4476 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4477 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4478 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4479 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4480 * i386-tdep.c (i386_gdbarch_init): Ditto.
4481 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4482 * frv-tdep.c (frv_gdbarch_init): Ditto.
4483 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4484 * cris-tdep.c (cris_gdbarch_init): Ditto.
4485 * avr-tdep.c (avr_gdbarch_init): Ditto.
4486 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4487
4488 2003-06-09 Andrew Cagney <cagney@redhat.com>
4489
4490 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4491 (print_frame_args): Moved to "stack.c".
4492 * stack.c: Include "gdb_assert.h".
4493 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4494 (print_frame_args): Moved from "printcmd.c".
4495 * frame.h (print_frame_args): Delete declaration.
4496 * Makefile.in (stack.o): Update dependencies.
4497
4498 2003-06-08 Andrew Cagney <cagney@redhat.com>
4499
4500 * frame.c (get_prev_frame): Remove reference to
4501 frame_args_address_correct in comments.
4502 * frame-base.c (default_frame_args_address): Delete code
4503 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4504 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4505 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4506 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4507 (vax_frame_args_address_correct): Delete declaration.
4508
4509 2003-06-08 Andrew Cagney <cagney@redhat.com>
4510
4511 * gdbarch.sh (UNWIND_SP): Add.
4512 * gdbarch.h, gdbarch.c: Re-generate.
4513 * frame.c (frame_sp_unwind): New function.
4514 (get_frame_sp): New function.
4515 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4516 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4517 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4518 value.
4519 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4520 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4521
4522 2003-06-08 Andrew Cagney <cagney@redhat.com>
4523
4524 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4525 REMOTE_BREAKPOINT.
4526 * remote.c: Update.
4527 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4528 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4529 * config/m68k/tm-sun3.h: Update.
4530 * config/m68k/tm-m68klynx.h: Update.
4531 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4532
4533 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4534 trad_frame". Update comments.
4535 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4536 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4537 (trad_frame_register_value, trad_frame_prev_register): Update.
4538
4539 2003-06-08 Andrew Cagney <cagney@redhat.com>
4540
4541 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4542 from GCC's acinclude.m4.
4543 * configure.in: Check for getopt's delcaration.
4544 * aclocal.m4, config.in, configure: Re-generate.
4545 * main.c (error_init): Delete declaration.
4546 * defs.h (error_init): Declare.
4547 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4548 (rs6000_convert_from_func_ptr_addr): Make static.
4549 (_initialize_rs6000_tdep): Add declaration.
4550 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4551 (show_commands, set_verbose, show_history): Delete declaration.
4552 * top.h (set_verbose): Add declaration.
4553 (show_history, set_history, show_commands): Add declaration.
4554 (do_restore_instream_cleanup): Add declaration.
4555 * objc-lang.c (specialcmp): Make static.
4556 (print_object_command): Make static.
4557 (find_objc_msgsend): Make static.
4558 (find_objc_msgcall_submethod_helper): Make static.
4559 (find_objc_msgcall_submethod): Make static.
4560 (_initialize_objc_language): Add declaration.
4561 (find_implementation_from_class): Make static.
4562 (find_implementation): Make static.
4563 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4564 * objc-lang.h (lookup_struct_typedef): Add declaration.
4565 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4566 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4567 (do_restore_user_call_depth): Make static.
4568 (do_restore_instream_cleanup): Delete declaration.
4569 (dont_repeat): Delete declaration.
4570 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4571 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4572 * reggroups.c (_initialize_reggroup): Add declaration.
4573 * cp-support.c (_initialize_cp_support): Add declaration.
4574 * cp-abi.c (_initialize_cp_abi): Add declaration.
4575 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4576 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4577 (_initialize_gnu_v3_abi): Add declaration.
4578 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4579 (_initialize_gnu_v2_abi): Add declaration.
4580 * frame-base.c (_initialize_frame_base): Add declaration.
4581 * doublest.c (floatformat_from_length): Make static.
4582 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4583 * frame.c (create_sentinel_frame): Make static.
4584 (_initialize_frame): Add declaration.
4585 * top.c (do_catch_errors): Make static.
4586 (gdb_rl_operate_and_get_next_completion): Make static.
4587 * typeprint.c: Include "typeprint.h".
4588 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4589 (sentinel_frame_this_id): Make static.
4590 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4591 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4592 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4593 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4594 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4595 * maint.c (maintenance_print_architecture): Make static.
4596 * signals/signals.c (_initialize_signals): Add declaration.
4597 * std-regs.c (_initialize_frame_reg): Add declaration.
4598 * jv-exp.y (push_variable): ISO C definition.
4599 (push_qualified_expression_name): Ditto.
4600 * memattr.c (_initialize_mem): Add declaration.
4601 * remote.c (remote_check_watch_resources): Make static.
4602 (remote_stopped_by_watchpoint): Make static.
4603 (remote_stopped_data_address): Make static.
4604 * d10v-tdep.c (nr_dmap_regs): Make static.
4605 (a0_regnum): Make static.
4606 (d10v_frame_unwind_cache): Make static.
4607 (d10v_frame_p): Make static.
4608 * osabi.c (show_osabi): Make static.
4609 (_initialize_gdb_osabi): Add extern declaration.
4610 * gdbtypes.c (make_qualified_type): Make static.
4611 (safe_parse_type): Make static.
4612 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4613 * macrotab.c (macro_bcache_free): Make static.
4614 * interps.c (interp_set_quiet): Make static.
4615 (interpreter_exec_cmd): Make static.
4616 * stack.h (select_frame_command): New file.
4617 * stack.c: Include "stack.h".
4618 (select_frame_command_wrapper): Delete function.
4619 (select_frame_command): Make global.
4620 * infcall.c: Include "infcall.h".
4621 * linespec.c: Include "linespec.h".
4622 * symfile.c (sections_overlap): Make static.
4623 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4624 * charset.c (_initialize_charset): Add missing prototype.
4625 * regcache.c (init_legacy_regcache_descr): Make static.
4626 (do_regcache_xfree): Make static.
4627 (regcache_xfer_part): Make static.
4628 (_initialize_regcache): Add missing prototype.
4629 * breakpoint.c (parse_breakpoint_sals): Make static.
4630 (breakpoint_sals_to_pc): Make static.
4631 * interps.h (clear_interpreter_hooks): ISO C declaration.
4632 * Makefile.in (stack_h): Define.
4633 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4634 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4635
4636 2003-06-08 Andrew Cagney <cagney@redhat.com>
4637
4638 * Makefile.in (d10v-tdep.o): Update dependencies.
4639 (SFILES): Add trad-frame.c.
4640 (trad_frame_h): Define.
4641 (COMMON_OBS): Add trad-frame.o.
4642 (trad-frame.o): Specify dependencies.
4643 * d10v-tdep.c: Include "trad-frame.h".
4644 (saved_regs_unwinder): Delete function.
4645 (d10v_frame_prev_register): Use trad_frame_prev_register.
4646 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4647 trad_frame", delete "regs" and "prev_sp".
4648 (prologue_find_regs): Use trad-frame.
4649 * trad-frame.h, trad-frame.c: New files.
4650
4651 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4652
4653 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4654
4655 2003-06-07 Adam Fedor <fedor@gnu.org>
4656
4657 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4658 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4659 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4660 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4661 resolve_msgsend_super, resolve_msgsend_super_stret):
4662 Use it.
4663
4664 2003-06-07 Andrew Cagney <cagney@redhat.com>
4665
4666 * symfile.h: Re-indent, clean up comments.
4667
4668 2003-06-07 Andrew Cagney <cagney@redhat.com>
4669
4670 * inferior.h (deprecated_write_sp): Replace
4671 generic_target_write_sp.
4672 * regcache.c (deprecated_write_sp): Replace
4673 generic_target_write_sp.
4674 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4675 * vax-tdep.c (vax_gdbarch_init): Update.
4676 * v850-tdep.c (v850_gdbarch_init): Update.
4677 * sparc-tdep.c (sparc_gdbarch_init): Update.
4678 * sh-tdep.c (sh_gdbarch_init): Update.
4679 * s390-tdep.c (s390_gdbarch_init): Update.
4680 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4681 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4682 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4683 * mcore-tdep.c (mcore_gdbarch_init): Update.
4684 * m68k-tdep.c (m68k_gdbarch_init): Update.
4685 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4686 * ia64-tdep.c (ia64_gdbarch_init): Update.
4687 * h8300-tdep.c (h8300_gdbarch_init): Update.
4688 * frv-tdep.c (frv_gdbarch_init): Update.
4689 * cris-tdep.c (cris_gdbarch_init): Update.
4690 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4691
4692 2003-06-07 Andrew Cagney <cagney@redhat.com>
4693
4694 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4695 Assert that PC_REGNUM is valid.
4696 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4697
4698 2003-06-07 Andrew Cagney <cagney@redhat.com>
4699
4700 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4701 * gdbarch.h, gdbarch.c: Regenerate.
4702 * mn10300-tdep.c: Include "gdb_assert.h".
4703 (mn10300_read_fp): New function.
4704 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4705 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4706 * ia64-tdep.c: Include "gdb_assert.h".
4707 (ia64_read_fp): New function.
4708 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4709 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4710 * regcache.c (generic_target_read_sp): Delete function.
4711 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4712 * inferior.h (generic_target_read_sp): Delete declaration.
4713 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4714 generic_target_read_sp.
4715 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4716 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4717 * sh-tdep.c (sh_gdbarch_init): Ditto.
4718 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4719 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4720
4721 2003-06-07 Andrew Cagney <cagney@redhat.com>
4722
4723 * gdbarch.sh: Comment each field of startup_gdbarch.
4724 * gdbarch.h, gdbarch.c: Re-generate.
4725
4726 2003-06-07 Andrew Cagney <cagney@redhat.com>
4727
4728 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4729 * gdbarch.h, gdbarch.c: Re-generate.
4730 * regcache.c: Update comments on read_pc et.al.
4731 (generic_target_read_pc): Delete function.
4732 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4733 * inferior.h (generic_target_read_pc): Delete declaration.
4734 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4735 generic_target_read_pc.
4736 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4737 * sh-tdep.c (sh_gdbarch_init): Ditto.
4738 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4739 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4740
4741 2003-06-07 Andrew Cagney <cagney@redhat.com>
4742
4743 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4744 "index" with "special_local_sect". Use strcmp instead of STREQ.
4745 Append period to coments.
4746
4747 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4748
4749 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4750 (elfstab_offset_sections): Likewise.
4751 * gdb-stabs.h (stab_section_info): Likewise.
4752 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4753 * objfiles.c (objfile_relocate): Likewise.
4754 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4755 * remote.c (get_offsets): Likewise.
4756 (remote_cisco_objfile_relocate): Likewise.
4757 * somread.c (som_symfile_offsets): Likewise.
4758 * symfile.c (alloc_section_addr_info): New function.
4759 (build_section_addr_info_from_section_tab): Use it.
4760 (free_section_addr_info): Adjust.
4761 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4762 (syms_from_objfile): Allocate local_addr dynamically.
4763 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4764 dynamically.
4765 (add_symbol_file_command): Allocate sect_opts dynamically.
4766 (reread_symbols): Avoid use of SECT_OFF_MAX.
4767 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4768 (alloc_section_addr_info): Declare it.
4769 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4770 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4771 dynamically.
4772 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4773
4774 2003-06-06 Andrew Cagney <cagney@redhat.com>
4775
4776 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4777 (d10v_frame_unwind_cache): Do not set "return_pc".
4778
4779 2003-06-06 Michael Snyder <msnyder@redhat.com>
4780
4781 * h8300-tdep.c: Make tidy (long lines).
4782
4783 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4784
4785 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4786 to regcache_collect().
4787
4788 2003-06-05 J. Brobecker <brobecker@gnat.com>
4789
4790 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4791 pc_in_sigtramp multiarch method.
4792 (hppa_hpux_som_init_abi): Use it.
4793 (hppa_hpux_elf_init_abi): Likewise.
4794 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4795 macro has been multiarched.
4796 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4797 macro here, as hppa64 isn't multiarched yet.
4798
4799 2003-06-05 Andrew Cagney <cagney@redhat.com>
4800
4801 * Makefile.in (value_h): Add $(frame_h).
4802 * value.h: Include "frame.h".
4803 (struct value): Replace "frame_addr" with "frame_id".
4804 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4805 * values.c (allocate_value): Use VALUE_FRAME_ID.
4806 (value_copy): Use VALUE_FRAME_ID.
4807 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4808 * valops.c (value_assign): Update. Use frame_find_by_id.
4809
4810 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4811
4812 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4813 in each pass.
4814
4815 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4816
4817 * thread-db.c (check_event): For create/death event breakpoints,
4818 loop through all messages to ensure that we read the message
4819 corresponding to the breakpoint we are at.
4820
4821 2003-06-04 Michael Snyder <msnyder@redhat.com>
4822
4823 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4824
4825 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4826
4827 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4828 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4829 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4830 when handling .eh_frame sections.
4831
4832 2003-06-04 J. Brobecker <brobecker@gnat.com>
4833
4834 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4835 prepare_to_proceed procedure instead of the hppa-specific one.
4836 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4837
4838 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4839
4840 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4841 * config.in: Regenerated.
4842 * configure.in: Add test for syscall function and check for
4843 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4844 * configure: Regenerated.
4845 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4846 <sys/syscall.h>.
4847 (kill_lwp): New function that uses tkill syscall or
4848 uses kill, depending on whether threading model is nptl or not.
4849 All callers of kill() changed to use kill_lwp().
4850 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4851 see if all threads have already exited in the nptl model.
4852 (stop_and_resume_callback): New callback function used by the
4853 lin_lwp_wait thread exit handling code.
4854 (stop_wait_callback): Check for threads already having exited and
4855 delete such threads fromt the lwp list when discovered.
4856 (stop_callback): Don't assert retcode of kill call.
4857
4858 Roland McGrath <roland@redhat.com>
4859 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4860 nptl libthread_db.
4861
4862 2003-06-03 Richard Henderson <rth@redhat.com>
4863
4864 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4865 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4866 (alpha_sigtramp_frame_prev_register): Likewise.
4867 (alpha_heuristic_frame_prev_register): Likewise.
4868 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4869
4870 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4871 alpha-specific register id names.
4872 (alpha_mdebug_frame_unwind_cache): Likewise.
4873 (alpha_mdebug_frame_prev_register): Likewise.
4874
4875 2003-06-03 Richard Henderson <rth@redhat.com>
4876
4877 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4878 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4879 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4880 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4881 unwind routines.
4882 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4883 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4884 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4885
4886 * alpha-linux-tdep.c: Remove unnecessary includes.
4887 * Makefile.in (alpha-linux-tdep.o): Update.
4888
4889 2003-06-03 Richard Henderson <rth@redhat.com>
4890
4891 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4892 (alphabsd_fill_fpreg): Likewise.
4893
4894 2003-06-03 J. Brobecker <brobecker@gnat.com>
4895
4896 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4897 references to struct frame_info fields by calls to the equivalent
4898 accessors. Necessary now that frame_info is opaque.
4899
4900 2003-06-03 J. Brobecker <brobecker@gnat.com>
4901
4902 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4903 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4904 structure, field no longer exists.
4905
4906 2003-06-03 J. Brobecker <brobecker@gnat.com>
4907
4908 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4909 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4910
4911 2003-06-03 J. Brobecker <brobecker@gnat.com>
4912
4913 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4914 references to struct frame_info fields by calls to the equivalent
4915 accessors. Necessary now that frame_info is opaque.
4916
4917 2003-06-03 J. Brobecker <brobecker@gnat.com>
4918
4919 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4920 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4921 structure, field no longer exists.
4922
4923 2003-06-03 Theodore A. Roth <troth@openavr.org>
4924
4925 * remote.c (init_remote_state): Compute sizeof_g_packet by
4926 accumulation of the size of all registers instead of blindly using
4927 DEPRECATED_REGISTER_BYTES.
4928
4929 2003-06-03 Michael Snyder <msnyder@redhat.com>
4930
4931 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4932 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4933 for h8300sx.
4934
4935 2003-06-03 J. Brobecker <brobecker@gnat.com>
4936
4937 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4938 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4939
4940 2003-06-03 Andrew Cagney <cagney@redhat.com>
4941
4942 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4943 (sparc_convert_to_raw): Delete function.
4944 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4945 register_convert_to_virtual.
4946
4947 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4948
4949 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4950 layer if not dealing with a statically-linked threaded program.
4951
4952 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4953
4954 * solib.c (solib_open): Update comment to reflect actual search order.
4955
4956 2003-06-03 Andrew Cagney <cagney@redhat.com>
4957
4958 * frame.c (get_frame_memory_signed): New function.
4959 (get_frame_memory, get_frame_memory_unsigned): New function.
4960 (get_frame_arch): New function.
4961 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4962 (get_frame_memory, get_frame_unsigned_memory): Declare.
4963 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4964 get_frame_memory_unsigned and get_frame_arch.
4965 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4966
4967 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4968
4969 * MAINTAINERS (write after approval): Add myself.
4970
4971 2003-06-03 Jim Blandy <jimb@redhat.com>
4972
4973 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4974 elements of gregset_t are 64 bits each, but access registers
4975 are still 32 bits, so they're packed two per gregset_t
4976 element. Unpack/pack them properly.
4977
4978 2003-06-02 David Carlton <carlton@bactrian.org>
4979
4980 * linespec.c (find_methods): Break out code into
4981 add_matching_methods and add_constructors.
4982 (add_matching_methods): New.
4983 (add_constructors): Ditto.
4984
4985 2003-06-02 Andrew Cagney <cagney@redhat.com>
4986
4987 * sparc-tdep.c (sparc_print_registers): Delete call to
4988 REGISTER_CONVERTIBLE.
4989 (sparc_gdbarch_init): Do not set register_convertible.
4990 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4991 * frv-tdep.c (frv_gdbarch_init): Ditto.
4992 * cris-tdep.c (cris_gdbarch_init): Ditto.
4993
4994 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4995
4996 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4997 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4998 (syms_from_objfile): Ditto.
4999
5000 2003-06-03 Andreas Schwab <schwab@suse.de>
5001
5002 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5003 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5004
5005 2003-06-02 Richard Henderson <rth@redhat.com>
5006
5007 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5008 a member of all_reggroup.
5009
5010 2003-06-02 Richard Henderson <rth@redhat.com>
5011
5012 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5013 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5014 (alpha_lds, alpha_sts): New.
5015 (alpha_convert_register_p): Change from _register_convertible.
5016 (alpha_register_to_value): Change from _convert_to_virtual;
5017 restructure and fail for type sizes other than 4 or 8.
5018 (alpha_value_to_register): Similarly.
5019 (alpha_extract_return_value): Use alpha_sts.
5020 (alpha_store_return_value): Use alpha_lds.
5021 (alpha_gdbarch_init): Update hooks.
5022
5023 2003-06-02 Richard Henderson <rth@redhat.com>
5024
5025 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5026 regnum identifiers.
5027 (alpha_sigtramp_register_address): Likewise.
5028
5029 2003-06-02 Richard Henderson <rth@redhat.com>
5030
5031 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5032 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5033 * alpha-tdep.h: Declare them.
5034
5035 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5036 Remove zerobuf. Don't error on UNIQUE.
5037 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5038 (ALPHA_REGSET_UNIQUE): Provide default.
5039 (supply_gregset): Use alpha_supply_int_regs.
5040 (fill_gregset): Use alpha_fill_int_regs.
5041 (supply_fpregset): Use alpha_supply_fp_regs.
5042 (fill_fpregset): Use alpha_fill_fp_regs.
5043 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5044 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5045 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5046 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5047 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5048 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5049
5050 2003-06-02 Richard Henderson <rth@redhat.com>
5051
5052 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5053
5054 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5055 (alpha_store_return_value): Likewise.
5056
5057 2003-06-02 David Carlton <carlton@math.stanford.edu>
5058
5059 * block.c (contained_in): Add 'const' to arguments.
5060 (block_function): Ditto.
5061 * block.h: Update declarations for block_function and
5062 contained_in.
5063
5064 2003-06-02 David Carlton <carlton@math.stanford.edu>
5065
5066 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5067 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5068 * p-valprint.c (pascal_val_print): Ditto.
5069 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5070
5071 2003-06-02 Richard Henderson <rth@redhat.com>
5072
5073 * alpha-tdep.c (alpha_push_dummy_call): Use
5074 builtin_type_ieee_double_little instead of builtin_type_double.
5075
5076 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5077 sign-extension of 32-bit values.
5078 (alpha_store_return_value): Similarly.
5079
5080 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5081 (alpha_extract_return_value): Likewise.
5082 (alpha_store_return_value): Likewise.
5083
5084 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5085 (alpha_store_return_value): Error on IEEE Quad floats.
5086
5087 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5088 (alpha_extract_struct_value_address): Likewise.
5089 (alpha_store_return_value): Likewise.
5090 (alpha_store_struct_return): Remove.
5091 (alpha_gdbarch_init): Update hook registration to match.
5092
5093 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5094 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5095 macros where appropriate.
5096 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5097 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5098
5099 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5100 for SP, GP; void_func_ptr for PC; non-language-specific types
5101 for all others.
5102 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5103
5104 2003-06-02 Richard Henderson <rth@redhat.com>
5105
5106 * top.h (lim_at_start): Declare.
5107 * main.c (captured_main): Set it.
5108 * top.c (lim_at_start): Define.
5109 (command_loop): Use it instead of &environ.
5110 * event-top.c (command_handler): Likewise.
5111
5112 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5113
5114 * mipsnbsd-tdep.c: Update copyright years.
5115 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5116
5117 2003-06-01 Richard Henderson <rth@redhat.com>
5118
5119 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5120 (alpha-linux-tdep.o): Update dependencies.
5121 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5122 * alpha-mdebug-tdep.c: Remove unneeded includes.
5123
5124 2003-06-01 Richard Henderson <rth@redhat.com>
5125
5126 * alpha-tdep.c (alpha_register_reggroup_p): New.
5127 (alpha_gdbarch_init): Register it.
5128
5129 2003-06-02 Andrew Cagney <cagney@redhat.com>
5130
5131 * dwarfread.c: Eliminate "register"
5132 (decode_die_type): Eliminate assignment within "if".
5133 (struct_type, decode_array_element_type): Ditto.
5134 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5135 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5136 (decode_modified_type, completedieinfo): Ditto.
5137 * block.c: Eliminate "register".
5138 (blockvector_for_pc_sect): Eliminate assignment within "if".
5139 * cp-support.h (struct symbol): Opaque declaration.
5140 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5141
5142 2003-06-01 Richard Henderson <rth@redhat.com>
5143
5144 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5145 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5146
5147 2003-06-01 Adam Fedor <fedor@gnu.org>
5148
5149 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5150 * gdbarch.[ch]: Regenerate.
5151 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5152 (hppa_gdbarch_init): Set it in the gdbarch vector.
5153 * i386-tdep.c (i386_fetch_pointer_argument): New
5154 (i386_gdbarch_init): Set it into gdbarch.
5155 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5156 (rs6000_gdbarch_init): Set it in gdbarch.
5157 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5158 (sparc_gdbarch_init): Set it in gdbarch.
5159
5160 2003-06-01 Andrew Cagney <cagney@redhat.com>
5161
5162 * defs.h (extract_address): Delete declaration.
5163 * findvar.c (extract_address): Delete function.
5164 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5165 extract_address with the inline equivalent,
5166 extract_unsigned_integer.
5167 (xstormy16_extract_struct_value_address): Ditto.
5168 (xstormy16_pointer_to_address): Ditto.
5169 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5170 * v850-tdep.c (v850_push_arguments): Ditto.
5171 (v850_extract_return_value): Ditto.
5172 (v850_extract_struct_value_address): Ditto.
5173 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5174 (sparcnbsd_get_longjmp_target_64): Ditto.
5175 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5176 (get_longjmp_target): Ditto.
5177 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5178 (sh64_extract_struct_value_address): Ditto.
5179 (sh_push_arguments): Ditto.
5180 (sh64_push_arguments): Ditto.
5181 * remote-vxsparc.c (vx_read_register): Ditto.
5182 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5183 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5184 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5185 * mipsv4-nat.c (get_longjmp_target): Ditto.
5186 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5187 * mips-nat.c (get_longjmp_target): Ditto.
5188 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5189 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5190 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5191 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5192 * irix5-nat.c (get_longjmp_target): Ditto.
5193 * irix4-nat.c (get_longjmp_target): Ditto.
5194 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5195 (ia64_push_arguments): Ditto.
5196 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5197 * h8300-tdep.c (h8300_push_arguments): Ditto.
5198 (h8300_store_return_value): Ditto.
5199 (h8300_extract_struct_value_address): Ditto.
5200 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5201 (frv_push_arguments): Ditto.
5202 * avr-tdep.c (avr_pointer_to_address): Ditto.
5203 (avr_push_arguments): Ditto.
5204 * arm-tdep.c (arm_push_dummy_call): Ditto.
5205 (arm_get_longjmp_target): Ditto.
5206 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5207 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5208 (alpha_get_longjmp_target): Ditto.
5209
5210 * solib-irix.c (extract_mips_address): Inline extract_address,
5211 replacing it with extract_signed_integer.
5212 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5213 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5214 (first_link_map_member, open_symbol_file_object): Ditto.
5215 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5216 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5217 (LM_NEXT, LM_NAME): Ditto.
5218
5219 2003-06-01 Richard Henderson <rth@redhat.com>
5220
5221 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5222 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5223 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5224 (alpha_cannot_store_register): Likewise.
5225 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5226 * alpha-nat.c (supply_gregset): Likewise.
5227 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5228
5229 2003-06-01 Andrew Cagney <cagney@redhat.com>
5230
5231 * infcall.c (call_function_by_hand): Update comment on
5232 DEPRECATED_DUMMY_WRITE_SP.
5233
5234 * mips-tdep.c (mips_gdbarch_init): Do not set
5235 deprecated_dummy_write_sp.
5236 (mips_eabi_push_dummy_call): Set the SP register.
5237 (mips_o64_push_dummy_call): Set the SP register.
5238 (mips_o32_push_dummy_call): Set the SP register.
5239 (mips_n32n64_push_dummy_call): Set the SP register.
5240
5241 2003-06-01 Richard Henderson <rth@redhat.com>
5242
5243 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5244 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5245 (supply_gregset): Likewise.
5246 * alpha-tdep.c (alpha_store_return_value): Likewise.
5247 (alpha_get_longjmp_target): Likewise.
5248 (alpha_register_name): Constify array.
5249 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5250 deprecated_register_size, deprecated_register_bytes,
5251 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5252 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5253 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5254
5255 2003-06-01 Richard Henderson <rth@redhat.com>
5256
5257 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5258 from arg_reg_buffer to regcache to avoid double conversion.
5259
5260 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5261
5262 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5263 SP_REGNUM.
5264 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5265 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5266
5267 2003-06-01 Richard Henderson <rth@redhat.com>
5268
5269 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5270 (decode_frame_entry): Set it. Skip FDE augmentation.
5271
5272 2003-06-01 Richard Henderson <rth@redhat.com>
5273
5274 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5275 not overlapping PC_REGNUM.
5276
5277 2003-06-01 Richard Henderson <rth@redhat.com>
5278
5279 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5280 alpha_push_arguments. Don't dump argument register data to
5281 the target stack. Fix float and 128-bit long double semantics.
5282 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5283 (alpha_fix_call_dummy): Remove.
5284 (alpha_call_dummy_words): Remove.
5285 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5286
5287 2003-06-01 Richard Henderson <rth@redhat.com>
5288
5289 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5290
5291 2003-06-01 Andrew Cagney <cagney@redhat.com>
5292
5293 * mips-tdep.c (is_mips16_addr): New function.
5294 (make_mips16_addr, unmake_mips16_addr): New functions.
5295 (pc_is_mips16, mips_fetch_instruction): Use.
5296 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5297 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5298 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5299 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5300 TARGET_MIPS.
5301 * config/mips/tm-mips.h: Update copyright.
5302 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5303 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5304 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5305 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5306 (TM_PRINT_INSN_MACH): Delete.
5307 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5308
5309 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5310 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5311 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5312 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5313 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5314 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5315 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5316 mips*-*-riscos* and mips*-*-sysv* onto mips.
5317 * config/mips/mips64.mt: New file.
5318 * config/mips/mips.mt: New file.
5319 * config/mips/littlemips.mt: Delete file.
5320 * config/mips/decstation.mt: Delete file.
5321 * config/mips/vr4300el.mt: Delete file.
5322 * config/mips/vr5000el.mt: Delete file.
5323 * config/mips/vr5000.mt: Delete file.
5324 * config/mips/vr4100.mt: Delete file.
5325 * config/mips/vr4xxxel.mt: Delete file.
5326 * config/mips/vr4300.mt: Delete file.
5327 * config/mips/vr4xxx.mt: Delete file.
5328 * config/mips/bigmips.mt: Delete file.
5329 * config/mips/bigmips64.mt: Delete file.
5330 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5331 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5332 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5333 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5334 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5335 "tm-bigmips.h".
5336 * config/mips/tm-irix3.h: Ditto.
5337 * config/mips/tm-mipsv4.h: Ditto.
5338 * config/mips/tm-embed.h: Ditto.
5339 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5340 "tm-bigmips64.h".
5341 * config/mips/tm-vr5000el.h: Delete file.
5342 * config/mips/tm-tx39l.h: Delete file.
5343 * config/mips/tm-vr4300el.h: Delete file.
5344 * config/mips/tm-vr4xxxel.h: Delete file.
5345 * config/mips/tm-vr4300.h: Delete file.
5346 * config/mips/tm-vr4100.h: Delete file.
5347 * config/mips/tm-vr4xxx.h: Delete file.
5348 * config/mips/tm-vr5000.h: Delete file.
5349 * config/mips/tm-embedl64.h: Delete file.
5350 * config/mips/tm-embedl.h: Delete file.
5351 * config/mips/tm-embed64.h: Delete file.
5352 * config/mips/tm-bigmips64.h: Delete file.
5353 * config/mips/tm-bigmips.h: Delete file.
5354
5355 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5356
5357 Fix gdb/1216.
5358 * shnbsd-nat.c: Include "sh-tdep.h".
5359
5360 From Richard Henderson <rth@redhat.com>:
5361 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5362
5363 2003-05-31 Andrew Cagney <cagney@redhat.com>
5364
5365 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5366 forward declaration.
5367 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5368 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5369 (mips_find_saved_regs): Use set_reg_offset.
5370 (mips_frame_init_saved_regs): Delete function.
5371 (mips_pop_frame): Call mips_find_saved_regs instead of
5372 DEPRECATED_FRAME_INIT_SAVED_REGS.
5373
5374 2003-05-31 Andrew Cagney <cagney@redhat.com>
5375
5376 * mips-tdep.c (mips_gdbarch_init): Do not set
5377 deprecated_max_register_raw_size, register_virtual_size, and
5378 deprecated_max_register_virtual_size.
5379
5380 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5381
5382 * i386-tdep.c: Include "dwarf2-frame.h".
5383 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5384 * Makefile.in (i386-tdep.o): Update dependencies.
5385
5386 * dwarf2-frame.c, dwarf2-frame.h: New files.
5387 * Makefile.in (SFILES): Add dwarf2-frame.c.
5388 (dwarf2_frame_h): Define.
5389 (COMMON_OBS): Add dwarf2-frame.o.
5390 (dwarf2-frame.o): Add dependencies.
5391
5392 2003-05-31 Andreas Jaeger <aj@suse.de>
5393
5394 * x86-64-linux-nat.c: Fix comment.
5395
5396 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5397
5398 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5399 function signature.
5400
5401 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5402 have a sigcontext_addr handler.
5403 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5404 sigcontext_addr handler.
5405
5406 2003-05-31 Andrew Cagney <cagney@redhat.com>
5407
5408 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5409 (print_fp_register_row): Replace do_fp_register_row.
5410 (mips_print_fp_register): Add "file" and "frame" parameters.
5411 (mips_print_register): Add "file" and "frame" parameters.
5412 (mips_print_registers_info): Replace mips_do_registers_info.
5413 (mips_gdbarch_init): Set print_registers_info instead of
5414 deprecated_do_registers_info.
5415 (mips_read_fp_register_single): Add "frame" parameter.
5416 (mips_read_fp_register_double): Add "frame" parameter.
5417
5418 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5419
5420 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5421 Fixes a bug where GDB would print the wrong register names for
5422 targets without SSE.
5423
5424 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5425 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5426 registers.
5427
5428 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5429 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5430 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5431 TDEP->sc_sp_offset.
5432
5433 From Michal Ludvig <mludvig@suse.cz>:
5434 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5435 and `sc_num_regs'.
5436 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5437 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5438 I386_ST0_REGNUM): Move here from...
5439 * i386-tdep.c: ... here.
5440 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5441 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5442 registers if possible.
5443 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5444 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5445 Remove variables.
5446 (i386bsd_sc_reg_offset): New variable.
5447 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5448 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5449 TDEP->sc_sp_offset.
5450 (i386fbsd_sc_reg_offset): New variable.
5451 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5452 TDEP->sc_num_regs.
5453 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5454 variables.
5455 (i386fbsd4_sc_reg_offset): New variable.
5456 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5457 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5458 TDEP->sc_sp_offset.
5459 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5460 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5461 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5462 Remove variables.
5463 (i386nbsd_sc_reg_offset): New variable.
5464 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5465 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5466 TDEP->sc_sp_offset.
5467 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5468 Remove variables.
5469 (i386obsd_sc_reg_offset): New variable.
5470 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5471 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5472 TDEP->sc_sp_offset.
5473 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5474 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5475 for frame pointer offset in `struct sigcontext'.
5476
5477 2003-05-31 Andrew Cagney <cagney@redhat.com>
5478
5479 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5480 architecture methods call_dummy_words, sizeof_call_dummy_words,
5481 push_return_address, store_struct_return, and fix_call_dummy. Set
5482 push_dummy_call instead of deprecated_push_arguments.
5483 (mips_store_struct_return): Delete function.
5484 (mips_fix_call_dummy): Delete function.
5485 (mips_push_return_address): Delete function.
5486 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5487 RA_REGNUM and T9_REGNUM.
5488 (mips_n32n64_push_dummy_call): Ditto for
5489 mips_n32n64_push_arguments.
5490 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5491 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5492
5493 2003-05-31 Andrew Cagney <cagney@redhat.com>
5494
5495 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5496 "dummy_addr" to "bp_addr".
5497 * infcall.c (call_function_by_hand): Pass "funaddr" to
5498 gdbarch_push_dummy_call.
5499 * gdbarch.h, gdbarch.c: Re-generate.
5500 * i386-tdep.c (i386_push_dummy_call): Update.
5501 * arm-tdep.c (arm_push_dummy_call): Update.
5502 * d10v-tdep.c (d10v_push_dummy_call): Update.
5503
5504 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5505
5506 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5507 variable declarations.
5508 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5509 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5510 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5511 x86_64_init_frame_pc, x86_64_init_frame_pc,
5512 x86_64_function_has_prologue): Remove prototypes.
5513 (X86_64_NUM_GREGS): New define.
5514 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5515 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5516 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5517 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5518 XMM1_REGNUM): Remove defines.
5519 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5520 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5521 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5522 X86_64_XMM1_REGNUM): New defines.
5523 (struct x86_64_register_info): Renamed from `struct
5524 register_info'. Remove `size' member.
5525 (x86_64_register_info_table): Remove variable.
5526 (x86_64_register_info): New variable.
5527 (X86_64_NUM_REGS): New define.
5528 (X86_64_NUM_GREGS): Remove define.
5529 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5530 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5531 Remove variables.
5532 (x86_54_dwarf2_reg_to_regnum): Remove function.
5533 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5534 (x86_64_dwarf_reg_to_regnum): New function.
5535 (x86_64_register_name): Rewrite.
5536 (x86_64_register_raw_size): Remove function.
5537 (x86_64_register_byte_table): Remove variable.
5538 (x86_64_register_byte): Remove function.
5539 (x86_64_register_virtual_type): Remove function.
5540 (x86_64_register_type): New function.
5541 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5542 x86_64_register_convert_to_raw): Remove functions.
5543 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5544 (x86_64_use_struct_convention): Make static. Adjust for renamed
5545 defines.
5546 (x86_64_frame_init_saved_regs): Remove function.
5547 (x86_64_push_arguments): Make static. Change to accept a regcache
5548 as argument.
5549 (x86_64_store_return_value, x86_64_extract_return_value): Make
5550 static. Rewrite based on i386 counterparts.
5551 (x86_64_push_dummy_call): New function.
5552 (X86_64_NUM_SAVED_REGS): New define.
5553 (x86_64_register_number): Remove function.
5554 (x86_64_store_struct_return): Remove function.
5555 (x86_64_frameless_function_invocation,
5556 x86_64_function_has_prologue): Remove functions.
5557 (PROLOG_BUFSIZE): Remove define.
5558 (struct x86_64_frame_cache): New structure.
5559 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5560 x86_64_frame_cache, x86_64_frame_this_id,
5561 x86_64_frame_prev_register, x86_64_frame_p,
5562 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5563 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5564 functions.
5565 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5566 variables.
5567 (x86_64_skip_prologue): Rewrite in terms of
5568 x86_64_analyze_prologue.
5569 (x86_64_frame_base_address): New function.
5570 (x86_64_frame_base): New variable.
5571 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5572 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5573 set deprecated_fp_regnum, deprecated_register_size,
5574 deprecated_register_bytes, register_raw_size, register_byte,
5575 register_virtual_type, register_convertiable,
5576 register_convert_to_virtual, convert_to_raw,
5577 deprecated_get_saved_register, deprecated_target_read_fp,
5578 deprecated_push_arguments, deprecated_push_return_address,
5579 deprecated_pop_frame, deprecated_store_struct_return,
5580 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5581 frameless_function_invocation, deprecated_frame_saved_pc,
5582 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5583 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5584 deprecated_init_frame_pc and virtual_frame_pointer. Call
5585 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5586 and x86_64_frame_p. Call frame_base_set_default to register
5587 x86_64_frame_base.
5588 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5589 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5590 (_initialize_x86_64_tdep): Remove function.
5591 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5592 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5593 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5594 define.
5595 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5596 (x86_64_linux_sigcontext_addr): Rewrite.
5597 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5598 x86_64_linux_frame_saved_pc): Remove functions.
5599 (x86_64_linux_pc_in_sigtramp): Renamed from
5600 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5601 trampoline.
5602 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5603 Remove_functions.
5604 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5605 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5606 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5607 (x86_64_regmap): Rename to regmap.
5608 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5609 x86_64_num_gregs.
5610 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5611 x86_64_regmap.
5612 (x86_64_fxsave_offset): Remove function.
5613 (supply_fpregset): Simply call x86_64_supply_fxsave.
5614 (fill_fpregset): Simply call x86_64_fill_fxsave.
5615 (fetch_inferior_registers, store_inferior_registers): Avoid
5616 asignment in if-statement.
5617 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5618 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5619 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5620 (fetch_core_registers): Remove function.
5621 (linux_elf_core_fns): Remove.
5622 (offsetoff): Don't define.
5623 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5624 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5625 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5626 add core-regset.o.
5627 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5628 protection against multiple includes instead of NM_X86_64_h. Add
5629 various comments. Include "config/nm-linux.h". Don't include
5630 <signal.h>.
5631 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5632 GET_THREAD_SIGNALS): Remove defines.
5633 (x86_64_register_u_addr, kernel_u_size,
5634 lin_thread_get_thread_signals): Remove prototypes.
5635 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5636 [HAVE_LINK_H]: Don't include "solib.h".
5637 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5638 * config/i386/tm-x86-64linux.h: Fix comments.
5639 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5640 x86-64-tdep.o): Update dependencies.
5641
5642 2003-05-30 Andrew Cagney <cagney@redhat.com>
5643
5644 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5645 Change parameter type to a "struct regcache *".
5646
5647 * gdbarch.sh: Regardless of the multi-arch level, always define
5648 the macro when not already defined.
5649 * gdbarch.h, gdbarch.c: Re-generate.
5650
5651 2003-05-30 Richard Henderson <rth@redhat.com>
5652
5653 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5654 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5655 (alpha_mdebug_frame_this_id): Likewise.
5656 (alpha_mdebug_frame_prev_register): Likewise.
5657 (alpha_mdebug_frame_base_address): Likewise.
5658 (alpha_mdebug_frame_locals_address): Likewise.
5659 (alpha_mdebug_frame_args_address): Likewise.
5660 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5661 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5662 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5663 loop increment.
5664 (alpha_heuristic_frame_this_id): Make static.
5665 (alpha_heuristic_frame_prev_register): Likewise.
5666 (alpha_heuristic_frame_base_address): Likewise.
5667 * alpha-tdep.h: Update.
5668
5669 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5670
5671 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5672 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5673 defenitions.
5674 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5675 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5676 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5677 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5678 I386_ST0_REGNUM): New defines.
5679 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5680 codestream_get): Remove define.
5681 (codestream_next_addr, condestream_addr, condestream_buf,
5682 codestream_off, codestream_cnt): Remove variables.
5683 (codestream_fill, codestream_seek, codestream_read): Remove
5684 functions.
5685 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5686 functionality.
5687 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5688 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5689 i386_frame_saved_pc, i386_saved_pc_after_call,
5690 i386_frame_num_args, i386_frame_init_saved_regs,
5691 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5692 i386_push_arguments): Remove functions.
5693 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5694 functionality. Use i386_analyze_prologue instead of
5695 i386_get_frame_setup.
5696 (I386_NUM_SAVED_REGS): New define.
5697 (struct i386_frame_cache): New structure.
5698 (i386_alloc_frame_cache, i386_analyze_struct_return,
5699 i386_skip_probe, i386_analyze_frame_setup,
5700 i386_analyze_register_saves, i386_analyze_prologue,
5701 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5702 i386_frame_prev_register, i386_sigtramp_frame_cache,
5703 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5704 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5705 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5706 New functions.
5707 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5708 New variables.
5709 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5710 I386_EAX_REGNUM and I386_EDX_REGNUM.
5711 (i386_extract_return_value, i386_store_return_value): Use
5712 I386_ST0_REGNUM where appropriate.
5713 (i386_extract_struct_value_address): Rewrite to use extract_address.
5714 (i386_svr4_pc_in_sigtramp): Add comment.
5715 (i386_svr4_sigcontext_addr): Rewrite.
5716 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5717 TDEP->sc_sp_offset.
5718 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5719 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5720 of new defines. Set push_dummy_call, don't set
5721 deprecated_push_arguments, deprecated_push_return_address,
5722 deprecated_pop_frame. Don't set parm_boundary. Don't set
5723 deprecated_frame_chain, deprecated_frame_saved_pc,
5724 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5725 save_dummy_frame_tos, unwind_pc. Call
5726 frame_unwind_append_predicate and frame_base_set_default. Don't
5727 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5728 Don't set frameless_function_invocation. Don't set
5729 deprecated_register_bytes, deprecated_register_size,
5730 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5731 * i386-linux-tdep.c: Fix formatting in some comments.
5732 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5733 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5734 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5735 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5736 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5737 redundant parentheses.
5738 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5739 (i386_linux_sigcontext_addr): Use it. Rewrite.
5740 (find_minsym_and_objfile): Change name of second argument.
5741 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5742 changed. Use frame_pc_unwind instead of
5743 DEPRECATED_SAVED_PC_AFTER_CALL.
5744 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5745 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5746 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5747 unwinder.
5748 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5749 "dummy-frame.h".
5750 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5751 (_initialize_i386_cygwin_tdep): New prototype.
5752 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5753 deprecated_frame_chain_valid.
5754 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5755 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5756 Rely on the SVR4 defaults.
5757 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5758 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5759
5760 2003-05-30 Andrew Cagney <cagney@redhat.com>
5761
5762 * infcall.c (call_function_by_hand): Always call
5763 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5764
5765 2003-05-30 Richard Henderson <rth@redhat.com>
5766
5767 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5768 increment.
5769
5770 2003-05-29 Jim Blandy <jimb@redhat.com>
5771
5772 Use gdbarch methods for solib stuff on PowerPC Linux.
5773 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5774 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5775 show through.
5776 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5777 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5778 giving the same effect as the #definitions above.
5779
5780 2003-05-29 Adam Fedor <fedor@gnu.org>
5781
5782 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5783 (find_implementation_from_class): Replace it with the standard
5784 case i.e. do nothing.
5785
5786 2003-05-29 Richard Henderson <rth@redhat.com>
5787
5788 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5789 (alpha_linux_sigtramp_offset): Use it. Make static.
5790 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5791 update for new frame model.
5792 * alpha-mdebug-tdep.c: New file.
5793 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5794 (alpha_osf1_init_abi): Install it.
5795 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5796 (linked_proc_desc_table): Remove.
5797 (alpha_frame_past_sigtramp_frame): Remove.
5798 (alpha_dynamic_sigtramp_offset): Remove.
5799 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5800 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5801 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5802 (push_sigtramp_desc): Remove.
5803 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5804 (alpha_cannot_store_register): Likewise.
5805 (alpha_sigcontext_addr): Remove.
5806 (alpha_find_saved_regs): Remove.
5807 (alpha_frame_init_saved_regs): Remove.
5808 (alpha_init_frame_pc_first): Remove.
5809 (read_next_frame_reg): Remove.
5810 (alpha_frame_saved_pc): Remove.
5811 (alpha_saved_pc_after_call): Remove.
5812 (temp_proc_desc, temp_saved_regs): Remove.
5813 (alpha_about_to_return): Remove.
5814 (cached_proc_desc): Remove.
5815 (alpha_frame_chain): Remove.
5816 (alpha_print_extra_frame_info): Remove.
5817 (alpha_init_extra_frame_info): Remove.
5818 (alpha_frame_locals_address): Remove.
5819 (alpha_frame_args_address): Remove.
5820 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5821 (alpha_push_dummy_frame): Remove.
5822 (alpha_pop_frame): Remove.
5823 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5824 (alpha_read_insn): New.
5825 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5826 for different insn encodings.
5827 (alpha_in_lenient_prologue): Remove.
5828 (struct alpha_sigtramp_unwind_cache): New.
5829 (alpha_sigtramp_frame_unwind_cache): New.
5830 (alpha_sigtramp_register_address): New.
5831 (alpha_sigtramp_frame_this_id): New.
5832 (alpha_sigtramp_frame_prev_register): New.
5833 (alpha_sigtramp_frame_unwind): New.
5834 (alpha_sigtramp_frame_p): New.
5835 (struct alpha_heuristic_unwind_cache): New.
5836 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5837 don't count nop insns that occur between functions.
5838 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5839 heuristic_proc_desc, but without the mdebug wrapping.
5840 (alpha_heuristic_frame_this_id): New.
5841 (alpha_heuristic_frame_prev_register): New.
5842 (alpha_heuristic_frame_unwind): New.
5843 (alpha_heuristic_frame_p): New.
5844 (alpha_heuristic_frame_base_address): New.
5845 (alpha_heuristic_frame_base): New.
5846 (alpha_unwind_dummy_id): New.
5847 (alpha_unwind_pc): New.
5848 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5849 frame related deprecated initializations; install replacements.
5850 (alpha_dump_tdep): Remove.
5851 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5852 (alpha_read_insn, alpha_after_prologue,
5853 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5854 alpha_heuristic_frame_prev_register,
5855 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5856 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5857 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5858 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5859
5860 2003-05-29 Andrew Cagney <cagney@redhat.com>
5861
5862 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5863 dependant on the availability of ASSERT_FUNCTION.
5864 (ASSERT_FUNCTION): Do not define when there is no function name.
5865
5866 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5867
5868 From Jimi X <jimix@watson.ibm.com>:
5869 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5870
5871 2003-05-28 Jim Blandy <jimb@redhat.com>
5872
5873 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5874 argument to ptrace to int; the system headers should give it the
5875 right type, and pointers don't fit in ints on powerpc64-*-*.
5876
5877 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5878
5879 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5880 DW_TAG_catch_block.
5881
5882 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5883
5884 * stabsread.c (dbx_lookup_type): Make static.
5885 (read_type): Ditto.
5886 (add_undefined_type): Ditto.
5887 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5888 not export.
5889
5890 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5891
5892 * hpread.c (hpread_has_name): Make static.
5893 (hpread_psymtab_to_symtab): Ditto.
5894 (file_exists): Ditto.
5895 (hpread_call_pxdb): Ditto.
5896 (hpread_pxdb_needed): Ditto.
5897 (hpread_quick_traverse): Ditto.
5898 (hpread_get_header): Ditto.
5899 (hpread_get_lntt): Ditto.
5900 (hpread_get_slt): Ditto.
5901 (class_of): Ditto.
5902
5903 2003-05-25 Andreas Schwab <schwab@suse.de>
5904
5905 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5906 stack_align and deprecated_extra_stack_alignment_needed.
5907 (m68k_stack_align): Delete.
5908
5909 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5910 (m68k_register_virtual_size): Likewise.
5911 (altos_skip_prologue): Remove obsolete function.
5912 (isi_frame_num_args): Likewise.
5913 (news_frame_num_args): Likewise.
5914 (m68k_fix_call_dummy): Make static.
5915 (m68k_push_dummy_frame): Likewise.
5916 (m68k_pop_frame): Likewise.
5917 (m68k_skip_prologue): Likewise.
5918 (m68k_frame_init_saved_regs): Likewise.
5919 (m68k_saved_pc_after_call): Likewise.
5920 (m68k_get_longjmp_target): Make multi-arch.
5921 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5922 structure. Register m68k_get_longjmp_target if enabled.
5923 * m68k-tdep.h (struct gdbarch_tdep): Define.
5924 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5925
5926 * Makefile.in (config.status): Also depend on configure.tgt
5927 and configure.host.
5928 (m68klinux-tdep.o): Update dependencies.
5929 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5930 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5931 (M68K_LINUX_JB_PC): Define.
5932 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5933 and take additional parameter.
5934 (m68k_linux_sigtramp_saved_pc): Update.
5935 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5936 m68k_linux_pc_in_sigtramp, in_plt_section,
5937 find_solib_trampoline_target.
5938 * config/m68k/tm-linux.h: Don't include any tm headers.
5939 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5940 (JB_ELEMENT_SIZE): Likewise.
5941 (JB_PC): Likewise.
5942 (GET_LONGJMP_TARGET): Likewise.
5943 (IN_SIGTRAMP): Likewise.
5944 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5945
5946 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5947
5948 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5949 (sparc32_push_arguments): Re-implement by calling
5950 sparc32_do_push_arguments.
5951
5952 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5953
5954 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5955 SPARC_O1_REGNUM): New defines.
5956 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5957 (sparc32_store_return_value): New function.
5958 (sparc_extract_struct_value_address): Rewrite to operate on a
5959 regcache.
5960 (sparc_gdbarch_init): Don't set
5961 deprecated_extract_struct_value_address. Set
5962 extract_struct_value_address instead. Don't set
5963 deprecated_extract_return_value and deprecated_store_return_value
5964 for 32-bit targets. Set extract_return_value and
5965 store_return_value instead.
5966 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5967 DEPRECTAED_EXTRACT_RETURN_VALUE,
5968 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5969 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5970 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5971 (sparc_store_return_value): Remove prototype.
5972 (sparc32_store_return_value): New prototype.
5973 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5974 Adjust prototypes.
5975
5976 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5977
5978 * sparcnbsd-tdep.c: Include "gdb_string.h".
5979
5980 2003-05-23 Andrew Cagney <cagney@redhat.com>
5981
5982 * p-valprint.c (pascal_val_print): Replace extract_address with
5983 the inline equivalent extract_unsigned_integer.
5984 * jv-valprint.c (java_value_print): Ditto.
5985 * ada-valprint.c (ada_val_print_1): Ditto.
5986 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5987
5988 2003-05-23 Theodore A. Roth <troth@openavr.org>
5989
5990 * blockframe.c (frameless_look_for_prologue): Remove unused
5991 after_prologue variable.
5992
5993 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5994
5995 * blockframe.c (get_pc_function_start): Rewrite to avoid
5996 asignments in if-statements.
5997
5998 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5999
6000 Committed by Elena Zannoni <ezannoni@redhat.com>.
6001 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6002 files, don't relocate absolute symbols (and do use mst_abs).
6003
6004 2003-05-23 Andrew Cagney <cagney@redhat.com>
6005
6006 * objc-lang.c: Include "gdb_assert.h".
6007 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6008 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6009 (gdb_check, gdb_check_fatal): Delete functions.
6010 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6011 gdb_assert.
6012 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6013 * Makefile.in (objc-lang.o): Update dependencies.
6014
6015 2003-05-22 Ian Lance Taylor <ian@airs.com>
6016
6017 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6018 with fprintf_filtered, not fprintf_unfiltered.
6019
6020 2003-05-22 Andrew Cagney <cagney@redhat.com>
6021
6022 * stack.c (frame_info): Inline extract_address, replacing it with
6023 extract_unsigned_integer.
6024 * findvar.c (unsigned_pointer_to_address): Ditto.
6025 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6026 * dwarf2expr.c (dwarf2_read_address): Ditto.
6027 * frame.c (frame_pc_unwind): Update comment.
6028 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6029
6030 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6031
6032 * infptrace.c (detach): Call print_sys_errmsg rather than
6033 perror_with_name to issue warning message when errno is non-zero
6034 after calling ptrace detach.
6035
6036 2003-05-21 J. Brobecker <brobecker@gnat.com>
6037
6038 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6039 macro definitions from here...
6040 * hppa-tdep.c: ...to there.
6041
6042 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6043
6044 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6045 register_ptrace_addr(). Fix all callers.
6046
6047 2003-05-21 Andreas Schwab <schwab@suse.de>
6048
6049 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6050 dependencies.
6051 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6052 end.
6053 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6054 (_initialize_m68k_linux_tdep): New function.
6055 (m68k_linux_frame_saved_pc): Make static.
6056 (m68k_linux_extract_return_value): Likewise.
6057 (m68k_linux_store_return_value): Likewise.
6058 (m68k_linux_extract_struct_value_address): Likewise.
6059 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6060 Remove.
6061 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6062 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6063 (DEPRECATED_FRAME_SAVED_PC): Remove.
6064
6065 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6066
6067 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6068 regset numbering rather than our own.
6069
6070 2003-05-19 David Carlton <carlton@bactrian.org>
6071
6072 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6073
6074 2003-05-19 David Carlton <carlton@bactrian.org>
6075
6076 Partial fix for PR c++/827.
6077 * cp-support.h: Include symtab.h.
6078 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6079 * cp-namespace.c: Update contributors.
6080 (cp_lookup_symbol_nonlocal): New.
6081 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6082 (lookup_symbol_file): Ditto.
6083 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6084 * block.h: Declare block_scope, block_using, block_global_block.
6085 * block.c (block_scope): New.
6086 (block_using, block_global_block): Ditto.
6087 * Makefile.in (cp_support_h): Depend on symtab_h.
6088 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6089
6090 2003-05-19 David Carlton <carlton@bactrian.org>
6091
6092 * language.h (struct language_defn): Add 'la_value_of_this'
6093 and 'la_lookup_symbol_nonlocal' members.
6094 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6095 lookup_symbol_static, lookup_symbol_global,
6096 lookup_symbol_aux_block.
6097 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6098 if we should search fields of this and how to do static/global
6099 lookup.
6100 (lookup_symbol_aux_block): Make extern.
6101 (basic_lookup_symbol_nonlocal): New.
6102 (lookup_symbol_static, lookup_symbol_global): Ditto.
6103 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6104 'la_lookup_symbol_nonlocal' members.
6105 * c-lang.c (c_language_defn, cplus_language_defn)
6106 (asm_language_defn, minimal_language_defn): Ditto.
6107 * jv-lang.c (java_language_defn): Ditto.
6108 * language.c (unknown_language_defn, auto_language_defn)
6109 (local_language_defn): Ditto.
6110 * m2-lang.c (m2_language_defn): Ditto.
6111 * objc-lang.c (objc_language_defn): Ditto.
6112 * scm-lang.c (scm_language_defn): Ditto.
6113 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6114 * p-lang.c (pascal_language_defn): Ditto for both.
6115 * Makefile.in (f-lang.o): Depend on value_h.
6116 (p-lang.o): Ditto.
6117
6118 2003-05-19 David Carlton <carlton@bactrian.org>
6119
6120 * block.h: Declare block_static_block.
6121 * block.c (block_static_block): New.
6122 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6123 lookup_symbol_aux_local, calling block_static_block instead.
6124 (lookup_symbol_aux_local): Delete 'static_block' argument.
6125
6126 2003-05-19 David Carlton <carlton@bactrian.org>
6127
6128 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6129
6130 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6131
6132 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6133 register numbers mapping.
6134
6135 2003-05-18 Adam Fedor <fedor@gnu.org>
6136
6137 * symtab.c (completion_list_objc_symbol): New function.
6138 (make_symbol_completion_list): Use it to add ObjC symbols
6139 when looking though the list.
6140 (language_search_unquoted_string): New function.
6141 (make_file_symbol_completion_list): Use it.
6142
6143 2003-05-18 Andreas Schwab <schwab@suse.de>
6144
6145 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6146 dependencies.
6147 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6148 as m68k_linux_extract_return_value.
6149 (DEPRECATED_STORE_RETURN_VALUE): Define as
6150 m68k_linux_store_return_value.
6151 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6152 m68k_linux_extract_struct_value_address.
6153 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6154 get_next_frame, get_frame_base, get_frame_pc.
6155 (m68k_linux_frame_saved_pc): Use get_frame_base.
6156 (m68k_linux_extract_return_value): New function.
6157 (m68k_linux_store_return_value): New function.
6158 (m68k_linux_extract_struct_value_address): New function.
6159 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6160
6161 * c-exp.y (typebase): Remove duplicate occurence of
6162 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6163 of lookup_signed_typename.
6164
6165 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6166
6167 * dwarf2loc.c (find_location_expression): Change type of second
6168 argument to `size_t *'.
6169 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6170 for size variable.
6171
6172 2003-05-18 David Carlton <carlton@bactrian.org>
6173
6174 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6175 'linkage_name'. Add comment.
6176 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6177 'linkage_name'.
6178 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6179 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6180 (lookup_block_symbol): Ditto.
6181
6182 2003-05-16 Andrew Cagney <cagney@redhat.com>
6183
6184 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6185 * gdbarch.h, gdbarch.c: Re-generate.
6186 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6187 * TODO (REGISTER_BYTES): Delete reference.
6188 * alpha-tdep.c (alpha_gdbarch_init): Update.
6189 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6190 * x86-64-tdep.c (x86_64_init_abi): Update.
6191 * vax-tdep.c (vax_gdbarch_init): Update.
6192 * v850-tdep.c (v850_gdbarch_init): Update.
6193 * sparc-tdep.c (sparc_gdbarch_init): Update.
6194 * sh-tdep.c (sh_gdbarch_init): Update.
6195 * s390-tdep.c (s390_gdbarch_init): Update.
6196 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6197 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6198 (ns32k_gdbarch_init_32382): Update.
6199 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6200 * mcore-tdep.c (mcore_gdbarch_init): Update.
6201 * m68k-tdep.c (m68k_gdbarch_init): Update.
6202 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6203 * ia64-tdep.c (ia64_gdbarch_init): Update.
6204 * i386-tdep.c (i386_gdbarch_init): Update.
6205 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6206 * hppa-tdep.c (hppa_gdbarch_init): Update.
6207 * h8300-tdep.c (h8300_gdbarch_init): Update.
6208 * frv-tdep.c (frv_gdbarch_init): Update.
6209 * cris-tdep.c (cris_gdbarch_init): Update.
6210 * avr-tdep.c (avr_gdbarch_init): Update.
6211 * arm-tdep.c (arm_gdbarch_init): Update.
6212 * sparc-tdep.c (sparc_pop_frame): Update.
6213 * rs6000-tdep.c (rs6000_pop_frame): Update.
6214 * remote.c (init_remote_state): Update.
6215 (remote_prepare_to_store): Update.
6216 * remote-vx.c (vx_prepare_to_store): Update.
6217 * remote-sds.c (sds_fetch_registers): Update.
6218 (sds_prepare_to_store): Update.
6219 * remote-array.c: Update.
6220 * regcache.c (init_legacy_regcache_descr): Update.
6221 (init_regcache_descr): Update.
6222 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6223 (mips_o64_extract_return_value): Update.
6224 * irix5-nat.c (fetch_core_registers): Update.
6225 * irix4-nat.c (fetch_core_registers): Update.
6226 * i386-tdep.h: Update.
6227 * hppa-tdep.c (pa_do_registers_info): Update.
6228 (pa_do_strcat_registers_info): Update.
6229 * cris-tdep.c (cris_register_bytes_ok): Update.
6230 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6231 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6232 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6233 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6234 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6235 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6236 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6237 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6238 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6239 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6240 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6241 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6242 (REGISTER_BYTES_OK): Update.
6243 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6244 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6245
6246 2003-05-16 Ian Lance Taylor <ian@airs.com>
6247
6248 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6249 (vax_print_insn, print_insn_arg): Remove static functions.
6250 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6251 print_insn_vax from opcodes library.
6252 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6253
6254 2003-05-15 Andrew Cagney <cagney@redhat.com>
6255
6256 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6257 * target.h (memory_breakpoint_from_pc): Delete declaration.
6258 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6259 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6260 * monitor.c (monitor_insert_breakpoint): Use
6261 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6262 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6263 * gdbarch.h, gdbarch.c: Re-generate.
6264 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6265 (sparc_gdbarch_init): Set breakpoint_from_pc to
6266 sparc_breakpoint_from_pc.
6267 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6268 (BREAKPOINT_FROM_PC): Define.
6269 (sparc_breakpoint_from_pc): Declare.
6270 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6271 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6272 (BREAKPOINT_FROM_PC): Define.
6273 (BREAKPOINT): Delete macro.
6274 * target.h: Update comment.
6275 * s390-tdep.c (s390_gdbarch_init): Update comments.
6276 * remote.c: Update comments.
6277 * remote-mips.c: Update comments.
6278 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6279 * mem-break.c: Update comment.
6280 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6281 (ia64_memory_insert_breakpoint): Update.
6282 * config/sparc/tm-sparc.h: Update comment.
6283 * config/pa/tm-hppa64.h: Update comment.
6284 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6285 (rs6000_breakpoint_from_pc): Update.
6286 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6287 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6288 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6289 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6290 (mips_breakpoint_from_pc): Update.
6291 (mips_dump_tdep): Update.
6292
6293 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6294 * minsyms.c (lookup_minimal_symbol): Inline
6295 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6296
6297 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6298 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6299 * p-lang.c (pascal_printstr): Ditto.
6300 * objc-lang.c (objc_printstr): Ditto.
6301 * m2-lang.c (m2_printstr): Ditto.
6302 * jv-valprint.c (java_print_value_fields): Ditto.
6303 * f-lang.c (f_printstr): Ditto.
6304 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6305 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6306 for repeat_count_threshold.
6307 * Makefile.in (cp-valprint.o): Update dependencies.
6308
6309 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6310
6311 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6312 (examine_prologue): Support looking through leaf functions, knowing
6313 they start with mov r2,r12. Support skipping over indirect stores
6314 of the input registers. Upon hitting a non-nop branch instruction
6315 or predicated instruction, bail out by setting lim_pc to the current
6316 pc value in the loop. At the end, if the lim_pc value is still
6317 beyond our calculated value and we have trust_limit set,
6318 use the lim_pc value.
6319
6320 2003-05-15 Andrew Cagney <cagney@redhat.com>
6321
6322 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6323 generic_find_dummy_frame.
6324 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6325 (deprecated_generic_find_dummy_frame): Update.
6326 (deprecated_read_register_dummy): Update.
6327 * frame.c (deprecated_generic_get_saved_register): Update.
6328
6329 2003-05-15 Theodore A. Roth <troth@openavr.org>
6330
6331 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6332 (avr_gdbarch_init): Set breakpoint_from_pc method.
6333
6334 2003-05-15 Andrew Cagney <cagney@redhat.com>
6335
6336 * regcache.c (build_regcache): Set deprecated_register_valid
6337 directly.
6338 (deprecated_grub_regcache_for_register_valid): Delete function.
6339 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6340 declaration.
6341
6342 2003-05-15 David Carlton <carlton@bactrian.org>
6343
6344 Committed by Elena Zannoni <ezannoni@redhat.com>
6345 * symtab.c (lookup_symbol_aux): Delete calls to
6346 lookup_symbol_aux_minsyms.
6347 (lookup_symbol_aux_minsyms): Comment out function and
6348 prototype. Delete lookup by mangled name.
6349
6350 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6351
6352 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6353 correctly indicate an empty stack and ``stack_allocated'' to the
6354 indicate the number of elements initially allocated.
6355 (dwarf_expr_grow_stack): Simplify method for computing new
6356 stack size. Don't loop infinitely if ``stack_len'' is zero.
6357 (execute_stack_op): Move ``ctx->in_reg'' initialization
6358 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6359 be used in conjuction with DW_OP_piece. Revise error message
6360 accordingly.
6361
6362 2003-05-14 Theodore A. Roth <troth@openavr.org>
6363
6364 * MAINTAINERS: Update my email address.
6365 * avr-tdep.c: Ditto.
6366
6367 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6368
6369 * symtab.h (enum domain_enum): Rename from namespace_enum.
6370 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6371 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6372 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6373 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6374 TYPES_NAMESPACE, METHODS_NAMESPACE.
6375 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6376 (struct symbol, struct partial_symbol): Rename field
6377 'namespace_enum namespace' to 'domain_enum domain'.
6378 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6379 Delete old define kludge for namespace.
6380
6381 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6382 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6383 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6384 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6385 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6386 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6387 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6388 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6389 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6390 occurrences of the above.
6391
6392 2003-05-14 Ian Lance Taylor <ian@airs.com>
6393
6394 * Makefile.in (install-only): Use $(SHELL) when running
6395 mkinstalldirs.
6396
6397 2003-05-13 Ian Lance Taylor <ian@airs.com>
6398
6399 * MAINTAINERS (write after approval): Add myself.
6400
6401 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6402 second and third arguments.
6403 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6404 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6405
6406 2003-05-13 Andrew Cagney <cagney@redhat.com>
6407
6408 * defs.h (store_address): Delete declaration.
6409 findvar.c (store_address): Delete function.
6410 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6411 store_unsigned_integer.
6412 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6413 * v850-tdep.c (v850_push_arguments): Ditto.
6414 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6415 * sh-tdep.c (sh64_get_saved_register): Ditto.
6416 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6417 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6418 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6419 (mips_get_saved_register): Ditto.
6420 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6421 (find_func_descr, ia64_push_arguments): Ditto.
6422 * i386-tdep.c (i386_push_arguments): Ditto.
6423 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6424 * frv-tdep.c (frv_push_arguments): Ditto.
6425 * frame.c (legacy_saved_regs_prev_register): Ditto.
6426 (deprecated_generic_get_saved_register): Ditto.
6427 * findvar.c (unsigned_address_to_pointer): Ditto.
6428 * dwarf2read.c (dwarf2_const_value): Ditto.
6429 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6430 * alpha-tdep.c (alpha_push_arguments): Ditto.
6431
6432 2003-05-12 J. Brobecker <brobecker@gnat.com>
6433
6434 * NEWS: Mention that the hppa-hpux port has been partially
6435 multiarched (32bit ABIT only, so far).
6436
6437 2003-05-11 Andrew Cagney <cagney@redhat.com>
6438
6439 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6440 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6441 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6442 sim/testsuite/sim/arm/misaligned2.ms, and
6443 sim/testsuite/sim/arm/misaligned3.ms.
6444 * disasm.h (struct ui_file): Add opaque struct declaration.
6445 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6446 * frame.h (struct ui_file): Ditto.
6447
6448 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6449
6450 * value.h: Pretty print.
6451
6452 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6453
6454 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6455
6456 2003-05-08 Andrew Cagney <cagney@redhat.com>
6457
6458 * regcache.h (max_register_size): Delete declaration.
6459 * regcache.c (max_register_size): Delete function.
6460 (struct regcache_descr): Delete field "max_register_size".
6461 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6462 registers fit in MAX_REGISTER_SIZE.
6463 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6464 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6465 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6466 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6467 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6468 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6469 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6470 * dve3900-rom.c, hppa-tdep.c: Ditto.
6471
6472 2003-05-08 David Carlton <carlton@math.stanford.edu>
6473
6474 * valops.c (push_word): Fix typo.
6475
6476 2003-05-08 Andrew Cagney <cagney@redhat.com>
6477
6478 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6479 * gdbarch.h: Re-generate.
6480 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6481 (legacy_max_register_raw_size): Delete declaration.
6482 * regcache.c (legacy_max_register_raw_size): Delete function.
6483 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6484 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6485 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6486 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6487 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6488 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6489 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6490 * findvar.c, dwarf2cfi.c: Ditto.
6491
6492 2003-05-08 Andrew Cagney <cagney@redhat.com>
6493
6494 * mips-tdep.c (read_signed_register): New function, moved to here
6495 from "regcache.c".
6496 (read_signed_register_pid): Ditto.
6497 * regcache.c (read_signed_register_pid): Delete function, moved to
6498 "mips-tdep.c".
6499 (read_signed_register): Ditto.
6500 * regcache.h (read_signed_register): Delete declaration.
6501 (read_signed_register_pid): Delete declaration.
6502
6503 2003-05-08 Andrew Cagney <cagney@redhat.com>
6504
6505 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6506 * gdbarch.h: Re-generate.
6507 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6508 (legacy_max_register_virtual_size): Delete declaration.
6509 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6510 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6511 * tracepoint.c (memrange_sortmerge): Ditto.
6512 * sparc-tdep.c (sparc_print_registers): Ditto.
6513 * regcache.c (legacy_max_register_virtual_size): Delete function.
6514
6515 2002-05-08 J. Brobecker <brobecker@gnat.com>
6516
6517 * fork-child.c (escape_bang_in_quoted_argument): New function.
6518 (fork_inferior): Escape '!' characters in quoted arguments
6519 only when needed.
6520
6521 2003-05-08 J. Brobecker <brobecker@gnat.com>
6522
6523 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6524 the language of the CU is not currently supported by GDB.
6525
6526 2003-05-08 J. Brobecker <brobecker@gnat.com>
6527
6528 * defs.h (language): Add language_minimal enum value.
6529 * c-lang.c (minimal_language_defn): New language definition.
6530 (_initialize_c_language): Add the new minimal language to the list
6531 of languages known to GDB.
6532
6533 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6534
6535 * frame.c (get_frame_type): Don't attempt to lazily initialize
6536 frame's unwinder for legacy frames.
6537
6538 2003-05-07 Andrew Cagney <cagney@redhat.com>
6539
6540 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6541 and "regcache" parameters.
6542 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6543
6544 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6545
6546 * dwarf2read.c (dwarf_decode_lines): Only use output of
6547 check_cu_functions() when calling record_line(). Do not update
6548 the current address.
6549
6550 2003-05-07 Andrew Cagney <cagney@redhat.com>
6551
6552 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6553 code.
6554
6555 2003-05-07 Jim Blandy <jimb@redhat.com>
6556
6557 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6558 'maint info symtabs' and 'maint info psymtabs'.
6559 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6560 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6561 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6562 Declarations updated.
6563 * maint.c (maintenance_list_command): Delete.
6564 (_initialize_maint_cmds): Update calls to add_cmd.
6565 * gdbcmd.h (maintenancelistlist): Delete declaration.
6566 * cli/cli-cmds.c (maintenancelistlist): Delete.
6567 (init_cmd_lists): Don't initialize it.
6568 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6569
6570 2003-05-07 Andrew Cagney <cagney@redhat.com>
6571
6572 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6573 "regcache".
6574 (d10v_print_registers_info): Update.
6575 (d10v_dmap_register, d10v_imap_register): Delete functions.
6576 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6577 and "imap_register".
6578 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6579 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6580 * arch-utils.c (generic_remote_translate_xfer_address): Add
6581 "regcache" and "gdbarch" parameters.
6582 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6583 parameter. Change class to multi-arch.
6584 * gdbarch.h, gdbarch.c: Re-generate.
6585 * remote.c (remote_xfer_memory): Use
6586 gdbarch_remote_translate_xfer_address.
6587
6588 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6589
6590 * infrun.c (prev_pc): Move declaration ahead of proceed().
6591 (proceed): Refresh prev_pc value before resuming.
6592 (stop_stepping): Remove code to refresh prev_pc.
6593
6594 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6595
6596 * nto-tdep.c: Removed stray comment.
6597
6598 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6599
6600 * i386-nto-tdep.c: Fix old K&R function definitions.
6601 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6602 Also change add_show_from_set() call to add_setshow_cmd().
6603 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6604
6605 2003-05-05 Andrew Cagney <cagney@redhat.com>
6606
6607 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6608 (fprint_dummy_frames): New function.
6609 (maintenance_print_dummy_frames): New function.
6610 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6611 * frame.c (fprint_frame_id): Make global.
6612 * frame.h (fprint_frame_id): Declare.
6613 * Makefile.in (dummy-frame.o): Update dependencies.
6614
6615 2003-05-05 Andrew Cagney <cagney@redhat.com>
6616
6617 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6618 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6619 SIZEOF_CALL_DUMMY_WORDS.
6620 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6621 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6622 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6623 CALL_DUMMY_BREAKPOINT_OFFSET.
6624 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6625 CALL_DUMMY_START_OFFSET.
6626 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6627 * gdbarch.h, gdbarch.c: Re-generate.
6628 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6629 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6630 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6631 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6632 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6633 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6634 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6635 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6636 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6637 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6638 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6639 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6640 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6641 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6642 * config/sparc/tm-sparc.h: Update.
6643
6644 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6645
6646 * configure.tgt: Add i[3456]86-*-nto*.
6647 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6648 * nto-tdep.c: New file. Neutrino target support routines.
6649 * nto-tdep.h: New file. Neutrino target header.
6650 * config/tm-qnxnto.h: New file.
6651 * config/i386/i386nto.mt: New file.
6652 * config/i386/tm-i386nto.h: New file.
6653
6654 2003-05-04 Andrew Cagney <cagney@redhat.com>
6655
6656 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6657 (load_infrun_state): Ditto.
6658 (struct thread_info): Drop "prev_func_name" field.
6659 * thread.c (load_infrun_state): Update.
6660 (save_infrun_state): Update.
6661 * infrun.c (prev_func_name): Delete variable.
6662 (init_wait_for_inferior): Do not clear prev_func_name.
6663 (stop_stepping, keep_going, context_switch): Do not swap
6664 prev_func_name.
6665 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6666 instead of PC_IN_SIGTRAMP.
6667
6668 2003-05-04 Andrew Cagney <cagney@redhat.com>
6669
6670 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6671 REGISTER_BYTE with register_offset_hack.
6672 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6673 that REGISTER_BYTE is consistent with the regcache.
6674 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6675 * gdbarch.h, gdbarch.c: Regenerate.
6676
6677 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6678
6679 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6680 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6681
6682 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6683
6684 2003-05-03 J. Brobecker <brobecker@gnat.com>
6685
6686 From Thierry Schneider <tpschneider1@yahoo.com>
6687 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6688 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6689 (mi-cmd-symbol.o): Add rule.
6690
6691 2003-05-03 Andrew Cagney <cagney@redhat.com>
6692
6693 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6694 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6695 * gdbarch.h, gdbarch.c: Re-generate.
6696 * d10v-tdep.c (d10v_push_dummy_code): New function.
6697 (d10v_gdbarch_init): Set push_dummy_code.
6698 * infcall.c (legacy_push_dummy_code): New function.
6699 (generic_push_dummy_code): New function.
6700 (push_dummy_code): New function.
6701 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6702 instead of dummy_addr, to push_dummy_call. Move call to
6703 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6704 switch.
6705 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6706
6707 2003-05-03 Andrew Cagney <cagney@redhat.com>
6708
6709 * disasm.h (print_insn): Declare.
6710 * disasm.c (init_gdb_disassemble_info): New function.
6711 (gdb_disassembly): Call init_gdb_disassemble_info.
6712 (gdb_print_insn): New function.
6713 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6714 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6715 * mcore-tdep.c: Include "disasm.h"
6716 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6717 * d10v-tdep.c: Include "disasm.h".
6718 (display_trace): Call gdb_print_insn, instead of print_insn.
6719 (print_insn): Delete function.
6720 * printcmd.c: Include "disasm.h".
6721 (print_insn): Delete function.
6722 (print_formatted): Call gdb_print_insn, instead of print_insn.
6723 * Makefile.in (printcmd.o): Update dependencies.
6724 (mcore-tdep.o, d10v-tdep.o): Ditto.
6725
6726 2003-05-02 Andrew Cagney <cagney@redhat.com>
6727
6728 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6729 PC_REGNUM, re-indent.
6730 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6731 PC_REGNUM isn't set.
6732
6733 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6734 * gdbarch.h, gdbarch.c: Re-generate.
6735 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6736 register_virtual_size, pc_regnum, or register_bytes.
6737 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6738 (d10v_register_type): Use D10V_PC_REGNUM.
6739 (d10v_print_registers_info, d10v_read_pc): Ditto.
6740 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6741 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6742
6743 2003-05-02 David Carlton <carlton@bactrian.org>
6744
6745 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6746 the name with mstrsave.
6747
6748 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6749
6750 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6751 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6752 (host_charset_name, target_charset_name): New vars for use by
6753 set/show commands.
6754 (host_charset_enum, target_charset_enum): New enums for set/show
6755 commands.
6756 (set_charset_sfunc, set_host_charset_sfunc,
6757 set_target_charset_sfunc): New functions.
6758 (set_host_charset, set_target_charset): Make static.
6759 (list_charsets, set_host_charset_command,
6760 set_target_charset_command): Delete functions.
6761 (show_charset_command): Rewrite as....
6762 (show_charset): Hook this up with the set/show command mechanism.
6763 (_initialize_charset): Change names of charsets to match the
6764 set/show enums. Use host_charset_name and target_charset_name.
6765 Use set/show mechanism for charset, host-charset, target-charset
6766 commands. Do not make 'show host-charset' and 'show
6767 target-charset' be aliases of 'show charset'.
6768
6769 * charset.h (set_host_charset, set_target_charset): Don't export,
6770 they are not used outside the file.
6771
6772 2003-05-01 Andrew Cagney <cagney@redhat.com>
6773
6774 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6775 (gdb_disassembly): Make "di" non static, always initialize and
6776 cleanup. Always use dis_asm_read_memory.
6777 (gdb_dis_asm_read_memory): Delete function.
6778
6779 2003-05-01 Andrew Cagney <cagney@redhat.com>
6780
6781 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6782 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6783
6784 2003-04-30 Andrew Cagney <cagney@redhat.com>
6785
6786 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6787 "tm_print_insn_info".
6788 (TARGET_PRINT_INSN_INFO): Delete macro.
6789 (dis_asm_read_memory): Delete function declaration.
6790 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6791 (tm_print_insn_info): Delete variable definition.
6792 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6793 * gdbarch.h, gdbarch.c: Re-generate.
6794 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6795 "deprecated_tm_print_insn_info".
6796 * mcore-tdep.c (mcore_dump_insn): Ditto.
6797 * mips-tdep.c (mips_gdbarch_init): Ditto.
6798 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6799 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6800 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6801 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6802 instead of TARGET_PRINT_INSN_INFO, add comment.
6803 * s390-tdep.c (s390_get_frame_info): Instead of
6804 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6805 (s390_check_function_end, s390_is_sigreturn): Ditto.
6806 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6807 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6808 * disasm.c: Include "gdbcore.h".
6809 (_initialize_disasm): New function, initialize
6810 "deprecated_tm_print_insn_info".
6811 (deprecated_tm_print_insn_info): New variable.
6812 (dis_asm_read_memory): Moved from "corefile.c", made static.
6813 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6814 * Makefile.in (disasm.o): Update dependencies.
6815
6816 2003-04-30 Andrew Cagney <cagney@redhat.com>
6817
6818 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6819
6820 2003-04-29 Adam Fedor <fedor@gnu.org>
6821
6822 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6823 * infcall.c (find_function_addr): Make non-static.
6824 * infcall.h (find_function_addr): Declare.
6825 * Makefile.in (eval.o): Update dependencies.
6826
6827 2003-04-28 Adam Fedor <fedor@gnu.org>
6828
6829 * symtab.c (symbol_find_demangled_name): Check for and demangle
6830 ObjC symbols.
6831 (symbol_init_demangled_name): Init for language_objc as well.
6832
6833 2003-04-28 Andrew Cagney <cagney@redhat.com>
6834
6835 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6836 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6837 * gdbarch.h, gdbarch.c: Re-generate.
6838 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6839 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6840 * inferior.h (deprecated_read_fp): Rename read_fp.
6841 (generic_target_read_fp): Delete declaration.
6842 * regcache.c (generic_target_read_fp): Delete function.
6843 (deprecated_read_fp): Replace read_fp, use
6844 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6845 * d10v-tdep.c (d10v_read_fp): Delete function.
6846 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6847
6848 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6849 deprecated_target_read_fp to generic_target_read_fp.
6850 * sh-tdep.c (sh_gdbarch_init): Ditto.
6851 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6852 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6853 * frv-tdep.c (frv_gdbarch_init): Ditto.
6854
6855 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6856 deprecated_fp_regnum.
6857 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6858 * vax-tdep.c (vax_gdbarch_init): Ditto.
6859 * v850-tdep.c (v850_gdbarch_init): Ditto.
6860 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6861 * sh-tdep.c (sh_gdbarch_init): Ditto.
6862 * s390-tdep.c (s390_gdbarch_init): Ditto.
6863 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6864 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6865 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6866 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6867 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6868 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6869 * i386-tdep.c (i386_gdbarch_init): Ditto.
6870 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6871 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6872 * frv-tdep.c (frv_gdbarch_init): Ditto.
6873 * cris-tdep.c (cris_gdbarch_init): Ditto.
6874 * avr-tdep.c (avr_gdbarch_init): Ditto.
6875 * arm-tdep.c (arm_gdbarch_init): Ditto.
6876 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6877
6878 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6879 * v850-tdep.c (v850_gdbarch_init): Ditto.
6880 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6881 * sh-tdep.c (sh_gdbarch_init): Ditto.
6882 * s390-tdep.c (s390_gdbarch_init): Ditto.
6883 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6884 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6885 * mips-tdep.c (mips_gdbarch_init): Ditto.
6886 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6887 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6888 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6889 * frv-tdep.c (frv_gdbarch_init): Ditto.
6890 * avr-tdep.c (avr_gdbarch_init): Ditto.
6891 * arm-tdep.c (arm_gdbarch_init): Ditto.
6892
6893 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6894 DEPRECATED_FP_REGNUM.
6895 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6896 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6897 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6898 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6899 (sparc32_register_virtual_type): Ditto.
6900 * sh-tdep.c (sh64_frame_chain): Ditto.
6901 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6902 (sh_nofp_frame_init_saved_regs): Ditto.
6903 (sh64_nofp_frame_init_saved_regs): Ditto.
6904 (sh_fp_frame_init_saved_regs): Ditto.
6905 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6906 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6907 * procfs.c (procfs_fetch_registers): Ditto.
6908 (procfs_store_registers): Ditto.
6909 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6910 (store_inferior_registers, fetch_core_registers): Ditto.
6911 (fetch_kcore_registers, clear_regs): Ditto.
6912 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6913 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6914 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6915 * nlm/i386.c (do_status): Ditto.
6916 * mipsv4-nat.c (supply_gregset): Ditto.
6917 * mips-tdep.c: Ditto for comments.
6918 * mips-nat.c (fetch_inferior_registers): Ditto.
6919 (store_inferior_registers, fetch_core_registers): Ditto.
6920 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6921 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6922 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6923 (i386_do_pop_frame, i386_register_type): Ditto.
6924 * hppa-tdep.c (hppa_frame_chain): Ditto.
6925 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6926 (hppa_pop_frame, hppa_read_fp): Ditto.
6927 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6928 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6929 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6930 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6931 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6932 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6933 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6934 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6935 * blockframe.c: Ditto for comments.
6936 * arch-utils.h: Ditto for comments.
6937 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6938 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6939 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6940 * alpha-tdep.h: Ditto for comments.
6941 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6942 (alpha_cannot_store_register): Ditto.
6943 (alpha_push_dummy_frame): Ditto.
6944 * alpha-nat.c (supply_gregset): Ditto.
6945
6946 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6947 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6948 * config/sparc/tm-sparc.h: Update comment.
6949
6950 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6951 deprecated_read_fp instead of TARGET_READ_FP.
6952 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6953 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6954 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6955 deprecated_read_fp instead of read_fp.
6956 * s390-tdep.c (s390_push_arguments): Ditto.
6957 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6958 * frame.h: Ditto in comments.
6959 * frame.c (legacy_get_prev_frame): Ditto.
6960 * dummy-frame.c (dummy_frame_this_id): Ditto.
6961 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6962
6963 2003-04-28 Andrew Cagney <cagney@redhat.com>
6964
6965 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6966 * gdbarch.h, gdbarch.c: Re-generate.
6967 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6968 * vax-tdep.c (_initialize_vax_tdep): Update.
6969 * v850-tdep.c (_initialize_v850_tdep): Update.
6970 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6971 * s390-tdep.c (_initialize_s390_tdep): Update.
6972 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6973 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6974 * mips-tdep.c (_initialize_mips_tdep): Update.
6975 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6976 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6977 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6978 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6979 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6980 * frv-tdep.c (_initialize_frv_tdep): Update.
6981 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6982 (_initialize_cris_tdep): Update.
6983 * arch-utils.c (legacy_print_insn): Update.
6984 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6985
6986 2003-04-26 Adam Fedor <fedor@gnu.org>
6987
6988 * linespec.c (decode_objc): New function to decode ObjC calls
6989 (decode_line_1): Check for ObjC calls (using decode_objc)
6990 * Makefile (linespec.o): Update dependencies.
6991
6992 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6993
6994 * breakpoint.h (struct breakpoint_ops): New.
6995 (struct breakpoint): Add ops member.
6996
6997 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6998 (mention): Use new breakpoint ops member.
6999 (set_raw_breakpoint): Initialize ops field to NULL.
7000 (print_exception_catchpoint, print_one_exception_catchpoint)
7001 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7002 (gnu_v3_exception_catchpoint_ops): New.
7003 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7004
7005 2003-04-25 Adam Fedor <fedor@gnu.org>
7006
7007 * Makefile.in (COMMON_OBS): Add objc-lang.o
7008
7009 2003-04-25 Andrew Cagney <cagney@redhat.com>
7010
7011 * d10v-tdep.c (print_insn): Delete function.
7012 (display_trace): Use TARGET_PRINT_INSN.
7013 (_initialize_d10v_tdep): Do not set tm_print_insn.
7014 (d10v_gdbarch_init): Set print_insn.
7015
7016 2003-04-25 Andrew Cagney <cagney@redhat.com>
7017
7018 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7019 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7020 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7021 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7022 (nr_dmap_regs, a0_regnum): ... new functions.
7023 (d10v_print_registers_info): Use a0_regnum, use register_size.
7024 (d10v_register_byte): Delete function.
7025 (d10v_register_raw_size): Delete function.
7026 (d10v_register_type): Use a0_regnum.
7027 (d10v_print_registers_info): Use a0_regnum.
7028 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7029 (d10v_gdbarch_init): Do not set register_byte or
7030 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7031 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7032 extract_address.
7033 (trace_command): Use XCALLOC.
7034 (print_insn): Delete reference to tm_print_insn.
7035 (saved_regs_unwinder): Use store_unsigned_integer instead of
7036 store_address.
7037 * frame.h (FRAME_OBSTACK_CALLOC): Define
7038
7039 2003-04-25 David Carlton <carlton@bactrian.org>
7040
7041 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7042
7043 2003-04-24 Adam Fedor <fedor@gnu.org>
7044
7045 * objc-lang.c: Include "valprint.h"
7046 * Makefile.in (objc-lang.o): Update dependencies.
7047
7048 2003-04-24 Adam Fedor <fedor@gnu.org>
7049
7050 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7051 architecture dependant compilation and mark as unimplemented
7052 (until they get put in the gdbarch vector).
7053
7054 2003-04-23 David Carlton <carlton@bactrian.org>
7055
7056 * cp-support.c (cp_find_first_component): Accept 'operator' in
7057 more locations.
7058
7059 2003-04-23 Andrew Cagney <cagney@redhat.com>
7060
7061 * infcall.c (call_function_by_hand): Eliminate redundant
7062 indentation. Move "saved_async" and "old_cleanups" to where they
7063 are needed.
7064
7065 2003-04-23 Andrew Cagney <cagney@redhat.com>
7066
7067 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7068 and "buffer". Move the "name" code to where it is needed.
7069
7070 2003-04-23 Andrew Cagney <cagney@redhat.com>
7071
7072 * infcall.c (call_function_by_hand): Move variables "start_sp",
7073 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7074 code to ON_STACK switch branch.
7075
7076 2003-04-23 Andrew Cagney <cagney@redhat.com>
7077
7078 * infcall.c (call_function_by_hand): Make declaration of "i",
7079 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7080 lint.
7081
7082 2003-04-23 Andrew Cagney <cagney@redhat.com>
7083
7084 * infcall.c (call_function_by_hand): Delete variable
7085 "n_method_args". Localize "param_type"'s declaration to the loop
7086 that it is used. Reinstate code assigning to said variable -
7087 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7088 Rationalize code using "param_type".
7089
7090 2003-04-22 Andrew Cagney <cagney@redhat.com>
7091
7092 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7093 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7094 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7095 to DEPRECATED_PUSH_RETURN_ADDRESS.
7096
7097 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7098
7099 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7100 on the DWARF2 register number prior to fetching a register.
7101
7102 2003-04-22 J. Brobecker <brobecker@gnat.com>
7103
7104 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7105 Update all the tests using SOFT_FLOAT considering the fact that
7106 this macro was always set to 0.
7107 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7108 considering the fact that this macro was always set to 0.
7109 * hppa-tdep.h (hppa_store_return_value): Likewise.
7110 (hppa_extract_return_value): Likewise.
7111
7112 2003-04-22 J. Brobecker <brobecker@gnat.com>
7113
7114 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7115 the hppa-pro target only.
7116
7117 2003-04-21 J. Brobecker <brobecker@gnat.com>
7118
7119 Ongoing multi-arch conversion effort for HP/UX:
7120 * config/pa/tm-hppa.h: Move all macro that are no longer
7121 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7122 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7123
7124 2003-04-21 J. Brobecker <brobecker@gnat.com>
7125
7126 * config/pa/tm-hppa.h: Obsolete a section that was only used
7127 for hppa-pro.
7128
7129 2003-04-21 J. Brobecker <brobecker@gnat.com>
7130
7131 Ongoing multi-arch conversion for HP/UX.
7132 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7133 if already defined (allows hppa64 to stay non-multiarched for now).
7134 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7135
7136 2003-04-21 Andrew Cagney <cagney@redhat.com>
7137
7138 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7139
7140 2003-04-21 Andrew Cagney <cagney@redhat.com>
7141
7142 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7143 "i386_num_mmx_regs".
7144
7145 2003-04-21 Andrew Cagney <cagney@redhat.com>
7146
7147 * infcall.c: New file.
7148 * infcall.h: New file.
7149 * valarith.c: Include "infcall.h".
7150 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7151 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7152 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7153 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7154 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7155 (SFILES): Add "infcall.c"
7156 (COMMON_OBS): Add "infcall.o".
7157 (infcall.o): Specify dependencies.
7158 * value.h (call_function_by_hand): Delete declaration.
7159 * inferior.h (run_stack_dummy): Delete declaration.
7160 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7161 (run_stack_dummy): Move to "infcall.c", merged into
7162 call_function_by_hand.
7163 * valops.c (call_function_by_hand): Moved to "infcall.c".
7164 (find_function_addr, value_arg_coerce): Ditto.
7165 (unwindonsignal_p, coerce_float_to_double): Ditto.
7166 (_initialize_valops): Move "set/show coerce-float-to-double", and
7167 "set/show unwindonsignal" commands to "infcall.c".
7168 * v850-tdep.c, target.h: Update comments.
7169 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7170 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7171 (sh64_init_extra_frame_info): Update comments.
7172 * mn10300-tdep.c: Update comments.
7173 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7174 * config/sparc/tm-sparc.h: Update comments.
7175 * breakpoint.h: Update comments.
7176 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7177 * arm-tdep.c: Update comment.
7178
7179 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7180
7181 * i386-tdep.c (i386_num_register_names): New variable.
7182 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7183 (MM0_REGNUM): Remove redundant parentheses in define.
7184 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7185 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7186 i386_mxcsr_regnum_p): Remove redundant parentheses.
7187 (i386_register_name): Use i386_num_register_names.
7188
7189 * i386-tdep.c (i386_extract_return_value,
7190 i386_store_return_value): Correct check for availability of
7191 floating-point registers.
7192
7193 * i386-tdep.c (i386_frame_num_args): Remove function.
7194 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7195
7196 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7197 mmx_regnum_to_fp_regnum. Adjust all callers.
7198
7199 * i386-tdep.c (i386_get_longjmp_target): Use
7200 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7201 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7202 extract_address.
7203
7204 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7205
7206 * core-regset.c: Update comments to reflect reality. Re-order
7207 includes.
7208 (fetch_core_registers): Use switch instead of if. Remove
7209 redundant prototype.
7210
7211 2003-04-18 Jim Blandy <jimb@redhat.com>
7212
7213 * s390-tdep.c (s390_frame_align): New function.
7214 (s390_gdbarch_init): Register it with the gdbarch object.
7215
7216 2003-04-17 Richard Henderson <rth@redhat.com>
7217
7218 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7219
7220 2003-04-17 Michael Snyder <msnyder@redhat.com>
7221 Karen Bennet <bennet@redhat.com>
7222
7223 Committed by Elena Zannoni <ezannoni@redhat.com>
7224 * gdb_gcore.sh: New script to create a core dump of a process.
7225
7226 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7227
7228 * values.c (value_being_returned): Don't fetch the return
7229 value if the return type is void.
7230
7231 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7232
7233 * thread-db.c: Reindented.
7234
7235 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7236
7237 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7238 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7239 as types.
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7266
7267 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7268 the size of ``long double'' to 16, instead of 8.
7269
7270 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7271
7272 * i386-linux-nat.c: Add some whitespace to make things more
7273 readable.
7274 (fetch_register, store_register, fetch_inferior_registers,
7275 store_inferior_registers): Get rid of assignment in if-statement.
7276 (store_register): Fix typo in error message.
7277
7278 2003-04-16 Andrew Cagney <cagney@redhat.com>
7279
7280 * utils.c (xmmalloc): Always allocate something, matches
7281 libiberty/xmalloc's semantics.
7282 (xmrealloc, xmcalloc): Ditto.
7283
7284 2003-04-16 Andrew Cagney <cagney@redhat.com>
7285
7286 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7287 update comments.
7288 (get_frame_type): Initialize unwind and type when needed.
7289 (get_frame_id, frame_register_unwind): Ditto.
7290
7291 2003-04-16 Andrew Cagney <cagney@redhat.com>
7292
7293 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7294 obsolete.
7295 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7296 * sparcl-stub.c: Obsolete file.
7297 * config/sparc/tm-sparclet.h: Obsolete file.
7298 * sparclet-stub.c: Obsolete file.
7299 * sparclet-rom.c: Obsolete file.
7300 * sparcl-tdep.c: Obsolete file.
7301 * config/sparc/tm-sparclite.h: Obsolete file.
7302 * config/sparc/sparclite.mt: Obsolete file.
7303 * config/sparc/sparclet.mt: Obsolete file.
7304 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7305 sparc86x-*-* obsolete.
7306
7307 2003-04-15 David Carlton <carlton@math.stanford.edu>
7308
7309 * Makefile.in (SFILES): Add cp-namespace.c.
7310 (COMMON_OBS): Add cp-namespace.o.
7311 (block.o): Depend on gdb_obstack_h and cp_support_h.
7312 (buildsym.o): Depend on cp_support_h.
7313 (cp-namespace.o): New.
7314 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7315 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7316 (dwarf2read.o): Depend on cp_support_h.
7317 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7318 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7319 processing_current_namespace.
7320 (read_namespace): Update processing_current_namespace; check for
7321 anonymous namespaces.
7322 (dwarf2_name): New function.
7323 (dwarf2_extension): Ditto.
7324 * cp-support.h: Update copyright, contributors.
7325 Add inclusion guards.
7326 Add opaque declaration for structs obstack, block, symbol.
7327 (struct using_direct): New struct.
7328 Add declarations for cp_find_first_component,
7329 cp_entire_prefix_len, processing_has_namespace_info,
7330 processing_current_namespace, cp_is_anonymous,
7331 cp_add_using_directive, cp_initialize_namespace,
7332 cp_finalize_namespace, cp_set_block_scope,
7333 cp_scan_for_anonymous_namespaces.
7334 * cp-namespace.c: New file.
7335 * cp-support.c: Update copyright.
7336 Include ctype.h, gdb_assert.h, gdbcmd.h.
7337 New variable maint_cplus_cmd_list.
7338 (cp_find_first_component): New function.
7339 (cp_entire_prefix_len, maint_cplus_command)
7340 (first_component_command, _initialize_cp_support): Ditto.
7341 * buildsym.c: Include cp-support.h.
7342 New variable using_list.
7343 (add_symbol_to_list): Check for anonymous namespaces.
7344 (finish_block): Set block's scope.
7345 (start_symtab): Initialize C++ namespace support.
7346 (end_symtab): Finalize C++ namespace support.
7347 * block.h: Add opaque declarations for structs
7348 block_namespace_info, using_direct, and obstack.
7349 Add declarations for block_set_scope and block_set_using.
7350 (struct block): Add 'language_specific' member.
7351 (BLOCK_NAMESPACE): New macro.
7352 * block.c: Include gdb_obstack.h and cp-support.h.
7353 (struct block_namespace_info): New struct.
7354 (block_set_scope): New function.
7355 (block_set_using, block_initialize_namespace): Ditto.
7356
7357 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7358
7359 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7360 (locate_base): Return early if there aren't any link map offsets.
7361 (svr4_solib_create_inferior_hook): Warn if shared library support
7362 is unavailable.
7363
7364 2003-04-14 David Carlton <carlton@math.stanford.edu>
7365
7366 * symtab.c (symbol_set_names): Add prefix when storing Java names
7367 in hash table. Fix for PR java/1039.
7368
7369 2003-04-14 David Carlton <carlton@math.stanford.edu>
7370
7371 * symtab.c (symbol_set_names): Rename 'name' arg to
7372 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7373 * symtab.h: Change 'name' argument in declaration of
7374 symbol_set_names to 'linkage_name'.
7375 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7376
7377 2003-04-14 Andrew Cagney <cagney@redhat.com>
7378
7379 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7380 return the fully sign-extended register value.
7381 (get_frame_pointer): Ditto.
7382 (mips_pop_frame): Initialize "proc_desc" after checking for a
7383 dummy frame.
7384
7385 2003-04-14 Andrew Cagney <cagney@redhat.com>
7386
7387 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7388 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7389 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7390 (mips_push_register): Delete function.
7391 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7392 PUSH_FP_REGNUM.
7393
7394 2003-04-14 Jim Blandy <jimb@redhat.com>
7395
7396 * symmisc.c: #include "gdb_regex.h".
7397 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7398 functions.
7399 * maint.c (maintenance_list_command): New function.
7400 (_initialize_maint_cmds): Register the above as commands.
7401 * symtab.h (maintenance_list_symtabs,
7402 maintenance_list_psymtabs): New declarations.
7403 * cli/cli-cmds.c (maintenancelistlist): New variable.
7404 (init_cmd_lists): Initialize it.
7405 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7406 * gdbcmd.h (maintenancelistlist): New declaration.
7407 * Makefile.in (symmisc.o): Update dependencies.
7408
7409 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7410
7411 * s390-nat.c: Include asm/types.h for addr_t.
7412
7413 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7414
7415 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7416 actually incoming type.
7417
7418 2003-04-13 Andrew Cagney <cagney@redhat.com>
7419
7420 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7421 get_next_frame and get_frame_saved_regs.
7422
7423 2003-04-13 Andrew Cagney <cagney@redhat.com>
7424
7425 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7426 of gdbarch_num_regs.
7427
7428 2003-04-13 Andrew Cagney <cagney@redhat.com>
7429
7430 * frame.h: Mention what replaced what in "struct frame_info".
7431 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7432 deprecated_update_frame_base_hack and
7433 deprecated_update_frame_pc_hack.
7434 * hppa-tdep.c: Ditto.
7435
7436 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7437
7438 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7439 to read_reg and update its comment. Remove regnum member.
7440 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7441 Don't call read_reg when setting in_reg. Call read_reg to get
7442 the frame base if it's in a register. Return the register number
7443 on the stack instead of in the context. Remove extra arguments
7444 to read_reg.
7445 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7446 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7447 the register number on the expression stack.
7448 (needs_frame_read_reg): Remove extra arguments.
7449
7450 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7451
7452 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7453 made non-static.
7454 (execute_stack_op): All callers updated.
7455 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7456 * dwarf2loc.c (find_location_expression): New function.
7457 (dwarf_expr_frame_base): Call it.
7458 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7459 (dwarf2_tracepoint_var_ref): New function, broken out from
7460 locexpr_tracepoint_var_ref.
7461 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7462 Make static.
7463 (loclist_read_variable, loclist_read_needs_frame): New functions.
7464 (loclist_describe_location, loclist_tracepoint_var_ref): New
7465 functions.
7466 (dwarf2_loclist_funcs): New struct location_funcs.
7467 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7468 (struct dwarf2_locexpr_baton): Add comments.
7469 (dwarf2_loclist_funcs): New extern.
7470 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7471 base_address and base_known.
7472 (dwarf_loc_buffer): New variable.
7473 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7474 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7475 (dwarf2_has_info): Initialize dwarf_loc_offset.
7476 (dwarf2_build_psymtabs): Read in .debug_loc.
7477 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7478 DWARF_LOC_SIZE.
7479 (psymtab_to_symtab_1): Likewise. Move base address calculation
7480 here, from...
7481 (dwarf2_get_pc_bounds): ... here. Use the base address from
7482 cu_header.
7483 (dwarf2_symbol_mark_computed): Handle location lists.
7484
7485 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7486
7487 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7488 if the linkage name demangled successfully.
7489
7490 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7491
7492 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7493 disassmbly_flavour): Removed.
7494
7495 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7496
7497 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7498
7499 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7500
7501 2003-04-12 Andrew Cagney <cagney@redhat.com>
7502
7503 * frame.h (struct frame_info): Move definition from here ...
7504 * frame.c (struct frame_info): ... to here.
7505
7506 2003-04-12 Andrew Cagney <cagney@redhat.com>
7507
7508 * gdbthread.h (save_infrun_state): Delete parameter
7509 "prev_func_start".
7510 (struct thread_info): Delete field "prev_func_start".
7511 (load_infrun_state): Ditto.
7512 * thread.c (load_infrun_state, save_infrun_state): Update.
7513 * infrun.c (prev_func_start): Delete variable.
7514 (context_switch, init_wait_for_inferior): Update.
7515 (stop_stepping, keep_going): Update.
7516
7517 2003-04-12 Andrew Cagney <cagney@redhat.com>
7518
7519 * gdbarch.sh: Add missing opaque declarations.
7520 * gdbarch.h: Regnerate.
7521 * symtab.h: Add missing opaque declarations.
7522 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7523 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7524 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7525 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7526 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7527 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7528 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7529 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7530 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7531 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7532 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7533 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7534 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7535
7536 2003-04-11 Andrew Cagney <cagney@redhat.com>
7537
7538 * frame.c (get_frame_id): Return this frame's "id".
7539 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7540 function start.
7541 (legacy_saved_regs_this_id): Replace function body with
7542 internal-error.
7543 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7544 FRAME_OBSTACK_ZALLOC.
7545 (create_new_frame): Mark the frame ID as valid.
7546
7547 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7548
7549 * Makefile.in (libbfd_h): Added missing setting.
7550 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7551 according to the selected ABI.
7552
7553 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7554
7555 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7556
7557 2003-04-11 Andrew Cagney <cagney@redhat.com>
7558
7559 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7560 SAVED_PC_AFTER_CALL.
7561 * gdbarch.h, gdbarch.c: Regenerate.
7562 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7563 * x86-64-tdep.c (x86_64_init_abi): Update.
7564 * vax-tdep.c (vax_gdbarch_init): Update.
7565 * v850-tdep.c (v850_gdbarch_init): Update.
7566 * sparc-tdep.c (sparc_gdbarch_init): Update.
7567 * sh-tdep.c (sh_gdbarch_init): Update.
7568 * s390-tdep.c (s390_gdbarch_init): Update.
7569 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7570 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7571 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7572 * mips-tdep.c (mips_gdbarch_init): Update.
7573 * mcore-tdep.c (mcore_gdbarch_init): Update.
7574 * m68k-tdep.c (m68k_gdbarch_init): Update.
7575 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7576 * ia64-tdep.c (ia64_gdbarch_init): Update.
7577 (ia64_saved_pc_after_call): Update declaration.
7578 * i386ly-tdep.c (i386lynx_init_abi): Update.
7579 * i386-tdep.c (i386_gdbarch_init): Update.
7580 * hppa-tdep.c (hppa_gdbarch_init): Update.
7581 * h8300-tdep.c (h8300_gdbarch_init): Update.
7582 * frv-tdep.c (frv_gdbarch_init): Update.
7583 * cris-tdep.c (cris_gdbarch_init): Update.
7584 * avr-tdep.c (avr_gdbarch_init): Update.
7585 * arm-tdep.c (arm_gdbarch_init): Update.
7586 * alpha-tdep.c (alpha_gdbarch_init): Update.
7587 * ns32knbsd-nat.c (frame_num_args): Update.
7588 * ns32k-tdep.c (umax_frame_num_args): Update.
7589 * mips-tdep.c (mips_init_frame_pc_first): Update.
7590 * infrun.c (step_over_function): Update.
7591 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7592 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7593 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7594 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7595 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7596 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7597 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7598 * arch-utils.c (init_frame_pc_default): Update.
7599 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7600 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7601 declaration.
7602
7603 2003-04-11 Andrew Cagney <cagney@redhat.com>
7604
7605 * i387-tdep.c: Update copyright.
7606 (i387_to_double): Delete function.
7607 (double_to_i387): Delete function.
7608
7609 2003-04-10 Andrew Cagney <cagney@redhat.com>
7610
7611 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7612 frame's function's address. Simplify.
7613 (d10v_frame_unwind_cache): Check that the frame's function is
7614 non-zero.
7615
7616 2003-04-10 Jim Blandy <jimb@redhat.com>
7617
7618 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7619 call to set_gdbarch_deprecated_push_arguments.
7620
7621 2003-04-10 Andrew Cagney <cagney@redhat.com>
7622
7623 * frame.c (fprint_frame_id): New function.
7624 (fprint_frame_type, fprint_frame): New function.
7625 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7626 (create_sentinel_frame, get_frame_id): Ditto.
7627 (frame_id_p, frame_id_eq): Ditto.
7628 (frame_id_inner, create_new_frame): Ditto.
7629 (legacy_get_prev_frame, get_prev_frame): Ditto.
7630 (deprecated_update_frame_pc_hack): Ditto.
7631 (frame_register_unwind): Ditto.
7632 (deprecated_update_frame_base_hack): Ditto.
7633
7634 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7635
7636 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7637 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7638 frame_chain function.
7639 * Makefile.in: Add dependencies due to above change.
7640
7641 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7642
7643 * blockframe.c (legacy_frame_chain_valid): Move call to
7644 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7645 inside_entry_file.
7646
7647 2003-04-09 Andrew Cagney <cagney@redhat.com>
7648
7649 * frame.h (struct frame_id): Replace "pc" and "base" with
7650 "stack_addr" and "code_addr". Update comments.
7651 (frame_id_build): Update parameter names and comment.
7652 (struct frame_info): Replace "id_p" and "id" with "this_id".
7653 * dummy-frame.c (dummy_frame_this_id): Update.
7654 * breakpoint.c (print_one_breakpoint): Update.
7655 * frame.c (get_frame_id): Update.
7656 (get_frame_base, frame_id_build): Update.
7657 (create_sentinel_frame, legacy_get_prev_frame): Update.
7658 (deprecated_update_frame_base_hack): Update.
7659 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7660 (frame_id_inner): Ditto.
7661
7662 2003-04-09 Andrew Cagney <cagney@redhat.com>
7663
7664 * defs.h (gdb_print_host_address): Make "addr" parameter a
7665 pointer constant.
7666 * utils.c (gdb_print_host_address): Update.
7667
7668 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7669
7670 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7671 register number for R0 is 0.
7672
7673 2003-04-09 J. Brobecker <brobecker@gnat.com>
7674
7675 * frame.h (struct gdbarch): Add opaque structure definition
7676 to avoid a compilation warning on LynxOS 4.0.
7677
7678 2003-04-09 Andrew Cagney <cagney@redhat.com>
7679
7680 * frame.h (struct frame_info): Delete field "pc". Replace
7681 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7682 structure.
7683 * frame.c (frame_pc_unwind): Update.
7684 (create_sentinel_frame): Do not set "pc".
7685 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7686 (get_frame_pc): Call frame_pc_unwind.
7687 (deprecated_update_frame_pc_hack): Update.
7688 (create_new_frame): Use "pc" not "->pc".
7689
7690 2003-04-09 Andrew Cagney <cagney@redhat.com>
7691
7692 * frame.c (get_frame_id): Eliminate code updating "frame".
7693 (legacy_get_prev_frame): Ditto.
7694 (get_frame_base): Return id.base directly.
7695 (deprecated_update_frame_base_hack): Update "id.base".
7696 * frame.h (struct frame_info): Delete field "frame".
7697
7698 2003-04-09 Andrew Cagney <cagney@redhat.com>
7699
7700 * NEWS: Mention that the "Sequent family" is obsolete.
7701 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7702 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7703 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7704 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7705 * config/i386/tm-ptx4.h: Obsolete file.
7706 * config/i386/tm-ptx.h: Obsolete file.
7707 * symm-tdep.c: Obsolete file.
7708 * config/i386/symmetry.mt: Obsolete file.
7709 * config/i386/tm-symmetry.h: Obsolete file.
7710 * symm-nat.c: Obsolete file.
7711 * config/i386/nm-symmetry.h: Obsolete file.
7712 * config/i386/xm-symmetry.h: Obsolete file.
7713 * config/i386/symmetry.mh: Obsolete file.
7714 * config/i386/nm-ptx4.h: Obsolete file.
7715 * config/i386/ptx4.mh: Obsolete file.
7716 * config/i386/ptx.mt: Obsolete file.
7717 * config/i386/ptx.mh: Obsolete file.
7718 * config/i386/xm-ptx4.h: Obsolete file.
7719 * config/i386/xm-ptx.h: Obsolete file.
7720
7721 2003-04-09 Andrew Cagney <cagney@redhat.com>
7722
7723 Obsolete mips*-*-mach3*.
7724 * NEWS: Mention that mips*-*-mach3* is obsolete.
7725 * m3-nat.c: Obsolete file.
7726 * config/nm-m3.h: Obsolete file.
7727 * config/mips/tm-mipsm3.h: Obsolete file.
7728 * config/mips/mipsm3.mt: Obsolete file.
7729 * config/mips/mipsm3.mh: Obsolete file.
7730 * config/mips/xm-mipsm3.h: Obsolete file.
7731 * mipsm3-nat.c: Obsolete file.
7732 * configure.host: Obsolete mips-dec-mach3*.
7733 * configure.tgt: Obsolete mips*-*-mach3*.
7734
7735 2003-04-09 Andrew Cagney <cagney@redhat.com>
7736
7737 * doublest.h: Update copyright.
7738 (deprecated_store_floating, deprecated_extract_floating): Rename
7739 store_floating and extract_floating. Update comments.
7740 * doublest.c: Update copyright.
7741 (extract_floating_by_length): Replace extract_floating.
7742 (store_floating_by_length): Replace store_floating.
7743 (deprecated_extract_floating): New function.
7744 (deprecated_store_floating): New function.
7745 (extract_typed_floating): Call extract_floating_by_length.
7746 (store_typed_floating): Call store_floating_by_length.
7747 * x86-64-tdep.c (x86_64_store_return_value): Update.
7748 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7749 (sh64_extract_return_value): Update.
7750 (sh_sh4_register_convert_to_virtual): Update.
7751 (sh_sh64_register_convert_to_virtual): Update.
7752 (sh_sh4_register_convert_to_raw): Update.
7753 (sh_sh64_register_convert_to_raw): Update.
7754 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7755 (rs6000_register_convert_to_raw): Update.
7756 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7757 (ia64_register_convert_to_raw): Update.
7758 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7759 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7760 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7761 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7762 (alpha_register_convert_to_raw): Update.
7763
7764 2003-04-08 Andrew Cagney <cagney@redhat.com>
7765
7766 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7767 * gdbarch.h, gdbarch.c: Re-generate.
7768 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7769 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7770 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7771 conditionally, use frame_pc_unwind as an alternative. Add
7772 comments.
7773 * arch-utils.c (init_frame_pc_default): Only call
7774 SAVED_PC_AFTER_CALL when available.
7775
7776 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7777
7778 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7779 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7780 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7781 (start_remote): Ditto.
7782 (handle_inferior_event): Ditto.
7783 (save_inferior_status): Ditto.
7784 (restore_inferior_status): Ditto.
7785 * infcmd.c (attach_command): Ditto.
7786 * fork-child.c (startup_inferior): Ditto.
7787 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7788 * alpha-tdep.c (heuristic_proc_start): Ditto.
7789 * mips-tdep.c (heuristic_proc_start): Ditto.
7790 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7791 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7792 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7793 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7794 * remote-vx.c (vx_create_inferior): Ditto.
7795
7796 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7797
7798 * infrun.c (stop_soon_quietly): Make it an enum, to better
7799 override the default behavior of handle_inferior_event.
7800 (clear_proceed_status): Update uses of stop_soon_quietly to
7801 reflect that it is now an enum.
7802 (start_remote): Ditto.
7803 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7804 is set to handle the new GNU/Linux kernel behavior for
7805 attach/sigstop. Update uses of stop_soon_quietly.
7806 * inferior.h (enum stop_kind): New enum.
7807 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7808 Reset normal handle_inferior_event behavior, afterwards.
7809 * fork-child.c (startup_inferior): Update.
7810 * alpha-tdep.c (heuristic_proc_start): Update.
7811 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7812 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7813 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7814 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7815 * remote-vx.c (vx_create_inferior): Update.
7816 * mips-tdep.c (heuristic_proc_start): Update.
7817
7818 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7819
7820 * disasm.c (dump_insns): Move variables inside loop, or they will
7821 be freed more than once, causing wild memory corruptions.
7822 (gdb_disassembly): Look for the substring "-thread",
7823 instead of "-threads" in the target name, to make sure to find
7824 the 'multi-thread' target. Also, make sure we do the right thing
7825 with the "core" target.
7826
7827 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7828
7829 * mips-tdep.c (mips_print_fp_register): New function, created from
7830 do_fp_register_row(). Registers are now (also) printed as hex.
7831 Only one register is printed per row.
7832 (mips_print_register, do_fp_register_row): Print floating point
7833 registers with mips_print_fp_register().
7834
7835 2003-04-06 Andrew Cagney <cagney@redhat.com>
7836
7837 * valprint.h (inspect_it): Add extern declaration.
7838 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7839 (selectors_info, classes_info): Ditto.
7840 (find_objc_msgcall): Fix indentation.
7841 (objc_printstr): Delete extern declarations.
7842
7843 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7844
7845 2003-04-06 Andrew Cagney <cagney@redhat.com>
7846
7847 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7848 Update comment.
7849 * frame.c (legacy_saved_regs_this_id): Update.
7850 (legacy_get_prev_frame): Update.
7851 * xstormy16-tdep.c: Update comment.
7852 * sparc-tdep.c (sparc_frame_chain): Update comment.
7853 * blockframe.c (legacy_frame_chain_valid): Update.
7854
7855 2003-04-06 Andrew Cagney <cagney@redhat.com>
7856
7857 * valprint.c (val_print_type_code_int): Delete #ifdef
7858 PRINT_TYPELESS_INTEGER code.
7859
7860 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7861 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7862 multi-arch definition.
7863 * gdbarch.h: Re-generate.
7864
7865 2003-04-05 Andrew Cagney <cagney@redhat.com>
7866
7867 Eliminate FRAME_FIND_SAVED_REGS.
7868 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7869 Change FSR parameter to a pointer.
7870 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7871 Assume FSR parameter is a pointer.
7872 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7873 Make fsr a pointer.
7874 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7875 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7876 saved_regs a pointer.
7877 (hppa_frame_saved_pc): Ditto.
7878 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7879 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7880 pointer.
7881 (restore_pc_queue): Make fsr a pointer.
7882 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7883 (hppa_frame_chain): Make saved_regs a pointer, call
7884 hppa_frame_init_saved_regs.
7885 * sparc-tdep.c: Include "gdb_assert.h".
7886 (sparc_frame_find_saved_regs): Replace internal_error with
7887 gdb_assert.
7888 * remote-vxsparc.c (vx_read_register): Delete reference to
7889 FRAME_FIND_SAVED_REGS.
7890 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7891 * gdbarch.h: Regenerate.
7892 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7893 (deprecated_get_frame_saved_regs): Delete declaration.
7894 (struct frame_saved_regs): Delete definition.
7895 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7896 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7897 (hppa_frame_find_saved_regs): Delete declaration.
7898 (FRAME_FIND_SAVED_REGS): Delete macro.
7899 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7900 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7901 FRAME_FIND_SAVED_REGS in comment.
7902
7903 2003-04-05 Andrew Cagney <cagney@redhat.com>
7904
7905 * frame.c (frame_func_unwind, get_frame_func): New functions.
7906 * frame.h (get_frame_func, frame_func_unwind): Declare.
7907 (struct frame_info): Add field "prev_func" for caching the
7908 previous frame's function address.
7909 * arm-tdep.c (arm_frameless_function_invocation): Combine
7910 get_pc_function_start and get_frame_pc into get_frame_func.
7911 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7912 (sh64_nofp_frame_init_saved_regs): Ditto.
7913 * s390-tdep.c (s390_function_start): Ditto.
7914 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7915 (rs6000_frameless_function_invocation): Ditto.
7916 (rs6000_frame_saved_pc): Ditto.
7917 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7918 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7919 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7920 (i386_frame_init_saved_regs): Ditto.
7921 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7922 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7923 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7924 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7925 * blockframe.c (frameless_look_for_prologue): Ditto.
7926
7927 2003-04-05 Andrew Cagney <cagney@redhat.com>
7928
7929 * frame.c (legacy_get_prev_frame): Link prev to next at the
7930 function start. Update comments.
7931
7932 2003-04-05 Andrew Cagney <cagney@redhat.com>
7933
7934 * frame.c (get_frame_id): Update comment.
7935 (legacy_get_prev_frame): Update comment.
7936 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7937 * gdbarch.h: Regenerate.
7938 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7939 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7940
7941 2003-04-05 Andrew Cagney <cagney@redhat.com>
7942
7943 * stack.c (print_frame_info): Use get_frame_pc.
7944
7945 2003-04-04 Andrew Cagney <cagney@redhat.com>
7946
7947 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7948 the frame's type from the unwinder.
7949 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7950 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7951 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7952 (get_frame_base_address): Use get_frame_type.
7953 (get_frame_locals_address, get_frame_args_address): Ditto.
7954 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7955 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7956 (struct frame_info): Add comment explaining why the frame contains
7957 a "type" field.
7958 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7959 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7960 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7961 NORMAL_FRAME.
7962 * frame-unwind.h: Include "frame.h".
7963 (struct frame_unwind): Add "type" field.
7964 * Makefile.in (frame_unwind_h): Add $(frame_h).
7965
7966 2003-04-04 Andrew Cagney <cagney@redhat.com>
7967
7968 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7969 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7970 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7971 get_frame_base.
7972 (d10v_unwind_dummy_id): Use frame_id_build.
7973 * frame.c (find_frame_sal): Use get_frame_pc.
7974 (create_new_frame): Use deprecated_update_frame_pc_hack and
7975 deprecated_update_frame_base_hack.
7976 (create_sentinel_frame): Add comment about ->pc going away.
7977 (get_prev_frame): Add comment about ->pc going away.
7978 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7979 frame_id_build, deprecated_update_frame_pc_hack and
7980 deprecated_update_frame_base_hack.
7981 (select_frame): Use get_frame_pc.
7982 (legacy_saved_regs_this_id): Use frame_id_build.
7983
7984 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7985
7986 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7987 signed integer case.
7988 (classify_argument): Handle enumerations and references.
7989
7990 2003-04-04 Andrew Cagney <cagney@redhat.com>
7991
7992 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7993 ID to NULL.
7994
7995 2003-04-01 Adam Fedor <fedor@gnu.org>
7996
7997 * gdb/objc-lang.c (selectors_info): Replace calls to
7998 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7999 SYMBOL_NATURAL_NAME.
8000 (classes_info, find_methods): Likewise.
8001
8002 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8003
8004 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8005 ``mach'' to the value determined by bfd_default_set_arch_mach().
8006
8007 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8008
8009 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8010 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8011 (mi-cmd-file.o): Update dependencies.
8012
8013 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8014
8015 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8016 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8017
8018 2003-04-01 Adam Fedor <fedor@gnu.org>
8019
8020 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8021 * language.h (struct language_defn): Add la_demangle.
8022 (language_demangle): Declare.
8023 * language.c (language_demangle): New function.
8024 (unk_lang_demangle): Likewise.
8025 (unknown_language_defn, auto_language_defn, local_language_defn):
8026 Add ukn_lang_demangle.
8027 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8028 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8029 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8030 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8031 * jv-lang.c (java_demangle): New function
8032 (java_language_defn): Use it for la_demangle element.
8033 * objc-lang.c (objc_demangle): Add options argument
8034 (objc_language_defn): Use objc_demangle for la_demangle element.
8035 * maint.c (maintenance_demangle): Replace switch with
8036 call to language_demangle.
8037 * utils.c (fprintf_symbol_filtered): Likewise.
8038
8039 2003-04-01 Andrew Cagney <cagney@redhat.com>
8040
8041 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8042 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8043 PRINT_TYPELESS_INTEGER.
8044 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8045 PUSH_RETURN_ADDRESS.
8046
8047 2003-04-01 Andrew Cagney <cagney@redhat.com>
8048
8049 * Makefile.in (d10v-tdep.o): Update dependencies.
8050 * d10v-tdep.c: Include "frame-base.h".
8051 (d10v_frame_unwind): Make constant.
8052 (d10v_frame_base_address): New function.
8053 (d10v_frame_base): New variable.
8054 (d10v_gdbarch_init): Set frame_base default.
8055 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8056 comment for base.
8057 (d10v_frame_unwind_cache): Set and use "prev_sp".
8058 (d10v_frame_this_id): Use the previous frame's inner most stack
8059 address and this frame's func address for the frame ID. Use
8060 frame_id_build. Don't analyze beyond the current instruction.
8061
8062 2003-04-01 Andrew Cagney <cagney@redhat.com>
8063
8064 * frame.h (get_frame_locals_address, get_frame_args_address):
8065 Refer to the base address, instead of the address of the first
8066 local or parameter.
8067
8068 2003-04-01 Andrew Cagney <cagney@redhat.com>
8069
8070 Add frame debug info addresses:
8071 * frame-base.c: New file.
8072 * frame-base.h: New file.
8073 * frame.h (struct frame_base): Add opaque declaration.
8074 (get_frame_base): Update comment.
8075 (get_frame_base_address): Declare.
8076 (get_frame_locals_address): Declare.
8077 (get_frame_args_address): Declare.
8078 (struct frame_info): Add "base" and "base_cache". Update
8079 comments on the unwinder.
8080 * frame.c: Include "frame-base.h".
8081 (get_frame_locals_address): New function.
8082 (get_frame_base_address): New function.
8083 (get_frame_args_address): New function.
8084 * findvar.c (read_var_value): Use get_frame_locals_address and
8085 get_frame_args_address.
8086 * stack.c (frame_info): Use get_frame_locals_address and
8087 get_frame_args_address.
8088 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8089 moved to "frame-base.c".
8090 * printcmd.c (print_frame_nameless_args): Ditto.
8091 * symtab.h (address_class): Update comments.
8092 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8093 get_frame_base_address.
8094 * dwarf2expr.c (execute_stack_op): Ditto.
8095 * Makefile.in (frame_base_h): Define.
8096 (frame.o): Update dependencies.
8097 (frame-base.o): Add dependencies.
8098 (SFILES): Add frame-base.c.
8099 (COMMON_OBS): Add frame-base.o.
8100
8101 2003-04-01 Andrew Cagney <cagney@redhat.com>
8102
8103 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8104 CALL_DUMMY_LENGTH): Ditto.
8105 * gdbarch.c: Re-generate.
8106 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8107 (CALL_DUMMY_LENGTH): Delete macro.
8108 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8109 * arm-tdep.c (arm_gdbarch_init): Ditto.
8110 * avr-tdep.c (avr_gdbarch_init): Ditto.
8111 * cris-tdep.c (cris_gdbarch_init): Ditto.
8112 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8113 * frv-tdep.c (frv_gdbarch_init): Ditto.
8114 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8115 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8116 * i386-tdep.c (i386_gdbarch_init): Ditto.
8117 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8118 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8119 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8120 * mips-tdep.c (mips_gdbarch_init): Ditto.
8121 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8122 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8123 * s390-tdep.c (s390_gdbarch_init): Ditto.
8124 * sh-tdep.c (sh_gdbarch_init): Ditto.
8125 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8126 * v850-tdep.c (v850_gdbarch_init): Ditto.
8127 * vax-tdep.c (vax_gdbarch_init): Ditto.
8128 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8129
8130 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8131
8132 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8133
8134 2003-04-01 Andrew Cagney <cagney@redhat.com>
8135
8136 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8137 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8138 * gdbarch.h, gdbarch.c: Re-generate.
8139 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8140 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8141 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8142 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8143 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8144 * infcmd.c (run_stack_dummy): Simplify assuming
8145 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8146 * infrun.c (handle_inferior_event): Ditto.
8147 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8148 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8149 * arm-tdep.c (arm_gdbarch_init): Ditto.
8150 * avr-tdep.c (avr_gdbarch_init): Ditto.
8151 * cris-tdep.c (cris_gdbarch_init): Ditto.
8152 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8153 * frv-tdep.c (frv_gdbarch_init): Ditto.
8154 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8155 * i386-tdep.c (i386_gdbarch_init): Ditto.
8156 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8157 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8158 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8159 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8160 * mips-tdep.c (mips_gdbarch_init): Ditto.
8161 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8162 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8163 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8164 * s390-tdep.c (s390_gdbarch_init): Ditto.
8165 * sh-tdep.c (sh_gdbarch_init): Ditto.
8166 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8167 * v850-tdep.c (v850_gdbarch_init): Ditto.
8168 * vax-tdep.c (vax_gdbarch_init): Ditto.
8169 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8170
8171 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8172
8173 * symfile.c (symfile_relocate_debug_section): Update call to
8174 bfd_simple_get_relocated_section_contents.
8175
8176 2003-03-31 Andrew Cagney <cagney@redhat.com>
8177
8178 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8179 * gdbarch.h, gdbarch.c: Regenerate.
8180 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8181 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8182 available.
8183 * frame.h (generic_fix_call_dummy): Delete declaration.
8184 * dummy-frame.h: Update comment.
8185 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8186 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8187 fix_call_dummy.
8188 * sh-tdep.c (sh_gdbarch_init): Ditto.
8189 * s390-tdep.c (s390_gdbarch_init): Ditto.
8190 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8191 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8192 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8193 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8194 * i386-tdep.c (i386_gdbarch_init): Ditto.
8195 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8196 * frv-tdep.c (frv_gdbarch_init): Ditto.
8197 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8198 * cris-tdep.c (cris_gdbarch_init): Ditto.
8199 * avr-tdep.c (avr_gdbarch_init): Ditto.
8200 * arm-tdep.c (arm_gdbarch_init): Ditto.
8201
8202 2003-03-31 J. Brobecker <brobecker@gnat.com>
8203
8204 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8205 (INIT_FRAME_AP): Likewise.
8206 (EXTRA_FRAME_INFO): Likewise.
8207
8208 2003-03-31 Andrew Cagney <cagney@redhat.com>
8209
8210 * gdbarch.sh: Include "symfile.h".
8211 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8212 * gdbarch.h, gdbarch.c: Re-generate.
8213 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8214 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8215 call_dummy_address, the default is at entry_point_address.
8216 * v850-tdep.c (v850_gdbarch_init): Ditto.
8217 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8218 * sh-tdep.c (sh_gdbarch_init): Ditto.
8219 * s390-tdep.c (s390_gdbarch_init): Ditto.
8220 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8221 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8222 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8223 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8224 * i386-tdep.c (i386_gdbarch_init): Ditto.
8225 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8226 * frv-tdep.c (frv_gdbarch_init): Ditto.
8227 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8228 * cris-tdep.c (cris_gdbarch_init): Ditto.
8229 * arm-tdep.c (arm_gdbarch_init): Ditto.
8230
8231 2003-03-31 Andrew Cagney <cagney@redhat.com>
8232
8233 * gdbarch.sh (CALL_DUMMY_P): Delete.
8234 * gdbarch.h, gdbarch.c: Re-generate.
8235 * inferior.h (CALL_DUMMY_P): Delete macro.
8236 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8237 * vax-tdep.c (vax_gdbarch_init): Update.
8238 * v850-tdep.c (v850_gdbarch_init): Update.
8239 * sparc-tdep.c (sparc_gdbarch_init): Update.
8240 * sh-tdep.c (sh_gdbarch_init): Update.
8241 * s390-tdep.c (s390_gdbarch_init): Update.
8242 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8243 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8244 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8245 * mips-tdep.c (mips_gdbarch_init): Update.
8246 * mcore-tdep.c (mcore_gdbarch_init): Update.
8247 * m68k-tdep.c (m68k_gdbarch_init): Update.
8248 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8249 * ia64-tdep.c (ia64_gdbarch_init): Update.
8250 * i386-tdep.c (i386_gdbarch_init): Update.
8251 * h8300-tdep.c (h8300_gdbarch_init): Update.
8252 * frv-tdep.c (frv_gdbarch_init): Update.
8253 * d10v-tdep.c (d10v_gdbarch_init): Update.
8254 * cris-tdep.c (cris_gdbarch_init): Update.
8255 * breakpoint.c (deprecated_frame_in_dummy): Update.
8256 * avr-tdep.c (avr_gdbarch_init): Update.
8257 * alpha-tdep.c (alpha_gdbarch_init): Update.
8258 * arm-tdep.c (arm_gdbarch_init): Update.
8259 * dummy-frame.c (dummy_frame_this_id): Update comments.
8260 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8261 * frame.c (legacy_get_prev_frame): Ditto.
8262 * valops.c (call_function_by_hand): Delete function.
8263 (hand_function_call): Rename to call_function_by_hand
8264
8265 2003-03-30 Andrew Cagney <cagney@redhat.com>
8266
8267 2002-11-10 Klee Dienes <kdienes@apple.com>
8268 * value.h (struct value): Update comment.
8269
8270 2003-03-30 Andrew Cagney <cagney@redhat.com>
8271
8272 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8273 D10V_FP_REGNUM.
8274 (d10v_gdbarch_init): Do not set fp_regnum.
8275
8276 * frame.c (get_frame_base): Force ID initialization.
8277 (get_prev_frame): Move computation of the frame ID from here ...
8278 (get_frame_id): ... to here.
8279 (legacy_get_prev_frame): Mark the frame ID as valid.
8280 * frame.h (struct frame_info): Add field "id_p".
8281
8282 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8283
8284 * i386-tdep.c (i386_store_struct_return): Removed.
8285 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8286
8287 2003-03-30 Andrew Cagney <cagney@redhat.com>
8288
8289 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8290 * gdbarch.h, gdbarch.c: Regenerate.
8291 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8292 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8293 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8294 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8295 * i386-tdep.c (i386_gdbarch_init): Ditto.
8296 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8297 * cris-tdep.c (cris_gdbarch_init): Ditto.
8298 * vax-tdep.c (vax_gdbarch_init): Ditto.
8299 * s390-tdep.c (s390_gdbarch_init): Ditto.
8300 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8301 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8302 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8303 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8304 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8305 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8306 * sparc-tdep.c (sparc_gdbarch_init): Update.
8307 * sh-tdep.c (sh_gdbarch_init): Update.
8308 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8309 * mips-tdep.c (mips_gdbarch_init): Update.
8310 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8311 * ia64-tdep.c (ia64_gdbarch_init): Update.
8312 * frv-tdep.c (frv_gdbarch_init): Update.
8313 * avr-tdep.c (avr_gdbarch_init): Update.
8314 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8315 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8316 instead of when push_dummy_call is not available.
8317
8318 2003-03-30 Andrew Cagney <cagney@redhat.com>
8319
8320 * infttrace.c: Include "gdbthread.h".
8321 (parent_attach_all): Fix function signature.
8322 (call_ptrace): Update call.
8323 * Makefile.in (infttrace.o): Update dependencies.
8324
8325 2003-03-30 Andrew Cagney <cagney@redhat.com>
8326
8327 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8328 PUSH_RETURN_ADDRESS.
8329 * gdbarch.h, gdbarch.c: Regenerate.
8330 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8331 * x86-64-tdep.c (x86_64_init_abi): Update.
8332 * v850-tdep.c (v850_gdbarch_init): Update.
8333 * sparc-tdep.c (sparc_gdbarch_init): Update.
8334 * sh-tdep.c (sh_gdbarch_init): Update.
8335 * s390-tdep.c (s390_gdbarch_init): Update.
8336 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8337 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8338 * mips-tdep.c (mips_gdbarch_init): Update.
8339 * mcore-tdep.c (mcore_gdbarch_init): Update.
8340 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8341 * ia64-tdep.c (ia64_gdbarch_init): Update.
8342 * i386-tdep.c (i386_gdbarch_init): Update.
8343 * h8300-tdep.c (h8300_gdbarch_init): Update.
8344 * frv-tdep.c (frv_gdbarch_init): Update.
8345 * cris-tdep.c (cris_gdbarch_init): Update.
8346 * avr-tdep.c (avr_gdbarch_init): Update.
8347 * arm-tdep.c (arm_gdbarch_init): Update.
8348 * valops.c (hand_function_call): Update.
8349
8350 2003-03-29 Andrew Cagney <cagney@redhat.com>
8351
8352 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8353 sizeof_call_dummy_words.
8354 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8355 define.
8356 * gdbarch.h: Regenerate.
8357
8358 2003-03-29 Andrew Cagney <cagney@redhat.com>
8359
8360 * infttrace.h: New file.
8361 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8362 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8363 (hpread_read_doc_function_type): Detect an initialized type1.
8364 (hpread_quick_traverse): Initialize mod_name_string.
8365 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8366 (som_solib_get_solib_by_pc): Declare.
8367 (so_lib_thread_start_addr): Declare.
8368 (no_shared_libraries): Declare.
8369 * somread.c (init_import_symbols): Make static. Add forward
8370 declaration.
8371 * config/pa/nm-hppah.h: Include "infttrace.h" for
8372 parent_attach_all.
8373 (hppa_insert_hw_watchpoint): Declare.
8374 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8375 * hppah-nat.c: Include "gdb_string.h".
8376 (parent_attach_all): Delete extern declaration, moved to
8377 "infttrace.h".
8378 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8379 int.
8380 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8381 * Makefile.in (infttrace_h): Define.
8382 (hpread.o): Update dependencies.
8383 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8384 * hppa-hpux-tdep.c: Include "gdb_string.h".
8385 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8386 * infrun.c (handle_inferior_event): Always initialize
8387 stepped_after_stopped_by_watchpoint. Add default and remove
8388 fallthrough in switch statement.
8389 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8390 parameter to int.
8391 (hppa_remove_hw_watchpoint): Ditto.
8392
8393 2003-03-29 Andrew Cagney <cagney@redhat.com>
8394
8395 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8396 offset.
8397
8398 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8399
8400 * arm-tdep.c (arm_push_arguments): Delete.
8401 (struct stack_item): New type.
8402 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8403 (arm_store_struct_return): Delte.
8404 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8405 arm_push_arguments or arm_store_struct_return.
8406
8407 2003-03-28 Andrew Cagney <cagney@redhat.com>
8408
8409 * Makefile.in (d10v-tdep.o): Update dependencies.
8410 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8411 * d10v-tdep.c: Include "remote.h".
8412 (target_resume_hook): Delete extern declaration.
8413 (target_wait_loop_hook): Ditto.
8414 (tdisassemble_command): Eliminate assignment in "if" conditional.
8415 (d10v_ts2_register_sim_regno): Eliminate call to
8416 legacy_register_sim_regno.
8417 (d10v_ts3_register_sim_regno): Ditto.
8418
8419 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8420
8421 * thread.c: Reindented.
8422 * lin-lwp.c: Ditto.
8423 * linux-proc.c: Ditto.
8424
8425 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8426
8427 * MAINTAINERS (write after approval): Add myself.
8428
8429 2003-03-27 Theodore A. Roth <troth@openavr.org>
8430
8431 * objc-exp.y: Add missing semi-colons.
8432
8433 2003-03-27 Andrew Cagney <cagney@redhat.com>
8434
8435 * regcache.c (write_sp): Delete function and references.
8436 * inferior.h (write_sp): Delete declaration.
8437 * valops.c (hand_function_call): Replace write_sp with
8438 TARGET_WRITE_SP.
8439 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8440 (sparc_pop_frame): Ditto.
8441
8442 2003-03-27 Andrew Cagney <cagney@redhat.com>
8443
8444 * NEWS: Mention removal of support for hppa*-*-bsd* and
8445 hppa*-*-osf* natives, and hppa*-*-pro* target.
8446 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8447 * config/pa/xm-pa.h: Obsolete file.
8448 * config/pa/xm-hppab.h: Obsolete file.
8449 * config/pa/nm-hppab.h: Obsolete file.
8450 * config/pa/tm-hppab.h: Obsolete file.
8451 * config/pa/tm-hppao.h: Obsolete file.
8452 * config/pa/nm-hppao.h: Obsolete file.
8453 * config/pa/tm-pro.h: Obsolete file.
8454 * config/pa/hppaosf.mt: Obsolete file.
8455 * config/pa/hppaosf.mh: Obsolete file.
8456 * config/pa/hppapro.mt: Obsolete file.
8457 * config/pa/hppabsd.mt: Obsolete file.
8458 * config/pa/hppabsd.mh: Obsolete file.
8459 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8460 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8461 hppa*-*-osf*.
8462
8463 2003-03-27 Andrew Cagney <cagney@redhat.com>
8464
8465 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8466 push_arguments. Don't set push_return_address or write_sp.
8467 (d10v_push_dummy_call): Replace d10v_push_arguments.
8468 (d10v_push_return_address, d10v_write_sp): Delete function,
8469 handled by push_dummy_call.
8470
8471 2003-03-26 Andrew Cagney <cagney@redhat.com>
8472
8473 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8474 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8475 regcache and dummy_addr parameters.
8476 * gdbarch.h, gdbarch.c: Re-generate.
8477 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8478 available; assume it will handle stack alignment and return
8479 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8480 legacy_push_arguments.
8481 (legacy_push_arguments): Rename default_push_arguments.
8482 * value.h (legacy_push_arguments): Rename default_push_arguments.
8483 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8484 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8485 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8486 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8487 * config/i386/tm-symmetry.h: Update.
8488 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8489 * x86-64-tdep.c (x86_64_init_abi): Update.
8490 * v850-tdep.c (v850_gdbarch_init): Update.
8491 * sparc-tdep.c (sparc_gdbarch_init): Update.
8492 * sh-tdep.c (sh_gdbarch_init): Update.
8493 * s390-tdep.c (s390_gdbarch_init): Update.
8494 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8495 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8496 * mips-tdep.c (mips_gdbarch_init): Update.
8497 * mcore-tdep.c (mcore_gdbarch_init): Update.
8498 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8499 * ia64-tdep.c (ia64_gdbarch_init): Update.
8500 * i386-tdep.c (i386_gdbarch_init): Update.
8501 * hppa-tdep.c (hppa_gdbarch_init): Update.
8502 * h8300-tdep.c (h8300_gdbarch_init): Update.
8503 * frv-tdep.c (frv_gdbarch_init): Update.
8504 * d10v-tdep.c (d10v_gdbarch_init): Update.
8505 * cris-tdep.c (cris_gdbarch_init): Update.
8506 * avr-tdep.c (avr_gdbarch_init): Update.
8507 * arm-tdep.c (arm_gdbarch_init): Update.
8508 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8509 * alpha-tdep.c (alpha_gdbarch_init): Update.
8510
8511 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8512
8513 * signals/signals.c (do_target_signal_to_host): Correct realtime
8514 signal range test.
8515
8516 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8517
8518 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8519 (struct sal_chain, map_catch_names): Remove.
8520 (catch_exception_command_1): Don't call
8521 handle_gnu_4_16_catch_command.
8522
8523 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8524
8525 From Mark Dettinger <dettinge@de.ibm.com>:
8526 * dwarf2cfi.c (read_2u): Increment pointer by two.
8527
8528 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8529
8530 * signals/signals.c: Fix typos in last change.
8531
8532 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8533
8534 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8535 not already defined. Use __SIGRTMIN if available.
8536 (target_signal_from_host): Remove SIGRTMIN block.
8537 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8538 the signal is within the realtime range.
8539
8540 2003-03-25 Adam Fedor <fedor@gnu.org>
8541
8542 * Makefile.in (infrun.o): Add $(language_h)
8543 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8544 for language specific trampolines.
8545 * language.h (struct language_defn): Add skip_trampoline.
8546 (skip_language_trampoline): Declare.
8547 * language.c (unk_lang_trampoline, skip_language_trampoline):
8548 New functions.
8549 (unknown_language_defn, auto_language_defn, local_language_defn):
8550 Add ukn_lang_trampoline.
8551 * ada-lang.c (ada_language_defn): Add NULL for language
8552 specific skip_trampoline.
8553 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8554 scm-lang.c: Likewise.
8555 * objc-lang.c (objc_skip_trampoline): New function.
8556 (objc_language_defn): Add objc_skip_trampoline.
8557
8558 2003-03-25 Andrew Cagney <cagney@redhat.com>
8559
8560 * frame.c (get_prev_frame): Delay validating a frame's ID -
8561 non-NULL, didn't go backwards - until an attempt to unwind it to
8562 the previous frame.
8563
8564 2003-03-25 Andrew Cagney <cagney@redhat.com>
8565
8566 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8567 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8568 * gdbarch.h, gdbarch.c: Re-generate.
8569 * config/sparc/tm-sparc.h
8570 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8571 * sparc-tdep.c (sparc_gdbarch_init): Set
8572 deprecated_extra_stack_alignment_needed.
8573 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8574 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8575 extra_stack_alignment_needed.
8576 * v850-tdep.c (v850_gdbarch_init): Ditto.
8577 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8578 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8579 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8580 * cris-tdep.c (cris_gdbarch_init): Ditto.
8581 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8582 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8583
8584 2003-03-25 Andrew Cagney <cagney@redhat.com>
8585
8586 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8587 STORE_STRUCT_RETURN.
8588 * gdbarch.h, gdbarch.c: Regenerate.
8589 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8590 (d10v_push_arguments): Set the struct return register.
8591 (d10v_gdbarch_init): Update.
8592 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8593 * x86-64-tdep.c (x86_64_init_abi): Update.
8594 * vax-tdep.c (vax_gdbarch_init): Update.
8595 * v850-tdep.c (v850_gdbarch_init): Update.
8596 * sparc-tdep.c (sparc_gdbarch_init): Update.
8597 * sh-tdep.c (sh_gdbarch_init): Update.
8598 * s390-tdep.c (s390_gdbarch_init): Update.
8599 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8600 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8601 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8602 * mips-tdep.c (mips_gdbarch_init): Update.
8603 * mcore-tdep.c (mcore_gdbarch_init): Update.
8604 * m68k-tdep.c (m68k_gdbarch_init): Update.
8605 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8606 * ia64-tdep.c (ia64_gdbarch_init): Update.
8607 * i386-tdep.c (i386_gdbarch_init): Update.
8608 * hppa-tdep.c (hppa_gdbarch_init): Update.
8609 * h8300-tdep.c (h8300_gdbarch_init): Update.
8610 * frv-tdep.c (frv_gdbarch_init): Update.
8611 * cris-tdep.c (cris_gdbarch_init): Update.
8612 * avr-tdep.c (avr_gdbarch_init): Update.
8613 * arm-tdep.c (arm_gdbarch_init): Update.
8614 * alpha-tdep.c (alpha_gdbarch_init): Update.
8615
8616 2003-03-25 Andrew Cagney <cagney@redhat.com>
8617
8618 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8619 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8620 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8621 * gdbarch.h, gdbarch.c: Regenerate.
8622 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8623 call_dummy_stack_adjust_p.
8624 * vax-tdep.c (vax_gdbarch_init): Ditto.
8625 * v850-tdep.c (v850_gdbarch_init): Ditto.
8626 * sh-tdep.c (sh_gdbarch_init): Ditto.
8627 * s390-tdep.c (s390_gdbarch_init): Ditto.
8628 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8629 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8630 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8631 * mips-tdep.c (mips_gdbarch_init): Ditto.
8632 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8633 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8634 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8635 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8636 * i386-tdep.c (i386_gdbarch_init): Ditto.
8637 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8638 * frv-tdep.c (frv_gdbarch_init): Ditto.
8639 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8640 * cris-tdep.c (cris_gdbarch_init): Ditto.
8641 * avr-tdep.c (avr_gdbarch_init): Ditto.
8642 * arm-tdep.c (arm_gdbarch_init): Ditto.
8643 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8644 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8645 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8646 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8647 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8648 call_dummy_stack_adjust_p.
8649 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8650 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8651 * sparc-tdep.c (sparc32_push_arguments): Update.
8652 * valops.c (hand_function_call): Update.
8653
8654 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8655
8656 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8657 set_gdbarch_char_signed.
8658
8659 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8660
8661 PR cli/548
8662 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8663
8664 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8665
8666 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8667 (_initialize_arm_tdep): Don't set tm_print_insn.
8668
8669 2003-03-24 Adam Fedor <fedor@gnu.org>
8670
8671 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8672 * objc-lang.h: Add multiple inclusion protection.
8673 (start_msglist, add_msglist, end_msglist): Additional declarations.
8674
8675 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8676
8677 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8678 value was renamed to ARM_FLOAT_SOFT_FPA.
8679
8680 2003-03-23 Andrew Cagney <cagney@redhat.com>
8681
8682 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8683 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8684 * gdbarch.h, gdbarch.c: Regenerate.
8685 * valops.c (hand_function_call): Update.
8686 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8687 * frame.c (legacy_saved_regs_this_id): Update.
8688 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8689 * dummy-frame.h: Update.
8690 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8691 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8692 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8693 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8694 * config/m68k/tm-sun3.h: Update.
8695 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8696 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8697 * x86-64-tdep.c (x86_64_init_abi): Update.
8698 * vax-tdep.c (vax_gdbarch_init): Update.
8699 * v850-tdep.c (v850_gdbarch_init): Update.
8700 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8701 * sh-tdep.c (sh_gdbarch_init): Update.
8702 * s390-tdep.c (s390_gdbarch_init): Update.
8703 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8704 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8705 (frame_get_saved_regs): Update.
8706 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8707 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8708 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8709 * mips-tdep.c (mips_gdbarch_init): Update.
8710 * mcore-tdep.c (mcore_gdbarch_init): Update.
8711 * m68k-tdep.c (m68k_gdbarch_init): Update.
8712 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8713 * ia64-tdep.c (ia64_gdbarch_init): Update.
8714 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8715 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8716 (i386_interix_back_one_frame): Update.
8717 * hppa-tdep.c (hppa_gdbarch_init): Update.
8718 (hppa_init_extra_frame_info): Update.
8719 * h8300-tdep.c (h8300_gdbarch_init): Update.
8720 * frv-tdep.c (frv_gdbarch_init): Update.
8721 * cris-tdep.c (cris_gdbarch_init): Update.
8722 * avr-tdep.c (avr_gdbarch_init): Update.
8723 * arm-tdep.c (arm_gdbarch_init): Update.
8724 * alpha-tdep.c (alpha_gdbarch_init): Update.
8725
8726 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8727
8728 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8729 (arm_get_fp_model): Declare.
8730 * arm-tdep.c (fp_model_strings): New string array.
8731 (arm_fp_model, current_fp_model): New variables.
8732 (arm_get_fp_model): New function.
8733 (arm_set_fp): New function.
8734 (set_fp_model_sfunc): New function.
8735 (show_fp_model): New function.
8736 (_initialize_arm_tdep): Add new command to set/show the FPU.
8737 (arm_extract_return_value): Use arm_get_fp_model.
8738 (arm_store_return_value): Likewise.
8739 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8740 to initialize the floating-point data types.
8741 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8742 model is FPA.
8743
8744 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8745
8746 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8747 the current setting of each value.
8748 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8749 new_set and new_show. Use add_setshow_cmd_full and
8750 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8751 commands and add new version as subcommands of "set/show arm".
8752
8753 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8754
8755 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8756 (set_arm_command, show_arm_command): New functions.
8757 (_initialize_arm_tdep): Add them.
8758 (num_disassembly_options): Renamed from num_flavor_options.
8759 (valid_disassembly_styles): Renamed from valid_flavors.
8760 (disassembly_style): Renamed from disassembly_flavor.
8761 (set_disassembly_style_sfunc): Renamed from
8762 set_disassembly_flavor_sfunc.
8763 (set_disassembly_style): Renamed from set_disassembly_flavor.
8764 (arm_othernames): Updated.
8765 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8766 command. Add "set/show arm disassembly" commands. Deprecate
8767 "othernames" command.
8768
8769 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8770
8771 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8772 (arm-tdep.o): Depend on elf_arm_h.
8773
8774 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8775
8776 * Makefile.in (coff_internal_h): Define.
8777 (arm-tdep.o): Update dependencies.
8778
8779 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8780
8781 * arm-tdep.c (prologue_cache): Delete.
8782 (check_prologue_cache, save_prologue_cache): Delete.
8783 (arm_scan_prologue): Don't check or update the prologue_cache.
8784 (arm_gdb_arch_init): Don't initialize it.
8785 (_initialize_arm_tdep): Likewise.
8786
8787 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8788
8789 * MAINTAINERS (tui): Maintainer of tui code.
8790
8791 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8792
8793 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8794 (i386-cygwin-tdep.o): Add dependencies.
8795 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8796 * i386-cygwin-tdep.c: New file.
8797 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8798 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8799
8800 2003-03-20 Andrew Cagney <cagney@redhat.com>
8801
8802 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8803 (handle_inferior_event): Remove code calling
8804 DYNAMIC_TRAMPOLINE_NEXTPC.
8805
8806 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8807 already has a full path.
8808
8809 * main.c (gdb_main): Return 1.
8810 (captured_main): Call error to report an invalid interpreter.
8811
8812 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8813 * alpha-osf1-tdep.c: Include "gdb_string.h".
8814
8815 2003-03-19 J. Brobecker <brobecker@gnat.com>
8816
8817 Continuing work to convert the hppa targets to multiarch partial.
8818
8819 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8820 method, now that hppa_push_dummy_frame has a conformant prototype.
8821 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8822 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8823 for the switch to multiarch partial.
8824
8825 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8826
8827 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8828 when iss is issNull.
8829
8830 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8831
8832 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8833 NUM_REGS bounds check.
8834
8835 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8836
8837 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8838 * mips-tdep.c (gdb_assert.h): Include.
8839 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8840 (mips_register_name): Handle integer registers explicitly. Add
8841 bounds checking.
8842 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8843 (mips_lsi33k_reg_names): Don't list integer registers; they're
8844 handled by mips_register_name() now.
8845 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8846 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8847 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8848 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8849 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8850
8851 2003-03-18 Andrew Cagney <cagney@redhat.com>
8852
8853 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8854 a void pointer.
8855 * gdbtypes.h (print_scalar_formatted): Update declaration.
8856 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8857
8858 2003-03-18 J. Brobecker <brobecker@gnat.com>
8859
8860 * infrun.c (observer.h): Add #include.
8861 (normal_stop): Add call to observer_notify_normal_stop.
8862 * Makefile.in (infrun.o): Add dependency on observer.h.
8863
8864 2003-03-18 J. Brobecker <brobecker@gnat.com>
8865
8866 Continuing work to convert the hppa targets to multiarch partial.
8867 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8868 parameter. Reformat comment.
8869 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8870 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8871 to match new profile.
8872
8873 2003-03-18 J. Brobecker <brobecker@gnat.com>
8874
8875 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8876 appear to be working in any case.
8877
8878 2003-03-18 J. Brobecker <brobecker@gnat.com>
8879
8880 * observer.c (observer_test_first_observer): New static variable.
8881 (observer_test_second_observer): Likewise.
8882 (observer_test_third_observer): Likewise.
8883 (observer_test_first_notification_function): New static function.
8884 (observer_test_second_notification_function): Likewise.
8885 (observer_test_third_notification_function): Likewise.
8886
8887 2003-03-17 J. Brobecker <brobecker@gnat.com>
8888
8889 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8890 * somsolib.c (gdb_assert.h): Likewise.
8891 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8892 (somsolib.o): Likewise.
8893
8894 2003-03-17 Andrew Cagney <cagney@redhat.com>
8895
8896 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8897 BFD. Simplify setting of di.endian.
8898
8899 2003-03-17 Andrew Cagney <cagney@redhat.com>
8900
8901 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8902 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8903
8904 From Elena Zannoni <ezannoni@redhat.com>
8905 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8906 vector and floating-point parameters.
8907 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8908 convention.
8909 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8910
8911 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8912
8913 * MAINTAINERS: Remove my name from several maintainership roles.
8914
8915 2003-03-17 Andrew Cagney <cagney@redhat.com>
8916
8917 Fix frame off-by-one bug.
8918 * frame-unwind.h (frame_this_id_ftype): Replace
8919 frame_unwind_id_ftype.
8920 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8921 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8922 with "prev_register".
8923 * frame-unwind.c (frame_unwind_find_by_pc): Return
8924 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8925 comment.
8926 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8927 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8928 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8929 (dummy_frame_unwind): Update.
8930 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8931 sentinel_frame_register_unwind.
8932 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8933 (sentinel_frame_unwinder): Update.
8934 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8935 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8936 * frame.c (create_sentinel_frame): Update. Initialize
8937 "prologue_cache" instead of "unwind_cache".
8938 (frame_register_unwind): Call this frame's prev_register with the
8939 next frame and this frame's prologue cache.
8940 (get_prev_frame): Simplify. Always call prev frame's this_id with
8941 this frame and prev frame's prologue cache. Document that this
8942 call is shifted one to the left when compared to the
8943 frame_register_unwind call.
8944 (legacy_saved_regs_prev_register): Replace
8945 frame_saved_regs_register_unwind.
8946 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8947 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8948 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8949 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8950 (d10v_frame_unwind): Update.
8951 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8952 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8953 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8954 "saved_regs" with "this_saved_regs".
8955
8956 2003-03-16 Andrew Cagney <cagney@redhat.com>
8957
8958 * frame.c (frame_pop): Don't call target_store_registers. Fix
8959 problem reported by Mark Kettenis.
8960
8961 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8962
8963 * i386-tdep.c (i386_register_type): Renamed from
8964 i386_register_virtual_type. Adjust function signature.
8965 (i386_gdbarch_init): Set register_type instead of
8966 deprecated_max_register_raw_size,
8967 deprecated_max_register_virtual_size and register_virtual_type.
8968
8969 2003-03-14 Andrew Cagney <cagney@redhat.com>
8970
8971 * frame.c (get_prev_frame): When a legacy frame, always call
8972 legacy_get_prev_frame. Simplify unwind code using assumption that
8973 the unwinder is new.
8974 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8975 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8976 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8977
8978 2003-03-14 Andrew Cagney <cagney@redhat.com>
8979
8980 * frame.c (get_saved_register): Delete function.
8981 * frame.h (get_saved_register): Delete declaration.
8982 * xstormy16-tdep.c: Update comment.
8983 * regcache.h: Update comments.
8984 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8985 get_saved_register and extract_address, use
8986 frame_read_unsigned_register.
8987 (sparc_frame_saved_pc): Ditto.
8988 (sparc_get_saved_register): Instead of get_saved_register, use
8989 frame_register.
8990 (sparc_pop_frame): Ditto.
8991 * findvar.c: Update comments.
8992 (value_of_register): Call frame_register instead of
8993 get_saved_register.
8994 (value_from_register): Ditto.
8995 * config/sparc/tm-sparc.h: Update comment.
8996 * breakpoint.c: Update comment.
8997
8998 2003-03-14 Andrew Cagney <cagney@redhat.com>
8999
9000 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9001 GET_SAVED_REGISTER.
9002 * gdbarch.h, gdbarch.c: Re-generate.
9003 * frame.h: Update comments.
9004 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9005 * x86-64-tdep.c (x86_64_init_abi): Update.
9006 * sparc-tdep.c (sparc_gdbarch_init): Update.
9007 * sh-tdep.c (sh_gdbarch_init): Update.
9008 * mips-tdep.c (mips_gdbarch_init): Update.
9009 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9010 * cris-tdep.c (cris_gdbarch_init): Update.
9011 * ia64-tdep.c (ia64_gdbarch_init): Update.
9012 * frame.c (frame_register): Update.
9013 (get_saved_register): Update.
9014 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9015
9016 2003-03-13 Andrew Cagney <cagney@redhat.com>
9017
9018 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9019 * gdbarch.h, gdbarch.c: Regenerate.
9020 * valops.c (hand_function_call): Update comment.
9021 * stack.c (return_command): Update comment.
9022 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9023 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9024 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9025 * x86-64-tdep.c (x86_64_init_abi): Update.
9026 * vax-tdep.c (vax_gdbarch_init): Update.
9027 * v850-tdep.c (v850_gdbarch_init): Update.
9028 * sparc-tdep.c (sparc_gdbarch_init): Update.
9029 * sh-tdep.c (sh_gdbarch_init): Update.
9030 * s390-tdep.c (s390_gdbarch_init): Update.
9031 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9032 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9033 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9034 * mips-tdep.c (mips_gdbarch_init): Update.
9035 * mcore-tdep.c (mcore_gdbarch_init): Update.
9036 * m68k-tdep.c (m68k_gdbarch_init): Update.
9037 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9038 * ia64-tdep.c (ia64_gdbarch_init): Update.
9039 * i386-tdep.c (i386_gdbarch_init): Update.
9040 * hppa-tdep.c (hppa_gdbarch_init): Update.
9041 * h8300-tdep.c (h8300_gdbarch_init): Update.
9042 * frv-tdep.c (frv_gdbarch_init): Update.
9043 * cris-tdep.c (cris_gdbarch_init): Update.
9044 * avr-tdep.c (avr_gdbarch_init): Update.
9045 * arm-tdep.c (arm_gdbarch_init): Update.
9046 * alpha-tdep.c (alpha_gdbarch_init): Update.
9047
9048 2003-03-13 Andrew Cagney <cagney@redhat.com>
9049
9050 * frame.c (legacy_frame_p): New function.
9051 (get_prev_frame): Use legacy_frame_p.
9052 * frame.h (legacy_frame_p): Declare.
9053
9054 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9055
9056 * MAINTAINERS (write after approval): Alphabetically
9057 listing corrected.
9058
9059 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9060
9061 * MAINTAINERS (write after approval): Add myself.
9062
9063 2003-03-12 Andrew Cagney <cagney@redhat.com>
9064
9065 * frame.c (get_prev_frame): Rename the frame parameter to
9066 "this_frame".
9067 (get_next_frame, legacy_get_prev_frame): Ditto.
9068
9069 2003-03-12 Andrew Cagney <cagney@redhat.com>
9070
9071 * frame.c (get_current_frame): Check target_has_registers before
9072 checking target_has_stack.
9073 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9074 instead of deprecated_selected_frame.
9075 * findvar.c (value_of_register): Pass "frame", not
9076 deprecated_selected_frame, to value_of_builtin_reg.
9077
9078 2003-03-12 Andrew Cagney <cagney@redhat.com>
9079
9080 * regcache.c (regcache_cooked_write_signed): New function.
9081 (regcache_cooked_write_unsigned): New function.
9082 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9083 (regcache_cooked_read_signed): Fix regnum in range assertion.
9084 * regcache.h (regcache_cooked_write_signed): Declare.
9085 (regcache_cooked_write_unsigned): Declare.
9086
9087 2003-03-12 Andrew Cagney <cagney@redhat.com>
9088
9089 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9090 * gdbarch.h, gdbarch.c: Re-generate.
9091 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9092 * x86-64-tdep.h: Update.
9093 * x86-64-tdep.c (x86_64_init_abi): Update.
9094 * v850-tdep.c (v850_gdbarch_init): Update.
9095 * sparc-tdep.c (sparc_gdbarch_init): Update.
9096 * sh-tdep.c (sh_gdbarch_init): Update.
9097 * s390-tdep.c (s390_gdbarch_init): Update.
9098 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9099 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9100 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9101 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9102 * mips-tdep.c (mips_gdbarch_init): Update.
9103 * mcore-tdep.c (mcore_gdbarch_init): Update.
9104 * m68k-tdep.c (m68k_gdbarch_init): Update.
9105 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9106 * ia64-tdep.c (ia64_gdbarch_init): Update.
9107 * i386-tdep.c (i386_gdbarch_init): Update.
9108 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9109 * hppa-tdep.c (hppa_gdbarch_init): Update.
9110 * h8300-tdep.c (h8300_gdbarch_init): Update.
9111 * frv-tdep.c (frv_gdbarch_init): Update.
9112 * cris-tdep.c (cris_gdbarch_init): Update.
9113 * avr-tdep.c (avr_gdbarch_init): Update.
9114 * arm-tdep.c (arm_gdbarch_init): Update.
9115 * alpha-tdep.c (alpha_gdbarch_init): Update.
9116 * sh-tdep.c (sh_init_extra_frame_info): Update.
9117 (sh64_init_extra_frame_info): Update.
9118 * ns32knbsd-nat.c (frame_num_args): Update.
9119 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9120 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9121 (xstormy16_frame_chain_valid): Update.
9122 * vax-tdep.c (vax_saved_pc_after_call): Update.
9123 * v850-tdep.c (v850_frame_chain): Update.
9124 (v850_pop_frame): Update.
9125 (v850_init_extra_frame_info): Update.
9126 * sparc-tdep.c (setup_arbitrary_frame): Update.
9127 * ns32k-tdep.c (umax_frame_num_args): Update.
9128 * s390-tdep.c (s390_pop_frame_regular): Update.
9129 * mn10300-tdep.c (mn10300_frame_chain): Update.
9130 (mn10300_pop_frame_regular): Update.
9131 (mn10300_init_extra_frame_info): Update.
9132 * mips-tdep.c (mips_init_frame_pc_first): Update.
9133 (mips_frame_chain): Update.
9134 (mips_pop_frame): Update.
9135 * mcore-tdep.c (mcore_frame_chain): Update.
9136 (mcore_pop_frame): Update.
9137 (mcore_init_extra_frame_info): Update.
9138 * arch-utils.c (init_frame_pc_default): Update.
9139 * m68k-tdep.c (isi_frame_num_args): Update.
9140 (delta68_frame_num_args): Update.
9141 (news_frame_num_args): Update.
9142 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9143 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9144 (alpha_frame_chain): Update.
9145 (alpha_pop_frame): Update.
9146 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9147 (hppa_init_extra_frame_info): Update.
9148 (hppa_frame_chain): Update.
9149 (hppa_frame_chain_valid): Update.
9150 * cris-tdep.c (cris_init_extra_frame_info): Update.
9151 * avr-tdep.c (avr_init_extra_frame_info): Update.
9152 * arm-tdep.c (arm_frame_chain_valid): Update.
9153 (arm_init_extra_frame_info): Update.
9154 (arm_pop_frame): Update.
9155 * frame.c (frame_pc_unwind): Update.
9156 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9157 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9158 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9159 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9160 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9161 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9162
9163 2003-03-12 Andrew Cagney <cagney@redhat.com>
9164
9165 Eliminate the need for POP_FRAME.
9166 * frame.c (do_frame_unwind_register): New function.
9167 (frame_pop): When no POP_FRAME, pop the frame using register
9168 unwind and a scratch regcache.
9169 (frame_saved_regs_pop): Delete function.
9170 (trad_frame_unwinder): Update.
9171 * d10v-tdep.c (d10v_frame_pop): Delete function.
9172 (d10v_frame_unwind): Update.
9173 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9174 (sentinel_frame_unwinder): Update.
9175 * dummy-frame.c (dummy_frame_pop): Delete function.
9176 (dummy_frame_unwind): Update.
9177 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9178 (struct frame_unwind): Update.
9179
9180 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9181
9182 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9183 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9184 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9185 Do range checks on register number obtained from debugging info.
9186 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9187 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9188 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9189 mapping function.
9190 (do_fp_register_row): Fix typo which caused double type to be
9191 used when attempting to unpack a float.
9192
9193 2003-03-11 J. Brobecker <brobecker@gnat.com>
9194
9195 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9196
9197 2003-03-11 Andrew Cagney <cagney@redhat.com>
9198
9199 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9200 frame. Problem found by Corinna Vinschen.
9201
9202 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9203
9204 * doublest.c (floatformat_from_length): Accept also
9205 the real size of 'long double' type.
9206
9207 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9208
9209 From Klee Dienes <kdienes@apple.com>:
9210 * breakpoint.c (bpstat_copy): Copy the command lines as well
9211 as the old value, to match what is freed in bpstat_clear.
9212
9213 2003-03-10 David Carlton <carlton@math.stanford.edu>
9214
9215 * minsyms.c (add_minsym_to_hash_table): Replace
9216 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9217 (compare_minimal_symbols, compact_minimal_symbols)
9218 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9219 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9220 of DEPRECATED_SYMBOL_MATCHES_NAME.
9221 (lookup_minimal_symbol_solib_trampoline): Ditto.
9222
9223 2003-03-10 Andrew Cagney <cagney@redhat.com>
9224
9225 * regcache.h (regcache_cooked_read_ftype): Define.
9226 (regcache_save, regcache_restore): Add a cooked_read parameter.
9227 * regcache.c (regcache_save, regcache_restore): Update.
9228 (do_cooked_read): New function.
9229 (regcache_cpy): Pass do_cooked_read to regcache_save and
9230 regcache_restore.
9231
9232 2003-03-10 Andrew Cagney <cagney@redhat.com>
9233
9234 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9235 * gdbarch.h, gdbarch.c: Re-generate.
9236 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9237 * x86-64-tdep.h: Update.
9238 * x86-64-tdep.c (x86_64_init_abi): Update.
9239 * v850-tdep.c (v850_gdbarch_init): Update.
9240 * sparc-tdep.c (sparc_gdbarch_init): Update.
9241 * sh-tdep.c (sh_gdbarch_init): Update.
9242 * s390-tdep.c (s390_gdbarch_init): Update.
9243 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9244 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9245 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9246 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9247 * mips-tdep.c (mips_gdbarch_init): Update.
9248 * mcore-tdep.c (mcore_gdbarch_init): Update.
9249 * m68k-tdep.c (m68k_gdbarch_init): Update.
9250 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9251 * ia64-tdep.c (ia64_gdbarch_init): Update.
9252 * i386-tdep.c (i386_gdbarch_init): Update.
9253 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9254 * hppa-tdep.c (hppa_gdbarch_init): Update.
9255 * h8300-tdep.c (h8300_gdbarch_init): Update.
9256 * frv-tdep.c (frv_gdbarch_init): Update.
9257 * cris-tdep.c (cris_gdbarch_init): Update.
9258 * avr-tdep.c (avr_gdbarch_init): Update.
9259 * arm-tdep.c (arm_gdbarch_init): Update.
9260 * alpha-tdep.c (alpha_gdbarch_init): Update.
9261 * sh-tdep.c (sh_init_extra_frame_info): Update.
9262 (sh64_init_extra_frame_info): Update.
9263 * ns32knbsd-nat.c (frame_num_args): Update.
9264 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9265 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9266 (xstormy16_frame_chain_valid): Update.
9267 * vax-tdep.c (vax_saved_pc_after_call): Update.
9268 * v850-tdep.c (v850_frame_chain): Update.
9269 (v850_pop_frame): Update.
9270 (v850_init_extra_frame_info): Update.
9271 * sparc-tdep.c (setup_arbitrary_frame): Update.
9272 * ns32k-tdep.c (umax_frame_num_args): Update.
9273 * s390-tdep.c (s390_pop_frame_regular): Update.
9274 * mn10300-tdep.c (mn10300_frame_chain): Update.
9275 (mn10300_pop_frame_regular): Update.
9276 (mn10300_init_extra_frame_info): Update.
9277 * mips-tdep.c (mips_init_frame_pc_first): Update.
9278 (mips_frame_chain): Update.
9279 (mips_pop_frame): Update.
9280 * mcore-tdep.c (mcore_frame_chain): Update.
9281 (mcore_pop_frame): Update.
9282 (mcore_init_extra_frame_info): Update.
9283 * arch-utils.c (init_frame_pc_default): Update.
9284 * m68k-tdep.c (isi_frame_num_args): Update.
9285 (delta68_frame_num_args): Update.
9286 (news_frame_num_args): Update.
9287 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9288 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9289 (alpha_frame_chain): Update.
9290 (alpha_pop_frame): Update.
9291 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9292 (hppa_init_extra_frame_info): Update.
9293 (hppa_frame_chain): Update.
9294 (hppa_frame_chain_valid): Update.
9295 * cris-tdep.c (cris_init_extra_frame_info): Update.
9296 * avr-tdep.c (avr_init_extra_frame_info): Update.
9297 * arm-tdep.c (arm_frame_chain_valid): Update.
9298 (arm_init_extra_frame_info): Update.
9299 (arm_pop_frame): Update.
9300 * frame.c (frame_pc_unwind): Update.
9301 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9302 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9303 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9304 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9305 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9306 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9307
9308 2003-03-10 Andrew Cagney <cagney@redhat.com>
9309
9310 * gdbarch.sh (gdbarch_unwind_pc): New method.
9311 * gdbarch.h, gdbarch.c: Regenerate.
9312 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9313 but use read_pc and FRAME_SAVED_PC as fall backs.
9314 (frame_saved_regs_pc_unwind): Delete function.
9315 (trad_frame_unwinder): Update.
9316 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9317 (struct frame_unwind): Update.
9318 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9319 (dummy_frame_unwind): Update.
9320 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9321 (sentinel_frame_unwinder): Update.
9322 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9323 (d10v_frame_unwind): Update.
9324 (d10v_unwind_pc): New function.
9325 (d10v_gdbarch_init): Set unwind_pc.
9326
9327 2003-03-10 Andrew Cagney <cagney@redhat.com>
9328
9329 * gdbarch.h: Re-generate.
9330
9331 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9332 PC.
9333 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9334 the PC register.
9335
9336 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9337
9338 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9339
9340 2003-03-08 Andrew Cagney <cagney@redhat.com>
9341
9342 * cli-out.c: Update copyright.
9343 (cli_out_data): Define typedef. Use instead of ui_out_data.
9344
9345 2003-03-08 Andrew Cagney <cagney@redhat.com>
9346
9347 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9348 the result.
9349
9350 2003-03-07 Andrew Cagney <cagney@redhat.com>
9351
9352 * gdbarch.sh: Don't generate two macro definitions when an
9353 undefined macro taking no arguments.
9354 * gdbarch.h: Regenerate.
9355
9356 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9357
9358 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9359 (x86_64_unwind_dummy_id): New functions.
9360 (x86_64_init_abi): Register these two new functions.
9361
9362 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9363
9364 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9365 (x86_64_skip_prologue): Move prologue detection to
9366 separate function.
9367 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9368
9369 2003-03-05 Andrew Cagney <cagney@redhat.com>
9370
9371 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9372 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9373 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9374 to use unwind_dummy_id when a dummy frame.
9375 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9376 predicate.
9377 * gdbarch.h, gdbarch.c: Regneerate.
9378
9379 2003-03-05 Andrew Cagney <cagney@redhat.com>
9380
9381 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9382 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9383 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9384 values.
9385
9386 2003-03-05 Andrew Cagney <cagney@redhat.com>
9387
9388 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9389 (struct d10v_unwind_cache): Delete field "frameless". Replace
9390 "next_addr" with "sp_offset". Add "r11_offset".
9391 (d10v_frame_unwind_cache): Update.
9392 (prologue_find_regs): Update. When "mv r11, sp", save the
9393 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9394 RN was saved in r11_offset.
9395
9396 2003-03-05 Andrew Cagney <cagney@redhat.com>
9397
9398 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9399 cached PC value in the next frame.
9400
9401 2003-03-05 Andrew Cagney <cagney@redhat.com>
9402
9403 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9404 "id_unwind_cache" with "id".
9405 (frame_id_unwind): Delete declaration.
9406 * frame.c (frame_id_unwind): Delete function.
9407 (get_prev_frame): Call the frame id unwind method directly. Store
9408 the returned next frame's ID value in NEXT_FRAME. Note that there
9409 is a problem with the wrong unwind ID being called with the wrong
9410 unwind cache.
9411
9412 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9413
9414 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9415
9416 2003-03-05 James Ingham <jingham@apple.com>
9417 Daniel Jacobowitz <drow@mvista.com>
9418
9419 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9420 (auto_cp_abi): New variable.
9421 (current_cp_abi, num_cp_abis): Make static.
9422 (CP_ABI_MAX): Define.
9423 (cp_abis): Turn into an array.
9424 (value_virtual_fn_field): Fix formatting.
9425 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9426 takes a pointer.
9427 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9428 (list_cp_abis, _initialize_cp_abi): New functions.
9429 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9430 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9431 switch_to_cp_abi. Update prototype for register_cp_abi.
9432 * Makefile.in (cp-abi.o): Update dependencies.
9433 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9434 instead of switch_to_cp_abi.
9435 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9436 register_cp_abi.
9437 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9438 register_cp_abi.
9439 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9440
9441 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9442
9443 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9444 * dwarf2loc.c: Include "regcache.h".
9445 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9446 register_size.
9447 * Makefile.in (dwarf2loc.o): Update dependencies.
9448
9449 2003-03-04 Theodore A. Roth <troth@openavr.org>
9450
9451 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9452 number of io registers reported by remote target is not a multiple of
9453 step.
9454
9455 2003-03-04 David Carlton <carlton@math.stanford.edu>
9456
9457 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9458 (lookup_symbol_aux_psymtabs): Update call to
9459 lookup_partial_symbol.
9460 (lookup_transparent_type, find_main_psymtab)
9461 (make_symbol_overload_list): Ditto.
9462
9463 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9464
9465 * MAINTAINERS (Write after approval): Update my email address.
9466
9467 2003-03-03 Andrew Cagney <cagney@redhat.com>
9468
9469 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9470 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9471 predicate. Replace MAX_REGISTER_RAW_SIZE.
9472 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9473 MAX_REGISTER_VIRTUAL_SIZE.
9474 * regcache.c (legacy_max_register_raw_size): New function.
9475 (legacy_max_register_virtual_size): New function.
9476 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9477 (MAX_REGISTER_RAW_SIZE): Define.
9478 (legacy_max_register_raw_size): Declare.
9479 (legacy_max_register_virtual_size): Declare.
9480 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9481 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9482 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9483 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9484 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9485 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9486 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9487 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9488 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9489 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9490 * vax-tdep.c (vax_gdbarch_init): Update.
9491 * v850-tdep.c (v850_gdbarch_init): Update.
9492 * sparc-tdep.c (sparc_gdbarch_init): Update.
9493 * sh-tdep.c (sh_gdbarch_init): Update.
9494 * s390-tdep.c (s390_gdbarch_init): Update.
9495 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9496 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9497 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9498 * mips-tdep.c (mips_gdbarch_init): Update.
9499 * mcore-tdep.c (mcore_gdbarch_init): Update.
9500 * m68k-tdep.c (m68k_gdbarch_init): Update.
9501 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9502 * ia64-tdep.c (ia64_gdbarch_init): Update.
9503 * i386-tdep.c (i386_gdbarch_init): Update.
9504 * hppa-tdep.c (hppa_gdbarch_init): Update.
9505 * h8300-tdep.c (h8300_gdbarch_init): Update.
9506 * frv-tdep.c (frv_gdbarch_init): Update.
9507 * cris-tdep.c (cris_gdbarch_init): Update.
9508 * avr-tdep.c (avr_gdbarch_init): Update.
9509 * arm-tdep.c (arm_gdbarch_init): Update.
9510 * alpha-tdep.c (alpha_gdbarch_init): Update.
9511 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9512 max_register_raw_size or max_register_virtual_size.
9513
9514 2003-03-03 David Carlton <carlton@math.stanford.edu>
9515
9516 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9517 SYMBOL_MATCHES_NAME, add comment.
9518 (SYMBOL_MATCHES_NATURAL_NAME): New.
9519 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9520 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9521 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9522 * symtab.c (lookup_partial_symbol): Use
9523 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9524 unhelpful comment.
9525 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9526 SYMBOL_MATCHES_NAME.
9527 Fix for PR c++/33.
9528
9529 2003-03-03 David Carlton <carlton@math.stanford.edu>
9530
9531 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9532 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9533 by regexp matching against SYMBOL_NATURAL_NAME.
9534
9535 2003-03-03 David Carlton <carlton@math.stanford.edu>
9536
9537 * linespec.c (find_method): Extract code into collect_methods.
9538 (collect_methods): New.
9539
9540 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9541
9542 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9543 get_frame_base.
9544
9545 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9546 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9547
9548 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9549
9550 * arch-utils.c (generic_register_byte): Fix to use the loop index
9551 and not regnum when summing the size of all registers up to regnum.
9552
9553 2003-03-01 Andrew Cagney <cagney@redhat.com>
9554
9555 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9556 FRAME_INIT_SAVED_REGS.
9557 * gdbarch.h, gdbarch.c: Regenerate.
9558 * stack.c (frame_info): Update.
9559 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9560 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9561 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9562 * ns32k-tdep.c (ns32k_pop_frame): Update.
9563 * mips-tdep.c (mips_pop_frame): Update.
9564 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9565 * ia64-tdep.c (ia64_frame_chain): Update.
9566 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9567 (ia64_frameless_function_invocation): Update.
9568 (ia64_init_extra_frame_info): Update.
9569 (ia64_pop_frame_regular): Update.
9570 * frame.h (struct frame_info): Update comment.
9571 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9572 * frame.c (frame_saved_regs_register_unwind): Update.
9573 (frame_saved_regs_register_unwind): Update.
9574 (deprecated_generic_get_saved_register): Update.
9575 * cris-tdep.c: Update comment.
9576 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9577 Rename macro.
9578 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9579 * x86-64-tdep.c (x86_64_init_abi): Update.
9580 * vax-tdep.c (vax_gdbarch_init): Update.
9581 * v850-tdep.c (v850_gdbarch_init): Update.
9582 * sparc-tdep.c (sparc_gdbarch_init): Update.
9583 * sh-tdep.c (sh_gdbarch_init): Update.
9584 * s390-tdep.c (s390_gdbarch_init): Update.
9585 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9586 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9587 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9588 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9589 * mips-tdep.c (mips_gdbarch_init): Update.
9590 * mcore-tdep.c (mcore_gdbarch_init): Update.
9591 * m68k-tdep.c (m68k_gdbarch_init): Update.
9592 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9593 * ia64-tdep.c (ia64_gdbarch_init): Update.
9594 * i386-tdep.c (i386_gdbarch_init): Update.
9595 * frv-tdep.c (frv_gdbarch_init): Update.
9596 * avr-tdep.c (avr_gdbarch_init): Update.
9597 * arm-tdep.c (arm_gdbarch_init): Update.
9598 * alpha-tdep.c (alpha_gdbarch_init): Update.
9599
9600 2003-03-01 Andrew Cagney <cagney@redhat.com>
9601
9602 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9603 option enum and switch. When no windows, set the interpreter to
9604 INTERP_CONSOLE.
9605
9606 2003-03-01 Andrew Cagney <cagney@redhat.com>
9607
9608 * main.c (captured_main): Replace magic option characters with an
9609 enum.
9610
9611 2003-03-01 Andrew Cagney <cagney@redhat.com>
9612
9613 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9614 INIT_EXTRA_FRAME_INFO.
9615 * gdbarch.h, gdbarch.c: Regenerate.
9616 * arm-tdep.c: Update comments.
9617 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9618 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9619 * frame.h, avr-tdep.c: Ditto.
9620 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9621 (create_new_frame, legacy_get_prev_frame): Ditto.
9622 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9623 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9624 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9625 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9626 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9627 * v850-tdep.c (v850_gdbarch_init): Ditto.
9628 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9629 * sh-tdep.c (sh_gdbarch_init): Ditto.
9630 * s390-tdep.c (s390_gdbarch_init): Ditto.
9631 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9632 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9633 * mips-tdep.c (mips_gdbarch_init): Ditto.
9634 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9635 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9636 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9637 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9638 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9639 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9640 * frv-tdep.c (frv_gdbarch_init): Ditto.
9641 * cris-tdep.c (cris_gdbarch_init): Ditto.
9642 * avr-tdep.c (avr_gdbarch_init): Ditto.
9643 * arm-tdep.c (arm_gdbarch_init): Ditto.
9644 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9645 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9646
9647 2003-03-01 Andrew Cagney <cagney@redhat.com>
9648
9649 * gdbarch.sh (register_type): New function with predicate.
9650 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9651 * gdbarch.h, gdbarch.c: Re-generate.
9652 * arch-utils.c (generic_register_byte): Use generic_register_size.
9653 (generic_register_size): When available, use
9654 gdbarch_register_type.
9655 * regcache.c (init_regcache_descr): When available, initialize the
9656 register type array using gdbarch_register_type. If the
9657 architecture supplies gdbarch_register_type, do not use the legacy
9658 regcache layout.
9659 * d10v-tdep.c (d10v_register_type): Replace
9660 d10v_register_virtual_type.
9661 (d10v_gdbarch_init): Set register_type instead of
9662 register_virtual_type.
9663
9664 2003-03-01 Andrew Cagney <cagney@redhat.com>
9665
9666 * Makefile.in (ax-gdb.o): Update dependencies.
9667 * ax-gdb.c: Include "regcache.h".
9668 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9669 * findvar.c (value_of_register): Ditto.
9670 * infcmd.c (default_print_registers_info): Ditto.
9671
9672 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9673
9674 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9675 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9676
9677 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9678
9679 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9680 of STREQ.
9681
9682 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9683
9684 * Makefile.in (dwarf2loc.o): Update dependencies.
9685 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9686 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9687 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9688 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9689 (locexpr_tracepoint_var_ref): New function.
9690 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9691
9692 2003-02-28 Andrew Cagney <cagney@redhat.com>
9693
9694 * regcache.c (register_size): New function.
9695 * regcache.h (register_size): Declare
9696 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9697 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9698
9699 2003-02-28 David Carlton <carlton@math.stanford.edu>
9700
9701 * linespec.c (decode_compound): Extract code into find_method.
9702 (find_method): New.
9703
9704 2003-02-28 J. Brobecker <brobecker@gnat.com>
9705
9706 * Makefile.in: Add rules to build and link in observer.o.
9707
9708 2003-02-27 J. Brobecker <brobecker@gnat.com>
9709
9710 * observer.c: Minor comments edits.
9711
9712 2003-02-27 J. Brobecker <brobecker@gnat.com>
9713
9714 * observer.h, observer.c: New file.
9715
9716 2003-02-27 Andrew Cagney <cagney@redhat.com>
9717
9718 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9719
9720 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9721
9722 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9723 (M6812_OP_STS_EXT): Likewise.
9724 (m6811_prologue): Use the above to recognize prologue.
9725 (m6812_prologue): Likewise.
9726
9727 2003-02-27 David Carlton <carlton@math.stanford.edu>
9728
9729 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9730 SYMBOL_PRINT_NAME.
9731 (compare_psymbols): Ditto.
9732 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9733
9734 2003-02-27 Michael Snyder <msnyder@redhat.com>
9735
9736 * f-lang.c (build_fortran_types): New function.
9737 (_initialize_f_language): Gdbarch-register built-in fortran types.
9738 * doublest.c (extract_floating): Fix warning text.
9739
9740 2003-02-27 Andrew Cagney <cagney@redhat.com>
9741
9742 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9743 predicate. Replaces PUSH_DUMMY_FRAME.
9744 * gdbarch.h, gdbarch.c: Regnerate.
9745 * valops.c (hand_function_call): Update. Call
9746 generic_push_dummy_frame directly.
9747 * vax-tdep.c (vax_gdbarch_init): Update.
9748 * sparc-tdep.c (sparc_gdbarch_init): Update.
9749 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9750 * m68k-tdep.c (m68k_gdbarch_init): Update.
9751 * hppa-tdep.c (hppa_gdbarch_init): Update.
9752 * alpha-tdep.c (alpha_gdbarch_init): Update.
9753 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9754 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9755 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9756 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9757 push_dummy_frame to generic_push_dummy_frame.
9758 * v850-tdep.c (v850_gdbarch_init): Ditto.
9759 * sh-tdep.c (sh_gdbarch_init): Ditto.
9760 * s390-tdep.c (s390_gdbarch_init): Ditto.
9761 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9762 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9763 * mips-tdep.c (mips_gdbarch_init): Ditto.
9764 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9765 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9766 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9767 * i386-tdep.c (i386_gdbarch_init): Ditto.
9768 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9769 * frv-tdep.c (frv_gdbarch_init): Ditto.
9770 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9771 * cris-tdep.c (cris_gdbarch_init): Ditto.
9772 * avr-tdep.c (avr_gdbarch_init): Ditto.
9773 * arm-tdep.c (arm_gdbarch_init): Ditto.
9774
9775 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9776
9777 * mips-tdep.c (show_mips_abi): New function.
9778 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9779 command ``show mips abi''.
9780
9781 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9782
9783 From Elena Zannoni <ezannoni@redhat.com>
9784 * dbxread.c (process_one_symbol): Only record line 0 if one or
9785 more sline entries have been seen for the function.
9786
9787 2003-02-26 Michael Chastain <mec@shout.net>
9788
9789 * configure: Regenerate with autoconf 000227.
9790
9791 2003-02-26 Michael Chastain <mec@shout.net>
9792
9793 Close PR build/660.
9794 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9795 for old libc5/glibc.
9796 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9797
9798 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9799
9800 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9801 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9802
9803 2003-02-26 Michael Chastain <mec@shout.net>
9804
9805 * configure.in: New variable HAVE_UINTPTR_T.
9806 * configure, config.in: Regenerated.
9807
9808 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9809
9810 Fix PR build/1097.
9811 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9812
9813 2003-02-25 Andrew Cagney <cagney@redhat.com>
9814
9815 * frame.c (get_prev_frame): Add comment on check for
9816 inside_entry_func. Only check for inside_entry_file when not a
9817 dummy and not a sentinel. Check that the new frame is not inner
9818 to the old frame.
9819
9820 2003-02-25 Andrew Cagney <cagney@redhat.com>
9821
9822 * frame.c (frame_debug): New variable.
9823 (_initialize_frame): Add "set/show debug frame" command.
9824 (get_prev_frame): When frame_debug, print reason why unwind
9825 failed.
9826
9827 2003-02-25 Michael Chastain <mec@shout.net>
9828
9829 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9830 to avoid uintptr_t definition problems.
9831
9832 2003-02-25 David Carlton <carlton@math.stanford.edu>
9833
9834 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9835 (SYMBOL_LINKAGE_NAME): Ditto.
9836 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9837 SYMBOL_LINKAGE_NAME.
9838 (struct general_symbol_info): Expand comment.
9839 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9840 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9841 (SYMBOL_MATCHES_REGEXP): Ditto.
9842 * symtab.c (symbol_natural_name): New function.
9843 * objfiles.h: Replace all uses of SYMBOL_NAME by
9844 DEPRECATED_SYMBOL_NAME.
9845 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9846 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9847 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9848 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9849 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9850 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9851 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9852 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9853 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9854 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9855 * ada-exp.y: Ditto.
9856 * ada-exp.y: Update copyright.
9857 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9858 * cp-valprint.c: Ditto.
9859
9860 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9861
9862 * infptrace.c (detach): Do not flag error if ptrace detach fails
9863 and errno is set to ESRCH.
9864
9865 2003-02-24 Andrew Cagney <cagney@redhat.com>
9866
9867 * infptrace.c (udot_info): Change type of udot_off to long. Use
9868 paddr when printing udot_off's value.
9869
9870 2003-02-24 David Carlton <carlton@math.stanford.edu>
9871
9872 * symtab.c (make_symbol_overload_list): Only read in partial
9873 symtabs containing a matching partial symbol.
9874
9875 2003-02-24 David Carlton <carlton@math.stanford.edu>
9876
9877 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9878 do the comparison, not strcmp.
9879 * symfile.c (compare_psymbols): Ditto.
9880 * defs.h: Declare strcmp_iw_ordered.
9881 * utils.c (strcmp_iw_ordered): New function.
9882
9883 2003-02-24 Jim Blandy <jimb@redhat.com>
9884
9885 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9886 support, shared libs): Remove my name from here, to better reflect
9887 reality.
9888
9889 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9890
9891 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9892 (target_ops): Add to_have_continuable_watchpoint.
9893 * target.c (update_current_target): Add INHERIT line for
9894 to_have_continuable_watchpoint.
9895 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9896 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9897 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9898 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9899
9900 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9901
9902 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9903 maintainership.
9904
9905 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9906
9907 * solib.c (solib_open): Call target defined search function after
9908 failing with solib-search-path.
9909 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9910 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9911
9912 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9913
9914 * MAINTAINERS: Add myself to Write After section.
9915
9916 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9917
9918 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9919
9920 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9921
9922 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9923 (m68hc11_add_reggroups): New function.
9924 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9925 (m68hc11_gdbarch_init): Install the reggroups.
9926 (_initialize_m68hc11_tdep): Initialize them.
9927
9928 2003-02-21 James E Wilson <wilson@tuliptree.org>
9929
9930 * MAINTAINERS: Update my email address.
9931
9932 2003-02-21 David Carlton <carlton@math.stanford.edu>
9933
9934 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9935
9936 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9937
9938 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9939 * symtab.h: Add opaque declarations of struct axs_value and
9940 struct agent_expr.
9941 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9942 (struct location_funcs): New type.
9943 (struct symbol): Add "loc" to aux_value.
9944 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9945 * dwarf2read.c: Include "dwarf2expr.h".
9946 (dwarf2_symbol_mark_computed): New function.
9947 (read_func_scope): Use it.
9948 (var_decode_location): New function.
9949 (new_symbol): Use it.
9950 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9951
9952 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9953 (dwarf2expr_h, dwarf2loc_h): New variables.
9954 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9955 (dwarf2expr.o, dwarf2loc.o): New rules.
9956 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9957 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9958 LOC_COMPUTED_ARG.
9959 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9960 * m2-exp.y (yylex): Likewise.
9961 * printcmd.c (address_info, print_frame_args): Likewise.
9962 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9963 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9964 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9965 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9966 * symtab.c (lookup_block_symbol): Likewise.
9967
9968 2003-02-20 Adam Fedor <fedor@gnu.org>
9969
9970 * symtab.h: Remove objc_specific struct
9971 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9972 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9973 Have language_objc use cplus_specific struct.
9974
9975 2003-02-20 Tom Tromey <tromey@redhat.com>
9976
9977 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9978 TYPE_NAME, when printing a String value. PR java/1075.
9979
9980 2003-02-20 Adam Fedor <fedor@gnu.org>
9981
9982 * objc-lang.h (find_methods): Remove declaration.
9983 * objc-lang.c (find_methods): Make static.
9984
9985 2003-02-20 Christopher Faylor <cgf@redhat.com>
9986
9987 * win32-nat.c (get_image_name): Check return value from
9988 ReadProcessMemory.
9989 (child_xfer_memory): Ditto.
9990
9991 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9992
9993 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9994 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9995 '${exec_prefix}' (in addition to the expansion thereof) as
9996 relocatable.
9997 * configure: Rebuilt.
9998
9999 2003-02-20 David Carlton <carlton@math.stanford.edu>
10000
10001 * symtab.c (search_symbols): Revert the search_symbols part of my
10002 2002-12-23 patch. Add comment.
10003
10004 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10005
10006 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10007 * dbxread.c (elfstab_build_psymtabs): Don't call
10008 install_minimal_symbols.
10009 (stabsect_build_psymtabs): Likewise.
10010 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10011 earlier.
10012 * somread.c (som_symfile_read): Call install_minimal_symbols
10013 and do_cleanups earlier.
10014 * nlmread.c (nlm_symfile_read): Likewise.
10015 * mdebugread.c (elfmdebug_build_psymtabs): Call
10016 install_minimal_symbols and make appropriate cleanups.
10017
10018 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10019
10020 * solib.c (reload_shared_libraries): New function.
10021 (_initialize_solib): Add callbacks for ``set solib-search-path''
10022 and ``set solib-absolute-prefix''.
10023
10024 2003-02-20 David Carlton <carlton@math.stanford.edu>
10025
10026 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10027 expand comment.
10028 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10029 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10030 * ada-typeprint.c (ada_typedef_print): Ditto.
10031 * ax-gdb.c (gen_var_ref): Ditto.
10032 * breakpoint.c (print_one_breakpoint): Ditto.
10033 * buildsym.c (finish_block): Ditto.
10034 * c-valprint.c (c_val_print): Ditto.
10035 * expprint.c (print_subexp): Ditto.
10036 * findvar.c (locate_var_value): Ditto.
10037 * infcmd.c (jump_command): Ditto.
10038 * linespec.c (decode_line_2, decode_compound): Ditto.
10039 * maint.c (maintenance_translate_address): Ditto.
10040 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10041 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10042 Ditto.
10043 * p-valprint.c (pascal_val_print): Ditto.
10044 * stabsread.c (define_symbol): Ditto.
10045 * stack.c (print_frame, frame_info, print_block_frame_locals)
10046 (print_frame_arg_vars, return_command): Ditto.
10047 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10048 * symmisc.c (print_symbol): Ditto.
10049 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10050 (compare_search_syms, print_symbol_info, print_msymbol_info)
10051 (rbreak_command): Ditto.
10052 * tracepoint.c (tracepoints_info): Ditto.
10053 * typeprint.c (typedef_print): Ditto.
10054 * valops.c (value_of_variable, hand_function_call): Ditto.
10055 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10056 * ada-typeprint.c: Update Copyright.
10057 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10058 * tracepoint.c, cli/cli-cmds.c: Ditto.
10059
10060 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10061
10062 * frame.c (generic_unwind_get_saved_register): Make non-static.
10063 * frame.h (generic_unwind_get_saved_register): Declare.
10064 * mips-tdep.c (read_next_frame_reg): Fetch register from
10065 current regcache when frame is NULL.
10066 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10067 that must be NULL.
10068 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10069 instead of frame_register_unwind().
10070
10071 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10072
10073 * remote-sim.c (gdbsim_insert_breakpoint)
10074 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10075 code.
10076
10077 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10078
10079 * remote.c (_initialize_remote): Add commands "set/show remote
10080 hardware-watchpoint-limit" and "set/show remote
10081 hardware-breakpoint-limit".
10082 (remote_hw_watchpoint_limit): Initialize to -1.
10083 (remote_hw_breakpoint_limit): Ditto.
10084 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10085
10086 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10087
10088 * coff-pe-read.c: New file - support reading of minimal symbols from a
10089 portable executable using the export table.
10090 * coff-pe-read.h: New file.
10091 * coffread.c: Include coff-pe-read.h.
10092 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10093 debugging symbols found.
10094 * Makefile.in (SFILES): Add coff-pe-read.o.
10095 (coff_pe_read_h): Define.
10096 (COMMON_OBS): Add coff-pe-read.o.
10097 (coffread.o): Add coff_pe_read_h dependency.
10098 (coff-pe-read.o): New target.
10099
10100 2003-02-19 David Carlton <carlton@math.stanford.edu>
10101
10102 * Makefile.in (SFILES): Add block.c.
10103 (block_h): New.
10104 (COMMON_OBS): Add block.o.
10105 (block.o): New.
10106 (x86-64-tdep.o): Add $(block_h).
10107 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10108 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10109 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10110 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10111 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10112 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10113 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10114 * value.h: Add opaque declaration for struct block.
10115 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10116 * ada-lang.h: Ditto.
10117 * x86-64-tdep.c: #include "block.h"
10118 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10119 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10120 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10121 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10122 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10123 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10124 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10125 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10126 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10127 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10128 * symtab.c (block_function): Ditto.
10129 (contained_in): Ditto.
10130 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10131 block.h. Add opaque declaration for struct block.
10132 * symtab.h: Move block_function and contained_in declarations to
10133 block.h. Add opaque declarations for struct block, struct
10134 blockvector.
10135 (struct block): Move to block.h.
10136 (struct blockvector): Ditto.
10137 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10138 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10139 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10140 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10141 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10142 Ditto.
10143 * block.c: New file.
10144 * block.h: New file.
10145
10146 2003-02-19 Theodore A. Roth <troth@openavr.org>
10147
10148 * avr-tdep.c (avr_extract_return_value): Remove function.
10149 (avr_store_return_value): Remove function.
10150 (avr_extract_struct_value_address): Remove function.
10151 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10152
10153 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10154
10155 * rs6000-tdep.c: Include "gdb_assert.h".
10156 (registers_e500): Add "acc" and "spefscr".
10157 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10158 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10159 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10160 really is "r0".
10161 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10162
10163 2003-02-18 Keith Seitz <keiths@redhat.com>
10164
10165 * Makefile.in: Add gdbtk-interps.c.
10166
10167 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10168
10169 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10170 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10171
10172 2003-02-18 Andrew Cagney <cagney@redhat.com>
10173
10174 * symtab.h (struct objfile): Add opaque declaration.
10175
10176 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10177
10178 From Jim Ingham <jingham@apple.com>:
10179 * dbxread.c (process_one_symbol): Use last_function_start rather
10180 than function_start_offset to find the real beginning of the
10181 current function. The latter is just the text section offset on
10182 some systems, the former is always the real function start.
10183
10184 2003-02-17 Andrew Cagney <cagney@redhat.com>
10185
10186 * configure.in: Revert ${target} != ${host}.
10187
10188 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10189
10190 * configure.in (Makefile): Use the test ${target} != ${host},
10191 instead of the absence of the "nm.h" file, to determine of the
10192 configuration non-native.
10193 * configure: Regenerate.
10194
10195 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10196
10197 From Brian Ford <ford@vss.fsi.com>
10198
10199 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10200 conditionalize tui_active test.
10201 (lookup_cmd_1): Ditto.
10202
10203 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10204
10205 * configure.in: Add check for _etext.
10206 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10207 available.
10208 * config.in, configure: regenerated.
10209
10210 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10211
10212 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10213
10214 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10215
10216 * main.c (tui_version): Delete variable.
10217 (captured_main): When --tui, set interpreter_p to "tui" instead of
10218 enabling tui_version.
10219 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10220 tui_version.
10221 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10222 * cli/cli-cmds.c (disassemble_command): Ditto.
10223 * defs.h (tui_version): Delete declaration.
10224 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10225 (tui-interp.o): Add rules.
10226 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10227
10228 2003-02-14 Christopher Faylor <cgf@redhat.com>
10229
10230 * win32-nat.c (register_loaded_dll): Correctly set address range for
10231 just-loaded dll.
10232
10233 2003-02-12 Jason Molenda (jmolenda@apple.com)
10234
10235 * symmisc.c (print_objfile_statistics): Include information about
10236 the number of psymtabs and symtabs in each object file.
10237
10238 2003-02-13 Keith R Seitz <keiths@redhat.com>
10239
10240 * main.h (struct captured_main_args): Add interpreter_p.
10241 * main.c (captured_main): Initialize interpreter_p from context.
10242 * gdb.c (main): Set interpreter_p argument.
10243 * Makefile.in (gdb.o): Add dependency for interps.h.
10244
10245 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10246
10247 * event-top.c (cli_command_loop): Delete declaration.
10248 (_initialize_event_loop): Delete function setting event_loop_hook.
10249 * event-top.h (cli_command_loop): Declare. Update copyright.
10250 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10251 * interps.c (current_interp_command_loop): When event_loop_p, call
10252 cli_command_loop.
10253
10254 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10255
10256 * interps.h (interp_command_loop_ftype): Change return type to
10257 void.
10258
10259 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10260
10261 * x86-64-tdep.c (x86_64_extract_return_value)
10262 (x86_64_store_return_value): Use regcache instead of regbuf.
10263 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10264 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10265
10266 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10267
10268 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10269 * aclocal.m4: Regenerate.
10270 * configure: Regenerate.
10271
10272 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10273 TCL_LD_SEARCH_FLAGS.
10274
10275 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10276
10277 * dwarf2cfi.c: Reindented.
10278
10279 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10280
10281 * interps.c (clear_interpreter_hooks): Convert function definition
10282 to ISO C.
10283
10284 2003-02-07 David Carlton <carlton@math.stanford.edu>
10285
10286 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10287
10288 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10289
10290 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10291 (struct type): ...to here.
10292 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10293 field.
10294 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10295 (replace_type): Set length on all type variants for a given type.
10296
10297 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10298
10299 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10300 <sys/stat.h>.
10301 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10302
10303 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10304
10305 * Makefile.in (symm-nat.o): Update dependencies.
10306 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10307 (lynx-nat.o, ia64-linux-nat.): Ditto.
10308 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10309 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10310 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10311
10312 * Makefile.in (inflow_h): Define.
10313 (procfs.o, inflow.o, procfs.o): Update dependencies.
10314 * inftarg.c (child_stop): Delete extern declaration of
10315 inferior_process_group. Include "inflow.h".
10316 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10317 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10318 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10319 (our_process_group, inferior_process_group): Extern declarations.
10320
10321 * procfs.c: Include "gdb_assert.h".
10322
10323 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10324 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10325 * jv-typeprint.c (java_type_print_base): Ditto.
10326 * typeprint.c (typedef_print): Eliminate STREQ.
10327 * cli/cli-script.c (define_command, define_command): Ditto.
10328 * main.c (captured_main): Ditto.
10329 * values.c (lookup_internalvar): Ditto.
10330 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10331 within `if' conditional.
10332 * linespec.c (decode_line_2): Ditto.
10333 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10334 (bfd_openw_with_cleanup): Ditto.
10335
10336 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10337
10338 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10339 legacy_extract_return_value and store_return_value to
10340 legacy_return_value.
10341
10342 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10343
10344 * win32-nat.c (get_relocated_section_addrs): New function. Find
10345 section load addresses for symbol handling in relocated DLLs.
10346 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10347
10348 2003-02-05 Fred Fish <fnf@intrinsity.com>
10349
10350 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10351 '=' and '!='.
10352 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10353 with '&' and '=='.
10354 (angel_RDI_info): Ditto.
10355 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10356 with '&' and '!='.
10357 (threads_continue_all_with_signals): Ditto.
10358
10359 2003-02-05 Jim Ingham <jingham@apple.com>
10360 Keith Seitz <keiths@redhat.com>
10361 Elena Zannoni <ezannoni@redhat.com>
10362 Andrew Cagney <ac131313@redhat.com>
10363
10364 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10365 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10366 (SUBDIR_MI_OBS): Add "mi-interp.o".
10367 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10368 (SFILES): Add "interps.c".
10369 (COMMON_OBS): Add "interps.o".
10370 (interps_h, mi_main_h): Define.
10371 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10372 (mi-main.o, main.o, event-top.o): Update dependencies.
10373 * cli/cli-interp.c: New file.
10374 * interps.h, interps.c: New files.
10375 * top.c: (gdb_init): Don't install the default interpreter, handed
10376 by captured_main.
10377 * main.c: Include "interps.h".
10378 (interpreter_p): Note that it should malloc'ed.
10379 (captured_command_loop): Call current_interp_command_loop.
10380 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10381 xfree and xstrdup when updating interpreter_p. Install the
10382 default interpreter. Add hack to stop mi1's copyright notice
10383 being encoded.
10384 * event-top.h (gdb_setup_readline): Declare.
10385 (gdb_disable_readline): Declare.
10386 * event-top.c: Include "interps.h".
10387 (display_gdb_prompt): Call current_interp_display_prompt_p.
10388 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10389 gdb_stdlog, and gdb_stdtarg.
10390 (_initialize_event_loop): Don't call gdb_setup_readline.
10391 * cli-out.c (cli_out_set_stream): New function.
10392 * cli-out.h (cli_out_set_stream): Declare.
10393
10394 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10395
10396 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10397 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10398 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10399 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10400 config/i386/i386v42mp.mt: Removed.
10401
10402 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10403
10404 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10405 GDB_OSABI_SOLARIS.
10406
10407 2003-02-05 Michael Chastain <mec@shout.net>
10408
10409 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10410 2.12.1 and earlier versions.
10411
10412 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10413
10414 Remove orphaned hosts, targets and files.
10415 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10416 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10417 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10418 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10419 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10420 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10421 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10422 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10423 * config/sparc/tm-sp64sim.h: Delete.
10424 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10425 hosts.
10426 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10427 mips*-dec-mach3* targets.
10428
10429 2003-02-04 Michael Chastain <mec@shout.net>
10430
10431 * NEWS: Fix typo: sepcifying -> specifying.
10432
10433 2003-02-04 Michael Chastain <mec@shout.net>
10434
10435 * dwarfread.c: Add documentation on the state of dwarf-1,
10436 looking towards obsoletion.
10437
10438 2003-02-03 Michael Chastain <mec@shout.net>
10439
10440 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10441 gdb/testsuite/gdb.c++/pr-1023.exp.
10442
10443 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10444
10445 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10446 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10447
10448 * utils.c (init_page_info): Delete reference to MPW in comments.
10449 * main.c (captured_main): Delete #ifdef MPW.
10450
10451 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10452
10453 * NEWS: Note that the m32r-*-elf* is obsolete.
10454 * monitor.c (monitor_expect): Obsolete reference to m32r.
10455 * configure.tgt: Mark m32r-*-elf* as obsolete.
10456 * MAINTAINERS: Mark m32k as obsolete.
10457 * m32r-rom.c: Obsolete file.
10458 * config/m32r/m32r.mt: Obsolete file.
10459 * config/m32r/tm-m32r.h: Obsolete file.
10460 * m32r-stub.c: Obsolete file.
10461 * m32r-tdep.c: Obsolete file.
10462
10463 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10464
10465 * NEWS: Mention that the z8k-zilog-none is obsolete.
10466 * MAINTAINERS: Mark z8k as obsolete.
10467 * configure.tgt: Obsolete the z8k-*-coff* target.
10468 * config/z8k/z8k.mt: Obsolete file.
10469 * config/z8k/tm-z8k.h: Obsolete file.
10470 * z8k-tdep.c: Obsolete file.
10471
10472 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10473
10474 * NEWS: Mention that the mn10200-elf is obsolete.
10475 * configure.tgt: Obsolete mn10200-*-* target.
10476 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10477 mention that the mn10200 is obsolete.
10478 * breakpoint.h: Ditto.
10479 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10480 * config/mn10200/mn10200.mt: Obsolete file.
10481 * config/mn10200/tm-mn10200.h: Obsolete file.
10482 * mn10200-tdep.c: Obsolete file.
10483
10484 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10485
10486 * MAINTAINERS: Mark h8500 as obsolete.
10487 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10488 * findvar.c (value_from_register): Ditto.
10489 * h8500-tdep.c: Mark file as obsolete.
10490 * config/h8500/h8500.mt: Ditto.
10491 * config/h8500/tm-h8500.h: Ditto.
10492 * NEWS: Mention that h8500 is obsolete.
10493
10494 2003-02-04 David Carlton <carlton@math.stanford.edu>
10495
10496 * objfiles.c (allocate_objfile): Always set name. Add comment at
10497 start of function.
10498 * jv-lang.c (get_dynamics_objfile): Add comment.
10499
10500 2003-02-04 David Carlton <carlton@math.stanford.edu>
10501
10502 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10503 * printcmd.c (build_address_symbolic): Replace uses of
10504 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10505 SYMBOL_NAME, and asm_demangle.
10506 Update copyright.
10507
10508 2003-02-04 David Carlton <carlton@math.stanford.edu>
10509
10510 * linespec.c (decode_compound): Extract code into
10511 lookup_prefix_sym.
10512 (lookup_prefix_sym): New function.
10513
10514 2003-02-04 David Carlton <carlton@math.stanford.edu>
10515
10516 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10517 FLOAT_COERCION_BADNESS.
10518 * gdbtypes.c (rank_one_type): Replace all uses of
10519 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10520
10521 2003-02-04 Jim Blandy <jimb@redhat.com>
10522
10523 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10524 section, let dwarf_macinfo_section point to it, not
10525 dwarf_loc_section.
10526
10527 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10528
10529 Pointed out by Anton Blanchard <anton@samba.org>.
10530 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10531 (ppc_linux_at_sigtramp_return_path): Use it.
10532
10533 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10534
10535 * defs.h (streq): Add prototype.
10536 * utils.c (streq): New function.
10537
10538 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10539 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10540 * mdebugread.c (new_symbol): Likewise.
10541 * stabsread.c (define_symbol): Likewise.
10542 * coffread.c (process_coff_symbol): Likewise.
10543 * dwarfread.c (new_symbol): Likewise.
10544
10545 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10546 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10547 here.
10548 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10549 SYMBOL_INIT_DEMANGLED_NAME.
10550 * objfiles.c: Include "hashtab.h".
10551 (allocate_objfile): Call htab_set_functions_ex for the
10552 demangled_names_hash.
10553 (free_objfile): Call htab_delete for the demangled_names_hash.
10554 * objfiles.h (struct htab): Add declaration.
10555 (struct objfile): Add demangled_names_hash.
10556 * symfile.c: Include "hashtab.h".
10557 (reread_symbols): Call htab_delete for the demangled_names_hash.
10558 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10559 SYMBOL_NAME in the bcache.
10560 * symtab.c: Include "hashtab.h". Update comments.
10561 (create_demangled_names_hash, symbol_set_names): New functions.
10562 (symbol_find_demangled_name): New function, broken out from
10563 symbol_init_demangled_names.
10564 (symbol_init_demangled_names): Use it.
10565 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10566 (SYMBOL_SET_NAMES): New macro.
10567 (symbol_set_names): Add prototype.
10568
10569 2003-02-03 Jim Blandy <jimb@redhat.com>
10570
10571 Use a single, consistent representation for an empty minimal
10572 symbol table in an objfile.
10573 * objfiles.c (terminate_minimal_symbol_table): New function.
10574 (allocate_objfile): Call it.
10575 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10576 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10577 non-NULL.
10578 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10579 objfile has minimal symbols, compare minimal_symbol_count to zero,
10580 instead of comparing msymbols with NULL.
10581 * objfiles.c (have_minimal_symbols): Same.
10582 * solib-sunos.c (solib_add_common_symbols): Call
10583 terminate_minimal_symbol_table.
10584 * symfile.c (reread_symbols): Same.
10585
10586 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10587
10588 * s390-tdep.c (s390_address_class_type_flags)
10589 (s390_address_class_type_flags_to_name)
10590 (s390_address_class_name_to_type_flags): New functions.
10591 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10592 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10593
10594 2003-02-03 Michael Snyder <msnyder@redhat.com>
10595
10596 * arm-tdep.c: Fix spell-o in comment.
10597
10598 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10599
10600 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10601 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10602 error messages to contain BFD filename.
10603
10604 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10605
10606 Fix PR gdb/742 gdb/743 gdb/877
10607 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10608 (do_mixed_source_and_assembly): Use
10609 make_cleanup_ui_out_tuple_begin_end and
10610 make_cleanup_ui_out_tuple_begin_end.
10611 (do_mixed_source_and_assembly): Ditto.
10612 * thread.c (do_captured_list_thread_ids): Ditto.
10613 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10614 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10615 ui_out_tuple_end): Delete prototypes.
10616 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10617 ui_out_list_end, ui_out_tuple_end): Delete.
10618
10619 From Kevin Buettner <kevinb@redhat.com>:
10620 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10621 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10622 (do_cleanup_table_end): New functions.
10623 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10624 Use cleanups to invoke_ui_out_tuple_end().
10625 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10626 * cli/cli-setshow.c (cmd_show_list): Use
10627 make_cleanup_ui_out_tuple_begin_end.
10628
10629 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10630
10631 * frame.c (frame_unwind_register): New function.
10632 (frame_unwind_unsigned_register): Use.
10633 (frame_unwind_signed_register): Use.
10634 (frame_read_register): New function.
10635 * frame.h (frame_unwind_register): Declare.
10636 (frame_read_register): Declare.
10637
10638 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10639 and frame_unwind_register instead of read_memory, write_register
10640 and deprecated_write_register_bytes.
10641
10642 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10643
10644 * frame.h: Note that namelen can be negative.
10645 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10646 NAME's length.
10647
10648 * NEWS: Mention that the d10v's `regs' command is deprecated.
10649 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10650 (d10v_print_registers_info): New function.
10651 (show_regs): Call d10v_print_registers_info.
10652 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10653
10654 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10655
10656 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10657 lost in the previous patch.
10658
10659 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10660
10661 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10662 * stack.c (print_frame_info_base): Output complete FRAME tuple
10663 for synthesized frames.
10664
10665 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10666
10667 * mips-nat.c (zerobuf): Delete.
10668 (fetch_inferior_registers): Alloc local zerobuf.
10669 (fetch_core_registers): Alloc local zerobuf.
10670 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10671 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10672 * thread-db.c (thread_db_store_registers): Ditto.
10673 * sh-tdep.c (sh_do_register): Ditto.
10674 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10675 * remote-sim.c (gdbsim_store_register): Ditto.
10676 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10677 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10678 * monitor.c (monitor_supply_register): Ditto.
10679 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10680 * mips-nat.c (fetch_inferior_registers): Ditto.
10681 * m68klinux-nat.c (fetch_register): Ditto.
10682 * lynx-nat.c (fetch_inferior_registers): Ditto.
10683 (fetch_inferior_registers): Ditto.
10684 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10685 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10686 (hpux_thread_store_registers): Ditto.
10687 * hppah-nat.c (fetch_register): Ditto.
10688 * hppab-nat.c (fetch_register): Ditto.
10689 * hppa-tdep.c (pa_register_look_aside): Ditto.
10690 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10691 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10692
10693 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10694
10695 * gdbarch.sh: Explictly specify all method levels. When a
10696 variable with an empty level, provide a non-multi-arch default.
10697 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10698 * gdbarch.h: Re-generate.
10699 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10700 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10701
10702 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10703
10704 * defs.h (host_pointer_to_address): Delete declaration.
10705 (address_to_host_pointer): Delete declaration.
10706 * utils.c (host_pointer_to_address): Delete function.
10707 (address_to_host_pointer): Delete function.
10708 * procfs.c (procfs_address_to_host_pointer): New function.
10709 * procfs.c (proc_set_watchpoint): Use.
10710 (procfs_can_use_hw_breakpoint): Update comments.
10711 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10712 (som_solib_add): Use.
10713 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10714 * hppa-tdep.c (unwind_command): Use.
10715
10716 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10717
10718 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10719 strlen d_name.
10720
10721 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10722 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10723 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10724 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10725 (define_symbol): Update.
10726 * symfile.c (generic_load): Remove references to nindy.
10727 * symtab.c: Remove references to nindy.
10728
10729 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10730
10731 * infcmd.c (print_float_info): Delete code conditional on
10732 FLOAT_INFO.
10733 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10734 * config/m68k/nm-apollo68b.h: Ditto.
10735 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10736 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10737 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10738
10739 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10740
10741 * config/i386/tm-i386os9k.h: Removed.
10742
10743 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10744 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10745 they're identical to i[3456]86-*-sysv* now.
10746 * config/i386/i386v32.mh: Removed.
10747 * config/i386/xm-i386v32.h: Removed.
10748 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10749
10750 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10751
10752 * config/i386/i386dgux.mh: Removed.
10753 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10754
10755 * configure.in: Fix typo.
10756 * configure: Regenerated.
10757
10758 2003-01-31 David Carlton <carlton@math.stanford.edu>
10759
10760 * dwarf2read.c (dwarf2_locate_sections): Set
10761 dwarf_ranges_section.
10762
10763 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10764
10765 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10766 * utils.c: Update comments documenting legitimate uses of PTR.
10767
10768 * utils.c: Re-indent.
10769
10770 * config/djgpp/fnchange.lst: Delete nindy files.
10771 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10772 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10773 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10774 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10775 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10776 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10777 * Makefile.in (init.c): Remove nindy references.
10778 (saber_gdb): Delete rule.
10779 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10780 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10781 and a68v-nat.c.
10782 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10783 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10784 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10785 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10786 nindy-share/stop.h.
10787 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10788 * saber.suppress: Delete file.
10789
10790 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10791
10792 * dbxread.c (stabs_data): New static variable.
10793 (fill_symbuf): Support an in-memory buffer for stabs data.
10794 (stabs_seek): New function.
10795 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10796 (read_ofile_symtab): Use stabs_seek.
10797 (elfstab_build_psymtabs): Take an asection* instead of
10798 an offset and size. Relocate the stabs data if necessary.
10799 Save the section* for dbx_psymtab_to_symtab.
10800 * dwarf2read.c: Add section variables for each debug section.
10801 (dwarf2_locate_sections): Fill them in.
10802 (dwarf2_read_section): Take an asection* argument.
10803 Relocate the section contents if necessary.
10804 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10805 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10806 it to dwarf2_read_section.
10807 (dwarf2_build_frame_info): Update callers.
10808 * elfread.c (elf_symfile_read): Update call to
10809 elfstab_build_psymtabs.
10810 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10811 (DBX_STAB_SECTION): New macro.
10812 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10813 * symfile.c (symfile_dummy_outputs): New function.
10814 (symfile_relocate_debug_section): New function.
10815 * symfile.h (symfile_relocate_debug_section): Add prototype.
10816
10817 2003-01-31 Richard Henderson <rth@redhat.com>
10818
10819 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10820 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10821 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10822 * alpha-tdep.c (alpha_register_name): Add "unique".
10823 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10824 (ALPHA_UNIQUE_REGNUM): New.
10825 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10826
10827 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10828
10829 * README: Remove reference to Ericsson 1800 monitor.
10830 * Makefile.in (remote-es.o): Delete rule.
10831 (ALLDEPFILES): Delete remote-es.c.
10832 * remote-es.c: Delete file.
10833 * config/m68k/es1800.mt: Delete file.
10834 * config/djgpp/fnchange.lst: Update.
10835 * configure.tgt: Delete m68*-ericsson-* target.
10836
10837 2003-01-31 Adam Fedor <fedor@gnu.org>
10838
10839 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10840 Remove duplicate/shadowing variable of same name.
10841
10842 2003-01-30 Jim Blandy <jimb@redhat.com>
10843
10844 * symfile.c (find_separate_debug_file): Assert that the objfile's
10845 directory name we compute ends with a slash, and then assume that
10846 that's so everywhere we use it.
10847
10848 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10849
10850 * valops.c (value_assign): Flush frame cache after stores to memory
10851 also.
10852
10853 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10854
10855 * Makefile.in (mon960-rom.o): Delete rule.
10856 * mon960-rom.c: Delete file.
10857
10858 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10859
10860 * d10v-tdep.c: Include "frame-unwind.h".
10861 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10862 list.
10863 (next_addr, uses_frame): Delete.
10864 (struct d10v_unwind_cache): Define.
10865 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10866 Use info instead of next_addr and uses_frame globals.
10867 (d10v_frame_init_saved_regs): Delete function.
10868 (d10v_init_extra_frame_info): Delete function.
10869 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10870 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10871 init_frame_pc or frame_saved_pc.
10872 (d10v_pop_frame): Delete function.
10873 (do_d10v_pop_frame): Delete function.
10874 (d10v_frame_chain): Delete function.
10875 (d10v_frame_chain_valid): Delete function.
10876 (d10v_frame_pc_unwind): New function.
10877 (d10v_frame_id_unwind): New function.
10878 (saved_regs_unwinder): New function.
10879 (d10v_frame_register_unwind): New function.
10880 (d10v_frame_pop): New function.
10881 (d10v_frame_unwind): New variable.
10882 (d10v_frame_p): New function.
10883 (d10v_frame_saved_pc): Delete function.
10884 * Makefile.in (d10v-tdep.o): Update dependencies.
10885
10886 2003-01-30 J. Brobecker <brobecker@gnat.com>
10887
10888 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10889 causing some regressions due to a change in the default value
10890 for this macro.
10891
10892 2003-01-29 Richard Henderson <rth@redhat.com>
10893 Elena Zannoni <ezannoni@redhat.com>
10894 Daniel Jacobowitz <drow@mvista.com>
10895
10896 Fix PR gdb/961.
10897 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10898 variables.
10899 (RANGES_SECTION): New.
10900 (dwarf_ranges_buffer): New variable.
10901 (struct comp_unit_head): Add member "die".
10902 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10903 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10904 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10905 (dwarf2_locate_sections): Likewise.
10906 (dwarf2_build_psymtabs): Read .debug_ranges.
10907 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10908 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10909 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10910 Look for DW_AT_ranges and return the bounding box.
10911
10912 2003-01-29 Brian Ford <ford@vss.fsi.com>
10913
10914 * win32-nat.c (cygwin_pid): Removed as unused.
10915 (child_attach): Try fall back to Cygwin pid.
10916
10917 2003-01-29 Jim Blandy <jimb@redhat.com>
10918
10919 * objfiles.h (struct objfile): Doc fix.
10920
10921 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10922
10923 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10924 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10925 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10926 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10927 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10928 (FRAME_SAVED_PC): Change to a function with predicate.
10929 * gdbarch.h, gdbarch.c: Re-generate.
10930
10931 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10932
10933 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10934
10935 * complaints.c (complain): Delete function.
10936 * complaints.h (struct deprecated_complaint): Delete definition.
10937 (complain): Delete declaration.
10938
10939 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10940
10941 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10942 dummy frames.
10943
10944 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10945
10946 * sentinel-frame.h, sentinel-frame.c: New files.
10947 * Makefile.in (frame.o): Update dependencies.
10948 (SFILES): Add sentinel-frame.c.
10949 (sentinel_frame_h): Define.
10950 (COMMON_OBS): Add sentinel-frame.o.
10951 (sentinel-frame.o): Specify dependencies.
10952 * frame.c: Include "sentinel-frame.h".
10953 (frame_register_unwind): Rewrite assuming that there is always a a
10954 ->next frame.
10955 (frame_register, generic_unwind_get_saved_register): Ditto.
10956 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10957 (create_sentinel_frame, unwind_to_current_frame): New functions.
10958 (get_current_frame): Rewrite using create_sentinel_frame and
10959 unwind_to_current_frame. When possible, always create a frame.
10960 (create_new_frame): Set next to the sentinel frame.
10961 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10962 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10963 ID cache when necessary.
10964 (frame_saved_regs_id_unwind): Use frame_relative_level.
10965 (deprecated_generic_get_saved_register): Use frame_relative_level,
10966 get_frame_saved_regs, get_frame_pc, get_frame_base and
10967 get_next_frame.
10968 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10969 frame_register.
10970
10971 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10972
10973 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10974
10975 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10976
10977 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10978 (maintenance_set_profile_cmd): Use error () instead of warning ().
10979
10980 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10981
10982 * configure.in: Check that -pg works if using --enable-profiling.
10983 Check for monstartup and _mcleanup regardless of --enable-profiling.
10984 * maint.c: Check for monstartup and _mcleanup before using them.
10985 * config.in: Regenerated.
10986 * configure: Regenerated.
10987
10988 2003-01-24 Nick Clifton <nickc@redhat.com>
10989
10990 * Add sh2e support:
10991
10992 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10993
10994 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10995 (sh2e_show_regs): New.
10996 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10997 * config/sh/tm-sh.h: Added sh2e to comments.
10998
10999 2003-01-23 Jim Blandy <jimb@redhat.com>
11000
11001 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11002 symbols found)" message here; we haven't checked for a separate
11003 debug info file yet, so we don't know yet.
11004 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11005 we've looked everywhere. Also, there's no need to print a special
11006 message when we're loading the separate debug info file: the one
11007 symbol_file_add prints is fine.
11008
11009 2003-01-23 Alexander Larsson <alexl@redhat.com>
11010 Jim Blandy <jimb@redhat.com>
11011
11012 Add support for executables whose debug info has been separated
11013 out into a separate file, leaving only a link behind.
11014 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11015 and separate_debug_objfile_backlink.
11016 (put_objfile_before): New declaration.
11017 * symfile.c: #include "filenames.h".
11018 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11019 debug info in a separate file, read that, too. Save the addrs
11020 argument, so we can use it again to read the separated debug info;
11021 syms_from_objfile modifies the table we pass it.
11022 (reread_symbols): After re-reading an objfile, call
11023 reread_separate_symbols to refresh its separate debug info
11024 objfile, if it has one.
11025 (reread_separate_symbols, find_separate_debug_file,
11026 get_debug_link_info, separate_debug_file_exists): New functions.
11027 (debug_file_directory): New global var.
11028 (_initialize_symfile): Initialize debug_file_directory, and
11029 provide the new `set debug-file-directory' command to let the user
11030 change it.
11031 * objfiles.c (free_objfile): If this objfile has its debug info in
11032 a separate objfile, free that one too. If this is itself a
11033 separate debug info objfile, clear our parent's backlink.
11034 (put_objfile_before): New function.
11035 * utils.c (gnu_debuglink_crc32): New function.
11036 * defs.h (gnu_debuglink_crc32): New declaration.
11037 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11038 * configure.in: Handle --with-separate-debug-dir config option.
11039 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11040 * acconfig.h (DEBUGDIR): New macro.
11041 * configure, aclocal.m4, config.in: Regenerated.
11042
11043 2003-01-22 Jim Blandy <jimb@redhat.com>
11044
11045 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11046 like the old symbol_file_add, but taking new arguments: you can
11047 now pass in either a `struct section_addr_info' list to say where
11048 each section is loaded, or a `struct section_offsets' table. Pass
11049 these new arguments through to syms_from_objfile as appropriate.
11050 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11051 with the appropriate quiescent values for the new arguments.
11052
11053 * symfile.c: #include "gdb_assert.h".
11054 (syms_from_objfile): Add the ability to pass in a section offset
11055 table directly, as an alternative to the section_addr_info table.
11056 Document arguments better.
11057 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11058 * symfile.h (syms_from_objfile): Update declaration.
11059 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11060 syms_from_objfile.
11061 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11062
11063 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11064
11065 Original patch by Tom Tromey <tromey@cygnus.com> and
11066 Jason Molenda <jmolenda@apple.com>.
11067 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11068 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11069 * NEWS: Mention profiling.
11070 * configure.in (--enable-gdbtk): Fix typo.
11071 (--enable-profiling): New. Set PROFILE_CFLAGS.
11072 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11073 Fill in function.
11074 (profiling_state): New variable.
11075 (mcleanup_wrapper): New function.
11076 (_initialize_maint): Remove NOTYET, fix call to
11077 add_setshow_boolean_cmd for "maint set profile".
11078 * configure: Regenerated.
11079
11080 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11081
11082 * Makefile.in (install-gdbtk): Install PNG images too.
11083
11084 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11085
11086 * exec.c (text_start): Delete global variable.
11087 (exec_file_attach): Make text_start local to the function.
11088 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11089 * valops.c (hand_function_call): Delete code that handles
11090 BEFORE_TEXT_END and AFTER_TEXT_END.
11091 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11092 of CALL_DUMMY_LOCATION.
11093 * gdbarch.c: Regenerate.
11094 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11095 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11096 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11097 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11098 (text_end): Delete extern declaration.
11099
11100 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11101
11102 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11103 * blockframe.c (backtrace_below_main): Move to "frame.c".
11104 (frame_chain_valid): Delete check for backtrace_below_main.
11105 (_initialize_blockframe): Delete initialization, move ``set
11106 backtrace-below-main'' command to "frame.c".
11107 (do_flush_frames_sfunc): Delete function.
11108 * frame.c: Include "command.h" and "gdbcmd.h".
11109 (frame_type_from_pc): New function.
11110 (create_new_frame): Use frame_type_from_pc.
11111 (legacy_get_prev_frame): New function.
11112 (get_prev_frame): Rewrite. When an old style frame, call
11113 legacy_get_prev_frame. Otherwize, unwind the PC first.
11114 (_initialize_frame): Add ``set backtrace-below-main'' command.
11115 * Makefile.in (frame.o): Update dependencies.
11116
11117 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11118
11119 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11120 DEPRECATED_REGISTERS_INFO.
11121
11122 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11123
11124 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11125 Maintainers'. Update `Various Maintainers'.
11126
11127 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11128
11129 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11130 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11131 Suppress actual parameters when `-'.
11132 * gdbarch.h, gdbarch.c: Regenerate.
11133
11134 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11135
11136 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11137 code handling dummy frames.
11138
11139 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11140
11141 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11142 (struct frame_unwind): Add field pop.
11143 * frame.h (frame_pop): Declare.
11144 * frame.c (frame_saved_regs_pop): New function.
11145 (trad_frame_unwinder): Add frame_saved_regs_pop.
11146 (frame_pop): New function.
11147 * dummy-frame.c (dummy_frame_pop): New function.
11148 (discard_innermost_dummy): New function.
11149 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11150 (dummy_frame_unwind): Add dummy_frame_pop.
11151 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11152 * valops.c (hand_function_call): Ditto.
11153 * stack.c (return_command): Ditto.
11154
11155 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11156
11157 * cris-tdep.c: Fix function declaration indentation.
11158 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11159 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11160 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11161 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11162 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11163 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11164
11165 2003-01-18 Michael Chastain <mec@shout.net>
11166
11167 * README (Unpacking and Installation -- quick overview):
11168 Warn against ".../gdb-5.3/gdb/configure".
11169
11170 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11171
11172 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11173 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11174 (struct frame_unwind): Declare opaque.
11175 (dummy_frame_p): Declare function.
11176 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11177 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11178 * dummy-frame.c: Include "frame-unwind.h".
11179 (dummy_frame_p): New function.
11180 (dummy_frame_unwind): New variable.
11181 * frame.c: Include "frame-unwind.h".
11182 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11183 to use the new unwind field.
11184 (set_unwind_by_pc): Delete function.
11185 (create_new_frame, get_prev_frame): Set unwind field using
11186 frame_unwind_find_by_pc.
11187 (trad_frame_unwind, trad_frame_unwinder): New variables.
11188 * frame.h (trad_frame_unwind): Declare variable.
11189 (frame_id_unwind_ftype): Delete declaration.
11190 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11191 (struct frame_unwind): Declare opaque.
11192 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11193 register_unwind with a single unwind pointer.
11194 * frame-unwind.h, frame-unwind.c: New files.
11195 * Makefile.in (SFILES): Add frame-unwind.c.
11196 (frame_unwind_h): Define.
11197 (COMMON_OBS): Add frame-unwind.o.
11198 (frame-unwind.o): Specify dependencies.
11199 (frame.o, dummy-frame.o): Update dependencies.
11200
11201 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11202
11203 * ada-valprint.c: Eliminate PTR.
11204 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11205 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11206 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11207 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11208 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11209 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11210 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11211
11212 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11213
11214 * main.c (captured_main): Don't use PTR.
11215 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11216 * gdbtypes.c (lookup_primitive_typename): Ditto.
11217 (lookup_struct_elt_type): Ditto.
11218 * f-valprint.c (info_common_command): Ditto.
11219 (list_all_visible_commons): Ditto.
11220 * jv-typeprint.c (java_type_print_base): Ditto.
11221
11222 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11223 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11224 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11225 i386-interix-nat.c and i386-interix-tdep.c. Rename
11226 m68klinux-nat.c and m68klinux-tdep.c. Rename
11227 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11228 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11229 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11230 * main.c (captured_main): Use xfree, not free.
11231
11232 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11233
11234 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11235 ID back using a parameter.
11236 * frame.c (frame_id_unwind): Update call.
11237 (frame_saved_regs_id_unwind): Update.
11238 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11239 * dummy-frame.h (struct frame_id): Add opaque declaration.
11240 (dummy_frame_id_unwind): Update declaration.
11241
11242 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11243
11244 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11245
11246 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11247
11248 * MAINTAINERS (Stephen P. Smith): Updated email address.
11249
11250 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11251
11252 Fix PR gdb/898
11253 * breakpoint.c (until_break_command): Add new argument. Use it to
11254 decide whether to stop only at the current frame or not.
11255 * breakpoint.h (until_break_command): Update prototype.
11256 * infcmd.c (until_command): Add new argument to until_break_command
11257 call.
11258 (advance_command): New function.
11259 (_initialize_infcmd): Update help string for 'until' command.
11260 Add new 'advance' command.
11261
11262 2003-01-14 David Carlton <carlton@math.stanford.edu>
11263
11264 * linespec.c (decode_line_1): Normalize comments.
11265 (set_flags): Ditto.
11266 (locate_first_half): Ditto.
11267 (decode_compound): Ditto.
11268 (symtab_from_filename): Ditto.
11269 (decode_all_digits): Ditto.
11270 (decode_dollar): Ditto.
11271 (find_methods): Ditto.
11272 (find_toplevel_char): Ditto.
11273
11274 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11275
11276 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11277 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11278 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11279 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11280 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11281 * language.c, language.h, m32r-tdep.c: Update copyright.
11282 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11283 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11284 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11285 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11286 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11287 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11288
11289 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11290
11291 * stabsread.h (process_later, resolve_cfront_continuation):
11292 Obsolete.
11293 Update copyright years.
11294 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11295 Update copyright year.
11296 * dbxread.c(struct cont_elem): Obsolete.
11297 (process_later, process_now): Obsolete functions.
11298 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11299 Update copyright year.
11300 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11301 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11302 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11303 (parse_partial_symbols): Obsolete cfront support.
11304 * stabsread.c
11305 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11306 macros.
11307 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11308 read_cfront_baseclasses, read_cfront_member_functions,
11309 resolve_cfront_continuation,read_cfront_static_fields,
11310 copy_cfront_struct_fields): Obsolete functions.
11311 (define_symbol, read_one_struct_field): Obsolete cfront support.
11312 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11313 Update Copyright year.
11314
11315 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11316
11317 * stack.c (print_frame_info, print_stack_frame_base_stub,
11318 print_stack_frame_base, show_and_print_stack_frame_stub,
11319 show_and_print_stack_frame, print_only_stack_frame_stub,
11320 print_only_stack_frame): Delete functions.
11321 (print_stack_frame_stub): Call print_frame_info instead of
11322 print_frame_info_base.
11323 (print_frame_info_base): Rename to print_frame_info.
11324 (backtrace_command_1): Call print_frame_info, instead of
11325 print_frame_info_base.
11326 (current_frame_command): Call print_stack_frame, instead of
11327 print_only_stack_frame.
11328 (frame_command): Call print_stack_frame, instead of
11329 show_and_print_stack_frame.
11330 (up_command): Ditto.
11331 (down_command): Ditto.
11332 * frame.h (print_only_stack_frame): Delete prototype.
11333 * infrun.c (normal_stop): Call print_stack_frame, instead of
11334 show_and_print_stack_frame.
11335 * thread.c (info_threads_command): Call print_stack_frame, instead
11336 of print_only_stack_frame.
11337
11338 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11339
11340 * README (Graphical interface to GDB): Update URL. Point at
11341 gdb/links/.
11342
11343 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11344 version match.
11345
11346 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11347
11348 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11349 lines.
11350
11351 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11352
11353 * thread-db.c (attach_thread): Prototype.
11354 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11355 thread information (ti), and valid flags (th_valid, ti_valid).
11356 (attach_thread): Move target_pid_to_str call to after the thread
11357 is added to GDB's list. Initialize the cache.
11358 (thread_get_info_callback, thread_db_map_id2thr)
11359 (thread_db_get_info): New functions.
11360 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11361 (thread_db_store_registers, thread_db_thread_alive)
11362 (thread_db_get_thread_local_address): Use them.
11363 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11364 of calling error() for threads in unknown state.
11365
11366 (clear_lwpid_callback): New function.
11367 (thread_db_resume): Use it to clear the cache.
11368
11369 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11370
11371 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11372 (resume_callback): Remove dead code.
11373
11374 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11375
11376 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11377 predicate.
11378 * gdbarch.h, gdbarch.c: Regenerate.
11379 * stack.c (frame_info): Only initialize the saved registers when
11380 FRAME_INIT_SAVED_REGS_P.
11381 * frame.c (frame_saved_regs_register_unwind): Assert
11382 FRAME_INIT_SAVED_REGS_P.
11383 (deprecated_generic_get_saved_register): Ditto.
11384
11385 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11386
11387 * source.c (openp): Squelch warning about "filename".
11388
11389 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11390
11391 * source.c (openp): If the file does not exist don't necessarily
11392 search the path.
11393
11394 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11395
11396 Fix PR gdb/872.
11397 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11398 (integer_types_same_name_p): New function.
11399 (rank_one_type): Use it.
11400 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11401
11402 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11403
11404 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11405 variables.
11406 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11407 * configure.in: Add --with-sysroot.
11408 * configure: Regenerated.
11409 * main.c (gdb_sysroot): New variable.
11410 (captured_main): Initialize gdb_sysroot.
11411 * defs.h (gdb_sysroot): New extern declaration.
11412 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11413
11414 2003-01-12 Michael Chastain <mec@shout.net>
11415
11416 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11417
11418 2003-01-12 Michael Chastain <mec@shout.net>
11419
11420 * top.c (print_gdb_version): Bump copyright year to 2003.
11421
11422 2003-01-12 David Carlton <carlton@bactrian.org>
11423
11424 * linespec.c (symtab_from_filename): Rename variable 's' to
11425 'file_symtab'.
11426
11427 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11428
11429 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11430 dummy frame.
11431 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11432
11433 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11434
11435 * d10v-tdep.c: Include "gdb_assert.h".
11436 (d10v_store_return_value): Rewrite to match current interface.
11437 (d10v_extract_struct_value_address): Ditto.
11438 (d10v_extract_return_value): Ditto.
11439 (d10v_gdbarch_init): Set store_restore_value,
11440 extract_struct_value_address and extract_return_value.
11441
11442 2003-01-12 J. Brobecker <brobecker@gnat.com>
11443
11444 * hpread.c (set_namestring): New procedure replacing the
11445 SET_NAMESTRING macro.
11446 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11447 by calls to set_namestring.
11448
11449 2003-01-11 J. Brobecker <brobecker@gnat.com>
11450
11451 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11452 a compilation warning.
11453 (hpread_process_one_debug_symbol): Likewise.
11454
11455 2003-01-10 David Carlton <carlton@math.stanford.edu>
11456
11457 * linespec.c (decode_line_1): Rename variable 's' to
11458 'file_symtab'.
11459 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11460 (decode_dollar): Ditto.
11461 (decode_variable): Ditto.
11462 (symbol_found): Ditto.
11463
11464 2003-01-09 Michael Chastain <mec@shout.net>
11465
11466 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11467
11468 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11469
11470 * win32-nat.c (set_process_privilege): New function.
11471 (child_attach): Call set_process_privilege() to enable the
11472 SE_DEBUG_NAME user privilege if available in process token.
11473
11474 2003-01-10 J. Brobecker <brobecker@gnat.com>
11475
11476 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11477 compilation error in the previous revision.
11478
11479 2003-01-09 David Carlton <carlton@math.stanford.edu>
11480
11481 * linespec.c: Update copyright.
11482
11483 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11484
11485 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11486 than inferior_ptid.
11487 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11488
11489 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11490
11491 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11492 Update comments.
11493 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11494 (frame_saved_regs_zalloc): Update.
11495 (frame_saved_regs_register_unwind): Update.
11496 (create_new_frame): Update.
11497 (get_prev_frame): Update.
11498 (frame_extra_info_zalloc): Update.
11499 (deprecated_get_frame_saved_regs): Update.
11500 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11501 * cris-tdep.c: Update comment.
11502
11503 * somsolib.h: Fix function indentation.
11504 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11505 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11506 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11507 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11508 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11509
11510 * infrun.c (follow_fork): Use ISO C definition.
11511 * expprint.c (print_subexp): Use xfree instead of free.
11512 * charset.c: Include "gdb_string.h" instead of <string.h>.
11513 (register_iconv_charsets): Use ISO C definition.
11514 (host_charset, target_charset): Ditto.
11515 * Makefile.in (charset.o): Update dependencies.
11516 (mi-cmd-env.o): Update dependencies.
11517
11518 2003-01-08 Andrew Cagney <cagney@redhat.com>
11519
11520 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11521 get_frame_base.
11522
11523 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11524
11525 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11526 build directories. Save edited gdb output in Mbuild.log. If a
11527 build fails, remove any final GDB executable.
11528
11529 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11530
11531 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11532 replacing hex constants with function names and stripping leading
11533 file name directory prefixes.
11534
11535 2003-01-08 Andrew Cagney <cagney@redhat.com>
11536
11537 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11538 get_frame_base.
11539
11540 2003-01-08 David Carlton <carlton@math.stanford.edu>
11541
11542 * linespec.c (decode_line_1): Move code into decode_variable.
11543 (decode_variable): New function.
11544
11545 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11546
11547 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11548
11549 2003-01-08 Andrew Cagney <cagney@redhat.com>
11550
11551 * cris-tdep.c (cris_frame_init_saved_regs): Use
11552 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11553 saved_regs buffer.
11554 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11555 (sh64_nofp_frame_init_saved_regs): Ditto.
11556 (sh_fp_frame_init_saved_regs): Ditto.
11557 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11558 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11559 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11560 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11561
11562 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11563
11564 * minsyms.c (lookup_minimal_symbol): Update comment.
11565 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11566 (lookup_minimal_symbol_solib_trampoline): Likewise.
11567
11568 2003-01-08 Andrew Cagney <cagney@redhat.com>
11569
11570 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11571 frame_relative_level.
11572
11573 * alpha-tdep.c: Use get_frame_extra_info.
11574 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11575 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11576 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11577 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11578
11579 * alpha-tdep.c: Use get_next_frame.
11580 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11581 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11582 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11583 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11584 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11585 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11586 * xstormy16-tdep.c: Ditto.
11587
11588 2003-01-07 Andrew Cagney <cagney@redhat.com>
11589
11590 * alpha-tdep.c: Use get_frame_base.
11591 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11592 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11593 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11594 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11595 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11596 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11597 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11598 * config/sparc/tm-sparc.h: Ditto.
11599
11600 2003-01-07 Andrew Cagney <cagney@redhat.com>
11601
11602 * frame.c (deprecated_get_frame_context): New function.
11603 (deprecated_set_frame_context): New function.
11604 * frame.h (deprecated_get_frame_context): Declare.
11605 (deprecated_set_frame_context): Declare.
11606 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11607 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11608
11609 2003-01-07 Andrew Cagney <cagney@redhat.com>
11610
11611 * frame.c (deprecated_set_frame_next_hack): New function.
11612 (deprecated_set_frame_prev_hack): New function.
11613 * frame.h (deprecated_set_frame_next_hack): Declare.
11614 (deprecated_set_frame_prev_hack): Declare.
11615 * mcore-tdep.c (analyze_dummy_frame): Use
11616 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11617 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11618
11619 2003-01-07 David Carlton <carlton@math.stanford.edu>
11620
11621 * linespec.c (decode_line_1): Move code into decode_dollar.
11622 (decode_dollar): New function.
11623
11624 2003-01-07 Andrew Cagney <cagney@redhat.com>
11625
11626 * arm-tdep.c (arm_init_extra_frame_info): Use
11627 deprecated_update_frame_base_hack.
11628 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11629 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11630 (fix_frame_pointer): Ditto.
11631 (mn10300_analyze_prologue): Ditto.
11632
11633 2003-01-07 Andrew Cagney <cagney@redhat.com>
11634
11635 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11636 extra_info using frame_extra_info_zalloc.
11637 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11638 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11639 (sh64_init_extra_frame_info): Ditto.
11640 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11641 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11642 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11643 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11644 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11645 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11646 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11647 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11648 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11649 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11650 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11651 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11652
11653 * mn10300-tdep.c (analyze_dummy_frame): Use
11654 deprecated_set_frame_extra_info_hack.
11655 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11656
11657 2003-01-07 J. Brobecker <brobecker@gnat.com>
11658
11659 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11660 class is not scText. These do not define "real" procedures.
11661 (parse_partial_symbols): Likewise.
11662
11663 2003-01-06 Michael Snyder <msnyder@redhat.com>
11664
11665 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11666
11667 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11668
11669 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11670 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11671 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11672 deprecated_frame_xmalloc_with_cleanup.
11673 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11674 deprecated_frame_xmalloc.
11675 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11676 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11677
11678 2003-01-06 Andrew Cagney <cagney@redhat.com>
11679
11680 * x86-64-linux-tdep.c: Include "osabi.h".
11681 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11682
11683 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11684
11685 2003-01-06 Andrew Cagney <cagney@redhat.com>
11686
11687 * MAINTAINERS (Target Instruction Set Architectures): Update
11688 arm-elf. Can be built with -Werror, has been multiarched.
11689
11690 * value.h (unpack_long): Make buffer parameter constant.
11691 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11692 * scm-lang.h (scm_parse): Ditto.
11693 * defs.h (extract_typed_address, extract_address): Ditto.
11694 (extract_long_unsigned_integer): Ditto.
11695 * inferior.h (unsigned_pointer_to_address): Ditto.
11696 (signed_pointer_to_address): Ditto.
11697 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11698 * gdbarch.h, gdbarch.c: Regenerate.
11699 * findvar.c (extract_long_unsigned_integer): Update.
11700 (extract_address): Update.
11701 (extract_typed_address): Update.
11702 (unsigned_pointer_to_address): Update.
11703 * values.c (unpack_long): Update.
11704 (unpack_double): Update.
11705 (unpack_pointer): Update.
11706 (unpack_field_as_long): Update.
11707 * d10v-tdep.c (d10v_pointer_to_address): Update.
11708 * avr-tdep.c (avr_pointer_to_address): Update.
11709 * scm-lang.c (scm_unpack): Update.
11710 * findvar.c (signed_pointer_to_address): Update.
11711
11712 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11713
11714 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11715 since it is in i386-tdep.c.
11716
11717 2003-01-06 J. Brobecker <brobecker@gnat.com>
11718
11719 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11720 failure introduced in the previous change.
11721
11722 2003-01-05 Michael Chastain <mec@shout.net>
11723
11724 * README: Remove references to deleted remote-*.c files:
11725 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11726 remote-nrom.c, remote-os9k.c, remote-udi.c.
11727
11728 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11729
11730 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11731 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11732 i386_get_longjmp_target.
11733
11734 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11735
11736 * arm-tdep.c (prologue_cache): Change to a pointer.
11737 (_initialize_arm_tdep): Allocate prologue_cache.
11738 (check_prologue_cache): Update.
11739 (save_prologue_cache): Update.
11740 (arm_gdbarch_init): Update.
11741
11742 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11743
11744 * stabsread.c (update_method_name_from_physname): Call complaint()
11745 instead of error.
11746
11747 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11748
11749 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11750 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11751 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11752
11753 * blockframe.c: Include "gdbcmd.h" and "command.h".
11754 (backtrace_below_main): New variable.
11755 (file_frame_chain_valid, func_frame_chain_valid)
11756 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11757 (generic_func_frame_chain_valid): Remove functions.
11758 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11759 (_initialize_blockframe): New function.
11760 * Makefile.in (blockframe.o): Update dependencies.
11761 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11762 comment. Call frame_chain_valid ().
11763 * frame.h: Remove old prototypes. Add prototype for
11764 frame_chain_valid and update comments to match.
11765 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11766 Remove old comment.
11767 * gdbarch.h: Regenerated.
11768 * gdbarch.c: Regenerated.
11769
11770 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11771 set_gdbarch_frame_chain_valid.
11772 * avr-tdep.c (avr_gdbarch_init): Likewise.
11773 * cris-tdep.c (cris_gdbarch_init): Likewise.
11774 * frv-tdep.c (frv_gdbarch_init): Likewise.
11775 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11776 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11777 (i386_nw_init_abi): Likewise.
11778 (i386_gdbarch_init): Likewise.
11779 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11780 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11781 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11782 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11783 * mips-tdep.c (mips_gdbarch_init): Likewise.
11784 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11785 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11786 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11787 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11788 * s390-tdep.c (s390_gdbarch_init): Likewise.
11789 * sh-tdep.c (sh_gdbarch_init): Likewise.
11790 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11791 * v850-tdep.c (v850_gdbarch_init): Likewise.
11792 * vax-tdep.c (vax_gdbarch_init): Likewise.
11793 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11794
11795 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11796 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11797 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11798 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11799 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11800 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11801 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11802 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11803
11804 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11805
11806 * Makefile.in (acconfig_h): Remove incorrect macro.
11807 (config_h): Define.
11808 (osabi.o): Update dependencies.
11809 * configure.tgt: Set gdb_osabi based on target triplet.
11810 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11811 * configure: Regenerated.
11812 * config.in: Regenerated.
11813 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11814 (GDB_OSABI_DEFAULT): Define if not already defined.
11815 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11816 (set_osabi_string): New variables.
11817 (gdbarch_register_osabi): Add new OS ABI to
11818 gdb_osabi_available_names.
11819 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11820 (set_osabi, show_osabi): New functions.
11821 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11822
11823 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11824
11825 * arch-utils.c (gdbarch_info_init): Set osabi to
11826 GDB_OSABI_UNINITIALIZED.
11827 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11828 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11829 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11830 * gdbarch.c: Regenerated.
11831 * gdbarch.h: Regenerated.
11832 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11833 there's no BFD.
11834 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11835 * osabi.h (enum gdb_osabi): Move to defs.h.
11836 (gdbarch_init_osabi): Update prototype.
11837 * defs.h (enum gdb_osabi): Moved here.
11838 * Makefile.in: Update dependencies.
11839
11840 * alpha-tdep.h: Don't include "osabi.h".
11841 (struct gdbarch_tdep): Remove osabi member.
11842 * alpha-tdep.c: Include "osabi.h".
11843 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11844 iterate over arches. Update call to gdbarch_init_osabi.
11845 (alpha_dump_tdep): Don't dump osabi.
11846 * alpha-linux-tdep.c: Include "osabi.h".
11847 * alpha-osf1-tdep.c: Include "osabi.h".
11848 * alphafbsd-tdep.c: Include "osabi.h".
11849 * alphanbsd-tdep.c: Include "osabi.h".
11850
11851 * arm-tdep.h: Don't include "osabi.h".
11852 (struct gdbarch_tdep): Remove osabi member.
11853 * arm-tdep.c: Include "osabi.h".
11854 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11855 iterate over arches. Update call to gdbarch_init_osabi.
11856 (arm_dump_tdep): Don't dump osabi.
11857 * arm-linux-tdep.c: Include "osabi.h".
11858 * armnbsd-tdep.c: Include "osabi.h".
11859
11860 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11861 Update call to gdbarch_init_osabi.
11862
11863 * i386-tdep.h: Don't include "osabi.h".
11864 (struct gdbarch_tdep): Remove osabi member.
11865 * i386-tdep.c: Include "osabi.h".
11866 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11867 iterate over arches. Update call to gdbarch_init_osabi.
11868 (i386_dump_tdep): Don't dump osabi.
11869 * i386-linux-tdep.c: Include "osabi.h".
11870 * i386-sol2-tdep.c: Include "osabi.h".
11871 * i386bsd-tdep.c: Include "osabi.h".
11872 * i386gnu-tdep.c: Include "osabi.h".
11873 * i386ly-tdep.c: Include "osabi.h".
11874 * i386nbsd-tdep.c: Include "osabi.h".
11875 * i386obsd-tdep.c: Include "osabi.h".
11876
11877 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11878 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11879 check osabi when iterating over arches. Update call to
11880 gdbarch_init_osabi.
11881 (mips_dump_tdep): Don't dump osabi.
11882
11883 * ns32k-tdep.h: Don't include "osabi.h".
11884 (struct gdbarch_tdep): Remove.
11885 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11886 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11887 allocate tdep. Update call to gdbarch_init_osabi.
11888 (ns32k_dump_tdep): Remove.
11889 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11890 * ns32knbsd-tdep.c: Include "osabi.h".
11891
11892 * ppc-tdep.h: Don't include "osabi.h".
11893 (struct gdbarch_tdep): Remove osabi member.
11894 * rs6000-tdep.c: Include "osabi.h".
11895 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11896 osabi when iterating over arches. Update call to
11897 gdbarch_init_osabi.
11898 (rs6000_dump_tdep): Don't dump osabi.
11899 * ppc-linux-tdep.c: Include "osabi.h".
11900 * ppcnbsd-tdep.c: Include "osabi.h".
11901
11902 * sh-tdep.h: Don't include "osabi.h".
11903 (struct gdbarch_tdep): Remove osabi member.
11904 * sh-tdep.c: Include "osabi.h".
11905 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11906 iterate over arches. Update call to gdbarch_init_osabi.
11907 (sh_dump_tdep): Don't dump osabi.
11908 * shnbsd-tdep.c: Include "osabi.h".
11909
11910 * sparc-tdep.c: Include "osabi.h".
11911 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11912 iterate over arches. Update call to gdbarch_init_osabi.
11913 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11914 tdep structure.
11915
11916 * vax-tdep.h: Don't include "osabi.h".
11917 (struct gdbarch_tdep): Remove.
11918 * vax-tdep.c: Include "osabi.h".
11919 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11920 iterate over arches. Don't allocate tdep. Update call
11921 to gdbarch_init_osabi.
11922 (vax_dump_tdep): Remove.
11923 (_initialize_vax_tdep): Update call to gdbarch_register.
11924
11925 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11926
11927 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11928 entirely.
11929 (breakpoint_re_set_one): Don't fetch the value for a disabled
11930 watchpoint.
11931
11932 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11933
11934 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11935 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11936 (COERCE_FLOAT_TO_DOUBLE): Remove.
11937 * gdbarch.c: Regenerate.
11938 * gdbarch.h: Regenerate.
11939 * Makefile.in: Remove value_h from gdbarch_h.
11940 * valops.c (coerce_float_to_double): New variable.
11941 (default_coerce_float_to_double): Remove.
11942 (standard_coerce_float_to_double): Remove.
11943 (value_arg_coerce): Use coerce_float_to_double.
11944 (_initialize_valops): Add "set coerce-float-to-double".
11945 * value.h (default_coerce_float_to_double): Remove prototype.
11946 (standard_coerce_float_to_double): Remove prototype.
11947
11948 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11949 prototyped.
11950 * mdebugread.c (parse_symbol): Likewise.
11951 * stabsread.c (define_symbol): Mark all functions as prototyped.
11952
11953 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11954 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11955 set_gdbarch_coerce_float_to_double.
11956 * arm-tdep.c (arm_gdbarch_init): Likewise.
11957 * frv-tdep.c (frv_gdbarch_init): Likewise.
11958 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11959 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11960 * mips-tdep.c (mips_gdbarch_init): Likewise.
11961 (mips_coerce_float_to_double): Remove.
11962 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11963 (rs6000_coerce_float_to_double): Remove.
11964 * s390-tdep.c (s390_gdbarch_init): Likewise.
11965 * sh-tdep.c (sh_gdbarch_init): Likewise.
11966 (sh_coerce_float_to_double): Remove.
11967 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11968 (sparc_coerce_float_to_double): Remove.
11969 * v850-tdep.c (v850_gdbarch_init): Likewise.
11970 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11971 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11972 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11973 (hppa_coerce_float_to_double): Remove prototype.
11974 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11975
11976 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11977
11978 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11979
11980 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11981
11982 Suggested by Stewart Brown <sb24@avaya.com>:
11983 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11984 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11985 (c_type_print_varspec_suffix): Likewise.
11986
11987 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11988
11989 * configure.in: Don't set and AC_SUBST SUBDIRS.
11990 * configure: Regenerated.
11991
11992 * configure.in: Remove code dealing with shared libraries.
11993 * Makefile.in: Remove HLDFLAGS and HLDENV.
11994 * configure: Regenerated.
11995
11996 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11997
11998 * frame.c (deprecated_frame_xmalloc): New function.
11999 (deprecated_set_frame_saved_regs_hack): New function.
12000 (deprecated_set_frame_extra_info_hack): New function.
12001 * frame.h (deprecated_frame_xmalloc): Declare.
12002 (deprecated_set_frame_saved_regs_hack): Declare.
12003 (deprecated_set_frame_extra_info_hack): Declare.
12004
12005 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12006
12007 * configure.in: Move code that provides the --enable-gdbtk option
12008 right after the code that handles the --enable-tui option, and
12009 polish it somewhat.
12010 * configure: Regenerated.
12011
12012 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12013 AC_CHECK_FUNCS and remove the old check for pread64.
12014 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12015 * acconfig.h (_GNU_SOURCE): Add.
12016 (HAVE_PREAD64): Remove.
12017 * configure, aclocal.m4, config.in: Regenerated.
12018
12019 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12020
12021 * alpha-tdep.c: Use get_frame_saved_regs.
12022 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12023 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12024 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12025 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12026 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12027
12028 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12029
12030 * configure.in: Remove all use of the SUBDIRS variable; add
12031 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12032 code providing the --enable-multi-ice option, and move it right in
12033 front of the code that checks whether gdbserver is supported.
12034 Polish that too.
12035 * configure: Regenerated.
12036 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12037 @SUBDIRS@.
12038
12039 2003-01-03 Andrew Cagney <cagney@redhat.com>
12040
12041 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12042 * avr-tdep.c, cris-tdep.c: Ditto.
12043 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12044 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12045
12046 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12047
12048 * configure.in: Remove --enable-netrom option.
12049 * configure: Regenerated.
12050
12051 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12052
12053 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12054 declaration for `struct re_pattern_buffer' instead.
12055 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12056
12057 2003-01-03 J. Brobecker <brobecker@gnat.com>
12058
12059 * mdebugread.c (parse_symbol): Count until the stEnd matching
12060 the structure name.
12061
12062 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12063
12064 * configure.in: Remove --with-cpu option.
12065 subscripts. Remove evil changequotes here.
12066 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12067 * config.in, configure: Regenerated.
12068
12069 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12070 * configure.in: Cleanup section that sources GDB and BFD configure
12071 subscripts. Remove evil changequotes here.
12072 * config.in, configure: Regenerated.
12073
12074 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12075
12076 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12077 frame accessor methods.
12078 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12079 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12080 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12081 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12082 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12083 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12084 * z8k-tdep.c: Ditto.
12085
12086 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12087
12088 * configure.in: Remove UI_OUT configuration code.
12089 * ada-lang.c: Update assuming UI_OUT is always true.
12090 * Makefile.in (UIOUT_CFLAGS): Remove.
12091 * configure: Regenerated.
12092 * TODO: Remove blurb about elimination of -DUI_OUT.
12093
12094 * configure.in: Move code that provides the --enable-gdbcli,
12095 --enable-gdbmi options right before the code that handles the
12096 --enable-tui option. Polish a bit.
12097 * configure: Regenerated.
12098
12099 * configure.in: Rewrite check for GNU regex and the
12100 --without-included regex option, and move it into the "Checks for
12101 library functions" section. This makes us use the system regex
12102 again by default on systems with version 2 of the GNU C library.
12103 This was apparently broken.
12104 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12105 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12106 * config.in, configure: Regenerated.
12107
12108 * configure.in: Move code that provides the --enable-tui option
12109 before the "Checks for libraries" section. Polish the code
12110 somewhat and set need_curses to yes if we build the TUI. Rewrite
12111 code that looks for a library providing termcap functionality to
12112 match more closely what's done in the Readline library, and move
12113 it into to the "Checks for libraries" section.
12114 * configure: Regenerated.
12115 * Makefile.in (TERMCAP): Remove variable.
12116 * config/i386/go32.mh (TERMCAP): Remove variable.
12117
12118 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12119
12120 * MAINTAINERS: Mention gdb_mbuild.sh.
12121 * gdb_mbuild.sh: Rewrite.
12122
12123 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12124
12125 * configure.in: Fix typo in last change.
12126 * config.in, configure: Regenerated.
12127
12128 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12129
12130 * valarith.c (value_binop): Delete obsolete code and comments.
12131 * configure.host: Ditto.
12132 * buildsym.h (make_blockvector): Ditto.
12133 * buildsym.c (make_blockvector): Ditto.
12134 * defs.h (enum language): Ditto.
12135 (chill_demangle): Ditto.
12136 * elfread.c (elf_symtab_read): Ditto.
12137 * dwarfread.c (CHILL_PRODUCER): Ditto.
12138 (set_cu_language): Ditto.
12139 (handle_producer): Ditto.
12140 * expprint.c (print_subexp): Ditto.
12141 * gdbtypes.c (chill_varying_type): Ditto.
12142 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12143 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12144 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12145 (chill_varying_type): Ditto.
12146 * language.h (_LANG_chill): Ditto.
12147 * language.c (binop_result_type, integral_type): Ditto.
12148 (character_type, string_type, structured_type): Ditto.
12149 (lang_bool_type, binop_type_check): Ditto.
12150 * stabsread.h (os9k_stabs): Ditto.
12151 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12152 (define_symbol, read_type, read_struct_fields): Ditto.
12153 (read_array_type, read_enum_type, read_huge_number): Ditto.
12154 (read_range_type, start_stabs): Ditto.
12155 * symfile.c (init_filename_language_table): Ditto.
12156 (add_psymbol_with_dem_name_to_list): Ditto.
12157 * symtab.c (symbol_init_language_specific): Ditto.
12158 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12159 * symtab.h (struct general_symbol_info): Ditto.
12160 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12161 * typeprint.c (typedef_print): Ditto.
12162 * utils.c (fprintf_symbol_filtered): Ditto.
12163 * valops.c (value_cast, search_struct_field, value_slice): Delete
12164 obsolete code.
12165 (varying_to_slice): Delete function.
12166 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12167 (varying_to_slice): Delete declaration.
12168 * MAINTAINERS: Update.
12169
12170 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12171
12172 * configure.in: Reorganize "Checks for library functions section"
12173 a bit. Remove check for `btowc' and `isascii' functions.
12174 * configure: Regenerated.
12175
12176 * acconfig.h (_MSE_INT_H): Remove.
12177 * configure.in: Create "Checks for header files" section, and move
12178 appropriate tests there. Don't check for objlist.h, wchar.h,
12179 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12180 misdetection fix. Also add "Checks for types", "Checks for
12181 compiler characteristics" and "Checks for library functions"
12182 sections.
12183 * config.in, configure: Regenerated.
12184
12185 * configure.in: Create "Checks for programs" section, and move
12186 appropriate tests there.
12187
12188 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12189
12190 * configure.in: Create "Checks for libraries" section, and move
12191 appropriate tests there. Cleanup check for wctype in libw. Use
12192 AC_SEARCH_LIBS to see whether we need libsocket.
12193 * configure: Regenerated.
12194
12195 For older changes see ChangeLog-2002
12196 \f
12197 Local Variables:
12198 mode: change-log
12199 left-margin: 8
12200 fill-column: 74
12201 version-control: never
12202 End:
This page took 0.301131 seconds and 4 git commands to generate.