Add --only-keep-debug to the --help output.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8bfdb672
DD
12003-12-11 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
2
3 * MAINTAINERS (write after approval): Add myself.
4
454d0511
DD
52003-12-11 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
6
7 * config/h8300/tm-h8300.h (h8300hmode): Remove.
8 (h8300hmode): Likewise.
9 (h8300smode): Likewise.
10 (h8300sxmode): Likewise.
11 (h8300_normal_mode): Likewise.
12 (GDB_TARGET_IS_H8300): Likewise.
13 (NUM_REALREGS): Use TARGET_ARCHITECTURE->mach instead of global.
14 * h8300-tdep.c (is_h8300hmode): New function.
15 (is_h8300smode): New function.
16 (is_h8300sxmode): New function.
17 (is_h8300_normal_mode): New function.
18 (BINWORD): Use new functions.
19 (h8300_examine_prologue): Likewise.
20 (h8300_print_register): Likewise.
21 (h8300_print_registers_info): Likewise.
22 (h8300_register_type): Likewise.
23 (h8300_gdbarch_init): Remove use of globals like h8300hmode.
24 * remote-e7000.c (e7000_open): Remove use of GDB_TARGET_IS_H8300.
25 (e7000_fetch_registers): Use TARGET_ARCHITECTURE->mach instead.
26 (e7000_wait): Use TARGET_ARCHITECTURE->mach instead of global.
27
7ae4c3a5
JB
282003-12-10 J. Brobecker <brobecker@gnat.com>
29
30 * frame.c (select_frame): Get the current frame PC using
31 get_frame_address_in_block() instead of get_frame_pc().
32 * stack.c (get_frame_language): Likewise.
33
9b74d5d3
KB
342003-12-08 Kevin Buettner <kevinb@redhat.com>
35
36 * remote.c (remote_open_1, remote_cisco_open): Avoid closing
37 remote_desc more than once.
38
e7ebf6d6
AC
392003-12-07 Andrew Cagney <cagney@redhat.com>
40
41 * defs.h (DEPRECATED_STREQN, DEPRECATED_STREQ): Simplify by
42 directly calling strcmp equivalents. Add disclaimer.
43
8ccc1287
AC
442003-12-06 Andrew Cagney <cagney@redhat.com>
45
46 * remote.c (remote_fetch_registers): For short packets, explicitly
47 supply a zero value. Use regcache_raw_supply. Fix suggested by
48 Jonathan Larmour.
49
32edc941
JJ
502003-12-05 Jeff Johnston <jjohnstn@redhat.com>
51
52 * ia64-tdep.c (ia64_gdbarch_init): Set up the gdbarch long double
53 format to be the i387 extended float format which is used for
54 long doubles stored in memory.
55
2af2aeb0
MK
562003-12-05 Mark Kettenis <kettenis@gnu.org>
57
58 From Ulrich Weigand <weigand@informatik.uni-erlangen.de>:
59 * dwarf2-frame.c (dwarf2_frame_cache): Use the untranslated RA
60 column instead of translating it.
61
362ff856
MC
622003-12-04 Michael Chastain <mec.gnu@mindspring.com>
63
64 Partial fix for PR c++/1465.
65 Fix for PR c++/1377.
66 * cp-support.h (cp_lookup_rtti_type): New function.
67 * cp-support.c (cp_lookup_rtti_type): New function.
68 * gnu-v2-abi.c: Update copyright years.
69 (gnuv2_rtti_type): Call cp_lookup_rtti_type.
70 * gnu-v3-abi.c: Update copyright years.
71 (gnuv3_rtti_type): Call cp_lookup_rtti_type.
72
149d821b
JB
732003-12-04 J. Brobecker <brobecker@gnat.com>
74
75 * stabsread.c (read_type): Save a reference to types that are defined
76 as cross references to other types.
77
77f091dd
RM
782003-12-02 Roland McGrath <roland@redhat.com>
79
80 * thread-db.c (enable_thread_event): Change return type to
81 td_err_e. Return TD_OK or error code.
82 (enable_thread_event_reporting): Update callers.
83
59659be2
ILT
842003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
85
86 * NEWS: Mention new C++ demangler code.
87
56d0d96a
AC
882003-12-03 Andrew Cagney <cagney@redhat.com>
89
90 * ppc-linux-nat.c (store_register, fetch_register): Convert
91 between ptrace and regcache's wordsize.
92 (ppc_register_u_addr): Use the ptrace wordsize.
93
251a3ae3
KB
942003-12-02 Kevin Buettner <kevinb@redhat.com>
95
96 * frv-tdep.c (frv_gdbarch_init): Add case for fr550.
97
188dd5d6
DJ
982003-12-02 Daniel Jacobowitz <drow@mvista.com>
99
100 * dwarf2read.c (dwarf_info_offset, dwarf_abbrev_offset)
101 (dwarf_line_offset, dwarf_pubnames_offset, dwarf_aranges_offset)
102 (dwarf_loc_offset, dwarf_macinfo_offset, dwarf_str_offset)
103 (dwarf_ranges_offset, dwarf_frame_offset, dwarf_eh_frame_offset):
104 Delete.
105 (dwarf2_read_section): Remove offset and size arguments. Use
106 bfd_get_section_size_before_reloc and sectp->filepos.
107 (dwarf2_has_info): Clear section variables instead of offsets.
108 (dwarf2_locate_sections): Don't initialize the deleted variables.
109 (dwarf2_build_psymtabs): Update calls to dwarf2_read_section.
110 (dwarf2_build_psymtabs_easy): Likewise.
111 * dwarf2-frame.c (dwarf_frame_offset, dwarf_frame_size)
112 (dwarf_eh_frame_offset, dwarf_eh_frame_size): Remove extern
113 declarations.
114 (dwarf2_read_section): Update prototype.
115 (dwarf2_build_frame_info): Update calls to dwarf2_read_section.
116 Use bfd_get_section_size_before_reloc instead of global size
117 variables.
118
013be872
MC
1192003-12-01 Michael Chastain <mec.gnu@mindspring.com>
120
121 * dwarfread.c: Update documentation on the state of dwarf-1.
122
5994185b
AC
1232003-12-01 Andrew Cagney <cagney@redhat.com>
124
0748d941
AC
125 Obsolete old MIPS SVr3 and SVr4 systems.
126 * NEWS: Mention obsoleted systems.
127 * configure.tgt: Mark mips*-*-sysv4* as obsolete.
128 * configure.host: Mark mips-dec-*, mips-little-*, mips-sony-*,
129 mips-*-sysv4*, mips-*-sysv*, mips-*-riscos* and mips-*-mach3* as
130 obsolete.
131 * config/mips/decstation.mh: Mark as obsolete.
132 * config/mips/littlemips.mh: Mark as obsolete.
133 * config/mips/nm-mips.h: Mark as obsolete.
134 * config/mips/xm-mips.h: Mark as obsolete.
135 * config/mips/news-mips.mh: Mark as obsolete.
136 * config/mips/nm-news-mips.h: Mark as obsolete.
137 * config/mips/riscos.mh: Mark as obsolete.
138 * config/mips/nm-riscos.h: Mark as obsolete.
139 * config/mips/xm-riscos.h: Mark as obsolete.
140 * config/mips/mipsv4.mt: Mark as obsolete.
141 * config/mips/tm-mipsv4.h: Mark as obsolete.
142 * config/mips/xm-mipsv4.h: Mark as obsolete.
143
5994185b
AC
144 Obsolete old m68k systems.
145 * configure.host: Mark m68*-sun-*, m68*-sun-sunos4*,
146 m68*-sun-sunos3*, m68*-motorola-*, m68*-*-sysv4*, m68*-*-lynxos*,
147 m68*-bull*-sysv*, m68*-att-*, m680[01]0-sun-sunos4*, and
148 m680[01]0-sun-sunos3* as obsolete.
149 * configure.tgt: Mark m68*-*-lynxos*, m68*-*-sunos3*,
150 m68*-*-sunos4*, m68*-*-sysv4*, m68000-*-sunos3*, m68000-*-sunos4*,
151 m68*-bull-sysv*, m68*-att-*, and m68*-motorola-*, as obsolete.
152 * config/m68k/sun3os4.mh: Mark file obsolete.
153 * config/m68k/xm-sun3os4.h: Mark file obsolete.
154 * config/m68k/sun3os3.mh: Mark file obsolete.
155 * config/m68k/nm-sun3.h: Mark file obsolete.
156 * config/m68k/xm-sun3.h: Mark file obsolete.
157 * config/m68k/sun2os4.mh: Mark file obsolete.
158 * config/m68k/sun2os3.mh: Mark file obsolete.
159 * config/m68k/nm-sun2.h: Mark file obsolete.
160 * config/m68k/xm-sun2.h: Mark file obsolete.
161 * config/m68k/m68kv4.mh: Mark file obsolete.
162 * config/m68k/nm-sysv4.h: Mark file obsolete.
163 * config/m68k/xm-m68kv4.h: Mark file obsolete.
164 * config/m68k/m68klynx.mh: Mark file obsolete.
165 * config/m68k/nm-m68klynx.h: Mark file obsolete.
166 * config/m68k/dpx2.mh: Mark file obsolete.
167 * config/m68k/xm-dpx2.h: Mark file obsolete.
168 * config/m68k/nm-dpx2.h: Mark file obsolete.
169 * config/m68k/delta68.mh: Mark file obsolete.
170 * config/m68k/xm-delta68.h: Mark file obsolete.
171 * config/m68k/nm-delta68.h: Mark file obsolete.
172 * config/m68k/3b1.mh: Mark file obsolete.
173 * config/m68k/xm-3b1.h: Mark file obsolete.
174 * config/m68k/sun3os4.mt: Mark file obsolete.
175 * config/m68k/tm-sun3os4.h: Mark file obsolete.
176 * config/m68k/sun3os3.mt: Mark file obsolete.
177 * config/m68k/tm-sun3.h: Mark file obsolete.
178 * config/m68k/sun2os4.mt: Mark file obsolete.
179 * config/m68k/tm-sun2os4.h: Mark file obsolete.
180 * config/m68k/sun2os3.mt: Mark file obsolete.
181 * config/m68k/tm-sun2.h: Mark file obsolete.
182 * config/m68k/m68kv4.mt: Mark file obsolete.
183 * config/m68k/tm-m68kv4.h: Mark file obsolete.
184 * config/m68k/m68klynx.mt: Mark file obsolete.
185 * config/m68k/tm-m68klynx.h: Mark file obsolete.
186 * config/m68k/dpx2.mt: Mark file obsolete.
187 * config/m68k/tm-dpx2.h: Mark file obsolete.
188 * config/m68k/delta68.mt: Mark file obsolete.
189 * config/m68k/tm-delta68.h: Mark file obsolete.
190 * config/m68k/3b1.mt: Mark file obsolete.
191 * config/m68k/tm-3b1.h: Mark file obsolete.
192
720aa428
MK
1932003-11-29 Mark Kettenis <kettenis@gnu.org>
194
195 * x86-64-tdep.c (MAX_CLASSES): Remove macro.
196 (x86_64_reg_class): Remove enum.
197 (merge_classes, classify_argument, examine_argument): Remove
198 functions.
199 (INT_REGS, SSE_REGS): Remove macros.
200 (x86_64_push_arguments): Remove function.
201 (amd64_push_arguments): New function.
202 (x86_64_push_dummy_call): Call amd64_push_arguments instead of
203 x86_64_push_arguments.
204
35883a3f
MK
2052003-11-28 Mark Kettenis <kettenis@gnu.org>
206
207 * x86-64-tdep.c (x86_64_frame_cache): Don't bail out if %rbp is
208 zero. Reorganize code a bit.
209
597684c5
MK
2102003-11-27 Mark Kettenis <kettenis@gnu.org>
211
3e74aeed
MK
212 * dwarf2-frame.c: Fix another comment.
213
efb1c01c
MK
214 * x86-64-tdep.c (RET_INT_REGS, RET_SSE_REGS): Remove defines.
215 (x86_64_use_struct_convention, x86_64_extract_return_value,
216 x86_64_store_return_value): Remove.
217 (amd64_reg_class): New enum.
218 (amd64_merge_classes, amd64_classify_aggregate, amd64_classify,
219 amd64_return_value): New functions.
220 (x86_64_init_abi): Don't set extract_return_value,
221 store_return_value and use_struct_convention. Set return_value to
222 amd64_return_value.
223 * i387-tdep.h (i387_return_value): New prototype.
224 * i387-tdep.c (i387_return_value): New function.
225
e4e9607c
MK
226 * dwarf2-frame.c: Fix some comments and whitespace problems.
227
13739f4d
MK
228 * i386nbsd-tdep.c: Don't include "gdbtypes.h". Include
229 "gdb_assert.h" and "gdb_string.h".
230 (i386nbsd_r_reg_offset): Rename from regmap.
231 (SIZEOF_STRUCT_REG): Remove.
232 (i386nbsd_supply_reg, fetch_core_registers,
233 fetch_elfcore_registers, i386nbsd_core_fns, i386nbsd_elfcore_fns):
234 Remove.
235 (i386nbsd_aout_supply_regset,
236 i386nbsd_aout_regset_from_core_section): New functions.
237 (i386nbsd_sc_reg_offset): Don't explicitly specify size of array.
238 (i386nbsd_init_abi): Initialize TDEP->gregset_reg_offset,
239 TDEP->gregset_num_regs amd sizeof_gregset. Use ARRAY_SIZE to
240 initialize TDEP->sc_num_regs.
241 (i386nbsdaout_init_abi): New function.
242 (i386nbsdelf_init_abi): Remove initialization of
243 TDEP->num_xmm_regs. Don't set num_regs here.
244 (_initialize_i386nbsd_tdep): Don't call add_core_fns. Use
245 i386nbsd_aout_init to register NetBSD a.out OS/ABI.
246
597684c5
MK
247 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use
248 .note.netbsdcore.procinfo section to recognize NetBSD core files.
249
37e79b6b
MC
2502003-11-26 Michael Chastain <mec.gnu@mindspring.com>
251
252 * cp-abi.c: Update copyright years.
253
24557e30
AC
2542003-11-25 Andrew Cagney <cagney@redhat.com>
255
256 * thread-db.c (enable_thread_event): New function. Ensure that BP
257 is a code address.
258 (enable_thread_event_reporting): Use enable_thread_event.
77f091dd 259
78c63a3b
MS
2602003-11-25 Michael Snyder <msnyder@redhat.com>
261
262 * mips-tdep.c (mips_o64_extract_return_value): Correct for
263 NUM_REGS (see changes 2003-06-21).
264 (mips_eabi_extract_return_value): Ditto.
265
aff6338a
AC
2662003-11-25 Andrew Cagney <cagney@redhat.com>
267
268 * infrun.c: Don't include "exec.h".
269 (handle_inferior_event): Pass current_target, instead of exec_ops,
270 to SOLIB_ADD. Add comments.
271 * Makefile.in (infrun.o): Update dependencies.
272
9e08b29b
DJ
2732003-11-24 Daniel Jacobowitz <drow@mvista.com>
274
275 * NEWS: Mention improved location expression support.
276
603942cc
AC
2772003-11-23 Andrew Cagney <cagney@redhat.com>
278
279 * Makefile.in (infrun.o): Update dependencies.
280 * infrun.c: Include "exec.h".
281 (handle_inferior_event): Pass exec_ops to SOLIB_ADD.
282
66c57289
AC
2832003-11-23 Andrew Cagney <cagney@redhat.com>
284
dd3ecc14
AC
285 * frame.c (frame_unwind_signed_register): Delete function.
286 * frame.h (frame_unwind_register_signed): Delete declaration.
287 * mips-tdep.c (mips_frame_saved_pc): Use frame_unwind_register_signed.
288
eec1a560
AC
289 * arch-utils.h (generic_cannot_extract_struct_value_address):
290 Delete declaration.
291
cb137aa5
AC
292 * defs.h (DEPRECATED_STREQN): Rename STREQN.
293 (DEPRECATED_STREQ): Rename STREQ.
294 * ada-exp.y, ada-lang.c, ada-lex.l, coffread.c: Update.
295 * config/mips/tm-irix5.h, config/mips/tm-irix6.h: Update.
296 * config/mips/tm-mipsv4.h, config/sparc/tm-sun4sol2.h: Update.
297 * dbxread.c, dwarf2read.c, dwarfread.c, environ.c: Update.
298 * eval.c, exec.c, f-lang.c, hppa-tdep.c, hpread.c: Update.
299 * jv-exp.y, language.c, m2-exp.y, mcore-rom.c: Update.
300 * mdebugread.c, mipsread.c, objc-exp.y, objfiles.c: Update.
301 * p-exp.y, p-typeprint.c, p-valprint.c, rs6000-nat.c: Update.
302 * source.c, sparc-tdep.c, stack.c, target.c: Update.
66c57289 303
cb137aa5 304 * symfile.c (symbol_file_command): Replace STREQ with strcmp.
66c57289
AC
305 * elfread.c (elf_symtab_read): Delete STREQ from comment.
306
29dfb2ac
AC
3072003-11-22 Andrew Cagney <cagney@redhat.com>
308
213cc0ad
AC
309 * frame.c (deprecated_frame_xmalloc): Delete function.
310 (deprecated_set_frame_extra_info_hack): Delete function.
311 (deprecated_set_frame_saved_regs_hack): Delete function.
312 * frame.h (deprecated_frame_xmalloc): Delete declaration.
313 (deprecated_set_frame_extra_info_hack): Delete declaration.
314 (deprecated_set_frame_saved_regs_hack): Delete declaration.
315 * mcore-tdep.c (analyze_dummy_frame): Instead of
316 deprecated_frame_xmalloc, deprecated_set_frame_saved_regs_hack,
317 and deprecated_set_frame_extra_info_hack use
318 deprecated_frame_xmalloc_with_cleanup.
319 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
320 * mips-tdep.c (mips_init_extra_frame_info): Delete call to
321 deprecated_set_frame_saved_regs_hack.
322
35bb18ac
AC
323 * mips-tdep.c (mips_frame_chain): Delete call to
324 deprecated_inside_entry_file.
325
38a7ce4b
AC
326 * frame.h (deprecated_set_frame_next_hack): Delete declaration.
327 (deprecated_set_frame_prev_hack): Delete declaration.
328 * frame.c (deprecated_set_frame_next_hack): Delete function.
329 (deprecated_set_frame_prev_hack): Delete function.
330 * mcore-tdep.c (analyze_dummy_frame): Delete calls to
331 "deprecated_set_frame_next_hack" and
332 "deprecated_set_frame_prev_hack".
333 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
334
47ebcfbe
AC
335 * mips-tdep.c (mips_register_convertible): Delete function.
336 (mips_register_convert_to_virtual): Delete function.
337 (mips_register_convert_to_raw): Delete function.
338 (mips_gdbarch_init): Do not set "deprecated_register_convertible",
339 "deprecated_register_convert_to_virtual", or
340 "deprecated_register_convert_to_raw".
341 (mips_pseudo_register_write, mips_pseudo_register_read): Handle
342 32/64 cooked to raw register conversions.
343
2a9264f1 344 * frame.c (deprecated_get_frame_context): Delete function.
38a7ce4b 345 (deprecated_set_frame_context): Delete function.
2a9264f1
AC
346 (struct frame_info): Delete member "context".
347 * frame.h (deprecated_get_frame_context): Delete declaration.
348 (deprecated_set_frame_context): Delete declaration.
349
7af6341f
AC
350 * procfs.c (procfs_wait): Delete FAULTED_USE_SIGINFO comment.
351 * config/sparc/tm-sun4sol2.h (FAULTED_USE_SIGINFO): Delete macro.
352 * config/i386/tm-i386sol2.h (FAULTED_USE_SIGINFO): Delete macro.
353 * config/alpha/nm-osf2.h (FAULTED_USE_SIGINFO): Delete macro.
354
10a08821
AC
355 * mips-tdep.c (SIGFRAME_REG_SIZE): Delete macro.
356 (mips_find_saved_regs): Replace SIGFRAME_REG_SIZE with
357 mips_regsize.
358 (mips_dump_tdep): Do not print SIGFRAME_REG_SIZE.
359 * config/mips/tm-irix6.h (SIGFRAME_REG_SIZE): Delete macro.
360 * config/mips/tm-irix5.h: Update copyright.
361 (SIGFRAME_REG_SIZE): Delete macro.
362
00d33403
AC
363 * hppa-tdep.c (hppa_value_returned_from_stack): Delete function.
364 * config/pa/tm-hppa.h (hppa_value_returned_from_stack): Delete
365 declaration.
366 (DEPRECATED_VALUE_RETURNED_FROM_STACK): Delete macro.
367 * infcall.c (call_function_by_hand): Delete #ifdef
368 DEPRECATED_VALUE_RETURNED_FROM_STACK code.
369 * infcmd.c (print_return_value): Ditto.
370
74da7425
AC
371 * mips-tdep.c (skip_prologue_using_sal): New function.
372 (mips32_skip_prologue, mips16_skip_prologue): Use
373 skip_prologue_using_sal to get an upper bound on the search.
374
369864a4
AC
375 * config/powerpc/tm-linux.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete
376 #if 0'ed macro.
377 * infrun.c (step_into_function): Delete #ifdef
378 PROLOGUE_FIRSTLINE_OVERLAP code.
379 * symtab.c (find_function_start_sal): Ditto.
380
a5a12285
AC
381 * remote-rdp.c: Update copyright.
382 (rdp_init): #if 0 references to "target_byte_order".
383
29dfb2ac
AC
384 * mips-tdep.c (mips_o32_store_return_value): Delete function.
385 (mips_o32_return_value): Replace mips_o32_xfer_return_value.
386 (mips_o32_extract_return_value): Delete function.
387 (mips_n32n64_return_value): Replace mips_n32n64_xfer_return_value.
388 (mips_n32n64_extract_return_value): Delete function.
389 (mips_n32n64_store_return_value): Delete function.
390 (mips_gdbarch_init): For o32 and n32n64, set "return_value"
391 instead of "store_return_value", "extract_return_value", and
392 "use_struct_convention".
393 (mips_n32n64_use_struct_convention): Delete function.
394
3a3da38c
KB
3952003-11-21 Kevin Buettner <kevinb@redhat.com>
396
397 * frv-tdep.c (frv_frame_this_id): Eliminate call to
398 inside_entry_func().
399
c5e656c1
MK
4002003-11-20 Mark Kettenis <kettenis@gnu.org>
401
402 * i386-tdep.c (i386_extract_return_value,
403 i386_store_return_value): Add gdbarch argument. Use it instead of
404 determining it from REGCACHE. Remove recursive call for
405 structures with a single member.
406 (i386_use_struct_convention): Remove.
407 (i386_reg_struct_return_p): New function.
408 (i386_return_value): New function.
409 (i386_gdbarch_init): Set return_value, don't set
410 extract_return_value, store_return_value and
411 use_struct_convention.
412 * x86-64-tdep.c (x86_64_init_abi): Set return_value to NULL.
413
515cc92e
JB
4142003-11-20 Jim Blandy <jimb@redhat.com>
415
416 * osabi.c (_initialize_gdb_osabi): Don't return before registering
417 the 'set osabi' and 'show osabi' commands.
418
3f1d7f16
MK
4192003-11-19 Mark Kettenis <kettenis@gnu.org>
420
421 * frame.c (get_prev_frame): Use result from
422 get_frame_address_in_block instead of get_frame_pc as argument to
423 inside_main_func. Fixes PR backtrace/1435.
424
667e784f
AC
4252003-11-19 Andrew Cagney <cagney@redhat.com>
426
427 * stack.c (return_command): Handle "void", "legacy" and "unknown
428 location" return values separatly.
429 * values.c (using_struct_return): Return 0 for a "void" return
430 type. Mention "register_value_being_returned".
431 (register_value_being_returned): Mention "using_struct_return".
432
4cecd739
DJ
4332003-11-19 Daniel Jacobowitz <drow@mvista.com>
434
435 * dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
436 (frame_base_offset): Delete.
437 (read_func_scope): Delete call to decode_locdesc.
438 (decode_locdesc): Update comments. Don't set the removed variables.
439 Complain for DW_OP_reg* not at the end. Remove DW_OP_breg* and
440 DW_OP_fbreg support.
441
6b992462
DJ
4422003-11-18 Daniel Jacobowitz <drow@mvista.com>
443
444 * dwarf2read.c (optimized_out, islocal): Remove.
445 (decode_locdesc): Update comments. Don't set optimized_out
446 or islocal.
447
968d1cb4
JJ
4482003-11-17 Jeff Johnston <jjohnstn@redhat.com>
449 David Mosberger <davidm@hpl.hp.com>
450
451 * ia64-tdep.c: Include elf.h.
77f091dd 452 [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and
968d1cb4
JJ
453 libunwind-ia64.h.
454 (ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
455 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
456 (ia64_is_fpreg, ia64_access_reg): Ditto.
457 (ia64_access_fpreg, ia64_access_mem): Ditto.
458 (get_kernel_table): Ditto.
459 (ia64_find_unwind_table): Ditto.
460 (ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
461 (ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
462 (ia64_libunwind_frame_prev_register): Ditto.
463 (ia64_libunwind_frame_sniffer): Ditto.
464 (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
77f091dd
RM
465 sniffer. Register libunwind functions needed by generic
466 libunwind frame code using libunwind_frame_set_descr().
968d1cb4 467
d29caefc
DJ
4682003-11-16 Daniel Jacobowitz <drow@mvista.com>
469
470 * breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
471 bp_shlib_disabled breakpoint if there is a shared library mapped
472 at its expected address.
473
691c0433
AC
4742003-11-16 Andrew Cagney <cagney@redhat.com>
475
96cb1c2f
AC
476 * configure.tgt: Delete mips*tx39*-elf*.
477 * config/mips/tm-tx39.h: Delete file.
478 * config/mips/tx39.mt: Delete file.
479 * config/mips/tx39.mt: Delete file.
480
691c0433
AC
481 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
482 * remote-mips.c (common_open): Instead of
483 "mips_read_register_type" and "mips_set_processor_type_command"
484 call "deprecated_mips_set_processor_regs_hack".
485 * config/mips/tm-mips.h (mips_read_processor_type): Delete
486 declaration.
487 (mips_set_processor_type_command): Delete declaration.
488 * mips-tdep.c (mips_gdbarch_init): Update comment.
489 (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
490 (mips_set_processor_type): Delete function.
491 (NUM_MIPS_PROCESSOR_REGS): Define.
492 (mips_show_processor_type_command): Delete function.
493 (mips_set_processor_type_command): Delete function.
494 (tmp_mips_processor_type): Delete.
495 (mips_processor_type): Delete.
496 (mips_processor_type_table): Delete.
497 (mips_r3051_reg_names): Delete.
498 (mips_r3081_reg_names): Delete.
499 (mips_lsi33k_reg_names): Delete.
500 (mips_processor_reg_names): Delete.
501 (mips_read_processor_type): Delete function.
502 (deprecated_mips_set_processor_regs_hack): New function.
503 (struct gdbarch_tdep): Add member "mips_processor_reg_names".
504 (mips_register_name): Get the processor names from the tdep.
505 (mips_tx39_reg_names): New array.
506 (mips_generic_reg_names): Wire to a standard set of names.
77f091dd 507 (mips_gdbarch_init): Set "mips_processor_reg_names".
691c0433
AC
508 * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
509 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
510 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
511
56cea623
AC
5122003-11-16 Andrew Cagney <cagney@redhat.com>
513
514 * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
515 (mips_fpa0_regnum, mips_regnum): New function.
516 (mips_gdbarch_init): Fill in the "regnum" fields.
517 * mips-tdep.h (struct mips_regnum): Define.
518 (mips_regnum): Declare.
519 * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
520 (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
521 (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
522 (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
523 * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
524 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
525 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
526 * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
527 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
528 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
529 * remote-mips.c: Include "mips-tdep.h". Update.
530 * mipsnbsd-tdep.c: Update.
531 * mipsv4-nat.c: Update.
532 * mips-tdep.c: Update.
533 * mips-nat.c: Update.
534 * mips-linux-tdep.c: Update.
535 * mips-linux-nat.c: Update.
536 * irix5-nat.c: Update.
537 * dve3900-rom.c: Include "mips-tdep.h". Update.
538 (ignore_packet): Supress GCC warning.
539 * config/mips/nm-riscos.h: Update.
540
719ec221
AC
5412003-11-16 Andrew Cagney <cagney@redhat.com>
542
543 * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
544 register_size.
545 (mips_register_raw_size): Delete function.
546 (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
547 (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
548 Check and set "mips64_transfers_32bit_regs_p".
549 (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
550 (mips_register_convertible): Check the architecture's
551 "mips64_transfers_32bit_regs_p".
552 (set_mips64_transfers_32bit_regs): New function.
553 (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
554 "set remote-mips64-transfers-32bit-regs" command. Specify
555 set_mips64_transfers_32bit_regs as the set function.
56cea623 556 * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
719ec221 557
20187ed5
MK
5582003-11-16 Mark Kettenis <kettenis@gnu.org>
559
560 * i386-tdep.h (i386_supply_gregset): Provide prototype.
561 * i386-tdep.c (i386_supply_gregset): Make public.
562
6771c427
AC
5632003-11-16 Andrew Cagney <cagney@redhat.com>
564
565 * mips-tdep.c (mips_register_byte): Delete function.
566 (mips_gdbarch_init): Do not set "deprecated_register_byte".
567 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
568 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
569 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
570
c8048956
MK
5712003-11-16 Mark Kettenis <kettenis@gnu.org>
572
573 * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
574
cc8a868a
AC
5752003-11-16 Andrew Cagney <cagney@redhat.com>
576
577 * config/mips/linux64.mt: Delete file.
578 * config/mips/tm-linux64.h: Delete file.
579 * config/mips/tm-mips64.h: Delete file.
580 * config/mips/embed64.mt: Delete file.
581 * config/djgpp/fnchange.lst: Update.
582 * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
583 mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
584 * config/mips/tm-irix6.h: Update copyright. Include
585 "mips/tm-mips.h" instead of "mips/tm-mips64.h".
586 * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
587 "OP_LDGPR".
588
5ef80fb0
AC
5892003-11-15 Andrew Cagney <cagney@redhat.com>
590
591 * mips-tdep.c (mips_register_type): Simplify. Eliminate reference
592 to MIPS_REGISTER_TYPE. Make integer registers signed. Make IRIX
593 n32 registers 64 bit.
594 (mips_register_raw_size, mips_register_byte): For pseudo
595 registers, use the register's pseudo size and not the
596 corresponding raw register's size.
597 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
598 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
599 * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
600 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
601
4246e332
AC
6022003-11-15 Andrew Cagney <cagney@redhat.com>
603
8fa9cfa1
AC
604 * mips-tdep.c (struct gdbarch_tdep): Delete member
605 gdb_target_is_mips64.
606 (GDB_TARGET_IS_MIPS64): Delete macro.
607 (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
608 (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
609 (mips_addr_bits_remove): Simplify.
610
c73e8f27
AC
611 * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
612 register_size.
613
4246e332
AC
614 Replace MIPS_REGSIZE with mips_regsize.
615 * mips-tdep.c (mips_regsize): New function.
616 * mips-tdep.h (mips_regsize): Declare.
617 * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
618 (SIZEOF_STRUCT_REG): Update.
619 * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
620 (mipsnbsd_fill_reg): Update.
621 (mipsnbsd_supply_fpreg): Update.
622 (mipsnbsd_fill_fpreg): Update.
623 (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
624 * mips-tdep.c (mips_register_raw_size): Update.
625 (mips_register_type): Update.
626 (SIGFRAME_BASE): Update.
627 (SIGFRAME_PC_OFF): Update.
628 (SIGFRAME_REGSAVE_OFF): Update.
629 (SIGFRAME_FPREGSAVE_OFF): Update.
630 (SIGFRAME_REG_SIZE): Update.
631 (mips32_heuristic_proc_desc): Update.
632 (print_gp_register_row): Update.
633 (mips_dump_tdep): Do not print MIPS_REGSIZE.
634 * irix5-nat.c (supply_gregset): Update.
635 (fetch_core_registers): Update.
636 * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
637 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
638 * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
639 (MIPS_REGISTER_BYTE): Update.
640 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
641
5e044b1e
AC
6422003-11-15 Andrew Cagney <cagney@redhat.com>
643
644 * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
645 USE_REGISTER_NOT_ARG.
646 * stabsread.c (define_symbol): Update.
647
3a16a68c
AC
6482003-11-15 Andrew Cagney <cagney@redhat.com>
649
650 * bcache.h (deprecated_bcache): Declare.
651 (bcache): Make returned buffer constant.
652 * bcache.c (deprecated_bcache): New function.
653 (bcache_data): New function.
654 (bcache): Call bcache data.
655 * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
656 (add_psymbol_with_dem_name_to_list): Ditto.
657
bb41a796
MK
6582003-11-15 Mark Kettenis <kettenis@gnu.org>
659
660 * glibc-tdep.h (struct gdbarch): Declare opaque.
661 (glibc_skip_solib_resolver): Adjust prototype.
662 * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
663 * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
664 (arm_linux_init_abi): Set skip_solib_resolver.
665 * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
666 (i386_linux_init_abi): Set skip_solib_resolver.
667 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
668 (arm_linux_skip_solib_resolver): Remove prototype.
669 * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
670 (i386_linux_skip_solib_resolver): Remove prototype.
671
4c8c40e6
MK
6722003-11-14 Mark Kettenis <kettenis@gnu.org>
673
674 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
675 function.
676 * gdbarch.c, gdbarch.h: Regenerate.
677 * infrun.c (handle_inferior_event): Call
678 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
679 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
680 definition.
681 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
682 prototype.
683
0e5d83e3
JJ
6842003-11-14 Jeff Johnston <jjohnstn@redhat.com>
685
686 * libunwind-frame.c: New file.
687 * libunwind-frame.h: New file.
688 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
689 * configure.in: Add --with-libunwind option support. Define
77f091dd 690 HAVE_LIBUNWIND if libunwind support selected / defaulted.
0e5d83e3
JJ
691 Also check for libunwind.h and libunwind-ia64.h headers.
692 * configure: Regenerated.
693 * Makefile.in: Add support for libunwind-frame.o.
694 * config.in: Regenerated.
695
287a334e 6962003-11-14 Jeff Johnston <jjohnstn@redhat.com>
77f091dd 697
287a334e
JJ
698 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
699 set up the ia64 linux native target method for getting the kernel
700 unwind table.
701 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
702 * inftarg.c (child_xfer_partial): Enable section of code to
703 handle TARGET_OBJECT_UNWIND_TABLE.
704 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
705
140be7b8
ILT
7062003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
707
708 * config/arm/nbsd.mt (TM_FILE): Define.
709 * config/arm/tm-nbsd.h: New file.
710
0a90bcdd
AC
7112003-11-14 Andrew Cagney <cagney@redhat.com>
712
713 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
714 * ppc-sysv-tdep.c: Include "objfiles.h".
715 (ppc64_sysv_abi_push_dummy_call): Provide the
716 the FN's objfile when looking for the descriptor.
9ea97f2a
AC
717
718 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
719 "name_of_malloc" to ".malloc".
720
087f1027
MK
7212003-11-13 Mark Kettenis <kettenis@gnu.org>
722
723 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
724
3882f37a
DC
7252003-11-13 David Carlton <carlton@kealia.com>
726
727 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
728
a8cf2722
AC
7292003-11-13 Andrew Cagney <cagney@redhat.com>
730
731 * arch-utils.h (selected_architecture_name): Declare.
732 (selected_byte_order): Declare.
733 * arch-utils.c (selected_byte_order): New function.
734 (selected_architecture_name): New function.
735 (target_architecture_auto): Make static.
736 (set_architecture_string): Make static.
737 (target_byte_order): Make static.
738 (target_byte_order_auto): Make static.
739 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
740 non-multi-arch definition.
741 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
742 (target_byte_order, target_architecture): Delete declaration.
743 (target_byte_order_auto, target_architecture_auto): Ditto.
744 * gdbarch.h: Re-generate.
745 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
746 "selected_byte_order".
77f091dd 747
475b6ddd
AC
7482003-11-13 Andrew Cagney <cagney@redhat.com>
749
750 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
751
a22286a9
JB
7522003-11-13 Jim Blandy <jimb@redhat.com>
753
754 * cp-namespace.c: Doc fix.
755
7bb11558
MS
7562003-11-12 Michael Snyder <msnyder@redhat.com>
757
39add00a
MS
758 * sh64_tdep.c: Regularize some names.
759 (sh_sh64_register_name): Rename to sh64_register_name.
760 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
761 (sh_sh64_register_byte): Rename to sh64_register_byte.
77f091dd 762 (sh_sh64_build_float_register_type):
39add00a 763 Rename to sh64_build_float_register_type.
77f091dd 764 (sh_sh64_register_convert_to_virtual):
39add00a 765 Rename to sh64_register_convert_to_virtual.
77f091dd 766 (sh_sh64_register_convert_to_raw):
39add00a
MS
767 Rename to sh64_register_convert_to_raw.
768
77f091dd
RM
769 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
770 sh64_media_reg_base_num, sh64_compact_reg_base_num,
2a314ed5 771 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
77f091dd
RM
772 sh64_extract_return_value, sh64_show_media_regs,
773 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
2a314ed5 774 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
77f091dd 775 sh64_pseudo_register_read, sh64_pseudo_register_write,
2a314ed5
MS
776 sh64_do_pseudo_register, sh_compact_print_registers_info):
777 Delete unused variable 'tdep'.
778
7bb11558
MS
779 * sh64-tdep.c: Coding standard and spelling comment fixes.
780 (sh64_extract_return_value): Replace deprecated_store_floating
781 with store_typed_floating.
77f091dd 782 (sh_sh64_register_convert_to_raw): Replace
7bb11558
MS
783 deprecated_store_floating with store_typed_floating.
784 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
785 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
786 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
77f091dd 787 sh64_extract_struct_value_address, sh64_pop_frame,
7bb11558 788 sh64_extract_return_value, sh64_store_return_value,
77f091dd 789 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
7bb11558
MS
790 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
791 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
792 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
793 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
794 deprecated_register_virtual_type, deprecated_register_raw_size,
77f091dd 795 deprecated_max_register_raw_size, or
7bb11558
MS
796 deprecated_max_register_virtual_size. Instead, just set
797 gdbarch_register_type.
39add00a
MS
798 (sh_sh64_register_raw_size): Delete.
799 (sh_sh64_register_virtual_size): Delete.
7bb11558 800
e7c27a73
DJ
8012003-11-12 Daniel Jacobowitz <drow@mvista.com>
802
803 * dwarf2read.c (struct dwarf2_cu): New type.
804
805 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
806 dwarf2_cu structure to pass down.
807
808 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
809 (add_partial_enumeration, locate_pdi_sibling, process_die)
810 (read_file_scope, read_func_scope)
811 (read_lexical_block_scope, dwarf2_get_pc_bounds)
812 (dwarf2_add_field, dwarf2_attach_fields_to_type)
813 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
814 (read_structure_scope, read_enumeration, read_array_type)
815 (read_common_block, read_namespace, read_tag_pointer_type)
816 (read_tag_ptr_to_member_type, read_tag_reference_type)
817 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
818 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
819 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
820 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
821 (read_full_die. read_attribute_value, read_attribute)
822 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
823 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
824 (die_containing_type, type_at_offset, tag_type_to_type)
825 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
826 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
827
1640b821
DJ
8282003-11-12 Daniel Jacobowitz <drow@mvista.com>
829
830 PR breakpoints/1450
831 * breakpoint.c (insert_bp_location): Fix a logic error by returning
832 0 after a catchpoint fails.
833
d7891507
MC
8342003-11-11 Michael Chastain <mec.gnu@mindspring.com>
835
836 * mips-tdep.c (msymbol_size): Delete.
837
f594e5e9
MC
8382003-11-07 Michael Chastain <mec@shout.net>
839
840 * symtab.h (struct minimal_symbol): Add size.
841 * dbxread.c: Use it.
842 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
843 Rename to record_minimal_symbol.
844 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
845 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
846 (install_minimal_symbols): Ditto.
847 * objfiles.c (terminate_minimal_symbol_table): Ditto.
848 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
849 * m68hc11-tdep.c: Ditto.
850 * mips-tdep.c: Ditto.
851 * sh64-tdep.c: Ditto.
852
68e39e73
MC
8532003-11-10 Michael Chastain <mec.gnu@mindspring.com>
854
855 * MAINTAINERS: Change my e-mail address.
856
b60eb90d
AC
8572003-11-10 Andrew Cagney <cagney@redhat.com>
858
963e2bb7
AC
859 * gdbarch.sh (return_value): Replace "inval" and "outval" with
860 "readbuf" and "writebuf".
861 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
862 * d10v-tdep.c (d10v_return_value): Ditto.
863 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
864 (ppc_sysv_abi_broken_return_value): Ditto.
865 (ppc64_sysv_abi_return_value): Ditto.
866 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
867 (ppc_sysv_abi_return_value): Ditto.
868 (ppc_sysv_abi_broken_return_value): Ditto.
869 (ppc64_sysv_abi_return_value): Ditto.
870 * values.c (register_value_being_returned): Update call.
871 * stack.c (return_command): Update call.
872 * gdbarch.h, gdbarch.c: Re-generate.
873
8aa91c1e
AC
874 * target.h (struct target_ops): Order xfer buffer parameters "read
875 write" not "write read".
876 * bfd-target.c (target_bfd_xfer_partial): Update.
877 * remote.c (remote_xfer_partial): Update.
878 * inftarg.c (child_xfer_partial): Update.
879 * target.c (default_xfer_partial): Update.
880 (target_read_partial, target_write_partial): Update.
881 (debug_to_xfer_partial): Update.
882
100bcc3f
AC
883 * arch-utils.h, arch-utils.c: Fix typo in comment.
884
b60eb90d
AC
885 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
886 (gdbarch_from_bfd): Call gdbarch_find_by_info.
1b3164d8
AC
887 (set_gdbarch_from_file): Call
888 "deprecated_current_gdbarch_select_hack".
b60eb90d 889
bf922ad9
AC
8902003-11-09 Andrew Cagney <cagney@redhat.com>
891
ebdba546
AC
892 * arch-utils.c (gdbarch_update_p): New function.
893 * gdbarch.sh (gdbarch_update_p): Delete function.
894 (find_arch_by_info, gdbarch_find_by_info): New functions.
3f030793 895 (deprecated_current_gdbarch_select_hack): New function.
ebdba546
AC
896 * gdbarch.c: Re-generate.
897
7de2341d
AC
898 * gdbarch.sh (clear_gdbarch_swap): Delete function.
899 (swapout_gdbarch_swap): Delete function.
900 (swapin_gdbarch_swap): Delete function.
901 (init_gdbarch_swap): Delete function.
902 (initialize_non_multiarch): Delete function.
903 (current_gdbarch_swap_in_hack): New function.
904 (current_gdbarch_swap_out_hack): New function.
905 (current_gdbarch_swap_init_hack): New function.
906 * gdbarch.c: Re-generate.
907
db446970
AC
908 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
909 parameter to "current_gdbarch". Add comment explaining why.
910 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
911 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
912 * gdbarch.c: Re-generate.
77f091dd 913
341e3d11
AC
914 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
915 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
916 * config/s390/xm-linux.h: Delete file.
917 * config/m88k/xm-delta88v4.h: Delete stray.
918
bf922ad9
AC
919 * Makefile.in (arch-utils.o): Update dependencies.
920 * arch-utils.c: Include "osabi.h".
921 (gdbarch_info_fill): New function.
922 * arch-utils.h (gdbarch_info_fill): Declare.
923 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
924 * gdbarch.c: Re-generate.
925
a3640c75
MK
9262003-11-09 Mark Kettenis <kettenis@gnu.org>
927 David S. Miller <davem@redhat.com>
928
929 * glibc-tdep.c, glibc-tdep.h: New files.
930 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
931 * config/i386/linux.mt (TDEPFILES): Likewise.
932 * i386-linux-tdep.c (glibc-tdep.h): Include.
933 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
934 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
935 * arm-linux-tdep.c (glibc-tdep.h): Include.
936 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
937 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
938 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
939 (glibc_tdep_h): Define.
940 (glibc-tdep.o): Add dependencies.
941 (arm-linux-tdep.o): Update dependencies.
942 (i386-linux-tdep.o): Likewise.
943
e60e0ab2
AC
9442003-11-09 Andrew Cagney <cagney@redhat.com>
945
946 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
947 * config/mips/nm-irix6.h: Delete file.
948 * config/mips/nm-linux.h: Update copyright.
949 (MIPS_GNULINUX_TARGET): Delete macro.
950 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
951 * config/mips/xm-irix6.h: Delete file.
952 * config/mips/linux.mh (XM_FILE): Delete definition.
953 * config/mips/xm-linux.h: Delete file.
954
181555e9
AC
9552003-11-09 Andrew Cagney <cagney@redhat.com>
956
957 * d10v-tdep.c (d10v_return_value): New function.
958 (d10v_use_struct_convention): Delete function.
959 (d10v_store_return_value): Delete function.
960 (d10v_extract_struct_value_address): Delete function.
961 (d10v_gdbarch_init): Set "return_value" instead of
962 "extract_return_value", "store_return_value",
963 "extract_struct_value_address", and "use_struct_convention".
964 (RET1_REGNUM): Delete const.
965
dea0c52f
MK
9662003-11-09 Mark Kettenis <kettenis@gnu.org>
967
968 From David S. Miller <davem@redhat.com>:
969 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
970 * gdbarch.c, gdbarch.h: Regenerated.
971 * arch-utils.c (generic_skip_solib_resolver): New function.
972 * arch-utils.h (generic_skip_solib_resolver): New prototype.
973 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
974
6314a349
AC
9752003-11-07 Andrew Cagney <cagney@redhat.com>
976
977 * top.c (print_gdb_version): Replace STREQ with strcmp.
978 * valops.c (value_struct_elt_for_reference): Ditto.
979 (value_struct_elt_for_reference): Ditto.
980 * symtab.c (gdb_mangle_name): Ditto.
981 (find_line_symtab): Ditto.
982 * symmisc.c (maintenance_print_symbols): Ditto.
983 * symfile.c (symbol_file_command): Ditto.
984 * stabsread.c (define_symbol, read_type): Ditto.
985 (cleanup_undefined_types, scan_file_globals): Ditto.
986 * solib.c (solib_map_sections): Ditto.
987 * solib-svr4.c (bfd_lookup_symbol): Ditto.
988 * rs6000-tdep.c (skip_prologue): Ditto.
989 * p-valprint.c (pascal_value_print): Ditto.
990 (pascal_object_is_vtbl_ptr_type): Ditto.
991 * objfiles.c (in_plt_section): Ditto.
992 * minsyms.c (lookup_minimal_symbol): Ditto.
993 (compact_minimal_symbols): Ditto.
994 (find_solib_trampoline_target): Ditto.
995 * mdebugread.c (parse_type): Ditto.
996 * language.c (set_language_command): Ditto.
997 (set_type_command, set_range_command): Ditto.
998 * f-lang.c (add_common_block): Ditto.
999 (add_common_block): Ditto.
1000 (find_first_common_named): Ditto.
1001 (patch_all_commons_by_name): Ditto.
1002 * elfread.c (elf_locate_sections): Ditto.
1003 (elf_locate_sections): Ditto.
1004 (elfstab_offset_sections): Ditto.
1005 * dwarf2read.c (dwarf2_locate_sections): Ditto.
1006 * dbxread.c (add_old_header_file): Ditto.
1007 (find_corresponding_bincl_psymtab): Ditto.
1008 (read_dbx_symtab, process_one_symbol): Ditto.
1009 * coffread.c (patch_opaque_types): Ditto.
1010 * cli/cli-decode.c (delete_cmd): Ditto.
1011 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
1012 * c-typeprint.c (c_type_print_base): Ditto.
1013 * breakpoint.c (bpstat_stop_status): Ditto.
1014 (clear_command, breakpoint_re_set_one): Ditto.
1015
49df298f
AC
10162003-11-07 Andrew Cagney <cagney@redhat.com>
1017
1018 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
1019 * bcache.c (struct bstring): Make "length" an unsigned short, add
1020 "half_hash".
1021 (struct bcache): Add "half_hash_error_count".
1022 (bcache): Compute and save the "half_hash". Compare the
1023 "half_hash" before comparing the length. Update
1024 half_hash_error_count.
1025
f168dd80
AC
10262003-11-07 Andrew Cagney <cagney@redhat.com>
1027
1028 * inftarg.c (child_xfer_partial): New function
1029 (init_child_ops): Set "to_xfer_partial".
1030
05580c65
AC
10312003-11-07 Andrew Cagney <cagney@redhat.com>
1032
1033 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
1034 set "return_value" instead of "use_struct_convention".
1035 (ppc_linux_use_struct_convention): Delete function.
1036 (ppc_linux_return_value): New function.
1037 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
1038 (ppc_sysv_abi_broken_return_value): New function.
1039 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
1040 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
1041 static.
1042 (ppc_sysv_abi_extract_return_value): Delete function.
1043 (ppc_sysv_abi_broken_extract_return_value): Delete function.
1044 (ppc_sysv_abi_store_return_value): Delete function.
1045 (ppc_sysv_abi_broken_store_return_value): Delete function.
1046 (ppc_sysv_abi_use_struct_convention): Delete function.
1047 (ppc64_sysv_abi_use_struct_convention): Delete function.
1048 (ppc64_sysv_abi_extract_return_value): Delete function.
1049 (ppc64_sysv_abi_store_return_value): Delete function.
1050 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
1051 (ppcnbsd_init_abi): Set "return_value", instead of
1052 "use_struct_convention", "extract_return_value", and
1053 "store_return_value".
1054 (ppcnbsd_use_struct_convention): Delete function.
1055 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
1056 (ppc_sysv_abi_return_value): Declare.
1057 (ppc_sysv_abi_broken_return_value): Declare.
1058 (ppc_sysv_abi_use_struct_convention): Delete.
1059 (ppc_sysv_abi_store_return_value): Delete.
1060 (ppc_sysv_abi_extract_return_value): Delete.
1061 (ppc_sysv_abi_broken_store_return_value): Delete.
1062 (ppc_sysv_abi_broken_extract_return_value): Delete.
1063 (ppc64_sysv_abi_use_struct_convention): Delete.
1064 (ppc64_sysv_abi_extract_return_value): Delete.
1065 (ppc64_sysv_abi_store_return_value): Delete.
1066 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
1067 set "return_value" instead of "extract_return_value",
1068 "store_return_value", and "use_struct_convention".
1069
1763fba4
MK
10702003-11-07 Mark Kettenis <kettenis@gnu.org>
1071
22c7ba1a
MK
1072 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
1073
1763fba4
MK
1074 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
1075 fscanf.
1076
fc07cc2d
MK
10772003-11-07 Mark Kettenis <kettenis@gnu.org>
1078
1079 * fbsd-proc.c: Fix formatting.
1080
6a748db6
KB
10812003-11-06 Kevin Buettner <kevinb@redhat.com>
1082
1083 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
1084 Define.
1085 (new_variant): Set name for iacc0_regnum.
1086 (frv_register_name): Accommodate pseudo-registers.
1087 (frv_register_type): Add case for iacc0_regnum.
1088 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
1089 (frv_gdbarch_init): Set number of pseudo registers. Establish
1090 pseudo-register read/write methods.
1091
bf896cb0
AC
10922003-11-06 Andrew Cagney <cagney@redhat.com>
1093
1094 * valops.c (destructor_name_p): Replace STREQN with strncmp.
1095 * top.c (command_line_input): Ditto.
1096 * objc-exp.y (yylex): Ditto.
1097 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
1098 * jv-exp.y (yylex): Ditto.
1099 * f-exp.y (yylex): Ditto.
1100 * event-top.c (command_line_handler): Ditto.
1101 * environ.c (get_in_environ): Ditto.
1102 (set_in_environ): Ditto.
1103 * dwarfread.c (handle_producer): Ditto.
1104 * dbxread.c (process_one_symbol): Ditto.
1105 * c-typeprint.c (c_type_print_base): Ditto.
1106 * c-exp.y (yylex): Ditto.
1107
0b603eba
AC
11082003-11-06 Andrew Cagney <cagney@redhat.com>
1109 Jeff Johnston <jjohnstn@redhat.com>
1110
1111 * target.c (add_target): Only set "to_xfer_partial" when NULL.
1112 (init_dummy_target): Set "to_xfer_partial".
1113
9cedbfec
AC
11142003-11-06 Andrew Cagney <cagney@redhat.com>
1115
1116 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
1117 REGISTER_CONVENTION.
1118
26bb91f3
DJ
11192003-11-06 Daniel Jacobowitz <drow@mvista.com>
1120
1121 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
1122 static.
1123
0bde7532
DJ
11242003-11-06 Daniel Jacobowitz <drow@mvista.com>
1125
1126 * breakpoint.c (remove_breakpoint): Take an bp_location
1127 instead of a breakpoint argument. Check the bp_location's type.
1128 Fix a reversed condition for hardware breakpoints.
1129
1130 (insert_bp_location): Update call to remove_breakpoint.
1131 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
1132 (remove_hw_watchpoints): Likewise.
1133 (reattach_breakpoints): Likewise.
1134 (detach_breakpoints): Likewise.
1135 (delete_breakpoint): Likewise.
1136
075f6582
DJ
11372003-11-06 Daniel Jacobowitz <drow@mvista.com>
1138
1139 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
1140 (beakpoint_init_inferior): Likewise.
1141 (breakpoint_here_p): Likewise. Only check addresses for software
1142 or hardware breakpoints.
1143 (breakpoint_inserted_here_p): Likewise.
1144 (breakpoint_thread_match): Likewise. Correct comment.
1145 (bpstat_have_active_hw_watchpoints): Likewise.
1146 (check_duplicates): Likewise.
1147
879bfdc2
DJ
11482003-11-06 Daniel Jacobowitz <drow@mvista.com>
1149
1150 * breakpoints.c (insert_bp_location): New function, broken out
1151 from insert_breakpoints. Work on an bp_location instead of a
1152 breakpoint.
1153 (insert_breakpoints): Use it.
1154
cf3a9e5b
DJ
11552003-11-06 Daniel Jacobowitz <drow@mvista.com>
1156
1157 * breakpoint.h (struct bp_location): Add section.
1158 (struct breakpoint): Remove section.
1159 * breakpoint.c (insert_breakpoints, remove_breakpoint)
1160 (breakpoint_here_p, breakpoint_inserted_here_p)
1161 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
1162 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
1163 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
1164 section through loc.
1165
ffce0d52
DJ
11662003-11-06 Daniel Jacobowitz <drow@mvista.com>
1167
1168 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
1169 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
1170
e049a4b5
DJ
11712003-11-06 Daniel Jacobowitz <drow@mvista.com>
1172
1173 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
1174 arguments. Initialize owner and type for the new breakpoint
1175 location item.
1176 (set_raw_breakpoint): Update call to allocate_bp_location.
1177
7cc221ef
DJ
11782003-11-06 Daniel Jacobowitz <drow@mvista.com>
1179
1180 * breakpoint.h (struct bp_location): Add a chain pointer.
1181 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
1182 macros.
1183 (bp_location_chain): New variable.
1184 (allocate_bp_location): New function.
1185 (set_raw_breakpoint): Use it.
1186 (delete_breakpoint): Remove ->loc from the bp_location_chain.
1187
5cab636d
DJ
11882003-11-06 Daniel Jacobowitz <drow@mvista.com>
1189
1190 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
1191 (struct breakpoint): Remove address, shadow_contents, inserted,
adeee247 1192 requested_address, and duplicate. Add a struct bp_location.
5cab636d
DJ
1193 * breakpoint.c (condition_command, read_memory_nobpt)
1194 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
1195 (reattach_breakpoints, update_breakpoints_after_exec)
1196 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
1197 (breakpoint_init_inferior, breakpoint_here_p)
1198 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
1199 (breakpoint_thread_match, bpstat_stop_status)
1200 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
1201 (describe_other_breakpoints, check_duplicates)
1202 (make_breakpoint_permanent, create_thread_event_breakpoint)
1203 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
1204 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
1205 (watch_command_1, print_one_exception_catchpoint)
1206 (clear_command, breakpoint_re_set_one): Adjust member accesses to
1207 use the breakpoint's ->loc.
1208 (set_raw_breakpoint): Likewise. Initialize ->loc.
1209 (delete_breakpoint): Likewise. Free ->loc.
1210
7be0c536
AC
12112003-11-05 Andrew Cagney <cagney@redhat.com>
1212
4c7d882e
AC
1213 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
1214 macro.
1215 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
1216 * config/i386/tm-cygwin.h
1217 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
1218 * config/powerpc/tm-linux.h
1219 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
1220 (at_subroutine_call_instruction_target): Delete declaration.
1221 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
1222 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
1223 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
1224
7be0c536
AC
1225 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
1226 "struct bfd_section" and "struct bfd".
1227 * target.h (struct section_table): Ditto.
1228 * rs6000-nat.c (xcoff_relocate_core): Ditto.
1229 * solib-svr4.c (elf_locate_base): Ditto.
1230 * pa64solib.c (dld_cache_t): Ditto.
1231 * objfiles.h (struct obj_section): Ditto.
1232 * objfiles.c (add_to_objfile_sections): Ditto.
1233 * exec.c (bfdsec_to_vmap): Ditto.
1234 (add_to_section_table): Ditto.
1235 (build_section_table): Ditto.
1236 * corelow.c (get_core_register_section): Ditto.
1237 * coffread.c (find_linenos): Ditto.
1238 * elfread.c (elf_interpreter): Delete #if0'd function.
1239
1240 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
1241 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
1242 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
1243 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
1244
1245 * arch-utils.h (generic_cannot_extract_struct_value_address):
1246 Delete declaration.
1247 * wince.c (_initialize_wince): Fix multi-line string.
1248 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
1249
d8fe84e3
EZ
12502003-11-05 Elena Zannoni <ezannoni@redhat.com>
1251
1252 * top.c (execute_command): Fix broken logic for command execution
1253 while inferior is running in async mode.
1254
cbdfc7c0
MK
12552003-11-06 Mark Kettenis <kettenis@gnu.org>
1256
1257 * dwarf2-frame.c (execute_cfa_program): Mark register as
1258 REG_SAVED_REG for DW_CFA_register opcode.
1259
dac94105
MK
12602003-11-05 Mark Kettenis <kettenis@gnu.org>
1261
1262 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
1263 %rsp, %rip and %eflags to match ABI-change.
1264
85bf2b91
JJ
12652003-11-05 Jeff Johnston <jjohnstn@redhat.com>
1266
1267 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
77f091dd
RM
1268 (ia64_gdbarch_init): Don't bother calculating the os.
1269 Instead use the gdbarch_info struct and look at the osabi field.
1270 Also use gdbarch_list_lookup_by_info() to look for a
1271 candidate gdbarch.
85bf2b91 1272
cd31fb03
KB
12732003-11-05 Kevin Buettner <kevinb@redhat.com>
1274
1275 * frv-tdep.c (frv_register_byte): Delete.
1276 (frv_extract_return_value, frv_store_return_value)
1277 (frv_extract_struct_value_address): Don't call frv_register_byte().
1278 Convert to non-deprecated form.
1279 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
1280 Convert calls to set_gdbarch_deprecated_extract_return_value(),
1281 set_gdbarch_deprecated_store_return_value(), and
1282 set_gdbarch_deprecated_extract_struct_value_address() into
1283 non-deprecated forms.
1284
0a056982
AC
12852003-11-05 Andrew Cagney <cagney@redhat.com>
1286
1287 * mips-tdep.c (mips_dump_tdep): Do not print
1288 PRINT_EXTRA_FRAME_INFO.
1289 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
1290 Rename PRINT_EXTRA_FRAME_INFO.
1291 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
1292 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
1293 (mips_print_extra_frame_info): Delete declaration.
1294 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
1295
29e0a062
EZ
12962003-11-05 Elena Zannoni <ezannoni@redhat.com>
1297
1298 * coffread.c (coff_symtab_read): Remove passing of info parameter
1299 to prim_record_minimal_symbol_and_info.
1300
8af580fc
EZ
13012003-11-05 Elena Zannoni <ezannoni@redhat.com>
1302
1303 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
1304 (decode_base_type): Delete ifdeffed out code.
1305
507836c0
AC
13062003-11-04 Andrew Cagney <cagney@redhat.com>
1307
1308 * symtab.c (find_active_alias): Delete function.
1309 (lookup_block_symbol): Delete alias code.
1310 * stabsread.c (resolve_live_range): Delete function.
1311 (add_live_range): Delete function.
1312 (resolve_symbol_reference): Delete function.
1313 (define_symbol): Delete live range and alias code.
1314 (scan_file_globals): Delete alias code.
1315 * symtab.h (SYMBOL_RANGES): Delete macro.
1316 (struct range_list): Delete structure.
1317 (struct symbol): Delete field "ranges".
1318 (SYMBOL_ALIASES): Delete macro.
1319 (struct alias_list): Delete structure.
1320 (struct symbol): Delete field "aliases".
1321
1083b3bc
MS
13222003-11-04 Michael Snyder <msnyder@redhat.com>
1323
77f091dd 1324 * MAINTAINERS: Remove myself as owner of breakpoints and
1083b3bc
MS
1325 of sparc/solaris.
1326
474e5826
CV
13272003-11-03 Corinna Vinschen <vinschen@redhat.com>
1328
1329 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
1330 (sh_sh4al_dsp_register_name): Ditto.
1331 (sh4_nofpu_show_regs): Ditto.
1332 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
1333 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
1334
2160782c
AC
13352003-11-03 Andrew Cagney <cagney@redhat.com>
1336
1337 * bcache.c: Include "gdb_assert.h".
1338 (struct bcache): Add fields "expand_count" and
1339 "expand_hash_count".
1340 (expand_hash_table): Update the expand counts.
1341 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
1342 on object sizes and hashes.
1343 * Makefile.in (bcache.o): Update dependencies.
1344
85302095
AC
13452003-11-03 Andrew Cagney <cagney@redhat.com>
1346
1347 * exec.c (xfer_memory): Eliminate xfer_fn.
1348
526eef89
KB
13492003-10-31 Kevin Buettner <kevinb@redhat.com>
1350
1351 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
1352 (opcodes/frv-desc.h): Include.
1353 (iacc0h_regnum, iacc0l_regnum): Define.
1354 (last_spr_regnum, frv_num_regs): Update.
1355 (new_variant): Don't supply default names for holes in the SPRs.
1356 Supply names for iacc0h_regnum and iacc0l_regnum.
1357 (frv_register_type): Use symbolic constants first_fpr_regnum and
1358 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
1359 builtin_type_int instead of builtin_type_int32.
1360 (frv_register_sim_regno): New function.
1361 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
1362 * Makefile.in (gdb_sim_frv_h): Define.
1363 (frv-tdep.o): Update dependencies.
1364
9e815ec2
AC
13652003-10-31 Andrew Cagney <cagney@redhat.com>
1366
1367 * avr-tdep.c (avr_frame_this_id): Do not call
1368 deprecated_inside_entry_file.
1369 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
1370 * m32r-tdep.c (m32r_frame_this_id): Ditto.
1371 * d10v-tdep.c (d10v_frame_this_id): Ditto.
1372 * arm-tdep.c (arm_prologue_this_id): Ditto.
1373 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
1374
e372db49
JB
13752003-10-31 Jim Blandy <jimb@redhat.com>
1376
1377 * elfread.c (elf_symtab_read): Allocate correct number of tail
1378 elements to sectinfo structure. (Fix from Woody LaRue.)
1379
e8bcf01f
AC
13802003-10-31 Andrew Cagney <cagney@redhat.com>
1381
1382 * stack.c (return_command): Use get_frame_type, instead of
1383 CALL_DUMMY_HAS_COMPLETED.
1384 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
1385 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
1386
4c05fe53
MK
13872003-10-31 Mark Kettenis <kettenis@gnu.org>
1388
1389 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
1390 explicitly specify size of array.
1391 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
1392 TDEP->sc_num_regs.
1393
c8b91b89
AC
13942003-10-31 Andrew Cagney <cagney@redhat.com>
1395
1396 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
1397 function.
1398 (s390_gdbarch_init): Set extract_struct_value_address.
1399 * arch-utils.c (generic_cannot_extract_struct_value_address):
1400 Delete function.
1401 * arch-utils.h (generic_cannot_extract_struct_value_address):
1402 Delete definition.
1403
fdfb6fc8
MK
14042003-10-31 Mark Kettenis <kettenis@gnu.org>
1405
1406 * i386-linux-nat.c (fetch_core_registers): Remove.
1407 (linux_elf_core_fns): Remove.
1408 (_initialize_i386_linux_nat): Remove.
1409
2f4950cd
AC
14102003-10-31 Andrew Cagney <cagney@redhat.com>
1411
1412 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
1413 "exec.h".
1414 (exec_entry_point): New function.
1415 (enable_break): Create a "tmp_bfd_target", use that and
1416 entry_point_address when computing the relocation offset.
1417 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
1418 * Makefile.in (solib-svr4.o): Update dependencies.
1419
bba2d28d
AC
14202003-10-31 Andrew Cagney <cagney@redhat.com>
1421
1422 * defs.h (XZALLOC): Define.
1423 * target.h (struct target_ops): Add "to_data";
1424 * bfd-target.h, bfd-target.c: New files.
1425 * Makefile.in (SFILES): Add "bfd-target.c".
1426 (COMMON_OBS): Add "bfd-target.o".
1427 (bfd-target.o): Specify dependencies.
1428 (bfd_target_h): Define.
1429 * defs.h (XZALLOC): Define.
1430
6066c3de
AC
14312003-10-31 Andrew Cagney <cagney@redhat.com>
1432
1433 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
1434 adjust_breakpoint_address.
1435 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
1436 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
1437 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
1438 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
1439
4b8a223f
AC
14402003-10-31 Andrew Cagney <cagney@redhat.com>
1441
1442 * target.h (struct target_ops): Replace "to_read_partial" and
1443 "to_write_partial" with "to_xfer_partial". Update comments.
1444 * target.c (debug_to_write_partial): Delete function.
1445 (debug_to_xfer_partial): Replace debug_to_read_partial.
1446 (add_target, update_current_target, setup_target_debug): Set
1447 "to_xfer_partial" instead of "to_read_partial" and
1448 "to_write_partial".
1449 (default_xfer_partial): Replace "default_write_partial".
1450 (default_read_partial): Delete.
1451 (target_read_partial, target_write_partial): Call
1452 "to_xfer_partial".
1453 * remote.c (init_remote_ops): Set "to_xfer_partial".
1454 (init_remote_async_ops): Ditto.
1455 (remote_xfer_partial): Replace "remote_read_partial".
1456
66a72d25
MK
14572003-10-31 Mark Kettenis <kettenis@gnu.org>
1458
1459 * i386-tdep.c (i386_supply_fpregset): Support floating-point
1460 registers in `fxsave' format.
1461 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
1462
9a12a2a0
MK
14632003-10-30 Mark Kettenis <kettenis@gnu.org>
1464
e9f1aad5
MK
1465 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
1466 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
1467 TDEP->gregset_num_regs and tdep->sizeof_gregset.
1468
bb489b3c
MK
1469 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
1470 specify size of array.
1471 (i386_linux_init_abi): Remove initialization of
1472 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
1473 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1474
da285bc4
MK
1475 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1476 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1477 core-regset.o.
1478
9a12a2a0
MK
1479 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1480 the ELF header.
1481
0e24ac5d
MK
14822003-10-29 Mark Kettenis <kettenis@gnu.org>
1483
6d6d8e9c
MK
1484 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1485 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1486 core-regset.o.
1487
25e60c9b
MK
1488 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1489
0e24ac5d
MK
1490 * corelow.c: Include "arch-utils.h", "regset.h" and
1491 "gdb_assert.h".
1492 (core_gdbarch): New variable.
1493 (sniff_core_bfd): Don't sniff if we have support for register sets
1494 in CORE_GDBARCH.
1495 (core_close): Reset CORE_GDBARCH.
1496 (core_open): Initialize CORE_GDBARCH.
1497 (get_core_register_section): Use register sets if they are
1498 supported by CORE_GDBARCH.
1499 (get_core_registers): Don't print error message if we have support
1500 for register sets in CORE_GDBARCH.
1501
0a0a4ac3
AC
15022003-10-29 Andrew Cagney <cagney@redhat.com>
1503
1504 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1505 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1506
7b097ae3
MK
15072003-10-29 Mark Kettenis <kettenis@gnu.org>
1508
1509 * objfiles.h (clear_objfile_data): New prototype.
1510 * objfiles.c (clear_objfile_data): New function.
1511 * symfile.c (reread_symbols): Clear per-objfile data.
1512
46f45a4a 15132003-10-28 Jeff Johnston <jjohnstn@redhat.com>
77f091dd 1514
46f45a4a
JJ
1515 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1516 printf_unfiltered instead of printf_filtered for output messages.
1517 (add_symbol_file_command): Ditto.
1518 (reread_symbols): Ditto.
1519 (overlay_auto_command): Ditto.
1520 (overlay_manual_command): Ditto.
1521 (overlay_off_command): Ditto.
1522
2b026650
MK
15232003-10-27 Mark Kettenis <kettenis@gnu.org>
1524
1525 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1526 (gdbarch_from_bfd): New function.
1527 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1528 deprecated_select_gdbarch_hack.
1529 * arch-utils.h (gdbarch_from_bfd): New prototype.
1530
0bcad584 15312003-10-27 Andrew Cagney <cagney@redhat.com>
931758af
AC
1532
1533 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1534 arch_info. Use warning instead of fprintf_filtered. Do not use
1535 deprecated bfd_printable_arch_mach.
1536
7f398216
KB
15372003-10-26 Kevin Buettner <kevinb@redhat.com>
1538
1539 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1540 Delete.
1541 (frv_register_type): Rename from frv_register_virtual_type. Add
1542 ``struct gdbarch *'' parameter.
1543 (frv_gdbarch_init): Delete calls to the following functions:
1544 set_gdbarch_deprecated_size(),
1545 set_gdbarch_deprecated_register_bytes(),
1546 set_gdbarch_deprecated_register_raw_size(),
1547 set_gdbarch_deprecated_max_register_raw_size(),
1548 set_gdbarch_deprecated_register_virtual_size(),
1549 set_gdbarch_deprecated_max_register_virtual_size(),
1550 set_gdbarch_deprecated_register_virtual_size(),
1551 set_gdbarch_deprecated_register_virtual_type().
1552 Add call to function set_gdbarch_register_type().
1553
bcf48cc7
MK
15542003-10-26 Mark Kettenis <kettenis@gnu.org>
1555
6c7de422
MK
1556 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1557 FDOFF_REGNUM): Remove defines.
1558 * win32-nat.c (do_child_fetch_inferior_registers): Include
1559 "i387-tdep.h".
3e685d41 1560 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
6c7de422
MK
1561 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
1562 undefine I387_ST0_REGNUM.
1563
f783586b
MK
1564 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1565 * x86-64-tdep.c (x86_64_store_return_value): Use
1566 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1567
bcf48cc7
MK
1568 Change register numbers to enumartion values.
1569 * i386-tdep.h (enum i386_regnum): New.
1570 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1571 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1572 I386_ST0_REGNUM): Remove defines.
1573 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1574 I386_EDI_REGNUM): Remove defines.
1575
b6591e8b
AC
15762003-10-24 Andrew Cagney <cagney@redhat.com>
1577
1578 * target.c: Include "gdbcore.h".
1579 (get_target_memory, get_target_memory_unsigned): New functions.
1580 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1581 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1582 Use get_target_memory_unsigned.
1583 * Makefile.in (target.o): Update dependencies.
1584
5f724446
AC
15852003-10-24 Andrew Cagney <cagney@redhat.com>
1586
ce2826aa
AC
1587 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1588 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1589 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1590 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1591 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1592
5f724446
AC
1593 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1594 (can_run_code_for): Use the OO term "singleton".
1595
fc70c2a0
AC
15962003-10-23 Andrew Cagney <cagney@redhat.com>
1597
1598 * Makefile.in (stack.o): Add $(regcache_h).
1599 * stack.c: Include "regcache.h"
1600 (return_command): Rewrite. Use get_frame_id and
1601 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
1602 about unhandled return-values.
1603 * value.h (set_return_value): Delete declaration.
1604 * values.c (set_return_value): Delete function.
1605
4afcc598
JJ
16062003-10-23 Jeff Johnston <jjohnstn@redhat.com>
1607
1608 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1609 (pseudo_regs): Add comment regarding register stack registers.
1610 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
1611 (floatformat_valid): New static routine.
1612 (floatformat_ia64_ext): Add name field and set up is_valid routine
1613 to floatformat_valid().
1614 (examine_prologue): For the previous cfm, use
1615 frame_unwind_register()
1616 if the cfm is not stored in a register-stack register. Save the
1617 previous cfm value in the prev_cfm field. Add debug output.
1618 (ia64_frame_this_id): Use frame_id_build_special() to also register
1619 the bsp. Add debug output.
1620 (ia64_sigtramp_frame_this_id): Ditto.
1621 (ia64_frame_prev_register): Look at cache saved_regs for a few more
1622 registers and also add some checks for framelessness before accepting
1623 current register values for fields such as return address. For cfm,
1624 use the cached prev_cfm field if available. Add comment to explain
1625 PSR logic. Add debug output.
1626 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1627 as part of initialization.
1628 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1629 calculated. Cache the bsp and cfm values.
1630 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1631 instead of using ia64_frame_prev_register() which doesn't expect most
1632 registers to be saved. The saved values for bsp and sp
1633 can be taken from the cache. Add debug output.
1634 (ia64_push_dummy_call): Use frame_id_build_special() to also register
1635 the bsp.
1636
6cfae0bc
JB
16372003-10-23 Jim Blandy <jimb@redhat.com>
1638
1639 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1640 architecture the current arch can run code for --- but not if it's
1641 a superset.
1642 (can_run_code_for): New function.
1643
fcd182f9
JW
16442003-10-22 James E Wilson <wilson@specifixinc.com>
1645
1646 * MAINTAINERS: Move myself from paper trail section back to write
1647 after approval section.
1648
4646aa9d
AC
16492003-10-22 Andrew Cagney <cagney@redhat.com>
1650
1651 * exec.h: New file.
1652 * win32-nat.c: Include "exec.h".
1653 * solib.c: Include "exec.h".
1654 * target.h (build_section_table): Delete declaration.
1655 * somsolib.c: Include "exec.h".
1656 (exec_ops): Delete extern declaration.
1657 * rs6000-nat.c: Update copyright. Include "exec.h".
1658 (exec_ops): Delete extern declaration.
1659 * pa64solib.c: Update copyright. Include "exec.h".
1660 (exec_ops): Delete extern declaration.
1661 * exec.c: Update copyright. Include "exec.h".
1662 * corelow.c: Update dependencies. Include "exec.h".
1663 * Makefile.in (exec_h): Define.
1664 (exec.o, somsolib.o): Update dependencies.
1665 (pa64solib.o, corelow.o): Update dependencies.
1666
0088c768
AC
16672003-10-22 Andrew Cagney <cagney@redhat.com>
1668
1669 * target.c: Include "gdb_assert.h" (target_read): Call
1670 "target_read_partial", not "target_write_partial".
1671 (default_read_partial, default_write_partial): New function.
1672 (target_read_partial, target_write_partial): Simplify, assume that
1673 there is always a read/write method.
1674 (update_current_target, add_target): Always set "to_read_partial"
1675 and "to_write_partial".
1676 (target_write, target_read): Fail on a zero byte transfer.
1677 * Makefile.in (target.o): Update dependencies.
1678 * target.h: Update copyright date.
1679 (target_object): Fix typo.
1680
e2d0e7eb
AC
16812003-10-22 Andrew Cagney <cagney@redhat.com>
1682
1683 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1684 multi-arch method, add "targ" parameter.
77f091dd 1685 (struct target_ops): Declare.
e2d0e7eb
AC
1686 * gdbarch.h, gdbarch.c: Re-generate.
1687 * Makefile.in (c-valprint.o): Update dependencies.
1688 * arch-utils.h: Update copyright.
1689 (convert_from_func_ptr_addr_identity): Declare.
1690 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1691 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1692 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1693 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1694 * infcall.c (find_function_addr, call_function_by_hand): Update.
1695 * c-valprint.c: Include "target.h".
1696 (print_function_pointer_address): Update.
1697
f1c07ab0
AC
16982003-10-22 Andrew Cagney <cagney@redhat.com>
1699
1700 * target.c (target_close): New function.
1701 (debug_to_close): Use "target_close".
1702 (push_target): Use "target_close".
1703 (unpush_target): Use "target_close".
1704 (pop_target): Use "target_close".
1705 * target.h (struct target_ops): Add "to_xclose".
1706 (target_open): Delete macro. Move comment to "to_open".
1707 (target_close): Replace macro with function that takes a target.
1708 * top.c (quit_target): Pass "current_target" to "target_close".
1709
5520a790
EZ
17102003-10-21 Elena Zannoni <ezannoni@redhat.com>
1711
1712 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1713 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1714 * symtab.h (lookup_minimal_symbol_text): Update.
1715 * breakpoint.c (create_overlay_event_breakpoint,
1716 create_longjmp_breakpoint): Update callers.
1717 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1718 * symtab.c (find_pc_sect_line): Ditto.
1719
caa92b73
AC
17202003-10-21 Andrew Cagney <cagney@redhat.com>
1721
1722 * target.c (errno): Delete extern declaration.
1723
aa2a9a3c
JJ
17242003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1725
1726 * ia64-tdep.c: Change all occurrences of
1727 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1728 (ia64_frame_prev_register): Minor whitespace change.
1729
4beec2b7
MC
17302003-10-20 Michael Chastain <mec@shout.net>
1731
1732 * config/djgpp/fnchange.lst: Add lines for:
1733 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1734 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1735 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1736 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1737 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1738 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1739 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1740
92ad9cd9
AC
17412003-10-20 Andrew Cagney <cagney@redhat.com>
1742
1743 * values.c (register_value_being_returned): Update comments. Use
1744 "gdbarch_return_value" when available.
1745 (using_struct_return): Ditto.
1746 (set_return_value): Ditto. Use "gdbarch_return_value" when
1747 available.. Print a warning, and not an error, when an unhandled
1748 return type is encountered.
1749 * infcmd.c: Include "gdb_assert.h".
1750 (print_return_value): When gdbarch_return_value_p, and using
1751 struct return, assume that the value is not available.
1752 * defs.h (return_value_convention): Define.
1753 * gdbarch.sh (gdbarch_return_value): New predicate method.
1754 * gdbarch.h, gdbarch.c: Re-generate
1755 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1756
198beae2
AC
17572003-10-20 Andrew Cagney <cagney@redhat.com>
1758
1759 * symtab.c: Replace "struct sec" with "struct bfd_section".
1760 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1761
24d693a6 17622003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
1763
1764 * config/djgpp/fnchange.lst: Add lines for:
1765 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1766 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1767 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1768
21ad8dc3
MK
17692003-10-19 Mark Kettenis <kettenis@gnu.org>
1770
1771 * amd64fbsd-nat.c (fetch_inferior_registers,
1772 store_inferior_registers): Remove functions.
1773 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1774
cced5e27
MK
17752003-10-18 Mark Kettenis <kettenis@gnu.org>
1776
1777 Add NetBSD/amd64 native configuration:
1778 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1779 * amd64nbsd-tdep.c: New file.
1780 * amd64nbsd-nat.c: New file.
1781 * amd64bsd-nat.c: New file.
1782 * config/i386/nbsd64.mh: New file.
1783 * config/i386/nbsd64.mt: New file.
1784 * configure.host: Add x86_64-*-netbsd*.
1785 * configure.tgt: Add x86_64-*-netbsd*.
1786 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1787 New targets.
1788 * NEWS (New native configurations): Mention NetBSD/amd64.
1789
666de3fd
MC
17902003-10-17 Michael Chastain <mec@shout.net>
1791
1792 * config/djgpp/fnchange.lst: Remove dead lines for:
1793 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1794 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1795 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1796 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1797 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1798 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1799 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1800 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1801 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1802 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1803 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1804 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1805 gdb/config/sparc/tm-sparclite.h,
1806 gdb/gdbtk/generic/ChangeLog-2001,
1807 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1808 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1809 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1810 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1811 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1812 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1813 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1814 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1815 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1816 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1817 itcl/iwidgets3.0.0/demos/fileselectionbox,
1818 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1819 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1820 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1821 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1822 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1823 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1824 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1825 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1826 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1827 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1828 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1829 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1830 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1831 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1832 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1833 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1834 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1835 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1836 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1837 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1838 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1839 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1840 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1841 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1842 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1843 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1844 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1845 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1846 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1847 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1848 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1849 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1850 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1851 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1852 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1853 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1854 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1855 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1856 itcl/iwidgets3.0.0/demos/scrolledframe,
1857 itcl/iwidgets3.0.0/demos/scrolledhtml,
1858 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1859 itcl/iwidgets3.0.0/demos/scrolledtext,
1860 itcl/iwidgets3.0.0/demos/selectionbox,
1861 itcl/iwidgets3.0.0/demos/selectiondialog,
1862 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1863 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1864 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1865 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1866 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1867 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1868 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1869 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1870 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1871 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1872 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1873 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1874 itcl/iwidgets3.0.0/doc/selectionbox.n,
1875 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1876 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1877 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1878 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1879 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1880 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1881 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1882 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1883 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1884 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1885 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1886 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1887 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1888 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1889 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1890 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1891 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1892 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1893 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1894 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1895 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1896 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1897 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1898 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1899 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1900 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1901 itcl/iwidgets3.0.0/tests/selectionbox.test,
1902 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1903 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1904 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1905 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1906 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1907 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1908 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1909 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1910 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1911 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1912 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1913 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1914 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1915 tk/mac/tkMacProjects.sit.hqx.
1916
1e3ff5ad
AC
19172003-10-17 Andrew Cagney <cagney@redhat.com>
1918
8db32d44
AC
1919 * target.c (target_section_by_addr): New function.
1920 (do_xfer_memory): Use "target_section_by_addr".
1921 * target.h (target_section_by_addr): Declare.
1922
1e3ff5ad
AC
1923 * target.h (struct target_ops): Add "to_read_partial" and
1924 "to_write_partial", delete "to_query".
1925 (target_read_partial, target_write_partial): Declare.
1926 (target_read, target_write): Declare.
1927 (target_query): Delete macro.
1928 * target.c (target_read_partial): New function.
1929 (target_write_partial, target_read, target_write): New function.
1930 (update_current_target): Delete inheritance of "to_query". Add
1931 comments about "to_read_partial" and "to_write_partial".
1932 (debug_to_partial_read, debug_to_partial_write): New functions.
1933 (debug_to_query): Delete function.
1934 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1935 instead of "to_query".
1936 * remote.c (remote_read_partial): Replace "remote_query".
1937 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1938 (init_remote_async_ops): Ditto.
1939 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1940 "target_read_partial" instead of "target_query".
1941 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1942 Use "target_read_partial" instead of "target_query".
1943
48c66725
JJ
19442003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1945
1946 * frame.h (struct frame_id): Add new field: special_addr.
1947 (frame_id_build_special): New prototype.
1948 * frame.c (frame_id_build_special): New function.
1949 (frame_id_build): Change to call frame_id_build_special().
77f091dd
RM
1950 (frame_id_eq): Change to also test special_addr field.
1951 (frame_id_inner): Update comment.
48c66725 1952
7998dfc3
AC
19532003-10-17 Andrew Cagney <cagney@redhat.com>
1954
1955 * target.c (update_current_target): Perform the target cleanup.
1956 Put the target stack beneath the squashed "current_target".
1957 (add_target): Delete disabled call to "cleanup_target".
1958 (cleanup_target): Delete function.
1959 (push_target, unpush_target): Do not call "cleanup_target".
1960
9c04404e 19612003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
1962
1963 * target.c (target_stack): Change to a static target_ops.
1964 (update_current_target): Walk the "struct target_ops" stack.
1965 (pop_target, do_xfer_memory, target_info): Ditto.
1966 (find_target_beneath): Ditto.
1967 (push_target): Rewrite to use the "struct target_ops" stack.
1968 (unpush_target): Ditto.
1969 * target.h (struct target_stack_item): Delete definition.
1970 (target_stack): Delete declaration.
1971 (struct target_ops): Add field "beneath".
1972
c98a2b49 19732003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
1974
1975 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1976 declaration.
1977 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
1978 (h8300_examine_prologue): Use h8300_normal_mode flag
1979 (h8300_gdbarch_init): Set architecture info for normal mode
1980
506fb367
DJ
19812003-10-16 Daniel Jacobowitz <drow@mvista.com>
1982
1983 * remote.c (remote_protocol_vcont): New variable.
1984 (set_remote_protocol_vcont_packet_cmd): New function.
1985 (show_remote_protocol_vcont_packet_cmd): New function.
1986 (init_all_packet_configs): Handle remote_protocol_vcont.
1987 (remote_vcont_probe): New function.
1988 (remote_vcont_resume): New function.
1989 (remote_resume): Use it.
1990 (remote_async_resume): Call remote_resume.
1991 (_initialize_remote): Add verbose-resume packet commands.
1992
65815ea1
AC
19932003-10-16 Andrew Cagney <cagney@redhat.com>
1994
1995 * infrun.c (handle_inferior_event): Add comment about
1996 "frame_id_inner" being too weak.
1997
40324f1b
EZ
19982003-10-16 Elena Zannoni <ezannoni@redhat.com>
1999
2000 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
2001 second parameter, which is always null. Remove
2002 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
2003 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
2004 accordingly.
2005 * somsolib.c (som_solib_create_inferior_hook,
2006 som_solib_desire_dynamic_linker_symbols): Update callers.
2007 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
2008
20092003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
2010
2011 * remote-m32r-sdi.c : New file, interface to m32r on-chip
2012 debug interface, SDI (Scalable Debug Interface).
2013 * NEWS: Mention m32r SDI protocol was supported.
2014 * Makefile.in (remote-m32r-sdi.o): Add build rule.
2015 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
2016
51931cbb
JJ
20172003-10-15 Jeff Johnston <jjohnstn@redhat.com>
2018
2019 * ia64-linux-tdep.c: Include gdbcore.h.
2020 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
2021 (ia64_linux_sigcontext_register_addr): Find the address of the
2022 sigcontext area stored in the sigframe instead of using
77f091dd 2023 a magic offset constant.
51931cbb 2024
84e7fd53
AC
20252003-10-15 Andrew Cagney <cagney@redhat.com>
2026
2027 * remote.c (remote_search): Delete function.
2028 * target.h (target_search): Delete disabled macro.
2029 (struct target_ops): Delete disabled field "to_search".
2030
0f4d7c52
KB
20312003-10-14 Kevin Buettner <kevinb@redhat.com>
2032
2033 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
2034 instead of deprecated_inside_entry_file().
2035
2e952408
CV
20362003-10-14 Corinna Vinschen <vinschen@redhat.com>
2037
2038 * sh-tdep.c: Fix copy/paste hangover in comment.
2039 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
2040 mode.
2041 (sh3e_sh4_extract_return_value): Ditto.
2042
7e86466e
RH
20432003-10-13 Richard Henderson <rth@redhat.com>
2044
2045 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
2046 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
2047 match c_val_print a bit closer.
2048
46a16dba
KB
20492003-10-13 Kevin Buettner <kevinb@redhat.com>
2050
2051 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
2052 (frv_gdbarch_adjust_breakpoint_address): New function.
2053 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
2054 method.
2055
76897487
KB
20562003-10-13 Kevin Buettner <kevinb@redhat.com>
2057
2058 * breakpoint.h (struct breakpoint): Add new member
2059 ``requested_address''.
2060 * breakpoint.c (breakpoint_adjustment_warning)
2061 (adjust_breakpoint_address): New static functions.
2062 (print_it_typical): Issue warning if breakpoint's address is different
2063 from its requested address.
2064 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
2065 (breakpoint_re_set_one): Set breakpoint's
2066 ``requested_address'' field. Set ``address'' field to the
2067 result of calling adjust_breakpoint_address() on the requested
2068 address.
2069
a1131521
KB
20702003-10-13 Kevin Buettner <kevinb@redhat.com>
2071
2072 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
2073 * gdbarch.h, gdbarch.c: Regenerate.
2074
6ce6d90f
MK
20752003-10-11 Mark Kettenis <kettenis@gnu.org>
2076
155c1d33
MK
2077 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
2078 TDEP->sc_num_regs.
2079
8a96bc77
MK
2080 * i386fbsd-tdep.c: New file.
2081 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2082 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
2083 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
2084 i386bsd-tdep.c.
2085 (_initialize_i386fbsd_tdep): New function.
2086 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
2087 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
2088 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
2089 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
2090 TDEP->sc_num_regs.
2091 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
2092 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
2093 to initialize TDEP->sc_num_regs.
2094 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2095 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
2096 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
2097 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
2098 FreeBSD ELF OS/ABI's here.
2099 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
2100 (i386fbsd-tdep.o): New target.
2101 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
2102 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
2103
477f40d1
MK
2104 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
2105 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
2106 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
2107 in initialization of TDEP->sc_num_regs.
2108
c6b33596
MK
2109 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
2110 (x86_64_init_abi): Initialize regset_from_core_section if
2111 appropriate.
2112
8446b36a
MK
2113 * i386-tdep.c (i386_regset_from_core_section): New function.
2114 (i386_gdbarch_init): Initialize regset_from_core_section if
2115 appropriate.
2116 * i386-tdep.h (i386_regset_from_core_section): New declaration.
2117
c783cbd6
MK
2118 * i386-tdep.h (struct regset): Declare opaque.
2119
6ce6d90f
MK
2120 * gdbarch.sh (regset_from_core_section): New method.
2121 (struct regset): Declare opaque.
2122 * gdbarch.c, gdbarch.h: Regenerated.
2123
b98ed7be
AM
21242003-10-11 Alan Modra <amodra@bigpond.net.au>
2125
2126 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
2127 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
2128 Correct test for pc within section.
2129
f6214256
MK
21302003-10-11 Mark Kettenis <kettenis@gnu.org>
2131
2132 * gdbarch.sh: Remove trailing whitepsace from comments.
2133
a8f4cde1
RM
21342003-10-08 Roland McGrath <roland@redhat.com>
2135
2136 * gcore.c (make_mem_sec): Function removed, folded into ...
2137 (gcore_create_callback): ... here. To omit a section, clear its
2138 SEC_LOAD bit rather than zeroing its size.
2139 Omit read-only sections only if they correspond to a known disk file.
2140 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
2141
74276724
MS
21422003-10-10 Michael Snyder <msnyder@redhat.com>
2143
2144 * d10v-tdep.c: Fix typo in comment.
2145
e754ae69
AC
21462003-10-10 Andrew Cagney <cagney@redhat.com>
2147
2148 * rs6000-tdep.c (e500_store_return_value): Delete function.
2149 (e500_extract_return_value): Delete function.
2150 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
2151 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
2152 "ppc_sysv_abi_restore_return_value" where applicable.
2153 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
2154 (ppc_sysv_abi_extract_return_value): Declare.
2155 (ppc_sysv_abi_broken_store_return_value): Declare.
2156 (ppc_sysv_abi_broken_extract_return_value): Declare.
2157 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
2158 * ppc-sysv-tdep.c (return_value_convention): Move definition to
2159 start of file.
2160 (do_ppc_sysv_return_value): New function.
2161 (ppc_sysv_abi_extract_return_value): New function.
2162 (ppc_sysv_abi_store_return_value): New function.
2163 (ppc_sysv_abi_broken_extract_return_value): New function.
2164 (ppc_sysv_abi_broken_store_return_value): New function.
2165 (ppc_sysv_abi_use_struct_convention): Call
2166 do_ppc_sysv_return_value.
2167
8d4ce20a
JB
21682003-10-10 J. Brobecker <brobecker@gnat.com>
2169
2170 * blockframe.c (inside_main_func): No longer use symbol_lookup()
2171 to lookup the main function symbol.
2172
afce3d2a
CV
21732003-10-10 Corinna Vinschen <vinschen@redhat.com>
2174
2175 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
2176 types correctly.
2177 (sh_push_dummy_call_fpu): Fix argument passing rules.
2178 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
2179 float types.
2180 (sh3e_sh4_store_return_value): Ditto.
2181
7fe958be
EZ
21822003-10-10 Elena Zannoni <ezannoni@redhat.com>
2183
2184 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
2185 comment.
2186
3f997a97
CV
21872003-10-10 Corinna Vinschen <vinschen@redhat.com>
2188
2189 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
2190 more readable code. Accomodate passing of bitfields.
2191
8be9034a
AC
21922003-10-10 Andrew Cagney <cagney@redhat.com>
2193
2194 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
2195 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
2196 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
2197 * ppc-sysv-tdep.c: Include "gdb_assert.h".
2198 (ppc64_sysv_abi_push_dummy_call): New function.
2199 (ppc64_sysv_abi_broken_push_dummy_call): New function.
2200 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
2201 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
2202
85a453d5
KI
22032003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
2204
2205 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
2206 * README: Ditto.
2207 * d10v-tdep.c: Ditto.
2208 * h8300-tdep.c: Ditto.
2209 * remote-e7000.c: Ditto.
2210 * remote-hms.c: Ditto.
2211 * ser-e7kpc.c: Ditto.
2212 * sh-stub.c: Ditto.
2213 * sh-tdep.c: Ditto.
2214 * sh-tdep.h: Ditto.
2215 * sh3-rom.c: Ditto.
2216 * sh64-tdep.c: Ditto.
2217 * top.c: Ditto.
2218 * wince.c: Ditto.
2219 * config/d10v/d10v.mt: Ditto.
2220 * config/sh/embed.mt: Ditto.
2221 * config/sh/linux.mt: Ditto.
2222 * config/sh/tm-linux.h: Ditto.
2223 * config/sh/tm-sh.h: Ditto.
2224 * config/sh/wince.mt: Ditto.
2225
221c12ff
AC
22262003-10-09 Andrew Cagney <cagney@redhat.com>
2227
2228 * ppc-tdep.h (struct type): Declare opaque.
2229 * x86-64-tdep.h (struct regcache): Declare opaque.
2230 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
2231 coding style.
2232
ef5200c1
AC
22332003-10-09 Andrew Cagney <cagney@redhat.com>
2234
2235 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
2236 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
2237 (SOFTWARE_SINGLE_STEP_P): Ditto.
2238 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
2239 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
2240 (SOFTWARE_SINGLE_STEP_P): Ditto.
2241 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
2242 software_single_step to rs6000_software_single_step.
a8f4cde1 2243
9644bbdd
AC
22442003-10-09 Andrew Cagney <cagney@redhat.com>
2245
2246 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
2247
db72fa6b
MS
22482003-10-09 Michael Snyder <msnyder@redhat.com>
2249
f3efb16c
MS
2250 * frame.h: Fix typo in comment.
2251 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
2252 * d10v-tdep.c: Random whitespace/comment tweaks.
2253
9a5cef92
EZ
22542003-10-09 Elena Zannoni <ezannoni@redhat.com>
2255
2256 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 2257 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 2258 on stack.
a8f4cde1 2259
9a5cef92
EZ
2260 Based on input by Stephen Clarke (stephen.clarke@superh.com):
2261 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
2262 in detail.
a8f4cde1 2263
0f317a0c
DJ
22642003-10-09 Daniel Jacobowitz <drow@mvista.com>
2265
2266 * remote-mips.c (mips_initialize): Remove unneeded call to
2267 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
2268
bbab2f46
DJ
22692003-10-09 Daniel Jacobowitz <drow@mvista.com>
2270
2271 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
2272 a memory pointer.
2273
550950b8
JJ
22742003-10-08 Jeff Johnston <jjohnstn@redhat.com>
2275
2276 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
2277 for any lwp we resume.
2278 (running_callback): Add lwps that have pending status events
2279 against them to be considered running.
2280
15c69bc7
KI
22812003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
2282
2283 * m32r-tdep.c : Include "dis-asm.h".
2284 * Makefile.in (m32r-tdep.o): Update dependencies.
2285
51065942
JB
22862003-10-06 J. Brobecker <brobecker@gnat.com>
2287
2288 * completer.h (get_gdb_completer_word_break_characters): Delete.
2289 * completer.c: include language.h.
2290 (gdb_completer_word_break_characters): Delete.
2291 (get_gdb_completer_word_break_characters): Delete.
2292 (location_completer): Use the word break characters of the current
2293 language.
2294 (complete_line): Likewise.
2295 (line_completion_function): Likewise.
2296 (skip_quoted_chars): Likewise.
2297 * Makefile.in (completer.o): Add dependency on language.h.
2298 * top.c (init_main): Set the readline word break characters
2299 to GDB's default word break characters.
2300
6084f43a
JB
23012003-10-06 J. Brobecker <brobecker@gnat.com>
2302
2303 * language.h (language_defn): new field, la_word_break_characters.
2304 * language.c (unknown_language_defn): Set new field to
2305 default_word_break_characters.
2306 (auto_language_defn): Likewise.
2307 (local_language_defn): Likewise.
2308 * ada-lang.c (ada_language_defn): Likewise.
2309 * c-lang.c (c_language_defn): Likewise.
2310 (cplus_language_defn): Likewise.
2311 (asm_language_defn): Likewise.
2312 (minimal_language_defn): Likewise.
2313 * f-lang.c (f_language_defn): Likewise.
2314 * jv-lang.c (java_language_defn): Likewise.
2315 * m2-lang.c (m2_language_defn): Likewise.
2316 * objc-lang.c (objc_language_defn): Likewise.
2317 * p-lang.c (pascal_language_defn): Likewise.
2318 * scm-lang.c (scm_language_defn): Likewise.
2319
944fcfab
AC
23202003-10-06 Andrew Cagney <cagney@redhat.com>
2321
2322 * ppc-sysv-tdep.c: Re-indent.
2323
9f0a5303
JB
23242003-10-06 J. Brobecker <brobecker@gnat.com>
2325
2326 * language.h (default_word_break_characters): Add prototype.
2327 * language.c (default_word_break_characters): New function.
2328
7270b6ed
AS
23292003-10-06 Andreas Schwab <schwab@suse.de>
2330
2331 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
2332 with %eax.
2333
a5d61f66
AC
23342003-10-06 Andrew Cagney <cagney@redhat.com>
2335
2336 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
2337 "h8500-tdep.c".
2338 (z8k-tdep.o): Delete custom build rule.
2339
28a86f5c
AC
23402003-10-06 Andrew Cagney <cagney@redhat.com>
2341
1bfd8a83
AC
2342 * Makefile.in: Update all dependencies.
2343
17144ef8
AC
2344 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
2345 No longer list PA as as obsolete candidate. List m32r as
2346 broken instead of obsolete.
a8f4cde1 2347
a5679ae5
AC
2348 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
2349 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
2350 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
2351 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
2352 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
2353 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
2354 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
2355 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2356 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
2357 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
2358 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
2359 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
2360 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
2361 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
2362 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
2363 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
2364 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
2365 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
2366 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
2367 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
2368 * config/z8k/z8k.mt: Ditto.
2369
4a8269c0
AC
2370 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
2371 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
2372 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
2373 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
2374 sparclite were removed.
2375 * configure.host, configure.tgt: Remove corresponding tuples.
2376
41989fcd
AC
2377 * breakpoint.c, breakpoint.h: Remove obsolete code.
2378 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
2379 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
2380 * stabsread.h, xcoffread.c: Ditto.
2381
28a86f5c
AC
2382 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
2383 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
2384 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
2385 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
2386
4efdaa0d
DL
23872003-10-06 David Lecomber <dsl@sources.redhat.com>
2388
2389 * f-valprint.c: Reformatting
2390
ae53de43
MK
23912003-10-06 Mark Kettenis <kettenis@gnu.org>
2392
a8bb57e7
MK
2393 * x86-64-tdep.c: Remove duplicate comment.
2394
ae53de43
MK
2395 * x86-64-tdep.c (x86_64_store_return_value): Don't use
2396 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
2397 names for return values. This fixes a bug since we looked at %rbx
2398 instead of %rdx.
2399
473f17b0
MK
24002003-10-05 Mark Kettenis <kettenis@gnu.org>
2401
2c261fae
MK
2402 * x86-64-tdep.c: Include "regset.h".
2403
473f17b0
MK
2404 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
2405 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
2406 sizeof_fpregset.
2407 * i386-tdep.c: Include "regset.h".
2408 (i386_supply_gregset): New function.
2409 (i386_supply_fpregset): New function.
2410 (i386_gdbarch_init): Initialze register set-related members of
2411 TDEP.
2412 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
2413 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2414
afd48b75
AC
24152003-10-03 Andrew Cagney <cagney@redhat.com>
2416
2417 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
2418 set extract_return_value, store_return_value and
2419 use_struct_convention to ppc64_sysv_abi_extract_return_value,
2420 ppc64_sysv_abi_store_return_value and
2421 ppc64_sysv_abi_use_struct_convention.
2422 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
2423 (ppc64_sysv_abi_store_return_value): Declare.
2424 (ppc64_sysv_abi_use_struct_convention): Declare.
2425 * ppc-sysv-tdep.c (enum return_value_convention): Define.
2426 (ppc64_sysv_abi_extract_return_value): New function.
2427 (ppc64_sysv_abi_store_return_value): New function.
2428 (ppc64_sysv_abi_use_struct_convention): New function.
2429 (ppc64_sysv_abi_return_value): New function.
2430
9b540880
AC
24312003-10-03 Andrew Cagney <cagney@redhat.com>
2432
2433 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
2434 convert a descriptor to a function when it's in the ".opd"
2435 section.
2436
8748518b
CV
24372003-10-03 Corinna Vinschen <vinschen@redhat.com>
2438
2439 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2440 reg_size to keep GCC silent.
2441
0fd85043
CV
24422003-10-03 Corinna Vinschen <vinschen@redhat.com>
2443
2444 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
2445 base for DW_EH_PE_textrel encodings.
2446 (read_encoded_value): Add a DW_EH_PE_textrel case.
2447 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
2448 section.
2449
37b517aa
MK
24502003-10-03 Mark Kettenis <kettenis@gnu.org>
2451
2452 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2453
12c266ea
AC
24542003-10-02 Andrew Cagney <cagney@redhat.com>
2455
2456 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
2457 REGISTER_RAW_SIZE.
2458 * gdbarch.h, gdbarch.c: Re-generate.
2459 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
2460 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
2461 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2462 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2463 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
2464 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
2465 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
2466 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
2467 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
2468 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
2469 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
2470 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
2471 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
2472 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2473 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2474 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 2475
78ba4af6
JB
24762003-10-02 Jim Blandy <jimb@redhat.com>
2477
2478 * dwarf2read.c (struct die_info): Doc fix.
2479
617daa0e
CV
24802003-10-02 Corinna Vinschen <vinschen@redhat.com>
2481
2482 * sh-tdep.c: Running thru gdb_indent.sh.
2483
e5e33cd9
CV
24842003-10-02 Corinna Vinschen <vinschen@redhat.com>
2485
2486 * sh-tdep.c (sh_justify_value_in_reg): New function.
2487 (sh_stack_allocsize): Ditto.
2488 (flt_argreg_array): New array used for floating point argument
2489 passing.
2490 (sh_init_flt_argreg): New function.
a8f4cde1 2491 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
2492 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2493 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
2494 Fix argument passing strategy.
2495 (sh_push_dummy_call_nofpu): Ditto.
2496
5fe830e4
AC
24972003-10-01 Andrew Cagney <cagney@redhat.com>
2498
2499 * value.h (register_value_being_returned): Declare. Replace
2500 "value_being_returned".
2501 * infcall.c (call_function_by_hand): Use
2502 register_value_being_returned.
2503 * infcmd.c (print_return_value): Call
2504 "register_value_being_returned", handle struct return locally.
2505 * values.c (register_value_being_returned): New function. Replace
2506 "value_being_returned".
a8f4cde1 2507
5fe830e4 25082003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
2509
2510 * linux-proc.c (linux_do_registers): New function.
2511 (linux_make_note_section): Use linux_do_registers in case of
2512 single threaded inferior programs.
2513
64f395bf
AC
25142003-10-01 Andrew Cagney <cagney@redhat.com>
2515
2516 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2517 use STRUCT_ADDR. When not using "struct return convention", pass
2518 "0" to "value_being_returned". Add FIXMEs.
2519 * infcmd.c (print_return_value): Pass an explicit 0/1 to
2520 value_being_returned. Add comments.
2521 * values.c (value_being_returned): Add fixme.
2522 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2523 (hppa_value_returned_from_stack): Add FIXME.
2524
639d11d3
DC
25252003-09-30 David Carlton <carlton@kealia.com>
2526
2527 * dwarf2read.c (struct die_info): Add 'parent' field; replace
2528 'has_children' and 'next' by 'child' and 'sibling'.
2529 (read_comp_unit): Rework algorithm, breaking body into
2530 read_die_and_children and read_die_and_siblings.
2531 (read_die_and_children, read_die_and_siblings): New.
2532 (read_full_die): Add 'has_children' argument; set it instead of
2533 the die's 'has_children' field. Minor formatting cleanup.
2534 (free_die_list): Use die->child and die->sibling instead of
2535 die->next.
2536 (dump_die_list): Ditto.
2537 (sibling_die): Use die->sibling.
2538 (psymtab_to_symtab_1): Use die's 'child' field in place of its
2539 'has_children' and 'next' fields.
a8f4cde1
RM
2540 (process_die, read_file_scope, read_func_scope)
2541 (read_lexical_block_scope, read_structure_scope)
2542 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
2543 (read_namespace, read_subroutine_type, dump_die): Ditto.
2544
5bffac25
AC
25452003-09-30 Andrew Cagney <cagney@redhat.com>
2546
2547 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2548 to 224, not 220.
2549
f30992d4
AC
25502003-09-30 Andrew Cagney <cagney@redhat.com>
2551
2552 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2553 REGISTER_VIRTUAL_SIZE.
2554 * gdbarch.h, gdbarch.c: Regenerate.
2555 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2556 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2557 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2558
2e092625
AC
25592003-09-29 Andrew Cagney <cagney@redhat.com>
2560
2561 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
7bb11558 2562 REGISTER_VIRTUAL_TYPE.
2e092625
AC
2563 * gdbarch.h, gdbarch.c: Regenerate.
2564 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2565 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
2566
2567 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2568 * remote-vxmips.c (vx_read_register): Ditto.
2569 * remote-vx68.c (vx_read_register): Ditto.
2570 * gnu-nat.c (inf_validate_procs): Ditto.
2571
7a5dd6ee
JB
25722003-09-29 J. Brobecker <brobecker@gnat.com>
2573
2574 * infcall.c (call_function_by_hand): Fix build failure
2575 introduced in the previous change to this file.
2576
1fe43d45
AC
25772003-09-29 Andrew Cagney <cagney@redhat.com>
2578
2579 * NEWS: Mention Objective-C.
2580
e28a332c
JG
25812003-09-29 Jerome Guitton <guitton@act-europe.fr>
2582
2583 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2584 test if the register has been saved on the stack.
2585 (arm_scan_prologue_cache): When analysing the instruction
2586 "str lr, [sp, #-4]", save the address where lr has been stored.
2587
9ff63c35
AC
25882003-09-28 Andrew Cagney <cagney@redhat.com>
2589
7f5f525d
AC
2590 * frame.c (frame_read_unsigned_register): Delete function.
2591 * frame.h (frame_read_unsigned_register): Delete declaration.
2592 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2593 get_frame_register_unsigned.
2594 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2595 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2596 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 2597
7f5f525d
AC
2598 * frame.h (frame_read_register): Delete declaration.
2599 * frame.c (frame_read_register): Delete function.
2600 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2601 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2602 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2603 * mips-tdep.c (mips_register_to_value): Ditto.
2604 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2605 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2606
2607 * frame.c (frame_read_signed_register): Delete function.
2608 (frame_read_unsigned_register): Update comments.
2609 * frame.h (frame_read_signed_register): Delete declaration.
2610 * h8300-tdep.c (h8300_print_register): Use
2611 get_frame_register_signed.
2612 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2613
9ff63c35
AC
2614 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2615 Rename VALUE_RETURNED_FROM_STACK.
2616 * infcmd.c (print_return_value): Update.
2617 * infcall.c (call_function_by_hand): Update.
2618
41d041d6
MK
26192003-09-28 Mark Kettenis <kettenis@gnu.org>
2620
2621 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2622 regcache argument and reverse the order of the other two
2623 arguments. Remove local regcache variable. Determine
2624 architecture from REGCACHE. Update comments.
2625 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2626 reverse the order of the other two arguments. Remove local
2627 regcache variable. Determine architecture from REGCACHE. Update
2628 comments.
2629 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2630 prototypes. Update comments.
2631 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
2632 comment.
2633 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2634 Update.
2635 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2636 * i386-interix-nat.c (supply_fpregset): Update.
2637 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2638 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2639 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2640 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2641 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2642 Update.
2643 * i386obsd-tdep.c (fetch_core_registers): Update.
2644 * i386v4-nat.c (supply_fpregset): Update.
2645 * x86-64-linux-nat.c (supply_fpregset): Update.
2646 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 2647
1cb97e17
MK
26482003-09-27 Mark Kettenis <kettenis@gnu.org>
2649
5716833c
MK
2650 * i386-tdep.h: Put opaque declarations in alphabetical
2651 order. Remove spurious whitespace.
2652 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2653 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2654 * i386-tdep.c (MM0_REGNUM): Remove define.
2655 (i386_mmx_regnum_p): Add gdbarch argument.
2656 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2657 Rewrite using new macro definitions for FPU/SSE registers.
2658 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2659 definitions from i387-tdep.h.
2660 (i386_register_name): Update.
2661 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2662 new macro definitions for FPU/SSE registers.
2663 (i386_extract_return_value): Determine whether floating-point
2664 registers are present by examining REGCACHE's architecture.
2665 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
2666 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
2667 FPU/SSE registers.
2668 (i386_register_type): Update.
2669 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2670 definitions for FPU registers. Use REGCACHE's architecture to
2671 determine the appropriate register numbers.
2672 (i386_pseudo_register_read, i386_pseudo_register_write,
2673 i386_register_reggroup_p): Update.
2674 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2675 TDEP->mm0_regnum.
2676 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2677 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2678 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2679 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2680 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2681 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2682 *' to `void *'.
2683 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2684 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2685 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2686 definitions for FPU/SSE registers.
2687 (FXSAVE_MXCSR_ADDR): New define.
2688 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2689 TDEP->mm0_regnum.
2690 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2691 (I387_ST0_REGNUM): Define.
2692
41d35cb0
MK
2693 * regcache.h (get_regcache_arch): New prototype.
2694 * regcache.c (get_regcache_arch): New function.
2695
54e74f72
MK
2696 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2697 whitespace.
2698
1cb97e17
MK
2699 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2700 Initialize using ARRAY_SIZE.
2701
0968aa8c
AC
27022003-09-27 Andrew Cagney <cagney@redhat.com>
2703
2704 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2705 "init_frame_pc_default".
2706 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2707 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2708 * vax-tdep.c (vax_gdbarch_init): Update.
2709 * v850-tdep.c (v850_gdbarch_init): Update.
2710 * sh64-tdep.c (sh64_gdbarch_init): Update.
2711 * s390-tdep.c (s390_gdbarch_init): Update.
2712 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2713 * mcore-tdep.c (mcore_gdbarch_init): Update.
2714 * h8300-tdep.c (h8300_gdbarch_init): Update.
2715 * cris-tdep.c (cris_gdbarch_init): Update.
2716 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2717
54c84734
MK
27182003-09-26 Mark Kettenis <kettenis@gnu.org>
2719
2720 * regset.h: New file.
2721 * Makefile.in (regset_h): Add.
2722
1b1d3794
AC
27232003-09-25 Andrew Cagney <cagney@redhat.com>
2724
2725 * frame.h (deprecated_frame_saved_regs): Rename
2726 get_frame_saved_regs.
2727 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2728 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2729 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2730 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2731 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2732
e6beb428
AC
27332003-09-25 Andrew Cagney <cagney@redhat.com>
2734
2735 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2736 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2737 and Java.
2738 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2739 arm*-*-* do not use the new frame code.
2740
710122da
DC
27412003-09-25 David Carlton <carlton@kealia.com>
2742
2743 * c-exp.y: Remove 'register' declarations.
2744 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2745
79c2c32d
DC
27462003-09-25 David Carlton <carlton@kealia.com>
2747
2748 * c-exp.y: Include cp-support.h. Add qualified_type.
2749 (yylex): Delete nested type hack; add comments.
2750 * cp-namespace.c (cp_lookup_nested_type): New function.
2751 * cp-support.h: Declare cp_lookup_nested_type.
2752 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2753 instead of value_struct_elt_for_reference.
2754 * valops.c: Include cp-support.h.
2755 (value_aggregate_elt): New function.
2756 (value_namespace_elt): Ditto.
2757 (value_struct_elt_for_reference): Make static.
2758 * value.h: Delete declaration of value_struct_elt_for_reference;
2759 add declaration for value_aggregate_elt.
2760 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2761 (valops.o): Ditto.
2762
898c62f5
DJ
27632003-09-25 Daniel Jacobowitz <drow@mvista.com>
2764
2765 * stack.c: Include "reggroups.h".
2766 (frame_info): Only display registers in all_reggroup.
2767 * Makefile.in (stack.o): Update dependencies.
2768
28cd8767
JG
27692003-09-25 Jerome Guitton <guitton@act-europe.fr>
2770
2771 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2772 "add ip, sp #n" in the prologue.
2773 (arm_scan_prologue): Ditto.
2774
a4ab2b5d
JG
27752003-09-25 Jerome Guitton <guitton@act-europe.fr>
2776
2777 * MAINTAINERS (write after approval): Add myself.
2778
3f244638
AS
27792003-09-25 Andreas Schwab <schwab@suse.de>
2780
2781 * m68k-tdep.c: Include "dwarf2-frame.h".
2782 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2783 * Makefile.in (m68k-tdep.o): Update dependencies.
2784
1c0159e0
CV
27852003-09-25 Corinna Vinschen <vinschen@redhat.com>
2786
2787 * sh-tdep.c (struct frame_extra_info): Remove.
2788 (struct sh_frame_cache): New structure.
2789 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2790 (GET_TARGET_REG): Ditto but target register.
2791 (GET_PUSHED_REG): Remove.
2792 (IS_MOV_ARG_TO_REG): New macro.
2793 (IS_MOV_ARG_TO_IND_R14): New macro.
2794 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2795 (IS_MOVW_PCREL_TO_REG): New macro.
2796 (IS_MOVL_PCREL_TO_REG): New macro.
2797 (IS_SUB_REG_FROM_SP): New macro.
2798 (IS_ARG_MOV): Remove.
2799 (IS_MOV_TO_R14): Remove.
2800 (IS_RESTORE_FP): New macro.
2801 (IS_RTS): New macro.
2802 (IS_LDS): New macro.
2803 (IS_MOV_FP_SP): New macro.
2804 (IS_ADD_REG_TO_FP): New macro.
2805 (IS_ADD_IMM_FP): New macro.
2806 (sh_skip_prologue_hard_way): Remove.
2807 (sh_saved_pc_after_call): Remove.
2808 (sh_frame_chain): Remove.
2809 (sh_find_callers_reg): Remove.
a8f4cde1 2810 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
2811 (sh_fp_frame_init_saved_regs): Remove.
2812 (sh_init_extra_frame_info): Remove.
2813 (sh_analyze_prologue): New function.
2814 (sh_skip_prologue): Remove deprecated code. Rely on new function
2815 sh_analyze_prologue when after_prologue fails.
2816 (sh_frame_saved_pc): Remove.
2817 (sh_alloc_frame_cache): New function.
2818 (sh_frame_cache): Ditto.
2819 (sh_frame_prev_register): Ditto.
2820 (sh_frame_this_id): Ditto.
2821 (sh_frame_unwind): New structure defining the heuristic frame
2822 sniffer interface.
2823 (sh_frame_sniffer): New function.
2824 (sh_unwind_sp): Ditto.
2825 (sh_unwind_pc): Ditto.
2826 (sh_unwind_dummy_id): Ditto.
2827 (sh_frame_base_address): Ditto.
2828 (sh_frame_base): New structure defining new frame base code.
2829 (sh_in_function_epilogue_p): New function.
2830 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2831 code and to call all new code instead. Initialize dwarf2 and
2832 heuristic frame sniffer.
2833
5f9769d1
PH
28342003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2835
a8f4cde1
RM
2836 * parser-defs.h (struct exp_descriptor): New definition, containing
2837 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
2838 evaluating expressions.
2839 (exp_descriptor_standard): Declare new variable.
2840 (print_subexp): Make global and declare here (from expprint.c).
2841 (dump_subexp): Ditto.
2842 (dump_subexp_body_standard): Declare.
2843 (operator_length_standard): Declare.
2844 (op_name_standard): Declare.
2845 (print_subexp): Declare.
2846 (print_subexp_standard): Declare.
2847
2848 * language.h (struct language_defn): Add la_exp_desc field to hold
2849 pointer to table for language-specific operators.
2850 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
2851
2852 * parse.c (operator_length): Move most code to new
5f9769d1 2853 operator_length_standard function. Use language-specific information.
a8f4cde1 2854 (operator_length_standard): New function taking most code from
5f9769d1
PH
2855 operator_length.
2856 (exp_descriptor_standard): New constant.
a8f4cde1
RM
2857
2858 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 2859 and OP_EXTENDED_LAST.
a8f4cde1
RM
2860
2861 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
2862 Make global; remove static declaration.
2863 Move most code to print_subexp_standard.
a8f4cde1 2864 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
2865 print_subexp.
2866 (op_name): Add expression to argument signature.
a8f4cde1 2867 Use langauge-specific op_name.
5f9769d1
PH
2868 Move most code to op_name_standard.
2869 (op_name_standard): New function, containing code formerly in op_name.
2870 (dump_subexp): Use new version of op_name function.
2871 Use language-specific dump_subexp_body, and move most existing code to
2872 dump_subexp_body_standard.
2873 (dump_raw_expression): Use new op_name interface.
2874 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2875 (dump_subexp_body_standard): New function, containing code formerly
2876 in dump_subexp_body.
a8f4cde1 2877
5f9769d1
PH
2878 * language.c (unknown_language): Add default la_exp_desc field and
2879 remove evaluate_exp field.
2880 (auto_language): Ditto.
2881 (local_language): Ditto.
2882 * f-lang.c (f_language_defn): Ditto.
2883 * c-lang.c (c_language_defn): Ditto.
2884 (cplus_language_defn): Ditto.
2885 (asm_language_defn): Ditto.
2886 (minimal_language_defn): Ditto.
2887 * p-lang.c (pascal_language_defn): Ditto.
2888 * m2-lang.c (m2_language_defn): Ditto.
2889 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
2890
2891 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
2892 Java-specific expression evaluator.
2893 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2894 field.
a8f4cde1 2895 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
2896 Scheme-specific expression evaluator.
2897 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2898 field.
2899 * objc-lang.c (print_object_command): Take evaluate_exp from the
2900 la_exp_desc field.
a8f4cde1 2901
5f9769d1 2902 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
2903
2904 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
2905 la_exp_desc's type.
2906 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 2907
24daaebc
PH
29082003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2909
2910 * parser-defs.h (operator_length): Declare.
a8f4cde1 2911
24daaebc
PH
2912 * parse.c (length_of_subexp): Use operator_length to get operator
2913 lengths and arities for operators.
2914 Move most code to new operator_length function.
a8f4cde1 2915 (operator_length): New function absorbing most code from
24daaebc
PH
2916 length_of_subexp.
2917 (prefixify_subexp): Remove large case and use operator_length instead.
2918 (parse_exp_1): Use renamings:
a8f4cde1 2919 dump_prefix_expression => dump_raw_expression and
24daaebc 2920 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 2921
24daaebc
PH
2922 * expression.h (dump_prefix_expression): Rename to ...
2923 (dump_raw_expression): New name.
2924 (dump_postfix_expression): Rename to ...
2925 (dump_prefix_expression): New name.
a8f4cde1 2926
24daaebc
PH
2927 * expprint.c (dump_subexp): Make global. Add comment.
2928 Move most existing code to dump_subexp_body.
2929 (dump_subexp_body): New function.
2930 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 2931 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
2932 work before the expression is prefixified.
2933 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 2934 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 2935 that's what it does.
a8f4cde1 2936 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
2937 prefixified expression.
2938 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 2939
8c2957c4
JB
29402003-09-22 Jim Blandy <jimb@redhat.com>
2941
2942 * dwarf2read.c (read_array_type): When building the type for an
2943 array of unspecified length, make sure to choose the upper bound
2944 so that the array's total length comes out to be zero --- that's
2945 how we represent such arrays.
2946
592e3010
MC
29472003-09-22 Michael Chastain <mec@shout.net>
2948
2949 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2950
365c70b1
JJ
29512003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2952
2953 * top.c (quit_force): Fix indirect call to quit_target so
2954 a struct qt_args pointer is passed.
2955
5d6eb653
AC
29562003-09-22 Andrew Cagney <cagney@redhat.com>
2957
2958 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2959 * arch-utils.c (init_frame_pc_noop): Delete function.
2960 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2961 "init_frame_pc".
2962 * mips-tdep.c (mips_gdbarch_init): Ditto.
2963 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2964 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2965 declaration.
2966 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2967 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2968 declaration.
2969 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2970
b222a67f
AG
29712003-09-22 Anthony Green <green@redhat.com>
2972
2973 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2974 declaration.
2975
d5b5ac79
AC
29762003-09-20 Andrew Cagney <cagney@redhat.com>
2977
deafb061
AC
2978 * breakpoint.c: Eliminate ARGSUSED.
2979 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2980 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2981 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2982 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2983 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2984 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2985 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2986 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2987 * wince.c, remote-vx.c: Ditto.
2988
d5b5ac79
AC
2989 * cli/cli-script.c: Remove "register" attributes.
2990 * config/pa/tm-hppa.h: Ditto.
2991 * cli/cli-decode.c: Ditto.
2992 * cli/cli-cmds.c: Ditto.
2993
c6316faa
AC
29942003-09-19 Andrew Cagney <cagney@redhat.com>
2995
2996 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2997 DEPRECATED_NPC_REGNUM.
2998 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2999
f4f99b11
CF
30002003-09-19 Christopher Faylor <cgf@redhat.com>
3001
3002 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
3003
1708f284
JB
30042003-09-19 Jim Blandy <jimb@redhat.com>
3005
3006 * macrotab.c (macro_include): Use the correct comparison to find
3007 the appropriate place for this inclusion in the list.
3008
b9fbf434
AC
30092003-09-19 Andrew Cagney <cagney@redhat.com>
3010
3011 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
3012 (DEPRECATED_HPUX_TEXT_END): Define.
3013 (deprecated_hpux_text_end): Declare.
3014 (struct target_ops): Declare opaque.
3015 * hppah-nat.c (text_end): Make static.
3016 (deprecated_hpux_text_end): New function.
3017 * exec.c (text_end): Delete global variable.
3018 (NEED_TEXT_START_END): Do not define.
3019 (exec_file_attach): Replace code computing "text_end" code with
3020 call to DEPRECATED_HPUX_TEXT_END.
3021
5b03f266
AC
30222003-09-19 Andrew Cagney <cagney@redhat.com>
3023
3024 * utils.c (align_up, align_down): New functions.
3025 * defs.h (align_up, align_down): Declare.
3026 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
3027 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
3028 and "align_down".
3029 (round_up, round_down): Delete functions.
3030 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
3031 "align_down".
3032 (ROUND_DOWN, ROUND_UP): Delete macros.
3033 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
3034 * h8300-tdep.c: Replace "round_up" and "round_down" with
3035 "align_up" and "align_down".
3036 (round_up, round_down): Delete macros.
3037 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
3038 "align_down".
3039 (ROUND_UP, ROUND_DOWN): Delete macros.
3040
51db5742
JB
30412003-09-18 J. Brobecker <brobecker@gnat.com>
3042
3043 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
3044 hard-coded constant. Use the proper machine name instead.
3045
77949794
AC
30462003-09-17 Andrew Cagney <cagney@redhat.com>
3047
3048 * sparc-tdep.c (legacy_register_name): Delete function.
3049 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
3050 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
3051 * infcmd.c (gdb_register_name): Delete variable.
3052 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
3053 REGISTER_NAME and "tm.h".
3054 * gdbarch.h, gdbarch.c: Regenerate.
3055 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
3056 REGISTER_NAMES in comments.
3057 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
3058 * m68klinux-nat.c (regmap): Ditto.
3059
b55c33cc
JB
30602003-09-17 Jim Blandy <jimb@redhat.com>
3061
3062 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
3063
957e27ac
AC
30642003-09-17 Andrew Cagney <cagney@redhat.com>
3065
3066 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
3067 (ppcnbsd_init_abi): Set "use_struct_convention" to
3068 "ppcnbsd_use_struct_convention".
3069
192cb3d4
MK
30702003-09-17 Mark Kettenis <kettenis@gnu.org>
3071
3072 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
3073 * gdbarch.h, gdbarch.c: Regenerate.
3074 (stabs_argument_has_addr): New architecture method.
3075 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
3076 * arch-utils.c: Include "buildsym.h".
3077 (default_stabs_argument_has_addr): New function.
3078 * stabsread.c (define_symbol): Use stabs_argument_has_addr
3079 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
3080
efe59759
AC
30812003-09-17 Andrew Cagney <cagney@redhat.com>
3082
3083 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
3084 * gdbarch.h, gdbarch.c: Regenerate.
3085 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
3086 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
3087 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
3088 * sparcnbsd-tdep.c: Update.
a8f4cde1 3089
62700349
AC
30902003-09-17 Andrew Cagney <cagney@redhat.com>
3091
3092 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
3093 * gdbarch.h, gdbarch.c: Regenerate.
3094 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
3095 * d10v-tdep.c, frame.c: Update.
3096 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
3097 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
3098 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
3099 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
3100 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
3101 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
3102 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
3103 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
3104 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
3105 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
3106 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
3107 * config/pa/nm-hppah.h: Update.
3108
b9ff3018
AC
31092003-09-16 Andrew Cagney <cagney@redhat.com>
3110
3111 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
3112 "use_struct_convention" to "ppc_linux_use_struct_convention".
3113 (ppc_linux_use_struct_convention): New function.
3114 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
3115 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
3116 "rs6000_use_struct_convention".
3117 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
3118 declaration.
3119 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
3120 Delete function.
3121
aa1ee363
AC
31222003-09-16 Andrew Cagney <cagney@redhat.com>
3123
3124 * buildsym.c: Remove more occurances of "register".
3125 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
3126 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
3127 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
3128 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
3129 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
3130 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
3131 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
3132 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
3133
f2ea0907
CV
31342003-09-16 Corinna Vinschen <vinschen@redhat.com>
3135
3136 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
3137 numbers to enumeration values.
3138 * sh-tdep.c: Accomodate above change.
3139 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
3140 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
3141 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
3142 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
3143 (IS_FPUSH): Rename from IS_FMOV.
3144 (sh_extract_struct_value_address): Remove useless comment.
3145 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
3146 instead of own local values.
3147 (sh_dump_tdep): Remove.
3148 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
3149 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
3150
1c704f11
AC
31512003-09-15 Andrew Cagney <cagney@redhat.com>
3152
3153 * doublest.c (convert_floatformat_to_doublest): No longer need to
3154 cast "exp_bias" to an int. Reverts 2002-12-04 change.
3155
ac79b88b
DJ
31562003-09-15 Daniel Jacobowitz <drow@mvista.com>
3157
3158 * values.c (unpack_double): Call floatformat_is_valid.
3159
1c671366
MK
31602003-09-15 Mark Kettenis <kettenis@gnu.org>
3161
de5227fb
MK
3162 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
3163 ps_strings into a long.
3164
1c671366
MK
3165 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
3166 _initialize_am64fbsd_nat.
3167
a604369a
KB
31682003-09-15 Kevin Buettner <kevinb@redhat.com>
3169
3170 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
3171 associated with DW_AT_ranges attribute is out of bounds.
3172
b3cacbee
DL
31732003-09-15 David Lecomber <dsl@sources.redhat.com>
3174
3175 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
3176
d0f37bb2
MC
31772003-09-14 Michael Chastain <mec@shout.net>
3178
3179 * config/m68k/nm-apollo68v.h: Delete.
3180 * config/m68k/xm-apollo68v.h: Delete.
3181
69517000
AC
31822003-09-14 Andrew Cagney <cagney@redhat.com>
3183
3184 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
3185 * dcache.c: Update copyrights and descriptions.
3186 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
3187
ef8b349d
AC
31882003-09-14 Andrew Cagney <cagney@redhat.com>
3189
3190 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
3191 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
3192
52f0bd74
AC
31932003-09-14 Andrew Cagney <cagney@redhat.com>
3194
3195 * alpha-nat.c: Remove some occurances of "register".
3196 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
3197 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
3198 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
3199 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
3200 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
3201 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
3202 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
3203 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
3204 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
3205 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
3206 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
3207 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
3208 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
3209 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
3210 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
3211 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
3212 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
3213 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
3214 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
3215 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
3216 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
3217 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 3218
4a4b3fed
AC
32192003-09-13 Andrew Cagney <cagney@redhat.com>
3220
3221 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
3222 * ppc-tdep.h (struct regcache): Declare opaque.
3223 * objfiles.h (struct objfile_data): Declare opaque.
3224 * cp-support.h (struct objfile): Declare opaque.
3225 * linux-nat.h (target_waitstatus): Declare opaque.
3226
2110b94f
MK
32272003-09-14 Mark Kettenis <kettenis@gnu.org>
3228
1c671366
MK
3229 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
3230 (stabs_argument_has_addr): New architecture method.
3231 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
3232 * arch-utils.c: Include "buildsym.h".
3233 (default_stabs_argument_has_addr): New function.
3234 * stabsread.c (define_symbol): Use stabs_argument_has_addr
3235 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
3236
2110b94f
MK
3237 * cris-tdep.c (cris_gdbarch_init): Set
3238 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
3239 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3240 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
3241 * mips-tdep.c (mips_gdbarch_init): Likewise.
3242 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3243 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3244
48436ce6
AC
32452003-09-13 Andrew Cagney <cagney@redhat.com>
3246
3247 * values.c (using_struct_return): Delete "function" and "funcaddr"
3248 parameters.
3249 * value.h (using_struct_return): Update declaration.
3250 * infcmd.c (finish_command_continuation): Update.
3251 (finish_command): Update.
3252 * infcall.c (call_function_by_hand): Update.
3253 * eval.c (evaluate_subexp_standard): Update.
3254
403d9909
CF
32552003-09-13 Christopher Faylor <cgf@redhat.com>
3256
3257 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
3258 SSE registers since gdb will not operate correctly without this.
3259 Restore include file ordering munged in previous change.
3260 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
3261
ebf7d56b
MK
32622003-09-13 Mark Kettenis <kettenis@gnu.org>
3263
8e823e25
MK
3264 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
3265 REG_STRUCT_HAS_ADDR.
3266 * gdbarch.c, gdbarch.h: Updated.
3267 * infcall.c (call_function_by_hand): Update.
3268 * stabsread.c (define_symbol): Updated.
a8f4cde1 3269
ebf7d56b
MK
3270 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
3271
d3f13f72
CF
32722003-09-12 Christopher Faylor <cgf@redhat.com>
3273
3274 * win32-nat.c: Reorganize so that defines used by target headers are
3275 actually defined by the system headers.
3276 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
3277 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
3278
14f75137
JB
32792003-09-12 Jim Blandy <jimb@redhat.com>
3280
d646061f
JB
3281 * dbxread.c (read_dbx_symtab): Don't report an internal error if
3282 the file has no .data, .bss, or .rodata sections. Instead wait
3283 until we see a variable alleged to live in one of those sections.
3284
2a13f9bc
JB
3285 * dbxread.c (read_dbx_symtab): If we have no .data section and no
3286 .bss section, presume that any variables we find live in the
3287 .rodata section.
3288
4f49b26b
JB
3289 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
3290 offsets for global and static variables.
3291
14f75137
JB
3292 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
3293 symbol types are, by definition, in the .data section, so it is
3294 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
3295 If there is no .data section, there should be no N_DATA or N_DATA
3296 | N_EXT symbols.
3297
212c460c
MK
32982003-09-12 Mark Kettenis <kettenis@gnu.org>
3299
3300 * amd64fbsd-tdep.c: Fix sigtramp recognition.
3301 (amd64fbsd_sigcontext_addr): Rewrite.
3302 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
3303 with correct values.
3304 (amd64fbsd_sc_reg_offset): Initialize with correct values.
3305 (amd64fbsd_init_abi): Fix typo.
3306
68856ea3
AC
33072003-09-12 Andrew Cagney <cagney@redhat.com>
3308
3309 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
3310 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
3311
627b3ba2
AC
33122003-09-12 Andrew Cagney <cagney@redhat.com>
3313
3314 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
3315 "entry_file_highpc". Update comments.
3316 * defs.h (deprecated_inside_entry_file): Rename
3317 "inside_entry_file".
3318 * blockframe.c (deprecated_inside_entry_file): Rename
3319 "inside_entry_file".
3320 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
3321 * vax-tdep.c (vax_frame_chain): Update.
3322 * sh64-tdep.c (sh64_frame_chain): Update.
3323 * sh-tdep.c (sh_frame_chain): Update.
3324 * rs6000-tdep.c (rs6000_frame_chain): Update.
3325 * ns32k-tdep.c (ns32k_frame_chain): Update.
3326 * mips-tdep.c (mips_frame_chain): Update.
3327 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
3328 * m32r-tdep.c (m32r_frame_this_id): Update.
3329 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
3330 * frv-tdep.c (frv_frame_this_id): Update.
3331 * d10v-tdep.c (d10v_frame_this_id): Update.
3332 * cris-tdep.c (cris_frame_chain): Update.
3333 * blockframe.c (legacy_frame_chain_valid): Update.
3334 * avr-tdep.c (avr_frame_this_id): Update.
3335 * arm-tdep.c (arm_prologue_this_id): Update.
3336 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
3337 * objfiles.c (objfile_relocate): Update.
3338 * mipsread.c (mipscoff_symfile_read): Update.
3339 (mipscoff_symfile_read): Update.
3340 * mdebugread.c (parse_partial_symbols): Update.
3341 * dwarfread.c (read_file_scope): Update.
3342 * dwarf2read.c (read_file_scope): Update.
3343 * dbxread.c (read_dbx_symtab): Update.
3344 (read_dbx_symtab): Update.
3345 * coffread.c (complete_symtab): Update.
3346
b0abbc58
JJ
33472003-09-12 Jeff Johnston <jjohnstn@redhat.com>
3348
3349 * top.c (quit_target): New static helper function.
3350 (quit_force): Moved code to quit_target(). Call quit_target()
3351 via catch_errors() to catch errors during quit.
3352
a1632d59
DC
33532003-09-11 David Carlton <carlton@kealia.com>
3354
3355 * buildsym.c (finish_block): Use allocate_block to allocate the
3356 block.
3357 * mdebugread.c (new_block): Add FIXME.
3358
5c4e30ca
DC
33592003-09-11 David Carlton <carlton@kealia.com>
3360
3361 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
3362 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
3363 (recursive_dump_type): Ditto.
3364 * printcmd.c (print_formatted): Ditto.
3365 * typeprint.c (print_type_scalar): Ditto.
3366 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
3367 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
3368 * cp-support.h: Declare cp_check_possible_namespace_symbols,
3369 maint_cplus_cmd_list.
3370 * cp-support.c: Make maint_cplus_cmd_list extern.
3371 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
3372 command.h.
3373 (lookup_symbol_file): Look in possible namespace blocks when
3374 appropriate.
3375 (initialize_namespace_symtab): New.
3376 (get_possible_namespace_block, free_namespace_block)
3377 (check_possible_namespace_symbols)
3378 (check_possible_namespace_symbols_loop)
3379 (check_one_possible_namespace_symbol)
3380 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
3381 (_initialize_cp_namespace): Ditto.
3382 * block.h: Declare allocate_block.
3383 * block.c (allocate_block): New.
3384 * jv-lang.c (get_java_class_symtab): Allocate blocks via
3385 allocate_block.
3386 * symfile.h: Update declaration of add_psymbol_to_list.
3387 * symfile.c (add_psymbol_to_list): Return the partial symbol in
3388 question.
3389 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
3390 scan_partial_symbols_call.
3391 (scan_partial_symbols): Add NAMESPACE argument; update calls to
3392 helper functions.
3393 (add_partial_symbol): If necessary, scan mangled names for names
3394 of namespaces.
3395 (add_partial_namespace): Add NAMESPACE argument; generate partial
3396 symbols associated to namespaces.
3397 (add_partial_enumeration): Add NAMESPACE argument.
3398 (new_symbol): Allow namespace syms.
3399 (read_namespace): Generate namespace syms.
3400 * objfiles.h: Add opaque declaration of struct symtab.
3401 (struct objfile): Add cp_namespace_symtab member.
3402 * objfiles.c (allocate_objfile): Set
3403 objfile->cp_namespace_symtab.
3404 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
3405 dictionary_h, command_h.
3406
33a7c2fc
AC
34072003-09-11 Andrew Cagney <cagney@redhat.com>
3408
3409 * rs6000-tdep.c (rs6000_push_dummy_call): Use
3410 regcache_raw_write_signed to set SP_REGNUM, move the operation to
3411 near the function's end.
3412 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
3413 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
3414 regcache_raw_write_signed to set SP_REGNUM.
3415
63cd24fe
EZ
34162003-09-11 Elena Zannoni <ezannoni@redhat.com>
3417
3418 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
3419 orig_addrs is set up properly.
3420
f27dd7fd
AC
34212003-09-11 Andrew Cagney <cagney@redhat.com>
3422
3423 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
3424 * gdbarch.h, gdbarch.c: Re-generate.
3425 * infcall.c (call_function_by_hand): Update.
3426 * hppa-tdep.c (hppa_push_arguments): Update.
3427 * ada-lang.c (place_on_stack): Update.
3428 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3429 * sparc-tdep.c (sparc_gdbarch_init): Update.
3430 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3431 * hppa-tdep.c (hppa_gdbarch_init): Update.
3432 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
3433 stack_align.
3434
f630a401
DJ
34352003-09-11 Daniel Jacobowitz <drow@mvista.com>
3436
3437 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3438 register do need a frame.
3439
0ddabb4c
AC
34402003-09-11 Andrew Cagney <cagney@redhat.com>
3441
3442 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
3443 buildable since GDB 5.0.
3444 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
3445 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
3446 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
3447 * irix4-nat.c: Delete file.
3448 * config/mips/irix4.mh: Delete file.
3449 * config/mips/irix3.mh: Delete file.
3450 * config/mips/irix3.mt: Delete file.
3451 * config/mips/tm-irix3.h: Delete file.
3452 * config/mips/nm-irix3.h: Delete file.
3453 * config/mips/xm-irix3.h: Delete file.
3454 * config/mips/nm-irix4.h: Delete file.
3455 * config/mips/xm-irix4.h: Delete file.
3456 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
3457
fde2cceb
JB
34582003-09-10 J. Brobecker <brobecker@gnat.com>
3459
3460 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3461 * Makefile.in (hppa-tdep.o): Update dependencies.
3462
66f667f5
JW
34632003-09-10 James E Wilson <wilson@specifixinc.com>
3464
ef5fd69f
JW
3465 * MAINTAINERS: Change my e-mail address. Move to paper trail
3466 section.
66f667f5 3467
53e8aaea
KB
34682003-09-10 Kevin Buettner <kevinb@redhat.com>
3469
3470 * MAINTAINERS (frv): New ISA entry.
3471
dcc6aaff
KB
34722003-09-10 Kevin Buettner <kevinb@redhat.com>
3473
3474 * frv-tdep.c (dis-asm.h): Include.
3475 * Makefile.in (frv-tdep.o): Update dependencies.
3476
932644f0
JJ
34772003-09-09 Jeff Johnston <jjohnstn@redhat.com>
3478
3479 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3480 Fix typo for high range of floating registers.
3481
91c24f0a
DC
34822003-09-09 David Carlton <carlton@kealia.com>
3483
3484 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3485 highpc initialization here out of scan_partial_symbols.
3486 (scan_partial_symbols): Restructure into a recursive version,
3487 calling add_partial_namespace and add_partial_enumeration when
3488 appropriate.
3489 (add_partial_namespace): New.
3490 (add_partial_enumeration, locate_pdi_sibling): Ditto.
3491
c9263853
AC
34922003-09-09 Andrew Cagney <cagney@redhat.com>
3493
e56a0ecc
AC
3494 * rs6000-tdep.c (ppc_push_return_address): Delete function.
3495 (rs6000_push_dummy_call): Set LR to BP_ADDR.
3496 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3497 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3498
794a477a
AC
3499 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3500 (rs6000_push_dummy_call): Set the "TOC" register.
3501
c9263853
AC
3502 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3503 methods "max_register_raw_size", "max_register_virtual_size" or
3504 "register_virtual_size".
3505
afa7d0b2
ILT
35062003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
3507
3508 * MAINTAINERS: Update my e-mail address.
3509
7a41266b
AC
35102003-09-09 Andrew Cagney <cagney@redhat.com>
3511
3512 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3513 (rs6000_push_dummy_call): Store the struct return address.
3514 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3515
77b2b6d4
AC
35162003-09-09 Andrew Cagney <cagney@redhat.com>
3517
3518 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3519 "ppc_sysv_abi_push_arguments".
3520 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3521 "ppc_sysv_abi_push_arguments".
3522 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3523 instead of "push_arguments".
3524 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3525
e8a7b686
AC
35262003-09-09 Andrew Cagney <cagney@redhat.com>
3527
3528 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3529 instead of CALL_DUMMY_ADDRESS.
3530
f86f5ca3
PH
35312003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
3532
3533 * p-lang.c: Eliminate "register".
3534 * c-lang.c: Ditto.
3535 * expprint.c: Ditto.
3536 * f-lang.c: Ditto.
3537 * jv-lang.c: Ditto.
3538 * language.c: Ditto.
3539 * m2-lang.c: Ditto.
3540 * parse.c: Ditto.
3541 * scm-lang.c: Ditto.
3542 * objc-lang.c: Ditto.
3543
83ee270e
NC
35442003-09-09 Nick Clifton <nickc@redhat.com>
3545
3546 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3547
a89aa300
AC
35482003-09-04 Andrew Cagney <cagney@redhat.com>
3549
3550 * avr-tdep.c: Include "dis-asm.h".
3551 * cris-tdep.c: Include "dis-asm.h".
3552 (cris_delayed_get_disassembler): Use "struct disassemble_info"
3553 instead of corresponding typedef.
3554 * h8300-tdep.c: Include "dis-asm.h".
3555 * ia64-tdep.c: Include "dis-asm.h".
3556 * i386-tdep.c: Include "dis-asm.h".
3557 (i386_print_insn): Use "struct disassemble_info" instead of
3558 corresponding typedef.
3559 * m68k-tdep.c: Include "dis-asm.h".
3560 * mcore-tdep.c: Include "dis-asm.h".
3561 * mips-tdep.c: Include "dis-asm.h".
3562 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3563 instead of corresponding typedef.
3564 * ns32k-tdep.c: Include "dis-asm.h".
3565 * s390-tdep.c: Include "dis-asm.h".
3566 * sparc-tdep.c: Include "dis-asm.h".
3567 * vax-tdep.c: Include "dis-asm.h".
3568 * v850-tdep.c: Include "dis-asm.h".
3569 * mn10300-tdep.c: Include "dis-asm.h".
3570 * rs6000-tdep.c: Include "dis-asm.h".
3571 * xstormy16-tdep.c: Include "dis-asm.h".
3572 (_initialize_xstormy16_tdep): Delete "extern" declaration of
3573 print_insn_xstormy16.
3574 * Makefile.in (v850-tdep.o): Update dependencies.
3575 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3576 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3577 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3578 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3579 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3580 (gdbarch_h): Remove $(dis_asm_h).
3581 * disasm.c: Include "dis-asm.h".
3582 (dis_asm_read_memory): Use "struct disassemble_info" instead of
3583 corresponding typedef.
3584 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3585 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3586 * gdbarch.sh: Do not include "dis-asm.h".
3587 (struct disassemble_info): Declare opaque.
3588 (TARGET_PRINT_INSN): Update declaration.
3589 * gdbarch.h, gdbarch.c: Re-generate.
3590
88a82a65
AC
35912003-09-08 Andrew Cagney <cagney@redhat.com>
3592
3593 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3594 CALL_DUMMY_ADDRESS, change to a predicate.
3595 * gdbarch.h, gdbarch.c: Re-generate.
3596 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3597 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3598 * infcall.c (call_function_by_hand): Ditto.
3599 * sparc-tdep.c (sparc_push_return_address): Ditto.
3600 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3601 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3602 CALL_DUMMY_ADDRESS with entry_point_address.
3603 * v850-tdep.c (v850_push_return_address): Ditto.
3604 * s390-tdep.c (s390_push_return_address): Ditto.
3605 * rs6000-tdep.c (ppc_push_return_address): Ditto.
3606 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3607 * mcore-tdep.c (mcore_push_return_address): Ditto.
3608 * cris-tdep.c (cris_push_return_address): Ditto.
3609 * arm-tdep.c (arm_push_return_address): Ditto.
3610
3e2c4033
AC
36112003-09-08 Andrew Cagney <cagney@redhat.com>
3612
3613 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3614 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3615 and REG_UNMODIFIED to REG_SAME_VALUE.
3616 (execute_cfa_program): Update.
3617 (dwarf2_frame_cache): Update. Initialize table to
3618 REG_UNSPECIFIED, complain if CFI fails to specify a register's
3619 location.
3620 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
3621
39efb398
AC
36222003-09-08 Andrew Cagney <cagney@redhat.com>
3623
3624 * gnu-nat.c: Remove "inline" function attribute.
3625 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3626
f5cb5aca
KB
36272003-09-08 Kevin Buettner <kevinb@redhat.com>
3628
3629 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3630 target.
3631
1cb761c7
KB
36322003-09-08 Kevin Buettner <kevinb@redhat.com>
3633
3634 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3635 (frame_extra_info): Rename this struct to frv_unwind_cache.
3636 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3637 Add fields ``prev_sp'' and ``base''.
3638 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3639 (frv_saved_pc_after_call, frv_init_extra_frame_info)
3640 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3641 Delete.
3642 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3643 Revise all callers. Fill in the unwind cache argument and make
3644 other adjustments to account for new frame mechanisms.
3645 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3646 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3647 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3648 (frv_frame_unwind, frv_frame_base): New structs.
3649 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
3650 additional arguments expected by this method and adjust function
3651 body accordingly.
3652 (frv_gdbarch_init): Remove calls to the following functions:
3653 set_gdbarch_deprecated_init_frame_pc(),
3654 set_gdbarch_deprecated_saved_pc_after_call(),
3655 set_gdbarch_deprecated_frame_chain(),
3656 set_gdbarch_deprecated_frame_saved_pc(),
3657 set_gdbarch_deprecated_frame_init_saved_regs(),
3658 set_gdbarch_deprecated_push_arguments(),
3659 set_gdbarch_deprecated_push_return_address(),
3660 set_gdbarch_deprecated_pop_frame(),
3661 set_gdbarch_deprecated_call_dummy_words(),
3662 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3663 set_gdbarch_deprecated_init_extra_frame_info(),
3664 set_gdbarch_deprecated_dummy_write_sp(), and
3665 set_gdbarch_deprecated_pc_in_call_dummy().
3666 Add calls to the following functions:
3667 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3668 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3669 frame_base_set_default().
3670 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 3671
68f6cf99
MK
36722003-09-09 Mark Kettenis <kettenis@gnu.org>
3673
3674 * dwarf2-frame.c (read_encoded_value): Add support for
3675 DW_EH_PE_aligned encoding.
3676
73b65bb0
DJ
36772003-09-08 Daniel Jacobowitz <drow@mvista.com>
3678
3679 * infrun.c (normal_stop): Don't print a message if the inferior
3680 has exited.
3681
7c8a5605
JB
36822003-09-08 Jim Blandy <jimb@redhat.com>
3683
3684 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3685 * dbxread.c: #include "gdb_assert.h".
3686 (read_dbx_symtab): If the objfile has no .data section, use the
3687 section index for the .bss section instead.
3688
7dd88986
DJ
36892003-09-08 Daniel Jacobowitz <drow@mvista.com>
3690
3691 * frame.c (deprecated_safe_get_selected_frame): New function.
3692 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3693 * findvar.c (read_var_value): Call it.
3694
55ff77ac
CV
36952003-09-08 Corinna Vinschen <vinschen@redhat.com>
3696
3697 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3698 (sh64-tdep.o): Add dependencies.
3699 * configure.tgt: Add FIXME to sh-*-linux*.
3700 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3701 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 3702 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
3703 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3704 * sh64-tdep.c: New file, containing all sh64 related code from
3705 sh-tdep.c.
3706 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3707 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 3708 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
3709 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3710 * config/sh/wince.mt (TDEPFILES): Ditto.
3711
bfb39158
DJ
37122003-09-07 Daniel Jacobowitz <drow@mvista.com>
3713
3714 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3715 (stop_wait_callback): Handle !lp->signalled also.
3716 (lin_lwp_has_pending, flush_callback): New functions.
3717 (lin_lwp_wait): Call flush_callback.
3718 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3719 (linux_proc_pending_signals): New function.
3720 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3721
9407de8e
DJ
37222003-09-07 Daniel Jacobowitz <drow@mvista.com>
3723
3724 From Nick Kelsey <nickk@ubicom.com>:
3725 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3726 when the stop PC is at the beginning of a function also.
3727
2ef47cd0
DJ
37282003-09-06 Daniel Jacobowitz <drow@mvista.com>
3729
3730 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3731 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3732
6f4492c8
MK
37332003-09-06 Mark Kettenis <kettenis@gnu.org>
3734
3735 * sol-thread.c: Include "gdb_string.h".
3736
d3420b2f
MK
37372003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3738
3739 * gcore.c: Reorder include files in alphabetical order. Include
3740 "gdb_assert.h". Various coding style fixes.
3741 (derive_stack_segment, derive_heap_segment): Replace check for
3742 non-null BOTTOM and TOP with gdb_assert.
3743 (derive_heap_segment): Replace check for successful creation of
3744 ZERO with gdb_assert.
3745 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3746
5220ea4c
AC
37472003-09-04 Andrew Cagney <cagney@redhat.com>
3748
3749 * thread-db.c (verbose_dlsym): New function.
3750 (thread_db_load): Use verbose_dlsym
3751 (thread_db_new_objfile): Print that libthread_db was loaded, and
3752 that thread debugging was enabled.
3753
6e8c2c06
AC
37542003-09-04 Andrew Cagney <cagney@redhat.com>
3755
3756 * configure.tgt: Add "mips64*-*-*" target. Delete
3757 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3758 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3759 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3760 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3761 mips*-sony-*, and mips64*-*-elf* targets.
3762 * config/mips/embedl.mt: Delete file.
3763 * config/mips/embedl64.mt: Delete file.
3764 * config/mips/mips.mt: Delete file.
3765 * config/mips/mips64.mt: Delete file.
3766 * config/mips/tm-embed.h: Delete file.
3767 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3768 * config/mips/embed64.mt: Delete out-of-date comment.
3769
3a3bc038
AC
37702003-09-04 Andrew Cagney <cagney@redhat.com>
3771
3772 * hppa-tdep.c (hppa_gdbarch_init): Set
3773 "have_nonsteppable_watchpoint".
3774 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3775 * mips-tdep.c (mips_dump_tdep): Do not print
3776 HAVE_NONSTEPPABLE_WATCHPOINT.
3777 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3778 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3779 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3780 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3781
a957e642
CV
37822003-09-04 Corinna Vinschen <vinschen@redhat.com>
3783
3784 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3785 unused code. Add comment.
3786
a6fbcf2f
CV
37872003-09-04 Corinna Vinschen <vinschen@redhat.com>
3788
3789 * breakpoint.c (watchpoint_check): Check for pc being in an
3790 epilogue if watchpoint frame couldn't be found.
3791
c14a44d5
AC
37922003-09-04 Andrew Cagney <cagney@redhat.com>
3793
3794 * Makefile.in: Re-generate all dependencies.
3795
f6c40618
AC
37962003-09-03 Andrew Cagney <cagney@redhat.com>
3797
3798 * arch-utils.h (legacy_print_insn): Delete declaration.
3799 * arch-utils.c (legacy_print_insn): Delete function.
3800 * disasm.c (deprecated_tm_print_insn_info): Delete.
3801 (_initialize_disasm): Delete function, contained code initializing
3802 deprecated_tm_print_insn_info.
3803 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3804 (deprecated_tm_print_insn_info): Delete.
3805 (TARGET_PRINT_INSN): Do not provide a default.
3806 * gdbarch.h, gdbarch.c: Re-generate.
3807
242e8be5
AC
38082003-09-03 Andrew Cagney <cagney@redhat.com>
3809
3810 * disasm.c (fprintf_disasm): New function.
3811 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3812 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3813 reverts 2003-08-14 change.
3814 (_initialize_disasm): Call "init_disassemble_info", instead of
3815 INIT_DISASSEMBLE_INFO_NO_ARCH.
3816
3ffc3dda
MS
38172003-09-03 Michael Snyder <msnyder@redhat.com>
3818
3819 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3820
52d16ba8
AC
38212003-09-03 Andrew Cagney <cagney@redhat.com>
3822
3823 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3824 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3825 * symfile.c (syms_from_objfile): Update.
3826 (reread_symbols): `Update
3827 * exec.c (exec_file_attach): Update.
3828 (exec_file_attach): Update.
3829 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3830 2003-08-29 change.
3831 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3832
eb5492fa
DJ
38332003-09-03 Daniel Jacobowitz <drow@mvista.com>
3834
3835 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3836 trad-frame.h.
3837 (arm_get_cache): Delete macro.
3838 (struct arm_prologue_cache): Update comments. Make saved_regs into
3839 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3840 to prev_sp.
3841 (thumb_scan_prologue): Update for cache changes. Don't call
3842 DEPRECATED_PC_IN_CALL_DUMMY.
3843 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3844 argument and use it in desperation search for our prologue. Do not
3845 search past the specified PC.
3846 (arm_make_prologue_cache): Simplify.
3847
3848 (arm_prologue_this_id, arm_prologue_prev_register)
3849 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3850 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3851 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3852 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3853 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3854
3855 (arm_frame_chain_valid, arm_find_callers_reg)
3856 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3857 (arm_pop_frame): Delete obsolete methods.
3858 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3859
3860 (arm_gdbarch_init): Update for new frame methods. Register prologue
3861 and sigtramp unwinders. Set the default frame base method.
3862
3863 * Makefile.in (arm-tdep.o): Update dependencies.
3864 * varobj.c (find_frame_addr_in_frame_chain): Call
3865 get_frame_base_address.
3866 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3867
24de872b
DJ
38682003-09-03 Daniel Jacobowitz <drow@mvista.com>
3869
3870 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3871 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3872 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3873 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3874 Take NEXT_FRAME and CACHE arguments. Call
3875 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3876 Set unwound_pc in CACHE instead of modifying the frame argument.
3877 Don't bother checking the frame type when looking for sigtramp
3878 frames.
3879 (arm_make_prologue_cache, arm_frame_chain)
3880 (arm_init_extra_frame_info): New functions.
3881
9b8d791a
DJ
38822003-09-03 Daniel Jacobowitz <drow@mvista.com>
3883
3884 * arm-tdep.c (arm_get_cache): Define.
3885 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3886 unwound_sp, unwound_pc, and saved_regs.
3887 (thumb_scan_prologue): Take a cache instead of the frame.
3888 (arm_scan_prologue): Likewise.
3889 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3890 instead of a temporary frame.
3891 (arm_init_extra_frame_info): Allocate and use a cache.
3892 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3893
7ee3275f
AC
38942003-09-03 Andrew Cagney <cagney@redhat.com>
3895
3896 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3897 * config/mips/wince.mt (TM_CLIBS): Ditto.
3898 * config/sh/wince.mt (TM_CLIBS): Ditto.
3899 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3900 * config/sparc/sp64.mt (CC): Delete.
3901
57b29be7
AC
39022003-09-03 Andrew Cagney <cagney@redhat.com>
3903
3904 * defs.h: Do not include "arch-utils.h".
3905 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3906 GDB_MULTI_ARCH_PURE.
3907 * configure.in (GDB_MULTI_ARCH): Do not define.
3908 * configure, config.in: Regenerate.
3909 * configure.tgt: Do not set variable "gdb_multi_arch".
3910 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3911 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3912 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3913 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3914 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3915 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3916 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3917 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3918 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3919 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3920 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3921 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3922 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3923 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3924 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3925 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3926 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3927 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 3928
12e035e2
MC
39292003-08-30 Michael Chastain <mec@shout.net>
3930
3931 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3932 * config/m68k/nm-hp300hpux.h: Delete.
3933 * config/m68k/tm-hp300hpux.h: Delete.
3934 * config/m68k/xm-hp300hpux.h: Delete.
3935 * config/m68k/xm-hp300bsd.h: Delete.
3936 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3937 tm-hp300hpux.h, xm-hp300hpux.h.
3938 * somsolib.c: Remove comment about hp300 shared libraries.
3939
bda34dc2
MK
39402003-08-31 Mark Kettenis <kettenis@gnu.org>
3941
5bca7895
MK
3942 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3943 Only define PTRACE_GET_THREAD_AREA is not already defined.
3944 Various style fixes in code and comments and some additional
3945 spelling fixes in comments. Move after functions dealing with
3946 debug registers.
3947 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3948 Fix coding-style.
3949
bda34dc2
MK
3950 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3951 frame_unwind_register_unsigned instead of
3952 frame_unwind_unsigned_register.
3953
c890192f
MK
39542003-08-30 Mark Kettenis <kettenis@gnu.org>
3955
3956 * configure.in: Search for gethostbyname in libnsl.
3957 * configure: Regenerated.
3958
60fac5b8
MK
39592003-08-29 Mark Kettenis <kettenis@gnu.org>
3960
e294916c
MK
3961 * configure.in: Remove redundant AC_MSG_RESULT in check for
3962 uintptr_t in stdint.h.
3963 * configure: Regenerated.
3964
c40d267a
MK
3965 * amd64-nat.h (struct regcache): Add opaque declaration.
3966
60fac5b8
MK
3967 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3968 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3969 Change "register array" to "register cache" in comments.
3970 (x86_64_linux_gregset64_reg_offset): New variable.
3971 (GETREGS_SUPPLIES): Remove macro.
3972 (supply_gregset): Call amd64_supply_native_gregset instead of
3973 x86_64_linux_supply_gregset.
3974 (fill_gregset): Rename `regno' to `regnum'. Call
3975 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3976 (store_regs): Rename `regno' to `regnum'.
3977 (store_fpregs): Rename `regno' to `regnum'.
3978 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3979 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3980 Reorganize function a bit.
3981 (store_inferior_registers): Rename `regno' to `regnum'. Use
3982 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3983 Reorganize function a bit.
3984 (_initialize_x86_64_linux_nat): New function.
3985 * config/i386/x86-64linux.mh.
3986
546143b6
AC
39872003-08-29 Andrew Cagney <cagney@redhat.com>
3988
3989 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3990 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3991 (target_remove_watchpoint): Delete macro.
3992 (target_insert_watchpoint): Delete macro.
3993 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3994 (remote_mips_stopped_by_watchpoint): Delete declaration.
3995 (remote_mips_remove_watchpoint): Delete declaration.
3996 (remote_mips_set_watchpoint): Delete declaration.
3997 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3998 * remote-mips.c (_initialize_remote_mips): Set
3999 "to_insert_watchpoint", "to_stopped_by_watchpoint",
4000 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
4001 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
4002 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
4003 (mips_stopped_by_watchpoint): Rename
4004 remote_mips_stopped_by_watchpoint.
4005 (mips_can_hardware_watchpoint): Rename
4006 remote_mips_can_use_hardware_watchpoint, update function
4007 signature.
4008
7bace51b
MK
40092003-08-29 Mark Kettenis <kettenis@gnu.org>
4010
b0f5c6f2
MK
4011 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
4012 USER_DS. We haven't given them a register number yet.
4013
2a6d284d
MK
4014 * amd64-nat.h: New file.
4015 * amd64-nat.c: New file.
4016 * amd64fbsd-nat.c: Include "amd64-nat.h".
4017 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
4018 (amd64fbsd32_r_reg_offset): New variable.
4019 (supply_gregset): Simply call amd64_supply_native_gregset.
4020 (fill_gregset): Rename `regno' to `regnum'. Simply call
4021 amd64_collect_native_gregset.
4022 (fill_fpregset): Rename `regno' to `regnum'.
4023 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
4024 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
4025 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
4026 `fpregset_t'. Call amd64_supply_native_gregset instead of
4027 supply_gregset. Call x86_64_supply_fxsave instead of
4028 supply_fpregset.
4029 (store_inferior_registers): Rename `regno' to `regnum'. Replace
4030 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
4031 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
4032 `fpregset_t'. Call amd64_collect_native_gregset instead of
4033 fill_gregset. Call x86_64_collect_fxsave instead of
4034 fill_fpregset.
4035 (_initialize_am64fbsd_nat): Initialize
4036 amd64_native_gregset32_reg_offset and
4037 amd64_native_gregset64_reg_offset.
4038 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
4039
a16d75cc
MK
4040 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
4041 null pointer. Fix typo in comment.
4042
7bace51b
MK
4043 * regcache.c (supply_register): Reimplement to call
4044 regcache_raw_supply.
4045 (regcache_collect): Reimplement by calling regcache_raw_collect.
4046
9a661b68
MK
40472003-08-28 Mark Kettenis <kettenis@gnu.org>
4048
4049 * regcache.c (register_buffer): Consitify first argument.
4050 (regcache_raw_supply, regcache_raw_collect): New
4051 functions.
4052
e94cc8fa
DJ
40532003-08-28 Daniel Jacobowitz <drow@mvista.com>
4054
4055 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
4056 by Nathan J. Williams.
4057
c64bd0ce
DJ
40582003-08-28 Daniel Jacobowitz <drow@mvista.com>
4059
4060 * lin-lwp.c (wait_lwp): New function, copied from
4061 stop_wait_callback. Clean up.
4062 (stop_wait_callback): Use wait_lwp.
4063
e5ab0dce
AC
40642003-08-28 Andrew Cagney <cagney@redhat.com>
4065
4066 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
4067 flavour and disassembler options.
4068 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
4069 (mips_gdbarch_init): Set "print_insn". Delete initialization of
4070 deprecated_tm_print_insn_info.
a8f4cde1 4071
a788de9b
AC
40722003-08-27 Andrew Cagney <cagney@redhat.com>
4073
4074 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
4075 Use target_read_memory.
4076 (s390_get_frame_info): Update. Do not reference
4077 deprecated_tm_print_insn_info.
4078 (s390_check_function_end, s390_is_sigreturn): Ditto.
4079
36482093
AC
40802003-08-27 Andrew Cagney <cagney@redhat.com>
4081
4082 * Makefile.in (cris-tdep.o): Update dependencies.
4083 * cris-tdep.c: Include "gdb_assert.h".
4084 (cris_gdbarch_init): Set print_insn.
4085 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
4086 (cris_delayed_get_disassembler): Simplify, directly call the
4087 disassembler returned by cris_get_disassembler.
4088 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
4089 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
4090 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
4091 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
4092 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
4093 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
4094 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
4095 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
4096 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
4097 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
4098 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
4099 (gdb_print_insn_sparc): Delete function.
4100 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
4101 deprecated_tm_print_insn_info.
4102 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
4103 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
4104 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
4105 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
4106 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
4107 * s390-tdep.c (gdb_print_insn_s390): Delete function.
4108 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
4109 (s390_gdbarch_init): Set print_insn.
4110
0285512f
AC
41112003-08-27 Andrew Cagney <cagney@redhat.com>
4112
4113 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
4114 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
4115 * infcall.c (call_function_by_hand): Convert the entry point
4116 address into a code address.
4117
cdcd5552
AC
41182003-08-27 Andrew Cagney <cagney@redhat.com>
4119
4120 * dsrec.c: Include "gdb_string.h".
4121 * Makefile.in (dsrec.o): Update dependencies.
4122
e85cddad
MC
41232003-08-27 Michael Chastain <mec@shout.net>
4124
4125 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
4126
8bbfbb23
AC
41272003-08-27 Andrew Cagney <cagney@redhat.com>
4128
4129 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
4130 (alpha_osf1_init_abi): Do not set call_dummy_address.
4131
ba058b66
DC
41322003-08-27 David Carlton <carlton@kealia.com>
4133
4134 From Randolph Chung <tausq@debian.org>:
4135 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
4136 compiles with -Wformat-nonliteral -Werror.
4137
87f84c9d
JB
41382003-08-26 Jim Blandy <jimb@redhat.com>
4139
4140 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
4141 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
4142 bfd_lookup_symbol, since we only want symbols in code sections.
4143 (look_for_base): Pass zero as the SECT_FLAGS argument to
4144 bfd_lookup_symbol, since we're not concerned about which section
4145 the symbol is in.
4146
102d615a
JJ
41472003-08-26 Jeff Johnston <jjohnstn@redhat.com>
4148
4149 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 4150 we are frameless or the return address register is already known.
102d615a 4151
cc7ad3ea
AC
41522003-08-26 Andrew Cagney <cagney@redhat.com>
4153
4154 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
4155 in size. Add comments.
4156
af8b88dd
JJ
41572003-08-26 Jeff Johnston <jjohnstn@redhat.com>
4158
4159 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 4160 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 4161
e0a4f5a1
JM
41622003-08-26 Jason Merrill <jason@redhat.com>
4163
4164 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
4165 case out of #ifdef MIPS block.
4166
4ae9ee8e
DJ
41672003-08-25 Daniel Jacobowitz <drow@mvista.com>
4168
4169 PR java/1322
4170 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
4171 available before calling SECT_OFF_TEXT.
3c164570 4172 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 4173
004d836a
JJ
41742003-08-25 Jeff Johnston <jjohnstn@redhat.com>
4175
a8f4cde1 4176 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
4177 bof, and nat0-nat127 as pseudo-registers.
4178 (ia64_frame_cache): New struct used to cache frame info.
4179 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 4180 register grouping so registers without names are still saved and
004d836a 4181 restored.
a8f4cde1 4182 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
4183 pseudo values.
4184 (ia64_pseudo_register_read): New routine to read pseudo-registers.
4185 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 4186 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
4187 ia64_frame_cache.
4188 (examine_prologue): Change prototype to add next_frame pointer.
4189 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 4190 current frame matches the cfm that should occur for the prologues
004d836a
JJ
4191 alloc insn and if equal, mark as not frameless. At end of routine,
4192 if not frameless, calculate registers for the previous frame and store
4193 in the cache, if a cache is provided.
4194 (ia64_skip_prologue): Use new prototype when calling examine_prologue
4195 and pass 0 for next_frame.
4196 (ia64_store_return_value): Change to use convert_typed_floating()
4197 instead of calling ia64_convert_to_raw().
4198 (ia64_extract_return_value): Change to use convert_typed_floating()
4199 instead of calling ia64_convert_to_virtual().
4200 (ia64_frame_cache): New routine to support new frame model.
4201 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
4202 (ia64_frame_sniffer): Ditto.
4203 (ia64_sigtramp_frame_init_saved_regs): Ditto.
4204 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
4205 (ia64_sigtramp_frame_prev_register): Ditto.
4206 (ia64_sigtramp_frame_sniffer): Ditto.
4207 (ia64_frame_base_address): Ditto.
4208 (ia64_extract_struct_value_address): Change to issue error message.
4209 (ia64_frame_align): New routine to align sp.
4210 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 4211 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
4212 ia64_push_dummy_call().
4213 (ia64_push_return_address): Ditto.
4214 (ia64_unwind_dummy_id): New function.
4215 (ia64_unwind_pc): Ditto.
4216 (ia64_convert_register_p): Ditto.
4217 (ia64_register_to_value): Ditto.
4218 (ia64_value_to_register): Ditto.
4219 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
4220 (ia64_register_byte, ia64_register_raw_size): Ditto.
4221 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
4222 (ia64_saved_pc_after_call): Ditto.
4223 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
4224 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
4225 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
4226 (ia64_register_convert_to_raw): Ditto.
4227 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
4228 (ia64_init_extra_frame_info): Ditto.
4229 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
4230 (ia64_gdbarch_init): Remove registering of deprecated functions that
4231 are no longer used. Add registration of new gdbarch functions.
4232 Remove registering deprecated_write_sp. Replace
4233 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
4234 Delete set_gdbarch_deprecated_register_convertible(),
4235 set_gdbarch_deprecated_register_convert_to_virtual(), and
4236 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
4237 set_gdbarch_deprecated_register_size(),
4238 set_gdbarch_deprecated_register_bytes(),
4239 set_gdbarch_pcregnum(),
4240 set_gdbarch_deprecated_register_byte(),
4241 set_gdbarch_deprecated_register_raw_size(),
4242 set_gdbarch_deprecated_max_register_raw_size(),
4243 set_gdbarch_deprecated_register_virtual_size(),
4244 and set_gdbarch_deprecated_max_register_virtual_size() calls.
4245 Replace set_gdbarch_deprecated_extract_return_value() with
4246 set_gdbarch_extract_return_value(). Remove calls to:
4247 set_gdbarch_deprecated_saved_pc_after_call();
4248 set_gdbarch_deprecated_frame_chain(),
4249 set_gdbarch_deprecated_frame_saved_pc(),
4250 set_gdbarch_deprecated_frame_init_saved_regs(),
4251 set_gdbarch_deprecated_get_saved_register(),
4252 set_gdbarch_deprecated_call_dummy_words(),
4253 set_gdbarch_deprecated_sizeof_call_dummy_words(),
4254 set_gdbarch_deprecated_init_extra_frame_info(),
4255 set_gdbarch_deprecated_frame_args_address(),
4256 set_gdbarch_deprecated_frame_locals_address(),
4257 and set_gdbarch_deprecated_dummy_write_sp().
4258 Add set_gdbarch_convert_register_p(),
4259 set_gdbarch_register_to_value(),
4260 set_gdbarch_value_to_register(),
4261 set_gdbarch_push_dummy_call(),
4262 set_gdbarch_frame_align(),
4263 set_gdbarch_unwind_dummy_id(),
4264 set_gdbarch_unwind_pc(),
4265 frame_unwind_append_sniffer(),
4266 frame_unwind_append_sniffer(),
4267 and frame_base_set_default().
4268
aede7613
CD
42692003-08-25 Chris Demetriou <cgd@broadcom.com>
4270
4271 * configure.tgt: Document need for special "mipsisa64" handling.
4272 (mipsisa64*-*-linux64): Handle as target linux64.
4273 (mipsisa64*-*-*): Handle as target embed64.
4274
43c3a82e
MC
42752003-08-18 Michael Chastain <mec@shout.net>
4276
4277 * PROBLEMS: Document pr gdb/1322, the Java anonymous
4278 objfile bug.
4279
6564f77d
MK
42802003-08-24 Mark Kettenis <kettenis@gnu.org>
4281
2de139ba
MK
4282 * i387-tdep.h: Update copyright date.
4283 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
4284
6564f77d
MK
4285 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
4286 CFLAGS games to reflect reality.
4287
42cf1509
AC
42882003-08-24 Andrew Cagney <cagney@redhat.com>
4289
4290 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
4291 GDB_MULTI_ARCH is always non-zero.
4292 * osabi.c (_initialize_gdb_osabi): Ditto.
4293 (gdbarch_init_osabi): Ditto.
4294 * sparc-tdep.c: Ditto for #if code.
4295
0485f6ad
MK
42962003-08-23 Mark Kettenis <kettenis@gnu.org>
4297
4298 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
4299 Update comments.
4300 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
4301 comments.
4302 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
4303 x86_64_supply_fxsave.
4304 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
4305 x86_64_supply_fxsave.
4306 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
4307 x86_64_supply_fxsave.
4308
c7716133
AJ
43092003-08-23 Andreas Jaeger <aj@suse.de>
4310
4311 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
4312 i387_supply_fxsave.
4313
ed504bdf
MK
43142003-08-23 Mark Kettenis <kettenis@gnu.org>
4315
4316 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
4317 i387_supply_register.
4318 (go32_fetch_registers): Adjust call to i387_supply_fsave.
4319 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
4320 i387_supply_fsave.
4321 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
4322 i387_supply_fxsave.
4323 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
4324 i387_supply_fsave.
4325 * i386bsd-nat.c (supply_fpregset): Adjust call to
4326 i387_supply_fsave.
4327 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
4328 call to i387_supply_fxsave. Call i387_supply_fsave instead of
4329 supply_fpregset.
4330 (store_inferior_registers): Remove extraneous whitespace. Call
4331 i387_fill_fsave instead of fill_fpregset.
4332 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
4333 (supply_fpregset): Likewise.
4334 * i386v4-nat.c (supply_fpregset): Adjust call to
4335 i387_supply_fsave.
4336 * i386-interix-nat.c (supply_fpregset): Adjust call to
4337 i387_supply_fsave.
4338 * i386-linux-nat.c (supply_fpregset): Adjust call to
4339 i387_supply_fsave.
4340 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
4341 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
4342 i387supply_fsave and i387_supply_fxsave.
4343 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
4344 Incorporate code from `i387_supply_register.
4345 (i387_supply_register): Remove.
4346 (i387_supply_fxsave): Add `regnum' argument.
4347 Update comments.
4348 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
4349 prototype.
4350 (i387_supply_register): remove prototype.
4351 Update comments.
a8f4cde1 4352
4be5d520
MC
43532003-08-22 Michael Chastain <mec@shout.net>
4354
4355 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
4356 Add lines for files in gdb/testsuite/gdb.cp/* that are
4357 still not 8.3 unique.
4358
7ed85d26
DJ
43592003-08-22 Daniel Jacobowitz <drow@mvista.com>
4360
4361 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
4362 TYPE_VPTR_FIELDNO is valid.
4363
eb0d3137
MK
43642003-08-19 Mark Kettenis <kettenis@gnu.org>
4365
4366 * utils.c (set_width_command): Remove prototypes.
4367 (set_screen_size): New prototype.
4368 (init_page_info): Simplify by fetching the screen size from
4369 Readline. Call set_screen_size.
4370 (set_screen_size): New function.
4371 (set_width): Add missing whitespace in comment.
4372 (set_width_command): Call set_screen_size.
4373 (set_height_command): New function.
4374 (initialize_utils): Fix formatting. Make "set height" command
4375 call set_height_command. Remove redundant code that turns off
4376 pagination if output isn't a terminal. Remove redundant call to
4377 set_width_command.
a8f4cde1 4378
7e6d0ac8
MK
43792003-08-22 Mark Kettenis <kettenis@gnu.org>
4380
3567a8ea
MK
4381 * sparc64-tdep.h (sparc64_regnum): Fix comment.
4382 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
4383 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
4384 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
4385 `case' keyword.
4386 (sparc64_register_info): Give the reister with number
4387 SPARC64_STATE_REGNUM a name.
4388 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
4389 %asi and %ccr.
4390 (sparc64_push_dummy_call): Take BIAS into account when checking
4391 stcak alignment.
4392 (sparc_software_single_step): Remove assertions that check whether
4393 NPC and NNPC were zero.
4394 (sparc_supply_rwindow): Make public. Merge functionality with
4395 sparc64_supply_rwindow.
4396 (sparc_fill_rwindow): Make public. Merge functionality with
4397 sparc64_fill_rwindow.
4398 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
4399 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
4400 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
4401 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
4402 sparc_supply_rwindow instead of sparc64_supply_rwindow.
4403
7e6d0ac8
MK
4404 * reggroups.c: Add whitespace after declarations of local
4405 variables in functions.
4406
72e5f484
MC
44072003-08-21 Michael Chastain <mec@shout.net>
4408
4409 * gdbtypes.h: Change array bound type from an int to enum.
4410
435ac228
AC
44112003-08-21 Andrew Cagney <cagney@redhat.com>
4412
4413 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
4414 * config/sparc/tm-sparc.h: Ditto.
4415 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
4416 unconditionally.
4417 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
4418
0d0e1a63
MK
44192003-07-13 Mark Kettenis <kettenis@gnu.org>
4420
4421 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
4422 (register_objfile_data, set_objfile_data, objfile_data): New
4423 prototypes.
4424 * objfiles.c (objfile_alloc_data, objfile_free_data): New
4425 prototypes.
4426 (allocate_objfile): Call objfile_alloc_data.
4427 (free_objfile): Call objfile_free_data.
4428 (struct objfile_data): New.
4429 (struct objfile_data_registration): New.
4430 (struct objfile_data_registry): New.
4431 (objfile_data_registry): New variable.
4432 (register_objfile_data): New function.
4433 (objfile_alloc_data, objfile_free_data): New functions.
4434 (set_objfile_data, objfile_data): New functions.
4435 * dwarf2-frame.c (dwarf2_frame_data): New variable.
4436 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
4437 (_initialize_dwarf2_frame): New function and prototype.
4438
d90cf509
AC
44392003-08-21 Andrew Cagney <cagney@redhat.com>
4440
4441 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4442 a specific architecture.
4443 * arch-utils.h (set_architecture_from_arch_mach): Delete
4444 declaration.
4445 (target_architecture_hook): Delete declaration.
4446 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
4447 (default_float_format): Assume GDB_MULTI_ARCH.
4448 (default_double_format): Assume GDB_MULTI_ARCH.
4449 (set_endian_from_file): Delete function.
4450 (arch_ok): Delete function.
4451 (set_arch): Delete function.
4452 (set_architecture_from_arch_mach): Delete function.
4453 (set_architecture_from_file): Delete function.
4454 (set_architecture): Assume GDB_MULTI_ARCH.
4455 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
4456
8b39fe56
MK
44572003-08-21 Mark Kettenis <kettenis@gnu.org>
4458
4459 Rewrite FreeBSD/sparc64 native configuration.
4460 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
4461 * sparc64fbsd-nat.c: New file.
4462 * sparc64fbsd-tdep.c: New file.
4463 * sparc64-tdep.c sparc64-tdep.h: New files.
4464 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
4465 sparc64fbsd-tdep.o): New dependencies.
4466 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
4467 and sparc64fbsd-tdep.c.
4468 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
4469 * config/sparc/fbsd.mh: Remove copyright notice.
4470 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
4471 sparcbsd-nat.o.
4472 * config/sparc/fbsd.mt: Remove copyright notice.
4473 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4474 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4475 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4476 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4477 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4478 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4479 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4480 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4481 "sparc/tm-sp64.h".
4482 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4483 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4484
a7f19c79
MC
44852003-08-21 Michael Chastain <mec@shout.net>
4486
4487 * symtab.h: Add doco on the space critical structures and
4488 some measurements of space usage.
4489
da08ea5b
MS
44902003-08-21 Michael Snyder <msnyder@redhat.com>
4491
4492 * tracepoint.c (trace_dump_command): Trace break address
4493 is subject to DECR_PC_AFTER_BREAK.
4494 (set_traceframe_context): Make "trace_line" an int.
4495 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 4496
6df2bf50
MS
44972003-08-20 Michael Snyder <msnyder@redhat.com>
4498
4499 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
4500 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4501 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 4502 argument passing.
a8f4cde1 4503 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
4504 functions, replace sh_push_dummy_call.
4505 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4506
0955bbf0
MC
45072003-08-20 Michael Chastain <mec@shout.net>
4508
4509 * gdbtypes.h (struct main_type): Rearrange to save space.
4510
260a4188
MS
45112003-08-20 Michael Snyder <msnyder@redhat.com>
4512
4513 * trad-frame.c: Comment typo fix.
4514
8baa6f92
KB
45152003-08-20 Michael Snyder <msnyder@redhat.com>
4516 Kevin Buettner <kevinb@redhat.com>
4517
4518 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4519 (frv_frame_init_saved_regs): Add declaration.
4520 (frame_extra_info): Add new field ``saved_regs''.
4521 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4522 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4523 Update frame related code.
4524 (frv_extract_struct_value_address): Adjust formatting.
4525 * Makefile.in (frv-tdep.o): Update dependencies.
4526 * config/frv/tm-frv.h (target_insert_watchpoint)
4527 (target_remove_watchpoint, target_insert_hw_breakpoint)
4528 (target_remove_hw_breakpoint): Delete these macros.
4529 (remote_insert_watchpoint, remote_remove_watchpoint)
4530 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4531 these declarations.
4532
87193939
MC
45332003-08-20 Michael Chastain <mec@shout.net>
4534
4535 * defs.h (ENUM_BITFIELD): New macro.
4536 * symtab.h (ENUM_BITFIELD): Use it.
4537 (BYTE_BITFIELD): Remove old macro, which was already disabled.
4538
062103ba
SA
45392003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
4540
4541 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 4542
8b148df9
AC
45432003-08-18 Andrew Cagney <cagney@redhat.com>
4544
4545 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4546 * gdbarch.h, gdbarch.c: Re-generate.
4547 * infcall.c (call_function_by_hand): Adjust the SP by
4548 frame_red_zone_size before allocating any stack space.
4549 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4550 * x86-64-tdep.c (x86_64_frame_align): New function.
4551 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4552
4553 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4554 Remove code adjusting SP so that it skips over the Red Zone.
4555
954a4db8
MK
45562003-08-18 Mark Kettenis <kettenis@gnu.org>
4557
4558 * NEWS (New native configurations): Mention FreeBSD/amd64.
4559
1a241548
AC
45602003-08-18 Andrew Cagney <cagney@redhat.com>
4561
4562 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4563 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
4564 "m68k_frame_p".
4565 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4566
f82b2acd
MK
45672003-08-18 Mark Kettenis <kettenis@gnu.org>
4568
4569 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4570
4056d258
ML
45712003-08-18 Michal Ludvig <mludvig@suse.cz>
4572
4573 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4574 Define.
4575 * i386-linux-nat.c: Include "linux-nat.h".
4576 (child_post_startup_inferior): New function.
a8f4cde1 4577
99ab4326
MK
45782003-08-18 Mark Kettenis <kettenis@gnu.org>
4579
4580 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4581 at the start of a frameless function. This probably fixes PR
4582 backtrace/1338.
4583
c8d5f0d6
MC
45842003-08-17 Michael Chastain <mec@shout.net>
4585
4586 * symfile.c (find_sym_fns): Remove special case for apollo target.
4587
9016a515
DJ
45882003-08-17 Daniel Jacobowitz <drow@mvista.com>
4589
4590 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4591 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4592 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4593 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4594 (linux_supports_tracevforkdone): New function.
4595 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4596 TRACEVFORKDONE.
4597 (child_follow_fork): Handle vfork.
4598 (linux_handle_extended_wait): Likewise. Also handle exec.
4599 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4600 * NEWS: Mention fork tracing.
4601
c538c11c
DJ
46022003-08-17 Daniel Jacobowitz <drow@mvista.com>
4603
4604 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4605
4de4c07c
DJ
46062003-08-17 Daniel Jacobowitz <drow@mvista.com>
4607
4608 * Makefile.in (i386-linux-nat.o): Update dependencies.
4609 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4610 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4611 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4612 * i386-linux-nat.c: Include "linux-nat.h".
4613 (child_post_startup_inferior): New function.
4614 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4615 * infptrace.c (kill_inferior): Wrap in #ifdef.
4616 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4617 attaching to each LWP.
4618 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4619 (init_lin_lwp_ops): Fill in some more operations.
4620 * linux-nat.h (linux_enable_event_reporting)
4621 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4622 prototypes.
4623 * linux-nat.c (linux_enable_event_reporting): New function.
4624 (child_post_attach, linux_child_post_startup_inferior)
4625 (child_post_startup_inferior, child_follow_fork)
4626 (linux_handle_extended_wait, kill_inferior): New functions.
4627
7996bcec
AC
46282003-08-16 Andrew Cagney <cagney@redhat.com>
4629
4630 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4631 * gdbarch.h, gdbarch.c: Re-generate.
4632
3d48a7a0
MK
46332003-08-16 Mark Kettenis <kettenis@gnu.org>
4634
4635 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4636
7989c619
AC
46372003-08-16 Andrew Cagney <cagney@redhat.com>
4638
4639 * NEWS: Mention that "set prompt-escape-char" was deleted.
4640 * top.c (get_prompt_1): Delete function.
4641 (gdb_prompt_escape):
4642 (init_main): Do not clear "gdb_prompt_escape". Delete "set
4643 prompt-escape-char" command.
4644 (MAX_PROMPT_SIZE): Delete macro.
4645 (get_prompt): Simplify, do not call get_prompt_1.
4646
07978cd8
AC
46472003-08-16 Andrew Cagney <cagney@redhat.com>
4648
4649 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4650 -Werror. -Wformat-nonliteral problems.
4651
3ff7cf9e
JB
46522003-08-15 J. Brobecker <brobecker@gnat.com>
4653
4654 Further multiarching work mostly for hppa64-*-hpux11:
4655 * hppa-tdep.h: New file.
4656 * hppa-tdep.c: #include hppa-tdep.c.
4657 (hppa32_num_regs): Renamed from hppa_num_regs.
4658 (hppa64_num_regs): New constant.
4659 (hppa64_call_dummy_breakpoint_offset): New constant.
4660 (hppa32_call_dummy_length): New constant.
4661 (hppa64_call_dummy_length): New constant.
4662 (hppa32_stack_align): Make name 32bit explicit.
4663 (hppa32_register_virtual_type): Likewise.
4664 (hppa32_extract_return_value): Likewise.
4665 (hppa32_use_struct_convention): Likewise.
4666 (hppa32_store_return_value): Likewise.
4667 (hppa64_register_virtual_type): New function.
4668 (hppa64_extract_return_value): New function.
4669 (hppa64_use_struct_convention): New function.
4670 (hppa64_store_return_value): New function.
4671 (hppa_frame_locals_address): Remove declaration, function does
4672 not exist anymore.
4673 (hppa_register_byte): Add support for PA64 ABI.
4674 (hppa_gdbarch_init): Add support for PA64 ABI.
4675 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4676 Make name 32bit explicit.
4677 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4678 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4679 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4680 (hppa64_hpux_frame_base_before_sigtramp): New function.
4681 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4682 * config/pa/tm-hppa64.h: Remove macros that are no longer
4683 necessary now that the gdbarch vector is properly setup.
a8f4cde1 4684 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
4685 * config/pa/tm-hppah.h: Update function calls in macros
4686 following the function renaming in hppa-hpux-tdep.c.
4687 * Makefile.in (hppa_tdep_h): New variable.
4688 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4689
5d05ca6d
MS
46902003-08-14 Michael Snyder <msnyder@redhat.com>
4691
4692 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4693
37ba2569
JB
46942003-08-13 J. Brobecker <brobecker@gnat.com>
4695
4696 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4697 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4698 routine.
4699
aed7f26a
MS
47002003-08-13 Michael Snyder <msnyder@redhat.com>
4701
4702 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4703 (frv_saved_pc_after_call): Use deprecated ftype.
4704 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4705 (frv_remote_translate_xfer_address): Remove.
4706 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4707
752d4ac1
JB
47082003-08-13 J. Brobecker <brobecker@gnat.com>
4709
4710 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4711 initialization after the common gdbarch initialization, not before.
4712
1426ac1d
JB
47132003-08-13 J. Brobecker <brobecker@gnat.com>
4714
4715 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4716 (ADDR_BITS_REMOVE): Remove, redundant.
4717
b6fbdd1d
JB
47182003-08-13 J. Brobecker <brobecker@gnat.com>
4719
4720 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4721 gdbarch method to clear the 2 low bits of text addresses.
4722
44160db3
AC
47232003-08-12 Andrew Cagney <cagney@redhat.com>
4724
4725 * Makefile.in (dsrec.o): Update dependencies.
4726 * dsrec.c: Include "gdb_assert.h".
4727 (make_srec): Use snprintf instead of sprintf, use a literal format
4728 string.
4729
bcf7d3ca
AC
47302003-08-12 Andrew Cagney <cagney@redhat.com>
4731
4732 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4733 FRAME_OBSTACK_ZALLOC.
4734
49ed40de
KB
47352003-08-12 Kevin Buettner <kevinb@redhat.com>
4736
4737 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4738 SSE registers.
4739
b246147c
MK
47402003-08-10 Mark Kettenis <kettenis@gnu.org>
4741
4742 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4743 amd64fbsd_sc_reg_offset): Add extern declarations.
4744 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4745 declarations.
4746
d95fdc0d
BE
47472003-08-11 Ben Elliston <bje@wasabisystems.com>
4748
4749 * MAINTAINERS (write after approval): Update my mail address.
4750
cf6a0e73
AC
47512003-08-10 Andrew Cagney <cagney@redhat.com>
4752
4753 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4754
f837910f
MK
47552003-08-10 Mark Kettenis <kettenis@gnu.org>
4756
e2dbbd2d
MK
4757 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4758 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4759 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4760 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4761 i386bsd_sc_reg_offset): Add extern declarations.
4762 * i386obsd-nat.c: Include "i386-tdep.h"
4763 (_initialize_i386obsd_nat): Remove extern declarations.
4764 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4765 declarations.
4766 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4767 declarations.
4768
f837910f
MK
4769 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4770 instead of frame_read_register.
4771 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4772 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4773 SP_REGNUM.
4774 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4775 instead of frame_unwind_unsigned_register. Use
4776 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4777 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4778 instead of read_register. Use builtin_type_void_data_ptr instead
4779 of builtin_type_void_func_ptr when extracting the address of the
4780 jmp_buf.
4781 (i386_extract_return_value, i386_store_return_value,
4782 i386_pseudo_register_read, i386_pseudo_register_write): Use
4783 register_size instead REGISTER_RAW_SIZE.
4784
edcf254d
AC
47852003-08-10 Andrew Cagney <cagney@redhat.com>
4786
4787 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4788 sprintf. Make "name" constant.
4789
26604a34
MK
47902003-08-10 Mark Kettenis <kettenis@gnu.org>
4791
192285c6
MK
4792 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4793 instead of frame_read_register.
f837910f
MK
4794 (i387_print_float_info): Use get_frame_register and
4795 get_frame_register_unsigned instead of frame_register_read.
192285c6 4796
f0925262
MK
4797 * i386fbsd-nat.c: Include "i386-tdep.h".
4798 (child_resume): Make `eflags' an ULONGEST. Use
4799 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4800 instead of register_read and register_write.
4801
a144416f
MK
4802 * i386bsd-nat.c (fetch_inferior_registers,
4803 store_inferior_registers): Don't use && at the end of a line.
4804 (_initialize_i386bsd_nat): Fix typo.
4805
fec74868
MK
4806 * frame.c (_initialize_frame): Add missing backslash.
4807
87232496
MK
4808 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4809 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4810 and supply_register instead of manipulating the register buffer
4811 directly.
4812
c9b9de0b
MK
4813 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4814 * config/i386/nm-i386sol2.h
4815 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4816
26604a34
MK
4817 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4818 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4819 instructions that GCC likes to mingle into the prologue. Fixes
4820 gdb/1253 and gdb/1255.
4821
25d29d70
AC
48222003-08-09 Andrew Cagney <cagney@redhat.com>
4823
4824 Fix GDB PR cli/926.
4825 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4826 * command.h (add_setshow_uinteger_cmd): Declare.
4827 * frame.c (set_backtrace_cmd): New function.
4828 (show_backtrace_cmd): New function.
4829 * frame.c (_initialize_frame): Replace "set/show
4830 backtrace-below-main" with "set/show backtrace past-main". Add
4831 command "set/show backtrace limit".
4832 (backtrace_past_main): Rename "backtrace_below_main".
4833 (backtrace_limit): New variable.
4834 (get_prev_frame): Update. Check the backtrace_limit.
4835
9ebf4acf
AC
48362003-08-09 Andrew Cagney <cagney@redhat.com>
4837
4838 * defs.h (xstrprintf): Declare.
4839 * utils.c (xstrprintf): New function.
4840 * breakpoint.c (insert_breakpoints): Replace sprintf and
4841 non-literal format strings, with xstrprintf and cleanups.
4842 (delete_breakpoint,breakpoint_re_set): Ditto.
4843 (commands_command, insert_breakpoints): Ditto.
4844 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4845 (break_at_finish_command_1): Ditto.
4846
3771659b
AC
48472003-08-09 Andrew Cagney <cagney@redhat.com>
4848
4849 * MAINTAINERS (language support): List Adam Fedor as Objective C
4850 maintainer.
4851
b4263afa
JB
48522003-08-08 J. Brobecker <brobecker@gnat.com>
4853
4854 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4855 are now multiarched.
4856
d84defb1
JB
48572003-08-08 J. Brobecker <brobecker@gnat.com>
4858
4859 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4860 longer necessary now that hppa64 is partially multiarch'ed.
4861
f786f615
AC
48622003-08-08 Andrew Cagney <cagney@redhat.com>
4863
4864 * interps.c (interp_set): Check for a NULL "old_interp".
4865
c938e9b0
L
48662003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4867
4868 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4869 (install-only): Support DESTDIR.
4870 (uninstall): Likewise.
4871 (install-gdbtk): Likewise.
4872
9a146a11
EZ
48732003-08-08 Elena Zannoni <ezannoni@redhat.com>
4874
4875 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4876 contains something meaningful at all times.
4877
4878Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 4879
62599e99 4880 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 4881
56296155
BC
4882Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4883
62599e99 4884 * MAINTAINERS (write after approval): Added self.
56296155 4885
9710e734
AC
48862003-08-07 Andrew Cagney <cagney@redhat.com>
4887
4888 * inferior.h (AT_SYMBOL): Define.
4889 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4890 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4891 * mips-tdep.c (mips_call_dummy_address): Delete function.
4892 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4893 set call_dummy_address.
4894
98b3ab73
AC
48952003-08-07 Andrew Cagney <cagney@redhat.com>
4896
4897 * language.c (op_error): Delete function.
4898 (binop_type_check): Delete function.
4899 * language.h (type_op_error, range_op_error): Delete macros.
4900 (op_error): Delete declaration.
4901
2fcf52f0
AC
49022003-08-07 Andrew Cagney <cagney@redhat.com>
4903
4904 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4905
abd4220e 49062003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 4907
abd4220e 4908 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 4909 (x86_64_push_arguments): Skip the red zone.
abd4220e 4910
9dd5f34f
AC
49112003-08-05 Andrew Cagney <cagney@redhat.com>
4912
4913 * reggroups.c (reggroup_next): Check for the final entry.
4914
e5e78edc
AC
49152003-08-04 Andrew Cagney <cagney@redhat.com>
4916
ab4e3d93
AC
4917 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4918 * cli/cli-script.c (define_command): Call query directly, instead
4919 of passing it a buffer.
4920 * ocd.c (ocd_error): Pass error a constant format string.
4921 * remote-mips.c (mips_error): Use fputs_filtered.
4922
1062ca82
AC
4923 * solib-svr4.c (_initialize_svr4_solib): Update
4924 register_gdbarch_data call.
4925 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4926
fcc1c85c
AC
4927 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4928 (register_gdbarch_data): Delete "free" parameter. Update
4929 comments.
4930 * gdbarch.h, gdbarch.c: Re-generate.
4931 * reggroups.c (_initialize_reggroup): Update.
4932 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4933 * frame-base.c (_initialize_frame_base): Update.
4934 * frame-unwind.c (_initialize_frame_unwind): Update.
4935 * user-regs.c (_initialize_user_regs): Update.
4936 * remote.c (_initialize_remote): Update.
4937 * regcache.c (_initialize_regcache): Update.
4938
116f06ea
AC
4939 * regcache.c (xfree_regcache_descr): Delete function.
4940 (_initialize_regcache): Update call to register_gdbarch_data.
4941 (init_regcache_descr, init_legacy_regcache_descr): Use
4942 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4943
e5e78edc
AC
4944 * remote.c (free_remote_state): Delete function.
4945 (_initialize_remote): Update register_gdbarch_data.
4946 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4947 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4948
6c7d17ba
AC
49492003-08-04 Andrew Cagney <cagney@redhat.com>
4950
4951 * reggroups.c (struct reggroup_el): Define.
4952 (struct reggroups): Delete field "nr_group". Replace array
4953 "group" with a "first" to "last" linked list.
4954 (reggroups_init): Update. Allocate using gdbarch's obstack.
4955 (reggroups_free): Delete function.
4956 (add_group): Update. Add "el" parameter.
4957 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4958 (default_groups): Update.
4959 (reggroup_next): Replace reggroups.
4960 (reggroups_dump): Update.
4961 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4962 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4963 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4964
89b7795b
DJ
49652003-08-04 Daniel Jacobowitz <drow@mvista.com>
4966
4967 * Makefile.in (tui-interp.o): Update dependencies.
4968
306d9ac5
DC
49692003-08-04 David Carlton <carlton@kealia.com>
4970
4971 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4972 to internal_error call.
4973 * source.c (forward_search_command): Add "%s" format argument.
4974 (reverse_search_command): Ditto.
4975 * top.c (quit_confirm): Ditto.
4976 * cli/cli-setshow.c (do_setshow_command): Ditto.
4977 * cp-valprint.c (cp_print_class_method): Replace
4978 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4979 (cp_print_class_member): Ditto.
4980 * event-top.c (command_line_handler): Ditto.
4981 * linux-proc.c (linux_info_proc_cmd): Ditto.
4982 * p-typeprint.c (pascal_type_print_base): Ditto.
4983 * p-valprint.c (pascal_object_print_class_method): Ditto.
4984 (pascal_object_print_class_member): Ditto.
4985 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4986 * remote.c (remote_cisco_section_offsets): Ditto.
4987 * top.c (command_line_input): Ditto.
4988 * utils.c (vwarning,error_stream,quit): Ditto.
4989 * valprint.c (print_floating,print_binary_chars)
4990 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4991
57bfe177
AC
49922003-08-04 Andrew Cagney <cagney@redhat.com>
4993
4994 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4995
e546b999
AC
49962003-08-02 Andrew Cagney <cagney@redhat.com>
4997
4998 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4999 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
5000 amd64fbsd-nat.c.
5001
91092ee5
AC
50022003-08-02 Andrew Cagney <cagney@redhat.com>
5003
5004 * Makefile.in: Update all dependencies and definitions.
5005
889f28e2
AF
50062003-08-02 Adam Fedor <fedor@gnu.org>
5007
5008 * linespec.c (is_objc_method_format): New function
5009 (decode_line_1, locate_first_half): Use it.
5010 Fixes PR objc/1298
5011
880bc914
AC
50122003-08-01 Andrew Cagney <cagney@redhat.com>
5013
5014 * NEWS: Mention that m32r is multi-arch.
5015 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
5016 * configure.tgt: Recognize m32r-*-*.
5017 * config/m32r/tm-m32r.h: Delete file.
5018 * config/m32r/m32r.mt: New file.
a8f4cde1 5019 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
5020 gethostname succeeds, in order to avoid a compilation
5021 warning.
5022 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
5023 compiler warning.
5024
19f59343
MS
50252003-08-01 Michael Snyder <msnyder@redhat.com>
5026
5027 * sh-tdep.c (sh_frame_align): New gdbarch method.
5028 (sh_gdbarch_init): Set up frame_align method.
5029
4e7d7511
MS
50302003-07-31 Michael Snyder <msnyder@redhat.com>
5031
5032 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
5033 which is already covered by the new frames infrastructure.
5034
63022984
AC
50352003-07-31 Andrew Cagney <cagney@redhat.com>
5036
5037 * user-regs.c (struct user_reg): Add "next" link.
5038 (struct user_regs): Replace "user" with "first" and "last" links.
5039 (append_user_reg): Add pre-allocated "reg" parameter.
5040 (builtin_user_regs): Provide initial value for "last".
5041 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
5042 (user_regs_init): Allocate memory from the gdbarch obstack.
5043 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
5044 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
5045 linked list.
5046 (usernum_to_user_reg): New function.
5047 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
5048 (value_of_user_reg): Use usernum_to_user_reg.
5049 (user_regs_free): Delete function.
5050 (_initialize_user_regs): Update register_gdbarch_data call.
5051
7cf6e574
DJ
50522003-07-31 Daniel Jacobowitz <drow@mvista.com>
5053
5054 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
5055
c48a845b
MS
50562003-07-30 Michael Snyder <msnyder@redhat.com>
5057
4e7d7511 5058 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 5059 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
5060 value_being_returned.
5061 * infcmd.c (print_return_value): Pass zero as struct_addr.
5062 * values.c (value_being_returned): If struct_addr is passed,
5063 use it instead of trying to recover it from the inferior.
5064
f0d8db19
KB
50652003-07-30 Kevin Buettner <kevinb@redhat.com>
5066
5067 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
5068 the prologue analyzer won't need to attempt to extract the pc
5069 value from the woefully incomplete dummy frame.
5070 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
5071 possible. Disable code which modifies the frame.
5072
e5c113a1
AC
50732003-07-28 Andrew Cagney <cagney@redhat.com>
5074
5075 * annotate.c (annotate_breakpoints_headers): Restrict annotation
5076 to level 2.
5077 (annotate_breakpoints_table, annotate_record): Ditto.
5078 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
5079 (annotate_field_name_end, annotate_field_value): Ditto.
5080 (annotate_field_end, annotate_frame_source_begin): Ditto.
5081 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
5082 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
5083 (annotate_frame_begin, annotate_frame_function_name): Ditto.
5084 (annotate_frame_address_end, annotate_frame_address): Ditto.
5085 (annotate_frame_args, annotate_frame_end): Ditto.
5086 (annotate_frame_where, annotate_arg_begin): Ditto.
5087 (annotate_arg_name_end, annotate_arg_value): Ditto.
5088 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
5089 (annotate_function_call, annotate_signal_name): Ditto.
5090 (annotate_signal_string, annotate_signal_name_end): Ditto.
5091 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
5092 (annotate_value_begin, annotate_value_history_value): Ditto.
5093 (annotate_value_history_end, annotate_value_end): Ditto.
5094 (annotate_display_begin, annotate_display_number_end): Ditto.
5095 (annotate_display_format, annotate_display_expression): Ditto.
5096 (annotate_display_expression_end, annotate_display_value): Ditto.
5097 (annotate_display_end, annotate_array_section_begin): Ditto.
5098 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
5099 (annotate_elt, annotate_array_section_end): Ditto.
5100
bb1db049
AC
51012003-07-28 Andrew Cagney <cagney@redhat.com>
5102
5103 * regcache.c (struct regcache_descr): Update comments on
5104 nr_raw_registers.
5105 (init_legacy_regcache_descr): Don't set nr_raw_registers or
5106 sizeof_raw_register_valid_p.
5107 (init_regcache_descr): Set nr_raw_registers and
5108 sizeof_raw_register_valid_p before calling
5109 init_legacy_regcache_descr.
5110
20e6603c
AC
51112003-07-28 Andrew Cagney <cagney@redhat.com>
5112
5113 * mips-tdep.c (print_gp_register_row): Print the GPR's register
5114 MOD NUM_REGS.
5115
db742940
DJ
51162003-07-28 Daniel Jacobowitz <drow@mvista.com>
5117
5118 * thread.c (info_threads_command): Use get_selected_frame ().
5119 Check that there is at least one non-sentinel frame.
5120
ce7f4371
SC
51212003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5122
5123 * m68hc11-tdep.c (struct frame_extra_info): Remove.
5124 (m68hc11_pop_frame): Remove.
5125 (m68hc11_frame_saved_pc): Remove.
5126 (m68hc11_frame_chain): Remove.
5127 (m68hc11_frame_init_saved_regs): Remove.
5128 (m68hc11_init_extra_frame_info): Remove.
5129 (m68hc11_store_struct_return): Remove.
5130 (m68hc11_saved_pc_after_call): Remove.
5131
1ea653ae
SC
51322003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5133
5134 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
5135 frame unwind information.
5136 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
5137 and adapted for frame unwinding.
5138 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
5139 (m68hc11_unwind_pc): New function.
5140 (m68hc11_frame_unwind_cache): New function to analyze frames.
5141 (m68hc11_frame_this_id): New function to create new frame struct.
5142 (m68hc11_frame_prev_register): New function to unwind a register from
5143 the frame.
5144 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
5145 (m68hc11_frame_p): New function for the above.
5146 (m68hc11_frame_base_address): New function to return fp of frame.
5147 (m68hc11_frame_args_address): Update for frame.
5148 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
5149 (m68hc11_unwind_sp): New function.
5150 (m68hc11_unwind_dummy_id): New function.
5151 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
5152 calls.
5153
c8a7f6ac
SC
51542003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5155
5156 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
5157 (m68hc11_guess_from_prologue): Advance the pc and frame size only
5158 when we are beyond the current pc.
5159
3dc990bf
SC
51602003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5161
5162 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
5163 from m68hc11_push_arguments.
5164 (m68hc11_push_arguments): Remove.
5165 (m68hc11_push_return_address): Remove.
5166 (m68hc11_gdbarch_init): Install the above; remove above deprecated
5167 handlers; remove deprecated_extra_stack_alignment_needed.
5168
222e5d1d
AC
51692003-07-27 Andrew Cagney <cagney@redhat.com>
5170
5171 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
5172 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
5173 REAL_PC and not the pointer.
5174 * hppa-hpux-tdep.c: Include frame.h
5175
a7e9a47e
AC
51762003-07-27 Andrew Cagney <cagney@redhat.com>
5177
5178 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
5179 GDB_MULTI_ACH_PARTIAL.
5180
7e3dd49e
AC
51812003-07-27 Andrew Cagney <cagney@redhat.com>
5182
5183 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
5184 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
5185 operator at start and not end of line.
5186 (decode_prologue): Ditto.
5187 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
5188 frame_unwind_register_unsigned instead of
5189 frame_unwind_unsigned_register.
5190 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
5191 read_register.
5192 (m32r_push_dummy_call): Use register_size instead of
5193 REGISTER_RAW_SIZE.
5194 (m32r_frame_sniffer): Replace m32r_frame_p.
5195 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
5196 * m32r-rom.c (report_transfer_performance): Delete extern
5197 declaration.
5198 (m32r_load, m32r_upload_command): Use print_transfer_performance
5199 instead of report_transfer_performance.
5200 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
5201 / add_show_from_set.
5202
0880807f
AC
52032003-07-26 Andrew Cagney <cagney@redhat.com>
5204
5205 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
5206 store_return_value and extract_struct_value_address.
5207
64ae9269
DJ
52082003-07-26 Daniel Jacobowitz <drow@mvista.com>
5209
5210 PR c++/1267
5211 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
5212 NULL, default to the section containing PC.
5213
e286caf2
SC
52142003-07-24 Stephane Carrez <stcarrez@nerim.fr>
5215
5216 * NEWS: Mention "regs" deprecated for m68hc11 too.
5217
5218 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
5219 (m68hc11_print_register): New function to print out one register.
5220 (m68hc11_print_registers_info): New function to print registers.
5221 (show_regs): Deprecate and use the above.
5222 (m68hc11_gdbarch_init): Install the print_registers_info.
5223
705b278b
JJ
52242003-07-24 Jeff Johnston <jjohnstn@redhat.com>
5225
5226 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
5227 that we have a SIGTRAP before returning non-zero.
5228
63cd4198
EZ
52292003-07-23 Michal Ludvig <mludvig@suse.cz>
5230 Elena Zannoni <ezannoni@redhat.com>
5231
a8f4cde1 5232 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
5233 find_function_start_sal() returns empty record.
5234
6926787d
AS
52352003-07-23 Andreas Schwab <schwab@suse.de>
5236
5237 * ia64-tdep.c (ia64_print_insn): New function.
5238 (ia64_gdbarch_init): Set print_insn to it.
5239 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
5240 deprecated_tm_print_insn_info.
5241
708cc1b6
MS
52422003-07-22 Michael Snyder <msnyder@redhat.com>
5243
5244 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
5245 handle 8-bit returns (long long).
5246 (h8300h_extract_return_value): Ditto.
5247 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
5248
aebd7893
AC
52492003-07-22 Andrew Cagney <cagney@redhat.com>
5250
5251 * gdbarch.c Include "gdb_obstack.h".
5252 (struct gdbarch): Add an "obstack".
5253 (alloc_gdbarch_data): Allocate the gdbarch data using
5254 GDBARCH_OBSTACK_CALLOC.
5255 (free_gdbarch_data): Delete function.
5256 (gdbarch_obstack_zalloc): New function.
5257 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
5258 Assert that the architecture is not initialized.
5259 (gdbarch_alloc): Allocate an obstack, allocate the architecture
5260 vector from the obstack.
5261 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
5262 architecture obstack.
5263 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
5264 (set_gdbarch_data): Assert that the data is not initialized.
5265 (struct gdbarch_data): Delete member "free".
5266 (register_gdbarch_data): Do not initialize "free".
5267 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 5268
153721e6
AC
52692003-07-22 Andrew Cagney <cagney@redhat.com>
5270
5271 * configure.in (build_warnings): Add -Wformat-nonliteral.
5272 * configure: Re-generate.
5273
c193f044 52742003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
5275
5276 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 5277
c3228f12
EZ
52782003-07-22 Elena Zannoni <ezannoni@redhat.com>
5279
5280 * findvar.c (read_var_value): Remove case for thread local storage
5281 variables. It is now entirely handled by the dwarf2 location
5282 expression code.
5283 * printcmd.c (address_info): Ditto.
5284 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
5285 enumeration value.
5286 (struct symbol): Remove objfile field, which was used by
5287 LOC_THREAD_LOCAL_STATIC only.
5288 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
5289 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
5290 usage of objfile pointer.
5291 * dwarf2loc.c (locexpr_describe_location): Add case to handle
5292 thread local variables.
5293 Add include of objfiles.h.
5294 * dwarf2expr.c (execute_stack_op): Add comments about thread local
5295 storage variables.
5296 * Makefile.in (dwarf2loc.o): Update dependencies.
5297
aef9bcd2
AC
52982003-07-22 Andrew Cagney <cagney@redhat.com>
5299
5300 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
5301 get_frame_base.
5302 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
5303 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
5304 (struct value): Add opaque declaration.
5305 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
5306
d95a8903
AC
53072003-07-21 Andrew Cagney <cagney@redhat.com>
5308
5309 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5310 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
5311
4db73d49
SC
53122003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5313
a8f4cde1 5314 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
5315 regcache_cooked_read_unsigned instead of read_register.
5316 (m68hc11_saved_pc_after_call): Likewise.
5317 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
5318 instead of write_register.
5319 (m68hc11_register_type): New function.
5320 (m68hc11_register_virtual_type): Remove.
5321 (m68hc11_store_return_value): Convert to use the regcache.
5322 (m68hc11_extract_struct_value_address): Likewise.
5323 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
5324 m68hc11_register_type; undeprecate store_return_value and
5325 extract_struct_value_address.
5326
ef2b8fcd
SC
53272003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5328
5329 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
5330 and translate to use regcache.
5331 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
5332
625b0b97
AC
53332003-07-18 Andrew Cagney <cagney@redhat.com>
5334
5335 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
5336 * gdbarch.h, gdbarch.c: Re-generate.
5337 * i386-tdep.c (i386_gdbarch_init): Do not set
5338 DWARF2_BUILD_FRAME_INFO.
5339 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
5340 unconditionally.
5341 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
5342 DWARF2_BUILD_FRAME_INFO.
5343
22b0d388
AC
53442003-07-18 Andrew Cagney <cagney@redhat.com>
5345
5346 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5347 * disasm.c (gdb_disassemble_info): Initilize di.arch.
5348
1ce5d6dd
AC
53492003-07-18 Andrew Cagney <cagney@redhat.com>
5350
5351 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
5352 frame_unwind_address_in_block, instead of frame_pc_unwind.
5353 (dwarf2_frame_cache): Ditto.
5354
e6e5e94c
AC
53552003-07-18 Andrew Cagney <cagney@redhat.com>
5356
5357 * user-regs.h (struct gdbarch): Declare opaque.
5358 * ui-out.h (struct ui_file): Declare opaque.
5359 * dwarf2-frame.h (struct frame_info): Declare opaque.
5360
5483d879
KW
53612003-07-18 Kris Warkentin <kewarken@qnx.com>
5362
5363 * nto-procfs.c: Clean ARI hits. Change #include <..> to
5364 #include "...".
5365 (procfs_meminfo): Change strerror to safe_strerror.
5366 (procfs_can_run): Remove K&R badness.
5367
278a7cf7
MS
53682003-07-17 Michael Snyder <msnyder@redhat.com>
5369
5370 * remote-sim.c: Comment typo fix.
5371
606e3b82
AC
53722003-07-17 Andrew Cagney <cagney@redhat.com>
5373
5374 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
5375 configure.
5376 * sparc-tdep.c (sparc_intreg_size): Make non-static.
5377 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
5378 GDB_MULTI_ARCH_PARTIAL.
5379
c43af07c
EZ
53802003-07-17 Elena Zannoni <ezannoni@redhat.com>
5381
5382 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
5383 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
5384 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
5385
3b85b0f1
TR
53862003-07-16 Theodore A. Roth <troth@openavr.org>
5387
5388 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
5389 found.
5390 (avr_frame_unwind_cache): Don't unwind FP for main.
5391 Update a comment.
5392 Save the computed prev_sp.
5393 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 5394 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
5395 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
5396
336d1bba
AC
53972003-07-16 Andrew Cagney <cagney@redhat.com>
5398
5399 * frame-base.h (frame_base_p_ftype): Delete definition.
5400 (frame_base_append_predicate): Delete declaration.
5401 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
5402 (frame_unwind_append_predicate): Delete declaration.
5403 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
5404 (append_predicate): Delete parameter "p".
5405 (frame_unwind_append_predicate): Delete function.
5406 (frame_unwind_append_sniffer): Update call to append_predicate.
5407 (frame_unwind_free): Delete function.
5408 (_initialize_frame_unwind): Pass NULL as "free" to
5409 register_gdbarch_data.
5410 (frame_unwind_init): Append the dummy_frame_sniffer.
5411 (frame_unwind_find_by_frame): Simplify.
5412 * frame-base.c (struct frame_base_table): Delete field "p".
5413 (append_predicate): Delete parameter "p".
5414 (frame_base_append_predicate): Delete function.
5415 (frame_base_append_sniffer): Update call to append_predicate.
5416 (frame_base_free): Delete function.
5417 (frame_base_find_by_frame): Simplify.
5418 (_initialize_frame_base): Pass NULL as "free" to
5419 register_gdbarch_data.
5420 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
5421 (x86_64_sigtramp_frame_sniffer): Replace
5422 "x86_64_sigtramp_frame_p".
5423 (x86_64_init_abi): Set the frame unwind sniffers.
5424 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
5425 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
5426 (m68k_gdbarch_init): Set the frame unwind sniffers.
5427 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
5428 "i386_sigtramp_frame_p".
5429 (i386_frame_sniffer): Replace "i386_frame_p".
5430 (i386_gdbarch_init): Set the frame unwind sniffers.
5431 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
5432 (avr_gdbarch_init): Set the frame unwind sniffers.
5433 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
5434 "alpha_sigtramp_frame_p"
5435 (alpha_heuristic_frame_sniffer): Replace
5436 "alpha_heuristic_frame_p".
5437 (alpha_gdbarch_init): Set the frame unwind sniffers.
5438 (alpha_dwarf2_init_abi): Ditto.
5439 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
5440 "alpha_debug_frame_p".
5441 (alpha_mdebug_frame_base_sniffer): Replace
5442 "alpha_mdebug_frame_base_p".
5443 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
5444 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
5445 (d10v_gdbarch_init): Set the frame unwind sniffer.
5446 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5447 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5448 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5449 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5450 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
5451 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
5452
48db5a3c
CV
54532003-07-16 Michael Snyder <msnyder@redhat.com>
5454
5455 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
5456 should go thru sh_dsp_register_sim_regno, else the dsp regs
5457 will not get the right values.
5458
54592003-07-16 Corinna Vinschen <vinschen@redhat.com>
5460
5461 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
5462 deprecated_store_floating by call to store_typed_floating.
5463 (sh_sh4_register_convert_to_raw): Substitute call to
5464 deprecated_extract_floating by call to extract_typed_floating.
5465
54662003-07-16 Corinna Vinschen <vinschen@redhat.com>
5467
5468 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5469
54702003-07-16 Corinna Vinschen <vinschen@redhat.com>
5471
5472 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5473 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5474 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
5475 as possible.
5476 (do_pseudo_register): Remove.
5477 (sh_push_dummy_code): New function.
5478 (sh64_store_struct_return): Rename from sh_store_struct_return.
5479 Only called for sh64 now.
5480 (sh_extract_struct_value_address): Regcache'ify.
5481 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
5482 and accomodate new tasks.
5483 (sh64_push_return_address): Rename from sh_push_return_address.
5484 Only called for sh64 now.
5485 (sh_default_extract_return_value): Rename from sh_extract_return_value.
5486 Regcache'ify.
5487 (sh3e_sh4_extract_return_value): Regcache'ify.
5488 (sh_default_store_return_value): Ditto.
5489 (sh3e_sh4_store_return_value): Ditto.
5490 (sh_default_register_byte): Remove.
5491 (sh_sh4_register_byte): Remove.
5492 (sh_default_register_raw_size): Remove.
5493 (sh_sh4_register_raw_size): Remove.
5494 (sh_register_virtual_size): Remove.
5495 (sh_sh3e_register_virtual_type): Remove.
5496 (sh_sh3e_register_type): New function.
5497 (sh_sh4_register_virtual_type): Remove.
5498 (sh_sh4_register_type): New function.
5499 (sh_default_register_virtual_type): Remove.
5500 (sh_default_register_type): New function.
5501 (do_fv_register_info): Add parameters to accomodate call from
5502 sh_print_registers_info.
5503 (do_dr_register_info): Ditto.
5504 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5505 Add parameters to accomodate call from sh_print_registers_info.
5506 (sh_do_fp_register): Ditto.
5507 (sh64_do_pseudo_register): Call do_dr_register_info,
5508 do_fv_register_info and sh_do_fp_register with default parameters.
5509 (sh_do_register): Add parameters to accomodate call from
5510 sh_print_registers_info.
5511 (sh_print_register): Ditto.
5512 (sh_print_registers_info): Rename from sh_do_registers_info.
5513 Add parameters to be used as gdbarch_print_registers_info
5514 implementation. Accomodate removed do_pseudo_register function
5515 pointer.
5516 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5517 function pointer. Call sh_print_register with default parameters.
5518 (sh64_do_registers_info): Call sh_print_registers_info instead of
5519 sh_do_registers_info.
5520 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5521 detection of deprecated vs. non-deprecated functionality.
5522 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
5523 function pointer assignments by direct function calls.
5524
e8a89fe2
AC
55252003-07-15 Andrew Cagney <cagney@redhat.com>
5526
5527 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5528 (frame_register_unwind, create_new_frame): Ditto.
5529 (legacy_get_prev_frame, get_frame_type): Ditto.
5530 (get_frame_base_address): Use frame_base_find_by_frame.
5531 (get_frame_locals_address): Use frame_base_find_by_frame.
5532 (get_frame_args_address): Use frame_base_find_by_frame.
5533 * frame-base.h (frame_base_sniffer_ftype): Declare.
5534 (frame_base_append_sniffer): Declare.
5535 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5536 * frame-base.c (append_predicate): Add a "sniffer" parameter.
5537 (frame_base_append_sniffer): New function.
5538 (frame_base_append_predicate): Add a NULL sniffer.
5539 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5540 (struct frame_base_table): Add "sniffer".
5541 (frame_base_free): Free the "sniffer" table.
5542 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5543 (frame_unwind_append_sniffer): Declare.
5544 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5545 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5546 (struct frame_unwind_table): Add "sniffer", delete "middle".
5547 (append_predicate): Add "sniffer" parameter, append the sniffer.
5548 (frame_unwind_init): Update append_predicate call.
5549 (frame_unwind_append_sniffer): New function.
5550 (frame_unwind_append_predicate): Update append_predicate call.
5551 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5552
0714963c
AC
55532003-07-15 Andrew Cagney <cagney@redhat.com>
5554
5555 * frame.c (get_prev_frame): Move disabled inside_entry_func to
5556 before code inhibiting repeated unwind attempts. Add to
5557 commentary on that test's problems.
5558 * blockframe.c (inside_main_func): Look for "main" in the minimal
5559 symbol table.
5560 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5561 identical.
5562
d9170e22
AC
55632003-07-15 Andrew Cagney <cagney@redhat.com>
5564
5565 * complaints.c (struct explanation): Define.
5566 (struct complaints): Change type of "explanation" to "struct
5567 explanation".
5568 (symfile_explanations): Convert to a "struct explanation" table.
5569 (vcomplaint): Update.
5570
eba29c8c
ML
55712003-07-15 Michal Ludvig <mludvig@suse.cz>
5572
5573 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 5574 (supply_gregset, fill_gregset): Call
eba29c8c
ML
5575 x86_64_linux_(fill,supply)_gregset functions.
5576 * x86-64-linux-tdep.c (USER_*): New defines.
5577 (user_to_gdb_regmap, x86_64_core_fns): New structure.
5578 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5579 New functions.
5580 (fetch_core_registers): Ditto.
5581 (_initialize_x86_64_linux_tdep): Call add_core_fns().
5582 * x86-64-linux-tdep.h: New file.
5583 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5584 and core-regset.o.
5585 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5586
68cc0bfb
MK
55872003-07-13 Mark Kettenis <kettenis@gnu.org>
5588
88a115f7
MK
5589 * x86-64-tdep.c (x86_64_store_return_value): Use
5590 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 5591
68cc0bfb
MK
5592 * configure.host: Add x86_64-*-freebsd*.
5593 * configure.tgt: Add x86_64-*-freebsd*.
5594 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5595 * amd64fbsd-nat.c: New file.
5596 * amd64fbsd-tdep.c: New file.
5597 * config/i386/nm-fbsd64.h: New file.
5598 * config/i386/fbsd64.mh: New file.
5599 * config/i386/fbsd64.mt: New file.
5600
138e7be5
MK
56012003-07-11 Mark Kettenis <kettenis@gnu.org>
5602
5603 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5604 `sc_regs_offset' and `sc_fpregs_offset'.
5605 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5606 SIGFRAME_FPREGSAVE_OFF): Remove defines.
5607 (alpha_sigtramp_register_address): Rewrite to use new members of
5608 `struct gdbarch_tdep'.
5609 (alpha_gdbarch_init): Initialize new members of struct
5610 gdbarch_tdep'.
5611 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5612 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5613 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5614 (alphafbsd_pc_in_sigtramp): Implement.
5615 (alphafbsd_sigtramp_offset): New function.
5616 (alphafbsd_sigcontext_addr): New function.
5617 (alphafbsd_init_abi): Initialize signal trampoline related members
5618 of `struct gdbarch_tdep'.
5619 (_initialize_alphafbsd_tdep): Add prototype.
5620
95303a68
TR
56212003-07-11 Theodore A. Roth <troth@openavr.org>
5622
ba292e4c
TR
5623 * Makefile.in (install-only): Quote sed expression when generating
5624 transformed_name.
95303a68 5625
6896c0c7
RH
56262003-07-11 Richard Henderson <rth@redhat.com>
5627
5628 * Makefile.in (dwarf2-frame.o): Add complaints_h.
5629 * dwarf2-frame.c: Include complaints.h.
5630 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5631 variable initialization; return NULL on error.
5632 (decode_frame_entry): New.
5633
8edd5d01
AC
56342003-07-11 Andrew Cagney <cagney@redhat.com>
5635
c4a09524
AC
5636 * frame.h (frame_address_in_block): Delete declaration.
5637 * blockframe.c (frame_address_in_block): Delete function.
5638 (get_frame_block): Use get_frame_address_in_block.
5639 (block_innermost_frame): Ditto.
5640 * stack.c (print_frame, backtrace_command_1): Ditto.
5641
8edd5d01
AC
5642 * frame.h (get_frame_address_in_block): Declare.
5643 (frame_unwind_address_in_block): Declare.
5644 * frame.c (frame_unwind_address_in_block): New function.
5645 (get_frame_address_in_block): New function.
5646
f7968451
AC
56472003-07-10 Andrew Cagney <cagney@redhat.com>
5648
5649 * gdbarch.sh: Simplify predicate methods. Remove need to provide
5650 pre-default. Note: re-generate has no effect.
a8f4cde1 5651
ae99b398
AC
56522003-07-10 Andrew Cagney <cagney@redhat.com>
5653
5654 * gdbarch.sh: When a variable, but not a function, compare against
5655 0. Fix problem in previous patch.
5656 * gdbarch.c: Re-generate.
a8f4cde1 5657
956ac328
AC
56582003-07-10 Andrew Cagney <cagney@redhat.com>
5659
5660 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5661 functions against NULL, not 0.
5662 * gdbarch.c: Re-generate.
a8f4cde1 5663
287c3240
FF
56642003-07-10 Fred Fish <fnf@ninemoons.com>
5665
5666 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5667 null string instead of a null pointer.
5668 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5669
32f63c4b
MS
56702003-07-09 Michael Snyder <msnyder@redhat.com>
5671
5672 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5673
402ecd56
MK
56742003-07-09 Mark Kettenis <kettenis@gnu.org>
5675
5676 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5677 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5678 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5679 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5680 * x86-64-tdep.c: ... from here.
5681
c481dac7
AS
56822003-07-09 Andreas Schwab <schwab@suse.de>
5683
5684 * m68k-tdep.h (enum struct_return): Define.
5685 (struct gdbarch_tdep): Add struct_return.
5686 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5687 bytes are padded to the right, not to the left. Pass struct value
5688 address in register %a1, not on stack.
5689 (m68k_use_struct_convention): New function.
5690 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5691 struct_return in tdep to pcc_struct_return.
5692 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5693 reg_struct_return.
5694
a8f4cde1 56952003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 5696
a8f4cde1 5697 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 5698
96a4ee76
AC
56992003-07-09 Andrew Cagney <cagney@redhat.com>
5700
5701 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5702 Add comments about the checks.
5703
1517c6d1
AC
57042003-07-08 Andrew Cagney <cagney@redhat.com>
5705
5706 * Makefile.in: Make dependency section headers consistent.
5707 (config_h): Move to $BUILD headers section.
5708 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5709 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5710 (ada-exp.tab.c): Move to YACC/LEX section.
5711 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5712 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5713
dc5dd1eb
KW
57142003-07-08 Kris Warkentin <kewarken@qnx.com>
5715
5716 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
5717 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5718 of strerror with safe_strerror, use ISO C function definitions,
5719 and replace instances of sprintf with snprintf.
dc5dd1eb 5720
612dde91
AC
57212003-07-07 Andrew Cagney <cagney@redhat.com>
5722
5723 * frame.c (get_prev_frame): Enable check for identical frames.
5724 Update comments. Update error messages.
5725
492c11d3
JB
57262003-07-07 Joel Brobecker <brobecker@gnat.com>
5727
5728 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5729
376a5a49
JB
57302003-07-07 Joel Brobecker <brobecker@gnat.com>
5731
5732 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5733 sort_symtab_syms, no longer necessary.
5734
22b4a9ad
JB
57352003-07-07 Joel Brobecker <brobecker@gnat.com>
5736
5737 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5738
5bbcb741
JB
57392003-07-07 Joel Brobecker <brobecker@gnat.com>
5740
5741 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5742 (mips_register_byte): Likewise.
5743
c139e7d9
DJ
57442003-07-07 Daniel Jacobowitz <drow@mvista.com>
5745
5746 * Makefile.in (sparc_tdep_h): New.
5747 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5748 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5749 * sparc-linux-nat.c: Include "sparc-tdep.h".
5750 * sparc-nat.c: Likewise.
5751 * sparc-tdep.c: Likewise.
5752 * sparc64nbsd-nat.c: Likewise.
5753 * sparcnbsd-nat.c: Likewise.
5754 * sparcnbsd-tdep.c: Likewise.
5755 * sparc-tdep.h: New file.
5756 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5757 and sparc_npc_regnum.
5758
fd8f87c5
DJ
57592003-07-07 Daniel Jacobowitz <drow@mvista.com>
5760
5761 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5762 (mips_linux_cannot_store_register): List supported instead of
5763 unsupported registers.
5764
13adf674
DJ
57652003-07-07 Daniel Jacobowitz <drow@mvista.com>
5766
5767 * disasm.c (dump_insns): Separate instructions from addresses.
5768
8de307e0
AS
57692003-07-07 Andreas Schwab <schwab@suse.de>
5770
5771 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5772 dependencies.
5773 * m68k-tdep.c (NUM_FREGS): Delete.
5774 (SIG_PC_FP_OFFSET): Delete.
5775 (TARGET_M68K): Delete.
5776 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5777 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5778 P_MOVEL_SP, P_MOVEML_SP): Define.
5779 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5780 P_TRAP): Delete.
5781 (m68k_register_raw_size): Delete.
5782 (m68k_register_virtual_size): Delete.
5783 (m68k_register_type): Renamed from m68k_register_virtual_type and
5784 add gdbarch argument.
5785 (m68k_store_struct_return): Delete.
5786 (m68k_deprecated_extract_return_value): Delete.
5787 (m68k_deprecated_extract_struct_value_address): Delete.
5788 (m68k_frame_chain): Delete.
5789 (m68k_frame_saved_pc): Delete.
5790 (m68k_fix_call_dummy): Delete.
5791 (m68k_push_dummy_frame): Delete.
5792 (m68k_pop_frame): Delete.
5793 (m68k_extract_return_value): New function.
5794 (m68k_store_return_value): Rewrite using regcache.
5795 (m68k_extract_struct_value_address): Rewrite using regcache.
5796 (m68k_push_dummy_call): New function.
5797 (struct m68k_frame_cache): Define.
5798 (m68k_alloc_frame_cache): New function.
5799 (m68k_analyze_frame_setup): New function.
5800 (m68k_analyze_register_saves): New function.
5801 (m68k_analyze_prologue): New function.
5802 (m68k_skip_prologue): Rewrite using above functions.
5803 (m68k_unwind_pc): New function.
5804 (m68k_frame_cache): New function.
5805 (m68k_frame_this_id): New function.
5806 (m68k_frame_prev_register): New function.
5807 (m68k_frame_unwind): New variable.
5808 (m68k_frame_p): New function.
5809 (m68k_sigtramp_frame_cache): New function.
5810 (m68k_sigtramp_frame_this_id): New function.
5811 (m68k_sigtramp_frame_prev_register): New function.
5812 (m68k_sigtramp_frame_unwind): New variable.
5813 (m68k_sigtramp_frame_p): New function.
5814 (m68k_frame_base_address): New function.
5815 (m68k_frame_base): New function.
5816 (m68k_unwind_dummy_id): New function.
5817 (fill_gregset): Use regcache_collect.
5818 (fill_fpregset): Likewise.
5819 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5820 defined.
5821 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5822 deprecated_init_frame_pc, deprecated_store_struct_return,
5823 deprecated_extract_return_value, deprecated_store_return_value,
5824 deprecated_frame_chain, deprecated_frame_saved_pc,
5825 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5826 deprecated_register_virtual_size,
5827 deprecated_max_register_raw_size,
5828 deprecated_max_register_virtual_size,
5829 deprecated_register_virtual_type, deprecated_register_size,
5830 deprecated_register_byte, deprecated_register_bytes,
5831 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5832 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5833 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5834 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5835 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5836 deprecated_push_dummy_frame, deprecated_pop_frame,
5837 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5838 only if SYSCALL_TRAP is defined. Set extract_return_value,
5839 store_return_value, extract_struct_value_address, register_type,
5840 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5841 predicates.
5842 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5843 M68K_MAX_REGISTER_SIZE): Define.
5844 (struct m68k_sigtramp_info): Define.
5845 (struct gdbarch_tdep): Add get_sigtramp_info.
5846 * m68klinux-nat.c (fetch_register): Use register_size instead of
5847 REGISTER_RAW_SIZE. Don't put assignment in if.
5848 (store_register): Likewise.
5849 (fetch_inferior_registers): Likewise.
5850 (store_inferior_registers): Likewise.
5851 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5852 (m68k_linux_frame_saved_pc): Delete.
5853 (m68k_linux_sigcontext_reg_offset,
5854 m68k_linux_ucontext_reg_offset): Define.
5855 (m68k_linux_get_sigtramp_info): New function.
5856 (m68k_linux_extract_return_value): Rewrite using regcache.
5857 (m68k_linux_store_return_value): Likewise.
5858 (m68k_linux_extract_struct_value_address): Likewise.
5859 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5860 Don't set deprecated_frame_saved_pc,
5861 deprecated_extract_return_value, deprecated_store_return_value,
5862 deprecated_extract_struct_value_address. Set
5863 extract_return_value, store_return_value,
5864 extract_struct_value_address.
5865
eb8bc282
AC
58662003-07-07 Andrew Cagney <cagney@redhat.com>
5867
5868 * expprint.c: Include "user-regs.h" instead of "frame.h".
5869 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5870 frame_map_regnum_to_name.
5871 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5872 (frame_map_name_to_regnum): Simplify, call
5873 user_reg_map_name_to_regnum.
5874 (frame_map_regnum_to_name): Simplify, call
5875 user_reg_map_regnum_to_name.
5876 (frame_register_unwind): Update.
5877 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5878 (_initialize_frame_reg): Call user_reg_add_builtin.
5879 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5880 (value_of_register): Use value_of_user_reg.
5881 * eval.c (evaluate_subexp_standard): Update.
5882 * parse.c (write_dollar_variable): Update.
5883 * d10v-tdep.c (d10v_print_registers_info): Update.
5884 * infcmd.c (registers_info): Update.
5885 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5886 (builtin_regs_h): Delete macro.
5887 (user_regs_h): Define.
5888 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5889 (builtin-regs.o): Delete target.
5890 (user-regs.o): Specify dependencies.
5891 (expprint.o): Update dependencies.
5892 (findvar.o): Update dependencies.
5893 (frame.o): Update dependencies.
5894 (std-regs.o): Update dependencies.
5895
9f476a01
CF
58962003-07-06 Christopher Faylor <cgf@redhat.com>
5897
5898 * win32-nat.c (solib_symbols_add): Use one variable for all section
5899 address stuff. Pass variable rather than address of variable to
5900 safe_symbol_file_add.
5901
a731b831
AS
59022003-07-06 Andreas Schwab <schwab@suse.de>
5903
5904 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5905
9f83329d
JB
59062003-07-04 Joel Brobecker <brobecker@gnat.com>
5907
5908 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5909
27e28cc5
KW
59102003-07-04 Kris Warkentin <kewarken@qnx.com>
5911
5912 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5913
59142003-07-04 Kris Warkentin <kewarken@qnx.com>
5915
5916 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5917 * config/i386/nto.mh: New file.
5918 * config/i386/nm-nto.h: New file.
5919 * configure.host: Add i[3456]86-*-nto*.
5920
100f2e98
JB
59212003-07-03 Joel Brobecker <brobecker@gnat.com>
5922
5923 * remote-vx.c (vx_add_symbols): Fix compilation error.
5924
e23457df
AC
59252003-07-03 Andrew Cagney <cagney@redhat.com>
5926
5927 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5928 * gdbarch.h, gdbarch.c: Re-generate.
5929 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5930 (legacy_register_name): Declare.
5931 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5932 (REGISTER_NAME): Define.
5933 * sparc-tdep.c (legacy_register_name): New function.
5934 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5935 (REGISTER_NAME): Define.
5936 (hppa64_register_name): Declare.
5937 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5938 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5939 (hppa64_register_name): New function.
5940 (hppa_register_name): New function.
5941 * arch-utils.c (legacy_register_name): Delete.
5942 * arch-utils.h (legacy_register_name): Delete.
5943
38caaeec
DJ
59442003-07-03 Daniel Jacobowitz <drow@mvista.com>
5945
5946 * cli/cli-interp.c (cli_interpreter_resume): Update the
5947 cli_uiout's stream to gdb_stdout.
5948
dadd712e
AC
59492003-07-03 Andrew Cagney <cagney@redhat.com>
5950
5951 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5952 predicate.
5953 * gdbarch.h, gdbarch.c: Re-generate.
5954 * regcache.c (init_regcache_descr): Use legacy code when either
5955 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5956
c7f1390e
DJ
59572003-07-02 Daniel Jacobowitz <drow@mvista.com>
5958
5959 * NEWS: Move "set logging" entry into GDB 6.0 section.
5960
4bc8c588
JB
59612003-07-02 Jim Blandy <jimb@redhat.com>
5962
a9dd42f1
JB
5963 * s390-tdep.c (struct frame_extra_info): new member:
5964 'stack_bought_valid'.
5965 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5966 initialize fextra_info->stack_bought.
5967 (s390_frameless_function_invocation): Don't trust the value of
5968 fextra_info_ptr->stack_bought unless
5969 fextra_info->stack_bought_valid is set.
5970
4bc8c588
JB
5971 New S390 prologue analyzer.
5972 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5973 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5974 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5975 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5976 compute_x_addr, s390_on_stack, s390_store,
5977 s390_get_signal_frame_info): New functions.
5978 (S390_NUM_SPILL_SLOTS): New macro.
5979 (s390_get_frame_info): Rewritten.
5980 (is_arg_reg): Deleted.
5981
5982 Break out the decoding of S/390 instructions into separate
5983 functions, to make it more legible, and easier to check
5984 against the spec.
5985 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5986 is_rx, is_rxe): New functions.
5987 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5988 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5989 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5990 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5991 enums for opcode values. (Is this an improvement?)
5992
fd13a04a
AC
59932003-07-02 Andrew Cagney <cagney@redhat.com>
5994
5995 * i386-tdep.c: Revert change committed as part of trad-frame code
5996 below.
5997
3f8091c1
DJ
59982003-07-02 Daniel Jacobowitz <drow@mvista.com>
5999
6000 * breakpoint.c (insert_catchpoint): Make static.
6001
8dd5115e
AS
60022003-07-02 Andreas Schwab <schwab@suse.de>
6003
6004 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
6005 former ia64_push_arguments and ia64_push_return_address, and use
6006 regcache functions instead of read/write_register.
6007 (ia64_gdbarch_init): Set push_dummy_call instead of
6008 deprecated_push_arguments and deprecated_push_return_address.
6009
a2229c23
AJ
60102003-07-01 Andreas Jaeger <aj@suse.de>
6011
6012 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
6013 before the call.
6014 Set %rax only to number of SSE registers used.
6015
3b3850e8
AC
60162003-07-01 Andrew Cagney <cagney@redhat.com>
6017
6018 * trad-frame.h: Update comments, a -1 .addr is reserved.
6019 (trad_frame_value_p, trad_frame_addr_p): Declare.
6020 (trad_frame_reg_p): Declare.
6021 (trad_frame_set_value): Rename trad_frame_register_value.
6022 (trad_frame_set_unknown): Declare.
6023 * trad-frame.c (trad_frame_realreg_p): New function.
6024 (trad_frame_addr_p, trad_frame_value_p): New function.
6025 (trad_frame_set_unknown): New function.
6026 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
6027 (trad_frame_prev_register): Use trad_frame_realreg_p,
6028 trad_frame_addr_p and trad_frame_value_p.
6029 (trad_frame_set_value): Rename trad_frame_register_value.
6030 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
6031 and trad_frame_set_value.
a2229c23 6032
4d819d0e
JB
60332003-06-30 Jim Blandy <jimb@redhat.com>
6034
6035 Patch from IBM (authors unspecified, probably Ulrich Weigand and
6036 Gerhard Tonn) for argument passing on the S/390 and S/390x:
6037 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
6038 for 16 registers, and then 32 more bytes.
6039 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
6040 New macros.
6041 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
6042 Move up in the file, since it's now used by is_simple_arg.
6043 (is_simple_arg): Don't assume registers are four bytes long.
6044 Exclude all double arguments. Extended floats are not simple
6045 args.
6046 (is_power_of_two): New function.
6047 (pass_by_copy_ref): Call is_power_of_two, and check that the
6048 length fits in a register, rather than listing all the acceptable
6049 sizes. Extended floats are not passed by reference.
6050 (s390_push_arguments): Don't assume registers are four bytes long.
6051 Reserve an argument register to point to the buffer for structures
6052 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
6053 S390_STACK_FRAME_OVERHEAD.
6054
1ad828f1
AS
60552003-06-30 Andreas Schwab <schwab@suse.de>
6056
6057 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
6058 format error message.
6059
39b00981
JB
60602003-06-30 Joel Brobecker <brobecker@gnat.com>
6061
6062 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
6063
b2a7f303
DC
60642003-06-30 David Carlton <carlton@kealia.com>
6065
6066 Band-aid for PR c++/1245.
6067 * Makefile.in (cp-support.o): Depend on complaints_h.
6068 * cp-support.c: Include complaints.h. Add declaration for
6069 find_last_component.
6070 (cp_find_first_component): Separate code into
6071 cp_find_first_component_aux.
6072 (cp_find_first_component_aux): Call demangled_name_complaint.
6073 (demangled_name_complaint): New.
6074
a257b5bb
AC
60752003-06-30 Andrew Cagney <cagney@redhat.com>
6076
6077 * remote.c (remote_write_bytes): Explicitly compute and then use
6078 the payload size. Update comments to reflect. Fixes problem of
6079 GDB not sending small packets as found by Fred Fish.
6080
0a2cfde4
AC
60812003-06-30 Andrew Cagney <cagney@redhat.com>
6082
6083 * remote.c (remote_async_wait): Fix -Wformat problem.
6084
3fcb8548
AC
60852003-06-29 Andrew Cagney <cagney@redhat.com>
6086
6087 * remote.c (remote_wait): Call error, and not warning, when the
6088 packet is corrupt.
6089 (remote_async_wait): Ditto.
6090
9f9970a3
DJ
60912003-06-29 Daniel Jacobowitz <drow@mvista.com>
6092
6093 * sparc-tdep.c (sparc_y_regnum): Make external again.
6094
83a8ccca
DJ
60952003-06-29 Daniel Jacobowitz <drow@mvista.com>
6096
6097 * cli/cli-logging.c (pop_output_files): Add void to function
6098 definition.
6099
d2cf594a
AC
61002003-06-29 Andrew Cagney <cagney@redhat.com>
6101
6102 * frame.c (frame_register_unwind): Use unsigned char when dumping
6103 the buffer contents.
6104
0fac0b41
DJ
61052003-06-28 Daniel Jacobowitz <drow@mvista.com>
6106
6107 * cli/cli-logging.c: New file.
6108 * cli-out.c (struct ui_out_data): Add original_stream.
6109 (cli_redirect): New function.
6110 (cli_ui_out_impl): Add cli_redirect.
6111 (cli_out_new): Initialize original_stream.
6112 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
6113 (uo_redirect, ui_out_redirect): New.
6114 * ui-out.h (struct ui_out_impl): Add redirect member.
6115 (redirect_ftype): New.
6116 (ui_out_redirect): Add prototype.
6117 * Makefile.in: Add rules for cli-logging.c.
6118 * NEWS: Mention "set logging".
6119
88a07d7c
EZ
61202003-06-27 Elena Zannoni <ezannoni@redhat.com>
6121
6122 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
6123
4eb58876
AC
61242003-06-27 Andrew Cagney <cagney@redhat.com>
6125
6126 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
6127 (m68hc11_gdbarch_init): Do not set call_dummy_address.
6128 * avr-tdep.c (avr_call_dummy_address): Delete function.
6129 (avr_gdbarch_init): Do not set call_dummy_address.
6130
1549f619
EZ
61312003-06-27 Elena Zannoni <ezannoni@redhat.com>
6132
6133 * symfile.c (syms_from_objfile): Move variables to inner block.
6134 Move the checks for the non-mainline case a bit earlier to avoid
6135 doing some useless computations.
6136
3cb3398d
EZ
61372003-06-27 Elena Zannoni <ezannoni@redhat.com>
6138
6139 * dwarfread.c (decode_modified_type): Gag new compiler warning.
6140
3799ccc6
EZ
61412003-06-26 Elena Zannoni <ezannoni@redhat.com>
6142
6143 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
6144 sections.
6145
ce1f6491
MC
61462003-06-26 Michael Chastain <mec@shout.net>
6147
6148 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
6149 gdb/testsuite/gdb.c++/pr-1210.exp.
6150
d958dfd0
AC
61512003-06-26 Andrew Cagney <cagney@redhat.com>
6152
6153 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
6154 altivec_expression.h and altivec_registers.h.
6155
d31431ed
AC
61562003-06-26 Andrew Cagney <cagney@redhat.com>
6157
6158 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
6159 info->mach when MIPS16. Patch suggested by Fred Fish.
6160
714b1282
AC
61612003-06-26 Andrew Cagney <cagney@redhat.com>
6162
6163 * utils.c (internal_vproblem): Print the problem to a reason
6164 buffer and then pass to query. Make the msg variable more local.
6165
42efa47a
AC
61662003-06-26 Andrew Cagney <cagney@redhat.com>
6167
6168 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
6169 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
6170 * gdbarch.h, gdbarch.c: Re-generate.
6171 * frame-base.c (default_frame_args_address): Update. Use
6172 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
6173 not available.
6174 (default_frame_locals_address): Ditto for
6175 DEPRECATED_FRAME_LOCALS_ADDRESS.
6176 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
6177 (vax_frame_num_args): Update.
6178 (vax_gdbarch_init): Update.
6179 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6180 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6181 * mcore-tdep.c (mcore_gdbarch_init): Update.
6182 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6183 * ia64-tdep.c (ia64_gdbarch_init): Update.
6184 * symtab.h (address_class): Update comments.
6185 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
6186 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6187 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6188 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6189 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6190 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6191 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6192 * alpha-mdebug-tdep.c: Update.
6193 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
6194
8ffd9b1b
AJ
61952003-06-26 Andreas Jaeger <aj@suse.de>
6196
6197 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
6198 of SSE registers so that varargs functions work. Rework handling
6199 of passing arguments on the stack.
6200 (x86_64_store_return_value): Return double and float values in SSE
6201 register.
6202
e8ac10a6
MC
62032003-06-24 Michael Chastain <mec@shout.net>
6204
6205 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
6206 the "constructor breakpoints ignored" bug.
6207
986af8e6
DC
62082003-06-25 David Carlton <carlton@kealia.com>
6209
6210 * MAINTAINERS: Update e-mail address.
6211
d64558a5
JB
62122003-06-24 Jim Blandy <jimb@redhat.com>
6213
e538d2d7
JB
6214 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
6215
02631ec0
JB
6216 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
6217 function.
6218 (ppc_linux_init_abi): Register it as the
6219 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
6220
e716d87a
JB
6221 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
6222 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
6223 method.
6224
d64558a5
JB
6225 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
6226 (ppc64_standard_linkage_target): Use it.
6227
449a5da4
AC
62282003-06-23 Andrew Cagney <cagney@redhat.com>
6229
6230 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
6231 for 0 "int0" and 4 "int32" sized registers.
6232 * gdbtypes.c (builtin_type_int0): Define.
6233 (build_gdbtypes): Initialize builtin_type_int0.
6234 * gdbtypes.h (builtin_type_int0): Declare.
6235
b2a02dda
SC
62362003-06-23 Stephane Carrez <stcarrez@nerim.fr>
6237
6238 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
6239 as characters are unsigned.
6240
fba3138e
DJ
62412003-06-22 Daniel Jacobowitz <drow@mvista.com>
6242
6243 PR gdb/1179
6244 * dwarfread.c (struct_type): Skip static fields without crashing.
6245
f6c8180b
AC
62462003-06-22 Andrew Cagney <cagney@redhat.com>
6247
6248 GDB 6.0 branch created.
f2c06f52
AC
6249 * README: Update.
6250 * PROBLEMS: Update. Empty.
6251 * NEWS: Update.
f6c8180b 6252
ae822768
DJ
62532003-06-22 Daniel Jacobowitz <drow@mvista.com>
6254
6255 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
6256 Suggested by Nick Hibma <n_hibma@webweaving.org>.
6257
261de166
AC
62582003-06-22 Andrew Cagney <cagney@redhat.com>
6259
6260 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
6261 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
6262 Velikov.
6263
30e94205
DJ
62642003-06-22 Daniel Jacobowitz <drow@mvista.com>
6265
6266 * cli/cli-cmds.c (shell_escape): Silence warnings from old
6267 compilers.
6268
9e14d721
DJ
62692003-06-21 Daniel Jacobowitz <drow@mvista.com>
6270
6271 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
6272 argument of val_print.
6273 * cp-valprint.c (cp_print_value): Don't add the offset parameter
6274 to the address argument of baseclass_offset or target_read_memory.
6275 Do add it to the argument of cp_print_value_fields.
6276
a4b8ebc8
AC
62772003-06-21 Andrew Cagney <cagney@redhat.com>
6278
6279 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
6280 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
6281 instead of 0..NUM_REGS.
6282 (mips_register_reggroup_p): New function.
6283 (mips_pseudo_register_write): New function.
6284 (mips_pseudo_register_read): New function.
6285 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
6286 based on the register's type.
6287 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
6288 cooked.
6289 (mips_get_saved_register): Simplify. Assert that REGNO is a
6290 pseudo / cooked.
6291 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
6292 (mips_register_type): Replace mips_register_virtual_type. Map
6293 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
6294 when available.
6295 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
6296 that the register is cooked / virtual.
6297 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
6298 Only get the extra info when needed.
6299 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
6300 (mips32_heuristic_proc_desc): Fetch the cooked register.
6301 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
6302 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
6303 (mips_print_register): Use gdbarch_register_type, instead of
6304 REGISTER_VIRTUAL_TYPE.
6305 (print_gp_register_row): Use gdbarch_register_type, instead of
6306 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
6307 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6308 Print the pseudo / cooked registers.
6309 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6310 Print the pseudo / cooked registers.
6311 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
6312 REG_NUM is pseudo / cooked.
6313 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
6314 (mips_n32n64_xfer_return_value): Ditto.
6315 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
6316 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
6317 (mips_register_sim_regno): New function.
6318 (mips_gdbarch_init): Set deprecated_register_byte,
6319 register_group_p, pseudo_register_write, pseudo_register_read,
6320 register_sim_regno, and num_pseudo_regs. Set register_type,
6321 instead of register_virtual_type.
6322 * Makefile.in (mips-tdep.o): Update dependencies.
6323 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
6324 REGISTER_VIRTUAL_TYPE.
6325 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
6326 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
6327 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
6328 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
6329 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
6330
325ed089
DJ
63312003-06-21 Daniel Jacobowitz <drow@mvista.com>
6332
6333 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
6334 * cli/cli-cmds.c: Include "gdb_vfork.h".
6335 (shell_escape): Use vfork.
6336
f0e7d0e8
AC
63372003-06-21 Andrew Cagney <cagney@redhat.com>
6338
c57bb9fa
AC
6339 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
6340 32 bit floating-point register saves.
6341
6e51443a
AC
6342 * frame.h (deprecated_unwind_get_saved_register): Delete.
6343 * frame.c (deprecated_unwind_get_saved_register): Delete function.
6344 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
6345 and deprecated_get_next_frame_hack instead of
6346 deprecated_unwind_get_saved_register.
6347
ed183c7c
AC
6348 * mips-tdep.c (mips_dump_tdep): Do not print
6349 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
6350
f0e7d0e8
AC
6351 * frame.c (get_frame_register): New function.
6352 (frame_unwind_register_signed): New function.
6353 (get_frame_register_signed): New function.
6354 (frame_unwind_register_unsigned): New function.
6355 (get_frame_register_unsigned): New function.
6356 * frame.h: Add comments on naming schema.
6357 (get_frame_register, frame_unwind_register_signed): Declare.
6358 (get_frame_register_signed, get_frame_register_signed): Declare.
6359 (frame_unwind_register_unsigned): Declare.
6360 (get_frame_register_unsigned): Declare.
6361
2224d941
TR
63622003-06-20 Theodore A. Roth <troth@openavr.org>
6363
6364 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
6365
8619218d
TR
63662003-06-20 Theodore A. Roth <troth@openavr.org>
6367
6368 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
6369 (avr_read_sp): Ditto.
6370
0b1b50c0
DJ
63712003-06-20 Daniel Jacobowitz <drow@mvista.com>
6372
6373 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
6374 * config/arm/nm-linux.h: Likewise.
6375 * config/arm/tm-linux.h: Likewise.
6376 * config/ia64/nm-linux.h: Likewise.
6377 * config/ia64/tm-ia64.h: Likewise.
6378 * config/s390/tm-linux.h: Likewise.
6379 * config/s390/tm-s390.h: Likewise.
6380 * s390-nat.c: Likewise.
6381 * s390-tdep.c: Likewise.
6382
6383 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
6384 * config/ia64/linux.mt: Likewise.
6385 * config/m68k/linux.mh: Likewise.
6386 * config/mips/linux.mt: Likewise.
6387 * config/powerpc/linux.mh: Likewise.
6388 * config/sh/linux.mt: Likewise.
6389
c8c18e65
KW
63902003-06-19 Kris Warkentin <kewarken@qnx.com>
6391
6392 * solib.c (solib_open): Change tests for whether to search
6393 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
6394 comments.
6395
dcccef2e
TR
63962003-06-19 Theodore A. Roth <troth@openavr.org>
6397
6398 * avr-tdep.c (avr_frame_address): Delete function.
6399 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
6400 set_gdbarch_frame_args_address.
6401
5861a190
AC
64022003-06-19 Andrew Cagney <cagney@redhat.com>
6403
6404 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
6405 (REGISTER_CONVERT_FROM_TYPE): Delete.
6406 (mips_register_convert_to_type): Delete declaration.
6407 (mips_register_convert_from_type): Delete declaration.
6408 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
6409 kernel/.
6410
0274a8ce
MS
64112003-06-19 Michael Snyder <msnyder@redhat.com>
6412
6413 * linux-nat.h: New file.
6414 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 6415 * lin-lwp.c: Include linux-nat.h.
0274a8ce 6416 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 6417 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
6418 (linux_make_note_section): Iterate over lwps instead of threads.
6419 (linux_do_thread_registers): Use lwp instead of merged pid.
6420 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 6421 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
6422 Add dependency on linux_nat_h.
6423
adf5f719
TR
64242003-06-19 Theodore A. Roth <troth@openavr.org>
6425
6426 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
6427
6766a268
DJ
64282003-06-19 Daniel Jacobowitz <drow@mvista.com>
6429
6430 * varobj.c (get_type, get_target_type): Use check_typedef.
6431
1171114a
DJ
64322003-06-19 Daniel Jacobowitz <drow@mvista.com>
6433
6434 * breakpoint.c (insert_catchpoint): Call internal_error.
6435
adcf68a2
TR
64362003-06-19 Theodore A. Roth <troth@openavr.org>
6437
6438 * avr-tdep.c (avr_push_dummy_code): Delete function.
6439 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6440
ea67f13b
DJ
64412003-06-19 Daniel Jacobowitz <drow@mvista.com>
6442
6443 * arch-utils.c (default_prepare_to_proceed): Remove.
6444 (generic_prepare_to_proceed): Remove.
6445 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
6446 (generic_prepare_to_proceed): Remove prototype.
6447 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
6448 * gdbarch.c: Regenerate.
6449 * gdbarch.h: Regenerate.
6450 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
6451 * hppah-nat.c (hppa_switched_threads): Remove.
6452 * infrun.c (prepare_to_proceed): New static function, copied from
6453 generic_prepare_to_proceed. Remove select_it argument.
6454 (proceed): Call prepare_to_proceed.
6455 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
6456 variables.
6457 (ptrace_wait): Don't set the removed variables.
6458 (hppa_switched_threads): Remove.
6459 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
6460 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
6461 (lin_lwp_prepare_to_proceed): Remove prototype.
6462 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
6463 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
6464
4add8633
TR
64652003-06-18 Theodore A. Roth <troth@openavr.org>
6466
6467 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
6468 trad-frame.h.
6469 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
6470 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
6471 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
6472 (AVR_PROLOGUE_*): Enumerate prologue types.
6473 (struct frame_extra_info): Remove.
6474 (struct avr_unwind_cache): Define.
6475 (avr_write_sp): Delete function.
6476 (avr_read_fp): Ditto.
6477 (avr_init_extra_frame_info): Ditto.
6478 (avr_pop_frame): Ditto.
6479 (avr_frame_saved_pc): Ditto.
6480 (avr_saved_pc_after_call): Ditto.
6481 (avr_push_return_address): Ditto.
6482 (avr_frame_chain): Ditto.
6483 (avr_store_struct_return): Ditto.
6484 (avr_push_arguments): Ditto.
6485 (avr_scan_prologue): Update comments. Changed to set up the info for
6486 cache unwinding. Now returns end of prologue PC.
6487 (avr_skip_prologue): Better handling of functions lacking a prologue
6488 by using avr_scan_prologue.
6489 (avr_scan_arg_moves): New function.
6490 (avr_saved_regs_unwinder): Ditto.
6491 (avr_frame_unwind_cache): Ditto.
6492 (avr_unwind_pc): Ditto.
6493 (avr_frame_this_id): Ditto.
6494 (avr_frame_prev_register): Ditto.
6495 (avr_frame_p): Ditto.
6496 (avr_frame_base_address ): Ditto.
6497 (avr_unwind_dummy_id): Ditto.
6498 (avr_push_dummy_code): Ditto.
6499 (push_stack_item): Ditto.
6500 (pop_stack_item): Ditto.
6501 (avr_push_dummy_call): Ditto.
6502 (struct stack_item): Define.
6503 (avr_frame_unwind): Declare structure.
6504 (avr_frame_base): Ditto.
6505 (avr_gdbarch_init): Remove calls to
6506 set_gdbarch_deprecated_init_frame_pc,
6507 set_gdbarch_deprecated_target_read_fp,
6508 set_gdbarch_deprecated_dummy_write_sp,
6509 set_gdbarch_deprecated_fp_regnum,
6510 set_gdbarch_deprecated_push_arguments,
6511 set_gdbarch_deprecated_push_return_address,
6512 set_gdbarch_deprecated_pop_frame,
6513 set_gdbarch_deprecated_store_struct_return,
6514 set_gdbarch_deprecated_frame_init_saved_regs,
6515 set_gdbarch_deprecated_init_extra_frame_info,
6516 set_gdbarch_deprecated_frame_chain,
6517 set_gdbarch_deprecated_frame_saved_pc,
6518 set_gdbarch_deprecated_saved_pc_after_call.
6519 Add calls to set_gdbarch_push_dummy_call,
6520 set_gdbarch_push_dummy_code,
6521 frame_unwind_append_predicate,
6522 frame_base_set_default,
6523 set_gdbarch_unwind_dummy_id,
6524 set_gdbarch_unwind_pc.
6525 Wrap a long line.
6526
7be04a68
MS
65272003-06-18 Corinna Vinschen <vinschen@redhat.com>
6528
6529 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6530 registers for H8/300S.
6531 (h8300_print_registers_info): Ditto.
8ffd9b1b 6532 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 6533
ae087d01
DJ
65342003-06-18 Daniel Jacobowitz <drow@mvista.com>
6535
6536 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6537 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6538 (lin_lwp_wait): Likewise. Update comments.
6539 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6540 (pull_pid_from_list, linux_record_stopped_pid): New.
6541
07d8f827
SC
65422003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6543
6544 * ada-lang.c (scan_discrim_bound): Name first argument.
6545 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6546 declared by ALL_BLOCK_SYMBOLS.
6547
7cb47b14
SC
65482003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6549
6550 * ada-tasks.c (find_function_in_inferior): Don't declare it.
6551 ("regcache.h"): Include it.
6552 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6553
6ad8ae5c
DJ
65542003-06-17 Daniel Jacobowitz <drow@mvista.com>
6555
6556 * NEWS: Mention gdbserver detach change and "disconnect" command.
6557 * infcmd.c (disconnect_command): New function.
6558 (_initialize_infcmd): Add ``disconnect'' command.
6559 * remote.c (remote_async_detach): Delete.
6560 (remote_detach): Merge remote_async_detach.
6561 (remote_disconnect): New.
6562 (init_remote_ops): Set to_disconnect.
6563 (init_remote_cisco_ops): Likewise.
6564 (init_remote_async_ops): Likewise. Use remote_detach.
6565 * target.c (cleanup_target): Default to_disconnect.
6566 (update_current_target): Inherit to_disconnect.
6567 (target_disconnect, debug_to_disconnect): New functions.
6568 (setup_target_debug): Set to_disconnect.
6569 * target.h (struct target_ops): Add to_disconnect.
6570 (target_disconnect): Add prototype.
6571
687595f9
DJ
65722003-06-17 Daniel Jacobowitz <drow@mvista.com>
6573
6574 * breakpoint.c (insert_catchpoint): New function.
6575 (insert_breakpoints): Use catch_exceptions to call
6576 insert_catchpoint. Disable catchpoints if they fail to insert.
6577
29239a8f
DJ
65782003-06-17 Daniel Jacobowitz <drow@mvista.com>
6579
6580 * symfile.c (reread_symbols): Clear sym_private.
6581
2cdf3c63
AC
65822003-06-17 Andrew Cagney <cagney@redhat.com>
6583
6584 * trad-frame.h (struct frame_info): Add opaque declaration.
6585 * remote-fileio.h (struct cmd_list_element): Add opaque
6586 declaration.
6587 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6588 comments.
6589
cf0e1e0d
DJ
65902003-06-17 Daniel Jacobowitz <drow@mvista.com>
6591
6592 * remote.c (remote_prepare_to_store): Replace call to
6593 deprecated_read_register_bytes with multiple regcache_raw_read
6594 calls.
6595
192cdb19
KW
65962003-06-17 Kris Warkentin <kewarken@qnx.com>
6597
6598 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6599 (nto_find_and_open_solib): Likewise.
6600 (nto_init_solib_absolute_prefix): Likewise.
6601 (_initialize_nto_tdep): Fix indentation.
6602
89929b45
KW
66032003-06-17 Kris Warkentin <kewarken@qnx.com>
6604
6605 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6606
46019f27
KW
66072003-06-17 Kris Warkentin <kewarken@qnx.com>
6608
6609 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6610
1a38736e
JB
66112003-06-17 Jim Blandy <jimb@redhat.com>
6612
6613 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6614
3605c34a
TR
66152003-06-16 Theodore A. Roth <troth@openavr.org>
6616
6617 * avr-tdep.c (avr_extract_return_value): New function.
6618 (avr_gdbarch_init): Set extract_return_value method.
6619
870b3035
AC
66202003-06-16 Andrew Cagney <cagney@redhat.com>
6621
6622 * frame.h (deprecated_get_next_frame_hack): Declare.
6623 * frame.c (legacy_saved_regs_prev_register): Only require
6624 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
6625 there are always saved regs.
6626 (deprecated_generic_get_saved_register): Do not require
6627 DEPRECATED_FRAME_INIT_SAVED_REGS.
6628 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6629 use frame ID unwind instead.
6630 (deprecated_get_next_frame_hack): New function.
6631
63d47a7d
CV
66322003-06-16 Corinna Vinschen <vinschen@redhat.com>
6633
6634 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
6635 (h8300_push_dummy_call): ...this function. Some minor optimization.
6636 (h8300_push_return_address): Remove.
6637 (h8300_gdbarch_init): Remove calls to
6638 set_gdbarch_deprecated_dummy_write_sp,
6639 set_gdbarch_deprecated_push_arguments and
6640 set_gdbarch_deprecated_push_return_address.
6641 Add call to set_gdbarch_push_dummy_call.
6642
4bb1dc5e
CV
66432003-06-16 Corinna Vinschen <vinschen@redhat.com>
6644
6645 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6646 (E_PSEUDO_EXR_REGNUM): Ditto.
6647 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 6648 registers into safe registers.
4bb1dc5e
CV
6649 (h8300_skip_prologue): Check for stm instruction to push registers
6650 used for register variables onto stack.
6651 (gdb_print_insn_h8300): Remove.
6652 (h8300_examine_prologue): Add a comment.
6653 (h8300_register_name): Take pseudo registers into account.
6654 (h8300s_register_name): Ditto.
6655 (h8300sx_register_name): Ditto.
6656 (h8300_print_register): Ditto.
6657 (h8300_print_registers_info): Define "nice" printing order.
6658 (h8300_saved_pc_after_call): Take pseudo registers into account.
6659 (h8300_register_type): Ditto. Return type used for remote connection
6660 when requesting real CCR or EXR register, return actual type when
6661 requesting pseudo CCR or EXR.
6662 (h8300_pseudo_register_read): New function.
6663 (h8300_pseudo_register_write): Ditto.
6664 (h8300_dbg_reg_to_regnum): Ditto.
6665 (h8300s_dbg_reg_to_regnum): Ditto.
6666 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6667 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6668 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6669 set_gdbarch_print_insn architecture dependent.
6670 Call set_gdbarch_pseudo_register_read and
6671 set_gdbarch_pseudo_register_write.
6672 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6673
a59fe496
AC
66742003-06-16 Andrew Cagney <cagney@redhat.com>
6675
6676 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6677 * gdbarch.h, gdbarch.c: Re-generate.
6678 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6679 * s390-tdep.c (s390_gdbarch_init): Update.
6680 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6681 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6682 * mips-tdep.c (mips_gdbarch_init): Update.
6683 * mcore-tdep.c (mcore_gdbarch_init): Update.
6684 * cris-tdep.c (cris_gdbarch_init): Update.
6685 * infcall.c (call_function_by_hand): Update.
6686 * ia64-tdep.c (ia64_push_arguments): Update comment.
6687 * frame.c (legacy_get_prev_frame): Do not assume
6688 SAVE_DUMMY_FRAME_TOS_P.
6689 * dummy-frame.c (find_dummy_frame): Update comment.
6690
6f4e5a41
AC
66912003-06-16 Andrew Cagney <cagney@redhat.com>
6692
6693 * regcache.c (do_cooked_read): Do not use register_valid_p.
6694
72fab697
TR
66952003-06-15 Theodore A. Roth <troth@openavr.org>
6696
6697 * avr-tdep.c (avr_register_type): Remove a blank line.
6698 (avr_scan_prologue): Correct some comments.
6699
e3d8b004
TR
67002003-06-15 Theodore A. Roth <troth@openavr.org>
6701
6702 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6703 prologue types.
8ffd9b1b 6704 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
6705 option.
6706 Add code to scan -mcall-prologues for mega devices.
6707
866b76ea
TR
67082003-06-15 Theodore A. Roth <troth@openavr.org>
6709
6710 * avr-tdep.c (avr_register_byte): Delete function.
6711 (avr_register_raw_size): Delete function.
6712 (avr_register_virtual_size): Delete function.
6713 (avr_register_virtual_type): Delete function.
6714 (avr_register_type): New function.
6715 (avr_address_to_pointer): Remove unused code.
6716 (avr_read_fp): Need to read FP as two separate bytes due to change to
6717 avr_register_type() usage.
6718 (avr_gdbarch_init): Don't set deprecated_register_size.
6719 Don't set deprecated_register_bytes.
6720 Don't set deprecated_register_byte.
6721 Don't set deprecated_register_raw_size.
6722 Don't set deprecated_max_register_raw_size.
6723 Don't set deprecated_register_virtual_size.
6724 Don't set deprecated_max_register_virtual_size.
6725 Don't set deprecated_register_virtual_type.
6726 Set register_type method.
6727
3993f6b1
DJ
67282003-06-15 Daniel Jacobowitz <drow@mvista.com>
6729
6730 * Makefile.in (linux-nat.o): Add rule.
6731 * linux-nat.c: New file.
6732 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6733 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6734 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6735 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6736 * config/arm/linux.mh (NATDEPFILES): Likewise.
6737 * config/i386/linux.mh (NATDEPFILES): Likewise.
6738 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6739 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6740 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6741 * config/mips/linux.mh (NATDEPFILES): Likewise.
6742 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6743 * config/s390/s390.mh (NATDEPFILES): Likewise.
6744 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6745
786a90bb
MK
67462003-06-15 Mark Kettenis <kettenis@gnu.org>
6747
6748 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6749 replace out-of-date comment.
6750
3bd3f01e
AC
67512003-06-15 Andrew Cagney <cagney@redhat.com>
6752
6753 * rdi-share/host.h (Fail): Change to a varargs function.
6754 * remote-rdi.c (Fail): Update.
8ffd9b1b 6755
de5b9bb9
MK
67562003-06-15 Mark Kettenis <kettenis@gnu.org>
6757
6758 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6759 (i386_convert_register_p, i386_register_to_value,
6760 i386_register_from_value): Handle types longer than 8 bytes.
6761
d532c08f
MK
67622003-06-15 Mark Kettenis <kettenis@gnu.org>
6763
6764 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6765 Move floating-point code to new function in i387-tdep.c.
6766 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6767 New functions containing code moved here from i386-tdep.c.
6768 * i387-tdep.h: Add opaque declaration for `struct type'.
6769 (i387_register_to_value, i387_value_to_register): New prototypes.
6770 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6771 (x86_64_init_abi): Set convert_register_p, register_to_value and
6772 value_to_register here.
8ffd9b1b 6773
42c466d7
AC
67742003-06-14 Andrew Cagney <cagney@redhat.com>
6775
6776 * mips-tdep.c (mips_register_to_value): Make static.
6777 (mips_value_to_register): Make static.
6778 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6779 * ia64-tdep.c (ia64_register_raw_size): Make static.
6780 (ia64_register_virtual_size): Make static.
6781 (ia64_register_byte): Make static.
6782 * i387-tdep.c: Include "i387-tdep.h".
6783 (print_387_control_word): Delete function.
6784 (print_387_status_word): Delete function.
6785 (print_387_status_bits): Delete function.
6786 (print_387_control_bits): Delete function.
6787 * Makefile.in (i387-tdep.o): Update dependencies.
6788 * rdi-share/host.h (Fail): Declare.
6789 * remote-rdi.c (Fail): Update to match declaration.
6790
2a9cda49
AC
67912003-06-14 Andrew Cagney <cagney@redhat.com>
6792
6793 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6794 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6795 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6796 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6797 * README: Delete reference to remote-array.
6798 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6799 (remote-array.o): Delete target.
6800 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6801 * remote-array.c: Delete file.
6802
ff2e87ac
AC
68032003-06-14 Andrew Cagney <cagney@redhat.com>
6804 Mark Kettenis <kettenis@gnu.org>
6805
6806 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6807 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6808 parameter with "frame".
6809 * gdbarch.h, gdbarch.c: Re-generate.
6810 * frame.h (put_frame_register): Declare.
6811 * frame.c (put_frame_register): New function.
6812 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6813 (legacy_register_to_value): Rewrite, use "frame" to get the
6814 register value.
6815 (legacy_value_to_register): Rewrite, use "frame" to find the
6816 register's location before storing.
6817 * arch-utils.h (legacy_convert_register_p): Update.
6818 (legacy_register_to_value, legacy_value_to_register): Update.
6819 * findvar.c (value_from_register): Rewrite, eliminate use of
6820 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6821 "frame" to REGISTER_TO_VALUE.
6822 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6823 lval_reg_frame_relative + lval_register branch of the switch. Do
6824 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6825 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6826 I386_EDI_REGNUM): New defines.
6827 (i386_next_regnum, i386_convert_register_p,
6828 i386_register_to_value, i386_value_to_register): New functions.
6829 (i386_register_convertible, i386_register_convert_to_virtual,
6830 i386_convert_to_raw): Remove functions.
6831 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6832 value_to_register instead of register_convertible,
6833 register_convert_to_virtual and register_convert_to_raw.
6834 * mips-tdep.c (mips_convert_register_p): New function.
6835 (mips_value_to_register): Replace mips_register_convert_from_type.
6836 (mips_register_to_value): Replace mips_register_convert_to_type.
6837 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6838 register_to_value.
6839 * alpha-tdep.c (alpha_convert_register_p): Update.
6840 (alpha_value_to_register): Update, store the register.
6841 (alpha_register_to_value): Update, fetch the register.
6842
98be1e77
TR
68432003-06-14 Theodore A. Roth <troth@openavr.org>
6844
6845 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6846 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6847 Don't set deprecated_call_dummy_words.
6848 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6849 Don't set remote_translate_xfer_address.
6850 (avr_io_reg_read_command): Remove commented out debug printf.
6851 Wrap a long line.
6852
57bc6122
TR
68532003-06-14 Theodore A. Roth <troth@openavr.org>
6854
6855 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6856 causes gdb to seg fault.
6857
eb01fc62
DJ
68582003-06-14 Daniel Jacobowitz <drow@mvista.com>
6859
6860 * sparc-nat.c (fetch_inferior_registers): Correct
6861 a reference to "registers".
6862
3b3e6bee
DJ
68632003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6864
6865 * Makefile.in (exc_request_U_h): Define
6866 (exc_request_S_h): Likewise.
6867 (msg_reply_S_h): Likewise.
6868 (msg_U_h): Likewise.
6869 (notify_S_h): Likewise.
6870 (process_reply_S_h): Likewise.
6871 (gnu-nat.o): Depend on gdb_obstack_h
6872 * gnu-nat.c: Include "gdb_obstack.h".
6873
b8de8283
AC
68742003-06-13 Andrew Cagney <cagney@redhat.com>
6875
6876 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6877 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 6878
f3be58bc
AC
68792003-06-13 Andrew Cagney <cagney@redhat.com>
6880
6881 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6882 when deprecated REGISTER macros can be deleted.
6883 * gdbarch.h, gdbarch.c: Re-generate.
6884
4c0122c8
JB
68852003-06-13 Jim Blandy <jimb@redhat.com>
6886
6887 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6888 Linux entry point symbols for _dl_debug_state, too.
6889
3e210248
AC
68902003-06-13 Andrew Cagney <cagney@redhat.com>
6891
6892 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6893 available, do not use the FP register, and always save the TOS.
6894 * dummy-frame.c (dummy_frame_this_id): Do not assert
6895 SAVE_DUMMY_FRAME_TOS.
6896 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6897 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6898 (i386_push_dummy_call): Add 8 to the returned SP.
6899 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6900 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6901 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6902 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6903 (x86_64_push_dummy_call): Return "sp + 16".
6904 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6905 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6906 save_dummy_frame_tos.
6907
0b65af49
JB
69082003-06-13 Jim Blandy <jimb@redhat.com>
6909
6910 * frv-tdep.c (frv_use_struct_convention): Delete static
6911 declaration for function deleted in my change of 2003-06-12.
6912
4ea2465e
TR
69132003-06-13 Theodore A. Roth <troth@openavr.org>
6914
6915 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6916 (avr_pointer_to_address): Shift code addrs left 1 bit.
6917 (avr_convert_from_func_ptr_addr): Delete function since operation is
6918 better handled by avr_address_to_pointer and avr_pointer_to_address.
6919 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6920
1581182a
MK
69212003-06-13 Mark Kettenis <kettenis@gnu.org>
6922
6923 From Kelley Cook <kelleycook@wideopenwest.com>:
6924 * configure.host: Accept i[34567]86 variants.
6925 * configure.tgt: Likewise.
6926 * nlm/configure.in: Likewise.
6927 * nlm/configure: Regenerated.
6928
7aa1783e
RE
69292003-06-13 Richard Earnshaw <rearnsha@arm.com>
6930
6931 * arm-tdep.c (solib-svr4.h): Dont' include it.
6932 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6933 * arm-linux-tdep.c: ... here. Make static.
6934 (arm_linux_init_abi): Register it.
6935 (solib-svr4.h): Include it.
6936 * Makefile.in: Update dependencies.
6937 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6938 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6939
0261a0d0
CV
69402003-06-13 Corinna Vinschen <vinschen@redhat.com>
6941
6942 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6943 indicate registers used for return values.
6944 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6945 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6946 members.
6947 (h8300_init_extra_frame_info): Ditto.
6948 (h8300_frame_locals_address): Removed.
6949 (h8300_frame_args_address): Removed.
6950 (h8300_extract_return_value): Use new regcache structure. Only care
6951 for 16 bit CPUs.
6952 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6953 (h8300_store_return_value): Use new regcache structure. Only care
6954 for 16 bit CPUs.
6955 (h8300h_store_return_value): Same function for 32 bit CPUs.
6956 (h8300_store_struct_return): Removed.
6957 (h8300_extract_struct_value_address): Use new regcache structure.
6958 (h8300h_extract_struct_value_address): Removed.
6959 (h8300_push_dummy_code): New function.
6960 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6961 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6962 set_gdbarch_store_return_value architecture dependent.
6963 Call set_gdbarch_push_dummy_code and
6964 set_gdbarch_extract_struct_value_address.
6965 Remove calls to set_gdbarch_frame_args_address,
6966 set_gdbarch_frame_locals_address,
6967 set_gdbarch_deprecated_store_struct_return,
6968 set_gdbarch_deprecated_extract_return_value,
6969 set_gdbarch_deprecated_extract_struct_value_address,
6970 set_gdbarch_deprecated_call_dummy_words and
6971 set_gdbarch_deprecated_sizeof_call_dummy_words.
6972
055c394a
CV
69732003-06-13 Corinna Vinschen <vinschen@redhat.com>
6974
6975 * h8300-tdep.c (h8300_register_byte): Remove.
6976 (h8300h_register_byte): Remove.
6977 (h8300_register_virtual_type): Remove. Substitute by...
6978 (h8300_register_type): New function.
6979 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6980 (h8300h_extract_struct_value_address): Ditto.
6981 (h8300_gdbarch_init): Drop calls to
6982 set_gdbarch_deprecated_register_byte and
6983 set_gdbarch_deprecated_register_virtual_type.
6984 Add call to set_gdbarch_register_type.
6985
9c04cab7
AC
69862003-06-13 Andrew Cagney <cagney@redhat.com>
6987
6988 * gdbarch.sh: Update comments on registers.
6989 (deprecated_register_byte): Rename register_byte.
6990 (deprecated_register_raw_size): Rename register_raw_size.
6991 (deprecated_register_virtual_size): Rename register_virtual_size.
6992 (deprecated_register_virtual_type): Rename register_virtual_type.
6993 * gdbarch.h, gdbarch.c: Re-generate.
6994 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6995 * vax-tdep.c (vax_gdbarch_init): Update.
6996 * v850-tdep.c (v850_gdbarch_init): Update.
6997 * sparc-tdep.c (sparc_gdbarch_init): Update.
6998 * sh-tdep.c (sh_gdbarch_init): Update.
6999 * s390-tdep.c (s390_gdbarch_init): Update.
7000 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7001 * ns32k-tdep.c: Update.
7002 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7003 * mips-tdep.c (mips_gdbarch_init): Update.
7004 * mcore-tdep.c (mcore_gdbarch_init): Update.
7005 * m68k-tdep.c (m68k_gdbarch_init): Update.
7006 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7007 * ia64-tdep.c (ia64_gdbarch_init): Update.
7008 * hppa-tdep.c (hppa_gdbarch_init): Update.
7009 * h8300-tdep.c (h8300_gdbarch_init): Update.
7010 * frv-tdep.c (frv_gdbarch_init): Update.
7011 * cris-tdep.c (cris_gdbarch_init): Update.
7012 * avr-tdep.c (avr_gdbarch_init): Update.
7013 * alpha-tdep.c (alpha_gdbarch_init): Update.
7014 * arm-tdep.c (arm_gdbarch_init): Update.
7015
b060cbea
AC
70162003-06-13 Andrew Cagney <cagney@redhat.com>
7017
7018 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
7019 mips_o32_use_struct_convention with always_use_struct_convention.
7020
0fc9922a
DC
70212003-06-12 David Carlton <carlton@kealia.com>
7022
7023 * cp-namespace.c (cp_set_block_scope): Comment out
7024 processing_has_namespace_info branch.
7025
1fd35568
JB
70262003-06-12 Jim Blandy <jimb@redhat.com>
7027
f470a70a
JB
7028 Recognize and skip 64-bit PowerPC Linux linkage functions.
7029 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
7030 insn_pattern, insns_match_pattern, d_field, ds_field): New
7031 functions, macros, and types for working with PPC instructions.
7032 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
7033 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
7034 ppc64_skip_trampoline_code): New functions, variables, and macros
7035 for recognizing and skipping linkage functions.
7036 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
7037 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
7038
49ff75ad
JB
7039 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
7040 register offsets for both the 32- and 64-bit interfaces.
7041
bd918c83
JB
7042 Actually finish the job started by my change of 2003-05-29.
7043 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
7044 other #definition of this.
7045 (ppc_linux_skip_trampoline_code): Remove declaration.
7046 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
7047 static.
7048 (ppc_linux_init_abi): Register it as the skip_trampoline_code
7049 method for GDBARCH.
7050
7051 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
7052 'long' on ppc64-*-linux*.
7053
f8c59253
JB
7054 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
7055 isn't #defined, assume the register doesn't exist: act as if
7056 tdep->ppc_mq_regnum were -1.
7057
8fbb30b1
JB
7058 * configure.host, configure.tgt: Add entries for
7059 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
7060 powerpc/linux.mt.
7061 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
7062 New files.
7063
1fd35568
JB
7064 * arch-utils.c (always_use_struct_convention): New function.
7065 * arch-utils.h (always_use_struct_convention): New prototype.
7066 * alpha-tdep.c (alpha_use_struct_convention): Delete.
7067 (alpha_gdbarch_init): Register always_use_struct_convention,
7068 instead of alpha_use_struct_convention.
7069 * cris-tdep.c (cris_use_struct_convention): Delete.
7070 (cris_gdbarch_init): Register always_use_struct_convention,
7071 instead of cris_use_struct_convention.
7072 * frv-tdep.c (frv_use_struct_convention): Delete.
7073 (frv_gdbarch_init): Register always_use_struct_convention,
7074 instead of frv_use_struct_convention.
7075 * h8300-tdep.c (h8300_use_struct_convention): Delete.
7076 (h8300_gdbarch_init): Register always_use_struct_convention,
7077 instead of h8300_use_struct_convention.
e3305dd9 7078 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
7079 (mips_o32_gdbarch_init): Register always_use_struct_convention,
7080 instead of mips_o32_use_struct_convention.
7081
e14e6e9c
AC
70822003-06-12 Andrew Cagney <cagney@redhat.com>
7083
7084 * wince.c: Include "mips-tdep.h".
7085 * mips-tdep.h (mips_next_pc): Declare.
7086 * mcore-tdep.c: Make more local functions static.
7087 * Makefile.in (wince.o): Update dependencies.
7088
2335f48e
DC
70892003-06-12 David Carlton <carlton@kealia.com>
7090
7091 * symtab.c (lookup_symbol_aux_minsyms): Replace
7092 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7093 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
7094 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
7095 SYMBOL_NATURAL_NAME.
7096
f70a7d61
AS
70972003-06-12 Andreas Schwab <schwab@suse.de>
7098
7099 * Makefile.in (tuiDisassem.o): Update dependencies.
7100
b6429628
DC
71012003-06-12 David Carlton <carlton@bactrian.org>
7102
7103 * symtab.h: Delete declaration of make_symbol_overload_list.
7104 Add declaration of lookup_partial_symbol.
7105 * symtab.c (remove_params): Move to cp-support.c.
7106 (overload_list_add_symbol, make_symbol_overload_list)
7107 (sym_return_val_size, sym_return_val_index): Ditto.
7108 (lookup_partial_symbol): Make extern.
7109 * cp-support.h: Add declaration of make_symbol_overload_list.
7110 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
7111 symtab.h, and block.h.
7112 (remove_params): Move here from symtab.c.
7113 (overload_list_add_symbol, make_symbol_overload_list)
7114 (sym_return_val_size, sym_return_val_index): Ditto.
7115 * valops.c: Include cp-support.h.
7116 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
7117 frame_h, and block_h.
7118 (valops.o): Depend on cp_support_h.
7119
084edea5
CV
71202003-06-12 Corinna Vinschen <vinschen@redhat.com>
7121
7122 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
7123 substitute by NUM_REGS throughout.
7124 (h8300_register_name): Only care for H8/300 and H8/300H registers.
7125 (h8300s_register_name): New function for H8S registers.
7126 (h8300sx_register_name): Ditto for H8SX registers.
7127 (h8300_print_register): Revise register printing, avoid depending
7128 on 32 bit long.
0261a0d0 7129 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
7130 (h8300h_register_byte): New function for any other architecture.
7131 (h8300_register_raw_size): Remove.
7132 (h8300_register_virtual_type): Revise to return actually useful
7133 type.
7134 (h8300_extract_struct_value_address): Only care for H8/300 registers.
7135 (h8300h_extract_struct_value_address): New function for any other
7136 architecture.
7137 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
7138 set_gdbarch_register_name, set_gdbarch_register_byte,
7139 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
7140 Remove calls to set_gdbarch_deprecated_register_size,
7141 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
7142 set_gdbarch_deprecated_max_register_raw_size,
7143 set_gdbarch_register_virtual_size and
7144 set_gdbarch_deprecated_max_register_virtual_size entirely.
7145 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
7146 set_gdbarch_long_double_bit.
7147
06194148
JJ
71482003-06-11 Jeff Johnston <jjohnstn@redhat.com>
7149
8ffd9b1b
AJ
7150 * doublest.c (convert_doublest_to_floatformat): When dealing
7151 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
7152 processing a full 32 bits of mantissa.
7153
de4f826b
DC
71542003-06-11 David Carlton <carlton@bactrian.org>
7155
7156 * dictionary.h: New.
7157 * dictionary.c: New.
7158 * block.h: Add opaque declaration for struct dictionary.
7159 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
7160 'sym' members.
7161 (BLOCK_DICT): New macro.
7162 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
7163 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
7164 BLOCK_SHOULD_SORT.
7165 (ALL_BLOCK_SYMBOLS): Update definition.
7166 * Makefile.in (SFILES): Add dictionary.c.
7167 (dictionary_h): New.
7168 (COMMON_OBS): Add dictionary.o.
7169 (dictionary.o): New.
7170 (ada-lang.o): Depend on dictionary_h.
7171 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
7172 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
7173 (mi-cmd-stack.o): Ditto.
7174 (gdbtk-cmds.o): Update dependencies.
7175 (gdbtk-stack.o): Ditto.
7176 * ada-lang.c: Include dictionary.h.
7177 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
7178 (fill_in_ada_prototype, debug_print_block): Ditto.
7179 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
7180 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
7181 'is_sorted'.
7182 * mdebugread.c: Include dictionary.h.
7183 (struct parse_stack): Delete 'maxsyms' member.
7184 (parse_symbol): Update calls to new_block. Delete calls to
7185 shrink_block. Use dictionary methods.
7186 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
7187 Update calls to new_symtab. Don't maintain maxsyms data.
7188 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
7189 (add_symbol): Just call dict_add_symbol.
7190 (new_symtab): Delete 'maxsyms' argument.
7191 (new_symtab): Update calls to new_block.
7192 (new_block): Delete 'maxsyms' argument; add 'function' argument.
7193 (shrink_block): Delete function.
7194 (fixup_sigtramp): Update call to new_block. Add symbol via
7195 dict_add_symbol.
7196 * jv-lang.c: Include dictionary.h.
7197 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
7198 appropriately. Set class_symtab->free_func. Make sure the
7199 blockvector is big enough to hold two blocks.
7200 (add_class_symtab_symbol): Use dictionary methods.
7201 (free_class_block): New function.
7202 (type_from_class): Replace explicit iteration by
7203 ALL_BLOCK_SYMBOLS.
7204 * symtab.h (struct symtab): Replace 'free_ptr' method by
7205 'free_func'.
7206 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
7207 sort_symtab_syms.
7208 * dwarfread.c (psymtab_to_symtab_1): Delete call to
7209 sort_symtab_syms.
7210 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
7211 Include dictionary.h.
7212 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
7213 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
7214 sort_symtab_syms.
7215 * objfiles.c: Include dictionary.h.
7216 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
7217 * buildsym.c: Include dictionary.h.
7218 (finish_block): Use dictionary methods.
7219 (end_symtab): Set free_func to NULL, not free_ptr.
7220 * tracepoint.c: Include dictionary.h.
7221 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
7222 (scope_info): Ditto.
7223 * stack.c: Include dictionary.h.
7224 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
7225 (print_block_frame_labels, print_frame_arg_vars)
7226 (print_frame_args): Ditto.
7227 * symmisc.c (free_symtab_block): Use dictionary methods.
7228 (dump_symtab): Ditto.
7229 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
7230 Include dictionary.h.
7231 * symfile.h: Delete declarations of sort_block_syms,
7232 sort_symtab_syms.
7233 * symfile.c (sort_block_syms): Delete.
7234 (sort_symtab_syms): Delete.
7235 * symtab.c: Include dictionary.h.
7236 (lookup_block_symbol): Use dictionary iterators.
7237 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
7238 (search_symbols, make_symbol_completion_list): Ditto.
7239 (make_symbol_overload_list): Ditto.
7240 * valops.c (value_of_local): Use dict_empty.
7241 Include dictionary.h.
7242
a31f978c
JB
72432003-06-11 J. Brobecker <brobecker@gnat.com>
7244
7245 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
7246
526e70c0
DC
72472003-06-11 David Carlton <carlton@bactrian.org>
7248
7249 * block.h (BLOCK_SHOULD_SORT): Delete.
7250 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
7251 blocks.
7252 * ada-lang.c (ada_add_block_symbols): Ditto.
7253 * symfile.c (sort_block_syms): Delete.
7254 (sort_symtab_syms): Ditto.
7255 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
7256 declarations.
7257 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
7258 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
7259 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
7260 * dwarfread.c (psymtab_to_symtab_1): Ditto.
7261 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
7262 * mdebugread.c (psymtab_to_symtab_1): Ditto.
7263 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
7264
33c08150
JJ
72652003-06-11 Jeff Johnston <jjohnstn@redhat.com>
7266
8ffd9b1b 7267 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
7268 bits to 128.
7269
781a750d
AC
72702003-06-11 Andrew Cagney <cagney@redhat.com>
7271
7272 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
7273 REGISTER_CONVERTIBLE.
7274 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
7275 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
7276 * gdbarch.h, gdbarch.c: Re-generate.
7277 * arch-utils.h (deprecated_register_convertible_not): Rename
7278 generic_register_convertible_not.
7279 * arch-utils.c (deprecated_register_convertible_not): Rename
7280 generic_register_convertible.
7281 (legacy_convert_register_p, legacy_register_to_value): Update.
7282 * sh-tdep.c (sh64_push_arguments): Update.
7283 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
7284 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
7285 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
7286 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
7287 * arch-utils.c (legacy_value_to_register): Update.
7288 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7289 (rs6000_register_convert_to_raw): Make parameter "from" const.
7290 * mips-tdep.c (mips_gdbarch_init): Update.
7291 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
7292 * infcmd.c (default_print_registers_info): Update.
7293 * ia64-tdep.c (ia64_gdbarch_init): Update.
7294 (ia64_register_convert_to_raw): Make parameter "from" const.
7295 * i386-tdep.c (i386_gdbarch_init): Update.
7296 (i386_register_convert_to_raw): Update.
7297
cd90e54f
AC
72982003-06-11 Andrew Cagney <cagney@redhat.com>
7299
7300 * remote-fileio.c: Include "remote-fileio.h".
7301 * Makefile.in (remote-fileio.o): Update dependencies.
7302 (remote_fileio_h): Fix typo.
7303
a78f21af
AC
73042003-06-11 Andrew Cagney <cagney@redhat.com>
7305
7306 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
7307 (xstormy16_save_dummy_frame_tos): Make static.
7308 (_initialize_xstormy16_tdep): Add declaration.
7309 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
7310 * v850-tdep.c: Make local functions static.
7311 (_initialize_v850_tdep): Add declaration.
7312 * sparc-tdep.c: Make local functions static.
7313 (_initialize_sparc_tdep): Add declaration.
7314 * sh-tdep.c: Make local functions static.
7315 (_initialize_sh_tdep): Add declaration.
7316 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
7317 * s390-tdep.c: Make local functions static.
7318 (_initialize_s390_tdep): Add declaration.
7319 * dbxread.c (find_stab_function_addr): Make static.
7320 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
7321 * ocd.c (_initialize_remote_ocd): Add declaration.
7322 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
7323 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
7324 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
7325 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
7326 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
7327 * remote-array.c (_initialize_array): Add declaration.
7328 (_initialize_remote_monitors): Add declaration.
7329 * remote-mips.c: Make local functions static.
7330 (_initialize_remote_mips): Add declaration.
7331 * mcore-tdep.c: Make all local functions static.
7332 (_initialize_mcore_tdep): Add declaration.
7333 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
7334 * abug-rom.c (_initialize_abug_rom): Add declaration.
7335 * rom68k-rom.c (_initialize_rom68k): Add declaration.
7336 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
7337 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
7338 * remote-est.c (_initialize_est): Add declaration.
7339 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
7340 (m68hc11_call_dummy_address): Make static.
7341 * ia64-tdep.c: Make local functions static.
7342 (_initialize_ia64_tdep): Add declaration.
7343 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
7344 * monitor.c (monitor_wait_filter): Make static.
7345 (_initialize_remote_monitors): Add declaration.
7346 * remote-hms.c (_initialize_remote_hms): Add declaration.
7347 * remote-e7000.c (fetch_regs_from_dump): Make static.
7348 (expect_n): Make static.
7349 (_initialize_remote_e7000): Add declaration.
7350 * ser-e7kpc.c: Always include "defs.h".
7351 (_initialize_ser_e7000pc): Add declaration.
7352 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
7353 * cris-tdep.c: Make all but one function static.
7354 (_initialize_cris_tdep): Add declaration.
7355 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
7356 * solib.c (update_solib_list): Make static.
7357 (_initialize_solib): Add declaration.
7358 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
7359 (_initialize_avr_tdep): Add declaration.
7360 * remote-rdi.c (voiddummy): Make static.
7361 (_initialize_remote_rdi): Add declaration.
7362 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
7363 * remote-rdp.c (send_rdp): Make static.
7364 (_initialize_remote_rdp): Add declaration.
7365 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
7366
cbcdb1f5
CV
73672003-06-11 Corinna Vinschen <vinschen@redhat.com>
7368
7369 * remote-fileio.c: Make ari happy.
7370
a191ea8d
JB
73712003-06-10 J. Brobecker <brobecker@gnat.com>
7372
7373 * rs6000-nat.c (child_xfer_memory): Compute the right address when
7374 fetching the trailing bytes of the buffer we are about to write.
7375
0ef75e11
AC
73762003-06-10 Andrew Cagney <cagney@redhat.com>
7377
7378 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
7379 * Makefile.in (remote-fileio.o): Update dependencies.
7380 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
7381 include <setjmp.h>, or <sys/types.h> conditional on USG.
7382 (remote_fio_jmp_buf): Delete global variable.
7383
449092f6 73842003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 7385 Martin M. Hunt <hunt@redhat.com>
449092f6 7386
559fa028
AC
7387 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
7388 (SFILES): Add remote-fileio.c.
7389 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
7390 dependencies for building remote.o.
449092f6
CV
7391 * remote-fileio.c: New file implementing the remote File-I/O protocol.
7392 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 7393 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
7394 static storage class.
7395 (remote_wait, remote_async_wait): Call remote_fileio_request() on
7396 'F' packet.
7397 (_initialize_remote): Call initialize_remote_fileio().
7398 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
7399 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7400 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7401 (captured_main): Initialize new ui_files.
7402 * ui-file.c: Add read and fgets input functions.
7403 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
7404 (null_file_read): New function.
7405 (ui_file_read): New function.
7406 (set_ui_file_read): New function.
7407 (stdio_file_read): New function.
7408 * ui-file.h: New type ui_file_read_ftype.
7409 (set_ui_file_read): Declare.
7410 (ui_file_read): Declare.
7411
248de703
AC
74122003-06-09 Andrew Cagney <cagney@redhat.com>
7413
7414 * frame.h (deprecated_unwind_get_saved_register): Rename
7415 generic_unwind_get_saved_register, update comments.
7416 * mips-tdep.c (mips_get_saved_register): Update.
7417 * frame.c (deprecated_unwind_get_saved_register): Update.
7418
0ed8aa57
AC
74192003-06-09 Andrew Cagney <cagney@redhat.com>
7420
7421 * vax-tdep.c (vax_frame_locals_address): Delete function.
7422 (vax_gdbarch_init): Do not set frame_locals_address.
7423 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
7424 (m68hc11_gdbarch_init): Do not set frame_locals_address.
7425 * s390-tdep.c (s390_frame_args_address): Delete function.
7426 (s390_gdbarch_init): Do not set frame_args_address or
7427 frame_locals_address.
7428 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
7429 (ns32k_gdbarch_init): Do not set frame_locals_address.
7430 * hppa-tdep.c (hppa_frame_args_address): Delete function.
7431 (hppa_frame_locals_address): Delete function.
7432 (hppa_gdbarch_init): Do not set frame_args_address, or
7433 frame_locals_address.
7434 * arm-tdep.c (arm_frame_args_address): Delete.
7435 (arm_frame_locals_address): Delete.
7436 (arm_gdbarch_init): Do not set frame_args_address, or
7437 frame_locals_address.
7438
983a287a
AC
74392003-06-09 Andrew Cagney <cagney@redhat.com>
7440
7441 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
7442 * gdbarch.h, gdbarch.c: Re-generate.
7443 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
7444 * arch-utils.c (frame_num_args_unknown): Delete function.
7445 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
7446 (frame_info): Use FRAME_NUM_ARGS_P.
7447 * arm-tdep.c (arm_frame_num_args): Delete function.
7448 (arm_gdbarch_init): Do not set frame_num_args.
7449 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
7450 * hppa-tdep.c (hppa_frame_num_args): Delete function.
7451 (hppa_gdbarch_init): Do not set frame_num_args.
7452 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
7453 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7454 frame_num_args to default frame_num_args_unknown.
7455 * v850-tdep.c (v850_gdbarch_init): Ditto.
7456 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7457 * sh-tdep.c (sh_gdbarch_init): Ditto.
7458 * s390-tdep.c (s390_gdbarch_init): Ditto.
7459 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7460 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7461 * mips-tdep.c (mips_gdbarch_init): Ditto.
7462 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7463 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7464 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7465 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7466 * i386-tdep.c (i386_gdbarch_init): Ditto.
7467 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7468 * frv-tdep.c (frv_gdbarch_init): Ditto.
7469 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7470 * cris-tdep.c (cris_gdbarch_init): Ditto.
7471 * avr-tdep.c (avr_gdbarch_init): Ditto.
7472 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7473
8d3b0994
AC
74742003-06-09 Andrew Cagney <cagney@redhat.com>
7475
7476 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7477 (print_frame_args): Moved to "stack.c".
7478 * stack.c: Include "gdb_assert.h".
7479 (print_frame_nameless_args): Moved from "printcmd.c", made static.
7480 (print_frame_args): Moved from "printcmd.c".
7481 * frame.h (print_frame_args): Delete declaration.
7482 * Makefile.in (stack.o): Update dependencies.
7483
25e3a86b
AC
74842003-06-08 Andrew Cagney <cagney@redhat.com>
7485
7486 * frame.c (get_prev_frame): Remove reference to
7487 frame_args_address_correct in comments.
7488 * frame-base.c (default_frame_args_address): Delete code
7489 conditional on FRAME_ARGS_ADDRESS_CORRECT.
7490 * vax-tdep.c (vax_frame_args_address_correct): Delete.
7491 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7492 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7493 (vax_frame_args_address_correct): Delete declaration.
7494
a9e5fdc2
AC
74952003-06-08 Andrew Cagney <cagney@redhat.com>
7496
7497 * gdbarch.sh (UNWIND_SP): Add.
7498 * gdbarch.h, gdbarch.c: Re-generate.
7499 * frame.c (frame_sp_unwind): New function.
7500 (get_frame_sp): New function.
7501 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7502 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7503 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7504 value.
7505 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7506 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7507
8983bd83
AC
75082003-06-08 Andrew Cagney <cagney@redhat.com>
7509
7fec2c59
AC
7510 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7511 REMOTE_BREAKPOINT.
7512 * remote.c: Update.
7513 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7514 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7515 * config/m68k/tm-sun3.h: Update.
7516 * config/m68k/tm-m68klynx.h: Update.
7517 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7518
8983bd83
AC
7519 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7520 trad_frame". Update comments.
7521 * d10v-tdep.c (struct d10v_unwind_cache): Update.
7522 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7523 (trad_frame_register_value, trad_frame_prev_register): Update.
7524
b9362cc7
AC
75252003-06-08 Andrew Cagney <cagney@redhat.com>
7526
7527 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7528 from GCC's acinclude.m4.
7529 * configure.in: Check for getopt's delcaration.
8ffd9b1b 7530 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
7531 * main.c (error_init): Delete declaration.
7532 * defs.h (error_init): Declare.
7533 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7534 (rs6000_convert_from_func_ptr_addr): Make static.
7535 (_initialize_rs6000_tdep): Add declaration.
7536 * cli/cli-cmds.c (dont_repeat): Delete declaration.
7537 (show_commands, set_verbose, show_history): Delete declaration.
7538 * top.h (set_verbose): Add declaration.
7539 (show_history, set_history, show_commands): Add declaration.
7540 (do_restore_instream_cleanup): Add declaration.
7541 * objc-lang.c (specialcmp): Make static.
7542 (print_object_command): Make static.
7543 (find_objc_msgsend): Make static.
7544 (find_objc_msgcall_submethod_helper): Make static.
7545 (find_objc_msgcall_submethod): Make static.
7546 (_initialize_objc_language): Add declaration.
7547 (find_implementation_from_class): Make static.
7548 (find_implementation): Make static.
7549 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7550 * objc-lang.h (lookup_struct_typedef): Add declaration.
7551 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7552 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7553 (do_restore_user_call_depth): Make static.
7554 (do_restore_instream_cleanup): Delete declaration.
7555 (dont_repeat): Delete declaration.
7556 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7557 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7558 * reggroups.c (_initialize_reggroup): Add declaration.
7559 * cp-support.c (_initialize_cp_support): Add declaration.
7560 * cp-abi.c (_initialize_cp_abi): Add declaration.
7561 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7562 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7563 (_initialize_gnu_v3_abi): Add declaration.
7564 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7565 (_initialize_gnu_v2_abi): Add declaration.
7566 * frame-base.c (_initialize_frame_base): Add declaration.
7567 * doublest.c (floatformat_from_length): Make static.
7568 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7569 * frame.c (create_sentinel_frame): Make static.
7570 (_initialize_frame): Add declaration.
7571 * top.c (do_catch_errors): Make static.
7572 (gdb_rl_operate_and_get_next_completion): Make static.
7573 * typeprint.c: Include "typeprint.h".
7574 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7575 (sentinel_frame_this_id): Make static.
7576 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7577 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7578 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7579 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7580 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7581 * maint.c (maintenance_print_architecture): Make static.
7582 * signals/signals.c (_initialize_signals): Add declaration.
7583 * std-regs.c (_initialize_frame_reg): Add declaration.
7584 * jv-exp.y (push_variable): ISO C definition.
7585 (push_qualified_expression_name): Ditto.
7586 * memattr.c (_initialize_mem): Add declaration.
7587 * remote.c (remote_check_watch_resources): Make static.
7588 (remote_stopped_by_watchpoint): Make static.
7589 (remote_stopped_data_address): Make static.
7590 * d10v-tdep.c (nr_dmap_regs): Make static.
7591 (a0_regnum): Make static.
7592 (d10v_frame_unwind_cache): Make static.
7593 (d10v_frame_p): Make static.
7594 * osabi.c (show_osabi): Make static.
7595 (_initialize_gdb_osabi): Add extern declaration.
7596 * gdbtypes.c (make_qualified_type): Make static.
7597 (safe_parse_type): Make static.
7598 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7599 * macrotab.c (macro_bcache_free): Make static.
7600 * interps.c (interp_set_quiet): Make static.
7601 (interpreter_exec_cmd): Make static.
7602 * stack.h (select_frame_command): New file.
7603 * stack.c: Include "stack.h".
7604 (select_frame_command_wrapper): Delete function.
7605 (select_frame_command): Make global.
7606 * infcall.c: Include "infcall.h".
7607 * linespec.c: Include "linespec.h".
7608 * symfile.c (sections_overlap): Make static.
7609 * cp-support.h (cp_initialize_namespace): ISO C declaration.
7610 * charset.c (_initialize_charset): Add missing prototype.
7611 * regcache.c (init_legacy_regcache_descr): Make static.
7612 (do_regcache_xfree): Make static.
7613 (regcache_xfer_part): Make static.
7614 (_initialize_regcache): Add missing prototype.
7615 * breakpoint.c (parse_breakpoint_sals): Make static.
7616 (breakpoint_sals_to_pc): Make static.
7617 * interps.h (clear_interpreter_hooks): ISO C declaration.
7618 * Makefile.in (stack_h): Define.
7619 (stack.o, typeprint.o, mi-main.o): Update dependencies.
7620 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7621
a0f267c7
AC
76222003-06-08 Andrew Cagney <cagney@redhat.com>
7623
7624 * Makefile.in (d10v-tdep.o): Update dependencies.
7625 (SFILES): Add trad-frame.c.
7626 (trad_frame_h): Define.
7627 (COMMON_OBS): Add trad-frame.o.
7628 (trad-frame.o): Specify dependencies.
7629 * d10v-tdep.c: Include "trad-frame.h".
7630 (saved_regs_unwinder): Delete function.
7631 (d10v_frame_prev_register): Use trad_frame_prev_register.
7632 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7633 trad_frame", delete "regs" and "prev_sp".
7634 (prologue_find_regs): Use trad-frame.
7635 * trad-frame.h, trad-frame.c: New files.
7636
4538b4f4
MK
76372003-06-08 Mark Kettenis <kettenis@gnu.org>
7638
7639 * dwarf2cfi.c, dwarf2cfi.h: Remove.
7640
a0273b2f
AF
76412003-06-07 Adam Fedor <fedor@gnu.org>
7642
7643 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7644 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7645 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7646 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 7647 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
7648 Use it.
7649
3a6c3343
AC
76502003-06-07 Andrew Cagney <cagney@redhat.com>
7651
7652 * symfile.h: Re-indent, clean up comments.
7653
b46e02f6
AC
76542003-06-07 Andrew Cagney <cagney@redhat.com>
7655
7656 * inferior.h (deprecated_write_sp): Replace
7657 generic_target_write_sp.
7658 * regcache.c (deprecated_write_sp): Replace
7659 generic_target_write_sp.
7660 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7661 * vax-tdep.c (vax_gdbarch_init): Update.
7662 * v850-tdep.c (v850_gdbarch_init): Update.
7663 * sparc-tdep.c (sparc_gdbarch_init): Update.
7664 * sh-tdep.c (sh_gdbarch_init): Update.
7665 * s390-tdep.c (s390_gdbarch_init): Update.
7666 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7667 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7668 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7669 * mcore-tdep.c (mcore_gdbarch_init): Update.
7670 * m68k-tdep.c (m68k_gdbarch_init): Update.
7671 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7672 * ia64-tdep.c (ia64_gdbarch_init): Update.
7673 * h8300-tdep.c (h8300_gdbarch_init): Update.
7674 * frv-tdep.c (frv_gdbarch_init): Update.
7675 * cris-tdep.c (cris_gdbarch_init): Update.
7676 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7677
a42e117c
AC
76782003-06-07 Andrew Cagney <cagney@redhat.com>
7679
7680 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7681 Assert that PC_REGNUM is valid.
7682 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7683
bd1ce8ba
AC
76842003-06-07 Andrew Cagney <cagney@redhat.com>
7685
7686 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7687 * gdbarch.h, gdbarch.c: Regenerate.
7688 * mn10300-tdep.c: Include "gdb_assert.h".
7689 (mn10300_read_fp): New function.
7690 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7691 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7692 * ia64-tdep.c: Include "gdb_assert.h".
7693 (ia64_read_fp): New function.
7694 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7695 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7696 * regcache.c (generic_target_read_sp): Delete function.
7697 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7698 * inferior.h (generic_target_read_sp): Delete declaration.
7699 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7700 generic_target_read_sp.
7701 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7702 * sparc-tdep.c (sparc_gdbarch_init): Ditto
7703 * sh-tdep.c (sh_gdbarch_init): Ditto.
7704 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7705 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7706
ec5cbaec
AC
77072003-06-07 Andrew Cagney <cagney@redhat.com>
7708
7709 * gdbarch.sh: Comment each field of startup_gdbarch.
7710 * gdbarch.h, gdbarch.c: Re-generate.
7711
cde9ea48
AC
77122003-06-07 Andrew Cagney <cagney@redhat.com>
7713
7714 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7715 * gdbarch.h, gdbarch.c: Re-generate.
7716 * regcache.c: Update comments on read_pc et.al.
7717 (generic_target_read_pc): Delete function.
7718 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7719 * inferior.h (generic_target_read_pc): Delete declaration.
7720 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7721 generic_target_read_pc.
7722 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7723 * sh-tdep.c (sh_gdbarch_init): Ditto.
7724 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7725 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7726
9a90a780
AC
77272003-06-07 Andrew Cagney <cagney@redhat.com>
7728
7729 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7730 "index" with "special_local_sect". Use strcmp instead of STREQ.
7731 Append period to coments.
7732
a39a16c4
MM
77332003-06-06 Mark Mitchell <mark@codesourcery.com>
7734
7735 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7736 (elfstab_offset_sections): Likewise.
7737 * gdb-stabs.h (stab_section_info): Likewise.
7738 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7739 * objfiles.c (objfile_relocate): Likewise.
7740 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7741 * remote.c (get_offsets): Likewise.
7742 (remote_cisco_objfile_relocate): Likewise.
7743 * somread.c (som_symfile_offsets): Likewise.
7744 * symfile.c (alloc_section_addr_info): New function.
7745 (build_section_addr_info_from_section_tab): Use it.
7746 (free_section_addr_info): Adjust.
7747 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7748 (syms_from_objfile): Allocate local_addr dynamically.
7749 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7750 dynamically.
7751 (add_symbol_file_command): Allocate sect_opts dynamically.
7752 (reread_symbols): Avoid use of SECT_OFF_MAX.
7753 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7754 (alloc_section_addr_info): Declare it.
7755 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7756 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7757 dynamically.
7758 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 7759
20c6c2f8
AC
77602003-06-06 Andrew Cagney <cagney@redhat.com>
7761
7762 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7763 (d10v_frame_unwind_cache): Do not set "return_pc".
7764
884a26c8
MS
77652003-06-06 Michael Snyder <msnyder@redhat.com>
7766
7767 * h8300-tdep.c: Make tidy (long lines).
7768
088ce440
ML
77692003-06-06 Michal Ludvig <mludvig@suse.cz>
7770
8ffd9b1b 7771 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
7772 to regcache_collect().
7773
7d773d96
JB
77742003-06-05 J. Brobecker <brobecker@gnat.com>
7775
7776 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7777 pc_in_sigtramp multiarch method.
7778 (hppa_hpux_som_init_abi): Use it.
7779 (hppa_hpux_elf_init_abi): Likewise.
7780 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7781 macro has been multiarched.
7782 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7783 macro here, as hppa64 isn't multiarched yet.
7784
1df6926e
AC
77852003-06-05 Andrew Cagney <cagney@redhat.com>
7786
7787 * Makefile.in (value_h): Add $(frame_h).
7788 * value.h: Include "frame.h".
7789 (struct value): Replace "frame_addr" with "frame_id".
7790 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7791 * values.c (allocate_value): Use VALUE_FRAME_ID.
7792 (value_copy): Use VALUE_FRAME_ID.
7793 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7794 * valops.c (value_assign): Update. Use frame_find_by_id.
7795
6b53acc6
ML
77962003-06-05 Michal Ludvig <mludvig@suse.cz>
7797
7798 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7799 in each pass.
7800
4d9850d3
JJ
78012003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7802
7803 * thread-db.c (check_event): For create/death event breakpoints,
7804 loop through all messages to ensure that we read the message
7805 corresponding to the breakpoint we are at.
7806
8efca6ba
MS
78072003-06-04 Michael Snyder <msnyder@redhat.com>
7808
7809 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7810
0912c7f2
MK
78112003-06-04 Mark Kettenis <kettenis@gnu.org>
7812
7813 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7814 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7815 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7816 when handling .eh_frame sections.
7817
4e370325
JB
78182003-06-04 J. Brobecker <brobecker@gnat.com>
7819
7820 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7821 prepare_to_proceed procedure instead of the hppa-specific one.
7822 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7823
b757528f 78242003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7825
b757528f
JJ
7826 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7827 * config.in: Regenerated.
7828 * configure.in: Add test for syscall function and check for
7829 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7830 * configure: Regenerated.
7831 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7832 <sys/syscall.h>.
7833 (kill_lwp): New function that uses tkill syscall or
7834 uses kill, depending on whether threading model is nptl or not.
7835 All callers of kill() changed to use kill_lwp().
7836 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7837 see if all threads have already exited in the nptl model.
7838 (stop_and_resume_callback): New callback function used by the
7839 lin_lwp_wait thread exit handling code.
7840 (stop_wait_callback): Check for threads already having exited and
7841 delete such threads fromt the lwp list when discovered.
7842 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 7843
b757528f
JJ
7844 Roland McGrath <roland@redhat.com>
7845 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7846 nptl libthread_db.
7847
087779b1
RH
78482003-06-03 Richard Henderson <rth@redhat.com>
7849
b21fd293
RH
7850 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7851 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7852 (alpha_sigtramp_frame_prev_register): Likewise.
7853 (alpha_heuristic_frame_prev_register): Likewise.
7854 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7855
8ffd9b1b 7856 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
7857 alpha-specific register id names.
7858 (alpha_mdebug_frame_unwind_cache): Likewise.
7859 (alpha_mdebug_frame_prev_register): Likewise.
7860
baa490c4
RH
78612003-06-03 Richard Henderson <rth@redhat.com>
7862
7863 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7864 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7865 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7866 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7867 unwind routines.
7868 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7869 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7870 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7871
7872 * alpha-linux-tdep.c: Remove unnecessary includes.
7873 * Makefile.in (alpha-linux-tdep.o): Update.
7874
78752003-06-03 Richard Henderson <rth@redhat.com>
7876
7877 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7878 (alphabsd_fill_fpreg): Likewise.
7879
f534e522
JB
78802003-06-03 J. Brobecker <brobecker@gnat.com>
7881
7882 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7883 references to struct frame_info fields by calls to the equivalent
7884 accessors. Necessary now that frame_info is opaque.
7885
4035536b
JB
78862003-06-03 J. Brobecker <brobecker@gnat.com>
7887
7888 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7889 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7890 structure, field no longer exists.
7891
0bd79c5c
JB
78922003-06-03 J. Brobecker <brobecker@gnat.com>
7893
7894 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7895 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7896
37bb6d9f
JB
78972003-06-03 J. Brobecker <brobecker@gnat.com>
7898
7899 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7900 references to struct frame_info fields by calls to the equivalent
7901 accessors. Necessary now that frame_info is opaque.
7902
852ee05c
JB
79032003-06-03 J. Brobecker <brobecker@gnat.com>
7904
7905 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7906 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7907 structure, field no longer exists.
7908
7d58c67d
TR
79092003-06-03 Theodore A. Roth <troth@openavr.org>
7910
8ffd9b1b 7911 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
7912 accumulation of the size of all registers instead of blindly using
7913 DEPRECATED_REGISTER_BYTES.
7914
0a48e7e8
MS
79152003-06-03 Michael Snyder <msnyder@redhat.com>
7916
7917 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7918 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7919 for h8300sx.
7920
9798ab0d
JB
79212003-06-03 J. Brobecker <brobecker@gnat.com>
7922
7923 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7924 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7925
00b037e2
AC
79262003-06-03 Andrew Cagney <cagney@redhat.com>
7927
7928 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7929 (sparc_convert_to_raw): Delete function.
7930 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7931 register_convert_to_virtual.
7932
043b2f77
JJ
79332003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7934
7935 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7936 layer if not dealing with a statically-linked threaded program.
7937
f43caff8
KW
79382003-06-03 Kris Warkentin <kewarken@qnx.com>
7939
7940 * solib.c (solib_open): Update comment to reflect actual search order.
7941
ae1e7417
AC
79422003-06-03 Andrew Cagney <cagney@redhat.com>
7943
7944 * frame.c (get_frame_memory_signed): New function.
7945 (get_frame_memory, get_frame_memory_unsigned): New function.
7946 (get_frame_arch): New function.
7947 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7948 (get_frame_memory, get_frame_unsigned_memory): Declare.
7949 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7950 get_frame_memory_unsigned and get_frame_arch.
7951 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7952
cb123844
RG
79532003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7954
7955 * MAINTAINERS (write after approval): Add myself.
7956
1bb792e9
JB
79572003-06-03 Jim Blandy <jimb@redhat.com>
7958
7959 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7960 elements of gregset_t are 64 bits each, but access registers
7961 are still 32 bits, so they're packed two per gregset_t
7962 element. Unpack/pack them properly.
7963
aee8d8ba
DC
79642003-06-02 David Carlton <carlton@bactrian.org>
7965
7966 * linespec.c (find_methods): Break out code into
7967 add_matching_methods and add_constructors.
7968 (add_matching_methods): New.
7969 (add_constructors): Ditto.
7970
bf7488d2
AC
79712003-06-02 Andrew Cagney <cagney@redhat.com>
7972
bf7488d2
AC
7973 * sparc-tdep.c (sparc_print_registers): Delete call to
7974 REGISTER_CONVERTIBLE.
7975 (sparc_gdbarch_init): Do not set register_convertible.
7976 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7977 * frv-tdep.c (frv_gdbarch_init): Ditto.
7978 * cris-tdep.c (cris_gdbarch_init): Ditto.
7979
adedef68
EZ
79802003-06-02 Elena Zannoni <ezannoni@redhat.com>
7981
8ffd9b1b 7982 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
7983 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7984 (syms_from_objfile): Ditto.
7985
650fcc91
AS
79862003-06-03 Andreas Schwab <schwab@suse.de>
7987
7988 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7989 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7990
df4a182b
RH
79912003-06-02 Richard Henderson <rth@redhat.com>
7992
7993 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7994 a member of all_reggroup.
7995
c483c494
RH
79962003-06-02 Richard Henderson <rth@redhat.com>
7997
7998 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7999 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
8000 (alpha_lds, alpha_sts): New.
8001 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 8002 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
8003 restructure and fail for type sizes other than 4 or 8.
8004 (alpha_value_to_register): Similarly.
8005 (alpha_extract_return_value): Use alpha_sts.
8006 (alpha_store_return_value): Use alpha_lds.
8007 (alpha_gdbarch_init): Update hooks.
8008
b38b6be2
RH
80092003-06-02 Richard Henderson <rth@redhat.com>
8010
8011 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
8012 regnum identifiers.
8013 (alpha_sigtramp_register_address): Likewise.
8014
98a8e1e5
RH
80152003-06-02 Richard Henderson <rth@redhat.com>
8016
8017 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
8018 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
8019 * alpha-tdep.h: Declare them.
8020
8021 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
8022 Remove zerobuf. Don't error on UNIQUE.
8023 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
8024 (ALPHA_REGSET_UNIQUE): Provide default.
8025 (supply_gregset): Use alpha_supply_int_regs.
8026 (fill_gregset): Use alpha_fill_int_regs.
8027 (supply_fpregset): Use alpha_supply_fp_regs.
8028 (fill_fpregset): Use alpha_fill_fp_regs.
8029 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
8030 (alphabsd_supply_reg): Use alpha_supply_int_regs.
8031 (alphabsd_fill_reg): Use alpha_fill_int_regs.
8032 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
8033 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
8034 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
8035
67dfac52
RH
80362003-06-02 Richard Henderson <rth@redhat.com>
8037
f75d70cc
RH
8038 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
8039
67dfac52
RH
8040 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
8041 (alpha_store_return_value): Likewise.
8042
0cf566ec
DC
80432003-06-02 David Carlton <carlton@math.stanford.edu>
8044
8045 * block.c (contained_in): Add 'const' to arguments.
8046 (block_function): Ditto.
8047 * block.h: Update declarations for block_function and
8048 contained_in.
8049
cdef89d0
DC
80502003-06-02 David Carlton <carlton@math.stanford.edu>
8051
8052 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
8053 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
8054 * p-valprint.c (pascal_val_print): Ditto.
8055 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
8056
72667056
RH
80572003-06-02 Richard Henderson <rth@redhat.com>
8058
98a8e1e5
RH
8059 * alpha-tdep.c (alpha_push_dummy_call): Use
8060 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 8061
8ffd9b1b 8062 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
8063 sign-extension of 32-bit values.
8064 (alpha_store_return_value): Similarly.
0ede8eca 8065
98a8e1e5
RH
8066 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
8067 (alpha_extract_return_value): Likewise.
8068 (alpha_store_return_value): Likewise.
7b5e1cb3 8069
98a8e1e5
RH
8070 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
8071 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 8072
98a8e1e5
RH
8073 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
8074 (alpha_extract_struct_value_address): Likewise.
8075 (alpha_store_return_value): Likewise.
8076 (alpha_store_struct_return): Remove.
8077 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 8078
98a8e1e5
RH
8079 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
8080 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
8081 macros where appropriate.
8082 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
8083 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 8084
98a8e1e5
RH
8085 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
8086 for SP, GP; void_func_ptr for PC; non-language-specific types
8087 for all others.
8088 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 8089
6dd77b81
RH
80902003-06-02 Richard Henderson <rth@redhat.com>
8091
8092 * top.h (lim_at_start): Declare.
8093 * main.c (captured_main): Set it.
8094 * top.c (lim_at_start): Define.
8095 (command_loop): Use it instead of &environ.
8096 * event-top.c (command_handler): Likewise.
8097
f4dbdb54
JT
80982003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
8099
8100 * mipsnbsd-tdep.c: Update copyright years.
8101 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
8102
8f285956
RH
81032003-06-01 Richard Henderson <rth@redhat.com>
8104
98a8e1e5
RH
8105 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
8106 (alpha-linux-tdep.o): Update dependencies.
8107 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
8108 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 8109
615967cb
RH
81102003-06-01 Richard Henderson <rth@redhat.com>
8111
98a8e1e5
RH
8112 * alpha-tdep.c (alpha_register_reggroup_p): New.
8113 (alpha_gdbarch_init): Register it.
615967cb 8114
b59661bd
AC
81152003-06-02 Andrew Cagney <cagney@redhat.com>
8116
8117 * dwarfread.c: Eliminate "register"
8118 (decode_die_type): Eliminate assignment within "if".
8119 (struct_type, decode_array_element_type): Ditto.
8120 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
8121 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
8122 (decode_modified_type, completedieinfo): Ditto.
8123 * block.c: Eliminate "register".
8124 (blockvector_for_pc_sect): Eliminate assignment within "if".
8125 * cp-support.h (struct symbol): Opaque declaration.
8126 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
8127
5ef165c2
RH
81282003-06-01 Richard Henderson <rth@redhat.com>
8129
98a8e1e5
RH
8130 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
8131 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 8132
143985b7
AF
81332003-06-01 Adam Fedor <fedor@gnu.org>
8134
8135 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
8136 * gdbarch.[ch]: Regenerate.
8137 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
8138 (hppa_gdbarch_init): Set it in the gdbarch vector.
8139 * i386-tdep.c (i386_fetch_pointer_argument): New
8140 (i386_gdbarch_init): Set it into gdbarch.
8141 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
8142 (rs6000_gdbarch_init): Set it in gdbarch.
8143 * sparc-tdep.c (sparc_fetch_pointer_argument): New
8144 (sparc_gdbarch_init): Set it in gdbarch.
8145
ae0167b9
AC
81462003-06-01 Andrew Cagney <cagney@redhat.com>
8147
7c0b4a20
AC
8148 * defs.h (extract_address): Delete declaration.
8149 * findvar.c (extract_address): Delete function.
8150 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
8151 extract_address with the inline equivalent,
8152 extract_unsigned_integer.
8153 (xstormy16_extract_struct_value_address): Ditto.
8154 (xstormy16_pointer_to_address): Ditto.
8155 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
8156 * v850-tdep.c (v850_push_arguments): Ditto.
8157 (v850_extract_return_value): Ditto.
8158 (v850_extract_struct_value_address): Ditto.
8159 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
8160 (sparcnbsd_get_longjmp_target_64): Ditto.
8161 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
8162 (get_longjmp_target): Ditto.
8163 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
8164 (sh64_extract_struct_value_address): Ditto.
8165 (sh_push_arguments): Ditto.
8166 (sh64_push_arguments): Ditto.
8167 * remote-vxsparc.c (vx_read_register): Ditto.
8168 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
8169 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
8170 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
8171 * mipsv4-nat.c (get_longjmp_target): Ditto.
8172 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
8173 * mips-nat.c (get_longjmp_target): Ditto.
8174 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
8175 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
8176 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
8177 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
8178 * irix5-nat.c (get_longjmp_target): Ditto.
8179 * irix4-nat.c (get_longjmp_target): Ditto.
8180 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
8181 (ia64_push_arguments): Ditto.
8182 * hpux-thread.c (hpux_thread_store_registers): Ditto.
8183 * h8300-tdep.c (h8300_push_arguments): Ditto.
8184 (h8300_store_return_value): Ditto.
8185 (h8300_extract_struct_value_address): Ditto.
8186 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
8187 (frv_push_arguments): Ditto.
8188 * avr-tdep.c (avr_pointer_to_address): Ditto.
8189 (avr_push_arguments): Ditto.
8190 * arm-tdep.c (arm_push_dummy_call): Ditto.
8191 (arm_get_longjmp_target): Ditto.
8192 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8193 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
8194 (alpha_get_longjmp_target): Ditto.
8195
ae0167b9
AC
8196 * solib-irix.c (extract_mips_address): Inline extract_address,
8197 replacing it with extract_signed_integer.
8198 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
8199 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
8200 (first_link_map_member, open_symbol_file_object): Ditto.
8201 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
8202 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
8203 (LM_NEXT, LM_NAME): Ditto.
8204
44d88583
RH
82052003-06-01 Richard Henderson <rth@redhat.com>
8206
98a8e1e5
RH
8207 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
8208 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
8209 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
8210 (alpha_cannot_store_register): Likewise.
8211 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
8212 * alpha-nat.c (supply_gregset): Likewise.
8213 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 8214
310e9b6a
AC
82152003-06-01 Andrew Cagney <cagney@redhat.com>
8216
8217 * infcall.c (call_function_by_hand): Update comment on
8218 DEPRECATED_DUMMY_WRITE_SP.
8219
8220 * mips-tdep.c (mips_gdbarch_init): Do not set
8221 deprecated_dummy_write_sp.
8222 (mips_eabi_push_dummy_call): Set the SP register.
8223 (mips_o64_push_dummy_call): Set the SP register.
8224 (mips_o32_push_dummy_call): Set the SP register.
8225 (mips_n32n64_push_dummy_call): Set the SP register.
8226
5ab84872
RH
82272003-06-01 Richard Henderson <rth@redhat.com>
8228
98a8e1e5
RH
8229 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
8230 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
8231 (supply_gregset): Likewise.
8232 * alpha-tdep.c (alpha_store_return_value): Likewise.
8233 (alpha_get_longjmp_target): Likewise.
8234 (alpha_register_name): Constify array.
8235 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
8236 deprecated_register_size, deprecated_register_bytes,
8237 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
8238 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
8239 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 8240
09cc52fd
RH
82412003-06-01 Richard Henderson <rth@redhat.com>
8242
8243 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
8244 from arg_reg_buffer to regcache to avoid double conversion.
8245
c7f16359
MK
82462003-06-01 Mark Kettenis <kettenis@gnu.org>
8247
8248 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
8249 SP_REGNUM.
8250 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
8251 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
8252
7131cb6e
RH
82532003-06-01 Richard Henderson <rth@redhat.com>
8254
98a8e1e5
RH
8255 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
8256 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 8257
f3e0f90b
RH
82582003-06-01 Richard Henderson <rth@redhat.com>
8259
98a8e1e5
RH
8260 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
8261 not overlapping PC_REGNUM.
f3e0f90b 8262
c88e30c0
RH
82632003-06-01 Richard Henderson <rth@redhat.com>
8264
98a8e1e5
RH
8265 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
8266 alpha_push_arguments. Don't dump argument register data to
8267 the target stack. Fix float and 128-bit long double semantics.
8268 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
8269 (alpha_fix_call_dummy): Remove.
8270 (alpha_call_dummy_words): Remove.
8271 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 8272
f1a559ae
RH
82732003-06-01 Richard Henderson <rth@redhat.com>
8274
8275 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
8276
5e045346
AC
82772003-06-01 Andrew Cagney <cagney@redhat.com>
8278
95404a3e
AC
8279 * mips-tdep.c (is_mips16_addr): New function.
8280 (make_mips16_addr, unmake_mips16_addr): New functions.
8281 (pc_is_mips16, mips_fetch_instruction): Use.
8282 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
8283 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
8284 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
8285 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
8286 TARGET_MIPS.
8287 * config/mips/tm-mips.h: Update copyright.
8288 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
8289 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
8290 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
8291 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
8292 (TM_PRINT_INSN_MACH): Delete.
8293 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
8294
5e045346
AC
8295 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
8296 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
8297 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
8298 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
8299 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
8300 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
8301 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
8302 mips*-*-riscos* and mips*-*-sysv* onto mips.
8303 * config/mips/mips64.mt: New file.
8304 * config/mips/mips.mt: New file.
8305 * config/mips/littlemips.mt: Delete file.
8306 * config/mips/decstation.mt: Delete file.
8307 * config/mips/vr4300el.mt: Delete file.
8308 * config/mips/vr5000el.mt: Delete file.
8309 * config/mips/vr5000.mt: Delete file.
8310 * config/mips/vr4100.mt: Delete file.
8311 * config/mips/vr4xxxel.mt: Delete file.
8312 * config/mips/vr4300.mt: Delete file.
8313 * config/mips/vr4xxx.mt: Delete file.
8314 * config/mips/bigmips.mt: Delete file.
8315 * config/mips/bigmips64.mt: Delete file.
8316 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
8317 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
8318 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
8319 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
8320 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
8321 "tm-bigmips.h".
8322 * config/mips/tm-irix3.h: Ditto.
8323 * config/mips/tm-mipsv4.h: Ditto.
8324 * config/mips/tm-embed.h: Ditto.
8325 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
8326 "tm-bigmips64.h".
8327 * config/mips/tm-vr5000el.h: Delete file.
8328 * config/mips/tm-tx39l.h: Delete file.
8329 * config/mips/tm-vr4300el.h: Delete file.
8330 * config/mips/tm-vr4xxxel.h: Delete file.
8331 * config/mips/tm-vr4300.h: Delete file.
8332 * config/mips/tm-vr4100.h: Delete file.
8333 * config/mips/tm-vr4xxx.h: Delete file.
8334 * config/mips/tm-vr5000.h: Delete file.
8335 * config/mips/tm-embedl64.h: Delete file.
8336 * config/mips/tm-embedl.h: Delete file.
8337 * config/mips/tm-embed64.h: Delete file.
8338 * config/mips/tm-bigmips64.h: Delete file.
8339 * config/mips/tm-bigmips.h: Delete file.
8340
2473a4a9
MK
83412003-06-01 Mark Kettenis <kettenis@gnu.org>
8342
97a5b208
MK
8343 Fix gdb/1216.
8344 * shnbsd-nat.c: Include "sh-tdep.h".
8345
2473a4a9
MK
8346 From Richard Henderson <rth@redhat.com>:
8347 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
8348
e0f7ec59
AC
83492003-05-31 Andrew Cagney <cagney@redhat.com>
8350
8351 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
8352 forward declaration.
8353 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8354 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8355 (mips_find_saved_regs): Use set_reg_offset.
8356 (mips_frame_init_saved_regs): Delete function.
8357 (mips_pop_frame): Call mips_find_saved_regs instead of
8358 DEPRECATED_FRAME_INIT_SAVED_REGS.
8359
68dcc709
AC
83602003-05-31 Andrew Cagney <cagney@redhat.com>
8361
8362 * mips-tdep.c (mips_gdbarch_init): Do not set
8363 deprecated_max_register_raw_size, register_virtual_size, and
8364 deprecated_max_register_virtual_size.
8365
cfc14b3a
MK
83662003-05-31 Mark Kettenis <kettenis@gnu.org>
8367
6405b0a6
MK
8368 * i386-tdep.c: Include "dwarf2-frame.h".
8369 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
8370 * Makefile.in (i386-tdep.o): Update dependencies.
8371
cfc14b3a
MK
8372 * dwarf2-frame.c, dwarf2-frame.h: New files.
8373 * Makefile.in (SFILES): Add dwarf2-frame.c.
8374 (dwarf2_frame_h): Define.
8375 (COMMON_OBS): Add dwarf2-frame.o.
8376 (dwarf2-frame.o): Add dependencies.
8377
6a2751d2
AJ
83782003-05-31 Andreas Jaeger <aj@suse.de>
8379
8380 * x86-64-linux-nat.c: Fix comment.
8381
1c3545ae
MK
83822003-05-31 Mark Kettenis <kettenis@gnu.org>
8383
10f93086
MK
8384 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
8385 function signature.
8386
1c3545ae
MK
8387 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
8388 have a sigcontext_addr handler.
8389 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
8390 sigcontext_addr handler.
8391
e11c53d2
AC
83922003-05-31 Andrew Cagney <cagney@redhat.com>
8393
8394 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
8395 (print_fp_register_row): Replace do_fp_register_row.
8396 (mips_print_fp_register): Add "file" and "frame" parameters.
8397 (mips_print_register): Add "file" and "frame" parameters.
8398 (mips_print_registers_info): Replace mips_do_registers_info.
8399 (mips_gdbarch_init): Set print_registers_info instead of
8400 deprecated_do_registers_info.
8401 (mips_read_fp_register_single): Add "frame" parameter.
8402 (mips_read_fp_register_double): Add "frame" parameter.
8403
a3386186
MK
84042003-05-31 Mark Kettenis <kettenis@gnu.org>
8405
70913449
MK
8406 * i386-tdep.c (i386_register_name): Check for MMX registers first.
8407 Fixes a bug where GDB would print the wrong register names for
8408 targets without SSE.
8409
2b5e0749
MK
8410 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
8411 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8412 registers.
8413
8414 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
8415 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
8416 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8417 TDEP->sc_sp_offset.
8418
a3386186
MK
8419 From Michal Ludvig <mludvig@suse.cz>:
8420 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
8421 and `sc_num_regs'.
8422 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8423 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8424 I386_ST0_REGNUM): Move here from...
8425 * i386-tdep.c: ... here.
8426 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
8427 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8428 registers if possible.
8429 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
8430 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
8431 Remove variables.
8432 (i386bsd_sc_reg_offset): New variable.
8433 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
8434 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8435 TDEP->sc_sp_offset.
8436 (i386fbsd_sc_reg_offset): New variable.
8437 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8438 TDEP->sc_num_regs.
8439 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
8440 variables.
8441 (i386fbsd4_sc_reg_offset): New variable.
8442 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
8443 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8444 TDEP->sc_sp_offset.
8445 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
8446 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
8447 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
8448 Remove variables.
8449 (i386nbsd_sc_reg_offset): New variable.
8450 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
8451 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8452 TDEP->sc_sp_offset.
8453 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
8454 Remove variables.
8455 (i386obsd_sc_reg_offset): New variable.
8456 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
8457 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8458 TDEP->sc_sp_offset.
8459 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
8460 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
8461 for frame pointer offset in `struct sigcontext'.
8462
25ab4790
AC
84632003-05-31 Andrew Cagney <cagney@redhat.com>
8464
8465 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
8466 architecture methods call_dummy_words, sizeof_call_dummy_words,
8467 push_return_address, store_struct_return, and fix_call_dummy. Set
8468 push_dummy_call instead of deprecated_push_arguments.
8469 (mips_store_struct_return): Delete function.
8470 (mips_fix_call_dummy): Delete function.
8471 (mips_push_return_address): Delete function.
8472 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8473 RA_REGNUM and T9_REGNUM.
8474 (mips_n32n64_push_dummy_call): Ditto for
8475 mips_n32n64_push_arguments.
8476 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8477 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8478
6a65450a
AC
84792003-05-31 Andrew Cagney <cagney@redhat.com>
8480
8481 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
8482 "dummy_addr" to "bp_addr".
8483 * infcall.c (call_function_by_hand): Pass "funaddr" to
8484 gdbarch_push_dummy_call.
8485 * gdbarch.h, gdbarch.c: Re-generate.
8486 * i386-tdep.c (i386_push_dummy_call): Update.
8487 * arm-tdep.c (arm_push_dummy_call): Update.
8488 * d10v-tdep.c (d10v_push_dummy_call): Update.
8489
c4f35dd8
MK
84902003-05-31 Mark Kettenis <kettenis@gnu.org>
8491
8492 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8493 variable declarations.
8494 (x86_64_register_number, x86_64_register_name): Remove prototypes.
8495 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8496 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8497 x86_64_init_frame_pc, x86_64_init_frame_pc,
8498 x86_64_function_has_prologue): Remove prototypes.
8499 (X86_64_NUM_GREGS): New define.
8500 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8501 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
8502 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8503 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8504 XMM1_REGNUM): Remove defines.
8505 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8506 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8507 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8508 X86_64_XMM1_REGNUM): New defines.
8509 (struct x86_64_register_info): Renamed from `struct
8510 register_info'. Remove `size' member.
8511 (x86_64_register_info_table): Remove variable.
8512 (x86_64_register_info): New variable.
8513 (X86_64_NUM_REGS): New define.
8514 (X86_64_NUM_GREGS): Remove define.
8515 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8516 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8517 Remove variables.
8518 (x86_54_dwarf2_reg_to_regnum): Remove function.
8519 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8520 (x86_64_dwarf_reg_to_regnum): New function.
8521 (x86_64_register_name): Rewrite.
8522 (x86_64_register_raw_size): Remove function.
8523 (x86_64_register_byte_table): Remove variable.
8524 (x86_64_register_byte): Remove function.
8525 (x86_64_register_virtual_type): Remove function.
8526 (x86_64_register_type): New function.
8527 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8528 x86_64_register_convert_to_raw): Remove functions.
8529 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8530 (x86_64_use_struct_convention): Make static. Adjust for renamed
8531 defines.
8532 (x86_64_frame_init_saved_regs): Remove function.
8533 (x86_64_push_arguments): Make static. Change to accept a regcache
8534 as argument.
8535 (x86_64_store_return_value, x86_64_extract_return_value): Make
8536 static. Rewrite based on i386 counterparts.
8537 (x86_64_push_dummy_call): New function.
8538 (X86_64_NUM_SAVED_REGS): New define.
8539 (x86_64_register_number): Remove function.
8540 (x86_64_store_struct_return): Remove function.
8541 (x86_64_frameless_function_invocation,
8542 x86_64_function_has_prologue): Remove functions.
8543 (PROLOG_BUFSIZE): Remove define.
8544 (struct x86_64_frame_cache): New structure.
8545 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8546 x86_64_frame_cache, x86_64_frame_this_id,
8547 x86_64_frame_prev_register, x86_64_frame_p,
8548 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8549 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8550 functions.
8551 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8552 variables.
8553 (x86_64_skip_prologue): Rewrite in terms of
8554 x86_64_analyze_prologue.
8555 (x86_64_frame_base_address): New function.
8556 (x86_64_frame_base): New variable.
8557 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8558 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
8559 set deprecated_fp_regnum, deprecated_register_size,
8560 deprecated_register_bytes, register_raw_size, register_byte,
8561 register_virtual_type, register_convertiable,
8562 register_convert_to_virtual, convert_to_raw,
8563 deprecated_get_saved_register, deprecated_target_read_fp,
8564 deprecated_push_arguments, deprecated_push_return_address,
8565 deprecated_pop_frame, deprecated_store_struct_return,
8566 deprecated_frame_init_saved_regs, deprecated_frame_chain,
8567 frameless_function_invocation, deprecated_frame_saved_pc,
8568 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8569 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8570 deprecated_init_frame_pc and virtual_frame_pointer. Call
8571 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8572 and x86_64_frame_p. Call frame_base_set_default to register
8573 x86_64_frame_base.
8574 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8575 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8576 (_initialize_x86_64_tdep): Remove function.
8577 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8578 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8579 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8580 define.
8581 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8582 (x86_64_linux_sigcontext_addr): Rewrite.
8583 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8584 x86_64_linux_frame_saved_pc): Remove functions.
8585 (x86_64_linux_pc_in_sigtramp): Renamed from
8586 x86_64_linux_in_sigtramp. Try harder to recognize a signal
8587 trampoline.
8588 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8589 Remove_functions.
8590 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
8591 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8592 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8593 (x86_64_regmap): Rename to regmap.
8594 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8595 x86_64_num_gregs.
8596 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
8597 x86_64_regmap.
8598 (x86_64_fxsave_offset): Remove function.
8599 (supply_fpregset): Simply call x86_64_supply_fxsave.
8600 (fill_fpregset): Simply call x86_64_fill_fxsave.
8601 (fetch_inferior_registers, store_inferior_registers): Avoid
8602 asignment in if-statement.
8603 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8604 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8605 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8606 (fetch_core_registers): Remove function.
8607 (linux_elf_core_fns): Remove.
8608 (offsetoff): Don't define.
8609 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8610 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8611 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8612 add core-regset.o.
8613 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8614 protection against multiple includes instead of NM_X86_64_h. Add
8615 various comments. Include "config/nm-linux.h". Don't include
8616 <signal.h>.
8617 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8618 GET_THREAD_SIGNALS): Remove defines.
8619 (x86_64_register_u_addr, kernel_u_size,
8620 lin_thread_get_thread_signals): Remove prototypes.
8621 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8622 [HAVE_LINK_H]: Don't include "solib.h".
8623 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8624 * config/i386/tm-x86-64linux.h: Fix comments.
8625 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8626 x86-64-tdep.o): Update dependencies.
8627
c25083af
AC
86282003-05-30 Andrew Cagney <cagney@redhat.com>
8629
c8f55a7b
AC
8630 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8631 Change parameter type to a "struct regcache *".
8632
c25083af
AC
8633 * gdbarch.sh: Regardless of the multi-arch level, always define
8634 the macro when not already defined.
8635 * gdbarch.h, gdbarch.c: Re-generate.
8636
fbe586ae
RH
86372003-05-30 Richard Henderson <rth@redhat.com>
8638
8639 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8640 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8641 (alpha_mdebug_frame_this_id): Likewise.
8642 (alpha_mdebug_frame_prev_register): Likewise.
8643 (alpha_mdebug_frame_base_address): Likewise.
8644 (alpha_mdebug_frame_locals_address): Likewise.
8645 (alpha_mdebug_frame_args_address): Likewise.
8646 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8647 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8648 (alpha_heuristic_frame_unwind_cache): Make static; add missing
8649 loop increment.
8650 (alpha_heuristic_frame_this_id): Make static.
8651 (alpha_heuristic_frame_prev_register): Likewise.
8652 (alpha_heuristic_frame_base_address): Likewise.
8653 * alpha-tdep.h: Update.
8654
acd5c798
MK
86552003-05-30 Mark Kettenis <kettenis@gnu.org>
8656
8657 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8658 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8659 defenitions.
8660 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8661 * i386-tdep.c: Mark functions that are 64-bit safe as such.
8662 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8663 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8664 I386_ST0_REGNUM): New defines.
8665 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8666 codestream_get): Remove define.
8667 (codestream_next_addr, condestream_addr, condestream_buf,
8668 codestream_off, codestream_cnt): Remove variables.
8669 (codestream_fill, codestream_seek, codestream_read): Remove
8670 functions.
8671 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8672 functionality.
8673 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8674 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8675 i386_frame_saved_pc, i386_saved_pc_after_call,
8676 i386_frame_num_args, i386_frame_init_saved_regs,
8677 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8678 i386_push_arguments): Remove functions.
8679 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8680 functionality. Use i386_analyze_prologue instead of
8681 i386_get_frame_setup.
8682 (I386_NUM_SAVED_REGS): New define.
8683 (struct i386_frame_cache): New structure.
8684 (i386_alloc_frame_cache, i386_analyze_struct_return,
8685 i386_skip_probe, i386_analyze_frame_setup,
8686 i386_analyze_register_saves, i386_analyze_prologue,
8687 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8688 i386_frame_prev_register, i386_sigtramp_frame_cache,
8689 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8690 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8691 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8692 New functions.
8693 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8694 New variables.
8695 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8696 I386_EAX_REGNUM and I386_EDX_REGNUM.
8697 (i386_extract_return_value, i386_store_return_value): Use
8698 I386_ST0_REGNUM where appropriate.
8699 (i386_extract_struct_value_address): Rewrite to use extract_address.
8700 (i386_svr4_pc_in_sigtramp): Add comment.
8701 (i386_svr4_sigcontext_addr): Rewrite.
8702 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8703 TDEP->sc_sp_offset.
8704 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8705 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8706 of new defines. Set push_dummy_call, don't set
8707 deprecated_push_arguments, deprecated_push_return_address,
8708 deprecated_pop_frame. Don't set parm_boundary. Don't set
8709 deprecated_frame_chain, deprecated_frame_saved_pc,
8710 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8711 save_dummy_frame_tos, unwind_pc. Call
8712 frame_unwind_append_predicate and frame_base_set_default. Don't
8713 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8714 Don't set frameless_function_invocation. Don't set
8715 deprecated_register_bytes, deprecated_register_size,
8716 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8717 * i386-linux-tdep.c: Fix formatting in some comments.
8718 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8719 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8720 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8721 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8722 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8723 redundant parentheses.
8724 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8725 (i386_linux_sigcontext_addr): Use it. Rewrite.
8726 (find_minsym_and_objfile): Change name of second argument.
8727 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8728 changed. Use frame_pc_unwind instead of
8729 DEPRECATED_SAVED_PC_AFTER_CALL.
8730 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8731 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8732 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8733 unwinder.
8734 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8735 "dummy-frame.h".
8736 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8737 (_initialize_i386_cygwin_tdep): New prototype.
8738 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8739 deprecated_frame_chain_valid.
8740 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8741 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8742 Rely on the SVR4 defaults.
8743 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8744 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8745
c89b70f1
AC
87462003-05-30 Andrew Cagney <cagney@redhat.com>
8747
8748 * infcall.c (call_function_by_hand): Always call
8749 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8750
85b32d22
RH
87512003-05-30 Richard Henderson <rth@redhat.com>
8752
c89b70f1
AC
8753 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8754 increment.
85b32d22 8755
bfe51b1e
JB
87562003-05-29 Jim Blandy <jimb@redhat.com>
8757
8758 Use gdbarch methods for solib stuff on PowerPC Linux.
8759 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8760 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8761 show through.
8762 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8763 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8764 giving the same effect as the #definitions above.
8765
1abf022c
AF
87662003-05-29 Adam Fedor <fedor@gnu.org>
8767
8768 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8769 (find_implementation_from_class): Replace it with the standard
8770 case i.e. do nothing.
8771
d2427a71
RH
87722003-05-29 Richard Henderson <rth@redhat.com>
8773
8774 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8775 (alpha_linux_sigtramp_offset): Use it. Make static.
8776 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8777 update for new frame model.
8778 * alpha-mdebug-tdep.c: New file.
8779 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8780 (alpha_osf1_init_abi): Install it.
8781 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8782 (linked_proc_desc_table): Remove.
8783 (alpha_frame_past_sigtramp_frame): Remove.
8784 (alpha_dynamic_sigtramp_offset): Remove.
8785 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8786 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8787 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8788 (push_sigtramp_desc): Remove.
8789 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8790 (alpha_cannot_store_register): Likewise.
8791 (alpha_sigcontext_addr): Remove.
8792 (alpha_find_saved_regs): Remove.
8793 (alpha_frame_init_saved_regs): Remove.
8794 (alpha_init_frame_pc_first): Remove.
8795 (read_next_frame_reg): Remove.
8796 (alpha_frame_saved_pc): Remove.
8797 (alpha_saved_pc_after_call): Remove.
8798 (temp_proc_desc, temp_saved_regs): Remove.
8799 (alpha_about_to_return): Remove.
8800 (cached_proc_desc): Remove.
8801 (alpha_frame_chain): Remove.
8802 (alpha_print_extra_frame_info): Remove.
8803 (alpha_init_extra_frame_info): Remove.
8804 (alpha_frame_locals_address): Remove.
8805 (alpha_frame_args_address): Remove.
8806 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8807 (alpha_push_dummy_frame): Remove.
8808 (alpha_pop_frame): Remove.
8809 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8810 (alpha_read_insn): New.
8811 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8812 for different insn encodings.
8813 (alpha_in_lenient_prologue): Remove.
8814 (struct alpha_sigtramp_unwind_cache): New.
8815 (alpha_sigtramp_frame_unwind_cache): New.
8816 (alpha_sigtramp_register_address): New.
8817 (alpha_sigtramp_frame_this_id): New.
8818 (alpha_sigtramp_frame_prev_register): New.
8819 (alpha_sigtramp_frame_unwind): New.
8820 (alpha_sigtramp_frame_p): New.
8821 (struct alpha_heuristic_unwind_cache): New.
8822 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8823 don't count nop insns that occur between functions.
8824 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8825 heuristic_proc_desc, but without the mdebug wrapping.
8826 (alpha_heuristic_frame_this_id): New.
8827 (alpha_heuristic_frame_prev_register): New.
8828 (alpha_heuristic_frame_unwind): New.
8829 (alpha_heuristic_frame_p): New.
8830 (alpha_heuristic_frame_base_address): New.
8831 (alpha_heuristic_frame_base): New.
8832 (alpha_unwind_dummy_id): New.
8833 (alpha_unwind_pc): New.
8834 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8835 frame related deprecated initializations; install replacements.
8836 (alpha_dump_tdep): Remove.
8837 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8838 (alpha_read_insn, alpha_after_prologue,
8839 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8840 alpha_heuristic_frame_prev_register,
8841 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8842 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8843 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8844 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8845
93ec1121
AC
88462003-05-29 Andrew Cagney <cagney@redhat.com>
8847
8848 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8849 dependant on the availability of ASSERT_FUNCTION.
8850 (ASSERT_FUNCTION): Do not define when there is no function name.
8851
98f08d3d
KB
88522003-05-29 Kevin Buettner <kevinb@redhat.com>
8853
8854 From Jimi X <jimix@watson.ibm.com>:
8855 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8856
0897f59b
JB
88572003-05-28 Jim Blandy <jimb@redhat.com>
8858
8859 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8860 argument to ptrace to int; the system headers should give it the
8861 right type, and pointers don't fit in ints on powerpc64-*-*.
8862
14898363
L
88632003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8864
8865 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8866 DW_TAG_catch_block.
8867
a7a48797
EZ
88682003-05-26 Elena Zannoni <ezannoni@redhat.com>
8869
8870 * stabsread.c (dbx_lookup_type): Make static.
8871 (read_type): Ditto.
8872 (add_undefined_type): Ditto.
8873 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8874 not export.
8875
f5479e9c
EZ
88762003-05-26 Elena Zannoni <ezannoni@redhat.com>
8877
8878 * hpread.c (hpread_has_name): Make static.
8879 (hpread_psymtab_to_symtab): Ditto.
8880 (file_exists): Ditto.
8881 (hpread_call_pxdb): Ditto.
8882 (hpread_pxdb_needed): Ditto.
8883 (hpread_quick_traverse): Ditto.
8884 (hpread_get_header): Ditto.
8885 (hpread_get_lntt): Ditto.
8886 (hpread_get_slt): Ditto.
8887 (class_of): Ditto.
8888
eb2e12d7
AS
88892003-05-25 Andreas Schwab <schwab@suse.de>
8890
78bf922a
AS
8891 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8892 stack_align and deprecated_extra_stack_alignment_needed.
8893 (m68k_stack_align): Delete.
8894
eb2e12d7
AS
8895 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8896 (m68k_register_virtual_size): Likewise.
8897 (altos_skip_prologue): Remove obsolete function.
8898 (isi_frame_num_args): Likewise.
8899 (news_frame_num_args): Likewise.
8900 (m68k_fix_call_dummy): Make static.
8901 (m68k_push_dummy_frame): Likewise.
8902 (m68k_pop_frame): Likewise.
8903 (m68k_skip_prologue): Likewise.
8904 (m68k_frame_init_saved_regs): Likewise.
8905 (m68k_saved_pc_after_call): Likewise.
8906 (m68k_get_longjmp_target): Make multi-arch.
8907 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8908 structure. Register m68k_get_longjmp_target if enabled.
8909 * m68k-tdep.h (struct gdbarch_tdep): Define.
8910 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8911
8912 * Makefile.in (config.status): Also depend on configure.tgt
8913 and configure.host.
8914 (m68klinux-tdep.o): Update dependencies.
8915 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8916 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8917 (M68K_LINUX_JB_PC): Define.
8918 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8919 and take additional parameter.
8920 (m68k_linux_sigtramp_saved_pc): Update.
8921 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8922 m68k_linux_pc_in_sigtramp, in_plt_section,
8923 find_solib_trampoline_target.
8924 * config/m68k/tm-linux.h: Don't include any tm headers.
8925 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8926 (JB_ELEMENT_SIZE): Likewise.
8927 (JB_PC): Likewise.
8928 (GET_LONGJMP_TARGET): Likewise.
8929 (IN_SIGTRAMP): Likewise.
8930 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8931
eb2c22dc
MK
89322003-05-25 Mark Kettenis <kettenis@gnu.org>
8933
8934 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8935 (sparc32_push_arguments): Re-implement by calling
8936 sparc32_do_push_arguments.
8937
44b7b84e
MK
89382003-05-25 Mark Kettenis <kettenis@gnu.org>
8939
8940 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8941 SPARC_O1_REGNUM): New defines.
8942 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8943 (sparc32_store_return_value): New function.
8944 (sparc_extract_struct_value_address): Rewrite to operate on a
8945 regcache.
8946 (sparc_gdbarch_init): Don't set
8947 deprecated_extract_struct_value_address. Set
8948 extract_struct_value_address instead. Don't set
8949 deprecated_extract_return_value and deprecated_store_return_value
8950 for 32-bit targets. Set extract_return_value and
8951 store_return_value instead.
8952 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7bb11558 8953 DEPRECATED_EXTRACT_RETURN_VALUE,
44b7b84e
MK
8954 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8955 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8956 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8957 (sparc_store_return_value): Remove prototype.
8958 (sparc32_store_return_value): New prototype.
8959 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8960 Adjust prototypes.
8961
f6ad61e3
MK
89622003-05-24 Mark Kettenis <kettenis@gnu.org>
8963
8964 * sparcnbsd-tdep.c: Include "gdb_string.h".
8965
b276f1bb
AC
89662003-05-23 Andrew Cagney <cagney@redhat.com>
8967
8968 * p-valprint.c (pascal_val_print): Replace extract_address with
8969 the inline equivalent extract_unsigned_integer.
8970 * jv-valprint.c (java_value_print): Ditto.
8971 * ada-valprint.c (ada_val_print_1): Ditto.
8972 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8973
e76c5fcc
TR
89742003-05-23 Theodore A. Roth <troth@openavr.org>
8975
8976 * blockframe.c (frameless_look_for_prologue): Remove unused
8977 after_prologue variable.
8978
2cdd89cb
MK
89792003-05-23 Mark Kettenis <kettenis@gnu.org>
8980
8981 * blockframe.c (get_pc_function_start): Rewrite to avoid
8982 asignments in if-statements.
8983
182d43bc
EZ
89842003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8985
8986 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 8987 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
8988 files, don't relocate absolute symbols (and do use mst_abs).
8989
e8f3fcdd
AC
89902003-05-23 Andrew Cagney <cagney@redhat.com>
8991
8992 * objc-lang.c: Include "gdb_assert.h".
8993 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8994 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8995 (gdb_check, gdb_check_fatal): Delete functions.
8996 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8997 gdb_assert.
8998 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8999 * Makefile.in (objc-lang.o): Update dependencies.
9000
3c23e6fb
ILT
90012003-05-22 Ian Lance Taylor <ian@airs.com>
9002
9003 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
9004 with fprintf_filtered, not fprintf_unfiltered.
9005
af1342ab
AC
90062003-05-22 Andrew Cagney <cagney@redhat.com>
9007
9008 * stack.c (frame_info): Inline extract_address, replacing it with
9009 extract_unsigned_integer.
9010 * findvar.c (unsigned_pointer_to_address): Ditto.
9011 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
9012 * dwarf2expr.c (dwarf2_read_address): Ditto.
9013 * frame.c (frame_pc_unwind): Update comment.
9014 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
9015
47e242ec
JJ
90162003-05-22 Jeff Johnston <jjohnstn@redhat.com>
9017
9018 * infptrace.c (detach): Call print_sys_errmsg rather than
9019 perror_with_name to issue warning message when errno is non-zero
9020 after calling ptrace detach.
9021
e2ac8128
JB
90222003-05-21 J. Brobecker <brobecker@gnat.com>
9023
9024 * config/pa/tm-hppa.h: Delete some unused macros. Move some
9025 macro definitions from here...
9026 * hppa-tdep.c: ...to there.
9027
92b3541e
KB
90282003-05-20 Kevin Buettner <kevinb@redhat.com>
9029
9030 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
9031 register_ptrace_addr(). Fix all callers.
9032
55809acb
AS
90332003-05-21 Andreas Schwab <schwab@suse.de>
9034
9035 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
9036 dependencies.
9037 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
9038 end.
9039 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
9040 (_initialize_m68k_linux_tdep): New function.
9041 (m68k_linux_frame_saved_pc): Make static.
9042 (m68k_linux_extract_return_value): Likewise.
9043 (m68k_linux_store_return_value): Likewise.
9044 (m68k_linux_extract_struct_value_address): Likewise.
9045 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
9046 Remove.
9047 (DEPRECATED_STORE_RETURN_VALUE): Remove.
9048 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
9049 (DEPRECATED_FRAME_SAVED_PC): Remove.
9050
0fbc10f7
KW
90512003-05-20 Kris Warkentin <kewarken@qnx.com>
9052
9053 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
9054 regset numbering rather than our own.
9055
58da2eb2
DC
90562003-05-19 David Carlton <carlton@bactrian.org>
9057
9058 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
9059
1fcb5155
DC
90602003-05-19 David Carlton <carlton@bactrian.org>
9061
9062 Partial fix for PR c++/827.
9063 * cp-support.h: Include symtab.h.
9064 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
9065 * cp-namespace.c: Update contributors.
9066 (cp_lookup_symbol_nonlocal): New.
9067 (lookup_namespace_scope, cp_lookup_symbol_namespace)
9068 (lookup_symbol_file): Ditto.
9069 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
9070 * block.h: Declare block_scope, block_using, block_global_block.
9071 * block.c (block_scope): New.
9072 (block_using, block_global_block): Ditto.
9073 * Makefile.in (cp_support_h): Depend on symtab_h.
9074 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
9075
5f9a71c3
DC
90762003-05-19 David Carlton <carlton@bactrian.org>
9077
9078 * language.h (struct language_defn): Add 'la_value_of_this'
9079 and 'la_lookup_symbol_nonlocal' members.
9080 * symtab.h: Declare basic_lookup_symbol_nonlocal,
9081 lookup_symbol_static, lookup_symbol_global,
9082 lookup_symbol_aux_block.
9083 * symtab.c (lookup_symbol_aux): Call language hooks to determine
9084 if we should search fields of this and how to do static/global
9085 lookup.
9086 (lookup_symbol_aux_block): Make extern.
9087 (basic_lookup_symbol_nonlocal): New.
9088 (lookup_symbol_static, lookup_symbol_global): Ditto.
9089 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
9090 'la_lookup_symbol_nonlocal' members.
9091 * c-lang.c (c_language_defn, cplus_language_defn)
9092 (asm_language_defn, minimal_language_defn): Ditto.
9093 * jv-lang.c (java_language_defn): Ditto.
9094 * language.c (unknown_language_defn, auto_language_defn)
9095 (local_language_defn): Ditto.
9096 * m2-lang.c (m2_language_defn): Ditto.
9097 * objc-lang.c (objc_language_defn): Ditto.
9098 * scm-lang.c (scm_language_defn): Ditto.
9099 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
9100 * p-lang.c (pascal_language_defn): Ditto for both.
9101 * Makefile.in (f-lang.o): Depend on value_h.
9102 (p-lang.o): Ditto.
9103
89a9d1b1
DC
91042003-05-19 David Carlton <carlton@bactrian.org>
9105
9106 * block.h: Declare block_static_block.
9107 * block.c (block_static_block): New.
9108 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
9109 lookup_symbol_aux_local, calling block_static_block instead.
9110 (lookup_symbol_aux_local): Delete 'static_block' argument.
9111
eed3f8ab
DC
91122003-05-19 David Carlton <carlton@bactrian.org>
9113
9114 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
9115
a09d8bda
ML
91162003-05-19 Michal Ludvig <mludvig@suse.cz>
9117
9118 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
9119 register numbers mapping.
9120
69636828
AF
91212003-05-18 Adam Fedor <fedor@gnu.org>
9122
9123 * symtab.c (completion_list_objc_symbol): New function.
9124 (make_symbol_completion_list): Use it to add ObjC symbols
9125 when looking though the list.
9126 (language_search_unquoted_string): New function.
9127 (make_file_symbol_completion_list): Use it.
9128
55baeb84
AS
91292003-05-18 Andreas Schwab <schwab@suse.de>
9130
d0b45d99
AS
9131 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
9132 dependencies.
9133 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
9134 as m68k_linux_extract_return_value.
9135 (DEPRECATED_STORE_RETURN_VALUE): Define as
9136 m68k_linux_store_return_value.
9137 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9138 m68k_linux_extract_struct_value_address.
9139 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
9140 get_next_frame, get_frame_base, get_frame_pc.
9141 (m68k_linux_frame_saved_pc): Use get_frame_base.
9142 (m68k_linux_extract_return_value): New function.
9143 (m68k_linux_store_return_value): New function.
9144 (m68k_linux_extract_struct_value_address): New function.
9145 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
9146
55baeb84
AS
9147 * c-exp.y (typebase): Remove duplicate occurence of
9148 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 9149 of lookup_signed_typename.
55baeb84 9150
b6b08ebf
MK
91512003-05-18 Mark Kettenis <kettenis@gnu.org>
9152
9153 * dwarf2loc.c (find_location_expression): Change type of second
9154 argument to `size_t *'.
9155 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
9156 for size variable.
9157
5ad1c190
DC
91582003-05-18 David Carlton <carlton@bactrian.org>
9159
9160 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
9161 'linkage_name'. Add comment.
9162 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
9163 'linkage_name'.
9164 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9165 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
9166 (lookup_block_symbol): Ditto.
9167
b8b527c5
AC
91682003-05-16 Andrew Cagney <cagney@redhat.com>
9169
9170 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
9171 * gdbarch.h, gdbarch.c: Re-generate.
9172 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
9173 * TODO (REGISTER_BYTES): Delete reference.
9174 * alpha-tdep.c (alpha_gdbarch_init): Update.
9175 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9176 * x86-64-tdep.c (x86_64_init_abi): Update.
9177 * vax-tdep.c (vax_gdbarch_init): Update.
9178 * v850-tdep.c (v850_gdbarch_init): Update.
9179 * sparc-tdep.c (sparc_gdbarch_init): Update.
9180 * sh-tdep.c (sh_gdbarch_init): Update.
9181 * s390-tdep.c (s390_gdbarch_init): Update.
9182 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9183 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
9184 (ns32k_gdbarch_init_32382): Update.
9185 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9186 * mcore-tdep.c (mcore_gdbarch_init): Update.
9187 * m68k-tdep.c (m68k_gdbarch_init): Update.
9188 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9189 * ia64-tdep.c (ia64_gdbarch_init): Update.
9190 * i386-tdep.c (i386_gdbarch_init): Update.
9191 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9192 * hppa-tdep.c (hppa_gdbarch_init): Update.
9193 * h8300-tdep.c (h8300_gdbarch_init): Update.
9194 * frv-tdep.c (frv_gdbarch_init): Update.
9195 * cris-tdep.c (cris_gdbarch_init): Update.
9196 * avr-tdep.c (avr_gdbarch_init): Update.
9197 * arm-tdep.c (arm_gdbarch_init): Update.
9198 * sparc-tdep.c (sparc_pop_frame): Update.
9199 * rs6000-tdep.c (rs6000_pop_frame): Update.
9200 * remote.c (init_remote_state): Update.
9201 (remote_prepare_to_store): Update.
9202 * remote-vx.c (vx_prepare_to_store): Update.
9203 * remote-sds.c (sds_fetch_registers): Update.
9204 (sds_prepare_to_store): Update.
9205 * remote-array.c: Update.
9206 * regcache.c (init_legacy_regcache_descr): Update.
9207 (init_regcache_descr): Update.
9208 * mips-tdep.c (mips_eabi_extract_return_value): Update.
9209 (mips_o64_extract_return_value): Update.
9210 * irix5-nat.c (fetch_core_registers): Update.
9211 * irix4-nat.c (fetch_core_registers): Update.
9212 * i386-tdep.h: Update.
9213 * hppa-tdep.c (pa_do_registers_info): Update.
9214 (pa_do_strcat_registers_info): Update.
9215 * cris-tdep.c (cris_register_bytes_ok): Update.
9216 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
9217 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
9218 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
9219 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
9220 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
9221 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
9222 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
9223 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
9224 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
9225 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
9226 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
9227 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
9228 (REGISTER_BYTES_OK): Update.
9229 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
9230 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
9231
ee2842e2
ILT
92322003-05-16 Ian Lance Taylor <ian@airs.com>
9233
9234 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
9235 (vax_print_insn, print_insn_arg): Remove static functions.
9236 (vax_gdbarch_init): Call set_gdbarch_print_insn with
9237 print_insn_vax from opcodes library.
9238 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
9239
973177d3
AC
92402003-05-15 Andrew Cagney <cagney@redhat.com>
9241
aaab4dba
AC
9242 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
9243 * target.h (memory_breakpoint_from_pc): Delete declaration.
9244 * mem-break.c (memory_breakpoint_from_pc): Delete function.
9245 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
9246 * monitor.c (monitor_insert_breakpoint): Use
9247 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
9248 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
9249 * gdbarch.h, gdbarch.c: Re-generate.
9250 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
9251 (sparc_gdbarch_init): Set breakpoint_from_pc to
9252 sparc_breakpoint_from_pc.
9253 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
9254 (BREAKPOINT_FROM_PC): Define.
9255 (sparc_breakpoint_from_pc): Declare.
9256 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
9257 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
9258 (BREAKPOINT_FROM_PC): Define.
9259 (BREAKPOINT): Delete macro.
9260 * target.h: Update comment.
9261 * s390-tdep.c (s390_gdbarch_init): Update comments.
9262 * remote.c: Update comments.
9263 * remote-mips.c: Update comments.
9264 * proc-api.c (write_with_trace): Do not check for a breakpoint.
9265 * mem-break.c: Update comment.
9266 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
9267 (ia64_memory_insert_breakpoint): Update.
9268 * config/sparc/tm-sparc.h: Update comment.
9269 * config/pa/tm-hppa64.h: Update comment.
9270 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9271 (rs6000_breakpoint_from_pc): Update.
9272 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9273 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
9274 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
9275 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
9276 (mips_breakpoint_from_pc): Update.
9277 (mips_dump_tdep): Update.
9278
e06963ff
AC
9279 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
9280 * minsyms.c (lookup_minimal_symbol): Inline
9281 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
9282
973177d3
AC
9283 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
9284 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9285 * p-lang.c (pascal_printstr): Ditto.
9286 * objc-lang.c (objc_printstr): Ditto.
9287 * m2-lang.c (m2_printstr): Ditto.
9288 * jv-valprint.c (java_print_value_fields): Ditto.
9289 * f-lang.c (f_printstr): Ditto.
9290 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
9291 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
9292 for repeat_count_threshold.
9293 * Makefile.in (cp-valprint.o): Update dependencies.
9294
5ea2bd7f 92952003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9296
5ea2bd7f
JJ
9297 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
9298 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
9299 they start with mov r2,r12. Support skipping over indirect stores
9300 of the input registers. Upon hitting a non-nop branch instruction
9301 or predicated instruction, bail out by setting lim_pc to the current
9302 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
9303 beyond our calculated value and we have trust_limit set,
9304 use the lim_pc value.
9305
cc8c88f3
AC
93062003-05-15 Andrew Cagney <cagney@redhat.com>
9307
9308 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
9309 generic_find_dummy_frame.
9310 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
9311 (deprecated_generic_find_dummy_frame): Update.
9312 (deprecated_read_register_dummy): Update.
9313 * frame.c (deprecated_generic_get_saved_register): Update.
9314
909cd28e
TR
93152003-05-15 Theodore A. Roth <troth@openavr.org>
9316
9317 * avr-tdep.c (avr_breakpoint_from_pc): New function.
9318 (avr_gdbarch_init): Set breakpoint_from_pc method.
9319
b923b08d
AC
93202003-05-15 Andrew Cagney <cagney@redhat.com>
9321
9322 * regcache.c (build_regcache): Set deprecated_register_valid
9323 directly.
9324 (deprecated_grub_regcache_for_register_valid): Delete function.
9325 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
9326 declaration.
9327
ae2f03ac 93282003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
9329
9330 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
9331 * symtab.c (lookup_symbol_aux): Delete calls to
9332 lookup_symbol_aux_minsyms.
9333 (lookup_symbol_aux_minsyms): Comment out function and
9334 prototype. Delete lookup by mangled name.
ae2f03ac 9335
18ec9831
KB
93362003-05-14 Kevin Buettner <kevinb@redhat.com>
9337
9338 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
9339 correctly indicate an empty stack and ``stack_allocated'' to the
9340 indicate the number of elements initially allocated.
9341 (dwarf_expr_grow_stack): Simplify method for computing new
9342 stack size. Don't loop infinitely if ``stack_len'' is zero.
9343 (execute_stack_op): Move ``ctx->in_reg'' initialization
9344 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
9345 be used in conjuction with DW_OP_piece. Revise error message
9346 accordingly.
9347
de18ac1f
TR
93482003-05-14 Theodore A. Roth <troth@openavr.org>
9349
9350 * MAINTAINERS: Update my email address.
9351 * avr-tdep.c: Ditto.
9352
176620f1
EZ
93532003-05-14 Elena Zannoni <ezannoni@redhat.com>
9354
9355 * symtab.h (enum domain_enum): Rename from namespace_enum.
9356 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
9357 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
9358 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
9359 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
9360 TYPES_NAMESPACE, METHODS_NAMESPACE.
9361 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
9362 (struct symbol, struct partial_symbol): Rename field
9363 'namespace_enum namespace' to 'domain_enum domain'.
9364 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
9365 Delete old define kludge for namespace.
9366
9367 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
9368 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
9369 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
9370 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
9371 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
9372 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
9373 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
9374 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
9375 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
9376 occurrences of the above.
9377
b7f31508
ILT
93782003-05-14 Ian Lance Taylor <ian@airs.com>
9379
9380 * Makefile.in (install-only): Use $(SHELL) when running
9381 mkinstalldirs.
9382
2fdbdd39
ILT
93832003-05-13 Ian Lance Taylor <ian@airs.com>
9384
a208d82c
ILT
9385 * MAINTAINERS (write after approval): Add myself.
9386
2fdbdd39
ILT
9387 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
9388 second and third arguments.
9389 * ser-tcp.c (_initialize_ser_tcp): Likewise.
9390 * ser-unix.c (_initialize_ser_hardwire): Likewise.
9391
fbd9dcd3
AC
93922003-05-13 Andrew Cagney <cagney@redhat.com>
9393
9394 * defs.h (store_address): Delete declaration.
9395 findvar.c (store_address): Delete function.
9396 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
9397 store_unsigned_integer.
9398 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
9399 * v850-tdep.c (v850_push_arguments): Ditto.
9400 * sparc-tdep.c (sparc_get_saved_register): Ditto.
9401 * sh-tdep.c (sh64_get_saved_register): Ditto.
9402 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
9403 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
9404 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
9405 (mips_get_saved_register): Ditto.
9406 * ia64-tdep.c (ia64_get_saved_register): Ditto.
9407 (find_func_descr, ia64_push_arguments): Ditto.
9408 * i386-tdep.c (i386_push_arguments): Ditto.
9409 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9410 * frv-tdep.c (frv_push_arguments): Ditto.
9411 * frame.c (legacy_saved_regs_prev_register): Ditto.
9412 (deprecated_generic_get_saved_register): Ditto.
9413 * findvar.c (unsigned_address_to_pointer): Ditto.
9414 * dwarf2read.c (dwarf2_const_value): Ditto.
9415 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
9416 * alpha-tdep.c (alpha_push_arguments): Ditto.
9417
6760f9e6
JB
94182003-05-12 J. Brobecker <brobecker@gnat.com>
9419
9420 * NEWS: Mention that the hppa-hpux port has been partially
9421 multiarched (32bit ABIT only, so far).
9422
30e221b4
AC
94232003-05-11 Andrew Cagney <cagney@redhat.com>
9424
9425 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
9426 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
9427 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
9428 sim/testsuite/sim/arm/misaligned2.ms, and
9429 sim/testsuite/sim/arm/misaligned3.ms.
9430 * disasm.h (struct ui_file): Add opaque struct declaration.
9431 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
9432 * frame.h (struct ui_file): Ditto.
9433
dea7f9ba
MK
94342003-05-11 Mark Kettenis <kettenis@gnu.org>
9435
9436 * value.h: Pretty print.
9437
01986c48
MK
94382003-05-10 Mark Kettenis <kettenis@gnu.org>
9439
9440 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9441
123a958e
AC
94422003-05-08 Andrew Cagney <cagney@redhat.com>
9443
9444 * regcache.h (max_register_size): Delete declaration.
9445 * regcache.c (max_register_size): Delete function.
9446 (struct regcache_descr): Delete field "max_register_size".
9447 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
9448 registers fit in MAX_REGISTER_SIZE.
9449 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
9450 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
9451 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
9452 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
9453 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
9454 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
9455 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
9456 * dve3900-rom.c, hppa-tdep.c: Ditto.
9457
eb294659
DC
94582003-05-08 David Carlton <carlton@math.stanford.edu>
9459
9460 * valops.c (push_word): Fix typo.
9461
d9d9c31f
AC
94622003-05-08 Andrew Cagney <cagney@redhat.com>
9463
9464 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
9465 * gdbarch.h: Re-generate.
9466 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
9467 (legacy_max_register_raw_size): Delete declaration.
9468 * regcache.c (legacy_max_register_raw_size): Delete function.
9469 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
9470 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
9471 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
9472 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9473 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9474 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9475 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9476 * findvar.c, dwarf2cfi.c: Ditto.
9477
22540ece
AC
94782003-05-08 Andrew Cagney <cagney@redhat.com>
9479
9480 * mips-tdep.c (read_signed_register): New function, moved to here
9481 from "regcache.c".
9482 (read_signed_register_pid): Ditto.
9483 * regcache.c (read_signed_register_pid): Delete function, moved to
9484 "mips-tdep.c".
9485 (read_signed_register): Ditto.
9486 * regcache.h (read_signed_register): Delete declaration.
9487 (read_signed_register_pid): Delete declaration.
9488
0c92afe8
AC
94892003-05-08 Andrew Cagney <cagney@redhat.com>
9490
9491 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9492 * gdbarch.h: Re-generate.
9493 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9494 (legacy_max_register_virtual_size): Delete declaration.
9495 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9496 * d10v-tdep.c (d10v_print_registers_info): Ditto.
9497 * tracepoint.c (memrange_sortmerge): Ditto.
9498 * sparc-tdep.c (sparc_print_registers): Ditto.
9499 * regcache.c (legacy_max_register_virtual_size): Delete function.
9500
6037b830
JB
95012002-05-08 J. Brobecker <brobecker@gnat.com>
9502
9503 * fork-child.c (escape_bang_in_quoted_argument): New function.
9504 (fork_inferior): Escape '!' characters in quoted arguments
9505 only when needed.
9506
5d62c8b1
JB
95072003-05-08 J. Brobecker <brobecker@gnat.com>
9508
9509 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9510 the language of the CU is not currently supported by GDB.
9511
20a0e81d
JB
95122003-05-08 J. Brobecker <brobecker@gnat.com>
9513
9514 * defs.h (language): Add language_minimal enum value.
9515 * c-lang.c (minimal_language_defn): New language definition.
9516 (_initialize_c_language): Add the new minimal language to the list
9517 of languages known to GDB.
9518
710ee10a
KB
95192003-05-08 Kevin Buettner <kevinb@redhat.com>
9520
9521 * frame.c (get_frame_type): Don't attempt to lazily initialize
9522 frame's unwinder for legacy frames.
9523
1750fa04
AC
95242003-05-07 Andrew Cagney <cagney@redhat.com>
9525
9526 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9527 and "regcache" parameters.
9528 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9529
ddf9f258 95302003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9531
9532 * dwarf2read.c (dwarf_decode_lines): Only use output of
9533 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
9534 the current address.
9535
87767c29
AC
95362003-05-07 Andrew Cagney <cagney@redhat.com>
9537
9538 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9539 code.
9540
5e7b2f39
JB
95412003-05-07 Jim Blandy <jimb@redhat.com>
9542
9543 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9544 'maint info symtabs' and 'maint info psymtabs'.
9545 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9546 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9547 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9548 Declarations updated.
9549 * maint.c (maintenance_list_command): Delete.
9550 (_initialize_maint_cmds): Update calls to add_cmd.
9551 * gdbcmd.h (maintenancelistlist): Delete declaration.
9552 * cli/cli-cmds.c (maintenancelistlist): Delete.
9553 (init_cmd_lists): Don't initialize it.
9554 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9555
f6684c31
AC
95562003-05-07 Andrew Cagney <cagney@redhat.com>
9557
9558 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9559 "regcache".
9560 (d10v_print_registers_info): Update.
9561 (d10v_dmap_register, d10v_imap_register): Delete functions.
9562 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9563 and "imap_register".
9564 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9565 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9566 * arch-utils.c (generic_remote_translate_xfer_address): Add
9567 "regcache" and "gdbarch" parameters.
9568 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9569 parameter. Change class to multi-arch.
9570 * gdbarch.h, gdbarch.c: Re-generate.
9571 * remote.c (remote_xfer_memory): Use
9572 gdbarch_remote_translate_xfer_address.
8ffd9b1b 9573
e4846b08
JJ
95742003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9575
9576 * infrun.c (prev_pc): Move declaration ahead of proceed().
9577 (proceed): Refresh prev_pc value before resuming.
9578 (stop_stepping): Remove code to refresh prev_pc.
9579
6b71b8ac
KW
95802003-05-06 Kris Warkentin <kewarken@qnx.com>
9581
9582 * nto-tdep.c: Removed stray comment.
9583
47979a4b
KW
95842003-05-06 Kris Warkentin <kewarken@qnx.com>
9585
9586 * i386-nto-tdep.c: Fix old K&R function definitions.
9587 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9588 Also change add_show_from_set() call to add_setshow_cmd().
9589 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9590
00905d52
AC
95912003-05-05 Andrew Cagney <cagney@redhat.com>
9592
9593 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9594 (fprint_dummy_frames): New function.
9595 (maintenance_print_dummy_frames): New function.
9596 (_initialize_dummy_frame): Add command "maint print dummy-frames".
9597 * frame.c (fprint_frame_id): Make global.
9598 * frame.h (fprint_frame_id): Declare.
9599 * Makefile.in (dummy-frame.o): Update dependencies.
9600
b1e29e33
AC
96012003-05-05 Andrew Cagney <cagney@redhat.com>
9602
9603 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9604 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9605 SIZEOF_CALL_DUMMY_WORDS.
9606 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9607 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9608 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9609 CALL_DUMMY_BREAKPOINT_OFFSET.
9610 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9611 CALL_DUMMY_START_OFFSET.
9612 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9613 * gdbarch.h, gdbarch.c: Re-generate.
9614 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9615 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9616 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9617 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9618 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9619 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9620 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9621 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9622 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9623 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9624 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9625 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9626 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9627 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9628 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
9629
96302003-05-05 Kris Warkentin <kewarken@qnx.com>
9631
9632 * configure.tgt: Add i[3456]86-*-nto*.
9633 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
9634 * nto-tdep.c: New file. Neutrino target support routines.
9635 * nto-tdep.h: New file. Neutrino target header.
9636 * config/tm-qnxnto.h: New file.
9637 * config/i386/i386nto.mt: New file.
9638 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 9639
0ce3d317
AC
96402003-05-04 Andrew Cagney <cagney@redhat.com>
9641
9642 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9643 (load_infrun_state): Ditto.
9644 (struct thread_info): Drop "prev_func_name" field.
9645 * thread.c (load_infrun_state): Update.
9646 (save_infrun_state): Update.
9647 * infrun.c (prev_func_name): Delete variable.
9648 (init_wait_for_inferior): Do not clear prev_func_name.
9649 (stop_stepping, keep_going, context_switch): Do not swap
9650 prev_func_name.
9651 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9652 instead of PC_IN_SIGTRAMP.
9653
46654a5b
AC
96542003-05-04 Andrew Cagney <cagney@redhat.com>
9655
9656 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9657 REGISTER_BYTE with register_offset_hack.
9658 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9659 that REGISTER_BYTE is consistent with the regcache.
9660 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9661 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 9662
14b08c1b
MK
96632003-05-04 Mark Kettenis <kettenis@gnu.org>
9664
04c8243f
MK
9665 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9666 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9667
14b08c1b
MK
9668 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9669
c7a11e01
JB
96702003-05-03 J. Brobecker <brobecker@gnat.com>
9671
9672 From Thierry Schneider <tpschneider1@yahoo.com>
9673 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9674 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9675 (mi-cmd-symbol.o): Add rule.
9676
7043d8dc
AC
96772003-05-03 Andrew Cagney <cagney@redhat.com>
9678
9679 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9680 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9681 * gdbarch.h, gdbarch.c: Re-generate.
9682 * d10v-tdep.c (d10v_push_dummy_code): New function.
9683 (d10v_gdbarch_init): Set push_dummy_code.
9684 * infcall.c (legacy_push_dummy_code): New function.
9685 (generic_push_dummy_code): New function.
9686 (push_dummy_code): New function.
9687 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9688 instead of dummy_addr, to push_dummy_call. Move call to
9689 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9690 switch.
9691 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9692
92bf2b80
AC
96932003-05-03 Andrew Cagney <cagney@redhat.com>
9694
9695 * disasm.h (print_insn): Declare.
9696 * disasm.c (init_gdb_disassemble_info): New function.
9697 (gdb_disassembly): Call init_gdb_disassemble_info.
9698 (gdb_print_insn): New function.
9699 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9700 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9701 * mcore-tdep.c: Include "disasm.h"
9702 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9703 * d10v-tdep.c: Include "disasm.h".
9704 (display_trace): Call gdb_print_insn, instead of print_insn.
9705 (print_insn): Delete function.
9706 * printcmd.c: Include "disasm.h".
9707 (print_insn): Delete function.
9708 (print_formatted): Call gdb_print_insn, instead of print_insn.
9709 * Makefile.in (printcmd.o): Update dependencies.
9710 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 9711
27d94c49
AC
97122003-05-02 Andrew Cagney <cagney@redhat.com>
9713
82de1e5b
AC
9714 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9715 PC_REGNUM, re-indent.
9716 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9717 PC_REGNUM isn't set.
9718
27d94c49
AC
9719 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9720 * gdbarch.h, gdbarch.c: Re-generate.
9721 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9722 register_virtual_size, pc_regnum, or register_bytes.
9723 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9724 (d10v_register_type): Use D10V_PC_REGNUM.
9725 (d10v_print_registers_info, d10v_read_pc): Ditto.
9726 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9727 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9728
a9c0dc7f
DC
97292003-05-02 David Carlton <carlton@bactrian.org>
9730
9731 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9732 the name with mstrsave.
9733
e33d66ec
EZ
97342003-05-02 Elena Zannoni <ezannoni@redhat.com>
9735
9736 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9737 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9738 (host_charset_name, target_charset_name): New vars for use by
9739 set/show commands.
9740 (host_charset_enum, target_charset_enum): New enums for set/show
9741 commands.
9742 (set_charset_sfunc, set_host_charset_sfunc,
9743 set_target_charset_sfunc): New functions.
9744 (set_host_charset, set_target_charset): Make static.
9745 (list_charsets, set_host_charset_command,
9746 set_target_charset_command): Delete functions.
9747 (show_charset_command): Rewrite as....
9748 (show_charset): Hook this up with the set/show command mechanism.
9749 (_initialize_charset): Change names of charsets to match the
9750 set/show enums. Use host_charset_name and target_charset_name.
9751 Use set/show mechanism for charset, host-charset, target-charset
9752 commands. Do not make 'show host-charset' and 'show
9753 target-charset' be aliases of 'show charset'.
9754
9755 * charset.h (set_host_charset, set_target_charset): Don't export,
9756 they are not used outside the file.
9757
2b6fd0d8
AC
97582003-05-01 Andrew Cagney <cagney@redhat.com>
9759
9760 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9761 (gdb_disassembly): Make "di" non static, always initialize and
9762 cleanup. Always use dis_asm_read_memory.
9763 (gdb_dis_asm_read_memory): Delete function.
9764
6ae2f580
AC
97652003-05-01 Andrew Cagney <cagney@redhat.com>
9766
9767 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9768 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9769
810ecf9f
AC
97702003-04-30 Andrew Cagney <cagney@redhat.com>
9771
9772 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9773 "tm_print_insn_info".
9774 (TARGET_PRINT_INSN_INFO): Delete macro.
9775 (dis_asm_read_memory): Delete function declaration.
9776 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9777 (tm_print_insn_info): Delete variable definition.
9778 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9779 * gdbarch.h, gdbarch.c: Re-generate.
9780 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9781 "deprecated_tm_print_insn_info".
9782 * mcore-tdep.c (mcore_dump_insn): Ditto.
9783 * mips-tdep.c (mips_gdbarch_init): Ditto.
9784 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9785 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9786 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9787 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9788 instead of TARGET_PRINT_INSN_INFO, add comment.
9789 * s390-tdep.c (s390_get_frame_info): Instead of
9790 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9791 (s390_check_function_end, s390_is_sigreturn): Ditto.
9792 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9793 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9794 * disasm.c: Include "gdbcore.h".
9795 (_initialize_disasm): New function, initialize
9796 "deprecated_tm_print_insn_info".
9797 (deprecated_tm_print_insn_info): New variable.
9798 (dis_asm_read_memory): Moved from "corefile.c", made static.
9799 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9800 * Makefile.in (disasm.o): Update dependencies.
9801
07020390
AC
98022003-04-30 Andrew Cagney <cagney@redhat.com>
9803
9804 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9805
a9fa03de
AF
98062003-04-29 Adam Fedor <fedor@gnu.org>
9807
9808 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9809 * infcall.c (find_function_addr): Make non-static.
9810 * infcall.h (find_function_addr): Declare.
9811 * Makefile.in (eval.o): Update dependencies.
9812
1bae87b9
AF
98132003-04-28 Adam Fedor <fedor@gnu.org>
9814
9815 * symtab.c (symbol_find_demangled_name): Check for and demangle
9816 ObjC symbols.
9817 (symbol_init_demangled_name): Init for language_objc as well.
9818
0ba6dca9
AC
98192003-04-28 Andrew Cagney <cagney@redhat.com>
9820
9821 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9822 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9823 * gdbarch.h, gdbarch.c: Re-generate.
9824 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9825 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9826 * inferior.h (deprecated_read_fp): Rename read_fp.
9827 (generic_target_read_fp): Delete declaration.
9828 * regcache.c (generic_target_read_fp): Delete function.
9829 (deprecated_read_fp): Replace read_fp, use
9830 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9831 * d10v-tdep.c (d10v_read_fp): Delete function.
9832 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9833
9834 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9835 deprecated_target_read_fp to generic_target_read_fp.
9836 * sh-tdep.c (sh_gdbarch_init): Ditto.
9837 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9838 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9839 * frv-tdep.c (frv_gdbarch_init): Ditto.
9840
9841 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9842 deprecated_fp_regnum.
9843 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9844 * vax-tdep.c (vax_gdbarch_init): Ditto.
9845 * v850-tdep.c (v850_gdbarch_init): Ditto.
9846 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9847 * sh-tdep.c (sh_gdbarch_init): Ditto.
9848 * s390-tdep.c (s390_gdbarch_init): Ditto.
9849 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9850 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9851 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9852 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9853 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9854 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9855 * i386-tdep.c (i386_gdbarch_init): Ditto.
9856 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9857 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9858 * frv-tdep.c (frv_gdbarch_init): Ditto.
9859 * cris-tdep.c (cris_gdbarch_init): Ditto.
9860 * avr-tdep.c (avr_gdbarch_init): Ditto.
9861 * arm-tdep.c (arm_gdbarch_init): Ditto.
9862 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9863
9864 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9865 * v850-tdep.c (v850_gdbarch_init): Ditto.
9866 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9867 * sh-tdep.c (sh_gdbarch_init): Ditto.
9868 * s390-tdep.c (s390_gdbarch_init): Ditto.
9869 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9870 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9871 * mips-tdep.c (mips_gdbarch_init): Ditto.
9872 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9873 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9874 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9875 * frv-tdep.c (frv_gdbarch_init): Ditto.
9876 * avr-tdep.c (avr_gdbarch_init): Ditto.
9877 * arm-tdep.c (arm_gdbarch_init): Ditto.
9878
9879 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9880 DEPRECATED_FP_REGNUM.
9881 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9882 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9883 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9884 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9885 (sparc32_register_virtual_type): Ditto.
9886 * sh-tdep.c (sh64_frame_chain): Ditto.
9887 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9888 (sh_nofp_frame_init_saved_regs): Ditto.
9889 (sh64_nofp_frame_init_saved_regs): Ditto.
9890 (sh_fp_frame_init_saved_regs): Ditto.
9891 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9892 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9893 * procfs.c (procfs_fetch_registers): Ditto.
9894 (procfs_store_registers): Ditto.
9895 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9896 (store_inferior_registers, fetch_core_registers): Ditto.
9897 (fetch_kcore_registers, clear_regs): Ditto.
9898 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9899 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9900 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9901 * nlm/i386.c (do_status): Ditto.
9902 * mipsv4-nat.c (supply_gregset): Ditto.
9903 * mips-tdep.c: Ditto for comments.
9904 * mips-nat.c (fetch_inferior_registers): Ditto.
9905 (store_inferior_registers, fetch_core_registers): Ditto.
9906 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9907 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9908 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9909 (i386_do_pop_frame, i386_register_type): Ditto.
9910 * hppa-tdep.c (hppa_frame_chain): Ditto.
9911 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9912 (hppa_pop_frame, hppa_read_fp): Ditto.
9913 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9914 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9915 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9916 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9917 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9918 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9919 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9920 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9921 * blockframe.c: Ditto for comments.
9922 * arch-utils.h: Ditto for comments.
9923 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9924 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9925 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9926 * alpha-tdep.h: Ditto for comments.
9927 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9928 (alpha_cannot_store_register): Ditto.
9929 (alpha_push_dummy_frame): Ditto.
9930 * alpha-nat.c (supply_gregset): Ditto.
9931
9932 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9933 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9934 * config/sparc/tm-sparc.h: Update comment.
9935
9936 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9937 deprecated_read_fp instead of TARGET_READ_FP.
9938 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9939 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9940 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9941 deprecated_read_fp instead of read_fp.
9942 * s390-tdep.c (s390_push_arguments): Ditto.
9943 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9944 * frame.h: Ditto in comments.
9945 * frame.c (legacy_get_prev_frame): Ditto.
9946 * dummy-frame.c (dummy_frame_this_id): Ditto.
9947 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9948
d7a27068
AC
99492003-04-28 Andrew Cagney <cagney@redhat.com>
9950
9951 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9952 * gdbarch.h, gdbarch.c: Re-generate.
9953 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9954 * vax-tdep.c (_initialize_vax_tdep): Update.
9955 * v850-tdep.c (_initialize_v850_tdep): Update.
9956 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9957 * s390-tdep.c (_initialize_s390_tdep): Update.
9958 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9959 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9960 * mips-tdep.c (_initialize_mips_tdep): Update.
9961 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9962 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9963 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9964 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9965 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9966 * frv-tdep.c (_initialize_frv_tdep): Update.
9967 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9968 (_initialize_cris_tdep): Update.
9969 * arch-utils.c (legacy_print_insn): Update.
9970 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9971
d2630e69
AF
99722003-04-26 Adam Fedor <fedor@gnu.org>
9973
9974 * linespec.c (decode_objc): New function to decode ObjC calls
9975 (decode_line_1): Check for ObjC calls (using decode_objc)
9976 * Makefile (linespec.o): Update dependencies.
9977
3086aeae
DJ
99782003-04-26 Daniel Jacobowitz <drow@mvista.com>
9979
9980 * breakpoint.h (struct breakpoint_ops): New.
9981 (struct breakpoint): Add ops member.
9982
9983 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9984 (mention): Use new breakpoint ops member.
9985 (set_raw_breakpoint): Initialize ops field to NULL.
9986 (print_exception_catchpoint, print_one_exception_catchpoint)
9987 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9988 (gnu_v3_exception_catchpoint_ops): New.
9989 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9990
1fbec6c3
AF
99912003-04-25 Adam Fedor <fedor@gnu.org>
9992
9993 * Makefile.in (COMMON_OBS): Add objc-lang.o
9994
0ef21242
AC
99952003-04-25 Andrew Cagney <cagney@redhat.com>
9996
9997 * d10v-tdep.c (print_insn): Delete function.
9998 (display_trace): Use TARGET_PRINT_INSN.
9999 (_initialize_d10v_tdep): Do not set tm_print_insn.
10000 (d10v_gdbarch_init): Set print_insn.
10001
f75493ed
AC
100022003-04-25 Andrew Cagney <cagney@redhat.com>
10003
10004 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
10005 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
10006 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
10007 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
10008 (nr_dmap_regs, a0_regnum): ... new functions.
10009 (d10v_print_registers_info): Use a0_regnum, use register_size.
10010 (d10v_register_byte): Delete function.
10011 (d10v_register_raw_size): Delete function.
10012 (d10v_register_type): Use a0_regnum.
10013 (d10v_print_registers_info): Use a0_regnum.
10014 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
10015 (d10v_gdbarch_init): Do not set register_byte or
10016 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
10017 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
10018 extract_address.
10019 (trace_command): Use XCALLOC.
10020 (print_insn): Delete reference to tm_print_insn.
10021 (saved_regs_unwinder): Use store_unsigned_integer instead of
10022 store_address.
10023 * frame.h (FRAME_OBSTACK_CALLOC): Define
10024
2202b100
DC
100252003-04-25 David Carlton <carlton@bactrian.org>
10026
10027 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
10028
4e45ca2e
AF
100292003-04-24 Adam Fedor <fedor@gnu.org>
10030
10031 * objc-lang.c: Include "valprint.h"
10032 * Makefile.in (objc-lang.o): Update dependencies.
10033
93de3e7f
AF
100342003-04-24 Adam Fedor <fedor@gnu.org>
10035
8ffd9b1b 10036 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
10037 architecture dependant compilation and mark as unimplemented
10038 (until they get put in the gdbarch vector).
10039
0f20eeea
DC
100402003-04-23 David Carlton <carlton@bactrian.org>
10041
10042 * cp-support.c (cp_find_first_component): Accept 'operator' in
10043 more locations.
10044
74cfe982
AC
100452003-04-23 Andrew Cagney <cagney@redhat.com>
10046
10047 * infcall.c (call_function_by_hand): Eliminate redundant
10048 indentation. Move "saved_async" and "old_cleanups" to where they
10049 are needed.
8ffd9b1b 10050
52557533
AC
100512003-04-23 Andrew Cagney <cagney@redhat.com>
10052
10053 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
10054 and "buffer". Move the "name" code to where it is needed.
10055
158775de
AC
100562003-04-23 Andrew Cagney <cagney@redhat.com>
10057
10058 * infcall.c (call_function_by_hand): Move variables "start_sp",
10059 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
10060 code to ON_STACK switch branch.
8ffd9b1b 10061
ebc7896c
AC
100622003-04-23 Andrew Cagney <cagney@redhat.com>
10063
10064 * infcall.c (call_function_by_hand): Make declaration of "i",
10065 "sal", "bpt" and "old_sp" more local to their use. Delete #if
10066 lint.
10067
d727590f
AC
100682003-04-23 Andrew Cagney <cagney@redhat.com>
10069
10070 * infcall.c (call_function_by_hand): Delete variable
10071 "n_method_args". Localize "param_type"'s declaration to the loop
10072 that it is used. Reinstate code assigning to said variable -
10073 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
10074 Rationalize code using "param_type".
10075
d585e13a
AC
100762003-04-22 Andrew Cagney <cagney@redhat.com>
10077
10078 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
10079 compute the breakpoint address. Only call FIX_CALL_DUMMY when
10080 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
10081 to DEPRECATED_PUSH_RETURN_ADDRESS.
10082
051caad9
KB
100832003-04-22 Kevin Buettner <kevinb@redhat.com>
10084
10085 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
10086 on the DWARF2 register number prior to fetching a register.
10087
77296879
JB
100882003-04-22 J. Brobecker <brobecker@gnat.com>
10089
10090 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
10091 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 10092 this macro was always set to 0.
77296879
JB
10093 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
10094 considering the fact that this macro was always set to 0.
10095 * hppa-tdep.h (hppa_store_return_value): Likewise.
10096 (hppa_extract_return_value): Likewise.
10097
4252f1df
JB
100982003-04-22 J. Brobecker <brobecker@gnat.com>
10099
10100 * config/pa/tm-hppa.h: Remove obsolete code, was used by
10101 the hppa-pro target only.
10102
14604c6b
JB
101032003-04-21 J. Brobecker <brobecker@gnat.com>
10104
10105 Ongoing multi-arch conversion effort for HP/UX:
10106 * config/pa/tm-hppa.h: Move all macro that are no longer
10107 defined now that GDB_MULTI_ARCH is now set to 1 from here...
10108 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
10109
77eb01d1
JB
101102003-04-21 J. Brobecker <brobecker@gnat.com>
10111
10112 * config/pa/tm-hppa.h: Obsolete a section that was only used
10113 for hppa-pro.
10114
61995b3b
JB
101152003-04-21 J. Brobecker <brobecker@gnat.com>
10116
10117 Ongoing multi-arch conversion for HP/UX.
10118 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
10119 if already defined (allows hppa64 to stay non-multiarched for now).
10120 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
10121
4aa79dcc
AC
101222003-04-21 Andrew Cagney <cagney@redhat.com>
10123
10124 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
10125
0f751ff2
AC
101262003-04-21 Andrew Cagney <cagney@redhat.com>
10127
10128 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
10129 "i386_num_mmx_regs".
10130
04714b91
AC
101312003-04-21 Andrew Cagney <cagney@redhat.com>
10132
10133 * infcall.c: New file.
10134 * infcall.h: New file.
10135 * valarith.c: Include "infcall.h".
10136 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
10137 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
10138 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
10139 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
10140 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
10141 (SFILES): Add "infcall.c"
10142 (COMMON_OBS): Add "infcall.o".
10143 (infcall.o): Specify dependencies.
10144 * value.h (call_function_by_hand): Delete declaration.
10145 * inferior.h (run_stack_dummy): Delete declaration.
10146 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
10147 (run_stack_dummy): Move to "infcall.c", merged into
10148 call_function_by_hand.
10149 * valops.c (call_function_by_hand): Moved to "infcall.c".
10150 (find_function_addr, value_arg_coerce): Ditto.
10151 (unwindonsignal_p, coerce_float_to_double): Ditto.
10152 (_initialize_valops): Move "set/show coerce-float-to-double", and
10153 "set/show unwindonsignal" commands to "infcall.c".
10154 * v850-tdep.c, target.h: Update comments.
10155 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
10156 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
10157 (sh64_init_extra_frame_info): Update comments.
10158 * mn10300-tdep.c: Update comments.
10159 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
10160 * config/sparc/tm-sparc.h: Update comments.
10161 * breakpoint.h: Update comments.
10162 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
10163 * arm-tdep.c: Update comment.
10164
f9d3c2a8
MK
101652003-04-19 Mark Kettenis <kettenis@gnu.org>
10166
c40e1eab
MK
10167 * i386-tdep.c (i386_num_register_names): New variable.
10168 (i386_num_mmx_regs): Renamed from mmx_num_regs.
10169 (MM0_REGNUM): Remove redundant parentheses in define.
10170 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
10171 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
10172 i386_mxcsr_regnum_p): Remove redundant parentheses.
10173 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 10174
94ea66b3
MK
10175 * i386-tdep.c (i386_extract_return_value,
10176 i386_store_return_value): Correct check for availability of
10177 floating-point registers.
10178
54299a1d
MK
10179 * i386-tdep.c (i386_frame_num_args): Remove function.
10180 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
10181
c86c27af
MK
10182 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
10183 mmx_regnum_to_fp_regnum. Adjust all callers.
10184
f9d3c2a8
MK
10185 * i386-tdep.c (i386_get_longjmp_target): Use
10186 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
10187 and TARGET_CHAR_BIT. Use extract_typed_address instead of
10188 extract_address.
10189
94ba74a9
MK
101902003-04-19 Mark Kettenis <kettenis@gnu.org>
10191
10192 * core-regset.c: Update comments to reflect reality. Re-order
10193 includes.
10194 (fetch_core_registers): Use switch instead of if. Remove
10195 redundant prototype.
10196
4074e13c
JB
101972003-04-18 Jim Blandy <jimb@redhat.com>
10198
10199 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 10200 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 10201
e3ab4aba
RH
102022003-04-17 Richard Henderson <rth@redhat.com>
10203
10204 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
10205
627bf7c1
EZ
102062003-04-17 Michael Snyder <msnyder@redhat.com>
10207 Karen Bennet <bennet@redhat.com>
10208
10209 Committed by Elena Zannoni <ezannoni@redhat.com>
10210 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 10211
514621a9
EZ
102122003-04-17 Elena Zannoni <ezannoni@redhat.com>
10213
10214 * values.c (value_being_returned): Don't fetch the return
fbe586ae 10215 value if the return type is void.
514621a9 10216
b4acd559
JJ
102172003-04-17 Jeff Johnston <jjohnstn@redhat.com>
10218
10219 * thread-db.c: Reindented.
8ffd9b1b 10220
530b167e 102212003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
10222
10223 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
10224 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
10225 as types.
10226
0a48e7e8
MS
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
8ffd9b1b 10250
ab9fe00e
KB
102512003-04-16 Kevin Buettner <kevinb@redhat.com>
10252
610a3745 10253 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
10254 the size of ``long double'' to 16, instead of 8.
10255
e64a344c
MK
102562003-04-16 Mark Kettenis <kettenis@gnu.org>
10257
10258 * i386-linux-nat.c: Add some whitespace to make things more
10259 readable.
10260 (fetch_register, store_register, fetch_inferior_registers,
10261 store_inferior_registers): Get rid of assignment in if-statement.
10262 (store_register): Fix typo in error message.
10263
25d41031
AC
102642003-04-16 Andrew Cagney <cagney@redhat.com>
10265
10266 * utils.c (xmmalloc): Always allocate something, matches
10267 libiberty/xmalloc's semantics.
10268 (xmrealloc, xmcalloc): Ditto.
10269
c50901fd
AC
102702003-04-16 Andrew Cagney <cagney@redhat.com>
10271
10272 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
10273 update comments.
10274 (get_frame_type): Initialize unwind and type when needed.
10275 (get_frame_id, frame_register_unwind): Ditto.
10276
f81824a9
AC
102772003-04-16 Andrew Cagney <cagney@redhat.com>
10278
10279 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
10280 obsolete.
10281 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
10282 * sparcl-stub.c: Obsolete file.
10283 * config/sparc/tm-sparclet.h: Obsolete file.
10284 * sparclet-stub.c: Obsolete file.
10285 * sparclet-rom.c: Obsolete file.
10286 * sparcl-tdep.c: Obsolete file.
10287 * config/sparc/tm-sparclite.h: Obsolete file.
10288 * config/sparc/sparclite.mt: Obsolete file.
10289 * config/sparc/sparclet.mt: Obsolete file.
10290 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
10291 sparc86x-*-* obsolete.
10292
9219021c
DC
102932003-04-15 David Carlton <carlton@math.stanford.edu>
10294
10295 * Makefile.in (SFILES): Add cp-namespace.c.
10296 (COMMON_OBS): Add cp-namespace.o.
10297 (block.o): Depend on gdb_obstack_h and cp_support_h.
10298 (buildsym.o): Depend on cp_support_h.
10299 (cp-namespace.o): New.
10300 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
10301 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
10302 (dwarf2read.o): Depend on cp_support_h.
10303 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
10304 * dwarf2read.c (process_die): Set processing_has_namespace_info,
10305 processing_current_namespace.
10306 (read_namespace): Update processing_current_namespace; check for
10307 anonymous namespaces.
10308 (dwarf2_name): New function.
10309 (dwarf2_extension): Ditto.
10310 * cp-support.h: Update copyright, contributors.
10311 Add inclusion guards.
10312 Add opaque declaration for structs obstack, block, symbol.
10313 (struct using_direct): New struct.
10314 Add declarations for cp_find_first_component,
10315 cp_entire_prefix_len, processing_has_namespace_info,
10316 processing_current_namespace, cp_is_anonymous,
10317 cp_add_using_directive, cp_initialize_namespace,
10318 cp_finalize_namespace, cp_set_block_scope,
10319 cp_scan_for_anonymous_namespaces.
10320 * cp-namespace.c: New file.
10321 * cp-support.c: Update copyright.
10322 Include ctype.h, gdb_assert.h, gdbcmd.h.
10323 New variable maint_cplus_cmd_list.
10324 (cp_find_first_component): New function.
10325 (cp_entire_prefix_len, maint_cplus_command)
10326 (first_component_command, _initialize_cp_support): Ditto.
10327 * buildsym.c: Include cp-support.h.
10328 New variable using_list.
10329 (add_symbol_to_list): Check for anonymous namespaces.
10330 (finish_block): Set block's scope.
10331 (start_symtab): Initialize C++ namespace support.
10332 (end_symtab): Finalize C++ namespace support.
10333 * block.h: Add opaque declarations for structs
10334 block_namespace_info, using_direct, and obstack.
10335 Add declarations for block_set_scope and block_set_using.
10336 (struct block): Add 'language_specific' member.
10337 (BLOCK_NAMESPACE): New macro.
10338 * block.c: Include gdb_obstack.h and cp-support.h.
10339 (struct block_namespace_info): New struct.
10340 (block_set_scope): New function.
10341 (block_set_using, block_initialize_namespace): Ditto.
10342
d5a921c9
KB
103432003-04-14 Kevin Buettner <kevinb@redhat.com>
10344
10345 * solib-svr4.c (svr4_have_link_map_offsets): New function.
10346 (locate_base): Return early if there aren't any link map offsets.
10347 (svr4_solib_create_inferior_hook): Warn if shared library support
10348 is unavailable.
10349
d2a52b27
DC
103502003-04-14 David Carlton <carlton@math.stanford.edu>
10351
10352 * symtab.c (symbol_set_names): Add prefix when storing Java names
10353 in hash table. Fix for PR java/1039.
10354
980cae7a
DC
103552003-04-14 David Carlton <carlton@math.stanford.edu>
10356
10357 * symtab.c (symbol_set_names): Rename 'name' arg to
10358 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
10359 * symtab.h: Change 'name' argument in declaration of
10360 symbol_set_names to 'linkage_name'.
10361 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
10362
e227b13c
AC
103632003-04-14 Andrew Cagney <cagney@redhat.com>
10364
10365 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
10366 return the fully sign-extended register value.
10367 (get_frame_pointer): Ditto.
10368 (mips_pop_frame): Initialize "proc_desc" after checking for a
10369 dummy frame.
10370
36712a20
AC
103712003-04-14 Andrew Cagney <cagney@redhat.com>
10372
10373 * mips-tdep.c (mips_push_dummy_frame): Delete function.
10374 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
10375 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
10376 (mips_push_register): Delete function.
10377 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
10378 PUSH_FP_REGNUM.
10379
44ea7b70
JB
103802003-04-14 Jim Blandy <jimb@redhat.com>
10381
10382 * symmisc.c: #include "gdb_regex.h".
10383 (maintenance_list_symtabs, maintenance_list_psymtabs): New
10384 functions.
10385 * maint.c (maintenance_list_command): New function.
10386 (_initialize_maint_cmds): Register the above as commands.
10387 * symtab.h (maintenance_list_symtabs,
10388 maintenance_list_psymtabs): New declarations.
10389 * cli/cli-cmds.c (maintenancelistlist): New variable.
10390 (init_cmd_lists): Initialize it.
10391 * cli/cli-cmds.h (maintenancelistlist): New declaration.
10392 * gdbcmd.h (maintenancelistlist): New declaration.
10393 * Makefile.in (symmisc.o): Update dependencies.
10394
2d0c7962
EZ
103952003-04-14 Elena Zannoni <ezannoni@redhat.com>
10396
10397 * s390-nat.c: Include asm/types.h for addr_t.
10398
1947a811
CV
103992003-04-14 Corinna Vinschen <vinschen@redhat.com>
10400
10401 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
10402 actually incoming type.
10403
adb616d7
AC
104042003-04-13 Andrew Cagney <cagney@redhat.com>
10405
10406 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
10407 get_next_frame and get_frame_saved_regs.
10408
9b5e151c
AC
104092003-04-13 Andrew Cagney <cagney@redhat.com>
10410
10411 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
10412 of gdbarch_num_regs.
10413
ef6e7e13
AC
104142003-04-13 Andrew Cagney <cagney@redhat.com>
10415
10416 * frame.h: Mention what replaced what in "struct frame_info".
10417 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
10418 deprecated_update_frame_base_hack and
10419 deprecated_update_frame_pc_hack.
10420 * hppa-tdep.c: Ditto.
10421
61fbb938
DJ
104222003-04-13 Daniel Jacobowitz <drow@mvista.com>
10423
10424 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
10425 to read_reg and update its comment. Remove regnum member.
10426 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
10427 Don't call read_reg when setting in_reg. Call read_reg to get
10428 the frame base if it's in a register. Return the register number
10429 on the stack instead of in the context. Remove extra arguments
10430 to read_reg.
10431 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
10432 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
10433 the register number on the expression stack.
10434 (needs_frame_read_reg): Remove extra arguments.
10435
0d53c4c4
DJ
104362003-04-13 Daniel Jacobowitz <drow@mvista.com>
10437
10438 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
10439 made non-static.
10440 (execute_stack_op): All callers updated.
10441 * dwarf2expr.h: Add prototype for dwarf2_read_address.
10442 * dwarf2loc.c (find_location_expression): New function.
10443 (dwarf_expr_frame_base): Call it.
10444 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
10445 (dwarf2_tracepoint_var_ref): New function, broken out from
10446 locexpr_tracepoint_var_ref.
10447 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
10448 Make static.
10449 (loclist_read_variable, loclist_read_needs_frame): New functions.
10450 (loclist_describe_location, loclist_tracepoint_var_ref): New
10451 functions.
10452 (dwarf2_loclist_funcs): New struct location_funcs.
10453 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
10454 (struct dwarf2_locexpr_baton): Add comments.
10455 (dwarf2_loclist_funcs): New extern.
10456 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
10457 base_address and base_known.
10458 (dwarf_loc_buffer): New variable.
10459 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
10460 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
10461 (dwarf2_has_info): Initialize dwarf_loc_offset.
10462 (dwarf2_build_psymtabs): Read in .debug_loc.
10463 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
10464 DWARF_LOC_SIZE.
10465 (psymtab_to_symtab_1): Likewise. Move base address calculation
10466 here, from...
10467 (dwarf2_get_pc_bounds): ... here. Use the base address from
10468 cu_header.
10469 (dwarf2_symbol_mark_computed): Handle location lists.
10470
6aca59a3
DJ
104712003-04-13 Daniel Jacobowitz <drow@mvista.com>
10472
10473 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10474 if the linkage name demangled successfully.
10475
aca1fcd0
MK
104762003-04-13 Mark Kettenis <kettenis@gnu.org>
10477
97095916
MK
10478 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10479 disassmbly_flavour): Removed.
10480
aca1fcd0
MK
10481 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10482
562a961f
MK
104832003-04-13 Mark Kettenis <kettenis@gnu.org>
10484
10485 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10486
bd013d54
AC
104872003-04-12 Andrew Cagney <cagney@redhat.com>
10488
10489 * frame.h (struct frame_info): Move definition from here ...
10490 * frame.c (struct frame_info): ... to here.
10491
167ef8b1
AC
104922003-04-12 Andrew Cagney <cagney@redhat.com>
10493
10494 * gdbthread.h (save_infrun_state): Delete parameter
10495 "prev_func_start".
10496 (struct thread_info): Delete field "prev_func_start".
10497 (load_infrun_state): Ditto.
10498 * thread.c (load_infrun_state, save_infrun_state): Update.
10499 * infrun.c (prev_func_start): Delete variable.
10500 (context_switch, init_wait_for_inferior): Update.
10501 (stop_stepping, keep_going): Update.
10502
da3331ec
AC
105032003-04-12 Andrew Cagney <cagney@redhat.com>
10504
10505 * gdbarch.sh: Add missing opaque declarations.
10506 * gdbarch.h: Regnerate.
10507 * symtab.h: Add missing opaque declarations.
10508 * value.h, target.h, symfile.h, stabsread.h: Ditto.
10509 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10510 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10511 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10512 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10513 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10514 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10515 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10516 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10517 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10518 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10519 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10520 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10521
18adea3f
AC
105222003-04-11 Andrew Cagney <cagney@redhat.com>
10523
10524 * frame.c (get_frame_id): Return this frame's "id".
10525 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10526 function start.
10527 (legacy_saved_regs_this_id): Replace function body with
10528 internal-error.
10529 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10530 FRAME_OBSTACK_ZALLOC.
10531 (create_new_frame): Mark the frame ID as valid.
10532
2252e863
AO
105332003-04-11 Alexandre Oliva <aoliva@redhat.com>
10534
10535 * Makefile.in (libbfd_h): Added missing setting.
10536 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10537 according to the selected ABI.
10538
a8245ab8
JJ
105392003-04-11 Jeff Johnston <jjohnstn@redhat.com>
10540
10541 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10542
6913c89a
AC
105432003-04-11 Andrew Cagney <cagney@redhat.com>
10544
10545 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10546 SAVED_PC_AFTER_CALL.
10547 * gdbarch.h, gdbarch.c: Regenerate.
10548 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10549 * x86-64-tdep.c (x86_64_init_abi): Update.
10550 * vax-tdep.c (vax_gdbarch_init): Update.
10551 * v850-tdep.c (v850_gdbarch_init): Update.
10552 * sparc-tdep.c (sparc_gdbarch_init): Update.
10553 * sh-tdep.c (sh_gdbarch_init): Update.
10554 * s390-tdep.c (s390_gdbarch_init): Update.
10555 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10556 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10557 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10558 * mips-tdep.c (mips_gdbarch_init): Update.
10559 * mcore-tdep.c (mcore_gdbarch_init): Update.
10560 * m68k-tdep.c (m68k_gdbarch_init): Update.
10561 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10562 * ia64-tdep.c (ia64_gdbarch_init): Update.
10563 (ia64_saved_pc_after_call): Update declaration.
10564 * i386ly-tdep.c (i386lynx_init_abi): Update.
10565 * i386-tdep.c (i386_gdbarch_init): Update.
10566 * hppa-tdep.c (hppa_gdbarch_init): Update.
10567 * h8300-tdep.c (h8300_gdbarch_init): Update.
10568 * frv-tdep.c (frv_gdbarch_init): Update.
10569 * cris-tdep.c (cris_gdbarch_init): Update.
10570 * avr-tdep.c (avr_gdbarch_init): Update.
10571 * arm-tdep.c (arm_gdbarch_init): Update.
10572 * alpha-tdep.c (alpha_gdbarch_init): Update.
10573 * ns32knbsd-nat.c (frame_num_args): Update.
10574 * ns32k-tdep.c (umax_frame_num_args): Update.
10575 * mips-tdep.c (mips_init_frame_pc_first): Update.
10576 * infrun.c (step_over_function): Update.
10577 * i386-linux-tdep.c (skip_hurd_resolver): Update.
10578 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10579 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10580 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10581 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10582 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10583 * arm-linux-tdep.c (skip_hurd_resolver): Update.
10584 * arch-utils.c (init_frame_pc_default): Update.
10585 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10586 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10587 declaration.
8ffd9b1b 10588
38edeab8
AC
105892003-04-11 Andrew Cagney <cagney@redhat.com>
10590
10591 * i387-tdep.c: Update copyright.
10592 (i387_to_double): Delete function.
10593 (double_to_i387): Delete function.
10594
81f8a206
AC
105952003-04-10 Andrew Cagney <cagney@redhat.com>
10596
10597 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10598 frame's function's address. Simplify.
10599 (d10v_frame_unwind_cache): Check that the frame's function is
10600 non-zero.
10601
6e691f7a
JB
106022003-04-10 Jim Blandy <jimb@redhat.com>
10603
10604 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10605 call to set_gdbarch_deprecated_push_arguments.
10606
7f78e237
AC
106072003-04-10 Andrew Cagney <cagney@redhat.com>
10608
10609 * frame.c (fprint_frame_id): New function.
10610 (fprint_frame_type, fprint_frame): New function.
10611 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10612 (create_sentinel_frame, get_frame_id): Ditto.
10613 (frame_id_p, frame_id_eq): Ditto.
10614 (frame_id_inner, create_new_frame): Ditto.
10615 (legacy_get_prev_frame, get_prev_frame): Ditto.
10616 (deprecated_update_frame_pc_hack): Ditto.
10617 (frame_register_unwind): Ditto.
10618 (deprecated_update_frame_base_hack): Ditto.
10619
f870b49b
CV
106202003-04-10 Corinna Vinschen <vinschen@redhat.com>
10621
10622 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10623 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10624 frame_chain function.
10625 * Makefile.in: Add dependencies due to above change.
10626
7c86889b
CV
106272003-04-10 Corinna Vinschen <vinschen@redhat.com>
10628
10629 * blockframe.c (legacy_frame_chain_valid): Move call to
10630 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10631 inside_entry_file.
10632
d0a55772
AC
106332003-04-09 Andrew Cagney <cagney@redhat.com>
10634
10635 * frame.h (struct frame_id): Replace "pc" and "base" with
10636 "stack_addr" and "code_addr". Update comments.
10637 (frame_id_build): Update parameter names and comment.
10638 (struct frame_info): Replace "id_p" and "id" with "this_id".
10639 * dummy-frame.c (dummy_frame_this_id): Update.
10640 * breakpoint.c (print_one_breakpoint): Update.
10641 * frame.c (get_frame_id): Update.
10642 (get_frame_base, frame_id_build): Update.
10643 (create_sentinel_frame, legacy_get_prev_frame): Update.
10644 (deprecated_update_frame_base_hack): Update.
10645 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10646 (frame_id_inner): Ditto.
10647
ac16bf07
AC
106482003-04-09 Andrew Cagney <cagney@redhat.com>
10649
10650 * defs.h (gdb_print_host_address): Make "addr" parameter a
10651 pointer constant.
10652 * utils.c (gdb_print_host_address): Update.
10653
366cfc9e
KB
106542003-04-09 Kevin Buettner <kevinb@redhat.com>
10655
10656 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10657 register number for R0 is 0.
10658
cd983b5c
JB
106592003-04-09 J. Brobecker <brobecker@gnat.com>
10660
10661 * frame.h (struct gdbarch): Add opaque structure definition
10662 to avoid a compilation warning on LynxOS 4.0.
10663
d1340264
AC
106642003-04-09 Andrew Cagney <cagney@redhat.com>
10665
10666 * frame.h (struct frame_info): Delete field "pc". Replace
10667 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10668 structure.
10669 * frame.c (frame_pc_unwind): Update.
10670 (create_sentinel_frame): Do not set "pc".
10671 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10672 (get_frame_pc): Call frame_pc_unwind.
10673 (deprecated_update_frame_pc_hack): Update.
10674 (create_new_frame): Use "pc" not "->pc".
10675
90a6fffb
AC
106762003-04-09 Andrew Cagney <cagney@redhat.com>
10677
10678 * frame.c (get_frame_id): Eliminate code updating "frame".
10679 (legacy_get_prev_frame): Ditto.
10680 (get_frame_base): Return id.base directly.
10681 (deprecated_update_frame_base_hack): Update "id.base".
10682 * frame.h (struct frame_info): Delete field "frame".
10683
2fbce691
AC
106842003-04-09 Andrew Cagney <cagney@redhat.com>
10685
10686 * NEWS: Mention that the "Sequent family" is obsolete.
10687 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10688 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10689 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10690 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10691 * config/i386/tm-ptx4.h: Obsolete file.
10692 * config/i386/tm-ptx.h: Obsolete file.
10693 * symm-tdep.c: Obsolete file.
10694 * config/i386/symmetry.mt: Obsolete file.
10695 * config/i386/tm-symmetry.h: Obsolete file.
10696 * symm-nat.c: Obsolete file.
10697 * config/i386/nm-symmetry.h: Obsolete file.
10698 * config/i386/xm-symmetry.h: Obsolete file.
10699 * config/i386/symmetry.mh: Obsolete file.
10700 * config/i386/nm-ptx4.h: Obsolete file.
10701 * config/i386/ptx4.mh: Obsolete file.
10702 * config/i386/ptx.mt: Obsolete file.
10703 * config/i386/ptx.mh: Obsolete file.
10704 * config/i386/xm-ptx4.h: Obsolete file.
10705 * config/i386/xm-ptx.h: Obsolete file.
10706
78c43945
AC
107072003-04-09 Andrew Cagney <cagney@redhat.com>
10708
10709 Obsolete mips*-*-mach3*.
10710 * NEWS: Mention that mips*-*-mach3* is obsolete.
10711 * m3-nat.c: Obsolete file.
10712 * config/nm-m3.h: Obsolete file.
10713 * config/mips/tm-mipsm3.h: Obsolete file.
10714 * config/mips/mipsm3.mt: Obsolete file.
10715 * config/mips/mipsm3.mh: Obsolete file.
10716 * config/mips/xm-mipsm3.h: Obsolete file.
10717 * mipsm3-nat.c: Obsolete file.
10718 * configure.host: Obsolete mips-dec-mach3*.
10719 * configure.tgt: Obsolete mips*-*-mach3*.
10720
f1908289
AC
107212003-04-09 Andrew Cagney <cagney@redhat.com>
10722
10723 * doublest.h: Update copyright.
10724 (deprecated_store_floating, deprecated_extract_floating): Rename
10725 store_floating and extract_floating. Update comments.
10726 * doublest.c: Update copyright.
10727 (extract_floating_by_length): Replace extract_floating.
10728 (store_floating_by_length): Replace store_floating.
10729 (deprecated_extract_floating): New function.
10730 (deprecated_store_floating): New function.
10731 (extract_typed_floating): Call extract_floating_by_length.
10732 (store_typed_floating): Call store_floating_by_length.
10733 * x86-64-tdep.c (x86_64_store_return_value): Update.
10734 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10735 (sh64_extract_return_value): Update.
10736 (sh_sh4_register_convert_to_virtual): Update.
10737 (sh_sh64_register_convert_to_virtual): Update.
10738 (sh_sh4_register_convert_to_raw): Update.
10739 (sh_sh64_register_convert_to_raw): Update.
10740 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10741 (rs6000_register_convert_to_raw): Update.
10742 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10743 (ia64_register_convert_to_raw): Update.
10744 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10745 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10746 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10747 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10748 (alpha_register_convert_to_raw): Update.
10749
4443bd83
AC
107502003-04-08 Andrew Cagney <cagney@redhat.com>
10751
10752 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10753 * gdbarch.h, gdbarch.c: Re-generate.
10754 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10755 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10756 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10757 conditionally, use frame_pc_unwind as an alternative. Add
10758 comments.
10759 * arch-utils.c (init_frame_pc_default): Only call
10760 SAVED_PC_AFTER_CALL when available.
10761
c0236d92
EZ
107622003-04-08 Elena Zannoni <ezannoni@redhat.com>
10763
fbe586ae 10764 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10765 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10766 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10767 (start_remote): Ditto.
10768 (handle_inferior_event): Ditto.
10769 (save_inferior_status): Ditto.
10770 (restore_inferior_status): Ditto.
10771 * infcmd.c (attach_command): Ditto.
10772 * fork-child.c (startup_inferior): Ditto.
fbe586ae 10773 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10774 * alpha-tdep.c (heuristic_proc_start): Ditto.
10775 * mips-tdep.c (heuristic_proc_start): Ditto.
10776 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10777 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10778 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10779 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10780 * remote-vx.c (vx_create_inferior): Ditto.
10781
107822003-04-08 Elena Zannoni <ezannoni@redhat.com>
10783
10784 * infrun.c (stop_soon_quietly): Make it an enum, to better
10785 override the default behavior of handle_inferior_event.
10786 (clear_proceed_status): Update uses of stop_soon_quietly to
10787 reflect that it is now an enum.
10788 (start_remote): Ditto.
10789 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10790 is set to handle the new GNU/Linux kernel behavior for
10791 attach/sigstop. Update uses of stop_soon_quietly.
10792 * inferior.h (enum stop_kind): New enum.
10793 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10794 Reset normal handle_inferior_event behavior, afterwards.
10795 * fork-child.c (startup_inferior): Update.
10796 * alpha-tdep.c (heuristic_proc_start): Update.
10797 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10798 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10799 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10800 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10801 * remote-vx.c (vx_create_inferior): Update.
10802 * mips-tdep.c (heuristic_proc_start): Update.
10803
1211bce3
EZ
108042003-04-07 Elena Zannoni <ezannoni@redhat.com>
10805
10806 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 10807 be freed more than once, causing wild memory corruptions.
1211bce3 10808 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 10809 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 10810 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 10811 with the "core" target.
1211bce3 10812
f0ef6b29
KB
108132003-04-07 Kevin Buettner <kevinb@redhat.com>
10814
10815 * mips-tdep.c (mips_print_fp_register): New function, created from
10816 do_fp_register_row(). Registers are now (also) printed as hex.
10817 Only one register is printed per row.
10818 (mips_print_register, do_fp_register_row): Print floating point
10819 registers with mips_print_fp_register().
10820
8cf71652
AC
108212003-04-06 Andrew Cagney <cagney@redhat.com>
10822
5e488a7b
AC
10823 * valprint.h (inspect_it): Add extern declaration.
10824 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10825 (selectors_info, classes_info): Ditto.
10826 (find_objc_msgcall): Fix indentation.
10827 (objc_printstr): Delete extern declarations.
10828
8cf71652
AC
10829 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10830
e6ba3bc9
AC
108312003-04-06 Andrew Cagney <cagney@redhat.com>
10832
10833 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10834 Update comment.
10835 * frame.c (legacy_saved_regs_this_id): Update.
10836 (legacy_get_prev_frame): Update.
10837 * xstormy16-tdep.c: Update comment.
10838 * sparc-tdep.c (sparc_frame_chain): Update comment.
10839 * blockframe.c (legacy_frame_chain_valid): Update.
10840
55e1d7e7
AC
108412003-04-06 Andrew Cagney <cagney@redhat.com>
10842
996179ee
AC
10843 * valprint.c (val_print_type_code_int): Delete #ifdef
10844 PRINT_TYPELESS_INTEGER code.
10845
55e1d7e7
AC
10846 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10847 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10848 multi-arch definition.
10849 * gdbarch.h: Re-generate.
10850
43bd9a9e
AC
108512003-04-05 Andrew Cagney <cagney@redhat.com>
10852
10853 Eliminate FRAME_FIND_SAVED_REGS.
10854 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10855 Change FSR parameter to a pointer.
10856 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10857 Assume FSR parameter is a pointer.
10858 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10859 Make fsr a pointer.
10860 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10861 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10862 saved_regs a pointer.
10863 (hppa_frame_saved_pc): Ditto.
10864 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10865 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10866 pointer.
10867 (restore_pc_queue): Make fsr a pointer.
10868 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10869 (hppa_frame_chain): Make saved_regs a pointer, call
10870 hppa_frame_init_saved_regs.
10871 * sparc-tdep.c: Include "gdb_assert.h".
10872 (sparc_frame_find_saved_regs): Replace internal_error with
10873 gdb_assert.
10874 * remote-vxsparc.c (vx_read_register): Delete reference to
10875 FRAME_FIND_SAVED_REGS.
10876 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10877 * gdbarch.h: Regenerate.
10878 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10879 (deprecated_get_frame_saved_regs): Delete declaration.
10880 (struct frame_saved_regs): Delete definition.
10881 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10882 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10883 (hppa_frame_find_saved_regs): Delete declaration.
10884 (FRAME_FIND_SAVED_REGS): Delete macro.
10885 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10886 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10887 FRAME_FIND_SAVED_REGS in comment.
10888
be41e9f4
AC
108892003-04-05 Andrew Cagney <cagney@redhat.com>
10890
10891 * frame.c (frame_func_unwind, get_frame_func): New functions.
10892 * frame.h (get_frame_func, frame_func_unwind): Declare.
10893 (struct frame_info): Add field "prev_func" for caching the
10894 previous frame's function address.
10895 * arm-tdep.c (arm_frameless_function_invocation): Combine
10896 get_pc_function_start and get_frame_pc into get_frame_func.
10897 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10898 (sh64_nofp_frame_init_saved_regs): Ditto.
10899 * s390-tdep.c (s390_function_start): Ditto.
10900 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10901 (rs6000_frameless_function_invocation): Ditto.
10902 (rs6000_frame_saved_pc): Ditto.
10903 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10904 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10905 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10906 (i386_frame_init_saved_regs): Ditto.
10907 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10908 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10909 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10910 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10911 * blockframe.c (frameless_look_for_prologue): Ditto.
10912
a01dd7cc
AC
109132003-04-05 Andrew Cagney <cagney@redhat.com>
10914
10915 * frame.c (legacy_get_prev_frame): Link prev to next at the
10916 function start. Update comments.
10917
5e5592e6
AC
109182003-04-05 Andrew Cagney <cagney@redhat.com>
10919
10920 * frame.c (get_frame_id): Update comment.
10921 (legacy_get_prev_frame): Update comment.
10922 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10923 * gdbarch.h: Regenerate.
10924 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10925 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10926
6fba5002
AC
109272003-04-05 Andrew Cagney <cagney@redhat.com>
10928
10929 * stack.c (print_frame_info): Use get_frame_pc.
10930
7df05f2b
AC
109312003-04-04 Andrew Cagney <cagney@redhat.com>
10932
10933 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10934 the frame's type from the unwinder.
10935 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10936 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10937 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10938 (get_frame_base_address): Use get_frame_type.
10939 (get_frame_locals_address, get_frame_args_address): Ditto.
10940 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10941 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10942 (struct frame_info): Add comment explaining why the frame contains
10943 a "type" field.
10944 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10945 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10946 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10947 NORMAL_FRAME.
10948 * frame-unwind.h: Include "frame.h".
10949 (struct frame_unwind): Add "type" field.
10950 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 10951
11889732
AC
109522003-04-04 Andrew Cagney <cagney@redhat.com>
10953
10954 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10955 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10956 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10957 get_frame_base.
10958 (d10v_unwind_dummy_id): Use frame_id_build.
10959 * frame.c (find_frame_sal): Use get_frame_pc.
10960 (create_new_frame): Use deprecated_update_frame_pc_hack and
10961 deprecated_update_frame_base_hack.
10962 (create_sentinel_frame): Add comment about ->pc going away.
10963 (get_prev_frame): Add comment about ->pc going away.
10964 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10965 frame_id_build, deprecated_update_frame_pc_hack and
10966 deprecated_update_frame_base_hack.
10967 (select_frame): Use get_frame_pc.
10968 (legacy_saved_regs_this_id): Use frame_id_build.
10969
50c46a0d
EZ
109702003-04-04 Elena Zannoni <ezannoni@redhat.com>
10971
fbe586ae
RH
10972 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10973 signed integer case.
10974 (classify_argument): Handle enumerations and references.
50c46a0d 10975
50bbdbd9
AC
109762003-04-04 Andrew Cagney <cagney@redhat.com>
10977
10978 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10979 ID to NULL.
10980
36018d2e
AF
109812003-04-01 Adam Fedor <fedor@gnu.org>
10982
10983 * gdb/objc-lang.c (selectors_info): Replace calls to
10984 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10985 SYMBOL_NATURAL_NAME.
10986 (classes_info, find_methods): Likewise.
10987
35cec841
KB
109882003-04-03 Kevin Buettner <kevinb@redhat.com>
10989
10990 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10991 ``mach'' to the value determined by bfd_default_set_arch_mach().
10992
43136899
BR
109932003-04-02 Bob Rossi <bob_rossi@cox.net>
10994
10995 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10996 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10997 (mi-cmd-file.o): Update dependencies.
10998
040b99fd
KB
109992003-04-01 Kevin Buettner <kevinb@redhat.com>
11000
11001 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
11002 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
11003
9a3d7dfd
AF
110042003-04-01 Adam Fedor <fedor@gnu.org>
11005
11006 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
11007 * language.h (struct language_defn): Add la_demangle.
11008 (language_demangle): Declare.
11009 * language.c (language_demangle): New function.
11010 (unk_lang_demangle): Likewise.
11011 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 11012 Add ukn_lang_demangle.
9a3d7dfd 11013 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 11014 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
11015 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
11016 (cplus_language_defn): Add cplus_demangle for la_demangle element.
11017 * jv-lang.c (java_demangle): New function
11018 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
11019 * objc-lang.c (objc_demangle): Add options argument
11020 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
11021 * maint.c (maintenance_demangle): Replace switch with
11022 call to language_demangle.
11023 * utils.c (fprintf_symbol_filtered): Likewise.
11024
5e074003
AC
110252003-04-01 Andrew Cagney <cagney@redhat.com>
11026
11027 * printcmd.c (print_frame_nameless_args): Delete #ifdef
11028 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
11029 PRINT_TYPELESS_INTEGER.
11030 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
11031 PUSH_RETURN_ADDRESS.
11032
270cb5d6
AC
110332003-04-01 Andrew Cagney <cagney@redhat.com>
11034
11035 * Makefile.in (d10v-tdep.o): Update dependencies.
11036 * d10v-tdep.c: Include "frame-base.h".
11037 (d10v_frame_unwind): Make constant.
11038 (d10v_frame_base_address): New function.
11039 (d10v_frame_base): New variable.
11040 (d10v_gdbarch_init): Set frame_base default.
11041 (struct d10v_unwind_cache): Add the field "prev_sp". Update
11042 comment for base.
11043 (d10v_frame_unwind_cache): Set and use "prev_sp".
11044 (d10v_frame_this_id): Use the previous frame's inner most stack
11045 address and this frame's func address for the frame ID. Use
11046 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 11047
6bfb3e36
AC
110482003-04-01 Andrew Cagney <cagney@redhat.com>
11049
11050 * frame.h (get_frame_locals_address, get_frame_args_address):
11051 Refer to the base address, instead of the address of the first
11052 local or parameter.
8ffd9b1b 11053
da62e633
AC
110542003-04-01 Andrew Cagney <cagney@redhat.com>
11055
11056 Add frame debug info addresses:
11057 * frame-base.c: New file.
11058 * frame-base.h: New file.
11059 * frame.h (struct frame_base): Add opaque declaration.
11060 (get_frame_base): Update comment.
11061 (get_frame_base_address): Declare.
11062 (get_frame_locals_address): Declare.
11063 (get_frame_args_address): Declare.
11064 (struct frame_info): Add "base" and "base_cache". Update
11065 comments on the unwinder.
11066 * frame.c: Include "frame-base.h".
11067 (get_frame_locals_address): New function.
11068 (get_frame_base_address): New function.
11069 (get_frame_args_address): New function.
11070 * findvar.c (read_var_value): Use get_frame_locals_address and
11071 get_frame_args_address.
11072 * stack.c (frame_info): Use get_frame_locals_address and
11073 get_frame_args_address.
11074 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
11075 moved to "frame-base.c".
11076 * printcmd.c (print_frame_nameless_args): Ditto.
11077 * symtab.h (address_class): Update comments.
11078 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
11079 get_frame_base_address.
11080 * dwarf2expr.c (execute_stack_op): Ditto.
11081 * Makefile.in (frame_base_h): Define.
11082 (frame.o): Update dependencies.
11083 (frame-base.o): Add dependencies.
11084 (SFILES): Add frame-base.c.
11085 (COMMON_OBS): Add frame-base.o.
11086
3d30e9c2
AC
110872003-04-01 Andrew Cagney <cagney@redhat.com>
11088
11089 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
11090 CALL_DUMMY_LENGTH): Ditto.
11091 * gdbarch.c: Re-generate.
11092 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
11093 (CALL_DUMMY_LENGTH): Delete macro.
11094 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
11095 * arm-tdep.c (arm_gdbarch_init): Ditto.
11096 * avr-tdep.c (avr_gdbarch_init): Ditto.
11097 * cris-tdep.c (cris_gdbarch_init): Ditto.
11098 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11099 * frv-tdep.c (frv_gdbarch_init): Ditto.
11100 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11101 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11102 * i386-tdep.c (i386_gdbarch_init): Ditto.
11103 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11104 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11105 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11106 * mips-tdep.c (mips_gdbarch_init): Ditto.
11107 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11108 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11109 * s390-tdep.c (s390_gdbarch_init): Ditto.
11110 * sh-tdep.c (sh_gdbarch_init): Ditto.
11111 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11112 * v850-tdep.c (v850_gdbarch_init): Ditto.
11113 * vax-tdep.c (vax_gdbarch_init): Ditto.
11114 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11115
ce0c7262
CV
111162003-04-01 Corinna Vinschen <vinschen@redhat.com>
11117
11118 * frame.c (get_prev_frame): Disable call to inside_entry_file().
11119
73dd234f
AC
111202003-04-01 Andrew Cagney <cagney@redhat.com>
11121
11122 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
11123 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11124 * gdbarch.h, gdbarch.c: Re-generate.
11125 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11126 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11127 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11128 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11129 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11130 * infcmd.c (run_stack_dummy): Simplify assuming
11131 CALL_DUMMY_BREAKPOINT_OFFSET_P.
11132 * infrun.c (handle_inferior_event): Ditto.
11133 * alpha-tdep.c (alpha_gdbarch_init): Do not set
11134 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
11135 * arm-tdep.c (arm_gdbarch_init): Ditto.
11136 * avr-tdep.c (avr_gdbarch_init): Ditto.
11137 * cris-tdep.c (cris_gdbarch_init): Ditto.
11138 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11139 * frv-tdep.c (frv_gdbarch_init): Ditto.
11140 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11141 * i386-tdep.c (i386_gdbarch_init): Ditto.
11142 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11143 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11144 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11145 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11146 * mips-tdep.c (mips_gdbarch_init): Ditto.
11147 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11148 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11149 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11150 * s390-tdep.c (s390_gdbarch_init): Ditto.
11151 * sh-tdep.c (sh_gdbarch_init): Ditto.
11152 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11153 * v850-tdep.c (v850_gdbarch_init): Ditto.
11154 * vax-tdep.c (vax_gdbarch_init): Ditto.
11155 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11156
97606a13
DJ
111572003-04-01 Daniel Jacobowitz <drow@mvista.com>
11158
11159 * symfile.c (symfile_relocate_debug_section): Update call to
11160 bfd_simple_get_relocated_section_contents.
11161
e8ab51f7
AC
111622003-03-31 Andrew Cagney <cagney@redhat.com>
11163
11164 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
11165 * gdbarch.h, gdbarch.c: Regenerate.
11166 * inferior.h (FIX_CALL_DUMMY): Delete macro.
11167 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
11168 available.
11169 * frame.h (generic_fix_call_dummy): Delete declaration.
11170 * dummy-frame.h: Update comment.
11171 * dummy-frame.c (generic_fix_call_dummy): Delete function.
11172 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11173 fix_call_dummy.
11174 * sh-tdep.c (sh_gdbarch_init): Ditto.
11175 * s390-tdep.c (s390_gdbarch_init): Ditto.
11176 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11177 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11178 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11179 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11180 * i386-tdep.c (i386_gdbarch_init): Ditto.
11181 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11182 * frv-tdep.c (frv_gdbarch_init): Ditto.
11183 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11184 * cris-tdep.c (cris_gdbarch_init): Ditto.
11185 * avr-tdep.c (avr_gdbarch_init): Ditto.
11186 * arm-tdep.c (arm_gdbarch_init): Ditto.
11187
018d1b48
JB
111882003-03-31 J. Brobecker <brobecker@gnat.com>
11189
11190 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
11191 (INIT_FRAME_AP): Likewise.
11192 (EXTRA_FRAME_INFO): Likewise.
11193
e9a2674e
AC
111942003-03-31 Andrew Cagney <cagney@redhat.com>
11195
11196 * gdbarch.sh: Include "symfile.h".
11197 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
11198 * gdbarch.h, gdbarch.c: Re-generate.
11199 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
11200 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11201 call_dummy_address, the default is at entry_point_address.
11202 * v850-tdep.c (v850_gdbarch_init): Ditto.
11203 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11204 * sh-tdep.c (sh_gdbarch_init): Ditto.
11205 * s390-tdep.c (s390_gdbarch_init): Ditto.
11206 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11207 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11208 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11209 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11210 * i386-tdep.c (i386_gdbarch_init): Ditto.
11211 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11212 * frv-tdep.c (frv_gdbarch_init): Ditto.
11213 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11214 * cris-tdep.c (cris_gdbarch_init): Ditto.
11215 * arm-tdep.c (arm_gdbarch_init): Ditto.
11216
e8a8712a
AC
112172003-03-31 Andrew Cagney <cagney@redhat.com>
11218
11219 * gdbarch.sh (CALL_DUMMY_P): Delete.
11220 * gdbarch.h, gdbarch.c: Re-generate.
11221 * inferior.h (CALL_DUMMY_P): Delete macro.
11222 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11223 * vax-tdep.c (vax_gdbarch_init): Update.
11224 * v850-tdep.c (v850_gdbarch_init): Update.
11225 * sparc-tdep.c (sparc_gdbarch_init): Update.
11226 * sh-tdep.c (sh_gdbarch_init): Update.
11227 * s390-tdep.c (s390_gdbarch_init): Update.
11228 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11229 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11230 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11231 * mips-tdep.c (mips_gdbarch_init): Update.
11232 * mcore-tdep.c (mcore_gdbarch_init): Update.
11233 * m68k-tdep.c (m68k_gdbarch_init): Update.
11234 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11235 * ia64-tdep.c (ia64_gdbarch_init): Update.
11236 * i386-tdep.c (i386_gdbarch_init): Update.
11237 * h8300-tdep.c (h8300_gdbarch_init): Update.
11238 * frv-tdep.c (frv_gdbarch_init): Update.
11239 * d10v-tdep.c (d10v_gdbarch_init): Update.
11240 * cris-tdep.c (cris_gdbarch_init): Update.
11241 * breakpoint.c (deprecated_frame_in_dummy): Update.
11242 * avr-tdep.c (avr_gdbarch_init): Update.
11243 * alpha-tdep.c (alpha_gdbarch_init): Update.
11244 * arm-tdep.c (arm_gdbarch_init): Update.
11245 * dummy-frame.c (dummy_frame_this_id): Update comments.
11246 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
11247 * frame.c (legacy_get_prev_frame): Ditto.
11248 * valops.c (call_function_by_hand): Delete function.
11249 (hand_function_call): Rename to call_function_by_hand
11250
ed234cf8
AC
112512003-03-30 Andrew Cagney <cagney@redhat.com>
11252
11253 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 11254 * value.h (struct value): Update comment.
ed234cf8 11255
06c77151
AC
112562003-03-30 Andrew Cagney <cagney@redhat.com>
11257
6c2b5168
AC
11258 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
11259 D10V_FP_REGNUM.
11260 (d10v_gdbarch_init): Do not set fp_regnum.
11261
06c77151
AC
11262 * frame.c (get_frame_base): Force ID initialization.
11263 (get_prev_frame): Move computation of the frame ID from here ...
11264 (get_frame_id): ... to here.
11265 (legacy_get_prev_frame): Mark the frame ID as valid.
11266 * frame.h (struct frame_info): Add field "id_p".
11267
97a1a11c
MK
112682003-03-30 Mark Kettenis <kettenis@gnu.org>
11269
11270 * i386-tdep.c (i386_store_struct_return): Removed.
11271 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
11272
6c0e89ed
AC
112732003-03-30 Andrew Cagney <cagney@redhat.com>
11274
11275 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
11276 * gdbarch.h, gdbarch.c: Regenerate.
11277 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
11278 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11279 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11280 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11281 * i386-tdep.c (i386_gdbarch_init): Ditto.
11282 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11283 * cris-tdep.c (cris_gdbarch_init): Ditto.
11284 * vax-tdep.c (vax_gdbarch_init): Ditto.
11285 * s390-tdep.c (s390_gdbarch_init): Ditto.
11286 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11287 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11288 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11289 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
11290 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
11291 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
11292 * sparc-tdep.c (sparc_gdbarch_init): Update.
11293 * sh-tdep.c (sh_gdbarch_init): Update.
11294 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11295 * mips-tdep.c (mips_gdbarch_init): Update.
11296 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11297 * ia64-tdep.c (ia64_gdbarch_init): Update.
11298 * frv-tdep.c (frv_gdbarch_init): Update.
11299 * avr-tdep.c (avr_gdbarch_init): Update.
11300 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
11301 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
11302 instead of when push_dummy_call is not available.
8ffd9b1b 11303
f7dd6af2
AC
113042003-03-30 Andrew Cagney <cagney@redhat.com>
11305
11306 * infttrace.c: Include "gdbthread.h".
11307 (parent_attach_all): Fix function signature.
11308 (call_ptrace): Update call.
11309 * Makefile.in (infttrace.o): Update dependencies.
11310
28f617b3
AC
113112003-03-30 Andrew Cagney <cagney@redhat.com>
11312
11313 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
11314 PUSH_RETURN_ADDRESS.
11315 * gdbarch.h, gdbarch.c: Regenerate.
11316 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11317 * x86-64-tdep.c (x86_64_init_abi): Update.
11318 * v850-tdep.c (v850_gdbarch_init): Update.
11319 * sparc-tdep.c (sparc_gdbarch_init): Update.
11320 * sh-tdep.c (sh_gdbarch_init): Update.
11321 * s390-tdep.c (s390_gdbarch_init): Update.
11322 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11323 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11324 * mips-tdep.c (mips_gdbarch_init): Update.
11325 * mcore-tdep.c (mcore_gdbarch_init): Update.
11326 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11327 * ia64-tdep.c (ia64_gdbarch_init): Update.
11328 * i386-tdep.c (i386_gdbarch_init): Update.
11329 * h8300-tdep.c (h8300_gdbarch_init): Update.
11330 * frv-tdep.c (frv_gdbarch_init): Update.
11331 * cris-tdep.c (cris_gdbarch_init): Update.
11332 * avr-tdep.c (avr_gdbarch_init): Update.
11333 * arm-tdep.c (arm_gdbarch_init): Update.
11334 * valops.c (hand_function_call): Update.
11335
4d628cd7
AC
113362003-03-29 Andrew Cagney <cagney@redhat.com>
11337
11338 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
11339 sizeof_call_dummy_words.
11340 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
11341 define.
11342 * gdbarch.h: Regenerate.
8ffd9b1b 11343
65e82032
AC
113442003-03-29 Andrew Cagney <cagney@redhat.com>
11345
11346 * infttrace.h: New file.
11347 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
11348 (hpread_get_textlow): Detect an uninitialized dn_bufp.
11349 (hpread_read_doc_function_type): Detect an initialized type1.
11350 (hpread_quick_traverse): Initialize mod_name_string.
11351 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
11352 (som_solib_get_solib_by_pc): Declare.
11353 (so_lib_thread_start_addr): Declare.
11354 (no_shared_libraries): Declare.
11355 * somread.c (init_import_symbols): Make static. Add forward
11356 declaration.
11357 * config/pa/nm-hppah.h: Include "infttrace.h" for
11358 parent_attach_all.
11359 (hppa_insert_hw_watchpoint): Declare.
11360 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
11361 * hppah-nat.c: Include "gdb_string.h".
11362 (parent_attach_all): Delete extern declaration, moved to
11363 "infttrace.h".
11364 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
11365 int.
11366 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
11367 * Makefile.in (infttrace_h): Define.
11368 (hpread.o): Update dependencies.
11369 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
11370 * hppa-hpux-tdep.c: Include "gdb_string.h".
11371 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
11372 * infrun.c (handle_inferior_event): Always initialize
11373 stepped_after_stopped_by_watchpoint. Add default and remove
11374 fallthrough in switch statement.
11375 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
11376 parameter to int.
11377 (hppa_remove_hw_watchpoint): Ditto.
11378
2c3bbe77
AC
113792003-03-29 Andrew Cagney <cagney@redhat.com>
11380
11381 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
11382 offset.
11383
2dd604e7
RE
113842003-03-29 Richard Earnshaw <rearnsha@arm.com>
11385
11386 * arm-tdep.c (arm_push_arguments): Delete.
11387 (struct stack_item): New type.
11388 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
11389 (arm_store_struct_return): Delte.
11390 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
11391 arm_push_arguments or arm_store_struct_return.
11392
e8933a55
AC
113932003-03-28 Andrew Cagney <cagney@redhat.com>
11394
11395 * Makefile.in (d10v-tdep.o): Update dependencies.
11396 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
11397 * d10v-tdep.c: Include "remote.h".
11398 (target_resume_hook): Delete extern declaration.
11399 (target_wait_loop_hook): Ditto.
11400 (tdisassemble_command): Eliminate assignment in "if" conditional.
11401 (d10v_ts2_register_sim_regno): Eliminate call to
11402 legacy_register_sim_regno.
11403 (d10v_ts3_register_sim_regno): Ditto.
11404
6949171e
JJ
114052003-03-28 Jeff Johnston <jjohnstn@redhat.com>
11406
11407 * thread.c: Reindented.
11408 * lin-lwp.c: Ditto.
11409 * linux-proc.c: Ditto.
11410
98c7071f
BR
114112003-03-28 Bob Rossi <bob_rossi@cox.net>
11412
fbe586ae 11413 * MAINTAINERS (write after approval): Add myself.
98c7071f 11414
5edc9ca6
TR
114152003-03-27 Theodore A. Roth <troth@openavr.org>
11416
11417 * objc-exp.y: Add missing semi-colons.
11418
378bfd1b
AC
114192003-03-27 Andrew Cagney <cagney@redhat.com>
11420
11421 * regcache.c (write_sp): Delete function and references.
11422 * inferior.h (write_sp): Delete declaration.
11423 * valops.c (hand_function_call): Replace write_sp with
11424 TARGET_WRITE_SP.
11425 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
11426 (sparc_pop_frame): Ditto.
8ffd9b1b 11427
56056df7
AC
114282003-03-27 Andrew Cagney <cagney@redhat.com>
11429
11430 * NEWS: Mention removal of support for hppa*-*-bsd* and
11431 hppa*-*-osf* natives, and hppa*-*-pro* target.
11432 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
11433 * config/pa/xm-pa.h: Obsolete file.
11434 * config/pa/xm-hppab.h: Obsolete file.
11435 * config/pa/nm-hppab.h: Obsolete file.
11436 * config/pa/tm-hppab.h: Obsolete file.
11437 * config/pa/tm-hppao.h: Obsolete file.
11438 * config/pa/nm-hppao.h: Obsolete file.
11439 * config/pa/tm-pro.h: Obsolete file.
11440 * config/pa/hppaosf.mt: Obsolete file.
11441 * config/pa/hppaosf.mh: Obsolete file.
11442 * config/pa/hppapro.mt: Obsolete file.
11443 * config/pa/hppabsd.mt: Obsolete file.
11444 * config/pa/hppabsd.mh: Obsolete file.
11445 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
11446 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
11447 hppa*-*-osf*.
11448
5873a88d
AC
114492003-03-27 Andrew Cagney <cagney@redhat.com>
11450
11451 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
11452 push_arguments. Don't set push_return_address or write_sp.
11453 (d10v_push_dummy_call): Replace d10v_push_arguments.
11454 (d10v_push_return_address, d10v_write_sp): Delete function,
11455 handled by push_dummy_call.
11456
b81774d8
AC
114572003-03-26 Andrew Cagney <cagney@redhat.com>
11458
11459 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
11460 (push_dummy_call): New pure multi-arch replacement with gdbarch,
11461 regcache and dummy_addr parameters.
11462 * gdbarch.h, gdbarch.c: Re-generate.
11463 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
11464 available; assume it will handle stack alignment and return
11465 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
11466 legacy_push_arguments.
11467 (legacy_push_arguments): Rename default_push_arguments.
11468 * value.h (legacy_push_arguments): Rename default_push_arguments.
11469 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
11470 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11471 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11472 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11473 * config/i386/tm-symmetry.h: Update.
11474 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11475 * x86-64-tdep.c (x86_64_init_abi): Update.
11476 * v850-tdep.c (v850_gdbarch_init): Update.
11477 * sparc-tdep.c (sparc_gdbarch_init): Update.
11478 * sh-tdep.c (sh_gdbarch_init): Update.
11479 * s390-tdep.c (s390_gdbarch_init): Update.
11480 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11481 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11482 * mips-tdep.c (mips_gdbarch_init): Update.
11483 * mcore-tdep.c (mcore_gdbarch_init): Update.
11484 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11485 * ia64-tdep.c (ia64_gdbarch_init): Update.
11486 * i386-tdep.c (i386_gdbarch_init): Update.
11487 * hppa-tdep.c (hppa_gdbarch_init): Update.
11488 * h8300-tdep.c (h8300_gdbarch_init): Update.
11489 * frv-tdep.c (frv_gdbarch_init): Update.
11490 * d10v-tdep.c (d10v_gdbarch_init): Update.
11491 * cris-tdep.c (cris_gdbarch_init): Update.
11492 * avr-tdep.c (avr_gdbarch_init): Update.
11493 * arm-tdep.c (arm_gdbarch_init): Update.
11494 * arm-linux-tdep.c (arm_linux_init_abi): Update.
11495 * alpha-tdep.c (alpha_gdbarch_init): Update.
11496
f541410f
DJ
114972003-03-26 Daniel Jacobowitz <drow@mvista.com>
11498
11499 * signals/signals.c (do_target_signal_to_host): Correct realtime
11500 signal range test.
11501
69f567ae
DJ
115022003-03-26 Daniel Jacobowitz <drow@mvista.com>
11503
11504 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11505 (struct sal_chain, map_catch_names): Remove.
11506 (catch_exception_command_1): Don't call
11507 handle_gnu_4_16_catch_command.
11508
d5d14a5a
DJ
115092003-03-26 Daniel Jacobowitz <drow@mvista.com>
11510
11511 From Mark Dettinger <dettinge@de.ibm.com>:
11512 * dwarf2cfi.c (read_2u): Increment pointer by two.
11513
bdd73e22
DJ
115142003-03-26 Daniel Jacobowitz <drow@mvista.com>
11515
11516 * signals/signals.c: Fix typos in last change.
11517
960cb555
DJ
115182003-03-26 Daniel Jacobowitz <drow@mvista.com>
11519
11520 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11521 not already defined. Use __SIGRTMIN if available.
11522 (target_signal_from_host): Remove SIGRTMIN block.
11523 (do_target_signal_to_host): Remove SIGRTMIN block; check that
11524 the signal is within the realtime range.
11525
f636b87d
AF
115262003-03-25 Adam Fedor <fedor@gnu.org>
11527
11528 * Makefile.in (infrun.o): Add $(language_h)
11529 * infrun.c (handle_inferior_event): Use skip_language_trampoline
11530 for language specific trampolines.
11531 * language.h (struct language_defn): Add skip_trampoline.
11532 (skip_language_trampoline): Declare.
11533 * language.c (unk_lang_trampoline, skip_language_trampoline):
11534 New functions.
11535 (unknown_language_defn, auto_language_defn, local_language_defn):
11536 Add ukn_lang_trampoline.
11537 * ada-lang.c (ada_language_defn): Add NULL for language
11538 specific skip_trampoline.
11539 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11540 scm-lang.c: Likewise.
11541 * objc-lang.c (objc_skip_trampoline): New function.
11542 (objc_language_defn): Add objc_skip_trampoline.
11543
28f617b3 115442003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
11545
11546 * frame.c (get_prev_frame): Delay validating a frame's ID -
11547 non-NULL, didn't go backwards - until an attempt to unwind it to
11548 the previous frame.
11549
f933a9c5
AC
115502003-03-25 Andrew Cagney <cagney@redhat.com>
11551
11552 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11553 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
11554 * gdbarch.h, gdbarch.c: Re-generate.
11555 * config/sparc/tm-sparc.h
11556 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11557 * sparc-tdep.c (sparc_gdbarch_init): Set
11558 deprecated_extra_stack_alignment_needed.
11559 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11560 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11561 extra_stack_alignment_needed.
11562 * v850-tdep.c (v850_gdbarch_init): Ditto.
11563 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11564 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11565 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11566 * cris-tdep.c (cris_gdbarch_init): Ditto.
11567 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11568 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 11569
4183d812
AC
115702003-03-25 Andrew Cagney <cagney@redhat.com>
11571
11572 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11573 STORE_STRUCT_RETURN.
11574 * gdbarch.h, gdbarch.c: Regenerate.
11575 * d10v-tdep.c (d10v_store_struct_return): Delete function.
11576 (d10v_push_arguments): Set the struct return register.
11577 (d10v_gdbarch_init): Update.
11578 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11579 * x86-64-tdep.c (x86_64_init_abi): Update.
11580 * vax-tdep.c (vax_gdbarch_init): Update.
11581 * v850-tdep.c (v850_gdbarch_init): Update.
11582 * sparc-tdep.c (sparc_gdbarch_init): Update.
11583 * sh-tdep.c (sh_gdbarch_init): Update.
11584 * s390-tdep.c (s390_gdbarch_init): Update.
11585 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11586 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11587 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11588 * mips-tdep.c (mips_gdbarch_init): Update.
11589 * mcore-tdep.c (mcore_gdbarch_init): Update.
11590 * m68k-tdep.c (m68k_gdbarch_init): Update.
11591 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11592 * ia64-tdep.c (ia64_gdbarch_init): Update.
11593 * i386-tdep.c (i386_gdbarch_init): Update.
11594 * hppa-tdep.c (hppa_gdbarch_init): Update.
11595 * h8300-tdep.c (h8300_gdbarch_init): Update.
11596 * frv-tdep.c (frv_gdbarch_init): Update.
11597 * cris-tdep.c (cris_gdbarch_init): Update.
11598 * avr-tdep.c (avr_gdbarch_init): Update.
11599 * arm-tdep.c (arm_gdbarch_init): Update.
11600 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 11601
1bf6d5cc
AC
116022003-03-25 Andrew Cagney <cagney@redhat.com>
11603
11604 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11605 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11606 CALL_DUMMY_STACK_ADJUST with a predicate variable.
11607 * gdbarch.h, gdbarch.c: Regenerate.
11608 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11609 call_dummy_stack_adjust_p.
11610 * vax-tdep.c (vax_gdbarch_init): Ditto.
11611 * v850-tdep.c (v850_gdbarch_init): Ditto.
11612 * sh-tdep.c (sh_gdbarch_init): Ditto.
11613 * s390-tdep.c (s390_gdbarch_init): Ditto.
11614 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11615 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11616 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11617 * mips-tdep.c (mips_gdbarch_init): Ditto.
11618 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11619 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11620 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11621 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11622 * i386-tdep.c (i386_gdbarch_init): Ditto.
11623 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11624 * frv-tdep.c (frv_gdbarch_init): Ditto.
11625 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11626 * cris-tdep.c (cris_gdbarch_init): Ditto.
11627 * avr-tdep.c (avr_gdbarch_init): Ditto.
11628 * arm-tdep.c (arm_gdbarch_init): Ditto.
11629 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11630 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11631 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11632 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11633 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
11634 call_dummy_stack_adjust_p.
11635 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11636 (CALL_DUMMY_STACK_ADJUST): Delete macro.
11637 * sparc-tdep.c (sparc32_push_arguments): Update.
11638 * valops.c (hand_function_call): Update.
11639
71c08af0
CV
116402003-03-25 Corinna Vinschen <vinschen@redhat.com>
11641
11642 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11643 set_gdbarch_char_signed.
11644
30757f90
RE
116452003-03-25 Richard Earnshaw <rearnsha@arm.com>
11646
11647 PR cli/548
11648 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11649
03d48a7d
RE
116502003-03-25 Richard Earnshaw <rearnsha@arm.com>
11651
11652 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11653 (_initialize_arm_tdep): Don't set tm_print_insn.
11654
2cf6873c
AF
116552003-03-24 Adam Fedor <fedor@gnu.org>
11656
11657 * Makefile.in (YYOBJ): Add objc-exp.tab.o
11658 * objc-lang.h: Add multiple inclusion protection.
11659 (start_msglist, add_msglist, end_msglist): Additional declarations.
11660
17c0759e
RE
116612003-03-24 Richard Earnshaw <rearnsha@arm.com>
11662
11663 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11664 value was renamed to ARM_FLOAT_SOFT_FPA.
11665
618ce49f
AC
116662003-03-23 Andrew Cagney <cagney@redhat.com>
11667
11668 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11669 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11670 * gdbarch.h, gdbarch.c: Regenerate.
11671 * valops.c (hand_function_call): Update.
11672 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11673 * frame.c (legacy_saved_regs_this_id): Update.
11674 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11675 * dummy-frame.h: Update.
11676 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11677 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11678 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11679 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11680 * config/m68k/tm-sun3.h: Update.
11681 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11682 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11683 * x86-64-tdep.c (x86_64_init_abi): Update.
11684 * vax-tdep.c (vax_gdbarch_init): Update.
11685 * v850-tdep.c (v850_gdbarch_init): Update.
11686 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11687 * sh-tdep.c (sh_gdbarch_init): Update.
11688 * s390-tdep.c (s390_gdbarch_init): Update.
11689 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11690 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11691 (frame_get_saved_regs): Update.
11692 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11693 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11694 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11695 * mips-tdep.c (mips_gdbarch_init): Update.
11696 * mcore-tdep.c (mcore_gdbarch_init): Update.
11697 * m68k-tdep.c (m68k_gdbarch_init): Update.
11698 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11699 * ia64-tdep.c (ia64_gdbarch_init): Update.
11700 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11701 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11702 (i386_interix_back_one_frame): Update.
11703 * hppa-tdep.c (hppa_gdbarch_init): Update.
11704 (hppa_init_extra_frame_info): Update.
11705 * h8300-tdep.c (h8300_gdbarch_init): Update.
11706 * frv-tdep.c (frv_gdbarch_init): Update.
11707 * cris-tdep.c (cris_gdbarch_init): Update.
11708 * avr-tdep.c (avr_gdbarch_init): Update.
11709 * arm-tdep.c (arm_gdbarch_init): Update.
11710 * alpha-tdep.c (alpha_gdbarch_init): Update.
11711
fd50bc42
RE
117122003-03-22 Richard Earnshaw <rearnsha@arm.com>
11713
11714 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11715 (arm_get_fp_model): Declare.
11716 * arm-tdep.c (fp_model_strings): New string array.
11717 (arm_fp_model, current_fp_model): New variables.
11718 (arm_get_fp_model): New function.
11719 (arm_set_fp): New function.
11720 (set_fp_model_sfunc): New function.
11721 (show_fp_model): New function.
11722 (_initialize_arm_tdep): Add new command to set/show the FPU.
11723 (arm_extract_return_value): Use arm_get_fp_model.
11724 (arm_store_return_value): Likewise.
11725 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11726 to initialize the floating-point data types.
11727 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11728 model is FPA.
11729
26304000
RE
117302003-03-22 Richard Earnshaw <rearnsha@arm.com>
11731
11732 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11733 the current setting of each value.
11734 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 11735 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
11736 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11737 commands and add new version as subcommands of "set/show arm".
11738
afd7eef0
RE
117392003-03-22 Richard Earnshaw <rearnsha@arm.com>
11740
11741 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11742 (set_arm_command, show_arm_command): New functions.
11743 (_initialize_arm_tdep): Add them.
11744 (num_disassembly_options): Renamed from num_flavor_options.
11745 (valid_disassembly_styles): Renamed from valid_flavors.
11746 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 11747 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
11748 set_disassembly_flavor_sfunc.
11749 (set_disassembly_style): Renamed from set_disassembly_flavor.
11750 (arm_othernames): Updated.
11751 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11752 command. Add "set/show arm disassembly" commands. Deprecate
11753 "othernames" command.
11754
299a7944
RE
117552003-03-22 Richard Earnshaw <rearnsha@arm.com>
11756
11757 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11758 (arm-tdep.o): Depend on elf_arm_h.
11759
c1dac9e6
RE
117602003-03-22 Richard Earnshaw <rearnsha@arm.com>
11761
11762 * Makefile.in (coff_internal_h): Define.
11763 (arm-tdep.o): Update dependencies.
11764
2702d96c
RE
117652003-03-22 Richard Earnshaw <rearnsha@arm.com>
11766
11767 * arm-tdep.c (prologue_cache): Delete.
11768 (check_prologue_cache, save_prologue_cache): Delete.
11769 (arm_scan_prologue): Don't check or update the prologue_cache.
11770 (arm_gdb_arch_init): Don't initialize it.
11771 (_initialize_arm_tdep): Likewise.
11772
27d5d74b
SC
117732003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11774
11775 * MAINTAINERS (tui): Maintainer of tui code.
11776
1762d96d
CV
117772003-03-21 Corinna Vinschen <vinschen@redhat.com>
11778
11779 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11780 (i386-cygwin-tdep.o): Add dependencies.
11781 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11782 * i386-cygwin-tdep.c: New file.
11783 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11784 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11785
4c2e2391
AC
117862003-03-20 Andrew Cagney <cagney@redhat.com>
11787
f20d38b7
AC
11788 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11789 (handle_inferior_event): Remove code calling
11790 DYNAMIC_TRAMPOLINE_NEXTPC.
11791
0022b738
AC
11792 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11793 already has a full path.
11794
864dbc90
AC
11795 * main.c (gdb_main): Return 1.
11796 (captured_main): Call error to report an invalid interpreter.
11797
4c2e2391
AC
11798 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11799 * alpha-osf1-tdep.c: Include "gdb_string.h".
11800
5ef7553b
JB
118012003-03-19 J. Brobecker <brobecker@gnat.com>
11802
11803 Continuing work to convert the hppa targets to multiarch partial.
11804
11805 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11806 method, now that hppa_push_dummy_frame has a conformant prototype.
11807 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11808 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11809 for the switch to multiarch partial.
11810
7bde8967
KB
118112003-03-19 Kevin Buettner <kevinb@redhat.com>
11812
11813 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11814 when iss is issNull.
11815
b006a9e9
KB
118162003-03-18 Kevin Buettner <kevinb@redhat.com>
11817
11818 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11819 NUM_REGS bounds check.
11820
5e2e9765
KB
118212003-03-18 Kevin Buettner <kevinb@redhat.com>
11822
11823 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11824 * mips-tdep.c (gdb_assert.h): Include.
11825 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11826 (mips_register_name): Handle integer registers explicitly. Add
11827 bounds checking.
11828 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11829 (mips_lsi33k_reg_names): Don't list integer registers; they're
11830 handled by mips_register_name() now.
11831 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11832 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11833 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11834 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11835 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11836
a2867626
AC
118372003-03-18 Andrew Cagney <cagney@redhat.com>
11838
11839 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11840 a void pointer.
11841 * gdbtypes.h (print_scalar_formatted): Update declaration.
11842 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11843
06600e06
JB
118442003-03-18 J. Brobecker <brobecker@gnat.com>
11845
11846 * infrun.c (observer.h): Add #include.
11847 (normal_stop): Add call to observer_notify_normal_stop.
11848 * Makefile.in (infrun.o): Add dependency on observer.h.
11849
7daf4f5b
JB
118502003-03-18 J. Brobecker <brobecker@gnat.com>
11851
11852 Continuing work to convert the hppa targets to multiarch partial.
11853 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11854 parameter. Reformat comment.
11855 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11856 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11857 to match new profile.
11858
3371ccc0
JB
118592003-03-18 J. Brobecker <brobecker@gnat.com>
11860
11861 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11862 appear to be working in any case.
11863
4fbe891e
JB
118642003-03-18 J. Brobecker <brobecker@gnat.com>
11865
11866 * observer.c (observer_test_first_observer): New static variable.
11867 (observer_test_second_observer): Likewise.
11868 (observer_test_third_observer): Likewise.
11869 (observer_test_first_notification_function): New static function.
11870 (observer_test_second_notification_function): Likewise.
11871 (observer_test_third_notification_function): Likewise.
11872
a7ff40e7
JB
118732003-03-17 J. Brobecker <brobecker@gnat.com>
11874
11875 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11876 * somsolib.c (gdb_assert.h): Likewise.
11877 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11878 (somsolib.o): Likewise.
11879
26ca4152
AC
118802003-03-17 Andrew Cagney <cagney@redhat.com>
11881
11882 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11883 BFD. Simplify setting of di.endian.
11884
0a613259
AC
118852003-03-17 Andrew Cagney <cagney@redhat.com>
11886
11887 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11888 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11889
11890 From Elena Zannoni <ezannoni@redhat.com>
11891 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11892 vector and floating-point parameters.
11893 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11894 convention.
11895 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11896
1132738f
FN
118972003-03-17 Fernando Nasser <fnasser@redhat.com>
11898
11899 * MAINTAINERS: Remove my name from several maintainership roles.
11900
6dc42492
AC
119012003-03-17 Andrew Cagney <cagney@redhat.com>
11902
11903 Fix frame off-by-one bug.
11904 * frame-unwind.h (frame_this_id_ftype): Replace
11905 frame_unwind_id_ftype.
11906 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11907 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11908 with "prev_register".
11909 * frame-unwind.c (frame_unwind_find_by_pc): Return
11910 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11911 comment.
11912 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11913 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11914 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11915 (dummy_frame_unwind): Update.
11916 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11917 sentinel_frame_register_unwind.
11918 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11919 (sentinel_frame_unwinder): Update.
11920 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11921 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11922 * frame.c (create_sentinel_frame): Update. Initialize
11923 "prologue_cache" instead of "unwind_cache".
11924 (frame_register_unwind): Call this frame's prev_register with the
11925 next frame and this frame's prologue cache.
11926 (get_prev_frame): Simplify. Always call prev frame's this_id with
11927 this frame and prev frame's prologue cache. Document that this
11928 call is shifted one to the left when compared to the
11929 frame_register_unwind call.
11930 (legacy_saved_regs_prev_register): Replace
11931 frame_saved_regs_register_unwind.
11932 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11933 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11934 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11935 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11936 (d10v_frame_unwind): Update.
11937 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11938 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11939 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11940 "saved_regs" with "this_saved_regs".
11941
efd710d6
AC
119422003-03-16 Andrew Cagney <cagney@redhat.com>
11943
11944 * frame.c (frame_pop): Don't call target_store_registers. Fix
11945 problem reported by Mark Kettenis.
11946
4e259f09
MK
119472003-03-16 Mark Kettenis <kettenis@gnu.org>
11948
11949 * i386-tdep.c (i386_register_type): Renamed from
11950 i386_register_virtual_type. Adjust function signature.
11951 (i386_gdbarch_init): Set register_type instead of
11952 deprecated_max_register_raw_size,
11953 deprecated_max_register_virtual_size and register_virtual_type.
11954
055bb976
AC
119552003-03-14 Andrew Cagney <cagney@redhat.com>
11956
11957 * frame.c (get_prev_frame): When a legacy frame, always call
11958 legacy_get_prev_frame. Simplify unwind code using assumption that
11959 the unwinder is new.
11960 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11961 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11962 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11963
ac2adee5
AC
119642003-03-14 Andrew Cagney <cagney@redhat.com>
11965
11966 * frame.c (get_saved_register): Delete function.
11967 * frame.h (get_saved_register): Delete declaration.
11968 * xstormy16-tdep.c: Update comment.
11969 * regcache.h: Update comments.
11970 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11971 get_saved_register and extract_address, use
11972 frame_read_unsigned_register.
11973 (sparc_frame_saved_pc): Ditto.
11974 (sparc_get_saved_register): Instead of get_saved_register, use
11975 frame_register.
11976 (sparc_pop_frame): Ditto.
11977 * findvar.c: Update comments.
11978 (value_of_register): Call frame_register instead of
11979 get_saved_register.
11980 (value_from_register): Ditto.
11981 * config/sparc/tm-sparc.h: Update comment.
11982 * breakpoint.c: Update comment.
11983
129c1cd6
AC
119842003-03-14 Andrew Cagney <cagney@redhat.com>
11985
11986 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11987 GET_SAVED_REGISTER.
11988 * gdbarch.h, gdbarch.c: Re-generate.
11989 * frame.h: Update comments.
11990 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11991 * x86-64-tdep.c (x86_64_init_abi): Update.
11992 * sparc-tdep.c (sparc_gdbarch_init): Update.
11993 * sh-tdep.c (sh_gdbarch_init): Update.
11994 * mips-tdep.c (mips_gdbarch_init): Update.
11995 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11996 * cris-tdep.c (cris_gdbarch_init): Update.
11997 * ia64-tdep.c (ia64_gdbarch_init): Update.
11998 * frame.c (frame_register): Update.
11999 (get_saved_register): Update.
12000 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 12001
749b82f6
AC
120022003-03-13 Andrew Cagney <cagney@redhat.com>
12003
12004 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
12005 * gdbarch.h, gdbarch.c: Regenerate.
12006 * valops.c (hand_function_call): Update comment.
12007 * stack.c (return_command): Update comment.
12008 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
12009 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
12010 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12011 * x86-64-tdep.c (x86_64_init_abi): Update.
12012 * vax-tdep.c (vax_gdbarch_init): Update.
12013 * v850-tdep.c (v850_gdbarch_init): Update.
12014 * sparc-tdep.c (sparc_gdbarch_init): Update.
12015 * sh-tdep.c (sh_gdbarch_init): Update.
12016 * s390-tdep.c (s390_gdbarch_init): Update.
12017 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12018 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12019 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12020 * mips-tdep.c (mips_gdbarch_init): Update.
12021 * mcore-tdep.c (mcore_gdbarch_init): Update.
12022 * m68k-tdep.c (m68k_gdbarch_init): Update.
12023 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12024 * ia64-tdep.c (ia64_gdbarch_init): Update.
12025 * i386-tdep.c (i386_gdbarch_init): Update.
12026 * hppa-tdep.c (hppa_gdbarch_init): Update.
12027 * h8300-tdep.c (h8300_gdbarch_init): Update.
12028 * frv-tdep.c (frv_gdbarch_init): Update.
12029 * cris-tdep.c (cris_gdbarch_init): Update.
12030 * avr-tdep.c (avr_gdbarch_init): Update.
12031 * arm-tdep.c (arm_gdbarch_init): Update.
12032 * alpha-tdep.c (alpha_gdbarch_init): Update.
12033
1594fa56
AC
120342003-03-13 Andrew Cagney <cagney@redhat.com>
12035
12036 * frame.c (legacy_frame_p): New function.
12037 (get_prev_frame): Use legacy_frame_p.
12038 * frame.h (legacy_frame_p): Declare.
12039
7717fda3
V
120402003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
12041
fbe586ae 12042 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
12043 listing corrected.
12044
0c67cbe9
V
120452003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
12046
fbe586ae 12047 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 12048
03febf99
AC
120492003-03-12 Andrew Cagney <cagney@redhat.com>
12050
12051 * frame.c (get_prev_frame): Rename the frame parameter to
12052 "this_frame".
12053 (get_next_frame, legacy_get_prev_frame): Ditto.
12054
0a1e1ca1
AC
120552003-03-12 Andrew Cagney <cagney@redhat.com>
12056
12057 * frame.c (get_current_frame): Check target_has_registers before
12058 checking target_has_stack.
12059 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
12060 instead of deprecated_selected_frame.
12061 * findvar.c (value_of_register): Pass "frame", not
12062 deprecated_selected_frame, to value_of_builtin_reg.
12063
a66a9c23
AC
120642003-03-12 Andrew Cagney <cagney@redhat.com>
12065
12066 * regcache.c (regcache_cooked_write_signed): New function.
12067 (regcache_cooked_write_unsigned): New function.
12068 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
12069 (regcache_cooked_read_signed): Fix regnum in range assertion.
12070 * regcache.h (regcache_cooked_write_signed): Declare.
12071 (regcache_cooked_write_unsigned): Declare.
12072
8bedc050
AC
120732003-03-12 Andrew Cagney <cagney@redhat.com>
12074
12075 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
12076 * gdbarch.h, gdbarch.c: Re-generate.
12077 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12078 * x86-64-tdep.h: Update.
12079 * x86-64-tdep.c (x86_64_init_abi): Update.
12080 * v850-tdep.c (v850_gdbarch_init): Update.
12081 * sparc-tdep.c (sparc_gdbarch_init): Update.
12082 * sh-tdep.c (sh_gdbarch_init): Update.
12083 * s390-tdep.c (s390_gdbarch_init): Update.
12084 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12085 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12086 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12087 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12088 * mips-tdep.c (mips_gdbarch_init): Update.
12089 * mcore-tdep.c (mcore_gdbarch_init): Update.
12090 * m68k-tdep.c (m68k_gdbarch_init): Update.
12091 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12092 * ia64-tdep.c (ia64_gdbarch_init): Update.
12093 * i386-tdep.c (i386_gdbarch_init): Update.
12094 * i386-interix-tdep.c (i386_interix_init_abi): Update.
12095 * hppa-tdep.c (hppa_gdbarch_init): Update.
12096 * h8300-tdep.c (h8300_gdbarch_init): Update.
12097 * frv-tdep.c (frv_gdbarch_init): Update.
12098 * cris-tdep.c (cris_gdbarch_init): Update.
12099 * avr-tdep.c (avr_gdbarch_init): Update.
12100 * arm-tdep.c (arm_gdbarch_init): Update.
12101 * alpha-tdep.c (alpha_gdbarch_init): Update.
12102 * sh-tdep.c (sh_init_extra_frame_info): Update.
12103 (sh64_init_extra_frame_info): Update.
12104 * ns32knbsd-nat.c (frame_num_args): Update.
12105 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
12106 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
12107 (xstormy16_frame_chain_valid): Update.
12108 * vax-tdep.c (vax_saved_pc_after_call): Update.
12109 * v850-tdep.c (v850_frame_chain): Update.
12110 (v850_pop_frame): Update.
12111 (v850_init_extra_frame_info): Update.
12112 * sparc-tdep.c (setup_arbitrary_frame): Update.
12113 * ns32k-tdep.c (umax_frame_num_args): Update.
12114 * s390-tdep.c (s390_pop_frame_regular): Update.
12115 * mn10300-tdep.c (mn10300_frame_chain): Update.
12116 (mn10300_pop_frame_regular): Update.
12117 (mn10300_init_extra_frame_info): Update.
12118 * mips-tdep.c (mips_init_frame_pc_first): Update.
12119 (mips_frame_chain): Update.
12120 (mips_pop_frame): Update.
12121 * mcore-tdep.c (mcore_frame_chain): Update.
12122 (mcore_pop_frame): Update.
12123 (mcore_init_extra_frame_info): Update.
12124 * arch-utils.c (init_frame_pc_default): Update.
12125 * m68k-tdep.c (isi_frame_num_args): Update.
12126 (delta68_frame_num_args): Update.
12127 (news_frame_num_args): Update.
12128 * ia64-tdep.c (ia64_pop_frame_regular): Update.
12129 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
12130 (alpha_frame_chain): Update.
12131 (alpha_pop_frame): Update.
12132 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
12133 (hppa_init_extra_frame_info): Update.
12134 (hppa_frame_chain): Update.
12135 (hppa_frame_chain_valid): Update.
12136 * cris-tdep.c (cris_init_extra_frame_info): Update.
12137 * avr-tdep.c (avr_init_extra_frame_info): Update.
12138 * arm-tdep.c (arm_frame_chain_valid): Update.
12139 (arm_init_extra_frame_info): Update.
12140 (arm_pop_frame): Update.
12141 * frame.c (frame_pc_unwind): Update.
12142 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
12143 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12144 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12145 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12146 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12147 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 12148
7a25a7c1
AC
121492003-03-12 Andrew Cagney <cagney@redhat.com>
12150
12151 Eliminate the need for POP_FRAME.
12152 * frame.c (do_frame_unwind_register): New function.
12153 (frame_pop): When no POP_FRAME, pop the frame using register
12154 unwind and a scratch regcache.
12155 (frame_saved_regs_pop): Delete function.
12156 (trad_frame_unwinder): Update.
12157 * d10v-tdep.c (d10v_frame_pop): Delete function.
12158 (d10v_frame_unwind): Update.
12159 * sentinel-frame.c (sentinel_frame_pop): Delete function.
12160 (sentinel_frame_unwinder): Update.
12161 * dummy-frame.c (dummy_frame_pop): Delete function.
12162 (dummy_frame_unwind): Update.
12163 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
12164 (struct frame_unwind): Update.
12165
2f38ef89
KB
121662003-03-11 Kevin Buettner <kevinb@redhat.com>
12167
12168 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
12169 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
12170 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
12171 Do range checks on register number obtained from debugging info.
12172 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
12173 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
12174 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
12175 mapping function.
12176 (do_fp_register_row): Fix typo which caused double type to be
12177 used when attempting to unpack a float.
12178
552f4abf
JB
121792003-03-11 J. Brobecker <brobecker@gnat.com>
12180
12181 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
12182
e0d2ae16
AC
121832003-03-11 Andrew Cagney <cagney@redhat.com>
12184
12185 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
12186 frame. Problem found by Corinna Vinschen.
12187
ddbfdd06
PM
121882003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
12189
12190 * doublest.c (floatformat_from_length): Accept also
12191 the real size of 'long double' type.
12192
088b2ddc 121932003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 12194
088b2ddc 12195 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
12196 * breakpoint.c (bpstat_copy): Copy the command lines as well
12197 as the old value, to match what is freed in bpstat_clear.
12198
f56f77c1
DC
121992003-03-10 David Carlton <carlton@math.stanford.edu>
12200
12201 * minsyms.c (add_minsym_to_hash_table): Replace
12202 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
12203 (compare_minimal_symbols, compact_minimal_symbols)
12204 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
12205 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
12206 of DEPRECATED_SYMBOL_MATCHES_NAME.
12207 (lookup_minimal_symbol_solib_trampoline): Ditto.
12208
5602984a
AC
122092003-03-10 Andrew Cagney <cagney@redhat.com>
12210
12211 * regcache.h (regcache_cooked_read_ftype): Define.
12212 (regcache_save, regcache_restore): Add a cooked_read parameter.
12213 * regcache.c (regcache_save, regcache_restore): Update.
12214 (do_cooked_read): New function.
12215 (regcache_cpy): Pass do_cooked_read to regcache_save and
12216 regcache_restore.
12217
8bedc050
AC
122182003-03-10 Andrew Cagney <cagney@redhat.com>
12219
12220 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
12221 * gdbarch.h, gdbarch.c: Re-generate.
12222 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12223 * x86-64-tdep.h: Update.
12224 * x86-64-tdep.c (x86_64_init_abi): Update.
12225 * v850-tdep.c (v850_gdbarch_init): Update.
12226 * sparc-tdep.c (sparc_gdbarch_init): Update.
12227 * sh-tdep.c (sh_gdbarch_init): Update.
12228 * s390-tdep.c (s390_gdbarch_init): Update.
12229 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12230 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12231 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12232 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12233 * mips-tdep.c (mips_gdbarch_init): Update.
12234 * mcore-tdep.c (mcore_gdbarch_init): Update.
12235 * m68k-tdep.c (m68k_gdbarch_init): Update.
12236 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12237 * ia64-tdep.c (ia64_gdbarch_init): Update.
12238 * i386-tdep.c (i386_gdbarch_init): Update.
12239 * i386-interix-tdep.c (i386_interix_init_abi): Update.
12240 * hppa-tdep.c (hppa_gdbarch_init): Update.
12241 * h8300-tdep.c (h8300_gdbarch_init): Update.
12242 * frv-tdep.c (frv_gdbarch_init): Update.
12243 * cris-tdep.c (cris_gdbarch_init): Update.
12244 * avr-tdep.c (avr_gdbarch_init): Update.
12245 * arm-tdep.c (arm_gdbarch_init): Update.
12246 * alpha-tdep.c (alpha_gdbarch_init): Update.
12247 * sh-tdep.c (sh_init_extra_frame_info): Update.
12248 (sh64_init_extra_frame_info): Update.
12249 * ns32knbsd-nat.c (frame_num_args): Update.
12250 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
12251 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
12252 (xstormy16_frame_chain_valid): Update.
12253 * vax-tdep.c (vax_saved_pc_after_call): Update.
12254 * v850-tdep.c (v850_frame_chain): Update.
12255 (v850_pop_frame): Update.
12256 (v850_init_extra_frame_info): Update.
12257 * sparc-tdep.c (setup_arbitrary_frame): Update.
12258 * ns32k-tdep.c (umax_frame_num_args): Update.
12259 * s390-tdep.c (s390_pop_frame_regular): Update.
12260 * mn10300-tdep.c (mn10300_frame_chain): Update.
12261 (mn10300_pop_frame_regular): Update.
12262 (mn10300_init_extra_frame_info): Update.
12263 * mips-tdep.c (mips_init_frame_pc_first): Update.
12264 (mips_frame_chain): Update.
12265 (mips_pop_frame): Update.
12266 * mcore-tdep.c (mcore_frame_chain): Update.
12267 (mcore_pop_frame): Update.
12268 (mcore_init_extra_frame_info): Update.
12269 * arch-utils.c (init_frame_pc_default): Update.
12270 * m68k-tdep.c (isi_frame_num_args): Update.
12271 (delta68_frame_num_args): Update.
12272 (news_frame_num_args): Update.
12273 * ia64-tdep.c (ia64_pop_frame_regular): Update.
12274 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
12275 (alpha_frame_chain): Update.
12276 (alpha_pop_frame): Update.
12277 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
12278 (hppa_init_extra_frame_info): Update.
12279 (hppa_frame_chain): Update.
12280 (hppa_frame_chain_valid): Update.
12281 * cris-tdep.c (cris_init_extra_frame_info): Update.
12282 * avr-tdep.c (avr_init_extra_frame_info): Update.
12283 * arm-tdep.c (arm_frame_chain_valid): Update.
12284 (arm_init_extra_frame_info): Update.
12285 (arm_pop_frame): Update.
12286 * frame.c (frame_pc_unwind): Update.
12287 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
12288 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12289 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12290 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12291 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12292 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 12293
12cc2063
AC
122942003-03-10 Andrew Cagney <cagney@redhat.com>
12295
12296 * gdbarch.sh (gdbarch_unwind_pc): New method.
12297 * gdbarch.h, gdbarch.c: Regenerate.
12298 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
12299 but use read_pc and FRAME_SAVED_PC as fall backs.
12300 (frame_saved_regs_pc_unwind): Delete function.
12301 (trad_frame_unwinder): Update.
12302 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
12303 (struct frame_unwind): Update.
12304 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
12305 (dummy_frame_unwind): Update.
12306 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
12307 (sentinel_frame_unwinder): Update.
12308 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
12309 (d10v_frame_unwind): Update.
12310 (d10v_unwind_pc): New function.
12311 (d10v_gdbarch_init): Set unwind_pc.
12312
ef840a37
AC
123132003-03-10 Andrew Cagney <cagney@redhat.com>
12314
a2ce2e56
AC
12315 * gdbarch.h: Re-generate.
12316
ef840a37
AC
12317 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
12318 PC.
12319 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
12320 the PC register.
12321
08f3424b
MK
123222003-03-08 Mark Kettenis <kettenis@gnu.org>
12323
12324 * gdbarch.sh (save_dummy_frame_tos): Add comment.
12325
1248ede2
AC
123262003-03-08 Andrew Cagney <cagney@redhat.com>
12327
12328 * cli-out.c: Update copyright.
12329 (cli_out_data): Define typedef. Use instead of ui_out_data.
12330
f49bacc8
AC
123312003-03-08 Andrew Cagney <cagney@redhat.com>
12332
12333 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
12334 the result.
12335
9b05f993
AC
123362003-03-07 Andrew Cagney <cagney@redhat.com>
12337
12338 * gdbarch.sh: Don't generate two macro definitions when an
12339 undefined macro taking no arguments.
12340 * gdbarch.h: Regenerate.
8ffd9b1b 12341
166f4c7b
ML
123422002-03-07 Michal Ludvig <mludvig@suse.cz>
12343
12344 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
12345 (x86_64_unwind_dummy_id): New functions.
12346 (x86_64_init_abi): Register these two new functions.
12347
6d686a84
ML
123482003-03-07 Michal Ludvig <mludvig@suse.cz>
12349
12350 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 12351 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
12352 separate function.
12353 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
12354
6314f104
AC
123552003-03-05 Andrew Cagney <cagney@redhat.com>
12356
12357 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
12358 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
12359 * frame.c (get_prev_frame): Restructure the frame ID unwind code
12360 to use unwind_dummy_id when a dummy frame.
12361 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
12362 predicate.
12363 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 12364
ceea5145
AC
123652003-03-05 Andrew Cagney <cagney@redhat.com>
12366
12367 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
12368 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
12369 Do not use d10v_read_sp or d10v_read_fp when obtaining register
12370 values.
12371
0d843116
AC
123722003-03-05 Andrew Cagney <cagney@redhat.com>
12373
12374 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
12375 (struct d10v_unwind_cache): Delete field "frameless". Replace
12376 "next_addr" with "sp_offset". Add "r11_offset".
12377 (d10v_frame_unwind_cache): Update.
12378 (prologue_find_regs): Update. When "mv r11, sp", save the
12379 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
12380 RN was saved in r11_offset.
12381
b2579786
AC
123822003-03-05 Andrew Cagney <cagney@redhat.com>
12383
12384 * frame.c (deprecated_update_frame_pc_hack): Also update the the
12385 cached PC value in the next frame.
12386
218e5956
AC
123872003-03-05 Andrew Cagney <cagney@redhat.com>
12388
12389 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
12390 "id_unwind_cache" with "id".
12391 (frame_id_unwind): Delete declaration.
12392 * frame.c (frame_id_unwind): Delete function.
12393 (get_prev_frame): Call the frame id unwind method directly. Store
12394 the returned next frame's ID value in NEXT_FRAME. Note that there
12395 is a problem with the wrong unwind ID being called with the wrong
12396 unwind cache.
12397
ed363b1b
DJ
123982003-03-05 Daniel Jacobowitz <drow@mvista.com>
12399
12400 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
12401
fe1f4a5e
DJ
124022003-03-05 James Ingham <jingham@apple.com>
12403 Daniel Jacobowitz <drow@mvista.com>
12404
12405 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
12406 (auto_cp_abi): New variable.
12407 (current_cp_abi, num_cp_abis): Make static.
12408 (CP_ABI_MAX): Define.
12409 (cp_abis): Turn into an array.
12410 (value_virtual_fn_field): Fix formatting.
12411 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
12412 takes a pointer.
12413 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
12414 (list_cp_abis, _initialize_cp_abi): New functions.
12415 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
12416 declarations for cp_abis, num_cp_abis, current_cp_abi, and
12417 switch_to_cp_abi. Update prototype for register_cp_abi.
12418 * Makefile.in (cp-abi.o): Update dependencies.
12419 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
12420 instead of switch_to_cp_abi.
12421 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
12422 register_cp_abi.
12423 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
12424 register_cp_abi.
12425 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
12426
e4adbba9
DJ
124272003-03-05 Daniel Jacobowitz <drow@mvista.com>
12428
12429 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
12430 * dwarf2loc.c: Include "regcache.h".
12431 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
12432 register_size.
12433 * Makefile.in (dwarf2loc.o): Update dependencies.
12434
91ccbfc1
TR
124352003-03-04 Theodore A. Roth <troth@openavr.org>
12436
12437 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
12438 number of io registers reported by remote target is not a multiple of
12439 step.
12440
3d4e8fd2
DC
124412003-03-04 David Carlton <carlton@math.stanford.edu>
12442
12443 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
12444 (lookup_symbol_aux_psymtabs): Update call to
12445 lookup_partial_symbol.
12446 (lookup_transparent_type, find_main_psymtab)
12447 (make_symbol_overload_list): Ditto.
12448
ed42d87b
KH
124492003-03-04 Kazu Hirata <kazu@cs.umass.edu>
12450
12451 * MAINTAINERS (Write after approval): Update my email address.
12452
a0ed5532
AC
124532003-03-03 Andrew Cagney <cagney@redhat.com>
12454
12455 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
12456 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
12457 predicate. Replace MAX_REGISTER_RAW_SIZE.
12458 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
12459 MAX_REGISTER_VIRTUAL_SIZE.
12460 * regcache.c (legacy_max_register_raw_size): New function.
12461 (legacy_max_register_virtual_size): New function.
12462 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
12463 (MAX_REGISTER_RAW_SIZE): Define.
12464 (legacy_max_register_raw_size): Declare.
12465 (legacy_max_register_virtual_size): Declare.
12466 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12467 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
12468 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12469 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12470 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12471 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12472 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12473 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12474 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12475 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12476 * vax-tdep.c (vax_gdbarch_init): Update.
12477 * v850-tdep.c (v850_gdbarch_init): Update.
12478 * sparc-tdep.c (sparc_gdbarch_init): Update.
12479 * sh-tdep.c (sh_gdbarch_init): Update.
12480 * s390-tdep.c (s390_gdbarch_init): Update.
12481 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12482 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12483 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12484 * mips-tdep.c (mips_gdbarch_init): Update.
12485 * mcore-tdep.c (mcore_gdbarch_init): Update.
12486 * m68k-tdep.c (m68k_gdbarch_init): Update.
12487 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12488 * ia64-tdep.c (ia64_gdbarch_init): Update.
12489 * i386-tdep.c (i386_gdbarch_init): Update.
12490 * hppa-tdep.c (hppa_gdbarch_init): Update.
12491 * h8300-tdep.c (h8300_gdbarch_init): Update.
12492 * frv-tdep.c (frv_gdbarch_init): Update.
12493 * cris-tdep.c (cris_gdbarch_init): Update.
12494 * avr-tdep.c (avr_gdbarch_init): Update.
12495 * arm-tdep.c (arm_gdbarch_init): Update.
12496 * alpha-tdep.c (alpha_gdbarch_init): Update.
12497 * d10v-tdep.c (d10v_gdbarch_init): Do not set
12498 max_register_raw_size or max_register_virtual_size.
12499
8e437497
DC
125002003-03-03 David Carlton <carlton@math.stanford.edu>
12501
12502 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12503 SYMBOL_MATCHES_NAME, add comment.
12504 (SYMBOL_MATCHES_NATURAL_NAME): New.
12505 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12506 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12507 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12508 * symtab.c (lookup_partial_symbol): Use
12509 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
12510 unhelpful comment.
12511 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12512 SYMBOL_MATCHES_NAME.
12513 Fix for PR c++/33.
12514
25120b0d
DC
125152003-03-03 David Carlton <carlton@math.stanford.edu>
12516
12517 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12518 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12519 by regexp matching against SYMBOL_NATURAL_NAME.
12520
78a11fb4
DC
125212003-03-03 David Carlton <carlton@math.stanford.edu>
12522
12523 * linespec.c (find_method): Extract code into collect_methods.
12524 (collect_methods): New.
12525
645dd519
MK
125262003-03-02 Mark Kettenis <kettenis@gnu.org>
12527
b4700d91
MK
12528 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12529 get_frame_base.
12530
645dd519
MK
12531 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12532 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12533
0aa7e1aa
SC
125342003-03-02 Stephane Carrez <stcarrez@nerim.fr>
12535
8ffd9b1b 12536 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
12537 and not regnum when summing the size of all registers up to regnum.
12538
f30ee0bc
AC
125392003-03-01 Andrew Cagney <cagney@redhat.com>
12540
12541 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12542 FRAME_INIT_SAVED_REGS.
12543 * gdbarch.h, gdbarch.c: Regenerate.
12544 * stack.c (frame_info): Update.
12545 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12546 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12547 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12548 * ns32k-tdep.c (ns32k_pop_frame): Update.
12549 * mips-tdep.c (mips_pop_frame): Update.
12550 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12551 * ia64-tdep.c (ia64_frame_chain): Update.
12552 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12553 (ia64_frameless_function_invocation): Update.
12554 (ia64_init_extra_frame_info): Update.
12555 (ia64_pop_frame_regular): Update.
12556 * frame.h (struct frame_info): Update comment.
12557 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12558 * frame.c (frame_saved_regs_register_unwind): Update.
12559 (frame_saved_regs_register_unwind): Update.
12560 (deprecated_generic_get_saved_register): Update.
12561 * cris-tdep.c: Update comment.
12562 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12563 Rename macro.
12564 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12565 * x86-64-tdep.c (x86_64_init_abi): Update.
12566 * vax-tdep.c (vax_gdbarch_init): Update.
12567 * v850-tdep.c (v850_gdbarch_init): Update.
12568 * sparc-tdep.c (sparc_gdbarch_init): Update.
12569 * sh-tdep.c (sh_gdbarch_init): Update.
12570 * s390-tdep.c (s390_gdbarch_init): Update.
12571 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12572 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12573 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12574 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12575 * mips-tdep.c (mips_gdbarch_init): Update.
12576 * mcore-tdep.c (mcore_gdbarch_init): Update.
12577 * m68k-tdep.c (m68k_gdbarch_init): Update.
12578 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12579 * ia64-tdep.c (ia64_gdbarch_init): Update.
12580 * i386-tdep.c (i386_gdbarch_init): Update.
12581 * frv-tdep.c (frv_gdbarch_init): Update.
12582 * avr-tdep.c (avr_gdbarch_init): Update.
12583 * arm-tdep.c (arm_gdbarch_init): Update.
12584 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 12585
42fa7c0f
AC
125862003-03-01 Andrew Cagney <cagney@redhat.com>
12587
12588 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12589 option enum and switch. When no windows, set the interpreter to
12590 INTERP_CONSOLE.
8ffd9b1b 12591
49c7e338
AC
125922003-03-01 Andrew Cagney <cagney@redhat.com>
12593
12594 * main.c (captured_main): Replace magic option characters with an
12595 enum.
12596
e9582e71
AC
125972003-03-01 Andrew Cagney <cagney@redhat.com>
12598
12599 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12600 INIT_EXTRA_FRAME_INFO.
12601 * gdbarch.h, gdbarch.c: Regenerate.
12602 * arm-tdep.c: Update comments.
12603 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12604 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12605 * frame.h, avr-tdep.c: Ditto.
12606 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12607 (create_new_frame, legacy_get_prev_frame): Ditto.
12608 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12609 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12610 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12611 deprecated_init_extra_frame_info instead of init_extra_frame_info.
12612 * x86-64-tdep.c (x86_64_init_abi): Ditto.
12613 * v850-tdep.c (v850_gdbarch_init): Ditto.
12614 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12615 * sh-tdep.c (sh_gdbarch_init): Ditto.
12616 * s390-tdep.c (s390_gdbarch_init): Ditto.
12617 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12618 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12619 * mips-tdep.c (mips_gdbarch_init): Ditto.
12620 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12621 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12622 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12623 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12624 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12625 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12626 * frv-tdep.c (frv_gdbarch_init): Ditto.
12627 * cris-tdep.c (cris_gdbarch_init): Ditto.
12628 * avr-tdep.c (avr_gdbarch_init): Ditto.
12629 * arm-tdep.c (arm_gdbarch_init): Ditto.
12630 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12631 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12632
35cac7cf
AC
126332003-03-01 Andrew Cagney <cagney@redhat.com>
12634
12635 * gdbarch.sh (register_type): New function with predicate.
12636 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12637 * gdbarch.h, gdbarch.c: Re-generate.
12638 * arch-utils.c (generic_register_byte): Use generic_register_size.
12639 (generic_register_size): When available, use
12640 gdbarch_register_type.
12641 * regcache.c (init_regcache_descr): When available, initialize the
12642 register type array using gdbarch_register_type. If the
12643 architecture supplies gdbarch_register_type, do not use the legacy
12644 regcache layout.
12645 * d10v-tdep.c (d10v_register_type): Replace
12646 d10v_register_virtual_type.
12647 (d10v_gdbarch_init): Set register_type instead of
12648 register_virtual_type.
12649
7b83296f
AC
126502003-03-01 Andrew Cagney <cagney@redhat.com>
12651
12652 * Makefile.in (ax-gdb.o): Update dependencies.
12653 * ax-gdb.c: Include "regcache.h".
12654 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12655 * findvar.c (value_of_register): Ditto.
12656 * infcmd.c (default_print_registers_info): Ditto.
12657
eadc1c87
MK
126582003-03-01 Mark Kettenis <kettenis@gnu.org>
12659
12660 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12661 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12662
14143612
MK
126632003-03-01 Mark Kettenis <kettenis@gnu.org>
12664
12665 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12666 of STREQ.
12667
a55cc764
DJ
126682003-02-28 Daniel Jacobowitz <drow@mvista.com>
12669
12670 * Makefile.in (dwarf2loc.o): Update dependencies.
12671 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12672 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12673 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12674 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12675 (locexpr_tracepoint_var_ref): New function.
12676 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12677
08a617da
AC
126782003-02-28 Andrew Cagney <cagney@redhat.com>
12679
12680 * regcache.c (register_size): New function.
12681 * regcache.h (register_size): Declare
12682 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12683 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12684
4224873a
DC
126852003-02-28 David Carlton <carlton@math.stanford.edu>
12686
12687 * linespec.c (decode_compound): Extract code into find_method.
12688 (find_method): New.
12689
ccdc5d7f
JB
126902003-02-28 J. Brobecker <brobecker@gnat.com>
12691
12692 * Makefile.in: Add rules to build and link in observer.o.
12693
974e8ced
JB
126942003-02-27 J. Brobecker <brobecker@gnat.com>
12695
12696 * observer.c: Minor comments edits.
12697
7a28f973
JB
126982003-02-27 J. Brobecker <brobecker@gnat.com>
12699
12700 * observer.h, observer.c: New file.
12701
27cddce2
AC
127022003-02-27 Andrew Cagney <cagney@redhat.com>
12703
12704 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12705
b94a41a1
SC
127062003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12707
12708 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12709 (M6812_OP_STS_EXT): Likewise.
12710 (m6811_prologue): Use the above to recognize prologue.
12711 (m6812_prologue): Likewise.
12712
c8be8951
DC
127132003-02-27 David Carlton <carlton@math.stanford.edu>
12714
12715 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12716 SYMBOL_PRINT_NAME.
12717 (compare_psymbols): Ditto.
12718 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12719
d05bb1fc
MS
127202003-02-27 Michael Snyder <msnyder@redhat.com>
12721
4e845cd3
MS
12722 * f-lang.c (build_fortran_types): New function.
12723 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
12724 * doublest.c (extract_floating): Fix warning text.
12725
f3824013
AC
127262003-02-27 Andrew Cagney <cagney@redhat.com>
12727
12728 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12729 predicate. Replaces PUSH_DUMMY_FRAME.
12730 * gdbarch.h, gdbarch.c: Regnerate.
12731 * valops.c (hand_function_call): Update. Call
12732 generic_push_dummy_frame directly.
12733 * vax-tdep.c (vax_gdbarch_init): Update.
12734 * sparc-tdep.c (sparc_gdbarch_init): Update.
12735 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12736 * m68k-tdep.c (m68k_gdbarch_init): Update.
12737 * hppa-tdep.c (hppa_gdbarch_init): Update.
12738 * alpha-tdep.c (alpha_gdbarch_init): Update.
12739 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12740 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12741 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12742 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12743 push_dummy_frame to generic_push_dummy_frame.
12744 * v850-tdep.c (v850_gdbarch_init): Ditto.
12745 * sh-tdep.c (sh_gdbarch_init): Ditto.
12746 * s390-tdep.c (s390_gdbarch_init): Ditto.
12747 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12748 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12749 * mips-tdep.c (mips_gdbarch_init): Ditto.
12750 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12751 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12752 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12753 * i386-tdep.c (i386_gdbarch_init): Ditto.
12754 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12755 * frv-tdep.c (frv_gdbarch_init): Ditto.
12756 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12757 * cris-tdep.c (cris_gdbarch_init): Ditto.
12758 * avr-tdep.c (avr_gdbarch_init): Ditto.
12759 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 12760
ad188201
KB
127612003-02-26 Kevin Buettner <kevinb@redhat.com>
12762
12763 * mips-tdep.c (show_mips_abi): New function.
12764 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12765 command ``show mips abi''.
12766
6b37567a 127672003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 12768
6b37567a 12769 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 12770 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
12771 more sline entries have been seen for the function.
12772
d3e0a5bf
MC
127732003-02-26 Michael Chastain <mec@shout.net>
12774
12775 * configure: Regenerate with autoconf 000227.
12776
18972eea
MC
127772003-02-26 Michael Chastain <mec@shout.net>
12778
12779 Close PR build/660.
12780 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12781 for old libc5/glibc.
12782 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12783
0bbde931
KW
127842003-02-26 Kris Warkentin <kewarken@qnx.com>
12785
12786 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12787 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12788
27ca5dad
MC
127892003-02-26 Michael Chastain <mec@shout.net>
12790
12791 * configure.in: New variable HAVE_UINTPTR_T.
12792 * configure, config.in: Regenerated.
12793
6f88d630
DJ
127942003-02-26 Daniel Jacobowitz <drow@mvista.com>
12795
12796 Fix PR build/1097.
12797 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12798
b14185ce
AC
127992003-02-25 Andrew Cagney <cagney@redhat.com>
12800
12801 * frame.c (get_prev_frame): Add comment on check for
12802 inside_entry_func. Only check for inside_entry_file when not a
12803 dummy and not a sentinel. Check that the new frame is not inner
12804 to the old frame.
12805
ac2bd0a9
AC
128062003-02-25 Andrew Cagney <cagney@redhat.com>
12807
12808 * frame.c (frame_debug): New variable.
12809 (_initialize_frame): Add "set/show debug frame" command.
12810 (get_prev_frame): When frame_debug, print reason why unwind
12811 failed.
12812
b18a0fd2
MC
128132003-02-25 Michael Chastain <mec@shout.net>
12814
12815 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12816 to avoid uintptr_t definition problems.
12817
22abf04a
DC
128182003-02-25 David Carlton <carlton@math.stanford.edu>
12819
12820 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12821 (SYMBOL_LINKAGE_NAME): Ditto.
12822 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12823 SYMBOL_LINKAGE_NAME.
12824 (struct general_symbol_info): Expand comment.
12825 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12826 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12827 (SYMBOL_MATCHES_REGEXP): Ditto.
12828 * symtab.c (symbol_natural_name): New function.
12829 * objfiles.h: Replace all uses of SYMBOL_NAME by
12830 DEPRECATED_SYMBOL_NAME.
12831 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12832 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12833 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12834 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12835 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12836 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12837 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12838 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12839 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12840 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12841 * ada-exp.y: Ditto.
12842 * ada-exp.y: Update copyright.
12843 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12844 * cp-valprint.c: Ditto.
12845
1a5848f6
JJ
128462003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12847
12848 * infptrace.c (detach): Do not flag error if ptrace detach fails
12849 and errno is set to ESRCH.
12850
7343d46a
AC
128512003-02-24 Andrew Cagney <cagney@redhat.com>
12852
12853 * infptrace.c (udot_info): Change type of udot_off to long. Use
12854 paddr when printing udot_off's value.
12855
49fa1dc2
DC
128562003-02-24 David Carlton <carlton@math.stanford.edu>
12857
12858 * symtab.c (make_symbol_overload_list): Only read in partial
12859 symtabs containing a matching partial symbol.
12860
0fe19209
DC
128612003-02-24 David Carlton <carlton@math.stanford.edu>
12862
12863 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12864 do the comparison, not strcmp.
12865 * symfile.c (compare_psymbols): Ditto.
12866 * defs.h: Declare strcmp_iw_ordered.
12867 * utils.c (strcmp_iw_ordered): New function.
12868
8e3ee7b5
JB
128692003-02-24 Jim Blandy <jimb@redhat.com>
12870
12871 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12872 support, shared libs): Remove my name from here, to better reflect
12873 reality.
12874
7df1a324
KW
128752003-02-24 Kris Warkentin <kewarken@qnx.com>
12876
12877 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12878 (target_ops): Add to_have_continuable_watchpoint.
12879 * target.c (update_current_target): Add INHERIT line for
12880 to_have_continuable_watchpoint.
12881 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12882 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12883 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12884 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12885
d1c76907
EZ
128862003-02-24 Elena Zannoni <ezannoni@redhat.com>
12887
12888 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12889 maintainership.
12890
2610b0bf
KW
128912003-02-24 Kris Warkentin <kewarken@qnx.com>
12892
f46169db
KW
12893 * solib.c (solib_open): Call target defined search function after
12894 failing with solib-search-path.
12895 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12896 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 12897
9a3c34fe
KW
128982003-02-24 Kris Warkentin <kewarken@qnx.com>
12899
f46169db 12900 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 12901
2417dd25
SC
129022003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12903
12904 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12905
b631436b
SC
129062003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12907
12908 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12909 (m68hc11_add_reggroups): New function.
12910 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12911 (m68hc11_gdbarch_init): Install the reggroups.
12912 (_initialize_m68hc11_tdep): Initialize them.
12913
0aa8c1e4
JW
129142003-02-21 James E Wilson <wilson@tuliptree.org>
12915
12916 * MAINTAINERS: Update my email address.
12917
50ceaba5
DC
129182003-02-21 David Carlton <carlton@math.stanford.edu>
12919
12920 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12921
4c2df51b
DJ
129222003-02-21 Daniel Jacobowitz <drow@mvista.com>
12923
12924 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12925 * symtab.h: Add opaque declarations of struct axs_value and
12926 struct agent_expr.
12927 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12928 (struct location_funcs): New type.
12929 (struct symbol): Add "loc" to aux_value.
12930 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12931 * dwarf2read.c: Include "dwarf2expr.h".
12932 (dwarf2_symbol_mark_computed): New function.
12933 (read_func_scope): Use it.
12934 (var_decode_location): New function.
12935 (new_symbol): Use it.
12936 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12937
12938 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12939 (dwarf2expr_h, dwarf2loc_h): New variables.
12940 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12941 (dwarf2expr.o, dwarf2loc.o): New rules.
12942 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12943 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12944 LOC_COMPUTED_ARG.
12945 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12946 * m2-exp.y (yylex): Likewise.
12947 * printcmd.c (address_info, print_frame_args): Likewise.
12948 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12949 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12950 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12951 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12952 * symtab.c (lookup_block_symbol): Likewise.
12953
5784d15e
AF
129542003-02-20 Adam Fedor <fedor@gnu.org>
12955
12956 * symtab.h: Remove objc_specific struct
12957 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12958 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12959 Have language_objc use cplus_specific struct.
12960
d4cad8db
TT
129612003-02-20 Tom Tromey <tromey@redhat.com>
12962
12963 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12964 TYPE_NAME, when printing a String value. PR java/1075.
12965
2f9a90b4
AF
129662003-02-20 Adam Fedor <fedor@gnu.org>
12967
d38074a8 12968 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 12969 * objc-lang.c (find_methods): Make static.
2f9a90b4 12970
6f17862b
CF
129712003-02-20 Christopher Faylor <cgf@redhat.com>
12972
12973 * win32-nat.c (get_image_name): Check return value from
12974 ReadProcessMemory.
12975 (child_xfer_memory): Ditto.
12976
715d1656
AO
129772003-02-20 Alexandre Oliva <aoliva@redhat.com>
12978
12979 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12980 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12981 '${exec_prefix}' (in addition to the expansion thereof) as
12982 relocatable.
12983 * configure: Rebuilt.
12984
b1262a02
DC
129852003-02-20 David Carlton <carlton@math.stanford.edu>
12986
12987 * symtab.c (search_symbols): Revert the search_symbols part of my
12988 2002-12-23 patch. Add comment.
12989
7134143f
DJ
129902002-02-20 Daniel Jacobowitz <drow@mvista.com>
12991
12992 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12993 * dbxread.c (elfstab_build_psymtabs): Don't call
12994 install_minimal_symbols.
12995 (stabsect_build_psymtabs): Likewise.
12996 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12997 earlier.
12998 * somread.c (som_symfile_read): Call install_minimal_symbols
12999 and do_cleanups earlier.
13000 * nlmread.c (nlm_symfile_read): Likewise.
13001 * mdebugread.c (elfmdebug_build_psymtabs): Call
13002 install_minimal_symbols and make appropriate cleanups.
13003
cf466558
KB
130042003-02-20 Kevin Buettner <kevinb@redhat.com>
13005
13006 * solib.c (reload_shared_libraries): New function.
13007 (_initialize_solib): Add callbacks for ``set solib-search-path''
13008 and ``set solib-absolute-prefix''.
13009
de5ad195
DC
130102003-02-20 David Carlton <carlton@math.stanford.edu>
13011
13012 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
13013 expand comment.
13014 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
13015 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
13016 * ada-typeprint.c (ada_typedef_print): Ditto.
13017 * ax-gdb.c (gen_var_ref): Ditto.
13018 * breakpoint.c (print_one_breakpoint): Ditto.
13019 * buildsym.c (finish_block): Ditto.
13020 * c-valprint.c (c_val_print): Ditto.
13021 * expprint.c (print_subexp): Ditto.
13022 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
13023 * infcmd.c (jump_command): Ditto.
13024 * linespec.c (decode_line_2, decode_compound): Ditto.
13025 * maint.c (maintenance_translate_address): Ditto.
13026 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
13027 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
13028 Ditto.
8ffd9b1b
AJ
13029 * p-valprint.c (pascal_val_print): Ditto.
13030 * stabsread.c (define_symbol): Ditto.
de5ad195 13031 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
13032 (print_frame_arg_vars, return_command): Ditto.
13033 * symfile.c (compare_symbols, compare_psymbols): Ditto.
13034 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
13035 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
13036 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
13037 (rbreak_command): Ditto.
13038 * tracepoint.c (tracepoints_info): Ditto.
13039 * typeprint.c (typedef_print): Ditto.
13040 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
13041 * cli/cli-cmds.c (edit_command, list_command): Ditto.
13042 * ada-typeprint.c: Update Copyright.
13043 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
13044 * tracepoint.c, cli/cli-cmds.c: Ditto.
13045
f796e4be
KB
130462003-02-20 Kevin Buettner <kevinb@redhat.com>
13047
13048 * frame.c (generic_unwind_get_saved_register): Make non-static.
13049 * frame.h (generic_unwind_get_saved_register): Declare.
13050 * mips-tdep.c (read_next_frame_reg): Fetch register from
13051 current regcache when frame is NULL.
13052 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
13053 that must be NULL.
13054 (mips_get_saved_register): Call generic_unwind_get_saved_register()
13055 instead of frame_register_unwind().
13056
836cc9f4
AC
130572003-02-20 Andrew Cagney <ac131313@redhat.com>
13058
13059 * remote-sim.c (gdbsim_insert_breakpoint)
13060 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
13061 code.
13062
501eef12
AC
130632003-02-20 Andrew Cagney <ac131313@redhat.com>
13064
13065 * remote.c (_initialize_remote): Add commands "set/show remote
13066 hardware-watchpoint-limit" and "set/show remote
13067 hardware-breakpoint-limit".
13068 (remote_hw_watchpoint_limit): Initialize to -1.
13069 (remote_hw_breakpoint_limit): Ditto.
13070 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
13071
1b6bc7e0
CF
130722003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
13073
13074 * coff-pe-read.c: New file - support reading of minimal symbols from a
13075 portable executable using the export table.
13076 * coff-pe-read.h: New file.
13077 * coffread.c: Include coff-pe-read.h.
13078 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
13079 debugging symbols found.
13080 * Makefile.in (SFILES): Add coff-pe-read.o.
13081 (coff_pe_read_h): Define.
13082 (COMMON_OBS): Add coff-pe-read.o.
13083 (coffread.o): Add coff_pe_read_h dependency.
13084 (coff-pe-read.o): New target.
13085
fe898f56
DC
130862003-02-19 David Carlton <carlton@math.stanford.edu>
13087
13088 * Makefile.in (SFILES): Add block.c.
13089 (block_h): New.
13090 (COMMON_OBS): Add block.o.
13091 (block.o): New.
13092 (x86-64-tdep.o): Add $(block_h).
13093 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
13094 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
13095 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
13096 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
13097 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
13098 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
13099 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
13100 * value.h: Add opaque declaration for struct block.
13101 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
13102 * ada-lang.h: Ditto.
13103 * x86-64-tdep.c: #include "block.h"
13104 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
13105 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
13106 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
13107 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
13108 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
13109 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
13110 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
13111 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
13112 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
13113 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
13114 * symtab.c (block_function): Ditto.
13115 (contained_in): Ditto.
13116 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
13117 block.h. Add opaque declaration for struct block.
13118 * symtab.h: Move block_function and contained_in declarations to
13119 block.h. Add opaque declarations for struct block, struct
13120 blockvector.
13121 (struct block): Move to block.h.
13122 (struct blockvector): Ditto.
13123 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
13124 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
13125 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
13126 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
13127 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
13128 Ditto.
13129 * block.c: New file.
13130 * block.h: New file.
13131
173345b5
TR
131322003-02-19 Theodore A. Roth <troth@openavr.org>
13133
13134 * avr-tdep.c (avr_extract_return_value): Remove function.
13135 (avr_store_return_value): Remove function.
13136 (avr_extract_struct_value_address): Remove function.
13137 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
13138
338ef23d
AC
131392003-02-19 Andrew Cagney <ac131313@redhat.com>
13140
13141 * rs6000-tdep.c: Include "gdb_assert.h".
13142 (registers_e500): Add "acc" and "spefscr".
13143 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
13144 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
13145 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
13146 really is "r0".
13147 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
13148
5412f5f3
KS
131492003-02-18 Keith Seitz <keiths@redhat.com>
13150
13151 * Makefile.in: Add gdbtk-interps.c.
13152
881324eb
KB
131532003-02-18 Kevin Buettner <kevinb@redhat.com>
13154
13155 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
13156 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
13157
6a2f5abf
AC
131582003-02-18 Andrew Cagney <cagney@redhat.com>
13159
13160 * symtab.h (struct objfile): Add opaque declaration.
13161
54c7009d
EZ
131622003-02-18 Elena Zannoni <ezannoni@redhat.com>
13163
13164 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
13165 * dbxread.c (process_one_symbol): Use last_function_start rather
13166 than function_start_offset to find the real beginning of the
13167 current function. The latter is just the text section offset on
13168 some systems, the former is always the real function start.
54c7009d 13169
7ee6d7eb
AC
131702003-02-17 Andrew Cagney <cagney@redhat.com>
13171
13172 * configure.in: Revert ${target} != ${host}.
13173
2846da9b
AC
131742003-02-17 Andrew Cagney <ac131313@redhat.com>
13175
13176 * configure.in (Makefile): Use the test ${target} != ${host},
13177 instead of the absence of the "nm.h" file, to determine of the
13178 configuration non-native.
13179 * configure: Regenerate.
8ffd9b1b 13180
3b27aeea
EZ
131812003-02-14 Elena Zannoni <ezannoni@redhat.com>
13182
fbe586ae 13183 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
13184
13185 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
13186 conditionalize tui_active test.
13187 (lookup_cmd_1): Ditto.
13188
b0b1c2c0
MK
131892003-02-14 Mark Kettenis <kettenis@gnu.org>
13190
13191 * configure.in: Add check for _etext.
13192 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
13193 available.
13194 * config.in, configure: regenerated.
13195
8f05cde5
DJ
131962003-02-14 Daniel Jacobowitz <drow@mvista.com>
13197
13198 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
13199
021e7609
AC
132002003-02-14 Andrew Cagney <ac131313@redhat.com>
13201
13202 * main.c (tui_version): Delete variable.
13203 (captured_main): When --tui, set interpreter_p to "tui" instead of
13204 enabling tui_version.
13205 * printcmd.c (display_command) [TUI]: Test tui_active instead of
13206 tui_version.
13207 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
13208 * cli/cli-cmds.c (disassemble_command): Ditto.
13209 * defs.h (tui_version): Delete declaration.
13210 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
13211 (tui-interp.o): Add rules.
13212 (SUBDIR_TUI_OBS): Add "tui-interp.o".
13213
e325dcec
CF
132142003-02-14 Christopher Faylor <cgf@redhat.com>
13215
36ffb041 13216 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
13217 just-loaded dll.
13218
c4f90d87
JM
132192003-02-12 Jason Molenda (jmolenda@apple.com)
13220
fbe586ae
RH
13221 * symmisc.c (print_objfile_statistics): Include information about
13222 the number of psymtabs and symtabs in each object file.
c4f90d87 13223
e46e5ccd
KS
132242003-02-13 Keith R Seitz <keiths@redhat.com>
13225
13226 * main.h (struct captured_main_args): Add interpreter_p.
13227 * main.c (captured_main): Initialize interpreter_p from context.
13228 * gdb.c (main): Set interpreter_p argument.
13229 * Makefile.in (gdb.o): Add dependency for interps.h.
13230
fe97fe9c
AC
132312003-02-12 Andrew Cagney <ac131313@redhat.com>
13232
13233 * event-top.c (cli_command_loop): Delete declaration.
13234 (_initialize_event_loop): Delete function setting event_loop_hook.
13235 * event-top.h (cli_command_loop): Declare. Update copyright.
13236 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
13237 * interps.c (current_interp_command_loop): When event_loop_p, call
13238 cli_command_loop.
13239
1cdac4ef
AC
132402003-02-12 Andrew Cagney <ac131313@redhat.com>
13241
13242 * interps.h (interp_command_loop_ftype): Change return type to
13243 void.
13244
48037ead
ML
132452003-02-12 Michal Ludvig <mludvig@suse.cz>
13246
13247 * x86-64-tdep.c (x86_64_extract_return_value)
13248 (x86_64_store_return_value): Use regcache instead of regbuf.
13249 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
13250 * x86-64-linux-nat.c (fill_gregset): Use regcache.
13251
033afc63
AC
132522003-02-11 Andrew Cagney <ac131313@redhat.com>
13253
13254 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
13255 * aclocal.m4: Regenerate.
13256 * configure: Regenerate.
13257
13258 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
13259 TCL_LD_SEARCH_FLAGS.
13260
40d02bca
ML
132612003-02-10 Michal Ludvig <mludvig@suse.cz>
13262
13263 * dwarf2cfi.c: Reindented.
13264
11308a41
AC
132652003-02-09 Andrew Cagney <ac131313@redhat.com>
13266
13267 * interps.c (clear_interpreter_hooks): Convert function definition
13268 to ISO C.
13269
e1c1c0f6
DC
132702003-02-07 David Carlton <carlton@math.stanford.edu>
13271
13272 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
13273
ab5d3da6
KB
132742003-02-07 Kevin Buettner <kevinb@redhat.com>
13275
13276 * gdbtypes.h (struct main_type): Move ``length'' field from here...
13277 (struct type): ...to here.
13278 (TYPE_LENGTH): Adjust to reflect different location of ``length''
13279 field.
13280 * gdbtypes.c (make_qualified_type): Set length on newly created type.
13281 (replace_type): Set length on all type variants for a given type.
13282
b8a92b82
AC
132832003-02-07 Andrew Cagney <ac131313@redhat.com>
13284
13285 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
13286 <sys/stat.h>.
13287 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 13288
5cb316ef
AC
132892003-02-06 Andrew Cagney <ac131313@redhat.com>
13290
2555fe1a
AC
13291 * Makefile.in (symm-nat.o): Update dependencies.
13292 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
13293 (lynx-nat.o, ia64-linux-nat.): Ditto.
13294 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
13295 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
13296 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
13297
44270758
AC
13298 * Makefile.in (inflow_h): Define.
13299 (procfs.o, inflow.o, procfs.o): Update dependencies.
13300 * inftarg.c (child_stop): Delete extern declaration of
13301 inferior_process_group. Include "inflow.h".
13302 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
13303 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
13304 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
13305 (our_process_group, inferior_process_group): Extern declarations.
13306
df8f7274
AC
13307 * procfs.c: Include "gdb_assert.h".
13308
5cb316ef
AC
13309 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
13310 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
13311 * jv-typeprint.c (java_type_print_base): Ditto.
13312 * typeprint.c (typedef_print): Eliminate STREQ.
13313 * cli/cli-script.c (define_command, define_command): Ditto.
13314 * main.c (captured_main): Ditto.
13315 * values.c (lookup_internalvar): Ditto.
13316 * utils.c (safe_strerror, parse_escape): Eliminate assignment
13317 within `if' conditional.
13318 * linespec.c (decode_line_2): Ditto.
13319 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
13320 (bfd_openw_with_cleanup): Ditto.
13321
2a28ccea
MK
133222003-02-07 Mark Kettenis <kettenis@gnu.org>
13323
13324 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
13325 legacy_extract_return_value and store_return_value to
13326 legacy_return_value.
13327
786b8124
CF
133282003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
13329
13330 * win32-nat.c (get_relocated_section_addrs): New function. Find
13331 section load addresses for symbol handling in relocated DLLs.
13332 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
13333
b871e4ec
FF
133342003-02-05 Fred Fish <fnf@intrinsity.com>
13335
13336 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
13337 '=' and '!='.
13338 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
13339 with '&' and '=='.
13340 (angel_RDI_info): Ditto.
13341 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
13342 with '&' and '!='.
13343 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 13344
4389a95a 133452003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
13346 Keith Seitz <keiths@redhat.com>
13347 Elena Zannoni <ezannoni@redhat.com>
13348 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
13349
13350 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
13351 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
13352 (SUBDIR_MI_OBS): Add "mi-interp.o".
13353 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
13354 (SFILES): Add "interps.c".
13355 (COMMON_OBS): Add "interps.o".
13356 (interps_h, mi_main_h): Define.
13357 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
13358 (mi-main.o, main.o, event-top.o): Update dependencies.
13359 * cli/cli-interp.c: New file.
13360 * interps.h, interps.c: New files.
13361 * top.c: (gdb_init): Don't install the default interpreter, handed
13362 by captured_main.
13363 * main.c: Include "interps.h".
13364 (interpreter_p): Note that it should malloc'ed.
13365 (captured_command_loop): Call current_interp_command_loop.
13366 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
13367 xfree and xstrdup when updating interpreter_p. Install the
13368 default interpreter. Add hack to stop mi1's copyright notice
13369 being encoded.
13370 * event-top.h (gdb_setup_readline): Declare.
13371 (gdb_disable_readline): Declare.
13372 * event-top.c: Include "interps.h".
13373 (display_gdb_prompt): Call current_interp_display_prompt_p.
13374 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
13375 gdb_stdlog, and gdb_stdtarg.
13376 (_initialize_event_loop): Don't call gdb_setup_readline.
13377 * cli-out.c (cli_out_set_stream): New function.
13378 * cli-out.h (cli_out_set_stream): Declare.
13379
ff3b5810
MK
133802003-02-06 Mark Kettenis <kettenis@gnu.org>
13381
13382 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
13383 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
13384 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
13385 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
13386 config/i386/i386v42mp.mt: Removed.
13387
5b729aa5
MK
133882003-02-05 Mark Kettenis <kettenis@gnu.org>
13389
13390 * configure.tgt (*-*-solaris*): Set gdb_osabi to
13391 GDB_OSABI_SOLARIS.
13392
8cc15142
MC
133932003-02-05 Michael Chastain <mec@shout.net>
13394
13395 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
13396 2.12.1 and earlier versions.
13397
5aa5d4b9
AC
133982003-02-05 Andrew Cagney <ac131313@redhat.com>
13399
13400 Remove orphaned hosts, targets and files.
13401 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
13402 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
13403 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
13404 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
13405 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
13406 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
13407 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
13408 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
13409 * config/sparc/tm-sp64sim.h: Delete.
13410 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
13411 hosts.
13412 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
13413 mips*-dec-mach3* targets.
13414
b68767c1
MC
134152003-02-04 Michael Chastain <mec@shout.net>
13416
13417 * NEWS: Fix typo: sepcifying -> specifying.
13418
5ae7ca1d
MC
134192003-02-04 Michael Chastain <mec@shout.net>
13420
13421 * dwarfread.c: Add documentation on the state of dwarf-1,
13422 looking towards obsoletion.
13423
d08a4280
MC
134242003-02-03 Michael Chastain <mec@shout.net>
13425
13426 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
13427 gdb/testsuite/gdb.c++/pr-1023.exp.
13428
e9be73e4
AC
134292003-02-04 Andrew Cagney <ac131313@redhat.com>
13430
13431 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13432 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13433
13434 * utils.c (init_page_info): Delete reference to MPW in comments.
13435 * main.c (captured_main): Delete #ifdef MPW.
13436
05d57f6f
AC
134372003-02-04 Andrew Cagney <ac131313@redhat.com>
13438
8ffd9b1b 13439 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
13440 * monitor.c (monitor_expect): Obsolete reference to m32r.
13441 * configure.tgt: Mark m32r-*-elf* as obsolete.
13442 * MAINTAINERS: Mark m32k as obsolete.
13443 * m32r-rom.c: Obsolete file.
13444 * config/m32r/m32r.mt: Obsolete file.
13445 * config/m32r/tm-m32r.h: Obsolete file.
13446 * m32r-stub.c: Obsolete file.
13447 * m32r-tdep.c: Obsolete file.
13448
8b0e5691
AC
134492003-02-04 Andrew Cagney <ac131313@redhat.com>
13450
13451 * NEWS: Mention that the z8k-zilog-none is obsolete.
13452 * MAINTAINERS: Mark z8k as obsolete.
13453 * configure.tgt: Obsolete the z8k-*-coff* target.
13454 * config/z8k/z8k.mt: Obsolete file.
13455 * config/z8k/tm-z8k.h: Obsolete file.
13456 * z8k-tdep.c: Obsolete file.
13457
67f16606
AC
134582003-02-04 Andrew Cagney <ac131313@redhat.com>
13459
13460 * NEWS: Mention that the mn10200-elf is obsolete.
13461 * configure.tgt: Obsolete mn10200-*-* target.
13462 * breakpoint.c (update_breakpoints_after_exec): Update comment to
13463 mention that the mn10200 is obsolete.
13464 * breakpoint.h: Ditto.
13465 * MAINTAINERS: Mark the mn10200-elf as obsolete.
13466 * config/mn10200/mn10200.mt: Obsolete file.
13467 * config/mn10200/tm-mn10200.h: Obsolete file.
13468 * mn10200-tdep.c: Obsolete file.
13469
fd2299bd
AC
134702003-02-04 Andrew Cagney <ac131313@redhat.com>
13471
13472 * MAINTAINERS: Mark h8500 as obsolete.
13473 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13474 * findvar.c (value_from_register): Ditto.
13475 * h8500-tdep.c: Mark file as obsolete.
13476 * config/h8500/h8500.mt: Ditto.
13477 * config/h8500/tm-h8500.h: Ditto.
13478 * NEWS: Mention that h8500 is obsolete.
13479
eb9a305d
DC
134802003-02-04 David Carlton <carlton@math.stanford.edu>
13481
13482 * objfiles.c (allocate_objfile): Always set name. Add comment at
13483 start of function.
13484 * jv-lang.c (get_dynamics_objfile): Add comment.
13485
406fc7fb
DC
134862003-02-04 David Carlton <carlton@math.stanford.edu>
13487
13488 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13489 * printcmd.c (build_address_symbolic): Replace uses of
13490 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13491 SYMBOL_NAME, and asm_demangle.
13492 Update copyright.
13493
93d91629
DC
134942003-02-04 David Carlton <carlton@math.stanford.edu>
13495
13496 * linespec.c (decode_compound): Extract code into
13497 lookup_prefix_sym.
13498 (lookup_prefix_sym): New function.
13499
1c5cb38e
DC
135002003-02-04 David Carlton <carlton@math.stanford.edu>
13501
13502 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13503 FLOAT_COERCION_BADNESS.
13504 * gdbtypes.c (rank_one_type): Replace all uses of
13505 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13506
0cf824c9
JB
135072003-02-04 Jim Blandy <jimb@redhat.com>
13508
13509 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13510 section, let dwarf_macinfo_section point to it, not
13511 dwarf_loc_section.
13512
a2d356b0
DJ
135132003-02-04 Daniel Jacobowitz <drow@mvista.com>
13514
13515 Pointed out by Anton Blanchard <anton@samba.org>.
13516 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13517 (ppc_linux_at_sigtramp_return_path): Use it.
13518
2de7ced7
DJ
135192003-02-04 Daniel Jacobowitz <drow@mvista.com>
13520
13521 * defs.h (streq): Add prototype.
13522 * utils.c (streq): New function.
13523
13524 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13525 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13526 * mdebugread.c (new_symbol): Likewise.
13527 * stabsread.c (define_symbol): Likewise.
13528 * coffread.c (process_coff_symbol): Likewise.
13529 * dwarfread.c (new_symbol): Likewise.
13530
13531 * minsyms.c (prim_record_minimal_symbol_and_info): Use
13532 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
13533 here.
13534 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13535 SYMBOL_INIT_DEMANGLED_NAME.
13536 * objfiles.c: Include "hashtab.h".
13537 (allocate_objfile): Call htab_set_functions_ex for the
13538 demangled_names_hash.
13539 (free_objfile): Call htab_delete for the demangled_names_hash.
13540 * objfiles.h (struct htab): Add declaration.
13541 (struct objfile): Add demangled_names_hash.
13542 * symfile.c: Include "hashtab.h".
13543 (reread_symbols): Call htab_delete for the demangled_names_hash.
13544 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13545 SYMBOL_NAME in the bcache.
13546 * symtab.c: Include "hashtab.h". Update comments.
13547 (create_demangled_names_hash, symbol_set_names): New functions.
13548 (symbol_find_demangled_name): New function, broken out from
13549 symbol_init_demangled_names.
13550 (symbol_init_demangled_names): Use it.
13551 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13552 (SYMBOL_SET_NAMES): New macro.
13553 (symbol_set_names): Add prototype.
13554
15831452
JB
135552003-02-03 Jim Blandy <jimb@redhat.com>
13556
13557 Use a single, consistent representation for an empty minimal
13558 symbol table in an objfile.
13559 * objfiles.c (terminate_minimal_symbol_table): New function.
13560 (allocate_objfile): Call it.
13561 * objfiles.h (terminate_minimal_symbol_table): New declaration.
13562 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 13563 non-NULL.
15831452
JB
13564 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13565 objfile has minimal symbols, compare minimal_symbol_count to zero,
13566 instead of comparing msymbols with NULL.
13567 * objfiles.c (have_minimal_symbols): Same.
13568 * solib-sunos.c (solib_add_common_symbols): Call
13569 terminate_minimal_symbol_table.
13570 * symfile.c (reread_symbols): Same.
8ffd9b1b 13571
ffc65945
KB
135722003-02-03 Kevin Buettner <kevinb@redhat.com>
13573
13574 * s390-tdep.c (s390_address_class_type_flags)
13575 (s390_address_class_type_flags_to_name)
13576 (s390_address_class_name_to_type_flags): New functions.
13577 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13578 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13579
f211c6d4
MS
135802003-02-03 Michael Snyder <msnyder@redhat.com>
13581
13582 * arm-tdep.c: Fix spell-o in comment.
13583
659b0389
ML
135842003-02-03 Michal Ludvig <mludvig@suse.cz>
13585
13586 * dwarf2cfi.c (pointer_encoding): Added new parameter.
13587 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 13588 error messages to contain BFD filename.
659b0389 13589
3b31d625
EZ
135902003-02-02 Elena Zannoni <ezannoni@redhat.com>
13591
997b089a 13592 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
13593 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13594 (do_mixed_source_and_assembly): Use
13595 make_cleanup_ui_out_tuple_begin_end and
13596 make_cleanup_ui_out_tuple_begin_end.
13597 (do_mixed_source_and_assembly): Ditto.
13598 * thread.c (do_captured_list_thread_ids): Ditto.
13599 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13600 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13601 ui_out_tuple_end): Delete prototypes.
13602 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13603 ui_out_list_end, ui_out_tuple_end): Delete.
13604
13605 From Kevin Buettner <kevinb@redhat.com>:
13606 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
13607 * ui-out.c (make_cleanup_ui_out_table_begin_end)
13608 (do_cleanup_table_end): New functions.
13609 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13610 Use cleanups to invoke_ui_out_tuple_end().
13611 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
13612 * cli/cli-setshow.c (cmd_show_list): Use
13613 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 13614
5b181d62
AC
136152003-02-02 Andrew Cagney <ac131313@redhat.com>
13616
13617 * frame.c (frame_unwind_register): New function.
13618 (frame_unwind_unsigned_register): Use.
13619 (frame_unwind_signed_register): Use.
13620 (frame_read_register): New function.
13621 * frame.h (frame_unwind_register): Declare.
13622 (frame_read_register): Declare.
13623
13624 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13625 and frame_unwind_register instead of read_memory, write_register
13626 and deprecated_write_register_bytes.
13627
5f601589
AC
136282003-02-02 Andrew Cagney <ac131313@redhat.com>
13629
13630 * frame.h: Note that namelen can be negative.
13631 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13632 NAME's length.
13633
13634 * NEWS: Mention that the d10v's `regs' command is deprecated.
13635 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13636 (d10v_print_registers_info): New function.
13637 (show_regs): Call d10v_print_registers_info.
13638 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13639
6a3fe0a4
MK
136402003-02-02 Mark Kettenis <kettenis@gnu.org>
13641
13642 * stack.c (print_frame_info): Restore call to annotate_frame_begin
13643 lost in the previous patch.
13644
075559bc
AC
136452003-02-01 Andrew Cagney <ac131313@redhat.com>
13646
13647 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
13648 * stack.c (print_frame_info_base): Output complete FRAME tuple
13649 for synthesized frames.
075559bc 13650
6789195b
AC
136512003-02-02 Andrew Cagney <ac131313@redhat.com>
13652
13653 * mips-nat.c (zerobuf): Delete.
13654 (fetch_inferior_registers): Alloc local zerobuf.
13655 (fetch_core_registers): Alloc local zerobuf.
13656 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13657 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13658 * thread-db.c (thread_db_store_registers): Ditto.
13659 * sh-tdep.c (sh_do_register): Ditto.
13660 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13661 * remote-sim.c (gdbsim_store_register): Ditto.
13662 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13663 * remote-e7000.c (fetch_regs_from_dump): Ditto.
13664 * monitor.c (monitor_supply_register): Ditto.
13665 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13666 * mips-nat.c (fetch_inferior_registers): Ditto.
13667 * m68klinux-nat.c (fetch_register): Ditto.
13668 * lynx-nat.c (fetch_inferior_registers): Ditto.
13669 (fetch_inferior_registers): Ditto.
13670 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13671 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13672 (hpux_thread_store_registers): Ditto.
13673 * hppah-nat.c (fetch_register): Ditto.
13674 * hppab-nat.c (fetch_register): Ditto.
13675 * hppa-tdep.c (pa_register_look_aside): Ditto.
13676 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13677 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13678
e669114a
AC
136792003-02-01 Andrew Cagney <ac131313@redhat.com>
13680
13681 * gdbarch.sh: Explictly specify all method levels. When a
13682 variable with an empty level, provide a non-multi-arch default.
13683 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13684 * gdbarch.h: Re-generate.
13685 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13686 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13687
9a043c1d
AC
136882003-02-01 Andrew Cagney <ac131313@redhat.com>
13689
13690 * defs.h (host_pointer_to_address): Delete declaration.
13691 (address_to_host_pointer): Delete declaration.
13692 * utils.c (host_pointer_to_address): Delete function.
13693 (address_to_host_pointer): Delete function.
13694 * procfs.c (procfs_address_to_host_pointer): New function.
13695 * procfs.c (proc_set_watchpoint): Use.
13696 (procfs_can_use_hw_breakpoint): Update comments.
13697 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13698 (som_solib_add): Use.
13699 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13700 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 13701
7ca9f392
AC
137022003-02-01 Andrew Cagney <ac131313@redhat.com>
13703
94bbfd30
AC
13704 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13705 strlen d_name.
13706
7ca9f392
AC
13707 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13708 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13709 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13710 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13711 (define_symbol): Update.
13712 * symfile.c (generic_load): Remove references to nindy.
13713 * symtab.c: Remove references to nindy.
13714
31a85ea2
AC
137152003-02-01 Andrew Cagney <ac131313@redhat.com>
13716
13717 * infcmd.c (print_float_info): Delete code conditional on
13718 FLOAT_INFO.
13719 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13720 * config/m68k/nm-apollo68b.h: Ditto.
13721 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13722 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13723 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13724
f6e85fc8
MK
137252003-02-01 Mark Kettenis <kettenis@gnu.org>
13726
6015b6a0
MK
13727 * config/i386/tm-i386os9k.h: Removed.
13728
f7a30bdf
MK
13729 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13730 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13731 they're identical to i[3456]86-*-sysv* now.
13732 * config/i386/i386v32.mh: Removed.
13733 * config/i386/xm-i386v32.h: Removed.
13734 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13735
28d52111
MK
13736 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13737
4d3f6bce
MK
13738 * config/i386/i386dgux.mh: Removed.
13739 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13740
f6e85fc8
MK
13741 * configure.in: Fix typo.
13742 * configure: Regenerated.
13743
53955967
DC
137442003-01-31 David Carlton <carlton@math.stanford.edu>
13745
13746 * dwarf2read.c (dwarf2_locate_sections): Set
13747 dwarf_ranges_section.
13748
b1364885
AC
137492003-01-31 Andrew Cagney <ac131313@redhat.com>
13750
8dbb1c65
AC
13751 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13752 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 13753
8731e58e
AC
13754 * utils.c: Re-indent.
13755
b1364885
AC
13756 * config/djgpp/fnchange.lst: Delete nindy files.
13757 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13758 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13759 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13760 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13761 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13762 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13763 * Makefile.in (init.c): Remove nindy references.
13764 (saber_gdb): Delete rule.
13765 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13766 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13767 and a68v-nat.c.
13768 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13769 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13770 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13771 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13772 nindy-share/stop.h.
13773 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13774 * saber.suppress: Delete file.
13775
086df311
DJ
137762003-01-31 Daniel Jacobowitz <drow@mvista.com>
13777
13778 * dbxread.c (stabs_data): New static variable.
13779 (fill_symbuf): Support an in-memory buffer for stabs data.
13780 (stabs_seek): New function.
13781 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13782 (read_ofile_symtab): Use stabs_seek.
13783 (elfstab_build_psymtabs): Take an asection* instead of
13784 an offset and size. Relocate the stabs data if necessary.
13785 Save the section* for dbx_psymtab_to_symtab.
13786 * dwarf2read.c: Add section variables for each debug section.
13787 (dwarf2_locate_sections): Fill them in.
13788 (dwarf2_read_section): Take an asection* argument.
13789 Relocate the section contents if necessary.
13790 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13791 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13792 it to dwarf2_read_section.
13793 (dwarf2_build_frame_info): Update callers.
13794 * elfread.c (elf_symfile_read): Update call to
13795 elfstab_build_psymtabs.
13796 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13797 (DBX_STAB_SECTION): New macro.
8ffd9b1b 13798 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
13799 * symfile.c (symfile_dummy_outputs): New function.
13800 (symfile_relocate_debug_section): New function.
13801 * symfile.h (symfile_relocate_debug_section): Add prototype.
13802
87d1b352
RH
138032003-01-31 Richard Henderson <rth@redhat.com>
13804
13805 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13806 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13807 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13808 * alpha-tdep.c (alpha_register_name): Add "unique".
13809 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13810 (ALPHA_UNIQUE_REGNUM): New.
13811 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13812
c48861fb
AC
138132003-01-31 Andrew Cagney <ac131313@redhat.com>
13814
13815 * README: Remove reference to Ericsson 1800 monitor.
13816 * Makefile.in (remote-es.o): Delete rule.
13817 (ALLDEPFILES): Delete remote-es.c.
13818 * remote-es.c: Delete file.
13819 * config/m68k/es1800.mt: Delete file.
13820 * config/djgpp/fnchange.lst: Update.
13821 * configure.tgt: Delete m68*-ericsson-* target.
13822
d764a824
AF
138232003-01-31 Adam Fedor <fedor@gnu.org>
13824
13825 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13826 Remove duplicate/shadowing variable of same name.
13827
fe36c4f4
JB
138282003-01-30 Jim Blandy <jimb@redhat.com>
13829
13830 * symfile.c (find_separate_debug_file): Assert that the objfile's
13831 directory name we compute ends with a slash, and then assume that
13832 that's so everywhere we use it.
13833
cb741690
DJ
138342003-01-30 Daniel Jacobowitz <drow@mvista.com>
13835
13836 * valops.c (value_assign): Flush frame cache after stores to memory
13837 also.
13838
96ee5227
AC
138392003-01-30 Andrew Cagney <ac131313@redhat.com>
13840
13841 * Makefile.in (mon960-rom.o): Delete rule.
13842 * mon960-rom.c: Delete file.
13843
7f6104a9
AC
138442003-01-30 Andrew Cagney <ac131313@redhat.com>
13845
13846 * d10v-tdep.c: Include "frame-unwind.h".
13847 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13848 list.
13849 (next_addr, uses_frame): Delete.
13850 (struct d10v_unwind_cache): Define.
13851 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13852 Use info instead of next_addr and uses_frame globals.
13853 (d10v_frame_init_saved_regs): Delete function.
13854 (d10v_init_extra_frame_info): Delete function.
13855 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13856 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13857 init_frame_pc or frame_saved_pc.
13858 (d10v_pop_frame): Delete function.
13859 (do_d10v_pop_frame): Delete function.
13860 (d10v_frame_chain): Delete function.
13861 (d10v_frame_chain_valid): Delete function.
13862 (d10v_frame_pc_unwind): New function.
13863 (d10v_frame_id_unwind): New function.
13864 (saved_regs_unwinder): New function.
13865 (d10v_frame_register_unwind): New function.
13866 (d10v_frame_pop): New function.
13867 (d10v_frame_unwind): New variable.
13868 (d10v_frame_p): New function.
13869 (d10v_frame_saved_pc): Delete function.
13870 * Makefile.in (d10v-tdep.o): Update dependencies.
13871
cad2e848
JB
138722003-01-30 J. Brobecker <brobecker@gnat.com>
13873
13874 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13875 causing some regressions due to a change in the default value
13876 for this macro.
13877
af34e669
DJ
138782003-01-29 Richard Henderson <rth@redhat.com>
13879 Elena Zannoni <ezannoni@redhat.com>
13880 Daniel Jacobowitz <drow@mvista.com>
13881
13882 Fix PR gdb/961.
8ffd9b1b 13883 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
13884 variables.
13885 (RANGES_SECTION): New.
13886 (dwarf_ranges_buffer): New variable.
13887 (struct comp_unit_head): Add member "die".
13888 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13889 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13890 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13891 (dwarf2_locate_sections): Likewise.
13892 (dwarf2_build_psymtabs): Read .debug_ranges.
13893 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13894 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13895 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13896 Look for DW_AT_ranges and return the bounding box.
13897
baa93fa6
CF
138982003-01-29 Brian Ford <ford@vss.fsi.com>
13899
13900 * win32-nat.c (cygwin_pid): Removed as unused.
13901 (child_attach): Try fall back to Cygwin pid.
13902
c63f977f
JB
139032003-01-29 Jim Blandy <jimb@redhat.com>
13904
13905 * objfiles.h (struct objfile): Doc fix.
13906
d62d1979
AC
139072003-01-29 Andrew Cagney <ac131313@redhat.com>
13908
13909 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13910 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13911 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13912 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13913 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13914 (FRAME_SAVED_PC): Change to a function with predicate.
13915 * gdbarch.h, gdbarch.c: Re-generate.
13916
1ae18a04
AC
139172003-01-28 Andrew Cagney <ac131313@redhat.com>
13918
52287340
AC
13919 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13920
1ae18a04
AC
13921 * complaints.c (complain): Delete function.
13922 * complaints.h (struct deprecated_complaint): Delete definition.
13923 (complain): Delete declaration.
13924
f2c16bd6
KB
139252003-01-28 Kevin Buettner <kevinb@redhat.com>
13926
13927 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13928 dummy frames.
13929
a94dd1fd
AC
139302003-01-27 Andrew Cagney <ac131313@redhat.com>
13931
13932 * sentinel-frame.h, sentinel-frame.c: New files.
13933 * Makefile.in (frame.o): Update dependencies.
13934 (SFILES): Add sentinel-frame.c.
13935 (sentinel_frame_h): Define.
13936 (COMMON_OBS): Add sentinel-frame.o.
13937 (sentinel-frame.o): Specify dependencies.
13938 * frame.c: Include "sentinel-frame.h".
13939 (frame_register_unwind): Rewrite assuming that there is always a a
13940 ->next frame.
13941 (frame_register, generic_unwind_get_saved_register): Ditto.
13942 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13943 (create_sentinel_frame, unwind_to_current_frame): New functions.
13944 (get_current_frame): Rewrite using create_sentinel_frame and
13945 unwind_to_current_frame. When possible, always create a frame.
13946 (create_new_frame): Set next to the sentinel frame.
13947 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13948 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13949 ID cache when necessary.
13950 (frame_saved_regs_id_unwind): Use frame_relative_level.
13951 (deprecated_generic_get_saved_register): Use frame_relative_level,
13952 get_frame_saved_regs, get_frame_pc, get_frame_base and
13953 get_next_frame.
13954 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13955 frame_register.
13956
5378adc4
DJ
139572003-01-27 Daniel Jacobowitz <drow@mvista.com>
13958
13959 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13960
51ee2ddc
DJ
139612003-01-27 Daniel Jacobowitz <drow@mvista.com>
13962
13963 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13964 (maintenance_set_profile_cmd): Use error () instead of warning ().
13965
d9feb4e7
DJ
139662003-01-27 Daniel Jacobowitz <drow@mvista.com>
13967
13968 * configure.in: Check that -pg works if using --enable-profiling.
13969 Check for monstartup and _mcleanup regardless of --enable-profiling.
13970 * maint.c: Check for monstartup and _mcleanup before using them.
13971 * config.in: Regenerated.
13972 * configure: Regenerated.
13973
2d188dd3
NC
139742003-01-24 Nick Clifton <nickc@redhat.com>
13975
13976 * Add sh2e support:
13977
13978 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13979
13980 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13981 (sh2e_show_regs): New.
13982 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13983 * config/sh/tm-sh.h: Added sh2e to comments.
13984
cb3c37b2
JB
139852003-01-23 Jim Blandy <jimb@redhat.com>
13986
13987 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13988 symbols found)" message here; we haven't checked for a separate
13989 debug info file yet, so we don't know yet.
13990 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13991 we've looked everywhere. Also, there's no need to print a special
13992 message when we're loading the separate debug info file: the one
13993 symbol_file_add prints is fine.
13994
5b5d99cf
JB
139952003-01-23 Alexander Larsson <alexl@redhat.com>
13996 Jim Blandy <jimb@redhat.com>
13997
13998 Add support for executables whose debug info has been separated
13999 out into a separate file, leaving only a link behind.
14000 * objfiles.h (struct objfile): New fields: separate_debug_objfile
14001 and separate_debug_objfile_backlink.
14002 (put_objfile_before): New declaration.
14003 * symfile.c: #include "filenames.h".
14004 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
14005 debug info in a separate file, read that, too. Save the addrs
14006 argument, so we can use it again to read the separated debug info;
14007 syms_from_objfile modifies the table we pass it.
14008 (reread_symbols): After re-reading an objfile, call
14009 reread_separate_symbols to refresh its separate debug info
14010 objfile, if it has one.
14011 (reread_separate_symbols, find_separate_debug_file,
14012 get_debug_link_info, separate_debug_file_exists): New functions.
14013 (debug_file_directory): New global var.
14014 (_initialize_symfile): Initialize debug_file_directory, and
14015 provide the new `set debug-file-directory' command to let the user
14016 change it.
14017 * objfiles.c (free_objfile): If this objfile has its debug info in
14018 a separate objfile, free that one too. If this is itself a
14019 separate debug info objfile, clear our parent's backlink.
14020 (put_objfile_before): New function.
14021 * utils.c (gnu_debuglink_crc32): New function.
14022 * defs.h (gnu_debuglink_crc32): New declaration.
14023 * Makefile.in (symfile.o): Note dependency on "filenames.h".
14024 * configure.in: Handle --with-separate-debug-dir config option.
14025 * acinclude.m4 (AC_DEFINE_DIR): New macro.
14026 * acconfig.h (DEBUGDIR): New macro.
14027 * configure, aclocal.m4, config.in: Regenerated.
14028
7e8580c1
JB
140292003-01-22 Jim Blandy <jimb@redhat.com>
14030
7904e09f
JB
14031 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
14032 like the old symbol_file_add, but taking new arguments: you can
14033 now pass in either a `struct section_addr_info' list to say where
14034 each section is loaded, or a `struct section_offsets' table. Pass
14035 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 14036 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
14037 with the appropriate quiescent values for the new arguments.
14038
7e8580c1
JB
14039 * symfile.c: #include "gdb_assert.h".
14040 (syms_from_objfile): Add the ability to pass in a section offset
14041 table directly, as an alternative to the section_addr_info table.
14042 Document arguments better.
14043 (symbol_file_add): Pass extra arguments to syms_from_objfile.
14044 * symfile.h (syms_from_objfile): Update declaration.
14045 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
14046 syms_from_objfile.
14047 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
14048
d28f9cdf
DJ
140492003-01-22 Daniel Jacobowitz <drow@mvista.com>
14050
14051 Original patch by Tom Tromey <tromey@cygnus.com> and
14052 Jason Molenda <jmolenda@apple.com>.
14053 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
14054 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
14055 * NEWS: Mention profiling.
14056 * configure.in (--enable-gdbtk): Fix typo.
14057 (--enable-profiling): New. Set PROFILE_CFLAGS.
14058 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
14059 Fill in function.
14060 (profiling_state): New variable.
14061 (mcleanup_wrapper): New function.
14062 (_initialize_maint): Remove NOTYET, fix call to
14063 add_setshow_boolean_cmd for "maint set profile".
14064 * configure: Regenerated.
14065
df21e465
MH
140662003-01-21 Martin M. Hunt <hunt@redhat.com>
14067
14068 * Makefile.in (install-gdbtk): Install PNG images too.
14069
73c1f219
AC
140702003-01-21 Andrew Cagney <ac131313@redhat.com>
14071
14072 * exec.c (text_start): Delete global variable.
14073 (exec_file_attach): Make text_start local to the function.
14074 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
14075 * valops.c (hand_function_call): Delete code that handles
14076 BEFORE_TEXT_END and AFTER_TEXT_END.
14077 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
14078 of CALL_DUMMY_LOCATION.
14079 * gdbarch.c: Regenerate.
14080 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
14081 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
14082 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
14083 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
14084 (text_end): Delete extern declaration.
14085
eb4f72c5
AC
140862003-01-21 Andrew Cagney <ac131313@redhat.com>
14087
14088 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
14089 * blockframe.c (backtrace_below_main): Move to "frame.c".
14090 (frame_chain_valid): Delete check for backtrace_below_main.
14091 (_initialize_blockframe): Delete initialization, move ``set
14092 backtrace-below-main'' command to "frame.c".
14093 (do_flush_frames_sfunc): Delete function.
14094 * frame.c: Include "command.h" and "gdbcmd.h".
14095 (frame_type_from_pc): New function.
14096 (create_new_frame): Use frame_type_from_pc.
14097 (legacy_get_prev_frame): New function.
14098 (get_prev_frame): Rewrite. When an old style frame, call
14099 legacy_get_prev_frame. Otherwize, unwind the PC first.
14100 (_initialize_frame): Add ``set backtrace-below-main'' command.
14101 * Makefile.in (frame.o): Update dependencies.
14102
778ce8cc
AC
141032003-01-19 Andrew Cagney <ac131313@redhat.com>
14104
14105 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
14106 DEPRECATED_REGISTERS_INFO.
14107
01c193c8
AC
141082003-01-19 Andrew Cagney <ac131313@redhat.com>
14109
14110 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
14111 Maintainers'. Update `Various Maintainers'.
14112
dedc2a2b
AC
141132003-01-19 Andrew Cagney <ac131313@redhat.com>
14114
14115 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
14116 * gdbarch.sh (POP_FRAME): Change to function with predicate.
14117 Suppress actual parameters when `-'.
14118 * gdbarch.h, gdbarch.c: Regenerate.
14119
b7261c70
AC
141202003-01-19 Andrew Cagney <ac131313@redhat.com>
14121
14122 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
14123 code handling dummy frames.
14124
dbe9fe58
AC
141252003-01-19 Andrew Cagney <ac131313@redhat.com>
14126
14127 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
14128 (struct frame_unwind): Add field pop.
14129 * frame.h (frame_pop): Declare.
14130 * frame.c (frame_saved_regs_pop): New function.
14131 (trad_frame_unwinder): Add frame_saved_regs_pop.
14132 (frame_pop): New function.
14133 * dummy-frame.c (dummy_frame_pop): New function.
14134 (discard_innermost_dummy): New function.
14135 (generic_pop_dummy_frame): Use discard_innermost_dummy.
14136 (dummy_frame_unwind): Add dummy_frame_pop.
14137 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
14138 * valops.c (hand_function_call): Ditto.
14139 * stack.c (return_command): Ditto.
14140
570b8f7c
AC
141412003-01-18 Andrew Cagney <ac131313@redhat.com>
14142
14143 * cris-tdep.c: Fix function declaration indentation.
14144 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
14145 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
14146 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
14147 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
14148 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
14149 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
14150
141512003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
14152
14153 * README (Unpacking and Installation -- quick overview):
14154 Warn against ".../gdb-5.3/gdb/configure".
14155
494cca16
AC
141562003-01-18 Andrew Cagney <ac131313@redhat.com>
14157
14158 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
14159 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
14160 (struct frame_unwind): Declare opaque.
14161 (dummy_frame_p): Declare function.
14162 * dummy-frame.c (dummy_frame_id_unwind): Make static.
14163 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
14164 * dummy-frame.c: Include "frame-unwind.h".
14165 (dummy_frame_p): New function.
14166 (dummy_frame_unwind): New variable.
14167 * frame.c: Include "frame-unwind.h".
14168 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
14169 to use the new unwind field.
14170 (set_unwind_by_pc): Delete function.
14171 (create_new_frame, get_prev_frame): Set unwind field using
14172 frame_unwind_find_by_pc.
14173 (trad_frame_unwind, trad_frame_unwinder): New variables.
14174 * frame.h (trad_frame_unwind): Declare variable.
14175 (frame_id_unwind_ftype): Delete declaration.
14176 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
14177 (struct frame_unwind): Declare opaque.
14178 (struct frame_info): Replace the fields id_unwind, pc_unwind and
14179 register_unwind with a single unwind pointer.
14180 * frame-unwind.h, frame-unwind.c: New files.
14181 * Makefile.in (SFILES): Add frame-unwind.c.
14182 (frame_unwind_h): Define.
14183 (COMMON_OBS): Add frame-unwind.o.
14184 (frame-unwind.o): Specify dependencies.
14185 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 14186
4efb68b1
AC
141872003-01-18 Andrew Cagney <ac131313@redhat.com>
14188
14189 * ada-valprint.c: Eliminate PTR.
14190 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
14191 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
14192 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
14193 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
14194 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
14195 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
14196 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 14197
a84d24ee
AC
141982003-01-17 Andrew Cagney <ac131313@redhat.com>
14199
762f08a3
AC
14200 * main.c (captured_main): Don't use PTR.
14201 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
14202 * gdbtypes.c (lookup_primitive_typename): Ditto.
14203 (lookup_struct_elt_type): Ditto.
14204 * f-valprint.c (info_common_command): Ditto.
14205 (list_all_visible_commons): Ditto.
14206 * jv-typeprint.c (java_type_print_base): Ditto.
14207
a84d24ee
AC
14208 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
14209 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
14210 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
14211 i386-interix-nat.c and i386-interix-tdep.c. Rename
14212 m68klinux-nat.c and m68klinux-tdep.c. Rename
14213 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
14214 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
14215 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
14216 * main.c (captured_main): Use xfree, not free.
14217
c170fb60
AC
142182003-01-16 Andrew Cagney <ac131313@redhat.com>
14219
14220 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
14221 ID back using a parameter.
14222 * frame.c (frame_id_unwind): Update call.
14223 (frame_saved_regs_id_unwind): Update.
14224 * dummy-frame.c (dummy_frame_id_unwind): Update function.
14225 * dummy-frame.h (struct frame_id): Add opaque declaration.
14226 (dummy_frame_id_unwind): Update declaration.
14227
867f3898
AC
142282003-01-15 Andrew Cagney <ac131313@redhat.com>
14229
14230 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
14231
40622be8 142322003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 14233
40622be8 14234 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 14235
ae66c1fc
EZ
142362003-01-14 Elena Zannoni <ezannoni@redhat.com>
14237
997b089a 14238 Fix PR gdb/898
ae66c1fc
EZ
14239 * breakpoint.c (until_break_command): Add new argument. Use it to
14240 decide whether to stop only at the current frame or not.
14241 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 14242 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
14243 call.
14244 (advance_command): New function.
14245 (_initialize_infcmd): Update help string for 'until' command.
14246 Add new 'advance' command.
14247
a04257e6
DC
142482003-01-14 David Carlton <carlton@math.stanford.edu>
14249
14250 * linespec.c (decode_line_1): Normalize comments.
14251 (set_flags): Ditto.
14252 (locate_first_half): Ditto.
14253 (decode_compound): Ditto.
14254 (symtab_from_filename): Ditto.
14255 (decode_all_digits): Ditto.
14256 (decode_dollar): Ditto.
14257 (find_methods): Ditto.
14258 (find_toplevel_char): Ditto.
14259
1bac305b
AC
142602003-01-13 Andrew Cagney <ac131313@redhat.com>
14261
14262 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
14263 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
14264 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
14265 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
14266 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
14267 * language.c, language.h, m32r-tdep.c: Update copyright.
14268 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
14269 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
14270 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
14271 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
14272 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
14273 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
14274
25caa7a8
EZ
142752003-01-13 Elena Zannoni <ezannoni@redhat.com>
14276
14277 * stabsread.h (process_later, resolve_cfront_continuation):
14278 Obsolete.
14279 Update copyright years.
14280 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
14281 Update copyright year.
14282 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 14283 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
14284 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
14285 Update copyright year.
14286 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
14287 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
14288 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
14289 (parse_partial_symbols): Obsolete cfront support.
14290 * stabsread.c
14291 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
14292 macros.
14293 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
14294 read_cfront_baseclasses, read_cfront_member_functions,
14295 resolve_cfront_continuation,read_cfront_static_fields,
14296 copy_cfront_struct_fields): Obsolete functions.
14297 (define_symbol, read_one_struct_field): Obsolete cfront support.
14298 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
14299 Update Copyright year.
14300
7789c6f5
EZ
143012003-01-13 Elena Zannoni <ezannoni@redhat.com>
14302
14303 * stack.c (print_frame_info, print_stack_frame_base_stub,
14304 print_stack_frame_base, show_and_print_stack_frame_stub,
14305 show_and_print_stack_frame, print_only_stack_frame_stub,
14306 print_only_stack_frame): Delete functions.
14307 (print_stack_frame_stub): Call print_frame_info instead of
14308 print_frame_info_base.
14309 (print_frame_info_base): Rename to print_frame_info.
14310 (backtrace_command_1): Call print_frame_info, instead of
14311 print_frame_info_base.
14312 (current_frame_command): Call print_stack_frame, instead of
14313 print_only_stack_frame.
14314 (frame_command): Call print_stack_frame, instead of
14315 show_and_print_stack_frame.
14316 (up_command): Ditto.
14317 (down_command): Ditto.
14318 * frame.h (print_only_stack_frame): Delete prototype.
14319 * infrun.c (normal_stop): Call print_stack_frame, instead of
14320 show_and_print_stack_frame.
14321 * thread.c (info_threads_command): Call print_stack_frame, instead
14322 of print_only_stack_frame.
14323
3f5a3016
AC
143242003-01-13 Andrew Cagney <ac131313@redhat.com>
14325
d99ba314
AC
14326 * README (Graphical interface to GDB): Update URL. Point at
14327 gdb/links/.
14328
3f5a3016
AC
14329 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
14330 version match.
14331
083ae935
DJ
143322003-01-13 Daniel Jacobowitz <drow@mvista.com>
14333
14334 * symtab.c (find_pc_sect_line): Don't consider end-of-function
14335 lines.
14336
5365276c
DJ
143372003-01-13 Daniel Jacobowitz <drow@mvista.com>
14338
14339 * thread-db.c (attach_thread): Prototype.
14340 (struct private_thread_info): Remove lwpid. Add thread handle (th),
14341 thread information (ti), and valid flags (th_valid, ti_valid).
14342 (attach_thread): Move target_pid_to_str call to after the thread
14343 is added to GDB's list. Initialize the cache.
14344 (thread_get_info_callback, thread_db_map_id2thr)
14345 (thread_db_get_info): New functions.
14346 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
14347 (thread_db_store_registers, thread_db_thread_alive)
14348 (thread_db_get_thread_local_address): Use them.
14349 (thread_db_pid_to_str): Likewise. Return "Missing" instead
14350 of calling error() for threads in unknown state.
14351
14352 (clear_lwpid_callback): New function.
14353 (thread_db_resume): Use it to clear the cache.
14354
9fc30b6b
DJ
143552003-01-13 Daniel Jacobowitz <drow@mvista.com>
14356
14357 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
14358 (resume_callback): Remove dead code.
14359
8f871025
AC
143602003-01-13 Andrew Cagney <ac131313@redhat.com>
14361
14362 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
14363 predicate.
14364 * gdbarch.h, gdbarch.c: Regenerate.
14365 * stack.c (frame_info): Only initialize the saved registers when
14366 FRAME_INIT_SAVED_REGS_P.
14367 * frame.c (frame_saved_regs_register_unwind): Assert
14368 FRAME_INIT_SAVED_REGS_P.
14369 (deprecated_generic_get_saved_register): Ditto.
14370
3f565f1e
DJ
143712003-01-13 Daniel Jacobowitz <drow@mvista.com>
14372
14373 * source.c (openp): Squelch warning about "filename".
14374
072b1022
DJ
143752003-01-13 Daniel Jacobowitz <drow@mvista.com>
14376
14377 * source.c (openp): If the file does not exist don't necessarily
14378 search the path.
14379
973ccf8b
DJ
143802003-01-13 Daniel Jacobowitz <drow@mvista.com>
14381
14382 Fix PR gdb/872.
14383 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
14384 (integer_types_same_name_p): New function.
14385 (rank_one_type): Use it.
14386 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
14387
030292b7
DJ
143882003-01-13 Daniel Jacobowitz <drow@mvista.com>
14389
14390 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
14391 variables.
14392 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
14393 * configure.in: Add --with-sysroot.
14394 * configure: Regenerated.
14395 * main.c (gdb_sysroot): New variable.
14396 (captured_main): Initialize gdb_sysroot.
14397 * defs.h (gdb_sysroot): New extern declaration.
14398 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
14399
afb5d334
MC
144002003-01-12 Michael Chastain <mec@shout.net>
14401
14402 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
14403
751ceeb4
MC
144042003-01-12 Michael Chastain <mec@shout.net>
14405
14406 * top.c (print_gdb_version): Bump copyright year to 2003.
14407
94cd26f8
DC
144082003-01-12 David Carlton <carlton@bactrian.org>
14409
14410 * linespec.c (symtab_from_filename): Rename variable 's' to
14411 'file_symtab'.
14412
1ce79225
AC
144132003-01-12 Andrew Cagney <ac131313@redhat.com>
14414
14415 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
14416 dummy frame.
14417 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
14418
fa1fd571
AC
144192003-01-12 Andrew Cagney <ac131313@redhat.com>
14420
14421 * d10v-tdep.c: Include "gdb_assert.h".
14422 (d10v_store_return_value): Rewrite to match current interface.
14423 (d10v_extract_struct_value_address): Ditto.
14424 (d10v_extract_return_value): Ditto.
14425 (d10v_gdbarch_init): Set store_restore_value,
14426 extract_struct_value_address and extract_return_value.
14427
68b8d23e
JB
144282003-01-12 J. Brobecker <brobecker@gnat.com>
14429
14430 * hpread.c (set_namestring): New procedure replacing the
14431 SET_NAMESTRING macro.
14432 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
14433 by calls to set_namestring.
14434
144352003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
14436
14437 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14438 a compilation warning.
14439 (hpread_process_one_debug_symbol): Likewise.
14440
88d262ca
DC
144412003-01-10 David Carlton <carlton@math.stanford.edu>
14442
14443 * linespec.c (decode_line_1): Rename variable 's' to
14444 'file_symtab'.
14445 (decode_all_digits): Rename argument 's' to 'file_symtab'.
14446 (decode_dollar): Ditto.
14447 (decode_variable): Ditto.
14448 (symbol_found): Ditto.
14449
86669319
MC
144502003-01-09 Michael Chastain <mec@shout.net>
14451
14452 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14453
616a9dc4
CV
144542003-01-07 Corinna Vinschen <vinschen@redhat.com>
14455
14456 * win32-nat.c (set_process_privilege): New function.
14457 (child_attach): Call set_process_privilege() to enable the
14458 SE_DEBUG_NAME user privilege if available in process token.
14459
3269bcfa
JB
144602003-01-10 J. Brobecker <brobecker@gnat.com>
14461
14462 * hpread.c (hpread_process_one_debug_symbol): Fix a small
14463 compilation error in the previous revision.
14464
2b0ee454
DC
144652003-01-09 David Carlton <carlton@math.stanford.edu>
14466
14467 * linespec.c: Update copyright.
14468
b3ba1b44
DJ
144692003-01-09 Daniel Jacobowitz <drow@mvista.com>
14470
14471 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
14472 than inferior_ptid.
14473 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14474
4ef3f3be
AC
144752003-01-09 Andrew Cagney <ac131313@redhat.com>
14476
479ab5a0
AC
14477 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14478 Update comments.
14479 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14480 (frame_saved_regs_zalloc): Update.
14481 (frame_saved_regs_register_unwind): Update.
14482 (create_new_frame): Update.
14483 (get_prev_frame): Update.
14484 (frame_extra_info_zalloc): Update.
14485 (deprecated_get_frame_saved_regs): Update.
14486 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14487 * cris-tdep.c: Update comment.
14488
bde58177
AC
14489 * somsolib.h: Fix function indentation.
14490 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14491 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14492 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14493 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14494 * somsolib.c, inftarg.c: Remove assignment in if conditional.
14495
4ef3f3be
AC
14496 * infrun.c (follow_fork): Use ISO C definition.
14497 * expprint.c (print_subexp): Use xfree instead of free.
14498 * charset.c: Include "gdb_string.h" instead of <string.h>.
14499 (register_iconv_charsets): Use ISO C definition.
14500 (host_charset, target_charset): Ditto.
14501 * Makefile.in (charset.o): Update dependencies.
14502 (mi-cmd-env.o): Update dependencies.
14503
1c615f7a
AC
145042003-01-08 Andrew Cagney <cagney@redhat.com>
14505
14506 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14507 get_frame_base.
14508
c9a1dc08
AC
145092003-01-08 Andrew Cagney <ac131313@redhat.com>
14510
14511 * gdb_mbuild.sh: Add --keep option. When specified, keep the
14512 build directories. Save edited gdb output in Mbuild.log. If a
14513 build fails, remove any final GDB executable.
14514
dbad9d94
AC
145152003-01-08 Andrew Cagney <ac131313@redhat.com>
14516
14517 * gdb_mbuild.sh: Edit the output of `maint print architecture'
14518 replacing hex constants with function names and stripping leading
14519 file name directory prefixes.
14520
8d357cca
AC
145212003-01-08 Andrew Cagney <cagney@redhat.com>
14522
14523 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14524 get_frame_base.
14525
bca02a8a
DC
145262003-01-08 David Carlton <carlton@math.stanford.edu>
14527
14528 * linespec.c (decode_line_1): Move code into decode_variable.
14529 (decode_variable): New function.
14530
7f8ab3a0
AC
145312003-01-08 Andrew Cagney <ac131313@redhat.com>
14532
14533 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14534
7b5849cc
AC
145352003-01-08 Andrew Cagney <cagney@redhat.com>
14536
14537 * cris-tdep.c (cris_frame_init_saved_regs): Use
14538 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14539 saved_regs buffer.
14540 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14541 (sh64_nofp_frame_init_saved_regs): Ditto.
14542 (sh_fp_frame_init_saved_regs): Ditto.
14543 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14544 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14545 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14546 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14547
72a5efb3
DJ
145482003-01-08 Daniel Jacobowitz <drow@mvista.com>
14549
14550 * minsyms.c (lookup_minimal_symbol): Update comment.
14551 (lookup_minimal_symbol_text): Update comment. Use the hash table.
14552 (lookup_minimal_symbol_solib_trampoline): Likewise.
14553
11c02a10
AC
145542003-01-08 Andrew Cagney <cagney@redhat.com>
14555
aab3ea25
AC
14556 * d10v-tdep.c (d10v_init_extra_frame_info): Use
14557 frame_relative_level.
14558
da50a4b7
AC
14559 * alpha-tdep.c: Use get_frame_extra_info.
14560 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14561 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14562 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14563 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14564
11c02a10
AC
14565 * alpha-tdep.c: Use get_next_frame.
14566 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14567 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14568 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14569 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14570 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14571 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14572 * xstormy16-tdep.c: Ditto.
8ffd9b1b 14573
1e2330ba
AC
145742003-01-07 Andrew Cagney <cagney@redhat.com>
14575
14576 * alpha-tdep.c: Use get_frame_base.
14577 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14578 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14579 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14580 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14581 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14582 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14583 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14584 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 14585
2d75187b
AC
145862003-01-07 Andrew Cagney <cagney@redhat.com>
14587
14588 * frame.c (deprecated_get_frame_context): New function.
14589 (deprecated_set_frame_context): New function.
14590 * frame.h (deprecated_get_frame_context): Declare.
14591 (deprecated_set_frame_context): Declare.
14592 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14593 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 14594
483d36b2
AC
145952003-01-07 Andrew Cagney <cagney@redhat.com>
14596
14597 * frame.c (deprecated_set_frame_next_hack): New function.
14598 (deprecated_set_frame_prev_hack): New function.
14599 * frame.h (deprecated_set_frame_next_hack): Declare.
14600 (deprecated_set_frame_prev_hack): Declare.
14601 * mcore-tdep.c (analyze_dummy_frame): Use
14602 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14603 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14604
14e91ac5
DC
146052003-01-07 David Carlton <carlton@math.stanford.edu>
14606
14607 * linespec.c (decode_line_1): Move code into decode_dollar.
14608 (decode_dollar): New function.
14609
b0c6b05c
AC
146102003-01-07 Andrew Cagney <cagney@redhat.com>
14611
14612 * arm-tdep.c (arm_init_extra_frame_info): Use
14613 deprecated_update_frame_base_hack.
14614 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14615 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14616 (fix_frame_pointer): Ditto.
14617 (mn10300_analyze_prologue): Ditto.
14618
a00a19e9
AC
146192003-01-07 Andrew Cagney <cagney@redhat.com>
14620
14621 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14622 extra_info using frame_extra_info_zalloc.
14623 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14624 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14625 (sh64_init_extra_frame_info): Ditto.
14626 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14627 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14628 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14629 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14630 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14631 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14632 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14633 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14634 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14635 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14636 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14637 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14638
14639 * mn10300-tdep.c (analyze_dummy_frame): Use
14640 deprecated_set_frame_extra_info_hack.
14641 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14642
1fb4c65b
JB
146432003-01-07 J. Brobecker <brobecker@gnat.com>
14644
14645 * mdebugread.c (parse_symbol): Skip stProc entries which storage
14646 class is not scText. These do not define "real" procedures.
14647 (parse_partial_symbols): Likewise.
14648
9fe7d6bf
MS
146492003-01-06 Michael Snyder <msnyder@redhat.com>
14650
14651 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14652
f6c609c4
AC
146532003-01-06 Andrew Cagney <ac131313@redhat.com>
14654
14655 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14656 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14657 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14658 deprecated_frame_xmalloc_with_cleanup.
14659 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14660 deprecated_frame_xmalloc.
14661 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14662 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14663
d995ff4b
AC
146642003-01-06 Andrew Cagney <cagney@redhat.com>
14665
84dc46cb
AC
14666 * x86-64-linux-tdep.c: Include "osabi.h".
14667 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14668
d995ff4b
AC
14669 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14670
66140c26
AC
146712003-01-06 Andrew Cagney <cagney@redhat.com>
14672
14673 * MAINTAINERS (Target Instruction Set Architectures): Update
14674 arm-elf. Can be built with -Werror, has been multiarched.
14675
14676 * value.h (unpack_long): Make buffer parameter constant.
14677 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14678 * scm-lang.h (scm_parse): Ditto.
14679 * defs.h (extract_typed_address, extract_address): Ditto.
14680 (extract_long_unsigned_integer): Ditto.
14681 * inferior.h (unsigned_pointer_to_address): Ditto.
14682 (signed_pointer_to_address): Ditto.
14683 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14684 * gdbarch.h, gdbarch.c: Regenerate.
14685 * findvar.c (extract_long_unsigned_integer): Update.
14686 (extract_address): Update.
14687 (extract_typed_address): Update.
14688 (unsigned_pointer_to_address): Update.
14689 * values.c (unpack_long): Update.
14690 (unpack_double): Update.
14691 (unpack_pointer): Update.
14692 (unpack_field_as_long): Update.
14693 * d10v-tdep.c (d10v_pointer_to_address): Update.
14694 * avr-tdep.c (avr_pointer_to_address): Update.
14695 * scm-lang.c (scm_unpack): Update.
14696 * findvar.c (signed_pointer_to_address): Update.
14697
b089b3da
ML
146982003-01-06 Michal Ludvig <mludvig@suse.cz>
14699
8ffd9b1b 14700 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
14701 since it is in i386-tdep.c.
14702
aff87235
JB
147032003-01-06 J. Brobecker <brobecker@gnat.com>
14704
14705 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14706 failure introduced in the previous change.
14707
34f5e845
MC
147082003-01-05 Michael Chastain <mec@shout.net>
14709
14710 * README: Remove references to deleted remote-*.c files:
14711 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14712 remote-nrom.c, remote-os9k.c, remote-udi.c.
14713
28bcfd30
MK
147142003-01-05 Mark Kettenis <kettenis@gnu.org>
14715
14716 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14717 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14718 i386_get_longjmp_target.
14719
15a5b3ee
AC
147202003-01-05 Andrew Cagney <ac131313@redhat.com>
14721
14722 * arm-tdep.c (prologue_cache): Change to a pointer.
14723 (_initialize_arm_tdep): Allocate prologue_cache.
14724 (check_prologue_cache): Update.
14725 (save_prologue_cache): Update.
14726 (arm_gdbarch_init): Update.
14727
c263362b
DJ
147282003-01-04 Daniel Jacobowitz <drow@mvista.com>
14729
14730 * stabsread.c (update_method_name_from_physname): Call complaint()
14731 instead of error.
14732
51603483
DJ
147332003-01-04 Daniel Jacobowitz <drow@mvista.com>
14734
14735 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14736 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14737 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14738
14739 * blockframe.c: Include "gdbcmd.h" and "command.h".
14740 (backtrace_below_main): New variable.
14741 (file_frame_chain_valid, func_frame_chain_valid)
14742 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14743 (generic_func_frame_chain_valid): Remove functions.
14744 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14745 (_initialize_blockframe): New function.
14746 * Makefile.in (blockframe.o): Update dependencies.
14747 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14748 comment. Call frame_chain_valid ().
14749 * frame.h: Remove old prototypes. Add prototype for
14750 frame_chain_valid and update comments to match.
14751 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14752 Remove old comment.
14753 * gdbarch.h: Regenerated.
14754 * gdbarch.c: Regenerated.
14755
14756 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14757 set_gdbarch_frame_chain_valid.
14758 * avr-tdep.c (avr_gdbarch_init): Likewise.
14759 * cris-tdep.c (cris_gdbarch_init): Likewise.
14760 * frv-tdep.c (frv_gdbarch_init): Likewise.
14761 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14762 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14763 (i386_nw_init_abi): Likewise.
14764 (i386_gdbarch_init): Likewise.
14765 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14766 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14767 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14768 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14769 * mips-tdep.c (mips_gdbarch_init): Likewise.
14770 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14771 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14772 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14773 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14774 * s390-tdep.c (s390_gdbarch_init): Likewise.
14775 * sh-tdep.c (sh_gdbarch_init): Likewise.
14776 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14777 * v850-tdep.c (v850_gdbarch_init): Likewise.
14778 * vax-tdep.c (vax_gdbarch_init): Likewise.
14779 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14780
14781 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14782 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14783 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14784 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14785 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14786 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14787 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14788 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14789
b00a8037
DJ
147902002-01-04 Daniel Jacobowitz <drow@mvista.com>
14791
14792 * Makefile.in (acconfig_h): Remove incorrect macro.
14793 (config_h): Define.
14794 (osabi.o): Update dependencies.
14795 * configure.tgt: Set gdb_osabi based on target triplet.
14796 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14797 * configure: Regenerated.
14798 * config.in: Regenerated.
14799 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14800 (GDB_OSABI_DEFAULT): Define if not already defined.
14801 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14802 (set_osabi_string): New variables.
14803 (gdbarch_register_osabi): Add new OS ABI to
14804 gdb_osabi_available_names.
14805 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14806 (set_osabi, show_osabi): New functions.
14807 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14808
4be87837
DJ
148092003-01-04 Daniel Jacobowitz <drow@mvista.com>
14810
14811 * arch-utils.c (gdbarch_info_init): Set osabi to
14812 GDB_OSABI_UNINITIALIZED.
14813 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14814 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14815 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14816 * gdbarch.c: Regenerated.
14817 * gdbarch.h: Regenerated.
14818 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14819 there's no BFD.
14820 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14821 * osabi.h (enum gdb_osabi): Move to defs.h.
14822 (gdbarch_init_osabi): Update prototype.
14823 * defs.h (enum gdb_osabi): Moved here.
14824 * Makefile.in: Update dependencies.
14825
14826 * alpha-tdep.h: Don't include "osabi.h".
14827 (struct gdbarch_tdep): Remove osabi member.
14828 * alpha-tdep.c: Include "osabi.h".
14829 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14830 iterate over arches. Update call to gdbarch_init_osabi.
14831 (alpha_dump_tdep): Don't dump osabi.
14832 * alpha-linux-tdep.c: Include "osabi.h".
14833 * alpha-osf1-tdep.c: Include "osabi.h".
14834 * alphafbsd-tdep.c: Include "osabi.h".
14835 * alphanbsd-tdep.c: Include "osabi.h".
14836
14837 * arm-tdep.h: Don't include "osabi.h".
14838 (struct gdbarch_tdep): Remove osabi member.
14839 * arm-tdep.c: Include "osabi.h".
14840 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14841 iterate over arches. Update call to gdbarch_init_osabi.
14842 (arm_dump_tdep): Don't dump osabi.
14843 * arm-linux-tdep.c: Include "osabi.h".
14844 * armnbsd-tdep.c: Include "osabi.h".
14845
14846 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14847 Update call to gdbarch_init_osabi.
14848
14849 * i386-tdep.h: Don't include "osabi.h".
14850 (struct gdbarch_tdep): Remove osabi member.
14851 * i386-tdep.c: Include "osabi.h".
14852 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14853 iterate over arches. Update call to gdbarch_init_osabi.
14854 (i386_dump_tdep): Don't dump osabi.
14855 * i386-linux-tdep.c: Include "osabi.h".
14856 * i386-sol2-tdep.c: Include "osabi.h".
14857 * i386bsd-tdep.c: Include "osabi.h".
14858 * i386gnu-tdep.c: Include "osabi.h".
14859 * i386ly-tdep.c: Include "osabi.h".
14860 * i386nbsd-tdep.c: Include "osabi.h".
14861 * i386obsd-tdep.c: Include "osabi.h".
14862
14863 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14864 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14865 check osabi when iterating over arches. Update call to
14866 gdbarch_init_osabi.
14867 (mips_dump_tdep): Don't dump osabi.
14868
14869 * ns32k-tdep.h: Don't include "osabi.h".
14870 (struct gdbarch_tdep): Remove.
14871 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14872 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14873 allocate tdep. Update call to gdbarch_init_osabi.
14874 (ns32k_dump_tdep): Remove.
14875 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14876 * ns32knbsd-tdep.c: Include "osabi.h".
14877
14878 * ppc-tdep.h: Don't include "osabi.h".
14879 (struct gdbarch_tdep): Remove osabi member.
14880 * rs6000-tdep.c: Include "osabi.h".
14881 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14882 osabi when iterating over arches. Update call to
14883 gdbarch_init_osabi.
14884 (rs6000_dump_tdep): Don't dump osabi.
14885 * ppc-linux-tdep.c: Include "osabi.h".
14886 * ppcnbsd-tdep.c: Include "osabi.h".
14887
14888 * sh-tdep.h: Don't include "osabi.h".
14889 (struct gdbarch_tdep): Remove osabi member.
14890 * sh-tdep.c: Include "osabi.h".
14891 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14892 iterate over arches. Update call to gdbarch_init_osabi.
14893 (sh_dump_tdep): Don't dump osabi.
14894 * shnbsd-tdep.c: Include "osabi.h".
14895
14896 * sparc-tdep.c: Include "osabi.h".
14897 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14898 iterate over arches. Update call to gdbarch_init_osabi.
14899 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14900 tdep structure.
14901
14902 * vax-tdep.h: Don't include "osabi.h".
14903 (struct gdbarch_tdep): Remove.
14904 * vax-tdep.c: Include "osabi.h".
14905 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14906 iterate over arches. Don't allocate tdep. Update call
14907 to gdbarch_init_osabi.
14908 (vax_dump_tdep): Remove.
14909 (_initialize_vax_tdep): Update call to gdbarch_register.
14910
a881cf8e
DJ
149112003-01-04 Daniel Jacobowitz <drow@mvista.com>
14912
14913 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14914 entirely.
14915 (breakpoint_re_set_one): Don't fetch the value for a disabled
14916 watchpoint.
14917
1e698235
DJ
149182003-01-04 Daniel Jacobowitz <drow@mvista.com>
14919
14920 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14921 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14922 (COERCE_FLOAT_TO_DOUBLE): Remove.
14923 * gdbarch.c: Regenerate.
14924 * gdbarch.h: Regenerate.
14925 * Makefile.in: Remove value_h from gdbarch_h.
14926 * valops.c (coerce_float_to_double): New variable.
14927 (default_coerce_float_to_double): Remove.
14928 (standard_coerce_float_to_double): Remove.
14929 (value_arg_coerce): Use coerce_float_to_double.
14930 (_initialize_valops): Add "set coerce-float-to-double".
14931 * value.h (default_coerce_float_to_double): Remove prototype.
14932 (standard_coerce_float_to_double): Remove prototype.
14933
14934 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14935 prototyped.
14936 * mdebugread.c (parse_symbol): Likewise.
14937 * stabsread.c (define_symbol): Mark all functions as prototyped.
14938
14939 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14940 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14941 set_gdbarch_coerce_float_to_double.
14942 * arm-tdep.c (arm_gdbarch_init): Likewise.
14943 * frv-tdep.c (frv_gdbarch_init): Likewise.
14944 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14945 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14946 * mips-tdep.c (mips_gdbarch_init): Likewise.
14947 (mips_coerce_float_to_double): Remove.
14948 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14949 (rs6000_coerce_float_to_double): Remove.
14950 * s390-tdep.c (s390_gdbarch_init): Likewise.
14951 * sh-tdep.c (sh_gdbarch_init): Likewise.
14952 (sh_coerce_float_to_double): Remove.
14953 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14954 (sparc_coerce_float_to_double): Remove.
14955 * v850-tdep.c (v850_gdbarch_init): Likewise.
14956 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14957 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14958 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14959 (hppa_coerce_float_to_double): Remove prototype.
14960 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14961
f436a26a
DJ
149622003-01-04 Daniel Jacobowitz <drow@mvista.com>
14963
14964 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14965
248f8055
DJ
149662003-01-04 Daniel Jacobowitz <drow@mvista.com>
14967
14968 Suggested by Stewart Brown <sb24@avaya.com>:
14969 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14970 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14971 (c_type_print_varspec_suffix): Likewise.
14972
72cfdc76
MK
149732003-01-04 Mark Kettenis <kettenis@gnu.org>
14974
bfd260bb
MK
14975 * configure.in: Don't set and AC_SUBST SUBDIRS.
14976 * configure: Regenerated.
14977
72cfdc76
MK
14978 * configure.in: Remove code dealing with shared libraries.
14979 * Makefile.in: Remove HLDFLAGS and HLDENV.
14980 * configure: Regenerated.
14981
c8b8a898
AC
149822003-01-04 Andrew Cagney <ac131313@redhat.com>
14983
14984 * frame.c (deprecated_frame_xmalloc): New function.
14985 (deprecated_set_frame_saved_regs_hack): New function.
14986 (deprecated_set_frame_extra_info_hack): New function.
14987 * frame.h (deprecated_frame_xmalloc): Declare.
14988 (deprecated_set_frame_saved_regs_hack): Declare.
14989 (deprecated_set_frame_extra_info_hack): Declare.
14990
14abd0fb
MK
149912003-01-04 Mark Kettenis <kettenis@gnu.org>
14992
8ee53726
MK
14993 * configure.in: Move code that provides the --enable-gdbtk option
14994 right after the code that handles the --enable-tui option, and
14995 polish it somewhat.
14996 * configure: Regenerated.
14997
14abd0fb
MK
14998 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14999 AC_CHECK_FUNCS and remove the old check for pread64.
15000 * acinclude.m4 (AC_GNU_SOURCE): New macro.
15001 * acconfig.h (_GNU_SOURCE): Add.
15002 (HAVE_PREAD64): Remove.
15003 * configure, aclocal.m4, config.in: Regenerated.
15004
b2fb4676
AC
150052003-01-03 Andrew Cagney <ac131313@redhat.com>
15006
15007 * alpha-tdep.c: Use get_frame_saved_regs.
15008 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
15009 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
15010 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
15011 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
15012 * vax-tdep.c, xstormy16-tdep.c: Ditto.
15013
8dcde887
MK
150142003-01-03 Mark Kettenis <kettenis@gnu.org>
15015
15016 * configure.in: Remove all use of the SUBDIRS variable; add
15017 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
15018 code providing the --enable-multi-ice option, and move it right in
15019 front of the code that checks whether gdbserver is supported.
15020 Polish that too.
15021 * configure: Regenerated.
15022 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
15023 @SUBDIRS@.
15024
8ccd593b
AC
150252003-01-03 Andrew Cagney <cagney@redhat.com>
15026
15027 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
15028 * avr-tdep.c, cris-tdep.c: Ditto.
15029 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
15030 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 15031
91151a06
MK
150322003-01-03 Mark Kettenis <kettenis@gnu.org>
15033
15034 * configure.in: Remove --enable-netrom option.
15035 * configure: Regenerated.
15036
8fe84d01
MK
150372003-01-03 Mark Kettenis <kettenis@gnu.org>
15038
15039 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
15040 declaration for `struct re_pattern_buffer' instead.
15041 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
15042
f0394be6
JB
150432003-01-03 J. Brobecker <brobecker@gnat.com>
15044
15045 * mdebugread.c (parse_symbol): Count until the stEnd matching
15046 the structure name.
15047
27e9bf90
MK
150482003-01-02 Mark Kettenis <kettenis@gnu.org>
15049
93d331ba
MK
15050 * configure.in: Remove --with-cpu option.
15051 subscripts. Remove evil changequotes here.
15052 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
15053 * config.in, configure: Regenerated.
8ffd9b1b 15054
27e9bf90
MK
15055 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
15056 * configure.in: Cleanup section that sources GDB and BFD configure
15057 subscripts. Remove evil changequotes here.
15058 * config.in, configure: Regenerated.
15059
50abf9e5
AC
150602003-01-02 Andrew Cagney <ac131313@redhat.com>
15061
15062 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
15063 frame accessor methods.
15064 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
15065 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
15066 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
15067 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
15068 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
15069 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
15070 * z8k-tdep.c: Ditto.
8ffd9b1b 15071
287c1a40
MK
150722003-01-02 Mark Kettenis <kettenis@gnu.org>
15073
f5dbc56d
MK
15074 * configure.in: Remove UI_OUT configuration code.
15075 * ada-lang.c: Update assuming UI_OUT is always true.
15076 * Makefile.in (UIOUT_CFLAGS): Remove.
15077 * configure: Regenerated.
15078 * TODO: Remove blurb about elimination of -DUI_OUT.
15079
627af7ea
MK
15080 * configure.in: Move code that provides the --enable-gdbcli,
15081 --enable-gdbmi options right before the code that handles the
15082 --enable-tui option. Polish a bit.
15083 * configure: Regenerated.
15084
06825bd1
MK
15085 * configure.in: Rewrite check for GNU regex and the
15086 --without-included regex option, and move it into the "Checks for
15087 library functions" section. This makes us use the system regex
15088 again by default on systems with version 2 of the GNU C library.
15089 This was apparently broken.
15090 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
15091 * acconfig.h (USE_INCLUDED_REGEX): Remove.
15092 * config.in, configure: Regenerated.
15093
287c1a40
MK
15094 * configure.in: Move code that provides the --enable-tui option
15095 before the "Checks for libraries" section. Polish the code
15096 somewhat and set need_curses to yes if we build the TUI. Rewrite
15097 code that looks for a library providing termcap functionality to
15098 match more closely what's done in the Readline library, and move
15099 it into to the "Checks for libraries" section.
15100 * configure: Regenerated.
15101 * Makefile.in (TERMCAP): Remove variable.
15102 * config/i386/go32.mh (TERMCAP): Remove variable.
15103
684e56bf
AC
151042003-01-02 Andrew Cagney <ac131313@redhat.com>
15105
15106 * MAINTAINERS: Mention gdb_mbuild.sh.
15107 * gdb_mbuild.sh: Rewrite.
15108
e1ea1d75
MK
151092003-01-02 Mark Kettenis <kettenis@gnu.org>
15110
15111 * configure.in: Fix typo in last change.
15112 * config.in, configure: Regenerated.
15113
1b831c93
AC
151142003-01-02 Andrew Cagney <ac131313@redhat.com>
15115
15116 * valarith.c (value_binop): Delete obsolete code and comments.
15117 * configure.host: Ditto.
15118 * buildsym.h (make_blockvector): Ditto.
15119 * buildsym.c (make_blockvector): Ditto.
15120 * defs.h (enum language): Ditto.
15121 (chill_demangle): Ditto.
15122 * elfread.c (elf_symtab_read): Ditto.
15123 * dwarfread.c (CHILL_PRODUCER): Ditto.
15124 (set_cu_language): Ditto.
15125 (handle_producer): Ditto.
15126 * expprint.c (print_subexp): Ditto.
15127 * gdbtypes.c (chill_varying_type): Ditto.
15128 * gdbtypes.h (builtin_type_chill_bool): Ditto.
15129 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
15130 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
15131 (chill_varying_type): Ditto.
15132 * language.h (_LANG_chill): Ditto.
15133 * language.c (binop_result_type, integral_type): Ditto.
15134 (character_type, string_type, structured_type): Ditto.
15135 (lang_bool_type, binop_type_check): Ditto.
15136 * stabsread.h (os9k_stabs): Ditto.
15137 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
15138 (define_symbol, read_type, read_struct_fields): Ditto.
15139 (read_array_type, read_enum_type, read_huge_number): Ditto.
15140 (read_range_type, start_stabs): Ditto.
15141 * symfile.c (init_filename_language_table): Ditto.
15142 (add_psymbol_with_dem_name_to_list): Ditto.
15143 * symtab.c (symbol_init_language_specific): Ditto.
15144 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
15145 * symtab.h (struct general_symbol_info): Ditto.
15146 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
15147 * typeprint.c (typedef_print): Ditto.
15148 * utils.c (fprintf_symbol_filtered): Ditto.
15149 * valops.c (value_cast, search_struct_field, value_slice): Delete
15150 obsolete code.
15151 (varying_to_slice): Delete function.
15152 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
15153 (varying_to_slice): Delete declaration.
15154 * MAINTAINERS: Update.
15155
8bb2c122
MK
151562003-01-02 Mark Kettenis <kettenis@gnu.org>
15157
97bf5e38
MK
15158 * configure.in: Reorganize "Checks for library functions section"
15159 a bit. Remove check for `btowc' and `isascii' functions.
15160 * configure: Regenerated.
15161
5ee754fc
MK
15162 * acconfig.h (_MSE_INT_H): Remove.
15163 * configure.in: Create "Checks for header files" section, and move
15164 appropriate tests there. Don't check for objlist.h, wchar.h,
15165 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
15166 misdetection fix. Also add "Checks for types", "Checks for
15167 compiler characteristics" and "Checks for library functions"
15168 sections.
15169 * config.in, configure: Regenerated.
15170
8bb2c122
MK
15171 * configure.in: Create "Checks for programs" section, and move
15172 appropriate tests there.
15173
9a156167
MK
151742003-01-01 Mark Kettenis <kettenis@gnu.org>
15175
15176 * configure.in: Create "Checks for libraries" section, and move
15177 appropriate tests there. Cleanup check for wctype in libw. Use
15178 AC_SEARCH_LIBS to see whether we need libsocket.
15179 * configure: Regenerated.
15180
a80e2bcb 15181For older changes see ChangeLog-2002
c906108c
SS
15182\f
15183Local Variables:
15184mode: change-log
15185left-margin: 8
15186fill-column: 74
15187version-control: never
15188End:
This page took 1.185982 seconds and 4 git commands to generate.