* x86-64-tdep.c (RET_INT_REGS, RET_SSE_REGS): Remove defines.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-11-27 Mark Kettenis <kettenis@gnu.org>
2
3 * x86-64-tdep.c (RET_INT_REGS, RET_SSE_REGS): Remove defines.
4 (x86_64_use_struct_convention, x86_64_extract_return_value,
5 x86_64_store_return_value): Remove.
6 (amd64_reg_class): New enum.
7 (amd64_merge_classes, amd64_classify_aggregate, amd64_classify,
8 amd64_return_value): New functions.
9 (x86_64_init_abi): Don't set extract_return_value,
10 store_return_value and use_struct_convention. Set return_value to
11 amd64_return_value.
12 * i387-tdep.h (i387_return_value): New prototype.
13 * i387-tdep.c (i387_return_value): New function.
14
15 * dwarf2-frame.c: Fix some comments and whitespace problems.
16
17 * i386nbsd-tdep.c: Don't include "gdbtypes.h". Include
18 "gdb_assert.h" and "gdb_string.h".
19 (i386nbsd_r_reg_offset): Rename from regmap.
20 (SIZEOF_STRUCT_REG): Remove.
21 (i386nbsd_supply_reg, fetch_core_registers,
22 fetch_elfcore_registers, i386nbsd_core_fns, i386nbsd_elfcore_fns):
23 Remove.
24 (i386nbsd_aout_supply_regset,
25 i386nbsd_aout_regset_from_core_section): New functions.
26 (i386nbsd_sc_reg_offset): Don't explicitly specify size of array.
27 (i386nbsd_init_abi): Initialize TDEP->gregset_reg_offset,
28 TDEP->gregset_num_regs amd sizeof_gregset. Use ARRAY_SIZE to
29 initialize TDEP->sc_num_regs.
30 (i386nbsdaout_init_abi): New function.
31 (i386nbsdelf_init_abi): Remove initialization of
32 TDEP->num_xmm_regs. Don't set num_regs here.
33 (_initialize_i386nbsd_tdep): Don't call add_core_fns. Use
34 i386nbsd_aout_init to register NetBSD a.out OS/ABI.
35
36 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use
37 .note.netbsdcore.procinfo section to recognize NetBSD core files.
38
39 2003-11-26 Michael Chastain <mec.gnu@mindspring.com>
40
41 * cp-abi.c: Update copyright years.
42
43 2003-11-25 Andrew Cagney <cagney@redhat.com>
44
45 * thread-db.c (enable_thread_event): New function. Ensure that BP
46 is a code address.
47 (enable_thread_event_reporting): Use enable_thread_event.
48
49 2003-11-25 Michael Snyder <msnyder@redhat.com>
50
51 * mips-tdep.c (mips_o64_extract_return_value): Correct for
52 NUM_REGS (see changes 2003-06-21).
53 (mips_eabi_extract_return_value): Ditto.
54
55 2003-11-25 Andrew Cagney <cagney@redhat.com>
56
57 * infrun.c: Don't include "exec.h".
58 (handle_inferior_event): Pass current_target, instead of exec_ops,
59 to SOLIB_ADD. Add comments.
60 * Makefile.in (infrun.o): Update dependencies.
61
62 2003-11-24 Daniel Jacobowitz <drow@mvista.com>
63
64 * NEWS: Mention improved location expression support.
65
66 2003-11-23 Andrew Cagney <cagney@redhat.com>
67
68 * Makefile.in (infrun.o): Update dependencies.
69 * infrun.c: Include "exec.h".
70 (handle_inferior_event): Pass exec_ops to SOLIB_ADD.
71
72 2003-11-23 Andrew Cagney <cagney@redhat.com>
73
74 * frame.c (frame_unwind_signed_register): Delete function.
75 * frame.h (frame_unwind_register_signed): Delete declaration.
76 * mips-tdep.c (mips_frame_saved_pc): Use frame_unwind_register_signed.
77
78 * arch-utils.h (generic_cannot_extract_struct_value_address):
79 Delete declaration.
80
81 * defs.h (DEPRECATED_STREQN): Rename STREQN.
82 (DEPRECATED_STREQ): Rename STREQ.
83 * ada-exp.y, ada-lang.c, ada-lex.l, coffread.c: Update.
84 * config/mips/tm-irix5.h, config/mips/tm-irix6.h: Update.
85 * config/mips/tm-mipsv4.h, config/sparc/tm-sun4sol2.h: Update.
86 * dbxread.c, dwarf2read.c, dwarfread.c, environ.c: Update.
87 * eval.c, exec.c, f-lang.c, hppa-tdep.c, hpread.c: Update.
88 * jv-exp.y, language.c, m2-exp.y, mcore-rom.c: Update.
89 * mdebugread.c, mipsread.c, objc-exp.y, objfiles.c: Update.
90 * p-exp.y, p-typeprint.c, p-valprint.c, rs6000-nat.c: Update.
91 * source.c, sparc-tdep.c, stack.c, target.c: Update.
92
93 * symfile.c (symbol_file_command): Replace STREQ with strcmp.
94 * elfread.c (elf_symtab_read): Delete STREQ from comment.
95
96 2003-11-22 Andrew Cagney <cagney@redhat.com>
97
98 * frame.c (deprecated_frame_xmalloc): Delete function.
99 (deprecated_set_frame_extra_info_hack): Delete function.
100 (deprecated_set_frame_saved_regs_hack): Delete function.
101 * frame.h (deprecated_frame_xmalloc): Delete declaration.
102 (deprecated_set_frame_extra_info_hack): Delete declaration.
103 (deprecated_set_frame_saved_regs_hack): Delete declaration.
104 * mcore-tdep.c (analyze_dummy_frame): Instead of
105 deprecated_frame_xmalloc, deprecated_set_frame_saved_regs_hack,
106 and deprecated_set_frame_extra_info_hack use
107 deprecated_frame_xmalloc_with_cleanup.
108 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
109 * mips-tdep.c (mips_init_extra_frame_info): Delete call to
110 deprecated_set_frame_saved_regs_hack.
111
112 * mips-tdep.c (mips_frame_chain): Delete call to
113 deprecated_inside_entry_file.
114
115 * frame.h (deprecated_set_frame_next_hack): Delete declaration.
116 (deprecated_set_frame_prev_hack): Delete declaration.
117 * frame.c (deprecated_set_frame_next_hack): Delete function.
118 (deprecated_set_frame_prev_hack): Delete function.
119 * mcore-tdep.c (analyze_dummy_frame): Delete calls to
120 "deprecated_set_frame_next_hack" and
121 "deprecated_set_frame_prev_hack".
122 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
123
124 * mips-tdep.c (mips_register_convertible): Delete function.
125 (mips_register_convert_to_virtual): Delete function.
126 (mips_register_convert_to_raw): Delete function.
127 (mips_gdbarch_init): Do not set "deprecated_register_convertible",
128 "deprecated_register_convert_to_virtual", or
129 "deprecated_register_convert_to_raw".
130 (mips_pseudo_register_write, mips_pseudo_register_read): Handle
131 32/64 cooked to raw register conversions.
132
133 * frame.c (deprecated_get_frame_context): Delete function.
134 (deprecated_set_frame_context): Delete function.
135 (struct frame_info): Delete member "context".
136 * frame.h (deprecated_get_frame_context): Delete declaration.
137 (deprecated_set_frame_context): Delete declaration.
138
139 * procfs.c (procfs_wait): Delete FAULTED_USE_SIGINFO comment.
140 * config/sparc/tm-sun4sol2.h (FAULTED_USE_SIGINFO): Delete macro.
141 * config/i386/tm-i386sol2.h (FAULTED_USE_SIGINFO): Delete macro.
142 * config/alpha/nm-osf2.h (FAULTED_USE_SIGINFO): Delete macro.
143
144 * mips-tdep.c (SIGFRAME_REG_SIZE): Delete macro.
145 (mips_find_saved_regs): Replace SIGFRAME_REG_SIZE with
146 mips_regsize.
147 (mips_dump_tdep): Do not print SIGFRAME_REG_SIZE.
148 * config/mips/tm-irix6.h (SIGFRAME_REG_SIZE): Delete macro.
149 * config/mips/tm-irix5.h: Update copyright.
150 (SIGFRAME_REG_SIZE): Delete macro.
151
152 * hppa-tdep.c (hppa_value_returned_from_stack): Delete function.
153 * config/pa/tm-hppa.h (hppa_value_returned_from_stack): Delete
154 declaration.
155 (DEPRECATED_VALUE_RETURNED_FROM_STACK): Delete macro.
156 * infcall.c (call_function_by_hand): Delete #ifdef
157 DEPRECATED_VALUE_RETURNED_FROM_STACK code.
158 * infcmd.c (print_return_value): Ditto.
159
160 * mips-tdep.c (skip_prologue_using_sal): New function.
161 (mips32_skip_prologue, mips16_skip_prologue): Use
162 skip_prologue_using_sal to get an upper bound on the search.
163
164 * config/powerpc/tm-linux.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete
165 #if 0'ed macro.
166 * infrun.c (step_into_function): Delete #ifdef
167 PROLOGUE_FIRSTLINE_OVERLAP code.
168 * symtab.c (find_function_start_sal): Ditto.
169
170 * remote-rdp.c: Update copyright.
171 (rdp_init): #if 0 references to "target_byte_order".
172
173 * mips-tdep.c (mips_o32_store_return_value): Delete function.
174 (mips_o32_return_value): Replace mips_o32_xfer_return_value.
175 (mips_o32_extract_return_value): Delete function.
176 (mips_n32n64_return_value): Replace mips_n32n64_xfer_return_value.
177 (mips_n32n64_extract_return_value): Delete function.
178 (mips_n32n64_store_return_value): Delete function.
179 (mips_gdbarch_init): For o32 and n32n64, set "return_value"
180 instead of "store_return_value", "extract_return_value", and
181 "use_struct_convention".
182 (mips_n32n64_use_struct_convention): Delete function.
183
184 2003-11-21 Kevin Buettner <kevinb@redhat.com>
185
186 * frv-tdep.c (frv_frame_this_id): Eliminate call to
187 inside_entry_func().
188
189 2003-11-20 Mark Kettenis <kettenis@gnu.org>
190
191 * i386-tdep.c (i386_extract_return_value,
192 i386_store_return_value): Add gdbarch argument. Use it instead of
193 determining it from REGCACHE. Remove recursive call for
194 structures with a single member.
195 (i386_use_struct_convention): Remove.
196 (i386_reg_struct_return_p): New function.
197 (i386_return_value): New function.
198 (i386_gdbarch_init): Set return_value, don't set
199 extract_return_value, store_return_value and
200 use_struct_convention.
201 * x86-64-tdep.c (x86_64_init_abi): Set return_value to NULL.
202
203 2003-11-20 Jim Blandy <jimb@redhat.com>
204
205 * osabi.c (_initialize_gdb_osabi): Don't return before registering
206 the 'set osabi' and 'show osabi' commands.
207
208 2003-11-19 Mark Kettenis <kettenis@gnu.org>
209
210 * frame.c (get_prev_frame): Use result from
211 get_frame_address_in_block instead of get_frame_pc as argument to
212 inside_main_func. Fixes PR backtrace/1435.
213
214 2003-11-19 Andrew Cagney <cagney@redhat.com>
215
216 * stack.c (return_command): Handle "void", "legacy" and "unknown
217 location" return values separatly.
218 * values.c (using_struct_return): Return 0 for a "void" return
219 type. Mention "register_value_being_returned".
220 (register_value_being_returned): Mention "using_struct_return".
221
222 2003-11-19 Daniel Jacobowitz <drow@mvista.com>
223
224 * dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
225 (frame_base_offset): Delete.
226 (read_func_scope): Delete call to decode_locdesc.
227 (decode_locdesc): Update comments. Don't set the removed variables.
228 Complain for DW_OP_reg* not at the end. Remove DW_OP_breg* and
229 DW_OP_fbreg support.
230
231 2003-11-18 Daniel Jacobowitz <drow@mvista.com>
232
233 * dwarf2read.c (optimized_out, islocal): Remove.
234 (decode_locdesc): Update comments. Don't set optimized_out
235 or islocal.
236
237 2003-11-17 Jeff Johnston <jjohnstn@redhat.com>
238 David Mosberger <davidm@hpl.hp.com>
239
240 * ia64-tdep.c: Include elf.h.
241 [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and
242 libunwind-ia64.h.
243 (ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
244 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
245 (ia64_is_fpreg, ia64_access_reg): Ditto.
246 (ia64_access_fpreg, ia64_access_mem): Ditto.
247 (get_kernel_table): Ditto.
248 (ia64_find_unwind_table): Ditto.
249 (ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
250 (ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
251 (ia64_libunwind_frame_prev_register): Ditto.
252 (ia64_libunwind_frame_sniffer): Ditto.
253 (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
254 sniffer. Register libunwind functions needed by generic
255 libunwind frame code using libunwind_frame_set_descr().
256
257 2003-11-16 Daniel Jacobowitz <drow@mvista.com>
258
259 * breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
260 bp_shlib_disabled breakpoint if there is a shared library mapped
261 at its expected address.
262
263 2003-11-16 Andrew Cagney <cagney@redhat.com>
264
265 * configure.tgt: Delete mips*tx39*-elf*.
266 * config/mips/tm-tx39.h: Delete file.
267 * config/mips/tx39.mt: Delete file.
268 * config/mips/tx39.mt: Delete file.
269
270 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
271 * remote-mips.c (common_open): Instead of
272 "mips_read_register_type" and "mips_set_processor_type_command"
273 call "deprecated_mips_set_processor_regs_hack".
274 * config/mips/tm-mips.h (mips_read_processor_type): Delete
275 declaration.
276 (mips_set_processor_type_command): Delete declaration.
277 * mips-tdep.c (mips_gdbarch_init): Update comment.
278 (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
279 (mips_set_processor_type): Delete function.
280 (NUM_MIPS_PROCESSOR_REGS): Define.
281 (mips_show_processor_type_command): Delete function.
282 (mips_set_processor_type_command): Delete function.
283 (tmp_mips_processor_type): Delete.
284 (mips_processor_type): Delete.
285 (mips_processor_type_table): Delete.
286 (mips_r3051_reg_names): Delete.
287 (mips_r3081_reg_names): Delete.
288 (mips_lsi33k_reg_names): Delete.
289 (mips_processor_reg_names): Delete.
290 (mips_read_processor_type): Delete function.
291 (deprecated_mips_set_processor_regs_hack): New function.
292 (struct gdbarch_tdep): Add member "mips_processor_reg_names".
293 (mips_register_name): Get the processor names from the tdep.
294 (mips_tx39_reg_names): New array.
295 (mips_generic_reg_names): Wire to a standard set of names.
296 (mips_gdbarch_init): Set "mips_processor_reg_names".
297 * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
298 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
299 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
300
301 2003-11-16 Andrew Cagney <cagney@redhat.com>
302
303 * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
304 (mips_fpa0_regnum, mips_regnum): New function.
305 (mips_gdbarch_init): Fill in the "regnum" fields.
306 * mips-tdep.h (struct mips_regnum): Define.
307 (mips_regnum): Declare.
308 * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
309 (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
310 (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
311 (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
312 * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
313 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
314 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
315 * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
316 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
317 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
318 * remote-mips.c: Include "mips-tdep.h". Update.
319 * mipsnbsd-tdep.c: Update.
320 * mipsv4-nat.c: Update.
321 * mips-tdep.c: Update.
322 * mips-nat.c: Update.
323 * mips-linux-tdep.c: Update.
324 * mips-linux-nat.c: Update.
325 * irix5-nat.c: Update.
326 * dve3900-rom.c: Include "mips-tdep.h". Update.
327 (ignore_packet): Supress GCC warning.
328 * config/mips/nm-riscos.h: Update.
329
330 2003-11-16 Andrew Cagney <cagney@redhat.com>
331
332 * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
333 register_size.
334 (mips_register_raw_size): Delete function.
335 (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
336 (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
337 Check and set "mips64_transfers_32bit_regs_p".
338 (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
339 (mips_register_convertible): Check the architecture's
340 "mips64_transfers_32bit_regs_p".
341 (set_mips64_transfers_32bit_regs): New function.
342 (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
343 "set remote-mips64-transfers-32bit-regs" command. Specify
344 set_mips64_transfers_32bit_regs as the set function.
345 * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
346
347 2003-11-16 Mark Kettenis <kettenis@gnu.org>
348
349 * i386-tdep.h (i386_supply_gregset): Provide prototype.
350 * i386-tdep.c (i386_supply_gregset): Make public.
351
352 2003-11-16 Andrew Cagney <cagney@redhat.com>
353
354 * mips-tdep.c (mips_register_byte): Delete function.
355 (mips_gdbarch_init): Do not set "deprecated_register_byte".
356 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
357 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
358 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
359
360 2003-11-16 Mark Kettenis <kettenis@gnu.org>
361
362 * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
363
364 2003-11-16 Andrew Cagney <cagney@redhat.com>
365
366 * config/mips/linux64.mt: Delete file.
367 * config/mips/tm-linux64.h: Delete file.
368 * config/mips/tm-mips64.h: Delete file.
369 * config/mips/embed64.mt: Delete file.
370 * config/djgpp/fnchange.lst: Update.
371 * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
372 mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
373 * config/mips/tm-irix6.h: Update copyright. Include
374 "mips/tm-mips.h" instead of "mips/tm-mips64.h".
375 * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
376 "OP_LDGPR".
377
378 2003-11-15 Andrew Cagney <cagney@redhat.com>
379
380 * mips-tdep.c (mips_register_type): Simplify. Eliminate reference
381 to MIPS_REGISTER_TYPE. Make integer registers signed. Make IRIX
382 n32 registers 64 bit.
383 (mips_register_raw_size, mips_register_byte): For pseudo
384 registers, use the register's pseudo size and not the
385 corresponding raw register's size.
386 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
387 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
388 * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
389 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
390
391 2003-11-15 Andrew Cagney <cagney@redhat.com>
392
393 * mips-tdep.c (struct gdbarch_tdep): Delete member
394 gdb_target_is_mips64.
395 (GDB_TARGET_IS_MIPS64): Delete macro.
396 (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
397 (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
398 (mips_addr_bits_remove): Simplify.
399
400 * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
401 register_size.
402
403 Replace MIPS_REGSIZE with mips_regsize.
404 * mips-tdep.c (mips_regsize): New function.
405 * mips-tdep.h (mips_regsize): Declare.
406 * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
407 (SIZEOF_STRUCT_REG): Update.
408 * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
409 (mipsnbsd_fill_reg): Update.
410 (mipsnbsd_supply_fpreg): Update.
411 (mipsnbsd_fill_fpreg): Update.
412 (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
413 * mips-tdep.c (mips_register_raw_size): Update.
414 (mips_register_type): Update.
415 (SIGFRAME_BASE): Update.
416 (SIGFRAME_PC_OFF): Update.
417 (SIGFRAME_REGSAVE_OFF): Update.
418 (SIGFRAME_FPREGSAVE_OFF): Update.
419 (SIGFRAME_REG_SIZE): Update.
420 (mips32_heuristic_proc_desc): Update.
421 (print_gp_register_row): Update.
422 (mips_dump_tdep): Do not print MIPS_REGSIZE.
423 * irix5-nat.c (supply_gregset): Update.
424 (fetch_core_registers): Update.
425 * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
426 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
427 * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
428 (MIPS_REGISTER_BYTE): Update.
429 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
430
431 2003-11-15 Andrew Cagney <cagney@redhat.com>
432
433 * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
434 USE_REGISTER_NOT_ARG.
435 * stabsread.c (define_symbol): Update.
436
437 2003-11-15 Andrew Cagney <cagney@redhat.com>
438
439 * bcache.h (deprecated_bcache): Declare.
440 (bcache): Make returned buffer constant.
441 * bcache.c (deprecated_bcache): New function.
442 (bcache_data): New function.
443 (bcache): Call bcache data.
444 * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
445 (add_psymbol_with_dem_name_to_list): Ditto.
446
447 2003-11-15 Mark Kettenis <kettenis@gnu.org>
448
449 * glibc-tdep.h (struct gdbarch): Declare opaque.
450 (glibc_skip_solib_resolver): Adjust prototype.
451 * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
452 * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
453 (arm_linux_init_abi): Set skip_solib_resolver.
454 * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
455 (i386_linux_init_abi): Set skip_solib_resolver.
456 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
457 (arm_linux_skip_solib_resolver): Remove prototype.
458 * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
459 (i386_linux_skip_solib_resolver): Remove prototype.
460
461 2003-11-14 Mark Kettenis <kettenis@gnu.org>
462
463 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
464 function.
465 * gdbarch.c, gdbarch.h: Regenerate.
466 * infrun.c (handle_inferior_event): Call
467 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
468 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
469 definition.
470 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
471 prototype.
472
473 2003-11-14 Jeff Johnston <jjohnstn@redhat.com>
474
475 * libunwind-frame.c: New file.
476 * libunwind-frame.h: New file.
477 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
478 * configure.in: Add --with-libunwind option support. Define
479 HAVE_LIBUNWIND if libunwind support selected / defaulted.
480 Also check for libunwind.h and libunwind-ia64.h headers.
481 * configure: Regenerated.
482 * Makefile.in: Add support for libunwind-frame.o.
483 * config.in: Regenerated.
484
485 2003-11-14 Jeff Johnston <jjohnstn@redhat.com>
486
487 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
488 set up the ia64 linux native target method for getting the kernel
489 unwind table.
490 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
491 * inftarg.c (child_xfer_partial): Enable section of code to
492 handle TARGET_OBJECT_UNWIND_TABLE.
493 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
494
495 2003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
496
497 * config/arm/nbsd.mt (TM_FILE): Define.
498 * config/arm/tm-nbsd.h: New file.
499
500 2003-11-14 Andrew Cagney <cagney@redhat.com>
501
502 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
503 * ppc-sysv-tdep.c: Include "objfiles.h".
504 (ppc64_sysv_abi_push_dummy_call): Provide the
505 the FN's objfile when looking for the descriptor.
506
507 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
508 "name_of_malloc" to ".malloc".
509
510 2003-11-13 Mark Kettenis <kettenis@gnu.org>
511
512 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
513
514 2003-11-13 David Carlton <carlton@kealia.com>
515
516 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
517
518 2003-11-13 Andrew Cagney <cagney@redhat.com>
519
520 * arch-utils.h (selected_architecture_name): Declare.
521 (selected_byte_order): Declare.
522 * arch-utils.c (selected_byte_order): New function.
523 (selected_architecture_name): New function.
524 (target_architecture_auto): Make static.
525 (set_architecture_string): Make static.
526 (target_byte_order): Make static.
527 (target_byte_order_auto): Make static.
528 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
529 non-multi-arch definition.
530 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
531 (target_byte_order, target_architecture): Delete declaration.
532 (target_byte_order_auto, target_architecture_auto): Ditto.
533 * gdbarch.h: Re-generate.
534 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
535 "selected_byte_order".
536
537 2003-11-13 Andrew Cagney <cagney@redhat.com>
538
539 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
540
541 2003-11-13 Jim Blandy <jimb@redhat.com>
542
543 * cp-namespace.c: Doc fix.
544
545 2003-11-12 Michael Snyder <msnyder@redhat.com>
546
547 * sh64_tdep.c: Regularize some names.
548 (sh_sh64_register_name): Rename to sh64_register_name.
549 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
550 (sh_sh64_register_byte): Rename to sh64_register_byte.
551 (sh_sh64_build_float_register_type):
552 Rename to sh64_build_float_register_type.
553 (sh_sh64_register_convert_to_virtual):
554 Rename to sh64_register_convert_to_virtual.
555 (sh_sh64_register_convert_to_raw):
556 Rename to sh64_register_convert_to_raw.
557
558 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
559 sh64_media_reg_base_num, sh64_compact_reg_base_num,
560 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
561 sh64_extract_return_value, sh64_show_media_regs,
562 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
563 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
564 sh64_pseudo_register_read, sh64_pseudo_register_write,
565 sh64_do_pseudo_register, sh_compact_print_registers_info):
566 Delete unused variable 'tdep'.
567
568 * sh64-tdep.c: Coding standard and spelling comment fixes.
569 (sh64_extract_return_value): Replace deprecated_store_floating
570 with store_typed_floating.
571 (sh_sh64_register_convert_to_raw): Replace
572 deprecated_store_floating with store_typed_floating.
573 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
574 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
575 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
576 sh64_extract_struct_value_address, sh64_pop_frame,
577 sh64_extract_return_value, sh64_store_return_value,
578 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
579 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
580 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
581 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
582 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
583 deprecated_register_virtual_type, deprecated_register_raw_size,
584 deprecated_max_register_raw_size, or
585 deprecated_max_register_virtual_size. Instead, just set
586 gdbarch_register_type.
587 (sh_sh64_register_raw_size): Delete.
588 (sh_sh64_register_virtual_size): Delete.
589
590 2003-11-12 Daniel Jacobowitz <drow@mvista.com>
591
592 * dwarf2read.c (struct dwarf2_cu): New type.
593
594 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
595 dwarf2_cu structure to pass down.
596
597 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
598 (add_partial_enumeration, locate_pdi_sibling, process_die)
599 (read_file_scope, read_func_scope)
600 (read_lexical_block_scope, dwarf2_get_pc_bounds)
601 (dwarf2_add_field, dwarf2_attach_fields_to_type)
602 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
603 (read_structure_scope, read_enumeration, read_array_type)
604 (read_common_block, read_namespace, read_tag_pointer_type)
605 (read_tag_ptr_to_member_type, read_tag_reference_type)
606 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
607 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
608 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
609 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
610 (read_full_die. read_attribute_value, read_attribute)
611 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
612 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
613 (die_containing_type, type_at_offset, tag_type_to_type)
614 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
615 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
616
617 2003-11-12 Daniel Jacobowitz <drow@mvista.com>
618
619 PR breakpoints/1450
620 * breakpoint.c (insert_bp_location): Fix a logic error by returning
621 0 after a catchpoint fails.
622
623 2003-11-11 Michael Chastain <mec.gnu@mindspring.com>
624
625 * mips-tdep.c (msymbol_size): Delete.
626
627 2003-11-07 Michael Chastain <mec@shout.net>
628
629 * symtab.h (struct minimal_symbol): Add size.
630 * dbxread.c: Use it.
631 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
632 Rename to record_minimal_symbol.
633 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
634 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
635 (install_minimal_symbols): Ditto.
636 * objfiles.c (terminate_minimal_symbol_table): Ditto.
637 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
638 * m68hc11-tdep.c: Ditto.
639 * mips-tdep.c: Ditto.
640 * sh64-tdep.c: Ditto.
641
642 2003-11-10 Michael Chastain <mec.gnu@mindspring.com>
643
644 * MAINTAINERS: Change my e-mail address.
645
646 2003-11-10 Andrew Cagney <cagney@redhat.com>
647
648 * gdbarch.sh (return_value): Replace "inval" and "outval" with
649 "readbuf" and "writebuf".
650 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
651 * d10v-tdep.c (d10v_return_value): Ditto.
652 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
653 (ppc_sysv_abi_broken_return_value): Ditto.
654 (ppc64_sysv_abi_return_value): Ditto.
655 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
656 (ppc_sysv_abi_return_value): Ditto.
657 (ppc_sysv_abi_broken_return_value): Ditto.
658 (ppc64_sysv_abi_return_value): Ditto.
659 * values.c (register_value_being_returned): Update call.
660 * stack.c (return_command): Update call.
661 * gdbarch.h, gdbarch.c: Re-generate.
662
663 * target.h (struct target_ops): Order xfer buffer parameters "read
664 write" not "write read".
665 * bfd-target.c (target_bfd_xfer_partial): Update.
666 * remote.c (remote_xfer_partial): Update.
667 * inftarg.c (child_xfer_partial): Update.
668 * target.c (default_xfer_partial): Update.
669 (target_read_partial, target_write_partial): Update.
670 (debug_to_xfer_partial): Update.
671
672 * arch-utils.h, arch-utils.c: Fix typo in comment.
673
674 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
675 (gdbarch_from_bfd): Call gdbarch_find_by_info.
676 (set_gdbarch_from_file): Call
677 "deprecated_current_gdbarch_select_hack".
678
679 2003-11-09 Andrew Cagney <cagney@redhat.com>
680
681 * arch-utils.c (gdbarch_update_p): New function.
682 * gdbarch.sh (gdbarch_update_p): Delete function.
683 (find_arch_by_info, gdbarch_find_by_info): New functions.
684 (deprecated_current_gdbarch_select_hack): New function.
685 * gdbarch.c: Re-generate.
686
687 * gdbarch.sh (clear_gdbarch_swap): Delete function.
688 (swapout_gdbarch_swap): Delete function.
689 (swapin_gdbarch_swap): Delete function.
690 (init_gdbarch_swap): Delete function.
691 (initialize_non_multiarch): Delete function.
692 (current_gdbarch_swap_in_hack): New function.
693 (current_gdbarch_swap_out_hack): New function.
694 (current_gdbarch_swap_init_hack): New function.
695 * gdbarch.c: Re-generate.
696
697 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
698 parameter to "current_gdbarch". Add comment explaining why.
699 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
700 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
701 * gdbarch.c: Re-generate.
702
703 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
704 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
705 * config/s390/xm-linux.h: Delete file.
706 * config/m88k/xm-delta88v4.h: Delete stray.
707
708 * Makefile.in (arch-utils.o): Update dependencies.
709 * arch-utils.c: Include "osabi.h".
710 (gdbarch_info_fill): New function.
711 * arch-utils.h (gdbarch_info_fill): Declare.
712 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
713 * gdbarch.c: Re-generate.
714
715 2003-11-09 Mark Kettenis <kettenis@gnu.org>
716 David S. Miller <davem@redhat.com>
717
718 * glibc-tdep.c, glibc-tdep.h: New files.
719 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
720 * config/i386/linux.mt (TDEPFILES): Likewise.
721 * i386-linux-tdep.c (glibc-tdep.h): Include.
722 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
723 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
724 * arm-linux-tdep.c (glibc-tdep.h): Include.
725 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
726 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
727 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
728 (glibc_tdep_h): Define.
729 (glibc-tdep.o): Add dependencies.
730 (arm-linux-tdep.o): Update dependencies.
731 (i386-linux-tdep.o): Likewise.
732
733 2003-11-09 Andrew Cagney <cagney@redhat.com>
734
735 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
736 * config/mips/nm-irix6.h: Delete file.
737 * config/mips/nm-linux.h: Update copyright.
738 (MIPS_GNULINUX_TARGET): Delete macro.
739 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
740 * config/mips/xm-irix6.h: Delete file.
741 * config/mips/linux.mh (XM_FILE): Delete definition.
742 * config/mips/xm-linux.h: Delete file.
743
744 2003-11-09 Andrew Cagney <cagney@redhat.com>
745
746 * d10v-tdep.c (d10v_return_value): New function.
747 (d10v_use_struct_convention): Delete function.
748 (d10v_store_return_value): Delete function.
749 (d10v_extract_struct_value_address): Delete function.
750 (d10v_gdbarch_init): Set "return_value" instead of
751 "extract_return_value", "store_return_value",
752 "extract_struct_value_address", and "use_struct_convention".
753 (RET1_REGNUM): Delete const.
754
755 2003-11-09 Mark Kettenis <kettenis@gnu.org>
756
757 From David S. Miller <davem@redhat.com>:
758 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
759 * gdbarch.c, gdbarch.h: Regenerated.
760 * arch-utils.c (generic_skip_solib_resolver): New function.
761 * arch-utils.h (generic_skip_solib_resolver): New prototype.
762 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
763
764 2003-11-07 Andrew Cagney <cagney@redhat.com>
765
766 * top.c (print_gdb_version): Replace STREQ with strcmp.
767 * valops.c (value_struct_elt_for_reference): Ditto.
768 (value_struct_elt_for_reference): Ditto.
769 * symtab.c (gdb_mangle_name): Ditto.
770 (find_line_symtab): Ditto.
771 * symmisc.c (maintenance_print_symbols): Ditto.
772 * symfile.c (symbol_file_command): Ditto.
773 * stabsread.c (define_symbol, read_type): Ditto.
774 (cleanup_undefined_types, scan_file_globals): Ditto.
775 * solib.c (solib_map_sections): Ditto.
776 * solib-svr4.c (bfd_lookup_symbol): Ditto.
777 * rs6000-tdep.c (skip_prologue): Ditto.
778 * p-valprint.c (pascal_value_print): Ditto.
779 (pascal_object_is_vtbl_ptr_type): Ditto.
780 * objfiles.c (in_plt_section): Ditto.
781 * minsyms.c (lookup_minimal_symbol): Ditto.
782 (compact_minimal_symbols): Ditto.
783 (find_solib_trampoline_target): Ditto.
784 * mdebugread.c (parse_type): Ditto.
785 * language.c (set_language_command): Ditto.
786 (set_type_command, set_range_command): Ditto.
787 * f-lang.c (add_common_block): Ditto.
788 (add_common_block): Ditto.
789 (find_first_common_named): Ditto.
790 (patch_all_commons_by_name): Ditto.
791 * elfread.c (elf_locate_sections): Ditto.
792 (elf_locate_sections): Ditto.
793 (elfstab_offset_sections): Ditto.
794 * dwarf2read.c (dwarf2_locate_sections): Ditto.
795 * dbxread.c (add_old_header_file): Ditto.
796 (find_corresponding_bincl_psymtab): Ditto.
797 (read_dbx_symtab, process_one_symbol): Ditto.
798 * coffread.c (patch_opaque_types): Ditto.
799 * cli/cli-decode.c (delete_cmd): Ditto.
800 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
801 * c-typeprint.c (c_type_print_base): Ditto.
802 * breakpoint.c (bpstat_stop_status): Ditto.
803 (clear_command, breakpoint_re_set_one): Ditto.
804
805 2003-11-07 Andrew Cagney <cagney@redhat.com>
806
807 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
808 * bcache.c (struct bstring): Make "length" an unsigned short, add
809 "half_hash".
810 (struct bcache): Add "half_hash_error_count".
811 (bcache): Compute and save the "half_hash". Compare the
812 "half_hash" before comparing the length. Update
813 half_hash_error_count.
814
815 2003-11-07 Andrew Cagney <cagney@redhat.com>
816
817 * inftarg.c (child_xfer_partial): New function
818 (init_child_ops): Set "to_xfer_partial".
819
820 2003-11-07 Andrew Cagney <cagney@redhat.com>
821
822 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
823 set "return_value" instead of "use_struct_convention".
824 (ppc_linux_use_struct_convention): Delete function.
825 (ppc_linux_return_value): New function.
826 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
827 (ppc_sysv_abi_broken_return_value): New function.
828 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
829 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
830 static.
831 (ppc_sysv_abi_extract_return_value): Delete function.
832 (ppc_sysv_abi_broken_extract_return_value): Delete function.
833 (ppc_sysv_abi_store_return_value): Delete function.
834 (ppc_sysv_abi_broken_store_return_value): Delete function.
835 (ppc_sysv_abi_use_struct_convention): Delete function.
836 (ppc64_sysv_abi_use_struct_convention): Delete function.
837 (ppc64_sysv_abi_extract_return_value): Delete function.
838 (ppc64_sysv_abi_store_return_value): Delete function.
839 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
840 (ppcnbsd_init_abi): Set "return_value", instead of
841 "use_struct_convention", "extract_return_value", and
842 "store_return_value".
843 (ppcnbsd_use_struct_convention): Delete function.
844 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
845 (ppc_sysv_abi_return_value): Declare.
846 (ppc_sysv_abi_broken_return_value): Declare.
847 (ppc_sysv_abi_use_struct_convention): Delete.
848 (ppc_sysv_abi_store_return_value): Delete.
849 (ppc_sysv_abi_extract_return_value): Delete.
850 (ppc_sysv_abi_broken_store_return_value): Delete.
851 (ppc_sysv_abi_broken_extract_return_value): Delete.
852 (ppc64_sysv_abi_use_struct_convention): Delete.
853 (ppc64_sysv_abi_extract_return_value): Delete.
854 (ppc64_sysv_abi_store_return_value): Delete.
855 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
856 set "return_value" instead of "extract_return_value",
857 "store_return_value", and "use_struct_convention".
858
859 2003-11-07 Mark Kettenis <kettenis@gnu.org>
860
861 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
862
863 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
864 fscanf.
865
866 2003-11-07 Mark Kettenis <kettenis@gnu.org>
867
868 * fbsd-proc.c: Fix formatting.
869
870 2003-11-06 Kevin Buettner <kevinb@redhat.com>
871
872 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
873 Define.
874 (new_variant): Set name for iacc0_regnum.
875 (frv_register_name): Accommodate pseudo-registers.
876 (frv_register_type): Add case for iacc0_regnum.
877 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
878 (frv_gdbarch_init): Set number of pseudo registers. Establish
879 pseudo-register read/write methods.
880
881 2003-11-06 Andrew Cagney <cagney@redhat.com>
882
883 * valops.c (destructor_name_p): Replace STREQN with strncmp.
884 * top.c (command_line_input): Ditto.
885 * objc-exp.y (yylex): Ditto.
886 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
887 * jv-exp.y (yylex): Ditto.
888 * f-exp.y (yylex): Ditto.
889 * event-top.c (command_line_handler): Ditto.
890 * environ.c (get_in_environ): Ditto.
891 (set_in_environ): Ditto.
892 * dwarfread.c (handle_producer): Ditto.
893 * dbxread.c (process_one_symbol): Ditto.
894 * c-typeprint.c (c_type_print_base): Ditto.
895 * c-exp.y (yylex): Ditto.
896
897 2003-11-06 Andrew Cagney <cagney@redhat.com>
898 Jeff Johnston <jjohnstn@redhat.com>
899
900 * target.c (add_target): Only set "to_xfer_partial" when NULL.
901 (init_dummy_target): Set "to_xfer_partial".
902
903 2003-11-06 Andrew Cagney <cagney@redhat.com>
904
905 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
906 REGISTER_CONVENTION.
907
908 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
909
910 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
911 static.
912
913 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
914
915 * breakpoint.c (remove_breakpoint): Take an bp_location
916 instead of a breakpoint argument. Check the bp_location's type.
917 Fix a reversed condition for hardware breakpoints.
918
919 (insert_bp_location): Update call to remove_breakpoint.
920 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
921 (remove_hw_watchpoints): Likewise.
922 (reattach_breakpoints): Likewise.
923 (detach_breakpoints): Likewise.
924 (delete_breakpoint): Likewise.
925
926 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
927
928 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
929 (beakpoint_init_inferior): Likewise.
930 (breakpoint_here_p): Likewise. Only check addresses for software
931 or hardware breakpoints.
932 (breakpoint_inserted_here_p): Likewise.
933 (breakpoint_thread_match): Likewise. Correct comment.
934 (bpstat_have_active_hw_watchpoints): Likewise.
935 (check_duplicates): Likewise.
936
937 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
938
939 * breakpoints.c (insert_bp_location): New function, broken out
940 from insert_breakpoints. Work on an bp_location instead of a
941 breakpoint.
942 (insert_breakpoints): Use it.
943
944 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
945
946 * breakpoint.h (struct bp_location): Add section.
947 (struct breakpoint): Remove section.
948 * breakpoint.c (insert_breakpoints, remove_breakpoint)
949 (breakpoint_here_p, breakpoint_inserted_here_p)
950 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
951 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
952 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
953 section through loc.
954
955 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
956
957 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
958 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
959
960 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
961
962 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
963 arguments. Initialize owner and type for the new breakpoint
964 location item.
965 (set_raw_breakpoint): Update call to allocate_bp_location.
966
967 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
968
969 * breakpoint.h (struct bp_location): Add a chain pointer.
970 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
971 macros.
972 (bp_location_chain): New variable.
973 (allocate_bp_location): New function.
974 (set_raw_breakpoint): Use it.
975 (delete_breakpoint): Remove ->loc from the bp_location_chain.
976
977 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
978
979 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
980 (struct breakpoint): Remove address, shadow_contents, inserted,
981 requested_address, and duplicate. Add a struct bp_location.
982 * breakpoint.c (condition_command, read_memory_nobpt)
983 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
984 (reattach_breakpoints, update_breakpoints_after_exec)
985 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
986 (breakpoint_init_inferior, breakpoint_here_p)
987 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
988 (breakpoint_thread_match, bpstat_stop_status)
989 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
990 (describe_other_breakpoints, check_duplicates)
991 (make_breakpoint_permanent, create_thread_event_breakpoint)
992 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
993 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
994 (watch_command_1, print_one_exception_catchpoint)
995 (clear_command, breakpoint_re_set_one): Adjust member accesses to
996 use the breakpoint's ->loc.
997 (set_raw_breakpoint): Likewise. Initialize ->loc.
998 (delete_breakpoint): Likewise. Free ->loc.
999
1000 2003-11-05 Andrew Cagney <cagney@redhat.com>
1001
1002 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
1003 macro.
1004 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
1005 * config/i386/tm-cygwin.h
1006 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
1007 * config/powerpc/tm-linux.h
1008 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
1009 (at_subroutine_call_instruction_target): Delete declaration.
1010 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
1011 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
1012 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
1013
1014 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
1015 "struct bfd_section" and "struct bfd".
1016 * target.h (struct section_table): Ditto.
1017 * rs6000-nat.c (xcoff_relocate_core): Ditto.
1018 * solib-svr4.c (elf_locate_base): Ditto.
1019 * pa64solib.c (dld_cache_t): Ditto.
1020 * objfiles.h (struct obj_section): Ditto.
1021 * objfiles.c (add_to_objfile_sections): Ditto.
1022 * exec.c (bfdsec_to_vmap): Ditto.
1023 (add_to_section_table): Ditto.
1024 (build_section_table): Ditto.
1025 * corelow.c (get_core_register_section): Ditto.
1026 * coffread.c (find_linenos): Ditto.
1027 * elfread.c (elf_interpreter): Delete #if0'd function.
1028
1029 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
1030 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
1031 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
1032 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
1033
1034 * arch-utils.h (generic_cannot_extract_struct_value_address):
1035 Delete declaration.
1036 * wince.c (_initialize_wince): Fix multi-line string.
1037 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
1038
1039 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
1040
1041 * top.c (execute_command): Fix broken logic for command execution
1042 while inferior is running in async mode.
1043
1044 2003-11-06 Mark Kettenis <kettenis@gnu.org>
1045
1046 * dwarf2-frame.c (execute_cfa_program): Mark register as
1047 REG_SAVED_REG for DW_CFA_register opcode.
1048
1049 2003-11-05 Mark Kettenis <kettenis@gnu.org>
1050
1051 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
1052 %rsp, %rip and %eflags to match ABI-change.
1053
1054 2003-11-05 Jeff Johnston <jjohnstn@redhat.com>
1055
1056 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
1057 (ia64_gdbarch_init): Don't bother calculating the os.
1058 Instead use the gdbarch_info struct and look at the osabi field.
1059 Also use gdbarch_list_lookup_by_info() to look for a
1060 candidate gdbarch.
1061
1062 2003-11-05 Kevin Buettner <kevinb@redhat.com>
1063
1064 * frv-tdep.c (frv_register_byte): Delete.
1065 (frv_extract_return_value, frv_store_return_value)
1066 (frv_extract_struct_value_address): Don't call frv_register_byte().
1067 Convert to non-deprecated form.
1068 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
1069 Convert calls to set_gdbarch_deprecated_extract_return_value(),
1070 set_gdbarch_deprecated_store_return_value(), and
1071 set_gdbarch_deprecated_extract_struct_value_address() into
1072 non-deprecated forms.
1073
1074 2003-11-05 Andrew Cagney <cagney@redhat.com>
1075
1076 * mips-tdep.c (mips_dump_tdep): Do not print
1077 PRINT_EXTRA_FRAME_INFO.
1078 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
1079 Rename PRINT_EXTRA_FRAME_INFO.
1080 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
1081 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
1082 (mips_print_extra_frame_info): Delete declaration.
1083 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
1084
1085 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
1086
1087 * coffread.c (coff_symtab_read): Remove passing of info parameter
1088 to prim_record_minimal_symbol_and_info.
1089
1090 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
1091
1092 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
1093 (decode_base_type): Delete ifdeffed out code.
1094
1095 2003-11-04 Andrew Cagney <cagney@redhat.com>
1096
1097 * symtab.c (find_active_alias): Delete function.
1098 (lookup_block_symbol): Delete alias code.
1099 * stabsread.c (resolve_live_range): Delete function.
1100 (add_live_range): Delete function.
1101 (resolve_symbol_reference): Delete function.
1102 (define_symbol): Delete live range and alias code.
1103 (scan_file_globals): Delete alias code.
1104 * symtab.h (SYMBOL_RANGES): Delete macro.
1105 (struct range_list): Delete structure.
1106 (struct symbol): Delete field "ranges".
1107 (SYMBOL_ALIASES): Delete macro.
1108 (struct alias_list): Delete structure.
1109 (struct symbol): Delete field "aliases".
1110
1111 2003-11-04 Michael Snyder <msnyder@redhat.com>
1112
1113 * MAINTAINERS: Remove myself as owner of breakpoints and
1114 of sparc/solaris.
1115
1116 2003-11-03 Corinna Vinschen <vinschen@redhat.com>
1117
1118 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
1119 (sh_sh4al_dsp_register_name): Ditto.
1120 (sh4_nofpu_show_regs): Ditto.
1121 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
1122 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
1123
1124 2003-11-03 Andrew Cagney <cagney@redhat.com>
1125
1126 * bcache.c: Include "gdb_assert.h".
1127 (struct bcache): Add fields "expand_count" and
1128 "expand_hash_count".
1129 (expand_hash_table): Update the expand counts.
1130 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
1131 on object sizes and hashes.
1132 * Makefile.in (bcache.o): Update dependencies.
1133
1134 2003-11-03 Andrew Cagney <cagney@redhat.com>
1135
1136 * exec.c (xfer_memory): Eliminate xfer_fn.
1137
1138 2003-10-31 Kevin Buettner <kevinb@redhat.com>
1139
1140 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
1141 (opcodes/frv-desc.h): Include.
1142 (iacc0h_regnum, iacc0l_regnum): Define.
1143 (last_spr_regnum, frv_num_regs): Update.
1144 (new_variant): Don't supply default names for holes in the SPRs.
1145 Supply names for iacc0h_regnum and iacc0l_regnum.
1146 (frv_register_type): Use symbolic constants first_fpr_regnum and
1147 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
1148 builtin_type_int instead of builtin_type_int32.
1149 (frv_register_sim_regno): New function.
1150 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
1151 * Makefile.in (gdb_sim_frv_h): Define.
1152 (frv-tdep.o): Update dependencies.
1153
1154 2003-10-31 Andrew Cagney <cagney@redhat.com>
1155
1156 * avr-tdep.c (avr_frame_this_id): Do not call
1157 deprecated_inside_entry_file.
1158 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
1159 * m32r-tdep.c (m32r_frame_this_id): Ditto.
1160 * d10v-tdep.c (d10v_frame_this_id): Ditto.
1161 * arm-tdep.c (arm_prologue_this_id): Ditto.
1162 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
1163
1164 2003-10-31 Jim Blandy <jimb@redhat.com>
1165
1166 * elfread.c (elf_symtab_read): Allocate correct number of tail
1167 elements to sectinfo structure. (Fix from Woody LaRue.)
1168
1169 2003-10-31 Andrew Cagney <cagney@redhat.com>
1170
1171 * stack.c (return_command): Use get_frame_type, instead of
1172 CALL_DUMMY_HAS_COMPLETED.
1173 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
1174 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
1175
1176 2003-10-31 Mark Kettenis <kettenis@gnu.org>
1177
1178 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
1179 explicitly specify size of array.
1180 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
1181 TDEP->sc_num_regs.
1182
1183 2003-10-31 Andrew Cagney <cagney@redhat.com>
1184
1185 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
1186 function.
1187 (s390_gdbarch_init): Set extract_struct_value_address.
1188 * arch-utils.c (generic_cannot_extract_struct_value_address):
1189 Delete function.
1190 * arch-utils.h (generic_cannot_extract_struct_value_address):
1191 Delete definition.
1192
1193 2003-10-31 Mark Kettenis <kettenis@gnu.org>
1194
1195 * i386-linux-nat.c (fetch_core_registers): Remove.
1196 (linux_elf_core_fns): Remove.
1197 (_initialize_i386_linux_nat): Remove.
1198
1199 2003-10-31 Andrew Cagney <cagney@redhat.com>
1200
1201 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
1202 "exec.h".
1203 (exec_entry_point): New function.
1204 (enable_break): Create a "tmp_bfd_target", use that and
1205 entry_point_address when computing the relocation offset.
1206 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
1207 * Makefile.in (solib-svr4.o): Update dependencies.
1208
1209 2003-10-31 Andrew Cagney <cagney@redhat.com>
1210
1211 * defs.h (XZALLOC): Define.
1212 * target.h (struct target_ops): Add "to_data";
1213 * bfd-target.h, bfd-target.c: New files.
1214 * Makefile.in (SFILES): Add "bfd-target.c".
1215 (COMMON_OBS): Add "bfd-target.o".
1216 (bfd-target.o): Specify dependencies.
1217 (bfd_target_h): Define.
1218 * defs.h (XZALLOC): Define.
1219
1220 2003-10-31 Andrew Cagney <cagney@redhat.com>
1221
1222 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
1223 adjust_breakpoint_address.
1224 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
1225 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
1226 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
1227 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
1228
1229 2003-10-31 Andrew Cagney <cagney@redhat.com>
1230
1231 * target.h (struct target_ops): Replace "to_read_partial" and
1232 "to_write_partial" with "to_xfer_partial". Update comments.
1233 * target.c (debug_to_write_partial): Delete function.
1234 (debug_to_xfer_partial): Replace debug_to_read_partial.
1235 (add_target, update_current_target, setup_target_debug): Set
1236 "to_xfer_partial" instead of "to_read_partial" and
1237 "to_write_partial".
1238 (default_xfer_partial): Replace "default_write_partial".
1239 (default_read_partial): Delete.
1240 (target_read_partial, target_write_partial): Call
1241 "to_xfer_partial".
1242 * remote.c (init_remote_ops): Set "to_xfer_partial".
1243 (init_remote_async_ops): Ditto.
1244 (remote_xfer_partial): Replace "remote_read_partial".
1245
1246 2003-10-31 Mark Kettenis <kettenis@gnu.org>
1247
1248 * i386-tdep.c (i386_supply_fpregset): Support floating-point
1249 registers in `fxsave' format.
1250 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
1251
1252 2003-10-30 Mark Kettenis <kettenis@gnu.org>
1253
1254 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
1255 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
1256 TDEP->gregset_num_regs and tdep->sizeof_gregset.
1257
1258 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
1259 specify size of array.
1260 (i386_linux_init_abi): Remove initialization of
1261 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
1262 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1263
1264 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1265 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1266 core-regset.o.
1267
1268 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1269 the ELF header.
1270
1271 2003-10-29 Mark Kettenis <kettenis@gnu.org>
1272
1273 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1274 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1275 core-regset.o.
1276
1277 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1278
1279 * corelow.c: Include "arch-utils.h", "regset.h" and
1280 "gdb_assert.h".
1281 (core_gdbarch): New variable.
1282 (sniff_core_bfd): Don't sniff if we have support for register sets
1283 in CORE_GDBARCH.
1284 (core_close): Reset CORE_GDBARCH.
1285 (core_open): Initialize CORE_GDBARCH.
1286 (get_core_register_section): Use register sets if they are
1287 supported by CORE_GDBARCH.
1288 (get_core_registers): Don't print error message if we have support
1289 for register sets in CORE_GDBARCH.
1290
1291 2003-10-29 Andrew Cagney <cagney@redhat.com>
1292
1293 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1294 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1295
1296 2003-10-29 Mark Kettenis <kettenis@gnu.org>
1297
1298 * objfiles.h (clear_objfile_data): New prototype.
1299 * objfiles.c (clear_objfile_data): New function.
1300 * symfile.c (reread_symbols): Clear per-objfile data.
1301
1302 2003-10-28 Jeff Johnston <jjohnstn@redhat.com>
1303
1304 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1305 printf_unfiltered instead of printf_filtered for output messages.
1306 (add_symbol_file_command): Ditto.
1307 (reread_symbols): Ditto.
1308 (overlay_auto_command): Ditto.
1309 (overlay_manual_command): Ditto.
1310 (overlay_off_command): Ditto.
1311
1312 2003-10-27 Mark Kettenis <kettenis@gnu.org>
1313
1314 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1315 (gdbarch_from_bfd): New function.
1316 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1317 deprecated_select_gdbarch_hack.
1318 * arch-utils.h (gdbarch_from_bfd): New prototype.
1319
1320 2003-10-27 Andrew Cagney <cagney@redhat.com>
1321
1322 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1323 arch_info. Use warning instead of fprintf_filtered. Do not use
1324 deprecated bfd_printable_arch_mach.
1325
1326 2003-10-26 Kevin Buettner <kevinb@redhat.com>
1327
1328 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1329 Delete.
1330 (frv_register_type): Rename from frv_register_virtual_type. Add
1331 ``struct gdbarch *'' parameter.
1332 (frv_gdbarch_init): Delete calls to the following functions:
1333 set_gdbarch_deprecated_size(),
1334 set_gdbarch_deprecated_register_bytes(),
1335 set_gdbarch_deprecated_register_raw_size(),
1336 set_gdbarch_deprecated_max_register_raw_size(),
1337 set_gdbarch_deprecated_register_virtual_size(),
1338 set_gdbarch_deprecated_max_register_virtual_size(),
1339 set_gdbarch_deprecated_register_virtual_size(),
1340 set_gdbarch_deprecated_register_virtual_type().
1341 Add call to function set_gdbarch_register_type().
1342
1343 2003-10-26 Mark Kettenis <kettenis@gnu.org>
1344
1345 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1346 FDOFF_REGNUM): Remove defines.
1347 * win32-nat.c (do_child_fetch_inferior_registers): Include
1348 "i387-tdep.h".
1349 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
1350 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
1351 undefine I387_ST0_REGNUM.
1352
1353 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1354 * x86-64-tdep.c (x86_64_store_return_value): Use
1355 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1356
1357 Change register numbers to enumartion values.
1358 * i386-tdep.h (enum i386_regnum): New.
1359 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1360 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1361 I386_ST0_REGNUM): Remove defines.
1362 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1363 I386_EDI_REGNUM): Remove defines.
1364
1365 2003-10-24 Andrew Cagney <cagney@redhat.com>
1366
1367 * target.c: Include "gdbcore.h".
1368 (get_target_memory, get_target_memory_unsigned): New functions.
1369 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1370 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1371 Use get_target_memory_unsigned.
1372 * Makefile.in (target.o): Update dependencies.
1373
1374 2003-10-24 Andrew Cagney <cagney@redhat.com>
1375
1376 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1377 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1378 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1379 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1380 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1381
1382 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1383 (can_run_code_for): Use the OO term "singleton".
1384
1385 2003-10-23 Andrew Cagney <cagney@redhat.com>
1386
1387 * Makefile.in (stack.o): Add $(regcache_h).
1388 * stack.c: Include "regcache.h"
1389 (return_command): Rewrite. Use get_frame_id and
1390 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
1391 about unhandled return-values.
1392 * value.h (set_return_value): Delete declaration.
1393 * values.c (set_return_value): Delete function.
1394
1395 2003-10-23 Jeff Johnston <jjohnstn@redhat.com>
1396
1397 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1398 (pseudo_regs): Add comment regarding register stack registers.
1399 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
1400 (floatformat_valid): New static routine.
1401 (floatformat_ia64_ext): Add name field and set up is_valid routine
1402 to floatformat_valid().
1403 (examine_prologue): For the previous cfm, use
1404 frame_unwind_register()
1405 if the cfm is not stored in a register-stack register. Save the
1406 previous cfm value in the prev_cfm field. Add debug output.
1407 (ia64_frame_this_id): Use frame_id_build_special() to also register
1408 the bsp. Add debug output.
1409 (ia64_sigtramp_frame_this_id): Ditto.
1410 (ia64_frame_prev_register): Look at cache saved_regs for a few more
1411 registers and also add some checks for framelessness before accepting
1412 current register values for fields such as return address. For cfm,
1413 use the cached prev_cfm field if available. Add comment to explain
1414 PSR logic. Add debug output.
1415 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1416 as part of initialization.
1417 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1418 calculated. Cache the bsp and cfm values.
1419 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1420 instead of using ia64_frame_prev_register() which doesn't expect most
1421 registers to be saved. The saved values for bsp and sp
1422 can be taken from the cache. Add debug output.
1423 (ia64_push_dummy_call): Use frame_id_build_special() to also register
1424 the bsp.
1425
1426 2003-10-23 Jim Blandy <jimb@redhat.com>
1427
1428 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1429 architecture the current arch can run code for --- but not if it's
1430 a superset.
1431 (can_run_code_for): New function.
1432
1433 2003-10-22 James E Wilson <wilson@specifixinc.com>
1434
1435 * MAINTAINERS: Move myself from paper trail section back to write
1436 after approval section.
1437
1438 2003-10-22 Andrew Cagney <cagney@redhat.com>
1439
1440 * exec.h: New file.
1441 * win32-nat.c: Include "exec.h".
1442 * solib.c: Include "exec.h".
1443 * target.h (build_section_table): Delete declaration.
1444 * somsolib.c: Include "exec.h".
1445 (exec_ops): Delete extern declaration.
1446 * rs6000-nat.c: Update copyright. Include "exec.h".
1447 (exec_ops): Delete extern declaration.
1448 * pa64solib.c: Update copyright. Include "exec.h".
1449 (exec_ops): Delete extern declaration.
1450 * exec.c: Update copyright. Include "exec.h".
1451 * corelow.c: Update dependencies. Include "exec.h".
1452 * Makefile.in (exec_h): Define.
1453 (exec.o, somsolib.o): Update dependencies.
1454 (pa64solib.o, corelow.o): Update dependencies.
1455
1456 2003-10-22 Andrew Cagney <cagney@redhat.com>
1457
1458 * target.c: Include "gdb_assert.h" (target_read): Call
1459 "target_read_partial", not "target_write_partial".
1460 (default_read_partial, default_write_partial): New function.
1461 (target_read_partial, target_write_partial): Simplify, assume that
1462 there is always a read/write method.
1463 (update_current_target, add_target): Always set "to_read_partial"
1464 and "to_write_partial".
1465 (target_write, target_read): Fail on a zero byte transfer.
1466 * Makefile.in (target.o): Update dependencies.
1467 * target.h: Update copyright date.
1468 (target_object): Fix typo.
1469
1470 2003-10-22 Andrew Cagney <cagney@redhat.com>
1471
1472 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1473 multi-arch method, add "targ" parameter.
1474 (struct target_ops): Declare.
1475 * gdbarch.h, gdbarch.c: Re-generate.
1476 * Makefile.in (c-valprint.o): Update dependencies.
1477 * arch-utils.h: Update copyright.
1478 (convert_from_func_ptr_addr_identity): Declare.
1479 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1480 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1481 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1482 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1483 * infcall.c (find_function_addr, call_function_by_hand): Update.
1484 * c-valprint.c: Include "target.h".
1485 (print_function_pointer_address): Update.
1486
1487 2003-10-22 Andrew Cagney <cagney@redhat.com>
1488
1489 * target.c (target_close): New function.
1490 (debug_to_close): Use "target_close".
1491 (push_target): Use "target_close".
1492 (unpush_target): Use "target_close".
1493 (pop_target): Use "target_close".
1494 * target.h (struct target_ops): Add "to_xclose".
1495 (target_open): Delete macro. Move comment to "to_open".
1496 (target_close): Replace macro with function that takes a target.
1497 * top.c (quit_target): Pass "current_target" to "target_close".
1498
1499 2003-10-21 Elena Zannoni <ezannoni@redhat.com>
1500
1501 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1502 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1503 * symtab.h (lookup_minimal_symbol_text): Update.
1504 * breakpoint.c (create_overlay_event_breakpoint,
1505 create_longjmp_breakpoint): Update callers.
1506 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1507 * symtab.c (find_pc_sect_line): Ditto.
1508
1509 2003-10-21 Andrew Cagney <cagney@redhat.com>
1510
1511 * target.c (errno): Delete extern declaration.
1512
1513 2003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1514
1515 * ia64-tdep.c: Change all occurrences of
1516 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1517 (ia64_frame_prev_register): Minor whitespace change.
1518
1519 2003-10-20 Michael Chastain <mec@shout.net>
1520
1521 * config/djgpp/fnchange.lst: Add lines for:
1522 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1523 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1524 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1525 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1526 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1527 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1528 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1529
1530 2003-10-20 Andrew Cagney <cagney@redhat.com>
1531
1532 * values.c (register_value_being_returned): Update comments. Use
1533 "gdbarch_return_value" when available.
1534 (using_struct_return): Ditto.
1535 (set_return_value): Ditto. Use "gdbarch_return_value" when
1536 available.. Print a warning, and not an error, when an unhandled
1537 return type is encountered.
1538 * infcmd.c: Include "gdb_assert.h".
1539 (print_return_value): When gdbarch_return_value_p, and using
1540 struct return, assume that the value is not available.
1541 * defs.h (return_value_convention): Define.
1542 * gdbarch.sh (gdbarch_return_value): New predicate method.
1543 * gdbarch.h, gdbarch.c: Re-generate
1544 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1545
1546 2003-10-20 Andrew Cagney <cagney@redhat.com>
1547
1548 * symtab.c: Replace "struct sec" with "struct bfd_section".
1549 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1550
1551 2003-10-19 Michael Chastain <mec@shout.net>
1552
1553 * config/djgpp/fnchange.lst: Add lines for:
1554 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1555 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1556 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1557
1558 2003-10-19 Mark Kettenis <kettenis@gnu.org>
1559
1560 * amd64fbsd-nat.c (fetch_inferior_registers,
1561 store_inferior_registers): Remove functions.
1562 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1563
1564 2003-10-18 Mark Kettenis <kettenis@gnu.org>
1565
1566 Add NetBSD/amd64 native configuration:
1567 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1568 * amd64nbsd-tdep.c: New file.
1569 * amd64nbsd-nat.c: New file.
1570 * amd64bsd-nat.c: New file.
1571 * config/i386/nbsd64.mh: New file.
1572 * config/i386/nbsd64.mt: New file.
1573 * configure.host: Add x86_64-*-netbsd*.
1574 * configure.tgt: Add x86_64-*-netbsd*.
1575 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1576 New targets.
1577 * NEWS (New native configurations): Mention NetBSD/amd64.
1578
1579 2003-10-17 Michael Chastain <mec@shout.net>
1580
1581 * config/djgpp/fnchange.lst: Remove dead lines for:
1582 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1583 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1584 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1585 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1586 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1587 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1588 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1589 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1590 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1591 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1592 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1593 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1594 gdb/config/sparc/tm-sparclite.h,
1595 gdb/gdbtk/generic/ChangeLog-2001,
1596 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1597 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1598 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1599 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1600 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1601 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1602 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1603 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1604 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1605 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1606 itcl/iwidgets3.0.0/demos/fileselectionbox,
1607 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1608 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1609 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1610 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1611 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1612 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1613 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1614 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1615 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1616 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1617 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1618 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1619 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1620 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1621 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1622 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1623 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1624 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1625 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1626 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1627 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1628 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1629 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1630 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1631 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1632 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1633 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1634 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1635 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1636 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1637 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1638 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1639 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1640 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1641 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1642 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1643 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1644 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1645 itcl/iwidgets3.0.0/demos/scrolledframe,
1646 itcl/iwidgets3.0.0/demos/scrolledhtml,
1647 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1648 itcl/iwidgets3.0.0/demos/scrolledtext,
1649 itcl/iwidgets3.0.0/demos/selectionbox,
1650 itcl/iwidgets3.0.0/demos/selectiondialog,
1651 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1652 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1653 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1654 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1655 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1656 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1657 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1658 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1659 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1660 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1661 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1662 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1663 itcl/iwidgets3.0.0/doc/selectionbox.n,
1664 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1665 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1666 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1667 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1668 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1669 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1670 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1671 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1672 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1673 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1674 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1675 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1676 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1677 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1678 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1679 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1680 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1681 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1682 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1683 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1684 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1685 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1686 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1687 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1688 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1689 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1690 itcl/iwidgets3.0.0/tests/selectionbox.test,
1691 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1692 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1693 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1694 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1695 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1696 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1697 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1698 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1699 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1700 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1701 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1702 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1703 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1704 tk/mac/tkMacProjects.sit.hqx.
1705
1706 2003-10-17 Andrew Cagney <cagney@redhat.com>
1707
1708 * target.c (target_section_by_addr): New function.
1709 (do_xfer_memory): Use "target_section_by_addr".
1710 * target.h (target_section_by_addr): Declare.
1711
1712 * target.h (struct target_ops): Add "to_read_partial" and
1713 "to_write_partial", delete "to_query".
1714 (target_read_partial, target_write_partial): Declare.
1715 (target_read, target_write): Declare.
1716 (target_query): Delete macro.
1717 * target.c (target_read_partial): New function.
1718 (target_write_partial, target_read, target_write): New function.
1719 (update_current_target): Delete inheritance of "to_query". Add
1720 comments about "to_read_partial" and "to_write_partial".
1721 (debug_to_partial_read, debug_to_partial_write): New functions.
1722 (debug_to_query): Delete function.
1723 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1724 instead of "to_query".
1725 * remote.c (remote_read_partial): Replace "remote_query".
1726 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1727 (init_remote_async_ops): Ditto.
1728 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1729 "target_read_partial" instead of "target_query".
1730 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1731 Use "target_read_partial" instead of "target_query".
1732
1733 2003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1734
1735 * frame.h (struct frame_id): Add new field: special_addr.
1736 (frame_id_build_special): New prototype.
1737 * frame.c (frame_id_build_special): New function.
1738 (frame_id_build): Change to call frame_id_build_special().
1739 (frame_id_eq): Change to also test special_addr field.
1740 (frame_id_inner): Update comment.
1741
1742 2003-10-17 Andrew Cagney <cagney@redhat.com>
1743
1744 * target.c (update_current_target): Perform the target cleanup.
1745 Put the target stack beneath the squashed "current_target".
1746 (add_target): Delete disabled call to "cleanup_target".
1747 (cleanup_target): Delete function.
1748 (push_target, unpush_target): Do not call "cleanup_target".
1749
1750 2003-10-17 Andrew Cagney <cagney@redhat.com>
1751
1752 * target.c (target_stack): Change to a static target_ops.
1753 (update_current_target): Walk the "struct target_ops" stack.
1754 (pop_target, do_xfer_memory, target_info): Ditto.
1755 (find_target_beneath): Ditto.
1756 (push_target): Rewrite to use the "struct target_ops" stack.
1757 (unpush_target): Ditto.
1758 * target.h (struct target_stack_item): Delete definition.
1759 (target_stack): Delete declaration.
1760 (struct target_ops): Add field "beneath".
1761
1762 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
1763
1764 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1765 declaration.
1766 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
1767 (h8300_examine_prologue): Use h8300_normal_mode flag
1768 (h8300_gdbarch_init): Set architecture info for normal mode
1769
1770 2003-10-16 Daniel Jacobowitz <drow@mvista.com>
1771
1772 * remote.c (remote_protocol_vcont): New variable.
1773 (set_remote_protocol_vcont_packet_cmd): New function.
1774 (show_remote_protocol_vcont_packet_cmd): New function.
1775 (init_all_packet_configs): Handle remote_protocol_vcont.
1776 (remote_vcont_probe): New function.
1777 (remote_vcont_resume): New function.
1778 (remote_resume): Use it.
1779 (remote_async_resume): Call remote_resume.
1780 (_initialize_remote): Add verbose-resume packet commands.
1781
1782 2003-10-16 Andrew Cagney <cagney@redhat.com>
1783
1784 * infrun.c (handle_inferior_event): Add comment about
1785 "frame_id_inner" being too weak.
1786
1787 2003-10-16 Elena Zannoni <ezannoni@redhat.com>
1788
1789 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1790 second parameter, which is always null. Remove
1791 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1792 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1793 accordingly.
1794 * somsolib.c (som_solib_create_inferior_hook,
1795 som_solib_desire_dynamic_linker_symbols): Update callers.
1796 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
1797
1798 2003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
1799
1800 * remote-m32r-sdi.c : New file, interface to m32r on-chip
1801 debug interface, SDI (Scalable Debug Interface).
1802 * NEWS: Mention m32r SDI protocol was supported.
1803 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1804 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1805
1806 2003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1807
1808 * ia64-linux-tdep.c: Include gdbcore.h.
1809 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1810 (ia64_linux_sigcontext_register_addr): Find the address of the
1811 sigcontext area stored in the sigframe instead of using
1812 a magic offset constant.
1813
1814 2003-10-15 Andrew Cagney <cagney@redhat.com>
1815
1816 * remote.c (remote_search): Delete function.
1817 * target.h (target_search): Delete disabled macro.
1818 (struct target_ops): Delete disabled field "to_search".
1819
1820 2003-10-14 Kevin Buettner <kevinb@redhat.com>
1821
1822 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1823 instead of deprecated_inside_entry_file().
1824
1825 2003-10-14 Corinna Vinschen <vinschen@redhat.com>
1826
1827 * sh-tdep.c: Fix copy/paste hangover in comment.
1828 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1829 mode.
1830 (sh3e_sh4_extract_return_value): Ditto.
1831
1832 2003-10-13 Richard Henderson <rth@redhat.com>
1833
1834 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1835 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1836 match c_val_print a bit closer.
1837
1838 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1839
1840 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1841 (frv_gdbarch_adjust_breakpoint_address): New function.
1842 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1843 method.
1844
1845 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1846
1847 * breakpoint.h (struct breakpoint): Add new member
1848 ``requested_address''.
1849 * breakpoint.c (breakpoint_adjustment_warning)
1850 (adjust_breakpoint_address): New static functions.
1851 (print_it_typical): Issue warning if breakpoint's address is different
1852 from its requested address.
1853 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1854 (breakpoint_re_set_one): Set breakpoint's
1855 ``requested_address'' field. Set ``address'' field to the
1856 result of calling adjust_breakpoint_address() on the requested
1857 address.
1858
1859 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1860
1861 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1862 * gdbarch.h, gdbarch.c: Regenerate.
1863
1864 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1865
1866 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1867 TDEP->sc_num_regs.
1868
1869 * i386fbsd-tdep.c: New file.
1870 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1871 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1872 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1873 i386bsd-tdep.c.
1874 (_initialize_i386fbsd_tdep): New function.
1875 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1876 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1877 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1878 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1879 TDEP->sc_num_regs.
1880 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1881 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1882 to initialize TDEP->sc_num_regs.
1883 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1884 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1885 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1886 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1887 FreeBSD ELF OS/ABI's here.
1888 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1889 (i386fbsd-tdep.o): New target.
1890 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1891 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1892
1893 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1894 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1895 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1896 in initialization of TDEP->sc_num_regs.
1897
1898 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1899 (x86_64_init_abi): Initialize regset_from_core_section if
1900 appropriate.
1901
1902 * i386-tdep.c (i386_regset_from_core_section): New function.
1903 (i386_gdbarch_init): Initialize regset_from_core_section if
1904 appropriate.
1905 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1906
1907 * i386-tdep.h (struct regset): Declare opaque.
1908
1909 * gdbarch.sh (regset_from_core_section): New method.
1910 (struct regset): Declare opaque.
1911 * gdbarch.c, gdbarch.h: Regenerated.
1912
1913 2003-10-11 Alan Modra <amodra@bigpond.net.au>
1914
1915 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1916 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1917 Correct test for pc within section.
1918
1919 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1920
1921 * gdbarch.sh: Remove trailing whitepsace from comments.
1922
1923 2003-10-08 Roland McGrath <roland@redhat.com>
1924
1925 * gcore.c (make_mem_sec): Function removed, folded into ...
1926 (gcore_create_callback): ... here. To omit a section, clear its
1927 SEC_LOAD bit rather than zeroing its size.
1928 Omit read-only sections only if they correspond to a known disk file.
1929 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1930
1931 2003-10-10 Michael Snyder <msnyder@redhat.com>
1932
1933 * d10v-tdep.c: Fix typo in comment.
1934
1935 2003-10-10 Andrew Cagney <cagney@redhat.com>
1936
1937 * rs6000-tdep.c (e500_store_return_value): Delete function.
1938 (e500_extract_return_value): Delete function.
1939 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1940 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1941 "ppc_sysv_abi_restore_return_value" where applicable.
1942 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1943 (ppc_sysv_abi_extract_return_value): Declare.
1944 (ppc_sysv_abi_broken_store_return_value): Declare.
1945 (ppc_sysv_abi_broken_extract_return_value): Declare.
1946 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1947 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1948 start of file.
1949 (do_ppc_sysv_return_value): New function.
1950 (ppc_sysv_abi_extract_return_value): New function.
1951 (ppc_sysv_abi_store_return_value): New function.
1952 (ppc_sysv_abi_broken_extract_return_value): New function.
1953 (ppc_sysv_abi_broken_store_return_value): New function.
1954 (ppc_sysv_abi_use_struct_convention): Call
1955 do_ppc_sysv_return_value.
1956
1957 2003-10-10 J. Brobecker <brobecker@gnat.com>
1958
1959 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1960 to lookup the main function symbol.
1961
1962 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1963
1964 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1965 types correctly.
1966 (sh_push_dummy_call_fpu): Fix argument passing rules.
1967 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1968 float types.
1969 (sh3e_sh4_store_return_value): Ditto.
1970
1971 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
1972
1973 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1974 comment.
1975
1976 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1977
1978 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1979 more readable code. Accomodate passing of bitfields.
1980
1981 2003-10-10 Andrew Cagney <cagney@redhat.com>
1982
1983 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1984 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1985 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1986 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1987 (ppc64_sysv_abi_push_dummy_call): New function.
1988 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1989 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1990 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1991
1992 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1993
1994 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1995 * README: Ditto.
1996 * d10v-tdep.c: Ditto.
1997 * h8300-tdep.c: Ditto.
1998 * remote-e7000.c: Ditto.
1999 * remote-hms.c: Ditto.
2000 * ser-e7kpc.c: Ditto.
2001 * sh-stub.c: Ditto.
2002 * sh-tdep.c: Ditto.
2003 * sh-tdep.h: Ditto.
2004 * sh3-rom.c: Ditto.
2005 * sh64-tdep.c: Ditto.
2006 * top.c: Ditto.
2007 * wince.c: Ditto.
2008 * config/d10v/d10v.mt: Ditto.
2009 * config/sh/embed.mt: Ditto.
2010 * config/sh/linux.mt: Ditto.
2011 * config/sh/tm-linux.h: Ditto.
2012 * config/sh/tm-sh.h: Ditto.
2013 * config/sh/wince.mt: Ditto.
2014
2015 2003-10-09 Andrew Cagney <cagney@redhat.com>
2016
2017 * ppc-tdep.h (struct type): Declare opaque.
2018 * x86-64-tdep.h (struct regcache): Declare opaque.
2019 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
2020 coding style.
2021
2022 2003-10-09 Andrew Cagney <cagney@redhat.com>
2023
2024 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
2025 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
2026 (SOFTWARE_SINGLE_STEP_P): Ditto.
2027 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
2028 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
2029 (SOFTWARE_SINGLE_STEP_P): Ditto.
2030 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
2031 software_single_step to rs6000_software_single_step.
2032
2033 2003-10-09 Andrew Cagney <cagney@redhat.com>
2034
2035 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
2036
2037 2003-10-09 Michael Snyder <msnyder@redhat.com>
2038
2039 * frame.h: Fix typo in comment.
2040 * dummy-frame.c: Fix typo in comment.
2041 * d10v-tdep.c: Random whitespace/comment tweaks.
2042
2043 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
2044
2045 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
2046 (sh_push_dummy_code): Delete function, it's only used for dummy calls
2047 on stack.
2048
2049 Based on input by Stephen Clarke (stephen.clarke@superh.com):
2050 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
2051 in detail.
2052
2053 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
2054
2055 * remote-mips.c (mips_initialize): Remove unneeded call to
2056 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
2057
2058 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
2059
2060 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
2061 a memory pointer.
2062
2063 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
2064
2065 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
2066 for any lwp we resume.
2067 (running_callback): Add lwps that have pending status events
2068 against them to be considered running.
2069
2070 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
2071
2072 * m32r-tdep.c : Include "dis-asm.h".
2073 * Makefile.in (m32r-tdep.o): Update dependencies.
2074
2075 2003-10-06 J. Brobecker <brobecker@gnat.com>
2076
2077 * completer.h (get_gdb_completer_word_break_characters): Delete.
2078 * completer.c: include language.h.
2079 (gdb_completer_word_break_characters): Delete.
2080 (get_gdb_completer_word_break_characters): Delete.
2081 (location_completer): Use the word break characters of the current
2082 language.
2083 (complete_line): Likewise.
2084 (line_completion_function): Likewise.
2085 (skip_quoted_chars): Likewise.
2086 * Makefile.in (completer.o): Add dependency on language.h.
2087 * top.c (init_main): Set the readline word break characters
2088 to GDB's default word break characters.
2089
2090 2003-10-06 J. Brobecker <brobecker@gnat.com>
2091
2092 * language.h (language_defn): new field, la_word_break_characters.
2093 * language.c (unknown_language_defn): Set new field to
2094 default_word_break_characters.
2095 (auto_language_defn): Likewise.
2096 (local_language_defn): Likewise.
2097 * ada-lang.c (ada_language_defn): Likewise.
2098 * c-lang.c (c_language_defn): Likewise.
2099 (cplus_language_defn): Likewise.
2100 (asm_language_defn): Likewise.
2101 (minimal_language_defn): Likewise.
2102 * f-lang.c (f_language_defn): Likewise.
2103 * jv-lang.c (java_language_defn): Likewise.
2104 * m2-lang.c (m2_language_defn): Likewise.
2105 * objc-lang.c (objc_language_defn): Likewise.
2106 * p-lang.c (pascal_language_defn): Likewise.
2107 * scm-lang.c (scm_language_defn): Likewise.
2108
2109 2003-10-06 Andrew Cagney <cagney@redhat.com>
2110
2111 * ppc-sysv-tdep.c: Re-indent.
2112
2113 2003-10-06 J. Brobecker <brobecker@gnat.com>
2114
2115 * language.h (default_word_break_characters): Add prototype.
2116 * language.c (default_word_break_characters): New function.
2117
2118 2003-10-06 Andreas Schwab <schwab@suse.de>
2119
2120 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
2121 with %eax.
2122
2123 2003-10-06 Andrew Cagney <cagney@redhat.com>
2124
2125 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
2126 "h8500-tdep.c".
2127 (z8k-tdep.o): Delete custom build rule.
2128
2129 2003-10-06 Andrew Cagney <cagney@redhat.com>
2130
2131 * Makefile.in: Update all dependencies.
2132
2133 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
2134 No longer list PA as as obsolete candidate. List m32r as
2135 broken instead of obsolete.
2136
2137 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
2138 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
2139 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
2140 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
2141 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
2142 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
2143 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
2144 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2145 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
2146 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
2147 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
2148 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
2149 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
2150 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
2151 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
2152 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
2153 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
2154 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
2155 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
2156 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
2157 * config/z8k/z8k.mt: Ditto.
2158
2159 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
2160 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
2161 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
2162 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
2163 sparclite were removed.
2164 * configure.host, configure.tgt: Remove corresponding tuples.
2165
2166 * breakpoint.c, breakpoint.h: Remove obsolete code.
2167 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
2168 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
2169 * stabsread.h, xcoffread.c: Ditto.
2170
2171 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
2172 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
2173 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
2174 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
2175
2176 2003-10-06 David Lecomber <dsl@sources.redhat.com>
2177
2178 * f-valprint.c: Reformatting
2179
2180 2003-10-06 Mark Kettenis <kettenis@gnu.org>
2181
2182 * x86-64-tdep.c: Remove duplicate comment.
2183
2184 * x86-64-tdep.c (x86_64_store_return_value): Don't use
2185 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
2186 names for return values. This fixes a bug since we looked at %rbx
2187 instead of %rdx.
2188
2189 2003-10-05 Mark Kettenis <kettenis@gnu.org>
2190
2191 * x86-64-tdep.c: Include "regset.h".
2192
2193 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
2194 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
2195 sizeof_fpregset.
2196 * i386-tdep.c: Include "regset.h".
2197 (i386_supply_gregset): New function.
2198 (i386_supply_fpregset): New function.
2199 (i386_gdbarch_init): Initialze register set-related members of
2200 TDEP.
2201 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
2202 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2203
2204 2003-10-03 Andrew Cagney <cagney@redhat.com>
2205
2206 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
2207 set extract_return_value, store_return_value and
2208 use_struct_convention to ppc64_sysv_abi_extract_return_value,
2209 ppc64_sysv_abi_store_return_value and
2210 ppc64_sysv_abi_use_struct_convention.
2211 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
2212 (ppc64_sysv_abi_store_return_value): Declare.
2213 (ppc64_sysv_abi_use_struct_convention): Declare.
2214 * ppc-sysv-tdep.c (enum return_value_convention): Define.
2215 (ppc64_sysv_abi_extract_return_value): New function.
2216 (ppc64_sysv_abi_store_return_value): New function.
2217 (ppc64_sysv_abi_use_struct_convention): New function.
2218 (ppc64_sysv_abi_return_value): New function.
2219
2220 2003-10-03 Andrew Cagney <cagney@redhat.com>
2221
2222 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
2223 convert a descriptor to a function when it's in the ".opd"
2224 section.
2225
2226 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
2227
2228 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2229 reg_size to keep GCC silent.
2230
2231 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
2232
2233 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
2234 base for DW_EH_PE_textrel encodings.
2235 (read_encoded_value): Add a DW_EH_PE_textrel case.
2236 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
2237 section.
2238
2239 2003-10-03 Mark Kettenis <kettenis@gnu.org>
2240
2241 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2242
2243 2003-10-02 Andrew Cagney <cagney@redhat.com>
2244
2245 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
2246 REGISTER_RAW_SIZE.
2247 * gdbarch.h, gdbarch.c: Re-generate.
2248 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
2249 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
2250 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2251 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2252 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
2253 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
2254 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
2255 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
2256 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
2257 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
2258 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
2259 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
2260 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
2261 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2262 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2263 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
2264
2265 2003-10-02 Jim Blandy <jimb@redhat.com>
2266
2267 * dwarf2read.c (struct die_info): Doc fix.
2268
2269 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
2270
2271 * sh-tdep.c: Running thru gdb_indent.sh.
2272
2273 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
2274
2275 * sh-tdep.c (sh_justify_value_in_reg): New function.
2276 (sh_stack_allocsize): Ditto.
2277 (flt_argreg_array): New array used for floating point argument
2278 passing.
2279 (sh_init_flt_argreg): New function.
2280 (sh_next_flt_argreg): Ditto.
2281 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2282 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
2283 Fix argument passing strategy.
2284 (sh_push_dummy_call_nofpu): Ditto.
2285
2286 2003-10-01 Andrew Cagney <cagney@redhat.com>
2287
2288 * value.h (register_value_being_returned): Declare. Replace
2289 "value_being_returned".
2290 * infcall.c (call_function_by_hand): Use
2291 register_value_being_returned.
2292 * infcmd.c (print_return_value): Call
2293 "register_value_being_returned", handle struct return locally.
2294 * values.c (register_value_being_returned): New function. Replace
2295 "value_being_returned".
2296
2297 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
2298
2299 * linux-proc.c (linux_do_registers): New function.
2300 (linux_make_note_section): Use linux_do_registers in case of
2301 single threaded inferior programs.
2302
2303 2003-10-01 Andrew Cagney <cagney@redhat.com>
2304
2305 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2306 use STRUCT_ADDR. When not using "struct return convention", pass
2307 "0" to "value_being_returned". Add FIXMEs.
2308 * infcmd.c (print_return_value): Pass an explicit 0/1 to
2309 value_being_returned. Add comments.
2310 * values.c (value_being_returned): Add fixme.
2311 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2312 (hppa_value_returned_from_stack): Add FIXME.
2313
2314 2003-09-30 David Carlton <carlton@kealia.com>
2315
2316 * dwarf2read.c (struct die_info): Add 'parent' field; replace
2317 'has_children' and 'next' by 'child' and 'sibling'.
2318 (read_comp_unit): Rework algorithm, breaking body into
2319 read_die_and_children and read_die_and_siblings.
2320 (read_die_and_children, read_die_and_siblings): New.
2321 (read_full_die): Add 'has_children' argument; set it instead of
2322 the die's 'has_children' field. Minor formatting cleanup.
2323 (free_die_list): Use die->child and die->sibling instead of
2324 die->next.
2325 (dump_die_list): Ditto.
2326 (sibling_die): Use die->sibling.
2327 (psymtab_to_symtab_1): Use die's 'child' field in place of its
2328 'has_children' and 'next' fields.
2329 (process_die, read_file_scope, read_func_scope)
2330 (read_lexical_block_scope, read_structure_scope)
2331 (read_enumeration, read_array_type, read_common_block)
2332 (read_namespace, read_subroutine_type, dump_die): Ditto.
2333
2334 2003-09-30 Andrew Cagney <cagney@redhat.com>
2335
2336 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2337 to 224, not 220.
2338
2339 2003-09-30 Andrew Cagney <cagney@redhat.com>
2340
2341 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2342 REGISTER_VIRTUAL_SIZE.
2343 * gdbarch.h, gdbarch.c: Regenerate.
2344 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2345 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2346 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2347
2348 2003-09-29 Andrew Cagney <cagney@redhat.com>
2349
2350 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
2351 REGISTER_VIRTUAL_TYPE.
2352 * gdbarch.h, gdbarch.c: Regenerate.
2353 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2354 * sh64-tdep.c, sparc-tdep.c: Update.
2355
2356 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2357 * remote-vxmips.c (vx_read_register): Ditto.
2358 * remote-vx68.c (vx_read_register): Ditto.
2359 * gnu-nat.c (inf_validate_procs): Ditto.
2360
2361 2003-09-29 J. Brobecker <brobecker@gnat.com>
2362
2363 * infcall.c (call_function_by_hand): Fix build failure
2364 introduced in the previous change to this file.
2365
2366 2003-09-29 Andrew Cagney <cagney@redhat.com>
2367
2368 * NEWS: Mention Objective-C.
2369
2370 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
2371
2372 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2373 test if the register has been saved on the stack.
2374 (arm_scan_prologue_cache): When analysing the instruction
2375 "str lr, [sp, #-4]", save the address where lr has been stored.
2376
2377 2003-09-28 Andrew Cagney <cagney@redhat.com>
2378
2379 * frame.c (frame_read_unsigned_register): Delete function.
2380 * frame.h (frame_read_unsigned_register): Delete declaration.
2381 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2382 get_frame_register_unsigned.
2383 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2384 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2385 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2386
2387 * frame.h (frame_read_register): Delete declaration.
2388 * frame.c (frame_read_register): Delete function.
2389 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2390 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2391 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2392 * mips-tdep.c (mips_register_to_value): Ditto.
2393 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2394 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2395
2396 * frame.c (frame_read_signed_register): Delete function.
2397 (frame_read_unsigned_register): Update comments.
2398 * frame.h (frame_read_signed_register): Delete declaration.
2399 * h8300-tdep.c (h8300_print_register): Use
2400 get_frame_register_signed.
2401 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2402
2403 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2404 Rename VALUE_RETURNED_FROM_STACK.
2405 * infcmd.c (print_return_value): Update.
2406 * infcall.c (call_function_by_hand): Update.
2407
2408 2003-09-28 Mark Kettenis <kettenis@gnu.org>
2409
2410 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2411 regcache argument and reverse the order of the other two
2412 arguments. Remove local regcache variable. Determine
2413 architecture from REGCACHE. Update comments.
2414 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2415 reverse the order of the other two arguments. Remove local
2416 regcache variable. Determine architecture from REGCACHE. Update
2417 comments.
2418 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2419 prototypes. Update comments.
2420 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
2421 comment.
2422 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2423 Update.
2424 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2425 * i386-interix-nat.c (supply_fpregset): Update.
2426 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2427 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2428 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2429 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2430 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2431 Update.
2432 * i386obsd-tdep.c (fetch_core_registers): Update.
2433 * i386v4-nat.c (supply_fpregset): Update.
2434 * x86-64-linux-nat.c (supply_fpregset): Update.
2435 * x86-64-linux-tdep.c (fetch_core_registers): Update.
2436
2437 2003-09-27 Mark Kettenis <kettenis@gnu.org>
2438
2439 * i386-tdep.h: Put opaque declarations in alphabetical
2440 order. Remove spurious whitespace.
2441 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2442 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2443 * i386-tdep.c (MM0_REGNUM): Remove define.
2444 (i386_mmx_regnum_p): Add gdbarch argument.
2445 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2446 Rewrite using new macro definitions for FPU/SSE registers.
2447 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2448 definitions from i387-tdep.h.
2449 (i386_register_name): Update.
2450 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2451 new macro definitions for FPU/SSE registers.
2452 (i386_extract_return_value): Determine whether floating-point
2453 registers are present by examining REGCACHE's architecture.
2454 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
2455 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
2456 FPU/SSE registers.
2457 (i386_register_type): Update.
2458 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2459 definitions for FPU registers. Use REGCACHE's architecture to
2460 determine the appropriate register numbers.
2461 (i386_pseudo_register_read, i386_pseudo_register_write,
2462 i386_register_reggroup_p): Update.
2463 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2464 TDEP->mm0_regnum.
2465 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2466 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2467 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2468 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2469 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2470 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2471 *' to `void *'.
2472 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2473 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2474 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2475 definitions for FPU/SSE registers.
2476 (FXSAVE_MXCSR_ADDR): New define.
2477 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2478 TDEP->mm0_regnum.
2479 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2480 (I387_ST0_REGNUM): Define.
2481
2482 * regcache.h (get_regcache_arch): New prototype.
2483 * regcache.c (get_regcache_arch): New function.
2484
2485 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2486 whitespace.
2487
2488 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2489 Initialize using ARRAY_SIZE.
2490
2491 2003-09-27 Andrew Cagney <cagney@redhat.com>
2492
2493 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2494 "init_frame_pc_default".
2495 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2496 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2497 * vax-tdep.c (vax_gdbarch_init): Update.
2498 * v850-tdep.c (v850_gdbarch_init): Update.
2499 * sh64-tdep.c (sh64_gdbarch_init): Update.
2500 * s390-tdep.c (s390_gdbarch_init): Update.
2501 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2502 * mcore-tdep.c (mcore_gdbarch_init): Update.
2503 * h8300-tdep.c (h8300_gdbarch_init): Update.
2504 * cris-tdep.c (cris_gdbarch_init): Update.
2505 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2506
2507 2003-09-26 Mark Kettenis <kettenis@gnu.org>
2508
2509 * regset.h: New file.
2510 * Makefile.in (regset_h): Add.
2511
2512 2003-09-25 Andrew Cagney <cagney@redhat.com>
2513
2514 * frame.h (deprecated_frame_saved_regs): Rename
2515 get_frame_saved_regs.
2516 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2517 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2518 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2519 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2520 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2521
2522 2003-09-25 Andrew Cagney <cagney@redhat.com>
2523
2524 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2525 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2526 and Java.
2527 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2528 arm*-*-* do not use the new frame code.
2529
2530 2003-09-25 David Carlton <carlton@kealia.com>
2531
2532 * c-exp.y: Remove 'register' declarations.
2533 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2534
2535 2003-09-25 David Carlton <carlton@kealia.com>
2536
2537 * c-exp.y: Include cp-support.h. Add qualified_type.
2538 (yylex): Delete nested type hack; add comments.
2539 * cp-namespace.c (cp_lookup_nested_type): New function.
2540 * cp-support.h: Declare cp_lookup_nested_type.
2541 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2542 instead of value_struct_elt_for_reference.
2543 * valops.c: Include cp-support.h.
2544 (value_aggregate_elt): New function.
2545 (value_namespace_elt): Ditto.
2546 (value_struct_elt_for_reference): Make static.
2547 * value.h: Delete declaration of value_struct_elt_for_reference;
2548 add declaration for value_aggregate_elt.
2549 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2550 (valops.o): Ditto.
2551
2552 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
2553
2554 * stack.c: Include "reggroups.h".
2555 (frame_info): Only display registers in all_reggroup.
2556 * Makefile.in (stack.o): Update dependencies.
2557
2558 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
2559
2560 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2561 "add ip, sp #n" in the prologue.
2562 (arm_scan_prologue): Ditto.
2563
2564 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
2565
2566 * MAINTAINERS (write after approval): Add myself.
2567
2568 2003-09-25 Andreas Schwab <schwab@suse.de>
2569
2570 * m68k-tdep.c: Include "dwarf2-frame.h".
2571 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2572 * Makefile.in (m68k-tdep.o): Update dependencies.
2573
2574 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
2575
2576 * sh-tdep.c (struct frame_extra_info): Remove.
2577 (struct sh_frame_cache): New structure.
2578 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2579 (GET_TARGET_REG): Ditto but target register.
2580 (GET_PUSHED_REG): Remove.
2581 (IS_MOV_ARG_TO_REG): New macro.
2582 (IS_MOV_ARG_TO_IND_R14): New macro.
2583 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2584 (IS_MOVW_PCREL_TO_REG): New macro.
2585 (IS_MOVL_PCREL_TO_REG): New macro.
2586 (IS_SUB_REG_FROM_SP): New macro.
2587 (IS_ARG_MOV): Remove.
2588 (IS_MOV_TO_R14): Remove.
2589 (IS_RESTORE_FP): New macro.
2590 (IS_RTS): New macro.
2591 (IS_LDS): New macro.
2592 (IS_MOV_FP_SP): New macro.
2593 (IS_ADD_REG_TO_FP): New macro.
2594 (IS_ADD_IMM_FP): New macro.
2595 (sh_skip_prologue_hard_way): Remove.
2596 (sh_saved_pc_after_call): Remove.
2597 (sh_frame_chain): Remove.
2598 (sh_find_callers_reg): Remove.
2599 (sh_nofp_frame_init_saved_regs): Remove.
2600 (sh_fp_frame_init_saved_regs): Remove.
2601 (sh_init_extra_frame_info): Remove.
2602 (sh_analyze_prologue): New function.
2603 (sh_skip_prologue): Remove deprecated code. Rely on new function
2604 sh_analyze_prologue when after_prologue fails.
2605 (sh_frame_saved_pc): Remove.
2606 (sh_alloc_frame_cache): New function.
2607 (sh_frame_cache): Ditto.
2608 (sh_frame_prev_register): Ditto.
2609 (sh_frame_this_id): Ditto.
2610 (sh_frame_unwind): New structure defining the heuristic frame
2611 sniffer interface.
2612 (sh_frame_sniffer): New function.
2613 (sh_unwind_sp): Ditto.
2614 (sh_unwind_pc): Ditto.
2615 (sh_unwind_dummy_id): Ditto.
2616 (sh_frame_base_address): Ditto.
2617 (sh_frame_base): New structure defining new frame base code.
2618 (sh_in_function_epilogue_p): New function.
2619 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2620 code and to call all new code instead. Initialize dwarf2 and
2621 heuristic frame sniffer.
2622
2623 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2624
2625 * parser-defs.h (struct exp_descriptor): New definition, containing
2626 language-specific info for printing, prefixifying, dumping, and
2627 evaluating expressions.
2628 (exp_descriptor_standard): Declare new variable.
2629 (print_subexp): Make global and declare here (from expprint.c).
2630 (dump_subexp): Ditto.
2631 (dump_subexp_body_standard): Declare.
2632 (operator_length_standard): Declare.
2633 (op_name_standard): Declare.
2634 (print_subexp): Declare.
2635 (print_subexp_standard): Declare.
2636
2637 * language.h (struct language_defn): Add la_exp_desc field to hold
2638 pointer to table for language-specific operators.
2639 Remove evaluate_exp field, which is now in struct exp_descriptor.
2640
2641 * parse.c (operator_length): Move most code to new
2642 operator_length_standard function. Use language-specific information.
2643 (operator_length_standard): New function taking most code from
2644 operator_length.
2645 (exp_descriptor_standard): New constant.
2646
2647 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
2648 and OP_EXTENDED_LAST.
2649
2650 * expprint.c (print_subexp): Use language-specific print_subexp.
2651 Make global; remove static declaration.
2652 Move most code to print_subexp_standard.
2653 (print_subexp_standard): New function, containing code formerly in
2654 print_subexp.
2655 (op_name): Add expression to argument signature.
2656 Use langauge-specific op_name.
2657 Move most code to op_name_standard.
2658 (op_name_standard): New function, containing code formerly in op_name.
2659 (dump_subexp): Use new version of op_name function.
2660 Use language-specific dump_subexp_body, and move most existing code to
2661 dump_subexp_body_standard.
2662 (dump_raw_expression): Use new op_name interface.
2663 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2664 (dump_subexp_body_standard): New function, containing code formerly
2665 in dump_subexp_body.
2666
2667 * language.c (unknown_language): Add default la_exp_desc field and
2668 remove evaluate_exp field.
2669 (auto_language): Ditto.
2670 (local_language): Ditto.
2671 * f-lang.c (f_language_defn): Ditto.
2672 * c-lang.c (c_language_defn): Ditto.
2673 (cplus_language_defn): Ditto.
2674 (asm_language_defn): Ditto.
2675 (minimal_language_defn): Ditto.
2676 * p-lang.c (pascal_language_defn): Ditto.
2677 * m2-lang.c (m2_language_defn): Ditto.
2678 * objc-lang.c (objc_language_defn): Ditto.
2679
2680 * jv-lang.c (exp_descriptor_java): New variable, containing
2681 Java-specific expression evaluator.
2682 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2683 field.
2684 * scm-lang.c (exp_descriptor_scm): New variable, containing
2685 Scheme-specific expression evaluator.
2686 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2687 field.
2688 * objc-lang.c (print_object_command): Take evaluate_exp from the
2689 la_exp_desc field.
2690
2691 * Makefile.in (eval.o): Add dependency on parser-defs.h.
2692
2693 * eval.c: Include parser-defs.h for the full declaration of
2694 la_exp_desc's type.
2695 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
2696
2697 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2698
2699 * parser-defs.h (operator_length): Declare.
2700
2701 * parse.c (length_of_subexp): Use operator_length to get operator
2702 lengths and arities for operators.
2703 Move most code to new operator_length function.
2704 (operator_length): New function absorbing most code from
2705 length_of_subexp.
2706 (prefixify_subexp): Remove large case and use operator_length instead.
2707 (parse_exp_1): Use renamings:
2708 dump_prefix_expression => dump_raw_expression and
2709 dump_postfix_expression => dump_prefix_expression.
2710
2711 * expression.h (dump_prefix_expression): Rename to ...
2712 (dump_raw_expression): New name.
2713 (dump_postfix_expression): Rename to ...
2714 (dump_prefix_expression): New name.
2715
2716 * expprint.c (dump_subexp): Make global. Add comment.
2717 Move most existing code to dump_subexp_body.
2718 (dump_subexp_body): New function.
2719 (dump_prefix_expression): Rename to dump_raw_expression.
2720 Remove attempt to print the expression via print_expression: it can't
2721 work before the expression is prefixified.
2722 (dump_raw_expression): Renamed from dump_prefix_expression.
2723 (dump_postfix_expression): Rename to dump_prefix_expression, since
2724 that's what it does.
2725 Remove 'note' parameter, since this routine must be used on
2726 prefixified expression.
2727 (dump_prefix_expression): Renamed from dump_postfix_expression.
2728
2729 2003-09-22 Jim Blandy <jimb@redhat.com>
2730
2731 * dwarf2read.c (read_array_type): When building the type for an
2732 array of unspecified length, make sure to choose the upper bound
2733 so that the array's total length comes out to be zero --- that's
2734 how we represent such arrays.
2735
2736 2003-09-22 Michael Chastain <mec@shout.net>
2737
2738 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2739
2740 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2741
2742 * top.c (quit_force): Fix indirect call to quit_target so
2743 a struct qt_args pointer is passed.
2744
2745 2003-09-22 Andrew Cagney <cagney@redhat.com>
2746
2747 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2748 * arch-utils.c (init_frame_pc_noop): Delete function.
2749 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2750 "init_frame_pc".
2751 * mips-tdep.c (mips_gdbarch_init): Ditto.
2752 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2753 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2754 declaration.
2755 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2756 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2757 declaration.
2758 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2759
2760 2003-09-22 Anthony Green <green@redhat.com>
2761
2762 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2763 declaration.
2764
2765 2003-09-20 Andrew Cagney <cagney@redhat.com>
2766
2767 * breakpoint.c: Eliminate ARGSUSED.
2768 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2769 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2770 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2771 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2772 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2773 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2774 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2775 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2776 * wince.c, remote-vx.c: Ditto.
2777
2778 * cli/cli-script.c: Remove "register" attributes.
2779 * config/pa/tm-hppa.h: Ditto.
2780 * cli/cli-decode.c: Ditto.
2781 * cli/cli-cmds.c: Ditto.
2782
2783 2003-09-19 Andrew Cagney <cagney@redhat.com>
2784
2785 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2786 DEPRECATED_NPC_REGNUM.
2787 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2788
2789 2003-09-19 Christopher Faylor <cgf@redhat.com>
2790
2791 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2792
2793 2003-09-19 Jim Blandy <jimb@redhat.com>
2794
2795 * macrotab.c (macro_include): Use the correct comparison to find
2796 the appropriate place for this inclusion in the list.
2797
2798 2003-09-19 Andrew Cagney <cagney@redhat.com>
2799
2800 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2801 (DEPRECATED_HPUX_TEXT_END): Define.
2802 (deprecated_hpux_text_end): Declare.
2803 (struct target_ops): Declare opaque.
2804 * hppah-nat.c (text_end): Make static.
2805 (deprecated_hpux_text_end): New function.
2806 * exec.c (text_end): Delete global variable.
2807 (NEED_TEXT_START_END): Do not define.
2808 (exec_file_attach): Replace code computing "text_end" code with
2809 call to DEPRECATED_HPUX_TEXT_END.
2810
2811 2003-09-19 Andrew Cagney <cagney@redhat.com>
2812
2813 * utils.c (align_up, align_down): New functions.
2814 * defs.h (align_up, align_down): Declare.
2815 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2816 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2817 and "align_down".
2818 (round_up, round_down): Delete functions.
2819 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2820 "align_down".
2821 (ROUND_DOWN, ROUND_UP): Delete macros.
2822 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2823 * h8300-tdep.c: Replace "round_up" and "round_down" with
2824 "align_up" and "align_down".
2825 (round_up, round_down): Delete macros.
2826 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2827 "align_down".
2828 (ROUND_UP, ROUND_DOWN): Delete macros.
2829
2830 2003-09-18 J. Brobecker <brobecker@gnat.com>
2831
2832 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2833 hard-coded constant. Use the proper machine name instead.
2834
2835 2003-09-17 Andrew Cagney <cagney@redhat.com>
2836
2837 * sparc-tdep.c (legacy_register_name): Delete function.
2838 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2839 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2840 * infcmd.c (gdb_register_name): Delete variable.
2841 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2842 REGISTER_NAME and "tm.h".
2843 * gdbarch.h, gdbarch.c: Regenerate.
2844 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2845 REGISTER_NAMES in comments.
2846 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2847 * m68klinux-nat.c (regmap): Ditto.
2848
2849 2003-09-17 Jim Blandy <jimb@redhat.com>
2850
2851 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2852
2853 2003-09-17 Andrew Cagney <cagney@redhat.com>
2854
2855 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2856 (ppcnbsd_init_abi): Set "use_struct_convention" to
2857 "ppcnbsd_use_struct_convention".
2858
2859 2003-09-17 Mark Kettenis <kettenis@gnu.org>
2860
2861 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2862 * gdbarch.h, gdbarch.c: Regenerate.
2863 (stabs_argument_has_addr): New architecture method.
2864 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2865 * arch-utils.c: Include "buildsym.h".
2866 (default_stabs_argument_has_addr): New function.
2867 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2868 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2869
2870 2003-09-17 Andrew Cagney <cagney@redhat.com>
2871
2872 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2873 * gdbarch.h, gdbarch.c: Regenerate.
2874 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2875 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2876 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2877 * sparcnbsd-tdep.c: Update.
2878
2879 2003-09-17 Andrew Cagney <cagney@redhat.com>
2880
2881 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2882 * gdbarch.h, gdbarch.c: Regenerate.
2883 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2884 * d10v-tdep.c, frame.c: Update.
2885 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2886 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2887 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2888 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2889 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2890 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2891 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2892 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2893 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2894 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2895 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2896 * config/pa/nm-hppah.h: Update.
2897
2898 2003-09-16 Andrew Cagney <cagney@redhat.com>
2899
2900 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2901 "use_struct_convention" to "ppc_linux_use_struct_convention".
2902 (ppc_linux_use_struct_convention): New function.
2903 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2904 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2905 "rs6000_use_struct_convention".
2906 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2907 declaration.
2908 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2909 Delete function.
2910
2911 2003-09-16 Andrew Cagney <cagney@redhat.com>
2912
2913 * buildsym.c: Remove more occurances of "register".
2914 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2915 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2916 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2917 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2918 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2919 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2920 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2921 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2922
2923 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
2924
2925 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2926 numbers to enumeration values.
2927 * sh-tdep.c: Accomodate above change.
2928 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2929 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2930 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2931 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2932 (IS_FPUSH): Rename from IS_FMOV.
2933 (sh_extract_struct_value_address): Remove useless comment.
2934 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2935 instead of own local values.
2936 (sh_dump_tdep): Remove.
2937 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2938 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2939
2940 2003-09-15 Andrew Cagney <cagney@redhat.com>
2941
2942 * doublest.c (convert_floatformat_to_doublest): No longer need to
2943 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2944
2945 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
2946
2947 * values.c (unpack_double): Call floatformat_is_valid.
2948
2949 2003-09-15 Mark Kettenis <kettenis@gnu.org>
2950
2951 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2952 ps_strings into a long.
2953
2954 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2955 _initialize_am64fbsd_nat.
2956
2957 2003-09-15 Kevin Buettner <kevinb@redhat.com>
2958
2959 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2960 associated with DW_AT_ranges attribute is out of bounds.
2961
2962 2003-09-15 David Lecomber <dsl@sources.redhat.com>
2963
2964 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2965
2966 2003-09-14 Michael Chastain <mec@shout.net>
2967
2968 * config/m68k/nm-apollo68v.h: Delete.
2969 * config/m68k/xm-apollo68v.h: Delete.
2970
2971 2003-09-14 Andrew Cagney <cagney@redhat.com>
2972
2973 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2974 * dcache.c: Update copyrights and descriptions.
2975 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2976
2977 2003-09-14 Andrew Cagney <cagney@redhat.com>
2978
2979 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2980 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2981
2982 2003-09-14 Andrew Cagney <cagney@redhat.com>
2983
2984 * alpha-nat.c: Remove some occurances of "register".
2985 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2986 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2987 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2988 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2989 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2990 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2991 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2992 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2993 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2994 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2995 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2996 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2997 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2998 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2999 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
3000 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
3001 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
3002 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
3003 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
3004 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
3005 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
3006 * values.c, vax-tdep.c, xcoffread.c: Ditto.
3007
3008 2003-09-13 Andrew Cagney <cagney@redhat.com>
3009
3010 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
3011 * ppc-tdep.h (struct regcache): Declare opaque.
3012 * objfiles.h (struct objfile_data): Declare opaque.
3013 * cp-support.h (struct objfile): Declare opaque.
3014 * linux-nat.h (target_waitstatus): Declare opaque.
3015
3016 2003-09-14 Mark Kettenis <kettenis@gnu.org>
3017
3018 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
3019 (stabs_argument_has_addr): New architecture method.
3020 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
3021 * arch-utils.c: Include "buildsym.h".
3022 (default_stabs_argument_has_addr): New function.
3023 * stabsread.c (define_symbol): Use stabs_argument_has_addr
3024 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
3025
3026 * cris-tdep.c (cris_gdbarch_init): Set
3027 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
3028 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3029 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
3030 * mips-tdep.c (mips_gdbarch_init): Likewise.
3031 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3032 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3033
3034 2003-09-13 Andrew Cagney <cagney@redhat.com>
3035
3036 * values.c (using_struct_return): Delete "function" and "funcaddr"
3037 parameters.
3038 * value.h (using_struct_return): Update declaration.
3039 * infcmd.c (finish_command_continuation): Update.
3040 (finish_command): Update.
3041 * infcall.c (call_function_by_hand): Update.
3042 * eval.c (evaluate_subexp_standard): Update.
3043
3044 2003-09-13 Christopher Faylor <cgf@redhat.com>
3045
3046 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
3047 SSE registers since gdb will not operate correctly without this.
3048 Restore include file ordering munged in previous change.
3049 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
3050
3051 2003-09-13 Mark Kettenis <kettenis@gnu.org>
3052
3053 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
3054 REG_STRUCT_HAS_ADDR.
3055 * gdbarch.c, gdbarch.h: Updated.
3056 * infcall.c (call_function_by_hand): Update.
3057 * stabsread.c (define_symbol): Updated.
3058
3059 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
3060
3061 2003-09-12 Christopher Faylor <cgf@redhat.com>
3062
3063 * win32-nat.c: Reorganize so that defines used by target headers are
3064 actually defined by the system headers.
3065 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
3066 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
3067
3068 2003-09-12 Jim Blandy <jimb@redhat.com>
3069
3070 * dbxread.c (read_dbx_symtab): Don't report an internal error if
3071 the file has no .data, .bss, or .rodata sections. Instead wait
3072 until we see a variable alleged to live in one of those sections.
3073
3074 * dbxread.c (read_dbx_symtab): If we have no .data section and no
3075 .bss section, presume that any variables we find live in the
3076 .rodata section.
3077
3078 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
3079 offsets for global and static variables.
3080
3081 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
3082 symbol types are, by definition, in the .data section, so it is
3083 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
3084 If there is no .data section, there should be no N_DATA or N_DATA
3085 | N_EXT symbols.
3086
3087 2003-09-12 Mark Kettenis <kettenis@gnu.org>
3088
3089 * amd64fbsd-tdep.c: Fix sigtramp recognition.
3090 (amd64fbsd_sigcontext_addr): Rewrite.
3091 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
3092 with correct values.
3093 (amd64fbsd_sc_reg_offset): Initialize with correct values.
3094 (amd64fbsd_init_abi): Fix typo.
3095
3096 2003-09-12 Andrew Cagney <cagney@redhat.com>
3097
3098 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
3099 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
3100
3101 2003-09-12 Andrew Cagney <cagney@redhat.com>
3102
3103 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
3104 "entry_file_highpc". Update comments.
3105 * defs.h (deprecated_inside_entry_file): Rename
3106 "inside_entry_file".
3107 * blockframe.c (deprecated_inside_entry_file): Rename
3108 "inside_entry_file".
3109 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
3110 * vax-tdep.c (vax_frame_chain): Update.
3111 * sh64-tdep.c (sh64_frame_chain): Update.
3112 * sh-tdep.c (sh_frame_chain): Update.
3113 * rs6000-tdep.c (rs6000_frame_chain): Update.
3114 * ns32k-tdep.c (ns32k_frame_chain): Update.
3115 * mips-tdep.c (mips_frame_chain): Update.
3116 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
3117 * m32r-tdep.c (m32r_frame_this_id): Update.
3118 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
3119 * frv-tdep.c (frv_frame_this_id): Update.
3120 * d10v-tdep.c (d10v_frame_this_id): Update.
3121 * cris-tdep.c (cris_frame_chain): Update.
3122 * blockframe.c (legacy_frame_chain_valid): Update.
3123 * avr-tdep.c (avr_frame_this_id): Update.
3124 * arm-tdep.c (arm_prologue_this_id): Update.
3125 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
3126 * objfiles.c (objfile_relocate): Update.
3127 * mipsread.c (mipscoff_symfile_read): Update.
3128 (mipscoff_symfile_read): Update.
3129 * mdebugread.c (parse_partial_symbols): Update.
3130 * dwarfread.c (read_file_scope): Update.
3131 * dwarf2read.c (read_file_scope): Update.
3132 * dbxread.c (read_dbx_symtab): Update.
3133 (read_dbx_symtab): Update.
3134 * coffread.c (complete_symtab): Update.
3135
3136 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
3137
3138 * top.c (quit_target): New static helper function.
3139 (quit_force): Moved code to quit_target(). Call quit_target()
3140 via catch_errors() to catch errors during quit.
3141
3142 2003-09-11 David Carlton <carlton@kealia.com>
3143
3144 * buildsym.c (finish_block): Use allocate_block to allocate the
3145 block.
3146 * mdebugread.c (new_block): Add FIXME.
3147
3148 2003-09-11 David Carlton <carlton@kealia.com>
3149
3150 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
3151 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
3152 (recursive_dump_type): Ditto.
3153 * printcmd.c (print_formatted): Ditto.
3154 * typeprint.c (print_type_scalar): Ditto.
3155 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
3156 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
3157 * cp-support.h: Declare cp_check_possible_namespace_symbols,
3158 maint_cplus_cmd_list.
3159 * cp-support.c: Make maint_cplus_cmd_list extern.
3160 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
3161 command.h.
3162 (lookup_symbol_file): Look in possible namespace blocks when
3163 appropriate.
3164 (initialize_namespace_symtab): New.
3165 (get_possible_namespace_block, free_namespace_block)
3166 (check_possible_namespace_symbols)
3167 (check_possible_namespace_symbols_loop)
3168 (check_one_possible_namespace_symbol)
3169 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
3170 (_initialize_cp_namespace): Ditto.
3171 * block.h: Declare allocate_block.
3172 * block.c (allocate_block): New.
3173 * jv-lang.c (get_java_class_symtab): Allocate blocks via
3174 allocate_block.
3175 * symfile.h: Update declaration of add_psymbol_to_list.
3176 * symfile.c (add_psymbol_to_list): Return the partial symbol in
3177 question.
3178 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
3179 scan_partial_symbols_call.
3180 (scan_partial_symbols): Add NAMESPACE argument; update calls to
3181 helper functions.
3182 (add_partial_symbol): If necessary, scan mangled names for names
3183 of namespaces.
3184 (add_partial_namespace): Add NAMESPACE argument; generate partial
3185 symbols associated to namespaces.
3186 (add_partial_enumeration): Add NAMESPACE argument.
3187 (new_symbol): Allow namespace syms.
3188 (read_namespace): Generate namespace syms.
3189 * objfiles.h: Add opaque declaration of struct symtab.
3190 (struct objfile): Add cp_namespace_symtab member.
3191 * objfiles.c (allocate_objfile): Set
3192 objfile->cp_namespace_symtab.
3193 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
3194 dictionary_h, command_h.
3195
3196 2003-09-11 Andrew Cagney <cagney@redhat.com>
3197
3198 * rs6000-tdep.c (rs6000_push_dummy_call): Use
3199 regcache_raw_write_signed to set SP_REGNUM, move the operation to
3200 near the function's end.
3201 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
3202 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
3203 regcache_raw_write_signed to set SP_REGNUM.
3204
3205 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
3206
3207 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
3208 orig_addrs is set up properly.
3209
3210 2003-09-11 Andrew Cagney <cagney@redhat.com>
3211
3212 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
3213 * gdbarch.h, gdbarch.c: Re-generate.
3214 * infcall.c (call_function_by_hand): Update.
3215 * hppa-tdep.c (hppa_push_arguments): Update.
3216 * ada-lang.c (place_on_stack): Update.
3217 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3218 * sparc-tdep.c (sparc_gdbarch_init): Update.
3219 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3220 * hppa-tdep.c (hppa_gdbarch_init): Update.
3221 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
3222 stack_align.
3223
3224 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
3225
3226 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3227 register do need a frame.
3228
3229 2003-09-11 Andrew Cagney <cagney@redhat.com>
3230
3231 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
3232 buildable since GDB 5.0.
3233 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
3234 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
3235 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
3236 * irix4-nat.c: Delete file.
3237 * config/mips/irix4.mh: Delete file.
3238 * config/mips/irix3.mh: Delete file.
3239 * config/mips/irix3.mt: Delete file.
3240 * config/mips/tm-irix3.h: Delete file.
3241 * config/mips/nm-irix3.h: Delete file.
3242 * config/mips/xm-irix3.h: Delete file.
3243 * config/mips/nm-irix4.h: Delete file.
3244 * config/mips/xm-irix4.h: Delete file.
3245 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
3246
3247 2003-09-10 J. Brobecker <brobecker@gnat.com>
3248
3249 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3250 * Makefile.in (hppa-tdep.o): Update dependencies.
3251
3252 2003-09-10 James E Wilson <wilson@specifixinc.com>
3253
3254 * MAINTAINERS: Change my e-mail address. Move to paper trail
3255 section.
3256
3257 2003-09-10 Kevin Buettner <kevinb@redhat.com>
3258
3259 * MAINTAINERS (frv): New ISA entry.
3260
3261 2003-09-10 Kevin Buettner <kevinb@redhat.com>
3262
3263 * frv-tdep.c (dis-asm.h): Include.
3264 * Makefile.in (frv-tdep.o): Update dependencies.
3265
3266 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
3267
3268 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3269 Fix typo for high range of floating registers.
3270
3271 2003-09-09 David Carlton <carlton@kealia.com>
3272
3273 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3274 highpc initialization here out of scan_partial_symbols.
3275 (scan_partial_symbols): Restructure into a recursive version,
3276 calling add_partial_namespace and add_partial_enumeration when
3277 appropriate.
3278 (add_partial_namespace): New.
3279 (add_partial_enumeration, locate_pdi_sibling): Ditto.
3280
3281 2003-09-09 Andrew Cagney <cagney@redhat.com>
3282
3283 * rs6000-tdep.c (ppc_push_return_address): Delete function.
3284 (rs6000_push_dummy_call): Set LR to BP_ADDR.
3285 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3286 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3287
3288 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3289 (rs6000_push_dummy_call): Set the "TOC" register.
3290
3291 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3292 methods "max_register_raw_size", "max_register_virtual_size" or
3293 "register_virtual_size".
3294
3295 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
3296
3297 * MAINTAINERS: Update my e-mail address.
3298
3299 2003-09-09 Andrew Cagney <cagney@redhat.com>
3300
3301 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3302 (rs6000_push_dummy_call): Store the struct return address.
3303 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3304
3305 2003-09-09 Andrew Cagney <cagney@redhat.com>
3306
3307 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3308 "ppc_sysv_abi_push_arguments".
3309 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3310 "ppc_sysv_abi_push_arguments".
3311 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3312 instead of "push_arguments".
3313 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3314
3315 2003-09-09 Andrew Cagney <cagney@redhat.com>
3316
3317 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3318 instead of CALL_DUMMY_ADDRESS.
3319
3320 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
3321
3322 * p-lang.c: Eliminate "register".
3323 * c-lang.c: Ditto.
3324 * expprint.c: Ditto.
3325 * f-lang.c: Ditto.
3326 * jv-lang.c: Ditto.
3327 * language.c: Ditto.
3328 * m2-lang.c: Ditto.
3329 * parse.c: Ditto.
3330 * scm-lang.c: Ditto.
3331 * objc-lang.c: Ditto.
3332
3333 2003-09-09 Nick Clifton <nickc@redhat.com>
3334
3335 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3336
3337 2003-09-04 Andrew Cagney <cagney@redhat.com>
3338
3339 * avr-tdep.c: Include "dis-asm.h".
3340 * cris-tdep.c: Include "dis-asm.h".
3341 (cris_delayed_get_disassembler): Use "struct disassemble_info"
3342 instead of corresponding typedef.
3343 * h8300-tdep.c: Include "dis-asm.h".
3344 * ia64-tdep.c: Include "dis-asm.h".
3345 * i386-tdep.c: Include "dis-asm.h".
3346 (i386_print_insn): Use "struct disassemble_info" instead of
3347 corresponding typedef.
3348 * m68k-tdep.c: Include "dis-asm.h".
3349 * mcore-tdep.c: Include "dis-asm.h".
3350 * mips-tdep.c: Include "dis-asm.h".
3351 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3352 instead of corresponding typedef.
3353 * ns32k-tdep.c: Include "dis-asm.h".
3354 * s390-tdep.c: Include "dis-asm.h".
3355 * sparc-tdep.c: Include "dis-asm.h".
3356 * vax-tdep.c: Include "dis-asm.h".
3357 * v850-tdep.c: Include "dis-asm.h".
3358 * mn10300-tdep.c: Include "dis-asm.h".
3359 * rs6000-tdep.c: Include "dis-asm.h".
3360 * xstormy16-tdep.c: Include "dis-asm.h".
3361 (_initialize_xstormy16_tdep): Delete "extern" declaration of
3362 print_insn_xstormy16.
3363 * Makefile.in (v850-tdep.o): Update dependencies.
3364 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3365 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3366 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3367 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3368 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3369 (gdbarch_h): Remove $(dis_asm_h).
3370 * disasm.c: Include "dis-asm.h".
3371 (dis_asm_read_memory): Use "struct disassemble_info" instead of
3372 corresponding typedef.
3373 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3374 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3375 * gdbarch.sh: Do not include "dis-asm.h".
3376 (struct disassemble_info): Declare opaque.
3377 (TARGET_PRINT_INSN): Update declaration.
3378 * gdbarch.h, gdbarch.c: Re-generate.
3379
3380 2003-09-08 Andrew Cagney <cagney@redhat.com>
3381
3382 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3383 CALL_DUMMY_ADDRESS, change to a predicate.
3384 * gdbarch.h, gdbarch.c: Re-generate.
3385 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3386 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3387 * infcall.c (call_function_by_hand): Ditto.
3388 * sparc-tdep.c (sparc_push_return_address): Ditto.
3389 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3390 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3391 CALL_DUMMY_ADDRESS with entry_point_address.
3392 * v850-tdep.c (v850_push_return_address): Ditto.
3393 * s390-tdep.c (s390_push_return_address): Ditto.
3394 * rs6000-tdep.c (ppc_push_return_address): Ditto.
3395 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3396 * mcore-tdep.c (mcore_push_return_address): Ditto.
3397 * cris-tdep.c (cris_push_return_address): Ditto.
3398 * arm-tdep.c (arm_push_return_address): Ditto.
3399
3400 2003-09-08 Andrew Cagney <cagney@redhat.com>
3401
3402 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3403 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3404 and REG_UNMODIFIED to REG_SAME_VALUE.
3405 (execute_cfa_program): Update.
3406 (dwarf2_frame_cache): Update. Initialize table to
3407 REG_UNSPECIFIED, complain if CFI fails to specify a register's
3408 location.
3409 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
3410
3411 2003-09-08 Andrew Cagney <cagney@redhat.com>
3412
3413 * gnu-nat.c: Remove "inline" function attribute.
3414 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3415
3416 2003-09-08 Kevin Buettner <kevinb@redhat.com>
3417
3418 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3419 target.
3420
3421 2003-09-08 Kevin Buettner <kevinb@redhat.com>
3422
3423 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3424 (frame_extra_info): Rename this struct to frv_unwind_cache.
3425 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3426 Add fields ``prev_sp'' and ``base''.
3427 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3428 (frv_saved_pc_after_call, frv_init_extra_frame_info)
3429 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3430 Delete.
3431 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3432 Revise all callers. Fill in the unwind cache argument and make
3433 other adjustments to account for new frame mechanisms.
3434 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3435 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3436 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3437 (frv_frame_unwind, frv_frame_base): New structs.
3438 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
3439 additional arguments expected by this method and adjust function
3440 body accordingly.
3441 (frv_gdbarch_init): Remove calls to the following functions:
3442 set_gdbarch_deprecated_init_frame_pc(),
3443 set_gdbarch_deprecated_saved_pc_after_call(),
3444 set_gdbarch_deprecated_frame_chain(),
3445 set_gdbarch_deprecated_frame_saved_pc(),
3446 set_gdbarch_deprecated_frame_init_saved_regs(),
3447 set_gdbarch_deprecated_push_arguments(),
3448 set_gdbarch_deprecated_push_return_address(),
3449 set_gdbarch_deprecated_pop_frame(),
3450 set_gdbarch_deprecated_call_dummy_words(),
3451 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3452 set_gdbarch_deprecated_init_extra_frame_info(),
3453 set_gdbarch_deprecated_dummy_write_sp(), and
3454 set_gdbarch_deprecated_pc_in_call_dummy().
3455 Add calls to the following functions:
3456 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3457 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3458 frame_base_set_default().
3459 * Makefile.in (frv-tdep.o): Update dependencies.
3460
3461 2003-09-09 Mark Kettenis <kettenis@gnu.org>
3462
3463 * dwarf2-frame.c (read_encoded_value): Add support for
3464 DW_EH_PE_aligned encoding.
3465
3466 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
3467
3468 * infrun.c (normal_stop): Don't print a message if the inferior
3469 has exited.
3470
3471 2003-09-08 Jim Blandy <jimb@redhat.com>
3472
3473 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3474 * dbxread.c: #include "gdb_assert.h".
3475 (read_dbx_symtab): If the objfile has no .data section, use the
3476 section index for the .bss section instead.
3477
3478 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
3479
3480 * frame.c (deprecated_safe_get_selected_frame): New function.
3481 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3482 * findvar.c (read_var_value): Call it.
3483
3484 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
3485
3486 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3487 (sh64-tdep.o): Add dependencies.
3488 * configure.tgt: Add FIXME to sh-*-linux*.
3489 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3490 (sh_gdbarch_init): Always set correct sh_show_regs function
3491 pointer. Call sh64_gdbarch_init() if machine type is sh5.
3492 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3493 * sh64-tdep.c: New file, containing all sh64 related code from
3494 sh-tdep.c.
3495 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3496 * config/sh/linux.mt (TDEPFILES): Ditto.
3497 * config/sh/nbsd.mt (TDEPFILES): Ditto.
3498 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3499 * config/sh/wince.mt (TDEPFILES): Ditto.
3500
3501 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
3502
3503 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3504 (stop_wait_callback): Handle !lp->signalled also.
3505 (lin_lwp_has_pending, flush_callback): New functions.
3506 (lin_lwp_wait): Call flush_callback.
3507 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3508 (linux_proc_pending_signals): New function.
3509 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3510
3511 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
3512
3513 From Nick Kelsey <nickk@ubicom.com>:
3514 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3515 when the stop PC is at the beginning of a function also.
3516
3517 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
3518
3519 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3520 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3521
3522 2003-09-06 Mark Kettenis <kettenis@gnu.org>
3523
3524 * sol-thread.c: Include "gdb_string.h".
3525
3526 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3527
3528 * gcore.c: Reorder include files in alphabetical order. Include
3529 "gdb_assert.h". Various coding style fixes.
3530 (derive_stack_segment, derive_heap_segment): Replace check for
3531 non-null BOTTOM and TOP with gdb_assert.
3532 (derive_heap_segment): Replace check for successful creation of
3533 ZERO with gdb_assert.
3534 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3535
3536 2003-09-04 Andrew Cagney <cagney@redhat.com>
3537
3538 * thread-db.c (verbose_dlsym): New function.
3539 (thread_db_load): Use verbose_dlsym
3540 (thread_db_new_objfile): Print that libthread_db was loaded, and
3541 that thread debugging was enabled.
3542
3543 2003-09-04 Andrew Cagney <cagney@redhat.com>
3544
3545 * configure.tgt: Add "mips64*-*-*" target. Delete
3546 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3547 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3548 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3549 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3550 mips*-sony-*, and mips64*-*-elf* targets.
3551 * config/mips/embedl.mt: Delete file.
3552 * config/mips/embedl64.mt: Delete file.
3553 * config/mips/mips.mt: Delete file.
3554 * config/mips/mips64.mt: Delete file.
3555 * config/mips/tm-embed.h: Delete file.
3556 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3557 * config/mips/embed64.mt: Delete out-of-date comment.
3558
3559 2003-09-04 Andrew Cagney <cagney@redhat.com>
3560
3561 * hppa-tdep.c (hppa_gdbarch_init): Set
3562 "have_nonsteppable_watchpoint".
3563 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3564 * mips-tdep.c (mips_dump_tdep): Do not print
3565 HAVE_NONSTEPPABLE_WATCHPOINT.
3566 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3567 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3568 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3569 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3570
3571 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
3572
3573 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3574 unused code. Add comment.
3575
3576 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
3577
3578 * breakpoint.c (watchpoint_check): Check for pc being in an
3579 epilogue if watchpoint frame couldn't be found.
3580
3581 2003-09-04 Andrew Cagney <cagney@redhat.com>
3582
3583 * Makefile.in: Re-generate all dependencies.
3584
3585 2003-09-03 Andrew Cagney <cagney@redhat.com>
3586
3587 * arch-utils.h (legacy_print_insn): Delete declaration.
3588 * arch-utils.c (legacy_print_insn): Delete function.
3589 * disasm.c (deprecated_tm_print_insn_info): Delete.
3590 (_initialize_disasm): Delete function, contained code initializing
3591 deprecated_tm_print_insn_info.
3592 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3593 (deprecated_tm_print_insn_info): Delete.
3594 (TARGET_PRINT_INSN): Do not provide a default.
3595 * gdbarch.h, gdbarch.c: Re-generate.
3596
3597 2003-09-03 Andrew Cagney <cagney@redhat.com>
3598
3599 * disasm.c (fprintf_disasm): New function.
3600 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3601 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3602 reverts 2003-08-14 change.
3603 (_initialize_disasm): Call "init_disassemble_info", instead of
3604 INIT_DISASSEMBLE_INFO_NO_ARCH.
3605
3606 2003-09-03 Michael Snyder <msnyder@redhat.com>
3607
3608 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3609
3610 2003-09-03 Andrew Cagney <cagney@redhat.com>
3611
3612 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3613 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3614 * symfile.c (syms_from_objfile): Update.
3615 (reread_symbols): `Update
3616 * exec.c (exec_file_attach): Update.
3617 (exec_file_attach): Update.
3618 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3619 2003-08-29 change.
3620 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3621
3622 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3623
3624 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3625 trad-frame.h.
3626 (arm_get_cache): Delete macro.
3627 (struct arm_prologue_cache): Update comments. Make saved_regs into
3628 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3629 to prev_sp.
3630 (thumb_scan_prologue): Update for cache changes. Don't call
3631 DEPRECATED_PC_IN_CALL_DUMMY.
3632 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3633 argument and use it in desperation search for our prologue. Do not
3634 search past the specified PC.
3635 (arm_make_prologue_cache): Simplify.
3636
3637 (arm_prologue_this_id, arm_prologue_prev_register)
3638 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3639 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3640 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3641 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3642 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3643
3644 (arm_frame_chain_valid, arm_find_callers_reg)
3645 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3646 (arm_pop_frame): Delete obsolete methods.
3647 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3648
3649 (arm_gdbarch_init): Update for new frame methods. Register prologue
3650 and sigtramp unwinders. Set the default frame base method.
3651
3652 * Makefile.in (arm-tdep.o): Update dependencies.
3653 * varobj.c (find_frame_addr_in_frame_chain): Call
3654 get_frame_base_address.
3655 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3656
3657 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3658
3659 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3660 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3661 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3662 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3663 Take NEXT_FRAME and CACHE arguments. Call
3664 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3665 Set unwound_pc in CACHE instead of modifying the frame argument.
3666 Don't bother checking the frame type when looking for sigtramp
3667 frames.
3668 (arm_make_prologue_cache, arm_frame_chain)
3669 (arm_init_extra_frame_info): New functions.
3670
3671 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3672
3673 * arm-tdep.c (arm_get_cache): Define.
3674 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3675 unwound_sp, unwound_pc, and saved_regs.
3676 (thumb_scan_prologue): Take a cache instead of the frame.
3677 (arm_scan_prologue): Likewise.
3678 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3679 instead of a temporary frame.
3680 (arm_init_extra_frame_info): Allocate and use a cache.
3681 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3682
3683 2003-09-03 Andrew Cagney <cagney@redhat.com>
3684
3685 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3686 * config/mips/wince.mt (TM_CLIBS): Ditto.
3687 * config/sh/wince.mt (TM_CLIBS): Ditto.
3688 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3689 * config/sparc/sp64.mt (CC): Delete.
3690
3691 2003-09-03 Andrew Cagney <cagney@redhat.com>
3692
3693 * defs.h: Do not include "arch-utils.h".
3694 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3695 GDB_MULTI_ARCH_PURE.
3696 * configure.in (GDB_MULTI_ARCH): Do not define.
3697 * configure, config.in: Regenerate.
3698 * configure.tgt: Do not set variable "gdb_multi_arch".
3699 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3700 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3701 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3702 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3703 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3704 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3705 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3706 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3707 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3708 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3709 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3710 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3711 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3712 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3713 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3714 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3715 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3716 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
3717
3718 2003-08-30 Michael Chastain <mec@shout.net>
3719
3720 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3721 * config/m68k/nm-hp300hpux.h: Delete.
3722 * config/m68k/tm-hp300hpux.h: Delete.
3723 * config/m68k/xm-hp300hpux.h: Delete.
3724 * config/m68k/xm-hp300bsd.h: Delete.
3725 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3726 tm-hp300hpux.h, xm-hp300hpux.h.
3727 * somsolib.c: Remove comment about hp300 shared libraries.
3728
3729 2003-08-31 Mark Kettenis <kettenis@gnu.org>
3730
3731 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3732 Only define PTRACE_GET_THREAD_AREA is not already defined.
3733 Various style fixes in code and comments and some additional
3734 spelling fixes in comments. Move after functions dealing with
3735 debug registers.
3736 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3737 Fix coding-style.
3738
3739 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3740 frame_unwind_register_unsigned instead of
3741 frame_unwind_unsigned_register.
3742
3743 2003-08-30 Mark Kettenis <kettenis@gnu.org>
3744
3745 * configure.in: Search for gethostbyname in libnsl.
3746 * configure: Regenerated.
3747
3748 2003-08-29 Mark Kettenis <kettenis@gnu.org>
3749
3750 * configure.in: Remove redundant AC_MSG_RESULT in check for
3751 uintptr_t in stdint.h.
3752 * configure: Regenerated.
3753
3754 * amd64-nat.h (struct regcache): Add opaque declaration.
3755
3756 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3757 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3758 Change "register array" to "register cache" in comments.
3759 (x86_64_linux_gregset64_reg_offset): New variable.
3760 (GETREGS_SUPPLIES): Remove macro.
3761 (supply_gregset): Call amd64_supply_native_gregset instead of
3762 x86_64_linux_supply_gregset.
3763 (fill_gregset): Rename `regno' to `regnum'. Call
3764 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3765 (store_regs): Rename `regno' to `regnum'.
3766 (store_fpregs): Rename `regno' to `regnum'.
3767 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3768 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3769 Reorganize function a bit.
3770 (store_inferior_registers): Rename `regno' to `regnum'. Use
3771 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3772 Reorganize function a bit.
3773 (_initialize_x86_64_linux_nat): New function.
3774 * config/i386/x86-64linux.mh.
3775
3776 2003-08-29 Andrew Cagney <cagney@redhat.com>
3777
3778 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3779 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3780 (target_remove_watchpoint): Delete macro.
3781 (target_insert_watchpoint): Delete macro.
3782 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3783 (remote_mips_stopped_by_watchpoint): Delete declaration.
3784 (remote_mips_remove_watchpoint): Delete declaration.
3785 (remote_mips_set_watchpoint): Delete declaration.
3786 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3787 * remote-mips.c (_initialize_remote_mips): Set
3788 "to_insert_watchpoint", "to_stopped_by_watchpoint",
3789 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3790 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3791 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3792 (mips_stopped_by_watchpoint): Rename
3793 remote_mips_stopped_by_watchpoint.
3794 (mips_can_hardware_watchpoint): Rename
3795 remote_mips_can_use_hardware_watchpoint, update function
3796 signature.
3797
3798 2003-08-29 Mark Kettenis <kettenis@gnu.org>
3799
3800 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3801 USER_DS. We haven't given them a register number yet.
3802
3803 * amd64-nat.h: New file.
3804 * amd64-nat.c: New file.
3805 * amd64fbsd-nat.c: Include "amd64-nat.h".
3806 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3807 (amd64fbsd32_r_reg_offset): New variable.
3808 (supply_gregset): Simply call amd64_supply_native_gregset.
3809 (fill_gregset): Rename `regno' to `regnum'. Simply call
3810 amd64_collect_native_gregset.
3811 (fill_fpregset): Rename `regno' to `regnum'.
3812 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3813 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3814 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3815 `fpregset_t'. Call amd64_supply_native_gregset instead of
3816 supply_gregset. Call x86_64_supply_fxsave instead of
3817 supply_fpregset.
3818 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3819 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3820 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3821 `fpregset_t'. Call amd64_collect_native_gregset instead of
3822 fill_gregset. Call x86_64_collect_fxsave instead of
3823 fill_fpregset.
3824 (_initialize_am64fbsd_nat): Initialize
3825 amd64_native_gregset32_reg_offset and
3826 amd64_native_gregset64_reg_offset.
3827 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3828
3829 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3830 null pointer. Fix typo in comment.
3831
3832 * regcache.c (supply_register): Reimplement to call
3833 regcache_raw_supply.
3834 (regcache_collect): Reimplement by calling regcache_raw_collect.
3835
3836 2003-08-28 Mark Kettenis <kettenis@gnu.org>
3837
3838 * regcache.c (register_buffer): Consitify first argument.
3839 (regcache_raw_supply, regcache_raw_collect): New
3840 functions.
3841
3842 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3843
3844 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3845 by Nathan J. Williams.
3846
3847 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3848
3849 * lin-lwp.c (wait_lwp): New function, copied from
3850 stop_wait_callback. Clean up.
3851 (stop_wait_callback): Use wait_lwp.
3852
3853 2003-08-28 Andrew Cagney <cagney@redhat.com>
3854
3855 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3856 flavour and disassembler options.
3857 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3858 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3859 deprecated_tm_print_insn_info.
3860
3861 2003-08-27 Andrew Cagney <cagney@redhat.com>
3862
3863 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3864 Use target_read_memory.
3865 (s390_get_frame_info): Update. Do not reference
3866 deprecated_tm_print_insn_info.
3867 (s390_check_function_end, s390_is_sigreturn): Ditto.
3868
3869 2003-08-27 Andrew Cagney <cagney@redhat.com>
3870
3871 * Makefile.in (cris-tdep.o): Update dependencies.
3872 * cris-tdep.c: Include "gdb_assert.h".
3873 (cris_gdbarch_init): Set print_insn.
3874 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3875 (cris_delayed_get_disassembler): Simplify, directly call the
3876 disassembler returned by cris_get_disassembler.
3877 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3878 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3879 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3880 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3881 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3882 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3883 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3884 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3885 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3886 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3887 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3888 (gdb_print_insn_sparc): Delete function.
3889 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3890 deprecated_tm_print_insn_info.
3891 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3892 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3893 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3894 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3895 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3896 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3897 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3898 (s390_gdbarch_init): Set print_insn.
3899
3900 2003-08-27 Andrew Cagney <cagney@redhat.com>
3901
3902 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3903 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3904 * infcall.c (call_function_by_hand): Convert the entry point
3905 address into a code address.
3906
3907 2003-08-27 Andrew Cagney <cagney@redhat.com>
3908
3909 * dsrec.c: Include "gdb_string.h".
3910 * Makefile.in (dsrec.o): Update dependencies.
3911
3912 2003-08-27 Michael Chastain <mec@shout.net>
3913
3914 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3915
3916 2003-08-27 Andrew Cagney <cagney@redhat.com>
3917
3918 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3919 (alpha_osf1_init_abi): Do not set call_dummy_address.
3920
3921 2003-08-27 David Carlton <carlton@kealia.com>
3922
3923 From Randolph Chung <tausq@debian.org>:
3924 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3925 compiles with -Wformat-nonliteral -Werror.
3926
3927 2003-08-26 Jim Blandy <jimb@redhat.com>
3928
3929 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3930 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3931 bfd_lookup_symbol, since we only want symbols in code sections.
3932 (look_for_base): Pass zero as the SECT_FLAGS argument to
3933 bfd_lookup_symbol, since we're not concerned about which section
3934 the symbol is in.
3935
3936 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3937
3938 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
3939 we are frameless or the return address register is already known.
3940
3941 2003-08-26 Andrew Cagney <cagney@redhat.com>
3942
3943 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3944 in size. Add comments.
3945
3946 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3947
3948 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
3949 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
3950
3951 2003-08-26 Jason Merrill <jason@redhat.com>
3952
3953 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3954 case out of #ifdef MIPS block.
3955
3956 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
3957
3958 PR java/1322
3959 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3960 available before calling SECT_OFF_TEXT.
3961 * PROBLEMS: Remove description of java/1322.
3962
3963 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3964
3965 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
3966 bof, and nat0-nat127 as pseudo-registers.
3967 (ia64_frame_cache): New struct used to cache frame info.
3968 (ia64_register_reggroup_p): New routine used to override default
3969 register grouping so registers without names are still saved and
3970 restored.
3971 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
3972 pseudo values.
3973 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3974 (ia64_pseudo_register_write): New routine to write pseudo-registers.
3975 (ia64_alloc_frame_cache): New routine to create a new
3976 ia64_frame_cache.
3977 (examine_prologue): Change prototype to add next_frame pointer.
3978 Assume frameless until otherwise proven. Verify that the cfm for
3979 current frame matches the cfm that should occur for the prologues
3980 alloc insn and if equal, mark as not frameless. At end of routine,
3981 if not frameless, calculate registers for the previous frame and store
3982 in the cache, if a cache is provided.
3983 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3984 and pass 0 for next_frame.
3985 (ia64_store_return_value): Change to use convert_typed_floating()
3986 instead of calling ia64_convert_to_raw().
3987 (ia64_extract_return_value): Change to use convert_typed_floating()
3988 instead of calling ia64_convert_to_virtual().
3989 (ia64_frame_cache): New routine to support new frame model.
3990 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3991 (ia64_frame_sniffer): Ditto.
3992 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3993 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3994 (ia64_sigtramp_frame_prev_register): Ditto.
3995 (ia64_sigtramp_frame_sniffer): Ditto.
3996 (ia64_frame_base_address): Ditto.
3997 (ia64_extract_struct_value_address): Change to issue error message.
3998 (ia64_frame_align): New routine to align sp.
3999 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
4000 (ia64_push_arguments): Removed. Logic moved to
4001 ia64_push_dummy_call().
4002 (ia64_push_return_address): Ditto.
4003 (ia64_unwind_dummy_id): New function.
4004 (ia64_unwind_pc): Ditto.
4005 (ia64_convert_register_p): Ditto.
4006 (ia64_register_to_value): Ditto.
4007 (ia64_value_to_register): Ditto.
4008 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
4009 (ia64_register_byte, ia64_register_raw_size): Ditto.
4010 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
4011 (ia64_saved_pc_after_call): Ditto.
4012 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
4013 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
4014 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
4015 (ia64_register_convert_to_raw): Ditto.
4016 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
4017 (ia64_init_extra_frame_info): Ditto.
4018 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
4019 (ia64_gdbarch_init): Remove registering of deprecated functions that
4020 are no longer used. Add registration of new gdbarch functions.
4021 Remove registering deprecated_write_sp. Replace
4022 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
4023 Delete set_gdbarch_deprecated_register_convertible(),
4024 set_gdbarch_deprecated_register_convert_to_virtual(), and
4025 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
4026 set_gdbarch_deprecated_register_size(),
4027 set_gdbarch_deprecated_register_bytes(),
4028 set_gdbarch_pcregnum(),
4029 set_gdbarch_deprecated_register_byte(),
4030 set_gdbarch_deprecated_register_raw_size(),
4031 set_gdbarch_deprecated_max_register_raw_size(),
4032 set_gdbarch_deprecated_register_virtual_size(),
4033 and set_gdbarch_deprecated_max_register_virtual_size() calls.
4034 Replace set_gdbarch_deprecated_extract_return_value() with
4035 set_gdbarch_extract_return_value(). Remove calls to:
4036 set_gdbarch_deprecated_saved_pc_after_call();
4037 set_gdbarch_deprecated_frame_chain(),
4038 set_gdbarch_deprecated_frame_saved_pc(),
4039 set_gdbarch_deprecated_frame_init_saved_regs(),
4040 set_gdbarch_deprecated_get_saved_register(),
4041 set_gdbarch_deprecated_call_dummy_words(),
4042 set_gdbarch_deprecated_sizeof_call_dummy_words(),
4043 set_gdbarch_deprecated_init_extra_frame_info(),
4044 set_gdbarch_deprecated_frame_args_address(),
4045 set_gdbarch_deprecated_frame_locals_address(),
4046 and set_gdbarch_deprecated_dummy_write_sp().
4047 Add set_gdbarch_convert_register_p(),
4048 set_gdbarch_register_to_value(),
4049 set_gdbarch_value_to_register(),
4050 set_gdbarch_push_dummy_call(),
4051 set_gdbarch_frame_align(),
4052 set_gdbarch_unwind_dummy_id(),
4053 set_gdbarch_unwind_pc(),
4054 frame_unwind_append_sniffer(),
4055 frame_unwind_append_sniffer(),
4056 and frame_base_set_default().
4057
4058 2003-08-25 Chris Demetriou <cgd@broadcom.com>
4059
4060 * configure.tgt: Document need for special "mipsisa64" handling.
4061 (mipsisa64*-*-linux64): Handle as target linux64.
4062 (mipsisa64*-*-*): Handle as target embed64.
4063
4064 2003-08-18 Michael Chastain <mec@shout.net>
4065
4066 * PROBLEMS: Document pr gdb/1322, the Java anonymous
4067 objfile bug.
4068
4069 2003-08-24 Mark Kettenis <kettenis@gnu.org>
4070
4071 * i387-tdep.h: Update copyright date.
4072 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
4073
4074 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
4075 CFLAGS games to reflect reality.
4076
4077 2003-08-24 Andrew Cagney <cagney@redhat.com>
4078
4079 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
4080 GDB_MULTI_ARCH is always non-zero.
4081 * osabi.c (_initialize_gdb_osabi): Ditto.
4082 (gdbarch_init_osabi): Ditto.
4083 * sparc-tdep.c: Ditto for #if code.
4084
4085 2003-08-23 Mark Kettenis <kettenis@gnu.org>
4086
4087 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
4088 Update comments.
4089 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
4090 comments.
4091 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
4092 x86_64_supply_fxsave.
4093 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
4094 x86_64_supply_fxsave.
4095 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
4096 x86_64_supply_fxsave.
4097
4098 2003-08-23 Andreas Jaeger <aj@suse.de>
4099
4100 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
4101 i387_supply_fxsave.
4102
4103 2003-08-23 Mark Kettenis <kettenis@gnu.org>
4104
4105 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
4106 i387_supply_register.
4107 (go32_fetch_registers): Adjust call to i387_supply_fsave.
4108 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
4109 i387_supply_fsave.
4110 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
4111 i387_supply_fxsave.
4112 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
4113 i387_supply_fsave.
4114 * i386bsd-nat.c (supply_fpregset): Adjust call to
4115 i387_supply_fsave.
4116 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
4117 call to i387_supply_fxsave. Call i387_supply_fsave instead of
4118 supply_fpregset.
4119 (store_inferior_registers): Remove extraneous whitespace. Call
4120 i387_fill_fsave instead of fill_fpregset.
4121 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
4122 (supply_fpregset): Likewise.
4123 * i386v4-nat.c (supply_fpregset): Adjust call to
4124 i387_supply_fsave.
4125 * i386-interix-nat.c (supply_fpregset): Adjust call to
4126 i387_supply_fsave.
4127 * i386-linux-nat.c (supply_fpregset): Adjust call to
4128 i387_supply_fsave.
4129 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
4130 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
4131 i387supply_fsave and i387_supply_fxsave.
4132 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
4133 Incorporate code from `i387_supply_register.
4134 (i387_supply_register): Remove.
4135 (i387_supply_fxsave): Add `regnum' argument.
4136 Update comments.
4137 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
4138 prototype.
4139 (i387_supply_register): remove prototype.
4140 Update comments.
4141
4142 2003-08-22 Michael Chastain <mec@shout.net>
4143
4144 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
4145 Add lines for files in gdb/testsuite/gdb.cp/* that are
4146 still not 8.3 unique.
4147
4148 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
4149
4150 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
4151 TYPE_VPTR_FIELDNO is valid.
4152
4153 2003-08-19 Mark Kettenis <kettenis@gnu.org>
4154
4155 * utils.c (set_width_command): Remove prototypes.
4156 (set_screen_size): New prototype.
4157 (init_page_info): Simplify by fetching the screen size from
4158 Readline. Call set_screen_size.
4159 (set_screen_size): New function.
4160 (set_width): Add missing whitespace in comment.
4161 (set_width_command): Call set_screen_size.
4162 (set_height_command): New function.
4163 (initialize_utils): Fix formatting. Make "set height" command
4164 call set_height_command. Remove redundant code that turns off
4165 pagination if output isn't a terminal. Remove redundant call to
4166 set_width_command.
4167
4168 2003-08-22 Mark Kettenis <kettenis@gnu.org>
4169
4170 * sparc64-tdep.h (sparc64_regnum): Fix comment.
4171 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
4172 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
4173 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
4174 `case' keyword.
4175 (sparc64_register_info): Give the reister with number
4176 SPARC64_STATE_REGNUM a name.
4177 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
4178 %asi and %ccr.
4179 (sparc64_push_dummy_call): Take BIAS into account when checking
4180 stcak alignment.
4181 (sparc_software_single_step): Remove assertions that check whether
4182 NPC and NNPC were zero.
4183 (sparc_supply_rwindow): Make public. Merge functionality with
4184 sparc64_supply_rwindow.
4185 (sparc_fill_rwindow): Make public. Merge functionality with
4186 sparc64_fill_rwindow.
4187 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
4188 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
4189 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
4190 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
4191 sparc_supply_rwindow instead of sparc64_supply_rwindow.
4192
4193 * reggroups.c: Add whitespace after declarations of local
4194 variables in functions.
4195
4196 2003-08-21 Michael Chastain <mec@shout.net>
4197
4198 * gdbtypes.h: Change array bound type from an int to enum.
4199
4200 2003-08-21 Andrew Cagney <cagney@redhat.com>
4201
4202 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
4203 * config/sparc/tm-sparc.h: Ditto.
4204 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
4205 unconditionally.
4206 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
4207
4208 2003-07-13 Mark Kettenis <kettenis@gnu.org>
4209
4210 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
4211 (register_objfile_data, set_objfile_data, objfile_data): New
4212 prototypes.
4213 * objfiles.c (objfile_alloc_data, objfile_free_data): New
4214 prototypes.
4215 (allocate_objfile): Call objfile_alloc_data.
4216 (free_objfile): Call objfile_free_data.
4217 (struct objfile_data): New.
4218 (struct objfile_data_registration): New.
4219 (struct objfile_data_registry): New.
4220 (objfile_data_registry): New variable.
4221 (register_objfile_data): New function.
4222 (objfile_alloc_data, objfile_free_data): New functions.
4223 (set_objfile_data, objfile_data): New functions.
4224 * dwarf2-frame.c (dwarf2_frame_data): New variable.
4225 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
4226 (_initialize_dwarf2_frame): New function and prototype.
4227
4228 2003-08-21 Andrew Cagney <cagney@redhat.com>
4229
4230 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4231 a specific architecture.
4232 * arch-utils.h (set_architecture_from_arch_mach): Delete
4233 declaration.
4234 (target_architecture_hook): Delete declaration.
4235 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
4236 (default_float_format): Assume GDB_MULTI_ARCH.
4237 (default_double_format): Assume GDB_MULTI_ARCH.
4238 (set_endian_from_file): Delete function.
4239 (arch_ok): Delete function.
4240 (set_arch): Delete function.
4241 (set_architecture_from_arch_mach): Delete function.
4242 (set_architecture_from_file): Delete function.
4243 (set_architecture): Assume GDB_MULTI_ARCH.
4244 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
4245
4246 2003-08-21 Mark Kettenis <kettenis@gnu.org>
4247
4248 Rewrite FreeBSD/sparc64 native configuration.
4249 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
4250 * sparc64fbsd-nat.c: New file.
4251 * sparc64fbsd-tdep.c: New file.
4252 * sparc64-tdep.c sparc64-tdep.h: New files.
4253 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
4254 sparc64fbsd-tdep.o): New dependencies.
4255 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
4256 and sparc64fbsd-tdep.c.
4257 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
4258 * config/sparc/fbsd.mh: Remove copyright notice.
4259 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
4260 sparcbsd-nat.o.
4261 * config/sparc/fbsd.mt: Remove copyright notice.
4262 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4263 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4264 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4265 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4266 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4267 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4268 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4269 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4270 "sparc/tm-sp64.h".
4271 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4272 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4273
4274 2003-08-21 Michael Chastain <mec@shout.net>
4275
4276 * symtab.h: Add doco on the space critical structures and
4277 some measurements of space usage.
4278
4279 2003-08-21 Michael Snyder <msnyder@redhat.com>
4280
4281 * tracepoint.c (trace_dump_command): Trace break address
4282 is subject to DECR_PC_AFTER_BREAK.
4283 (set_traceframe_context): Make "trace_line" an int.
4284 Fixes suggested by Mark Newman <mark.newman@lmco.com>
4285
4286 2003-08-20 Michael Snyder <msnyder@redhat.com>
4287
4288 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
4289 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4290 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
4291 argument passing.
4292 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
4293 functions, replace sh_push_dummy_call.
4294 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4295
4296 2003-08-20 Michael Chastain <mec@shout.net>
4297
4298 * gdbtypes.h (struct main_type): Rearrange to save space.
4299
4300 2003-08-20 Michael Snyder <msnyder@redhat.com>
4301
4302 * trad-frame.c: Comment typo fix.
4303
4304 2003-08-20 Michael Snyder <msnyder@redhat.com>
4305 Kevin Buettner <kevinb@redhat.com>
4306
4307 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4308 (frv_frame_init_saved_regs): Add declaration.
4309 (frame_extra_info): Add new field ``saved_regs''.
4310 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4311 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4312 Update frame related code.
4313 (frv_extract_struct_value_address): Adjust formatting.
4314 * Makefile.in (frv-tdep.o): Update dependencies.
4315 * config/frv/tm-frv.h (target_insert_watchpoint)
4316 (target_remove_watchpoint, target_insert_hw_breakpoint)
4317 (target_remove_hw_breakpoint): Delete these macros.
4318 (remote_insert_watchpoint, remote_remove_watchpoint)
4319 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4320 these declarations.
4321
4322 2003-08-20 Michael Chastain <mec@shout.net>
4323
4324 * defs.h (ENUM_BITFIELD): New macro.
4325 * symtab.h (ENUM_BITFIELD): Use it.
4326 (BYTE_BITFIELD): Remove old macro, which was already disabled.
4327
4328 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
4329
4330 * MAINTAINERS (write after approval): Add myself.
4331
4332 2003-08-18 Andrew Cagney <cagney@redhat.com>
4333
4334 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4335 * gdbarch.h, gdbarch.c: Re-generate.
4336 * infcall.c (call_function_by_hand): Adjust the SP by
4337 frame_red_zone_size before allocating any stack space.
4338 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4339 * x86-64-tdep.c (x86_64_frame_align): New function.
4340 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4341
4342 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4343 Remove code adjusting SP so that it skips over the Red Zone.
4344
4345 2003-08-18 Mark Kettenis <kettenis@gnu.org>
4346
4347 * NEWS (New native configurations): Mention FreeBSD/amd64.
4348
4349 2003-08-18 Andrew Cagney <cagney@redhat.com>
4350
4351 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4352 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
4353 "m68k_frame_p".
4354 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4355
4356 2003-08-18 Mark Kettenis <kettenis@gnu.org>
4357
4358 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4359
4360 2003-08-18 Michal Ludvig <mludvig@suse.cz>
4361
4362 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4363 Define.
4364 * i386-linux-nat.c: Include "linux-nat.h".
4365 (child_post_startup_inferior): New function.
4366
4367 2003-08-18 Mark Kettenis <kettenis@gnu.org>
4368
4369 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4370 at the start of a frameless function. This probably fixes PR
4371 backtrace/1338.
4372
4373 2003-08-17 Michael Chastain <mec@shout.net>
4374
4375 * symfile.c (find_sym_fns): Remove special case for apollo target.
4376
4377 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
4378
4379 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4380 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4381 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4382 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4383 (linux_supports_tracevforkdone): New function.
4384 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4385 TRACEVFORKDONE.
4386 (child_follow_fork): Handle vfork.
4387 (linux_handle_extended_wait): Likewise. Also handle exec.
4388 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4389 * NEWS: Mention fork tracing.
4390
4391 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
4392
4393 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4394
4395 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
4396
4397 * Makefile.in (i386-linux-nat.o): Update dependencies.
4398 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4399 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4400 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4401 * i386-linux-nat.c: Include "linux-nat.h".
4402 (child_post_startup_inferior): New function.
4403 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4404 * infptrace.c (kill_inferior): Wrap in #ifdef.
4405 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4406 attaching to each LWP.
4407 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4408 (init_lin_lwp_ops): Fill in some more operations.
4409 * linux-nat.h (linux_enable_event_reporting)
4410 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4411 prototypes.
4412 * linux-nat.c (linux_enable_event_reporting): New function.
4413 (child_post_attach, linux_child_post_startup_inferior)
4414 (child_post_startup_inferior, child_follow_fork)
4415 (linux_handle_extended_wait, kill_inferior): New functions.
4416
4417 2003-08-16 Andrew Cagney <cagney@redhat.com>
4418
4419 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4420 * gdbarch.h, gdbarch.c: Re-generate.
4421
4422 2003-08-16 Mark Kettenis <kettenis@gnu.org>
4423
4424 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4425
4426 2003-08-16 Andrew Cagney <cagney@redhat.com>
4427
4428 * NEWS: Mention that "set prompt-escape-char" was deleted.
4429 * top.c (get_prompt_1): Delete function.
4430 (gdb_prompt_escape):
4431 (init_main): Do not clear "gdb_prompt_escape". Delete "set
4432 prompt-escape-char" command.
4433 (MAX_PROMPT_SIZE): Delete macro.
4434 (get_prompt): Simplify, do not call get_prompt_1.
4435
4436 2003-08-16 Andrew Cagney <cagney@redhat.com>
4437
4438 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4439 -Werror. -Wformat-nonliteral problems.
4440
4441 2003-08-15 J. Brobecker <brobecker@gnat.com>
4442
4443 Further multiarching work mostly for hppa64-*-hpux11:
4444 * hppa-tdep.h: New file.
4445 * hppa-tdep.c: #include hppa-tdep.c.
4446 (hppa32_num_regs): Renamed from hppa_num_regs.
4447 (hppa64_num_regs): New constant.
4448 (hppa64_call_dummy_breakpoint_offset): New constant.
4449 (hppa32_call_dummy_length): New constant.
4450 (hppa64_call_dummy_length): New constant.
4451 (hppa32_stack_align): Make name 32bit explicit.
4452 (hppa32_register_virtual_type): Likewise.
4453 (hppa32_extract_return_value): Likewise.
4454 (hppa32_use_struct_convention): Likewise.
4455 (hppa32_store_return_value): Likewise.
4456 (hppa64_register_virtual_type): New function.
4457 (hppa64_extract_return_value): New function.
4458 (hppa64_use_struct_convention): New function.
4459 (hppa64_store_return_value): New function.
4460 (hppa_frame_locals_address): Remove declaration, function does
4461 not exist anymore.
4462 (hppa_register_byte): Add support for PA64 ABI.
4463 (hppa_gdbarch_init): Add support for PA64 ABI.
4464 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4465 Make name 32bit explicit.
4466 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4467 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4468 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4469 (hppa64_hpux_frame_base_before_sigtramp): New function.
4470 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4471 * config/pa/tm-hppa64.h: Remove macros that are no longer
4472 necessary now that the gdbarch vector is properly setup.
4473 Transform some macros into function calls. Some minor cleanup.
4474 * config/pa/tm-hppah.h: Update function calls in macros
4475 following the function renaming in hppa-hpux-tdep.c.
4476 * Makefile.in (hppa_tdep_h): New variable.
4477 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4478
4479 2003-08-14 Michael Snyder <msnyder@redhat.com>
4480
4481 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4482
4483 2003-08-13 J. Brobecker <brobecker@gnat.com>
4484
4485 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4486 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4487 routine.
4488
4489 2003-08-13 Michael Snyder <msnyder@redhat.com>
4490
4491 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4492 (frv_saved_pc_after_call): Use deprecated ftype.
4493 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4494 (frv_remote_translate_xfer_address): Remove.
4495 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4496
4497 2003-08-13 J. Brobecker <brobecker@gnat.com>
4498
4499 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4500 initialization after the common gdbarch initialization, not before.
4501
4502 2003-08-13 J. Brobecker <brobecker@gnat.com>
4503
4504 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4505 (ADDR_BITS_REMOVE): Remove, redundant.
4506
4507 2003-08-13 J. Brobecker <brobecker@gnat.com>
4508
4509 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4510 gdbarch method to clear the 2 low bits of text addresses.
4511
4512 2003-08-12 Andrew Cagney <cagney@redhat.com>
4513
4514 * Makefile.in (dsrec.o): Update dependencies.
4515 * dsrec.c: Include "gdb_assert.h".
4516 (make_srec): Use snprintf instead of sprintf, use a literal format
4517 string.
4518
4519 2003-08-12 Andrew Cagney <cagney@redhat.com>
4520
4521 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4522 FRAME_OBSTACK_ZALLOC.
4523
4524 2003-08-12 Kevin Buettner <kevinb@redhat.com>
4525
4526 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4527 SSE registers.
4528
4529 2003-08-10 Mark Kettenis <kettenis@gnu.org>
4530
4531 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4532 amd64fbsd_sc_reg_offset): Add extern declarations.
4533 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4534 declarations.
4535
4536 2003-08-11 Ben Elliston <bje@wasabisystems.com>
4537
4538 * MAINTAINERS (write after approval): Update my mail address.
4539
4540 2003-08-10 Andrew Cagney <cagney@redhat.com>
4541
4542 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4543
4544 2003-08-10 Mark Kettenis <kettenis@gnu.org>
4545
4546 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4547 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4548 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4549 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4550 i386bsd_sc_reg_offset): Add extern declarations.
4551 * i386obsd-nat.c: Include "i386-tdep.h"
4552 (_initialize_i386obsd_nat): Remove extern declarations.
4553 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4554 declarations.
4555 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4556 declarations.
4557
4558 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4559 instead of frame_read_register.
4560 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4561 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4562 SP_REGNUM.
4563 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4564 instead of frame_unwind_unsigned_register. Use
4565 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4566 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4567 instead of read_register. Use builtin_type_void_data_ptr instead
4568 of builtin_type_void_func_ptr when extracting the address of the
4569 jmp_buf.
4570 (i386_extract_return_value, i386_store_return_value,
4571 i386_pseudo_register_read, i386_pseudo_register_write): Use
4572 register_size instead REGISTER_RAW_SIZE.
4573
4574 2003-08-10 Andrew Cagney <cagney@redhat.com>
4575
4576 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4577 sprintf. Make "name" constant.
4578
4579 2003-08-10 Mark Kettenis <kettenis@gnu.org>
4580
4581 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4582 instead of frame_read_register.
4583 (i387_print_float_info): Use get_frame_register and
4584 get_frame_register_unsigned instead of frame_register_read.
4585
4586 * i386fbsd-nat.c: Include "i386-tdep.h".
4587 (child_resume): Make `eflags' an ULONGEST. Use
4588 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4589 instead of register_read and register_write.
4590
4591 * i386bsd-nat.c (fetch_inferior_registers,
4592 store_inferior_registers): Don't use && at the end of a line.
4593 (_initialize_i386bsd_nat): Fix typo.
4594
4595 * frame.c (_initialize_frame): Add missing backslash.
4596
4597 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4598 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4599 and supply_register instead of manipulating the register buffer
4600 directly.
4601
4602 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4603 * config/i386/nm-i386sol2.h
4604 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4605
4606 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4607 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4608 instructions that GCC likes to mingle into the prologue. Fixes
4609 gdb/1253 and gdb/1255.
4610
4611 2003-08-09 Andrew Cagney <cagney@redhat.com>
4612
4613 Fix GDB PR cli/926.
4614 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4615 * command.h (add_setshow_uinteger_cmd): Declare.
4616 * frame.c (set_backtrace_cmd): New function.
4617 (show_backtrace_cmd): New function.
4618 * frame.c (_initialize_frame): Replace "set/show
4619 backtrace-below-main" with "set/show backtrace past-main". Add
4620 command "set/show backtrace limit".
4621 (backtrace_past_main): Rename "backtrace_below_main".
4622 (backtrace_limit): New variable.
4623 (get_prev_frame): Update. Check the backtrace_limit.
4624
4625 2003-08-09 Andrew Cagney <cagney@redhat.com>
4626
4627 * defs.h (xstrprintf): Declare.
4628 * utils.c (xstrprintf): New function.
4629 * breakpoint.c (insert_breakpoints): Replace sprintf and
4630 non-literal format strings, with xstrprintf and cleanups.
4631 (delete_breakpoint,breakpoint_re_set): Ditto.
4632 (commands_command, insert_breakpoints): Ditto.
4633 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4634 (break_at_finish_command_1): Ditto.
4635
4636 2003-08-09 Andrew Cagney <cagney@redhat.com>
4637
4638 * MAINTAINERS (language support): List Adam Fedor as Objective C
4639 maintainer.
4640
4641 2003-08-08 J. Brobecker <brobecker@gnat.com>
4642
4643 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4644 are now multiarched.
4645
4646 2003-08-08 J. Brobecker <brobecker@gnat.com>
4647
4648 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4649 longer necessary now that hppa64 is partially multiarch'ed.
4650
4651 2003-08-08 Andrew Cagney <cagney@redhat.com>
4652
4653 * interps.c (interp_set): Check for a NULL "old_interp".
4654
4655 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4656
4657 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4658 (install-only): Support DESTDIR.
4659 (uninstall): Likewise.
4660 (install-gdbtk): Likewise.
4661
4662 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
4663
4664 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4665 contains something meaningful at all times.
4666
4667 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
4668
4669 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
4670
4671 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4672
4673 * MAINTAINERS (write after approval): Added self.
4674
4675 2003-08-07 Andrew Cagney <cagney@redhat.com>
4676
4677 * inferior.h (AT_SYMBOL): Define.
4678 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4679 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4680 * mips-tdep.c (mips_call_dummy_address): Delete function.
4681 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4682 set call_dummy_address.
4683
4684 2003-08-07 Andrew Cagney <cagney@redhat.com>
4685
4686 * language.c (op_error): Delete function.
4687 (binop_type_check): Delete function.
4688 * language.h (type_op_error, range_op_error): Delete macros.
4689 (op_error): Delete declaration.
4690
4691 2003-08-07 Andrew Cagney <cagney@redhat.com>
4692
4693 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4694
4695 2003-08-07 Michal Ludvig <mludvig@suse.cz>
4696
4697 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
4698 (x86_64_push_arguments): Skip the red zone.
4699
4700 2003-08-05 Andrew Cagney <cagney@redhat.com>
4701
4702 * reggroups.c (reggroup_next): Check for the final entry.
4703
4704 2003-08-04 Andrew Cagney <cagney@redhat.com>
4705
4706 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4707 * cli/cli-script.c (define_command): Call query directly, instead
4708 of passing it a buffer.
4709 * ocd.c (ocd_error): Pass error a constant format string.
4710 * remote-mips.c (mips_error): Use fputs_filtered.
4711
4712 * solib-svr4.c (_initialize_svr4_solib): Update
4713 register_gdbarch_data call.
4714 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4715
4716 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4717 (register_gdbarch_data): Delete "free" parameter. Update
4718 comments.
4719 * gdbarch.h, gdbarch.c: Re-generate.
4720 * reggroups.c (_initialize_reggroup): Update.
4721 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4722 * frame-base.c (_initialize_frame_base): Update.
4723 * frame-unwind.c (_initialize_frame_unwind): Update.
4724 * user-regs.c (_initialize_user_regs): Update.
4725 * remote.c (_initialize_remote): Update.
4726 * regcache.c (_initialize_regcache): Update.
4727
4728 * regcache.c (xfree_regcache_descr): Delete function.
4729 (_initialize_regcache): Update call to register_gdbarch_data.
4730 (init_regcache_descr, init_legacy_regcache_descr): Use
4731 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4732
4733 * remote.c (free_remote_state): Delete function.
4734 (_initialize_remote): Update register_gdbarch_data.
4735 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4736 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4737
4738 2003-08-04 Andrew Cagney <cagney@redhat.com>
4739
4740 * reggroups.c (struct reggroup_el): Define.
4741 (struct reggroups): Delete field "nr_group". Replace array
4742 "group" with a "first" to "last" linked list.
4743 (reggroups_init): Update. Allocate using gdbarch's obstack.
4744 (reggroups_free): Delete function.
4745 (add_group): Update. Add "el" parameter.
4746 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4747 (default_groups): Update.
4748 (reggroup_next): Replace reggroups.
4749 (reggroups_dump): Update.
4750 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4751 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4752 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4753
4754 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
4755
4756 * Makefile.in (tui-interp.o): Update dependencies.
4757
4758 2003-08-04 David Carlton <carlton@kealia.com>
4759
4760 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4761 to internal_error call.
4762 * source.c (forward_search_command): Add "%s" format argument.
4763 (reverse_search_command): Ditto.
4764 * top.c (quit_confirm): Ditto.
4765 * cli/cli-setshow.c (do_setshow_command): Ditto.
4766 * cp-valprint.c (cp_print_class_method): Replace
4767 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4768 (cp_print_class_member): Ditto.
4769 * event-top.c (command_line_handler): Ditto.
4770 * linux-proc.c (linux_info_proc_cmd): Ditto.
4771 * p-typeprint.c (pascal_type_print_base): Ditto.
4772 * p-valprint.c (pascal_object_print_class_method): Ditto.
4773 (pascal_object_print_class_member): Ditto.
4774 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4775 * remote.c (remote_cisco_section_offsets): Ditto.
4776 * top.c (command_line_input): Ditto.
4777 * utils.c (vwarning,error_stream,quit): Ditto.
4778 * valprint.c (print_floating,print_binary_chars)
4779 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4780
4781 2003-08-04 Andrew Cagney <cagney@redhat.com>
4782
4783 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4784
4785 2003-08-02 Andrew Cagney <cagney@redhat.com>
4786
4787 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4788 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4789 amd64fbsd-nat.c.
4790
4791 2003-08-02 Andrew Cagney <cagney@redhat.com>
4792
4793 * Makefile.in: Update all dependencies and definitions.
4794
4795 2003-08-02 Adam Fedor <fedor@gnu.org>
4796
4797 * linespec.c (is_objc_method_format): New function
4798 (decode_line_1, locate_first_half): Use it.
4799 Fixes PR objc/1298
4800
4801 2003-08-01 Andrew Cagney <cagney@redhat.com>
4802
4803 * NEWS: Mention that m32r is multi-arch.
4804 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4805 * configure.tgt: Recognize m32r-*-*.
4806 * config/m32r/tm-m32r.h: Delete file.
4807 * config/m32r/m32r.mt: New file.
4808 * m32r-rom.c (m32r_upload_command): Use hostent only when
4809 gethostname succeeds, in order to avoid a compilation
4810 warning.
4811 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4812 compiler warning.
4813
4814 2003-08-01 Michael Snyder <msnyder@redhat.com>
4815
4816 * sh-tdep.c (sh_frame_align): New gdbarch method.
4817 (sh_gdbarch_init): Set up frame_align method.
4818
4819 2003-07-31 Michael Snyder <msnyder@redhat.com>
4820
4821 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4822 which is already covered by the new frames infrastructure.
4823
4824 2003-07-31 Andrew Cagney <cagney@redhat.com>
4825
4826 * user-regs.c (struct user_reg): Add "next" link.
4827 (struct user_regs): Replace "user" with "first" and "last" links.
4828 (append_user_reg): Add pre-allocated "reg" parameter.
4829 (builtin_user_regs): Provide initial value for "last".
4830 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4831 (user_regs_init): Allocate memory from the gdbarch obstack.
4832 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4833 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4834 linked list.
4835 (usernum_to_user_reg): New function.
4836 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4837 (value_of_user_reg): Use usernum_to_user_reg.
4838 (user_regs_free): Delete function.
4839 (_initialize_user_regs): Update register_gdbarch_data call.
4840
4841 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
4842
4843 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4844
4845 2003-07-30 Michael Snyder <msnyder@redhat.com>
4846
4847 * value.h (value_being_returned): Add a struct_addr argument.
4848 * infcall.c (call_function_by_hand): Pass struct_addr to
4849 value_being_returned.
4850 * infcmd.c (print_return_value): Pass zero as struct_addr.
4851 * values.c (value_being_returned): If struct_addr is passed,
4852 use it instead of trying to recover it from the inferior.
4853
4854 2003-07-30 Kevin Buettner <kevinb@redhat.com>
4855
4856 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4857 the prologue analyzer won't need to attempt to extract the pc
4858 value from the woefully incomplete dummy frame.
4859 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4860 possible. Disable code which modifies the frame.
4861
4862 2003-07-28 Andrew Cagney <cagney@redhat.com>
4863
4864 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4865 to level 2.
4866 (annotate_breakpoints_table, annotate_record): Ditto.
4867 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4868 (annotate_field_name_end, annotate_field_value): Ditto.
4869 (annotate_field_end, annotate_frame_source_begin): Ditto.
4870 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4871 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4872 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4873 (annotate_frame_address_end, annotate_frame_address): Ditto.
4874 (annotate_frame_args, annotate_frame_end): Ditto.
4875 (annotate_frame_where, annotate_arg_begin): Ditto.
4876 (annotate_arg_name_end, annotate_arg_value): Ditto.
4877 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4878 (annotate_function_call, annotate_signal_name): Ditto.
4879 (annotate_signal_string, annotate_signal_name_end): Ditto.
4880 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4881 (annotate_value_begin, annotate_value_history_value): Ditto.
4882 (annotate_value_history_end, annotate_value_end): Ditto.
4883 (annotate_display_begin, annotate_display_number_end): Ditto.
4884 (annotate_display_format, annotate_display_expression): Ditto.
4885 (annotate_display_expression_end, annotate_display_value): Ditto.
4886 (annotate_display_end, annotate_array_section_begin): Ditto.
4887 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4888 (annotate_elt, annotate_array_section_end): Ditto.
4889
4890 2003-07-28 Andrew Cagney <cagney@redhat.com>
4891
4892 * regcache.c (struct regcache_descr): Update comments on
4893 nr_raw_registers.
4894 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4895 sizeof_raw_register_valid_p.
4896 (init_regcache_descr): Set nr_raw_registers and
4897 sizeof_raw_register_valid_p before calling
4898 init_legacy_regcache_descr.
4899
4900 2003-07-28 Andrew Cagney <cagney@redhat.com>
4901
4902 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4903 MOD NUM_REGS.
4904
4905 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
4906
4907 * thread.c (info_threads_command): Use get_selected_frame ().
4908 Check that there is at least one non-sentinel frame.
4909
4910 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4911
4912 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4913 (m68hc11_pop_frame): Remove.
4914 (m68hc11_frame_saved_pc): Remove.
4915 (m68hc11_frame_chain): Remove.
4916 (m68hc11_frame_init_saved_regs): Remove.
4917 (m68hc11_init_extra_frame_info): Remove.
4918 (m68hc11_store_struct_return): Remove.
4919 (m68hc11_saved_pc_after_call): Remove.
4920
4921 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4922
4923 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4924 frame unwind information.
4925 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4926 and adapted for frame unwinding.
4927 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4928 (m68hc11_unwind_pc): New function.
4929 (m68hc11_frame_unwind_cache): New function to analyze frames.
4930 (m68hc11_frame_this_id): New function to create new frame struct.
4931 (m68hc11_frame_prev_register): New function to unwind a register from
4932 the frame.
4933 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4934 (m68hc11_frame_p): New function for the above.
4935 (m68hc11_frame_base_address): New function to return fp of frame.
4936 (m68hc11_frame_args_address): Update for frame.
4937 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4938 (m68hc11_unwind_sp): New function.
4939 (m68hc11_unwind_dummy_id): New function.
4940 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4941 calls.
4942
4943 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4944
4945 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4946 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4947 when we are beyond the current pc.
4948
4949 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4950
4951 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4952 from m68hc11_push_arguments.
4953 (m68hc11_push_arguments): Remove.
4954 (m68hc11_push_return_address): Remove.
4955 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4956 handlers; remove deprecated_extra_stack_alignment_needed.
4957
4958 2003-07-27 Andrew Cagney <cagney@redhat.com>
4959
4960 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4961 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4962 REAL_PC and not the pointer.
4963 * hppa-hpux-tdep.c: Include frame.h
4964
4965 2003-07-27 Andrew Cagney <cagney@redhat.com>
4966
4967 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4968 GDB_MULTI_ACH_PARTIAL.
4969
4970 2003-07-27 Andrew Cagney <cagney@redhat.com>
4971
4972 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4973 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4974 operator at start and not end of line.
4975 (decode_prologue): Ditto.
4976 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4977 frame_unwind_register_unsigned instead of
4978 frame_unwind_unsigned_register.
4979 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4980 read_register.
4981 (m32r_push_dummy_call): Use register_size instead of
4982 REGISTER_RAW_SIZE.
4983 (m32r_frame_sniffer): Replace m32r_frame_p.
4984 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4985 * m32r-rom.c (report_transfer_performance): Delete extern
4986 declaration.
4987 (m32r_load, m32r_upload_command): Use print_transfer_performance
4988 instead of report_transfer_performance.
4989 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4990 / add_show_from_set.
4991
4992 2003-07-26 Andrew Cagney <cagney@redhat.com>
4993
4994 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4995 store_return_value and extract_struct_value_address.
4996
4997 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
4998
4999 PR c++/1267
5000 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
5001 NULL, default to the section containing PC.
5002
5003 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
5004
5005 * NEWS: Mention "regs" deprecated for m68hc11 too.
5006
5007 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
5008 (m68hc11_print_register): New function to print out one register.
5009 (m68hc11_print_registers_info): New function to print registers.
5010 (show_regs): Deprecate and use the above.
5011 (m68hc11_gdbarch_init): Install the print_registers_info.
5012
5013 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
5014
5015 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
5016 that we have a SIGTRAP before returning non-zero.
5017
5018 2003-07-23 Michal Ludvig <mludvig@suse.cz>
5019 Elena Zannoni <ezannoni@redhat.com>
5020
5021 * linespec.c (decode_line_2): Avoid crash if
5022 find_function_start_sal() returns empty record.
5023
5024 2003-07-23 Andreas Schwab <schwab@suse.de>
5025
5026 * ia64-tdep.c (ia64_print_insn): New function.
5027 (ia64_gdbarch_init): Set print_insn to it.
5028 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
5029 deprecated_tm_print_insn_info.
5030
5031 2003-07-22 Michael Snyder <msnyder@redhat.com>
5032
5033 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
5034 handle 8-bit returns (long long).
5035 (h8300h_extract_return_value): Ditto.
5036 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
5037
5038 2003-07-22 Andrew Cagney <cagney@redhat.com>
5039
5040 * gdbarch.c Include "gdb_obstack.h".
5041 (struct gdbarch): Add an "obstack".
5042 (alloc_gdbarch_data): Allocate the gdbarch data using
5043 GDBARCH_OBSTACK_CALLOC.
5044 (free_gdbarch_data): Delete function.
5045 (gdbarch_obstack_zalloc): New function.
5046 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
5047 Assert that the architecture is not initialized.
5048 (gdbarch_alloc): Allocate an obstack, allocate the architecture
5049 vector from the obstack.
5050 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
5051 architecture obstack.
5052 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
5053 (set_gdbarch_data): Assert that the data is not initialized.
5054 (struct gdbarch_data): Delete member "free".
5055 (register_gdbarch_data): Do not initialize "free".
5056 * gdbarch.h, gdbarch.c: Re-generate.
5057
5058 2003-07-22 Andrew Cagney <cagney@redhat.com>
5059
5060 * configure.in (build_warnings): Add -Wformat-nonliteral.
5061 * configure: Re-generate.
5062
5063 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
5064
5065 * dwarf2loc.c (locexpr_describe_location): Fix typos.
5066
5067 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
5068
5069 * findvar.c (read_var_value): Remove case for thread local storage
5070 variables. It is now entirely handled by the dwarf2 location
5071 expression code.
5072 * printcmd.c (address_info): Ditto.
5073 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
5074 enumeration value.
5075 (struct symbol): Remove objfile field, which was used by
5076 LOC_THREAD_LOCAL_STATIC only.
5077 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
5078 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
5079 usage of objfile pointer.
5080 * dwarf2loc.c (locexpr_describe_location): Add case to handle
5081 thread local variables.
5082 Add include of objfiles.h.
5083 * dwarf2expr.c (execute_stack_op): Add comments about thread local
5084 storage variables.
5085 * Makefile.in (dwarf2loc.o): Update dependencies.
5086
5087 2003-07-22 Andrew Cagney <cagney@redhat.com>
5088
5089 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
5090 get_frame_base.
5091 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
5092 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
5093 (struct value): Add opaque declaration.
5094 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
5095
5096 2003-07-21 Andrew Cagney <cagney@redhat.com>
5097
5098 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5099 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
5100
5101 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5102
5103 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
5104 regcache_cooked_read_unsigned instead of read_register.
5105 (m68hc11_saved_pc_after_call): Likewise.
5106 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
5107 instead of write_register.
5108 (m68hc11_register_type): New function.
5109 (m68hc11_register_virtual_type): Remove.
5110 (m68hc11_store_return_value): Convert to use the regcache.
5111 (m68hc11_extract_struct_value_address): Likewise.
5112 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
5113 m68hc11_register_type; undeprecate store_return_value and
5114 extract_struct_value_address.
5115
5116 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5117
5118 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
5119 and translate to use regcache.
5120 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
5121
5122 2003-07-18 Andrew Cagney <cagney@redhat.com>
5123
5124 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
5125 * gdbarch.h, gdbarch.c: Re-generate.
5126 * i386-tdep.c (i386_gdbarch_init): Do not set
5127 DWARF2_BUILD_FRAME_INFO.
5128 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
5129 unconditionally.
5130 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
5131 DWARF2_BUILD_FRAME_INFO.
5132
5133 2003-07-18 Andrew Cagney <cagney@redhat.com>
5134
5135 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5136 * disasm.c (gdb_disassemble_info): Initilize di.arch.
5137
5138 2003-07-18 Andrew Cagney <cagney@redhat.com>
5139
5140 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
5141 frame_unwind_address_in_block, instead of frame_pc_unwind.
5142 (dwarf2_frame_cache): Ditto.
5143
5144 2003-07-18 Andrew Cagney <cagney@redhat.com>
5145
5146 * user-regs.h (struct gdbarch): Declare opaque.
5147 * ui-out.h (struct ui_file): Declare opaque.
5148 * dwarf2-frame.h (struct frame_info): Declare opaque.
5149
5150 2003-07-18 Kris Warkentin <kewarken@qnx.com>
5151
5152 * nto-procfs.c: Clean ARI hits. Change #include <..> to
5153 #include "...".
5154 (procfs_meminfo): Change strerror to safe_strerror.
5155 (procfs_can_run): Remove K&R badness.
5156
5157 2003-07-17 Michael Snyder <msnyder@redhat.com>
5158
5159 * remote-sim.c: Comment typo fix.
5160
5161 2003-07-17 Andrew Cagney <cagney@redhat.com>
5162
5163 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
5164 configure.
5165 * sparc-tdep.c (sparc_intreg_size): Make non-static.
5166 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
5167 GDB_MULTI_ARCH_PARTIAL.
5168
5169 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
5170
5171 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
5172 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
5173 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
5174
5175 2003-07-16 Theodore A. Roth <troth@openavr.org>
5176
5177 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
5178 found.
5179 (avr_frame_unwind_cache): Don't unwind FP for main.
5180 Update a comment.
5181 Save the computed prev_sp.
5182 (avr_saved_regs_unwinder): Remove function.
5183 (avr_frame_prev_register): Use PC unwind logic from
5184 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
5185
5186 2003-07-16 Andrew Cagney <cagney@redhat.com>
5187
5188 * frame-base.h (frame_base_p_ftype): Delete definition.
5189 (frame_base_append_predicate): Delete declaration.
5190 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
5191 (frame_unwind_append_predicate): Delete declaration.
5192 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
5193 (append_predicate): Delete parameter "p".
5194 (frame_unwind_append_predicate): Delete function.
5195 (frame_unwind_append_sniffer): Update call to append_predicate.
5196 (frame_unwind_free): Delete function.
5197 (_initialize_frame_unwind): Pass NULL as "free" to
5198 register_gdbarch_data.
5199 (frame_unwind_init): Append the dummy_frame_sniffer.
5200 (frame_unwind_find_by_frame): Simplify.
5201 * frame-base.c (struct frame_base_table): Delete field "p".
5202 (append_predicate): Delete parameter "p".
5203 (frame_base_append_predicate): Delete function.
5204 (frame_base_append_sniffer): Update call to append_predicate.
5205 (frame_base_free): Delete function.
5206 (frame_base_find_by_frame): Simplify.
5207 (_initialize_frame_base): Pass NULL as "free" to
5208 register_gdbarch_data.
5209 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
5210 (x86_64_sigtramp_frame_sniffer): Replace
5211 "x86_64_sigtramp_frame_p".
5212 (x86_64_init_abi): Set the frame unwind sniffers.
5213 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
5214 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
5215 (m68k_gdbarch_init): Set the frame unwind sniffers.
5216 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
5217 "i386_sigtramp_frame_p".
5218 (i386_frame_sniffer): Replace "i386_frame_p".
5219 (i386_gdbarch_init): Set the frame unwind sniffers.
5220 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
5221 (avr_gdbarch_init): Set the frame unwind sniffers.
5222 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
5223 "alpha_sigtramp_frame_p"
5224 (alpha_heuristic_frame_sniffer): Replace
5225 "alpha_heuristic_frame_p".
5226 (alpha_gdbarch_init): Set the frame unwind sniffers.
5227 (alpha_dwarf2_init_abi): Ditto.
5228 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
5229 "alpha_debug_frame_p".
5230 (alpha_mdebug_frame_base_sniffer): Replace
5231 "alpha_mdebug_frame_base_p".
5232 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
5233 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
5234 (d10v_gdbarch_init): Set the frame unwind sniffer.
5235 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5236 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5237 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5238 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5239 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
5240 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
5241
5242 2003-07-16 Michael Snyder <msnyder@redhat.com>
5243
5244 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
5245 should go thru sh_dsp_register_sim_regno, else the dsp regs
5246 will not get the right values.
5247
5248 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
5249
5250 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
5251 deprecated_store_floating by call to store_typed_floating.
5252 (sh_sh4_register_convert_to_raw): Substitute call to
5253 deprecated_extract_floating by call to extract_typed_floating.
5254
5255 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
5256
5257 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5258
5259 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
5260
5261 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5262 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5263 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
5264 as possible.
5265 (do_pseudo_register): Remove.
5266 (sh_push_dummy_code): New function.
5267 (sh64_store_struct_return): Rename from sh_store_struct_return.
5268 Only called for sh64 now.
5269 (sh_extract_struct_value_address): Regcache'ify.
5270 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
5271 and accomodate new tasks.
5272 (sh64_push_return_address): Rename from sh_push_return_address.
5273 Only called for sh64 now.
5274 (sh_default_extract_return_value): Rename from sh_extract_return_value.
5275 Regcache'ify.
5276 (sh3e_sh4_extract_return_value): Regcache'ify.
5277 (sh_default_store_return_value): Ditto.
5278 (sh3e_sh4_store_return_value): Ditto.
5279 (sh_default_register_byte): Remove.
5280 (sh_sh4_register_byte): Remove.
5281 (sh_default_register_raw_size): Remove.
5282 (sh_sh4_register_raw_size): Remove.
5283 (sh_register_virtual_size): Remove.
5284 (sh_sh3e_register_virtual_type): Remove.
5285 (sh_sh3e_register_type): New function.
5286 (sh_sh4_register_virtual_type): Remove.
5287 (sh_sh4_register_type): New function.
5288 (sh_default_register_virtual_type): Remove.
5289 (sh_default_register_type): New function.
5290 (do_fv_register_info): Add parameters to accomodate call from
5291 sh_print_registers_info.
5292 (do_dr_register_info): Ditto.
5293 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5294 Add parameters to accomodate call from sh_print_registers_info.
5295 (sh_do_fp_register): Ditto.
5296 (sh64_do_pseudo_register): Call do_dr_register_info,
5297 do_fv_register_info and sh_do_fp_register with default parameters.
5298 (sh_do_register): Add parameters to accomodate call from
5299 sh_print_registers_info.
5300 (sh_print_register): Ditto.
5301 (sh_print_registers_info): Rename from sh_do_registers_info.
5302 Add parameters to be used as gdbarch_print_registers_info
5303 implementation. Accomodate removed do_pseudo_register function
5304 pointer.
5305 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5306 function pointer. Call sh_print_register with default parameters.
5307 (sh64_do_registers_info): Call sh_print_registers_info instead of
5308 sh_do_registers_info.
5309 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5310 detection of deprecated vs. non-deprecated functionality.
5311 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
5312 function pointer assignments by direct function calls.
5313
5314 2003-07-15 Andrew Cagney <cagney@redhat.com>
5315
5316 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5317 (frame_register_unwind, create_new_frame): Ditto.
5318 (legacy_get_prev_frame, get_frame_type): Ditto.
5319 (get_frame_base_address): Use frame_base_find_by_frame.
5320 (get_frame_locals_address): Use frame_base_find_by_frame.
5321 (get_frame_args_address): Use frame_base_find_by_frame.
5322 * frame-base.h (frame_base_sniffer_ftype): Declare.
5323 (frame_base_append_sniffer): Declare.
5324 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5325 * frame-base.c (append_predicate): Add a "sniffer" parameter.
5326 (frame_base_append_sniffer): New function.
5327 (frame_base_append_predicate): Add a NULL sniffer.
5328 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5329 (struct frame_base_table): Add "sniffer".
5330 (frame_base_free): Free the "sniffer" table.
5331 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5332 (frame_unwind_append_sniffer): Declare.
5333 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5334 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5335 (struct frame_unwind_table): Add "sniffer", delete "middle".
5336 (append_predicate): Add "sniffer" parameter, append the sniffer.
5337 (frame_unwind_init): Update append_predicate call.
5338 (frame_unwind_append_sniffer): New function.
5339 (frame_unwind_append_predicate): Update append_predicate call.
5340 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5341
5342 2003-07-15 Andrew Cagney <cagney@redhat.com>
5343
5344 * frame.c (get_prev_frame): Move disabled inside_entry_func to
5345 before code inhibiting repeated unwind attempts. Add to
5346 commentary on that test's problems.
5347 * blockframe.c (inside_main_func): Look for "main" in the minimal
5348 symbol table.
5349 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5350 identical.
5351
5352 2003-07-15 Andrew Cagney <cagney@redhat.com>
5353
5354 * complaints.c (struct explanation): Define.
5355 (struct complaints): Change type of "explanation" to "struct
5356 explanation".
5357 (symfile_explanations): Convert to a "struct explanation" table.
5358 (vcomplaint): Update.
5359
5360 2003-07-15 Michal Ludvig <mludvig@suse.cz>
5361
5362 * x86-64-linux-nat.c (regmap): Removed.
5363 (supply_gregset, fill_gregset): Call
5364 x86_64_linux_(fill,supply)_gregset functions.
5365 * x86-64-linux-tdep.c (USER_*): New defines.
5366 (user_to_gdb_regmap, x86_64_core_fns): New structure.
5367 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5368 New functions.
5369 (fetch_core_registers): Ditto.
5370 (_initialize_x86_64_linux_tdep): Call add_core_fns().
5371 * x86-64-linux-tdep.h: New file.
5372 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5373 and core-regset.o.
5374 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5375
5376 2003-07-13 Mark Kettenis <kettenis@gnu.org>
5377
5378 * x86-64-tdep.c (x86_64_store_return_value): Use
5379 regcache_cooked_write_part instead of regcache_cooked_write.
5380
5381 * configure.host: Add x86_64-*-freebsd*.
5382 * configure.tgt: Add x86_64-*-freebsd*.
5383 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5384 * amd64fbsd-nat.c: New file.
5385 * amd64fbsd-tdep.c: New file.
5386 * config/i386/nm-fbsd64.h: New file.
5387 * config/i386/fbsd64.mh: New file.
5388 * config/i386/fbsd64.mt: New file.
5389
5390 2003-07-11 Mark Kettenis <kettenis@gnu.org>
5391
5392 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5393 `sc_regs_offset' and `sc_fpregs_offset'.
5394 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5395 SIGFRAME_FPREGSAVE_OFF): Remove defines.
5396 (alpha_sigtramp_register_address): Rewrite to use new members of
5397 `struct gdbarch_tdep'.
5398 (alpha_gdbarch_init): Initialize new members of struct
5399 gdbarch_tdep'.
5400 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5401 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5402 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5403 (alphafbsd_pc_in_sigtramp): Implement.
5404 (alphafbsd_sigtramp_offset): New function.
5405 (alphafbsd_sigcontext_addr): New function.
5406 (alphafbsd_init_abi): Initialize signal trampoline related members
5407 of `struct gdbarch_tdep'.
5408 (_initialize_alphafbsd_tdep): Add prototype.
5409
5410 2003-07-11 Theodore A. Roth <troth@openavr.org>
5411
5412 * Makefile.in (install-only): Quote sed expression when generating
5413 transformed_name.
5414
5415 2003-07-11 Richard Henderson <rth@redhat.com>
5416
5417 * Makefile.in (dwarf2-frame.o): Add complaints_h.
5418 * dwarf2-frame.c: Include complaints.h.
5419 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5420 variable initialization; return NULL on error.
5421 (decode_frame_entry): New.
5422
5423 2003-07-11 Andrew Cagney <cagney@redhat.com>
5424
5425 * frame.h (frame_address_in_block): Delete declaration.
5426 * blockframe.c (frame_address_in_block): Delete function.
5427 (get_frame_block): Use get_frame_address_in_block.
5428 (block_innermost_frame): Ditto.
5429 * stack.c (print_frame, backtrace_command_1): Ditto.
5430
5431 * frame.h (get_frame_address_in_block): Declare.
5432 (frame_unwind_address_in_block): Declare.
5433 * frame.c (frame_unwind_address_in_block): New function.
5434 (get_frame_address_in_block): New function.
5435
5436 2003-07-10 Andrew Cagney <cagney@redhat.com>
5437
5438 * gdbarch.sh: Simplify predicate methods. Remove need to provide
5439 pre-default. Note: re-generate has no effect.
5440
5441 2003-07-10 Andrew Cagney <cagney@redhat.com>
5442
5443 * gdbarch.sh: When a variable, but not a function, compare against
5444 0. Fix problem in previous patch.
5445 * gdbarch.c: Re-generate.
5446
5447 2003-07-10 Andrew Cagney <cagney@redhat.com>
5448
5449 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5450 functions against NULL, not 0.
5451 * gdbarch.c: Re-generate.
5452
5453 2003-07-10 Fred Fish <fnf@ninemoons.com>
5454
5455 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5456 null string instead of a null pointer.
5457 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5458
5459 2003-07-09 Michael Snyder <msnyder@redhat.com>
5460
5461 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5462
5463 2003-07-09 Mark Kettenis <kettenis@gnu.org>
5464
5465 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5466 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5467 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5468 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5469 * x86-64-tdep.c: ... from here.
5470
5471 2003-07-09 Andreas Schwab <schwab@suse.de>
5472
5473 * m68k-tdep.h (enum struct_return): Define.
5474 (struct gdbarch_tdep): Add struct_return.
5475 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5476 bytes are padded to the right, not to the left. Pass struct value
5477 address in register %a1, not on stack.
5478 (m68k_use_struct_convention): New function.
5479 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5480 struct_return in tdep to pcc_struct_return.
5481 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5482 reg_struct_return.
5483
5484 2003-07-09 Joel Brobecker <brobecker@gnat.com>
5485
5486 * somread.c (som_symfile_offsets): Fix compilation error.
5487
5488 2003-07-09 Andrew Cagney <cagney@redhat.com>
5489
5490 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5491 Add comments about the checks.
5492
5493 2003-07-08 Andrew Cagney <cagney@redhat.com>
5494
5495 * Makefile.in: Make dependency section headers consistent.
5496 (config_h): Move to $BUILD headers section.
5497 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5498 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5499 (ada-exp.tab.c): Move to YACC/LEX section.
5500 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5501 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5502
5503 2003-07-08 Kris Warkentin <kewarken@qnx.com>
5504
5505 * nto-procfs.c: Cleaned up a bunch of ARI hits.
5506 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5507 of strerror with safe_strerror, use ISO C function definitions,
5508 and replace instances of sprintf with snprintf.
5509
5510 2003-07-07 Andrew Cagney <cagney@redhat.com>
5511
5512 * frame.c (get_prev_frame): Enable check for identical frames.
5513 Update comments. Update error messages.
5514
5515 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5516
5517 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5518
5519 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5520
5521 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5522 sort_symtab_syms, no longer necessary.
5523
5524 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5525
5526 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5527
5528 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5529
5530 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5531 (mips_register_byte): Likewise.
5532
5533 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
5534
5535 * Makefile.in (sparc_tdep_h): New.
5536 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5537 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5538 * sparc-linux-nat.c: Include "sparc-tdep.h".
5539 * sparc-nat.c: Likewise.
5540 * sparc-tdep.c: Likewise.
5541 * sparc64nbsd-nat.c: Likewise.
5542 * sparcnbsd-nat.c: Likewise.
5543 * sparcnbsd-tdep.c: Likewise.
5544 * sparc-tdep.h: New file.
5545 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5546 and sparc_npc_regnum.
5547
5548 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
5549
5550 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5551 (mips_linux_cannot_store_register): List supported instead of
5552 unsupported registers.
5553
5554 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
5555
5556 * disasm.c (dump_insns): Separate instructions from addresses.
5557
5558 2003-07-07 Andreas Schwab <schwab@suse.de>
5559
5560 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5561 dependencies.
5562 * m68k-tdep.c (NUM_FREGS): Delete.
5563 (SIG_PC_FP_OFFSET): Delete.
5564 (TARGET_M68K): Delete.
5565 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5566 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5567 P_MOVEL_SP, P_MOVEML_SP): Define.
5568 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5569 P_TRAP): Delete.
5570 (m68k_register_raw_size): Delete.
5571 (m68k_register_virtual_size): Delete.
5572 (m68k_register_type): Renamed from m68k_register_virtual_type and
5573 add gdbarch argument.
5574 (m68k_store_struct_return): Delete.
5575 (m68k_deprecated_extract_return_value): Delete.
5576 (m68k_deprecated_extract_struct_value_address): Delete.
5577 (m68k_frame_chain): Delete.
5578 (m68k_frame_saved_pc): Delete.
5579 (m68k_fix_call_dummy): Delete.
5580 (m68k_push_dummy_frame): Delete.
5581 (m68k_pop_frame): Delete.
5582 (m68k_extract_return_value): New function.
5583 (m68k_store_return_value): Rewrite using regcache.
5584 (m68k_extract_struct_value_address): Rewrite using regcache.
5585 (m68k_push_dummy_call): New function.
5586 (struct m68k_frame_cache): Define.
5587 (m68k_alloc_frame_cache): New function.
5588 (m68k_analyze_frame_setup): New function.
5589 (m68k_analyze_register_saves): New function.
5590 (m68k_analyze_prologue): New function.
5591 (m68k_skip_prologue): Rewrite using above functions.
5592 (m68k_unwind_pc): New function.
5593 (m68k_frame_cache): New function.
5594 (m68k_frame_this_id): New function.
5595 (m68k_frame_prev_register): New function.
5596 (m68k_frame_unwind): New variable.
5597 (m68k_frame_p): New function.
5598 (m68k_sigtramp_frame_cache): New function.
5599 (m68k_sigtramp_frame_this_id): New function.
5600 (m68k_sigtramp_frame_prev_register): New function.
5601 (m68k_sigtramp_frame_unwind): New variable.
5602 (m68k_sigtramp_frame_p): New function.
5603 (m68k_frame_base_address): New function.
5604 (m68k_frame_base): New function.
5605 (m68k_unwind_dummy_id): New function.
5606 (fill_gregset): Use regcache_collect.
5607 (fill_fpregset): Likewise.
5608 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5609 defined.
5610 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5611 deprecated_init_frame_pc, deprecated_store_struct_return,
5612 deprecated_extract_return_value, deprecated_store_return_value,
5613 deprecated_frame_chain, deprecated_frame_saved_pc,
5614 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5615 deprecated_register_virtual_size,
5616 deprecated_max_register_raw_size,
5617 deprecated_max_register_virtual_size,
5618 deprecated_register_virtual_type, deprecated_register_size,
5619 deprecated_register_byte, deprecated_register_bytes,
5620 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5621 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5622 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5623 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5624 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5625 deprecated_push_dummy_frame, deprecated_pop_frame,
5626 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5627 only if SYSCALL_TRAP is defined. Set extract_return_value,
5628 store_return_value, extract_struct_value_address, register_type,
5629 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5630 predicates.
5631 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5632 M68K_MAX_REGISTER_SIZE): Define.
5633 (struct m68k_sigtramp_info): Define.
5634 (struct gdbarch_tdep): Add get_sigtramp_info.
5635 * m68klinux-nat.c (fetch_register): Use register_size instead of
5636 REGISTER_RAW_SIZE. Don't put assignment in if.
5637 (store_register): Likewise.
5638 (fetch_inferior_registers): Likewise.
5639 (store_inferior_registers): Likewise.
5640 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5641 (m68k_linux_frame_saved_pc): Delete.
5642 (m68k_linux_sigcontext_reg_offset,
5643 m68k_linux_ucontext_reg_offset): Define.
5644 (m68k_linux_get_sigtramp_info): New function.
5645 (m68k_linux_extract_return_value): Rewrite using regcache.
5646 (m68k_linux_store_return_value): Likewise.
5647 (m68k_linux_extract_struct_value_address): Likewise.
5648 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5649 Don't set deprecated_frame_saved_pc,
5650 deprecated_extract_return_value, deprecated_store_return_value,
5651 deprecated_extract_struct_value_address. Set
5652 extract_return_value, store_return_value,
5653 extract_struct_value_address.
5654
5655 2003-07-07 Andrew Cagney <cagney@redhat.com>
5656
5657 * expprint.c: Include "user-regs.h" instead of "frame.h".
5658 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5659 frame_map_regnum_to_name.
5660 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5661 (frame_map_name_to_regnum): Simplify, call
5662 user_reg_map_name_to_regnum.
5663 (frame_map_regnum_to_name): Simplify, call
5664 user_reg_map_regnum_to_name.
5665 (frame_register_unwind): Update.
5666 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5667 (_initialize_frame_reg): Call user_reg_add_builtin.
5668 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5669 (value_of_register): Use value_of_user_reg.
5670 * eval.c (evaluate_subexp_standard): Update.
5671 * parse.c (write_dollar_variable): Update.
5672 * d10v-tdep.c (d10v_print_registers_info): Update.
5673 * infcmd.c (registers_info): Update.
5674 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5675 (builtin_regs_h): Delete macro.
5676 (user_regs_h): Define.
5677 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5678 (builtin-regs.o): Delete target.
5679 (user-regs.o): Specify dependencies.
5680 (expprint.o): Update dependencies.
5681 (findvar.o): Update dependencies.
5682 (frame.o): Update dependencies.
5683 (std-regs.o): Update dependencies.
5684
5685 2003-07-06 Christopher Faylor <cgf@redhat.com>
5686
5687 * win32-nat.c (solib_symbols_add): Use one variable for all section
5688 address stuff. Pass variable rather than address of variable to
5689 safe_symbol_file_add.
5690
5691 2003-07-06 Andreas Schwab <schwab@suse.de>
5692
5693 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5694
5695 2003-07-04 Joel Brobecker <brobecker@gnat.com>
5696
5697 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5698
5699 2003-07-04 Kris Warkentin <kewarken@qnx.com>
5700
5701 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5702
5703 2003-07-04 Kris Warkentin <kewarken@qnx.com>
5704
5705 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5706 * config/i386/nto.mh: New file.
5707 * config/i386/nm-nto.h: New file.
5708 * configure.host: Add i[3456]86-*-nto*.
5709
5710 2003-07-03 Joel Brobecker <brobecker@gnat.com>
5711
5712 * remote-vx.c (vx_add_symbols): Fix compilation error.
5713
5714 2003-07-03 Andrew Cagney <cagney@redhat.com>
5715
5716 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5717 * gdbarch.h, gdbarch.c: Re-generate.
5718 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5719 (legacy_register_name): Declare.
5720 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5721 (REGISTER_NAME): Define.
5722 * sparc-tdep.c (legacy_register_name): New function.
5723 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5724 (REGISTER_NAME): Define.
5725 (hppa64_register_name): Declare.
5726 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5727 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5728 (hppa64_register_name): New function.
5729 (hppa_register_name): New function.
5730 * arch-utils.c (legacy_register_name): Delete.
5731 * arch-utils.h (legacy_register_name): Delete.
5732
5733 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
5734
5735 * cli/cli-interp.c (cli_interpreter_resume): Update the
5736 cli_uiout's stream to gdb_stdout.
5737
5738 2003-07-03 Andrew Cagney <cagney@redhat.com>
5739
5740 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5741 predicate.
5742 * gdbarch.h, gdbarch.c: Re-generate.
5743 * regcache.c (init_regcache_descr): Use legacy code when either
5744 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5745
5746 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
5747
5748 * NEWS: Move "set logging" entry into GDB 6.0 section.
5749
5750 2003-07-02 Jim Blandy <jimb@redhat.com>
5751
5752 * s390-tdep.c (struct frame_extra_info): new member:
5753 'stack_bought_valid'.
5754 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5755 initialize fextra_info->stack_bought.
5756 (s390_frameless_function_invocation): Don't trust the value of
5757 fextra_info_ptr->stack_bought unless
5758 fextra_info->stack_bought_valid is set.
5759
5760 New S390 prologue analyzer.
5761 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5762 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5763 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5764 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5765 compute_x_addr, s390_on_stack, s390_store,
5766 s390_get_signal_frame_info): New functions.
5767 (S390_NUM_SPILL_SLOTS): New macro.
5768 (s390_get_frame_info): Rewritten.
5769 (is_arg_reg): Deleted.
5770
5771 Break out the decoding of S/390 instructions into separate
5772 functions, to make it more legible, and easier to check
5773 against the spec.
5774 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5775 is_rx, is_rxe): New functions.
5776 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5777 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5778 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5779 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5780 enums for opcode values. (Is this an improvement?)
5781
5782 2003-07-02 Andrew Cagney <cagney@redhat.com>
5783
5784 * i386-tdep.c: Revert change committed as part of trad-frame code
5785 below.
5786
5787 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
5788
5789 * breakpoint.c (insert_catchpoint): Make static.
5790
5791 2003-07-02 Andreas Schwab <schwab@suse.de>
5792
5793 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5794 former ia64_push_arguments and ia64_push_return_address, and use
5795 regcache functions instead of read/write_register.
5796 (ia64_gdbarch_init): Set push_dummy_call instead of
5797 deprecated_push_arguments and deprecated_push_return_address.
5798
5799 2003-07-01 Andreas Jaeger <aj@suse.de>
5800
5801 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5802 before the call.
5803 Set %rax only to number of SSE registers used.
5804
5805 2003-07-01 Andrew Cagney <cagney@redhat.com>
5806
5807 * trad-frame.h: Update comments, a -1 .addr is reserved.
5808 (trad_frame_value_p, trad_frame_addr_p): Declare.
5809 (trad_frame_reg_p): Declare.
5810 (trad_frame_set_value): Rename trad_frame_register_value.
5811 (trad_frame_set_unknown): Declare.
5812 * trad-frame.c (trad_frame_realreg_p): New function.
5813 (trad_frame_addr_p, trad_frame_value_p): New function.
5814 (trad_frame_set_unknown): New function.
5815 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5816 (trad_frame_prev_register): Use trad_frame_realreg_p,
5817 trad_frame_addr_p and trad_frame_value_p.
5818 (trad_frame_set_value): Rename trad_frame_register_value.
5819 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5820 and trad_frame_set_value.
5821
5822 2003-06-30 Jim Blandy <jimb@redhat.com>
5823
5824 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5825 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5826 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5827 for 16 registers, and then 32 more bytes.
5828 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5829 New macros.
5830 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5831 Move up in the file, since it's now used by is_simple_arg.
5832 (is_simple_arg): Don't assume registers are four bytes long.
5833 Exclude all double arguments. Extended floats are not simple
5834 args.
5835 (is_power_of_two): New function.
5836 (pass_by_copy_ref): Call is_power_of_two, and check that the
5837 length fits in a register, rather than listing all the acceptable
5838 sizes. Extended floats are not passed by reference.
5839 (s390_push_arguments): Don't assume registers are four bytes long.
5840 Reserve an argument register to point to the buffer for structures
5841 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5842 S390_STACK_FRAME_OVERHEAD.
5843
5844 2003-06-30 Andreas Schwab <schwab@suse.de>
5845
5846 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5847 format error message.
5848
5849 2003-06-30 Joel Brobecker <brobecker@gnat.com>
5850
5851 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5852
5853 2003-06-30 David Carlton <carlton@kealia.com>
5854
5855 Band-aid for PR c++/1245.
5856 * Makefile.in (cp-support.o): Depend on complaints_h.
5857 * cp-support.c: Include complaints.h. Add declaration for
5858 find_last_component.
5859 (cp_find_first_component): Separate code into
5860 cp_find_first_component_aux.
5861 (cp_find_first_component_aux): Call demangled_name_complaint.
5862 (demangled_name_complaint): New.
5863
5864 2003-06-30 Andrew Cagney <cagney@redhat.com>
5865
5866 * remote.c (remote_write_bytes): Explicitly compute and then use
5867 the payload size. Update comments to reflect. Fixes problem of
5868 GDB not sending small packets as found by Fred Fish.
5869
5870 2003-06-30 Andrew Cagney <cagney@redhat.com>
5871
5872 * remote.c (remote_async_wait): Fix -Wformat problem.
5873
5874 2003-06-29 Andrew Cagney <cagney@redhat.com>
5875
5876 * remote.c (remote_wait): Call error, and not warning, when the
5877 packet is corrupt.
5878 (remote_async_wait): Ditto.
5879
5880 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5881
5882 * sparc-tdep.c (sparc_y_regnum): Make external again.
5883
5884 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5885
5886 * cli/cli-logging.c (pop_output_files): Add void to function
5887 definition.
5888
5889 2003-06-29 Andrew Cagney <cagney@redhat.com>
5890
5891 * frame.c (frame_register_unwind): Use unsigned char when dumping
5892 the buffer contents.
5893
5894 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
5895
5896 * cli/cli-logging.c: New file.
5897 * cli-out.c (struct ui_out_data): Add original_stream.
5898 (cli_redirect): New function.
5899 (cli_ui_out_impl): Add cli_redirect.
5900 (cli_out_new): Initialize original_stream.
5901 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5902 (uo_redirect, ui_out_redirect): New.
5903 * ui-out.h (struct ui_out_impl): Add redirect member.
5904 (redirect_ftype): New.
5905 (ui_out_redirect): Add prototype.
5906 * Makefile.in: Add rules for cli-logging.c.
5907 * NEWS: Mention "set logging".
5908
5909 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5910
5911 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5912
5913 2003-06-27 Andrew Cagney <cagney@redhat.com>
5914
5915 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5916 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5917 * avr-tdep.c (avr_call_dummy_address): Delete function.
5918 (avr_gdbarch_init): Do not set call_dummy_address.
5919
5920 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5921
5922 * symfile.c (syms_from_objfile): Move variables to inner block.
5923 Move the checks for the non-mainline case a bit earlier to avoid
5924 doing some useless computations.
5925
5926 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5927
5928 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5929
5930 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
5931
5932 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5933 sections.
5934
5935 2003-06-26 Michael Chastain <mec@shout.net>
5936
5937 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5938 gdb/testsuite/gdb.c++/pr-1210.exp.
5939
5940 2003-06-26 Andrew Cagney <cagney@redhat.com>
5941
5942 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5943 altivec_expression.h and altivec_registers.h.
5944
5945 2003-06-26 Andrew Cagney <cagney@redhat.com>
5946
5947 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5948 info->mach when MIPS16. Patch suggested by Fred Fish.
5949
5950 2003-06-26 Andrew Cagney <cagney@redhat.com>
5951
5952 * utils.c (internal_vproblem): Print the problem to a reason
5953 buffer and then pass to query. Make the msg variable more local.
5954
5955 2003-06-26 Andrew Cagney <cagney@redhat.com>
5956
5957 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5958 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5959 * gdbarch.h, gdbarch.c: Re-generate.
5960 * frame-base.c (default_frame_args_address): Update. Use
5961 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5962 not available.
5963 (default_frame_locals_address): Ditto for
5964 DEPRECATED_FRAME_LOCALS_ADDRESS.
5965 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5966 (vax_frame_num_args): Update.
5967 (vax_gdbarch_init): Update.
5968 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5969 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5970 * mcore-tdep.c (mcore_gdbarch_init): Update.
5971 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5972 * ia64-tdep.c (ia64_gdbarch_init): Update.
5973 * symtab.h (address_class): Update comments.
5974 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5975 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5976 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5977 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5978 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5979 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5980 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5981 * alpha-mdebug-tdep.c: Update.
5982 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5983
5984 2003-06-26 Andreas Jaeger <aj@suse.de>
5985
5986 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5987 of SSE registers so that varargs functions work. Rework handling
5988 of passing arguments on the stack.
5989 (x86_64_store_return_value): Return double and float values in SSE
5990 register.
5991
5992 2003-06-24 Michael Chastain <mec@shout.net>
5993
5994 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5995 the "constructor breakpoints ignored" bug.
5996
5997 2003-06-25 David Carlton <carlton@kealia.com>
5998
5999 * MAINTAINERS: Update e-mail address.
6000
6001 2003-06-24 Jim Blandy <jimb@redhat.com>
6002
6003 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
6004
6005 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
6006 function.
6007 (ppc_linux_init_abi): Register it as the
6008 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
6009
6010 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
6011 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
6012 method.
6013
6014 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
6015 (ppc64_standard_linkage_target): Use it.
6016
6017 2003-06-23 Andrew Cagney <cagney@redhat.com>
6018
6019 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
6020 for 0 "int0" and 4 "int32" sized registers.
6021 * gdbtypes.c (builtin_type_int0): Define.
6022 (build_gdbtypes): Initialize builtin_type_int0.
6023 * gdbtypes.h (builtin_type_int0): Declare.
6024
6025 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
6026
6027 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
6028 as characters are unsigned.
6029
6030 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
6031
6032 PR gdb/1179
6033 * dwarfread.c (struct_type): Skip static fields without crashing.
6034
6035 2003-06-22 Andrew Cagney <cagney@redhat.com>
6036
6037 GDB 6.0 branch created.
6038 * README: Update.
6039 * PROBLEMS: Update. Empty.
6040 * NEWS: Update.
6041
6042 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
6043
6044 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
6045 Suggested by Nick Hibma <n_hibma@webweaving.org>.
6046
6047 2003-06-22 Andrew Cagney <cagney@redhat.com>
6048
6049 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
6050 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
6051 Velikov.
6052
6053 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
6054
6055 * cli/cli-cmds.c (shell_escape): Silence warnings from old
6056 compilers.
6057
6058 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
6059
6060 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
6061 argument of val_print.
6062 * cp-valprint.c (cp_print_value): Don't add the offset parameter
6063 to the address argument of baseclass_offset or target_read_memory.
6064 Do add it to the argument of cp_print_value_fields.
6065
6066 2003-06-21 Andrew Cagney <cagney@redhat.com>
6067
6068 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
6069 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
6070 instead of 0..NUM_REGS.
6071 (mips_register_reggroup_p): New function.
6072 (mips_pseudo_register_write): New function.
6073 (mips_pseudo_register_read): New function.
6074 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
6075 based on the register's type.
6076 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
6077 cooked.
6078 (mips_get_saved_register): Simplify. Assert that REGNO is a
6079 pseudo / cooked.
6080 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
6081 (mips_register_type): Replace mips_register_virtual_type. Map
6082 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
6083 when available.
6084 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
6085 that the register is cooked / virtual.
6086 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
6087 Only get the extra info when needed.
6088 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
6089 (mips32_heuristic_proc_desc): Fetch the cooked register.
6090 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
6091 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
6092 (mips_print_register): Use gdbarch_register_type, instead of
6093 REGISTER_VIRTUAL_TYPE.
6094 (print_gp_register_row): Use gdbarch_register_type, instead of
6095 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
6096 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6097 Print the pseudo / cooked registers.
6098 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6099 Print the pseudo / cooked registers.
6100 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
6101 REG_NUM is pseudo / cooked.
6102 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
6103 (mips_n32n64_xfer_return_value): Ditto.
6104 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
6105 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
6106 (mips_register_sim_regno): New function.
6107 (mips_gdbarch_init): Set deprecated_register_byte,
6108 register_group_p, pseudo_register_write, pseudo_register_read,
6109 register_sim_regno, and num_pseudo_regs. Set register_type,
6110 instead of register_virtual_type.
6111 * Makefile.in (mips-tdep.o): Update dependencies.
6112 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
6113 REGISTER_VIRTUAL_TYPE.
6114 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
6115 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
6116 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
6117 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
6118 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
6119
6120 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
6121
6122 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
6123 * cli/cli-cmds.c: Include "gdb_vfork.h".
6124 (shell_escape): Use vfork.
6125
6126 2003-06-21 Andrew Cagney <cagney@redhat.com>
6127
6128 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
6129 32 bit floating-point register saves.
6130
6131 * frame.h (deprecated_unwind_get_saved_register): Delete.
6132 * frame.c (deprecated_unwind_get_saved_register): Delete function.
6133 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
6134 and deprecated_get_next_frame_hack instead of
6135 deprecated_unwind_get_saved_register.
6136
6137 * mips-tdep.c (mips_dump_tdep): Do not print
6138 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
6139
6140 * frame.c (get_frame_register): New function.
6141 (frame_unwind_register_signed): New function.
6142 (get_frame_register_signed): New function.
6143 (frame_unwind_register_unsigned): New function.
6144 (get_frame_register_unsigned): New function.
6145 * frame.h: Add comments on naming schema.
6146 (get_frame_register, frame_unwind_register_signed): Declare.
6147 (get_frame_register_signed, get_frame_register_signed): Declare.
6148 (frame_unwind_register_unsigned): Declare.
6149 (get_frame_register_unsigned): Declare.
6150
6151 2003-06-20 Theodore A. Roth <troth@openavr.org>
6152
6153 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
6154
6155 2003-06-20 Theodore A. Roth <troth@openavr.org>
6156
6157 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
6158 (avr_read_sp): Ditto.
6159
6160 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
6161
6162 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
6163 * config/arm/nm-linux.h: Likewise.
6164 * config/arm/tm-linux.h: Likewise.
6165 * config/ia64/nm-linux.h: Likewise.
6166 * config/ia64/tm-ia64.h: Likewise.
6167 * config/s390/tm-linux.h: Likewise.
6168 * config/s390/tm-s390.h: Likewise.
6169 * s390-nat.c: Likewise.
6170 * s390-tdep.c: Likewise.
6171
6172 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
6173 * config/ia64/linux.mt: Likewise.
6174 * config/m68k/linux.mh: Likewise.
6175 * config/mips/linux.mt: Likewise.
6176 * config/powerpc/linux.mh: Likewise.
6177 * config/sh/linux.mt: Likewise.
6178
6179 2003-06-19 Kris Warkentin <kewarken@qnx.com>
6180
6181 * solib.c (solib_open): Change tests for whether to search
6182 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
6183 comments.
6184
6185 2003-06-19 Theodore A. Roth <troth@openavr.org>
6186
6187 * avr-tdep.c (avr_frame_address): Delete function.
6188 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
6189 set_gdbarch_frame_args_address.
6190
6191 2003-06-19 Andrew Cagney <cagney@redhat.com>
6192
6193 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
6194 (REGISTER_CONVERT_FROM_TYPE): Delete.
6195 (mips_register_convert_to_type): Delete declaration.
6196 (mips_register_convert_from_type): Delete declaration.
6197 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
6198 kernel/.
6199
6200 2003-06-19 Michael Snyder <msnyder@redhat.com>
6201
6202 * linux-nat.h: New file.
6203 * linux-nat.c: Include linux-nat.h.
6204 * lin-lwp.c: Include linux-nat.h.
6205 Move struct lwp_info def to linux-nat.h.
6206 * linux-proc.c: Include linux-nat.h.
6207 (linux_make_note_section): Iterate over lwps instead of threads.
6208 (linux_do_thread_registers): Use lwp instead of merged pid.
6209 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
6210 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
6211 Add dependency on linux_nat_h.
6212
6213 2003-06-19 Theodore A. Roth <troth@openavr.org>
6214
6215 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
6216
6217 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
6218
6219 * varobj.c (get_type, get_target_type): Use check_typedef.
6220
6221 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
6222
6223 * breakpoint.c (insert_catchpoint): Call internal_error.
6224
6225 2003-06-19 Theodore A. Roth <troth@openavr.org>
6226
6227 * avr-tdep.c (avr_push_dummy_code): Delete function.
6228 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6229
6230 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
6231
6232 * arch-utils.c (default_prepare_to_proceed): Remove.
6233 (generic_prepare_to_proceed): Remove.
6234 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
6235 (generic_prepare_to_proceed): Remove prototype.
6236 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
6237 * gdbarch.c: Regenerate.
6238 * gdbarch.h: Regenerate.
6239 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
6240 * hppah-nat.c (hppa_switched_threads): Remove.
6241 * infrun.c (prepare_to_proceed): New static function, copied from
6242 generic_prepare_to_proceed. Remove select_it argument.
6243 (proceed): Call prepare_to_proceed.
6244 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
6245 variables.
6246 (ptrace_wait): Don't set the removed variables.
6247 (hppa_switched_threads): Remove.
6248 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
6249 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
6250 (lin_lwp_prepare_to_proceed): Remove prototype.
6251 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
6252 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
6253
6254 2003-06-18 Theodore A. Roth <troth@openavr.org>
6255
6256 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
6257 trad-frame.h.
6258 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
6259 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
6260 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
6261 (AVR_PROLOGUE_*): Enumerate prologue types.
6262 (struct frame_extra_info): Remove.
6263 (struct avr_unwind_cache): Define.
6264 (avr_write_sp): Delete function.
6265 (avr_read_fp): Ditto.
6266 (avr_init_extra_frame_info): Ditto.
6267 (avr_pop_frame): Ditto.
6268 (avr_frame_saved_pc): Ditto.
6269 (avr_saved_pc_after_call): Ditto.
6270 (avr_push_return_address): Ditto.
6271 (avr_frame_chain): Ditto.
6272 (avr_store_struct_return): Ditto.
6273 (avr_push_arguments): Ditto.
6274 (avr_scan_prologue): Update comments. Changed to set up the info for
6275 cache unwinding. Now returns end of prologue PC.
6276 (avr_skip_prologue): Better handling of functions lacking a prologue
6277 by using avr_scan_prologue.
6278 (avr_scan_arg_moves): New function.
6279 (avr_saved_regs_unwinder): Ditto.
6280 (avr_frame_unwind_cache): Ditto.
6281 (avr_unwind_pc): Ditto.
6282 (avr_frame_this_id): Ditto.
6283 (avr_frame_prev_register): Ditto.
6284 (avr_frame_p): Ditto.
6285 (avr_frame_base_address ): Ditto.
6286 (avr_unwind_dummy_id): Ditto.
6287 (avr_push_dummy_code): Ditto.
6288 (push_stack_item): Ditto.
6289 (pop_stack_item): Ditto.
6290 (avr_push_dummy_call): Ditto.
6291 (struct stack_item): Define.
6292 (avr_frame_unwind): Declare structure.
6293 (avr_frame_base): Ditto.
6294 (avr_gdbarch_init): Remove calls to
6295 set_gdbarch_deprecated_init_frame_pc,
6296 set_gdbarch_deprecated_target_read_fp,
6297 set_gdbarch_deprecated_dummy_write_sp,
6298 set_gdbarch_deprecated_fp_regnum,
6299 set_gdbarch_deprecated_push_arguments,
6300 set_gdbarch_deprecated_push_return_address,
6301 set_gdbarch_deprecated_pop_frame,
6302 set_gdbarch_deprecated_store_struct_return,
6303 set_gdbarch_deprecated_frame_init_saved_regs,
6304 set_gdbarch_deprecated_init_extra_frame_info,
6305 set_gdbarch_deprecated_frame_chain,
6306 set_gdbarch_deprecated_frame_saved_pc,
6307 set_gdbarch_deprecated_saved_pc_after_call.
6308 Add calls to set_gdbarch_push_dummy_call,
6309 set_gdbarch_push_dummy_code,
6310 frame_unwind_append_predicate,
6311 frame_base_set_default,
6312 set_gdbarch_unwind_dummy_id,
6313 set_gdbarch_unwind_pc.
6314 Wrap a long line.
6315
6316 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
6317
6318 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6319 registers for H8/300S.
6320 (h8300_print_registers_info): Ditto.
6321 (h8300_gdbarch_init): Accommodate register count for H8/300S.
6322
6323 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
6324
6325 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6326 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6327 (lin_lwp_wait): Likewise. Update comments.
6328 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6329 (pull_pid_from_list, linux_record_stopped_pid): New.
6330
6331 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6332
6333 * ada-lang.c (scan_discrim_bound): Name first argument.
6334 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6335 declared by ALL_BLOCK_SYMBOLS.
6336
6337 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6338
6339 * ada-tasks.c (find_function_in_inferior): Don't declare it.
6340 ("regcache.h"): Include it.
6341 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6342
6343 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6344
6345 * NEWS: Mention gdbserver detach change and "disconnect" command.
6346 * infcmd.c (disconnect_command): New function.
6347 (_initialize_infcmd): Add ``disconnect'' command.
6348 * remote.c (remote_async_detach): Delete.
6349 (remote_detach): Merge remote_async_detach.
6350 (remote_disconnect): New.
6351 (init_remote_ops): Set to_disconnect.
6352 (init_remote_cisco_ops): Likewise.
6353 (init_remote_async_ops): Likewise. Use remote_detach.
6354 * target.c (cleanup_target): Default to_disconnect.
6355 (update_current_target): Inherit to_disconnect.
6356 (target_disconnect, debug_to_disconnect): New functions.
6357 (setup_target_debug): Set to_disconnect.
6358 * target.h (struct target_ops): Add to_disconnect.
6359 (target_disconnect): Add prototype.
6360
6361 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6362
6363 * breakpoint.c (insert_catchpoint): New function.
6364 (insert_breakpoints): Use catch_exceptions to call
6365 insert_catchpoint. Disable catchpoints if they fail to insert.
6366
6367 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6368
6369 * symfile.c (reread_symbols): Clear sym_private.
6370
6371 2003-06-17 Andrew Cagney <cagney@redhat.com>
6372
6373 * trad-frame.h (struct frame_info): Add opaque declaration.
6374 * remote-fileio.h (struct cmd_list_element): Add opaque
6375 declaration.
6376 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6377 comments.
6378
6379 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6380
6381 * remote.c (remote_prepare_to_store): Replace call to
6382 deprecated_read_register_bytes with multiple regcache_raw_read
6383 calls.
6384
6385 2003-06-17 Kris Warkentin <kewarken@qnx.com>
6386
6387 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6388 (nto_find_and_open_solib): Likewise.
6389 (nto_init_solib_absolute_prefix): Likewise.
6390 (_initialize_nto_tdep): Fix indentation.
6391
6392 2003-06-17 Kris Warkentin <kewarken@qnx.com>
6393
6394 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6395
6396 2003-06-17 Kris Warkentin <kewarken@qnx.com>
6397
6398 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6399
6400 2003-06-17 Jim Blandy <jimb@redhat.com>
6401
6402 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6403
6404 2003-06-16 Theodore A. Roth <troth@openavr.org>
6405
6406 * avr-tdep.c (avr_extract_return_value): New function.
6407 (avr_gdbarch_init): Set extract_return_value method.
6408
6409 2003-06-16 Andrew Cagney <cagney@redhat.com>
6410
6411 * frame.h (deprecated_get_next_frame_hack): Declare.
6412 * frame.c (legacy_saved_regs_prev_register): Only require
6413 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
6414 there are always saved regs.
6415 (deprecated_generic_get_saved_register): Do not require
6416 DEPRECATED_FRAME_INIT_SAVED_REGS.
6417 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6418 use frame ID unwind instead.
6419 (deprecated_get_next_frame_hack): New function.
6420
6421 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
6422
6423 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
6424 (h8300_push_dummy_call): ...this function. Some minor optimization.
6425 (h8300_push_return_address): Remove.
6426 (h8300_gdbarch_init): Remove calls to
6427 set_gdbarch_deprecated_dummy_write_sp,
6428 set_gdbarch_deprecated_push_arguments and
6429 set_gdbarch_deprecated_push_return_address.
6430 Add call to set_gdbarch_push_dummy_call.
6431
6432 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
6433
6434 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6435 (E_PSEUDO_EXR_REGNUM): Ditto.
6436 (h8300_is_argument_spill): Check for instructions moving argument
6437 registers into safe registers.
6438 (h8300_skip_prologue): Check for stm instruction to push registers
6439 used for register variables onto stack.
6440 (gdb_print_insn_h8300): Remove.
6441 (h8300_examine_prologue): Add a comment.
6442 (h8300_register_name): Take pseudo registers into account.
6443 (h8300s_register_name): Ditto.
6444 (h8300sx_register_name): Ditto.
6445 (h8300_print_register): Ditto.
6446 (h8300_print_registers_info): Define "nice" printing order.
6447 (h8300_saved_pc_after_call): Take pseudo registers into account.
6448 (h8300_register_type): Ditto. Return type used for remote connection
6449 when requesting real CCR or EXR register, return actual type when
6450 requesting pseudo CCR or EXR.
6451 (h8300_pseudo_register_read): New function.
6452 (h8300_pseudo_register_write): Ditto.
6453 (h8300_dbg_reg_to_regnum): Ditto.
6454 (h8300s_dbg_reg_to_regnum): Ditto.
6455 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6456 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6457 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6458 set_gdbarch_print_insn architecture dependent.
6459 Call set_gdbarch_pseudo_register_read and
6460 set_gdbarch_pseudo_register_write.
6461 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6462
6463 2003-06-16 Andrew Cagney <cagney@redhat.com>
6464
6465 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6466 * gdbarch.h, gdbarch.c: Re-generate.
6467 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6468 * s390-tdep.c (s390_gdbarch_init): Update.
6469 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6470 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6471 * mips-tdep.c (mips_gdbarch_init): Update.
6472 * mcore-tdep.c (mcore_gdbarch_init): Update.
6473 * cris-tdep.c (cris_gdbarch_init): Update.
6474 * infcall.c (call_function_by_hand): Update.
6475 * ia64-tdep.c (ia64_push_arguments): Update comment.
6476 * frame.c (legacy_get_prev_frame): Do not assume
6477 SAVE_DUMMY_FRAME_TOS_P.
6478 * dummy-frame.c (find_dummy_frame): Update comment.
6479
6480 2003-06-16 Andrew Cagney <cagney@redhat.com>
6481
6482 * regcache.c (do_cooked_read): Do not use register_valid_p.
6483
6484 2003-06-15 Theodore A. Roth <troth@openavr.org>
6485
6486 * avr-tdep.c (avr_register_type): Remove a blank line.
6487 (avr_scan_prologue): Correct some comments.
6488
6489 2003-06-15 Theodore A. Roth <troth@openavr.org>
6490
6491 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6492 prologue types.
6493 Properly scan prologues generated by gcc with the -mcall-prologues
6494 option.
6495 Add code to scan -mcall-prologues for mega devices.
6496
6497 2003-06-15 Theodore A. Roth <troth@openavr.org>
6498
6499 * avr-tdep.c (avr_register_byte): Delete function.
6500 (avr_register_raw_size): Delete function.
6501 (avr_register_virtual_size): Delete function.
6502 (avr_register_virtual_type): Delete function.
6503 (avr_register_type): New function.
6504 (avr_address_to_pointer): Remove unused code.
6505 (avr_read_fp): Need to read FP as two separate bytes due to change to
6506 avr_register_type() usage.
6507 (avr_gdbarch_init): Don't set deprecated_register_size.
6508 Don't set deprecated_register_bytes.
6509 Don't set deprecated_register_byte.
6510 Don't set deprecated_register_raw_size.
6511 Don't set deprecated_max_register_raw_size.
6512 Don't set deprecated_register_virtual_size.
6513 Don't set deprecated_max_register_virtual_size.
6514 Don't set deprecated_register_virtual_type.
6515 Set register_type method.
6516
6517 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
6518
6519 * Makefile.in (linux-nat.o): Add rule.
6520 * linux-nat.c: New file.
6521 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6522 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6523 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6524 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6525 * config/arm/linux.mh (NATDEPFILES): Likewise.
6526 * config/i386/linux.mh (NATDEPFILES): Likewise.
6527 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6528 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6529 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6530 * config/mips/linux.mh (NATDEPFILES): Likewise.
6531 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6532 * config/s390/s390.mh (NATDEPFILES): Likewise.
6533 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6534
6535 2003-06-15 Mark Kettenis <kettenis@gnu.org>
6536
6537 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6538 replace out-of-date comment.
6539
6540 2003-06-15 Andrew Cagney <cagney@redhat.com>
6541
6542 * rdi-share/host.h (Fail): Change to a varargs function.
6543 * remote-rdi.c (Fail): Update.
6544
6545 2003-06-15 Mark Kettenis <kettenis@gnu.org>
6546
6547 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6548 (i386_convert_register_p, i386_register_to_value,
6549 i386_register_from_value): Handle types longer than 8 bytes.
6550
6551 2003-06-15 Mark Kettenis <kettenis@gnu.org>
6552
6553 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6554 Move floating-point code to new function in i387-tdep.c.
6555 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6556 New functions containing code moved here from i386-tdep.c.
6557 * i387-tdep.h: Add opaque declaration for `struct type'.
6558 (i387_register_to_value, i387_value_to_register): New prototypes.
6559 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6560 (x86_64_init_abi): Set convert_register_p, register_to_value and
6561 value_to_register here.
6562
6563 2003-06-14 Andrew Cagney <cagney@redhat.com>
6564
6565 * mips-tdep.c (mips_register_to_value): Make static.
6566 (mips_value_to_register): Make static.
6567 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6568 * ia64-tdep.c (ia64_register_raw_size): Make static.
6569 (ia64_register_virtual_size): Make static.
6570 (ia64_register_byte): Make static.
6571 * i387-tdep.c: Include "i387-tdep.h".
6572 (print_387_control_word): Delete function.
6573 (print_387_status_word): Delete function.
6574 (print_387_status_bits): Delete function.
6575 (print_387_control_bits): Delete function.
6576 * Makefile.in (i387-tdep.o): Update dependencies.
6577 * rdi-share/host.h (Fail): Declare.
6578 * remote-rdi.c (Fail): Update to match declaration.
6579
6580 2003-06-14 Andrew Cagney <cagney@redhat.com>
6581
6582 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6583 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6584 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6585 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6586 * README: Delete reference to remote-array.
6587 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6588 (remote-array.o): Delete target.
6589 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6590 * remote-array.c: Delete file.
6591
6592 2003-06-14 Andrew Cagney <cagney@redhat.com>
6593 Mark Kettenis <kettenis@gnu.org>
6594
6595 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6596 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6597 parameter with "frame".
6598 * gdbarch.h, gdbarch.c: Re-generate.
6599 * frame.h (put_frame_register): Declare.
6600 * frame.c (put_frame_register): New function.
6601 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6602 (legacy_register_to_value): Rewrite, use "frame" to get the
6603 register value.
6604 (legacy_value_to_register): Rewrite, use "frame" to find the
6605 register's location before storing.
6606 * arch-utils.h (legacy_convert_register_p): Update.
6607 (legacy_register_to_value, legacy_value_to_register): Update.
6608 * findvar.c (value_from_register): Rewrite, eliminate use of
6609 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6610 "frame" to REGISTER_TO_VALUE.
6611 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6612 lval_reg_frame_relative + lval_register branch of the switch. Do
6613 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6614 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6615 I386_EDI_REGNUM): New defines.
6616 (i386_next_regnum, i386_convert_register_p,
6617 i386_register_to_value, i386_value_to_register): New functions.
6618 (i386_register_convertible, i386_register_convert_to_virtual,
6619 i386_convert_to_raw): Remove functions.
6620 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6621 value_to_register instead of register_convertible,
6622 register_convert_to_virtual and register_convert_to_raw.
6623 * mips-tdep.c (mips_convert_register_p): New function.
6624 (mips_value_to_register): Replace mips_register_convert_from_type.
6625 (mips_register_to_value): Replace mips_register_convert_to_type.
6626 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6627 register_to_value.
6628 * alpha-tdep.c (alpha_convert_register_p): Update.
6629 (alpha_value_to_register): Update, store the register.
6630 (alpha_register_to_value): Update, fetch the register.
6631
6632 2003-06-14 Theodore A. Roth <troth@openavr.org>
6633
6634 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6635 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6636 Don't set deprecated_call_dummy_words.
6637 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6638 Don't set remote_translate_xfer_address.
6639 (avr_io_reg_read_command): Remove commented out debug printf.
6640 Wrap a long line.
6641
6642 2003-06-14 Theodore A. Roth <troth@openavr.org>
6643
6644 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6645 causes gdb to seg fault.
6646
6647 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
6648
6649 * sparc-nat.c (fetch_inferior_registers): Correct
6650 a reference to "registers".
6651
6652 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6653
6654 * Makefile.in (exc_request_U_h): Define
6655 (exc_request_S_h): Likewise.
6656 (msg_reply_S_h): Likewise.
6657 (msg_U_h): Likewise.
6658 (notify_S_h): Likewise.
6659 (process_reply_S_h): Likewise.
6660 (gnu-nat.o): Depend on gdb_obstack_h
6661 * gnu-nat.c: Include "gdb_obstack.h".
6662
6663 2003-06-13 Andrew Cagney <cagney@redhat.com>
6664
6665 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6666 * gdbarch.h, gdbarch.c: Re-generate.
6667
6668 2003-06-13 Andrew Cagney <cagney@redhat.com>
6669
6670 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6671 when deprecated REGISTER macros can be deleted.
6672 * gdbarch.h, gdbarch.c: Re-generate.
6673
6674 2003-06-13 Jim Blandy <jimb@redhat.com>
6675
6676 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6677 Linux entry point symbols for _dl_debug_state, too.
6678
6679 2003-06-13 Andrew Cagney <cagney@redhat.com>
6680
6681 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6682 available, do not use the FP register, and always save the TOS.
6683 * dummy-frame.c (dummy_frame_this_id): Do not assert
6684 SAVE_DUMMY_FRAME_TOS.
6685 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6686 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6687 (i386_push_dummy_call): Add 8 to the returned SP.
6688 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6689 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6690 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6691 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6692 (x86_64_push_dummy_call): Return "sp + 16".
6693 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6694 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6695 save_dummy_frame_tos.
6696
6697 2003-06-13 Jim Blandy <jimb@redhat.com>
6698
6699 * frv-tdep.c (frv_use_struct_convention): Delete static
6700 declaration for function deleted in my change of 2003-06-12.
6701
6702 2003-06-13 Theodore A. Roth <troth@openavr.org>
6703
6704 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6705 (avr_pointer_to_address): Shift code addrs left 1 bit.
6706 (avr_convert_from_func_ptr_addr): Delete function since operation is
6707 better handled by avr_address_to_pointer and avr_pointer_to_address.
6708 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6709
6710 2003-06-13 Mark Kettenis <kettenis@gnu.org>
6711
6712 From Kelley Cook <kelleycook@wideopenwest.com>:
6713 * configure.host: Accept i[34567]86 variants.
6714 * configure.tgt: Likewise.
6715 * nlm/configure.in: Likewise.
6716 * nlm/configure: Regenerated.
6717
6718 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
6719
6720 * arm-tdep.c (solib-svr4.h): Dont' include it.
6721 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6722 * arm-linux-tdep.c: ... here. Make static.
6723 (arm_linux_init_abi): Register it.
6724 (solib-svr4.h): Include it.
6725 * Makefile.in: Update dependencies.
6726 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6727 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6728
6729 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
6730
6731 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6732 indicate registers used for return values.
6733 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6734 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6735 members.
6736 (h8300_init_extra_frame_info): Ditto.
6737 (h8300_frame_locals_address): Removed.
6738 (h8300_frame_args_address): Removed.
6739 (h8300_extract_return_value): Use new regcache structure. Only care
6740 for 16 bit CPUs.
6741 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6742 (h8300_store_return_value): Use new regcache structure. Only care
6743 for 16 bit CPUs.
6744 (h8300h_store_return_value): Same function for 32 bit CPUs.
6745 (h8300_store_struct_return): Removed.
6746 (h8300_extract_struct_value_address): Use new regcache structure.
6747 (h8300h_extract_struct_value_address): Removed.
6748 (h8300_push_dummy_code): New function.
6749 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6750 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6751 set_gdbarch_store_return_value architecture dependent.
6752 Call set_gdbarch_push_dummy_code and
6753 set_gdbarch_extract_struct_value_address.
6754 Remove calls to set_gdbarch_frame_args_address,
6755 set_gdbarch_frame_locals_address,
6756 set_gdbarch_deprecated_store_struct_return,
6757 set_gdbarch_deprecated_extract_return_value,
6758 set_gdbarch_deprecated_extract_struct_value_address,
6759 set_gdbarch_deprecated_call_dummy_words and
6760 set_gdbarch_deprecated_sizeof_call_dummy_words.
6761
6762 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
6763
6764 * h8300-tdep.c (h8300_register_byte): Remove.
6765 (h8300h_register_byte): Remove.
6766 (h8300_register_virtual_type): Remove. Substitute by...
6767 (h8300_register_type): New function.
6768 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6769 (h8300h_extract_struct_value_address): Ditto.
6770 (h8300_gdbarch_init): Drop calls to
6771 set_gdbarch_deprecated_register_byte and
6772 set_gdbarch_deprecated_register_virtual_type.
6773 Add call to set_gdbarch_register_type.
6774
6775 2003-06-13 Andrew Cagney <cagney@redhat.com>
6776
6777 * gdbarch.sh: Update comments on registers.
6778 (deprecated_register_byte): Rename register_byte.
6779 (deprecated_register_raw_size): Rename register_raw_size.
6780 (deprecated_register_virtual_size): Rename register_virtual_size.
6781 (deprecated_register_virtual_type): Rename register_virtual_type.
6782 * gdbarch.h, gdbarch.c: Re-generate.
6783 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6784 * vax-tdep.c (vax_gdbarch_init): Update.
6785 * v850-tdep.c (v850_gdbarch_init): Update.
6786 * sparc-tdep.c (sparc_gdbarch_init): Update.
6787 * sh-tdep.c (sh_gdbarch_init): Update.
6788 * s390-tdep.c (s390_gdbarch_init): Update.
6789 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6790 * ns32k-tdep.c: Update.
6791 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6792 * mips-tdep.c (mips_gdbarch_init): Update.
6793 * mcore-tdep.c (mcore_gdbarch_init): Update.
6794 * m68k-tdep.c (m68k_gdbarch_init): Update.
6795 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6796 * ia64-tdep.c (ia64_gdbarch_init): Update.
6797 * hppa-tdep.c (hppa_gdbarch_init): Update.
6798 * h8300-tdep.c (h8300_gdbarch_init): Update.
6799 * frv-tdep.c (frv_gdbarch_init): Update.
6800 * cris-tdep.c (cris_gdbarch_init): Update.
6801 * avr-tdep.c (avr_gdbarch_init): Update.
6802 * alpha-tdep.c (alpha_gdbarch_init): Update.
6803 * arm-tdep.c (arm_gdbarch_init): Update.
6804
6805 2003-06-13 Andrew Cagney <cagney@redhat.com>
6806
6807 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6808 mips_o32_use_struct_convention with always_use_struct_convention.
6809
6810 2003-06-12 David Carlton <carlton@kealia.com>
6811
6812 * cp-namespace.c (cp_set_block_scope): Comment out
6813 processing_has_namespace_info branch.
6814
6815 2003-06-12 Jim Blandy <jimb@redhat.com>
6816
6817 Recognize and skip 64-bit PowerPC Linux linkage functions.
6818 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6819 insn_pattern, insns_match_pattern, d_field, ds_field): New
6820 functions, macros, and types for working with PPC instructions.
6821 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6822 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6823 ppc64_skip_trampoline_code): New functions, variables, and macros
6824 for recognizing and skipping linkage functions.
6825 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6826 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6827
6828 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6829 register offsets for both the 32- and 64-bit interfaces.
6830
6831 Actually finish the job started by my change of 2003-05-29.
6832 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6833 other #definition of this.
6834 (ppc_linux_skip_trampoline_code): Remove declaration.
6835 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6836 static.
6837 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6838 method for GDBARCH.
6839
6840 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6841 'long' on ppc64-*-linux*.
6842
6843 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6844 isn't #defined, assume the register doesn't exist: act as if
6845 tdep->ppc_mq_regnum were -1.
6846
6847 * configure.host, configure.tgt: Add entries for
6848 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6849 powerpc/linux.mt.
6850 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6851 New files.
6852
6853 * arch-utils.c (always_use_struct_convention): New function.
6854 * arch-utils.h (always_use_struct_convention): New prototype.
6855 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6856 (alpha_gdbarch_init): Register always_use_struct_convention,
6857 instead of alpha_use_struct_convention.
6858 * cris-tdep.c (cris_use_struct_convention): Delete.
6859 (cris_gdbarch_init): Register always_use_struct_convention,
6860 instead of cris_use_struct_convention.
6861 * frv-tdep.c (frv_use_struct_convention): Delete.
6862 (frv_gdbarch_init): Register always_use_struct_convention,
6863 instead of frv_use_struct_convention.
6864 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6865 (h8300_gdbarch_init): Register always_use_struct_convention,
6866 instead of h8300_use_struct_convention.
6867 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
6868 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6869 instead of mips_o32_use_struct_convention.
6870
6871 2003-06-12 Andrew Cagney <cagney@redhat.com>
6872
6873 * wince.c: Include "mips-tdep.h".
6874 * mips-tdep.h (mips_next_pc): Declare.
6875 * mcore-tdep.c: Make more local functions static.
6876 * Makefile.in (wince.o): Update dependencies.
6877
6878 2003-06-12 David Carlton <carlton@kealia.com>
6879
6880 * symtab.c (lookup_symbol_aux_minsyms): Replace
6881 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6882 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6883 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6884 SYMBOL_NATURAL_NAME.
6885
6886 2003-06-12 Andreas Schwab <schwab@suse.de>
6887
6888 * Makefile.in (tuiDisassem.o): Update dependencies.
6889
6890 2003-06-12 David Carlton <carlton@bactrian.org>
6891
6892 * symtab.h: Delete declaration of make_symbol_overload_list.
6893 Add declaration of lookup_partial_symbol.
6894 * symtab.c (remove_params): Move to cp-support.c.
6895 (overload_list_add_symbol, make_symbol_overload_list)
6896 (sym_return_val_size, sym_return_val_index): Ditto.
6897 (lookup_partial_symbol): Make extern.
6898 * cp-support.h: Add declaration of make_symbol_overload_list.
6899 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6900 symtab.h, and block.h.
6901 (remove_params): Move here from symtab.c.
6902 (overload_list_add_symbol, make_symbol_overload_list)
6903 (sym_return_val_size, sym_return_val_index): Ditto.
6904 * valops.c: Include cp-support.h.
6905 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6906 frame_h, and block_h.
6907 (valops.o): Depend on cp_support_h.
6908
6909 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
6910
6911 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6912 substitute by NUM_REGS throughout.
6913 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6914 (h8300s_register_name): New function for H8S registers.
6915 (h8300sx_register_name): Ditto for H8SX registers.
6916 (h8300_print_register): Revise register printing, avoid depending
6917 on 32 bit long.
6918 (h8300_register_byte): Only care for H8/300 registers.
6919 (h8300h_register_byte): New function for any other architecture.
6920 (h8300_register_raw_size): Remove.
6921 (h8300_register_virtual_type): Revise to return actually useful
6922 type.
6923 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6924 (h8300h_extract_struct_value_address): New function for any other
6925 architecture.
6926 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6927 set_gdbarch_register_name, set_gdbarch_register_byte,
6928 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6929 Remove calls to set_gdbarch_deprecated_register_size,
6930 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6931 set_gdbarch_deprecated_max_register_raw_size,
6932 set_gdbarch_register_virtual_size and
6933 set_gdbarch_deprecated_max_register_virtual_size entirely.
6934 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6935 set_gdbarch_long_double_bit.
6936
6937 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6938
6939 * doublest.c (convert_doublest_to_floatformat): When dealing
6940 with the implied integer bit, only alter mant_bits if we are
6941 processing a full 32 bits of mantissa.
6942
6943 2003-06-11 David Carlton <carlton@bactrian.org>
6944
6945 * dictionary.h: New.
6946 * dictionary.c: New.
6947 * block.h: Add opaque declaration for struct dictionary.
6948 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6949 'sym' members.
6950 (BLOCK_DICT): New macro.
6951 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6952 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6953 BLOCK_SHOULD_SORT.
6954 (ALL_BLOCK_SYMBOLS): Update definition.
6955 * Makefile.in (SFILES): Add dictionary.c.
6956 (dictionary_h): New.
6957 (COMMON_OBS): Add dictionary.o.
6958 (dictionary.o): New.
6959 (ada-lang.o): Depend on dictionary_h.
6960 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6961 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6962 (mi-cmd-stack.o): Ditto.
6963 (gdbtk-cmds.o): Update dependencies.
6964 (gdbtk-stack.o): Ditto.
6965 * ada-lang.c: Include dictionary.h.
6966 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6967 (fill_in_ada_prototype, debug_print_block): Ditto.
6968 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6969 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6970 'is_sorted'.
6971 * mdebugread.c: Include dictionary.h.
6972 (struct parse_stack): Delete 'maxsyms' member.
6973 (parse_symbol): Update calls to new_block. Delete calls to
6974 shrink_block. Use dictionary methods.
6975 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6976 Update calls to new_symtab. Don't maintain maxsyms data.
6977 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6978 (add_symbol): Just call dict_add_symbol.
6979 (new_symtab): Delete 'maxsyms' argument.
6980 (new_symtab): Update calls to new_block.
6981 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6982 (shrink_block): Delete function.
6983 (fixup_sigtramp): Update call to new_block. Add symbol via
6984 dict_add_symbol.
6985 * jv-lang.c: Include dictionary.h.
6986 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6987 appropriately. Set class_symtab->free_func. Make sure the
6988 blockvector is big enough to hold two blocks.
6989 (add_class_symtab_symbol): Use dictionary methods.
6990 (free_class_block): New function.
6991 (type_from_class): Replace explicit iteration by
6992 ALL_BLOCK_SYMBOLS.
6993 * symtab.h (struct symtab): Replace 'free_ptr' method by
6994 'free_func'.
6995 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6996 sort_symtab_syms.
6997 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6998 sort_symtab_syms.
6999 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
7000 Include dictionary.h.
7001 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
7002 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
7003 sort_symtab_syms.
7004 * objfiles.c: Include dictionary.h.
7005 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
7006 * buildsym.c: Include dictionary.h.
7007 (finish_block): Use dictionary methods.
7008 (end_symtab): Set free_func to NULL, not free_ptr.
7009 * tracepoint.c: Include dictionary.h.
7010 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
7011 (scope_info): Ditto.
7012 * stack.c: Include dictionary.h.
7013 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
7014 (print_block_frame_labels, print_frame_arg_vars)
7015 (print_frame_args): Ditto.
7016 * symmisc.c (free_symtab_block): Use dictionary methods.
7017 (dump_symtab): Ditto.
7018 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
7019 Include dictionary.h.
7020 * symfile.h: Delete declarations of sort_block_syms,
7021 sort_symtab_syms.
7022 * symfile.c (sort_block_syms): Delete.
7023 (sort_symtab_syms): Delete.
7024 * symtab.c: Include dictionary.h.
7025 (lookup_block_symbol): Use dictionary iterators.
7026 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
7027 (search_symbols, make_symbol_completion_list): Ditto.
7028 (make_symbol_overload_list): Ditto.
7029 * valops.c (value_of_local): Use dict_empty.
7030 Include dictionary.h.
7031
7032 2003-06-11 J. Brobecker <brobecker@gnat.com>
7033
7034 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
7035
7036 2003-06-11 David Carlton <carlton@bactrian.org>
7037
7038 * block.h (BLOCK_SHOULD_SORT): Delete.
7039 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
7040 blocks.
7041 * ada-lang.c (ada_add_block_symbols): Ditto.
7042 * symfile.c (sort_block_syms): Delete.
7043 (sort_symtab_syms): Ditto.
7044 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
7045 declarations.
7046 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
7047 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
7048 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
7049 * dwarfread.c (psymtab_to_symtab_1): Ditto.
7050 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
7051 * mdebugread.c (psymtab_to_symtab_1): Ditto.
7052 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
7053
7054 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
7055
7056 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
7057 bits to 128.
7058
7059 2003-06-11 Andrew Cagney <cagney@redhat.com>
7060
7061 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
7062 REGISTER_CONVERTIBLE.
7063 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
7064 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
7065 * gdbarch.h, gdbarch.c: Re-generate.
7066 * arch-utils.h (deprecated_register_convertible_not): Rename
7067 generic_register_convertible_not.
7068 * arch-utils.c (deprecated_register_convertible_not): Rename
7069 generic_register_convertible.
7070 (legacy_convert_register_p, legacy_register_to_value): Update.
7071 * sh-tdep.c (sh64_push_arguments): Update.
7072 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
7073 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
7074 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
7075 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
7076 * arch-utils.c (legacy_value_to_register): Update.
7077 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7078 (rs6000_register_convert_to_raw): Make parameter "from" const.
7079 * mips-tdep.c (mips_gdbarch_init): Update.
7080 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
7081 * infcmd.c (default_print_registers_info): Update.
7082 * ia64-tdep.c (ia64_gdbarch_init): Update.
7083 (ia64_register_convert_to_raw): Make parameter "from" const.
7084 * i386-tdep.c (i386_gdbarch_init): Update.
7085 (i386_register_convert_to_raw): Update.
7086
7087 2003-06-11 Andrew Cagney <cagney@redhat.com>
7088
7089 * remote-fileio.c: Include "remote-fileio.h".
7090 * Makefile.in (remote-fileio.o): Update dependencies.
7091 (remote_fileio_h): Fix typo.
7092
7093 2003-06-11 Andrew Cagney <cagney@redhat.com>
7094
7095 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
7096 (xstormy16_save_dummy_frame_tos): Make static.
7097 (_initialize_xstormy16_tdep): Add declaration.
7098 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
7099 * v850-tdep.c: Make local functions static.
7100 (_initialize_v850_tdep): Add declaration.
7101 * sparc-tdep.c: Make local functions static.
7102 (_initialize_sparc_tdep): Add declaration.
7103 * sh-tdep.c: Make local functions static.
7104 (_initialize_sh_tdep): Add declaration.
7105 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
7106 * s390-tdep.c: Make local functions static.
7107 (_initialize_s390_tdep): Add declaration.
7108 * dbxread.c (find_stab_function_addr): Make static.
7109 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
7110 * ocd.c (_initialize_remote_ocd): Add declaration.
7111 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
7112 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
7113 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
7114 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
7115 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
7116 * remote-array.c (_initialize_array): Add declaration.
7117 (_initialize_remote_monitors): Add declaration.
7118 * remote-mips.c: Make local functions static.
7119 (_initialize_remote_mips): Add declaration.
7120 * mcore-tdep.c: Make all local functions static.
7121 (_initialize_mcore_tdep): Add declaration.
7122 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
7123 * abug-rom.c (_initialize_abug_rom): Add declaration.
7124 * rom68k-rom.c (_initialize_rom68k): Add declaration.
7125 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
7126 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
7127 * remote-est.c (_initialize_est): Add declaration.
7128 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
7129 (m68hc11_call_dummy_address): Make static.
7130 * ia64-tdep.c: Make local functions static.
7131 (_initialize_ia64_tdep): Add declaration.
7132 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
7133 * monitor.c (monitor_wait_filter): Make static.
7134 (_initialize_remote_monitors): Add declaration.
7135 * remote-hms.c (_initialize_remote_hms): Add declaration.
7136 * remote-e7000.c (fetch_regs_from_dump): Make static.
7137 (expect_n): Make static.
7138 (_initialize_remote_e7000): Add declaration.
7139 * ser-e7kpc.c: Always include "defs.h".
7140 (_initialize_ser_e7000pc): Add declaration.
7141 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
7142 * cris-tdep.c: Make all but one function static.
7143 (_initialize_cris_tdep): Add declaration.
7144 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
7145 * solib.c (update_solib_list): Make static.
7146 (_initialize_solib): Add declaration.
7147 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
7148 (_initialize_avr_tdep): Add declaration.
7149 * remote-rdi.c (voiddummy): Make static.
7150 (_initialize_remote_rdi): Add declaration.
7151 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
7152 * remote-rdp.c (send_rdp): Make static.
7153 (_initialize_remote_rdp): Add declaration.
7154 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
7155
7156 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
7157
7158 * remote-fileio.c: Make ari happy.
7159
7160 2003-06-10 J. Brobecker <brobecker@gnat.com>
7161
7162 * rs6000-nat.c (child_xfer_memory): Compute the right address when
7163 fetching the trailing bytes of the buffer we are about to write.
7164
7165 2003-06-10 Andrew Cagney <cagney@redhat.com>
7166
7167 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
7168 * Makefile.in (remote-fileio.o): Update dependencies.
7169 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
7170 include <setjmp.h>, or <sys/types.h> conditional on USG.
7171 (remote_fio_jmp_buf): Delete global variable.
7172
7173 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
7174 Martin M. Hunt <hunt@redhat.com>
7175
7176 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
7177 (SFILES): Add remote-fileio.c.
7178 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
7179 dependencies for building remote.o.
7180 * remote-fileio.c: New file implementing the remote File-I/O protocol.
7181 * remote-fileio.h: New header file defining remote File-I/O interface.
7182 * remote.c (remote_write_bytes, remote_read_bytes): Remove
7183 static storage class.
7184 (remote_wait, remote_async_wait): Call remote_fileio_request() on
7185 'F' packet.
7186 (_initialize_remote): Call initialize_remote_fileio().
7187 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
7188 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7189 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7190 (captured_main): Initialize new ui_files.
7191 * ui-file.c: Add read and fgets input functions.
7192 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
7193 (null_file_read): New function.
7194 (ui_file_read): New function.
7195 (set_ui_file_read): New function.
7196 (stdio_file_read): New function.
7197 * ui-file.h: New type ui_file_read_ftype.
7198 (set_ui_file_read): Declare.
7199 (ui_file_read): Declare.
7200
7201 2003-06-09 Andrew Cagney <cagney@redhat.com>
7202
7203 * frame.h (deprecated_unwind_get_saved_register): Rename
7204 generic_unwind_get_saved_register, update comments.
7205 * mips-tdep.c (mips_get_saved_register): Update.
7206 * frame.c (deprecated_unwind_get_saved_register): Update.
7207
7208 2003-06-09 Andrew Cagney <cagney@redhat.com>
7209
7210 * vax-tdep.c (vax_frame_locals_address): Delete function.
7211 (vax_gdbarch_init): Do not set frame_locals_address.
7212 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
7213 (m68hc11_gdbarch_init): Do not set frame_locals_address.
7214 * s390-tdep.c (s390_frame_args_address): Delete function.
7215 (s390_gdbarch_init): Do not set frame_args_address or
7216 frame_locals_address.
7217 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
7218 (ns32k_gdbarch_init): Do not set frame_locals_address.
7219 * hppa-tdep.c (hppa_frame_args_address): Delete function.
7220 (hppa_frame_locals_address): Delete function.
7221 (hppa_gdbarch_init): Do not set frame_args_address, or
7222 frame_locals_address.
7223 * arm-tdep.c (arm_frame_args_address): Delete.
7224 (arm_frame_locals_address): Delete.
7225 (arm_gdbarch_init): Do not set frame_args_address, or
7226 frame_locals_address.
7227
7228 2003-06-09 Andrew Cagney <cagney@redhat.com>
7229
7230 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
7231 * gdbarch.h, gdbarch.c: Re-generate.
7232 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
7233 * arch-utils.c (frame_num_args_unknown): Delete function.
7234 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
7235 (frame_info): Use FRAME_NUM_ARGS_P.
7236 * arm-tdep.c (arm_frame_num_args): Delete function.
7237 (arm_gdbarch_init): Do not set frame_num_args.
7238 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
7239 * hppa-tdep.c (hppa_frame_num_args): Delete function.
7240 (hppa_gdbarch_init): Do not set frame_num_args.
7241 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
7242 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7243 frame_num_args to default frame_num_args_unknown.
7244 * v850-tdep.c (v850_gdbarch_init): Ditto.
7245 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7246 * sh-tdep.c (sh_gdbarch_init): Ditto.
7247 * s390-tdep.c (s390_gdbarch_init): Ditto.
7248 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7249 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7250 * mips-tdep.c (mips_gdbarch_init): Ditto.
7251 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7252 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7253 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7254 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7255 * i386-tdep.c (i386_gdbarch_init): Ditto.
7256 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7257 * frv-tdep.c (frv_gdbarch_init): Ditto.
7258 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7259 * cris-tdep.c (cris_gdbarch_init): Ditto.
7260 * avr-tdep.c (avr_gdbarch_init): Ditto.
7261 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7262
7263 2003-06-09 Andrew Cagney <cagney@redhat.com>
7264
7265 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7266 (print_frame_args): Moved to "stack.c".
7267 * stack.c: Include "gdb_assert.h".
7268 (print_frame_nameless_args): Moved from "printcmd.c", made static.
7269 (print_frame_args): Moved from "printcmd.c".
7270 * frame.h (print_frame_args): Delete declaration.
7271 * Makefile.in (stack.o): Update dependencies.
7272
7273 2003-06-08 Andrew Cagney <cagney@redhat.com>
7274
7275 * frame.c (get_prev_frame): Remove reference to
7276 frame_args_address_correct in comments.
7277 * frame-base.c (default_frame_args_address): Delete code
7278 conditional on FRAME_ARGS_ADDRESS_CORRECT.
7279 * vax-tdep.c (vax_frame_args_address_correct): Delete.
7280 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7281 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7282 (vax_frame_args_address_correct): Delete declaration.
7283
7284 2003-06-08 Andrew Cagney <cagney@redhat.com>
7285
7286 * gdbarch.sh (UNWIND_SP): Add.
7287 * gdbarch.h, gdbarch.c: Re-generate.
7288 * frame.c (frame_sp_unwind): New function.
7289 (get_frame_sp): New function.
7290 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7291 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7292 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7293 value.
7294 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7295 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7296
7297 2003-06-08 Andrew Cagney <cagney@redhat.com>
7298
7299 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7300 REMOTE_BREAKPOINT.
7301 * remote.c: Update.
7302 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7303 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7304 * config/m68k/tm-sun3.h: Update.
7305 * config/m68k/tm-m68klynx.h: Update.
7306 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7307
7308 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7309 trad_frame". Update comments.
7310 * d10v-tdep.c (struct d10v_unwind_cache): Update.
7311 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7312 (trad_frame_register_value, trad_frame_prev_register): Update.
7313
7314 2003-06-08 Andrew Cagney <cagney@redhat.com>
7315
7316 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7317 from GCC's acinclude.m4.
7318 * configure.in: Check for getopt's delcaration.
7319 * aclocal.m4, config.in, configure: Re-generate.
7320 * main.c (error_init): Delete declaration.
7321 * defs.h (error_init): Declare.
7322 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7323 (rs6000_convert_from_func_ptr_addr): Make static.
7324 (_initialize_rs6000_tdep): Add declaration.
7325 * cli/cli-cmds.c (dont_repeat): Delete declaration.
7326 (show_commands, set_verbose, show_history): Delete declaration.
7327 * top.h (set_verbose): Add declaration.
7328 (show_history, set_history, show_commands): Add declaration.
7329 (do_restore_instream_cleanup): Add declaration.
7330 * objc-lang.c (specialcmp): Make static.
7331 (print_object_command): Make static.
7332 (find_objc_msgsend): Make static.
7333 (find_objc_msgcall_submethod_helper): Make static.
7334 (find_objc_msgcall_submethod): Make static.
7335 (_initialize_objc_language): Add declaration.
7336 (find_implementation_from_class): Make static.
7337 (find_implementation): Make static.
7338 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7339 * objc-lang.h (lookup_struct_typedef): Add declaration.
7340 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7341 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7342 (do_restore_user_call_depth): Make static.
7343 (do_restore_instream_cleanup): Delete declaration.
7344 (dont_repeat): Delete declaration.
7345 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7346 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7347 * reggroups.c (_initialize_reggroup): Add declaration.
7348 * cp-support.c (_initialize_cp_support): Add declaration.
7349 * cp-abi.c (_initialize_cp_abi): Add declaration.
7350 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7351 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7352 (_initialize_gnu_v3_abi): Add declaration.
7353 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7354 (_initialize_gnu_v2_abi): Add declaration.
7355 * frame-base.c (_initialize_frame_base): Add declaration.
7356 * doublest.c (floatformat_from_length): Make static.
7357 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7358 * frame.c (create_sentinel_frame): Make static.
7359 (_initialize_frame): Add declaration.
7360 * top.c (do_catch_errors): Make static.
7361 (gdb_rl_operate_and_get_next_completion): Make static.
7362 * typeprint.c: Include "typeprint.h".
7363 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7364 (sentinel_frame_this_id): Make static.
7365 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7366 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7367 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7368 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7369 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7370 * maint.c (maintenance_print_architecture): Make static.
7371 * signals/signals.c (_initialize_signals): Add declaration.
7372 * std-regs.c (_initialize_frame_reg): Add declaration.
7373 * jv-exp.y (push_variable): ISO C definition.
7374 (push_qualified_expression_name): Ditto.
7375 * memattr.c (_initialize_mem): Add declaration.
7376 * remote.c (remote_check_watch_resources): Make static.
7377 (remote_stopped_by_watchpoint): Make static.
7378 (remote_stopped_data_address): Make static.
7379 * d10v-tdep.c (nr_dmap_regs): Make static.
7380 (a0_regnum): Make static.
7381 (d10v_frame_unwind_cache): Make static.
7382 (d10v_frame_p): Make static.
7383 * osabi.c (show_osabi): Make static.
7384 (_initialize_gdb_osabi): Add extern declaration.
7385 * gdbtypes.c (make_qualified_type): Make static.
7386 (safe_parse_type): Make static.
7387 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7388 * macrotab.c (macro_bcache_free): Make static.
7389 * interps.c (interp_set_quiet): Make static.
7390 (interpreter_exec_cmd): Make static.
7391 * stack.h (select_frame_command): New file.
7392 * stack.c: Include "stack.h".
7393 (select_frame_command_wrapper): Delete function.
7394 (select_frame_command): Make global.
7395 * infcall.c: Include "infcall.h".
7396 * linespec.c: Include "linespec.h".
7397 * symfile.c (sections_overlap): Make static.
7398 * cp-support.h (cp_initialize_namespace): ISO C declaration.
7399 * charset.c (_initialize_charset): Add missing prototype.
7400 * regcache.c (init_legacy_regcache_descr): Make static.
7401 (do_regcache_xfree): Make static.
7402 (regcache_xfer_part): Make static.
7403 (_initialize_regcache): Add missing prototype.
7404 * breakpoint.c (parse_breakpoint_sals): Make static.
7405 (breakpoint_sals_to_pc): Make static.
7406 * interps.h (clear_interpreter_hooks): ISO C declaration.
7407 * Makefile.in (stack_h): Define.
7408 (stack.o, typeprint.o, mi-main.o): Update dependencies.
7409 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7410
7411 2003-06-08 Andrew Cagney <cagney@redhat.com>
7412
7413 * Makefile.in (d10v-tdep.o): Update dependencies.
7414 (SFILES): Add trad-frame.c.
7415 (trad_frame_h): Define.
7416 (COMMON_OBS): Add trad-frame.o.
7417 (trad-frame.o): Specify dependencies.
7418 * d10v-tdep.c: Include "trad-frame.h".
7419 (saved_regs_unwinder): Delete function.
7420 (d10v_frame_prev_register): Use trad_frame_prev_register.
7421 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7422 trad_frame", delete "regs" and "prev_sp".
7423 (prologue_find_regs): Use trad-frame.
7424 * trad-frame.h, trad-frame.c: New files.
7425
7426 2003-06-08 Mark Kettenis <kettenis@gnu.org>
7427
7428 * dwarf2cfi.c, dwarf2cfi.h: Remove.
7429
7430 2003-06-07 Adam Fedor <fedor@gnu.org>
7431
7432 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7433 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7434 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7435 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
7436 resolve_msgsend_super, resolve_msgsend_super_stret):
7437 Use it.
7438
7439 2003-06-07 Andrew Cagney <cagney@redhat.com>
7440
7441 * symfile.h: Re-indent, clean up comments.
7442
7443 2003-06-07 Andrew Cagney <cagney@redhat.com>
7444
7445 * inferior.h (deprecated_write_sp): Replace
7446 generic_target_write_sp.
7447 * regcache.c (deprecated_write_sp): Replace
7448 generic_target_write_sp.
7449 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7450 * vax-tdep.c (vax_gdbarch_init): Update.
7451 * v850-tdep.c (v850_gdbarch_init): Update.
7452 * sparc-tdep.c (sparc_gdbarch_init): Update.
7453 * sh-tdep.c (sh_gdbarch_init): Update.
7454 * s390-tdep.c (s390_gdbarch_init): Update.
7455 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7456 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7457 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7458 * mcore-tdep.c (mcore_gdbarch_init): Update.
7459 * m68k-tdep.c (m68k_gdbarch_init): Update.
7460 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7461 * ia64-tdep.c (ia64_gdbarch_init): Update.
7462 * h8300-tdep.c (h8300_gdbarch_init): Update.
7463 * frv-tdep.c (frv_gdbarch_init): Update.
7464 * cris-tdep.c (cris_gdbarch_init): Update.
7465 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7466
7467 2003-06-07 Andrew Cagney <cagney@redhat.com>
7468
7469 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7470 Assert that PC_REGNUM is valid.
7471 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7472
7473 2003-06-07 Andrew Cagney <cagney@redhat.com>
7474
7475 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7476 * gdbarch.h, gdbarch.c: Regenerate.
7477 * mn10300-tdep.c: Include "gdb_assert.h".
7478 (mn10300_read_fp): New function.
7479 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7480 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7481 * ia64-tdep.c: Include "gdb_assert.h".
7482 (ia64_read_fp): New function.
7483 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7484 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7485 * regcache.c (generic_target_read_sp): Delete function.
7486 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7487 * inferior.h (generic_target_read_sp): Delete declaration.
7488 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7489 generic_target_read_sp.
7490 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7491 * sparc-tdep.c (sparc_gdbarch_init): Ditto
7492 * sh-tdep.c (sh_gdbarch_init): Ditto.
7493 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7494 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7495
7496 2003-06-07 Andrew Cagney <cagney@redhat.com>
7497
7498 * gdbarch.sh: Comment each field of startup_gdbarch.
7499 * gdbarch.h, gdbarch.c: Re-generate.
7500
7501 2003-06-07 Andrew Cagney <cagney@redhat.com>
7502
7503 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7504 * gdbarch.h, gdbarch.c: Re-generate.
7505 * regcache.c: Update comments on read_pc et.al.
7506 (generic_target_read_pc): Delete function.
7507 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7508 * inferior.h (generic_target_read_pc): Delete declaration.
7509 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7510 generic_target_read_pc.
7511 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7512 * sh-tdep.c (sh_gdbarch_init): Ditto.
7513 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7514 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7515
7516 2003-06-07 Andrew Cagney <cagney@redhat.com>
7517
7518 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7519 "index" with "special_local_sect". Use strcmp instead of STREQ.
7520 Append period to coments.
7521
7522 2003-06-06 Mark Mitchell <mark@codesourcery.com>
7523
7524 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7525 (elfstab_offset_sections): Likewise.
7526 * gdb-stabs.h (stab_section_info): Likewise.
7527 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7528 * objfiles.c (objfile_relocate): Likewise.
7529 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7530 * remote.c (get_offsets): Likewise.
7531 (remote_cisco_objfile_relocate): Likewise.
7532 * somread.c (som_symfile_offsets): Likewise.
7533 * symfile.c (alloc_section_addr_info): New function.
7534 (build_section_addr_info_from_section_tab): Use it.
7535 (free_section_addr_info): Adjust.
7536 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7537 (syms_from_objfile): Allocate local_addr dynamically.
7538 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7539 dynamically.
7540 (add_symbol_file_command): Allocate sect_opts dynamically.
7541 (reread_symbols): Avoid use of SECT_OFF_MAX.
7542 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7543 (alloc_section_addr_info): Declare it.
7544 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7545 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7546 dynamically.
7547 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
7548
7549 2003-06-06 Andrew Cagney <cagney@redhat.com>
7550
7551 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7552 (d10v_frame_unwind_cache): Do not set "return_pc".
7553
7554 2003-06-06 Michael Snyder <msnyder@redhat.com>
7555
7556 * h8300-tdep.c: Make tidy (long lines).
7557
7558 2003-06-06 Michal Ludvig <mludvig@suse.cz>
7559
7560 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
7561 to regcache_collect().
7562
7563 2003-06-05 J. Brobecker <brobecker@gnat.com>
7564
7565 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7566 pc_in_sigtramp multiarch method.
7567 (hppa_hpux_som_init_abi): Use it.
7568 (hppa_hpux_elf_init_abi): Likewise.
7569 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7570 macro has been multiarched.
7571 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7572 macro here, as hppa64 isn't multiarched yet.
7573
7574 2003-06-05 Andrew Cagney <cagney@redhat.com>
7575
7576 * Makefile.in (value_h): Add $(frame_h).
7577 * value.h: Include "frame.h".
7578 (struct value): Replace "frame_addr" with "frame_id".
7579 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7580 * values.c (allocate_value): Use VALUE_FRAME_ID.
7581 (value_copy): Use VALUE_FRAME_ID.
7582 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7583 * valops.c (value_assign): Update. Use frame_find_by_id.
7584
7585 2003-06-05 Michal Ludvig <mludvig@suse.cz>
7586
7587 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7588 in each pass.
7589
7590 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7591
7592 * thread-db.c (check_event): For create/death event breakpoints,
7593 loop through all messages to ensure that we read the message
7594 corresponding to the breakpoint we are at.
7595
7596 2003-06-04 Michael Snyder <msnyder@redhat.com>
7597
7598 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7599
7600 2003-06-04 Mark Kettenis <kettenis@gnu.org>
7601
7602 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7603 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7604 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7605 when handling .eh_frame sections.
7606
7607 2003-06-04 J. Brobecker <brobecker@gnat.com>
7608
7609 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7610 prepare_to_proceed procedure instead of the hppa-specific one.
7611 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7612
7613 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
7614
7615 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7616 * config.in: Regenerated.
7617 * configure.in: Add test for syscall function and check for
7618 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7619 * configure: Regenerated.
7620 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7621 <sys/syscall.h>.
7622 (kill_lwp): New function that uses tkill syscall or
7623 uses kill, depending on whether threading model is nptl or not.
7624 All callers of kill() changed to use kill_lwp().
7625 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7626 see if all threads have already exited in the nptl model.
7627 (stop_and_resume_callback): New callback function used by the
7628 lin_lwp_wait thread exit handling code.
7629 (stop_wait_callback): Check for threads already having exited and
7630 delete such threads fromt the lwp list when discovered.
7631 (stop_callback): Don't assert retcode of kill call.
7632
7633 Roland McGrath <roland@redhat.com>
7634 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7635 nptl libthread_db.
7636
7637 2003-06-03 Richard Henderson <rth@redhat.com>
7638
7639 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7640 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7641 (alpha_sigtramp_frame_prev_register): Likewise.
7642 (alpha_heuristic_frame_prev_register): Likewise.
7643 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7644
7645 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
7646 alpha-specific register id names.
7647 (alpha_mdebug_frame_unwind_cache): Likewise.
7648 (alpha_mdebug_frame_prev_register): Likewise.
7649
7650 2003-06-03 Richard Henderson <rth@redhat.com>
7651
7652 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7653 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7654 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7655 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7656 unwind routines.
7657 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7658 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7659 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7660
7661 * alpha-linux-tdep.c: Remove unnecessary includes.
7662 * Makefile.in (alpha-linux-tdep.o): Update.
7663
7664 2003-06-03 Richard Henderson <rth@redhat.com>
7665
7666 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7667 (alphabsd_fill_fpreg): Likewise.
7668
7669 2003-06-03 J. Brobecker <brobecker@gnat.com>
7670
7671 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7672 references to struct frame_info fields by calls to the equivalent
7673 accessors. Necessary now that frame_info is opaque.
7674
7675 2003-06-03 J. Brobecker <brobecker@gnat.com>
7676
7677 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7678 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7679 structure, field no longer exists.
7680
7681 2003-06-03 J. Brobecker <brobecker@gnat.com>
7682
7683 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7684 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7685
7686 2003-06-03 J. Brobecker <brobecker@gnat.com>
7687
7688 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7689 references to struct frame_info fields by calls to the equivalent
7690 accessors. Necessary now that frame_info is opaque.
7691
7692 2003-06-03 J. Brobecker <brobecker@gnat.com>
7693
7694 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7695 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7696 structure, field no longer exists.
7697
7698 2003-06-03 Theodore A. Roth <troth@openavr.org>
7699
7700 * remote.c (init_remote_state): Compute sizeof_g_packet by
7701 accumulation of the size of all registers instead of blindly using
7702 DEPRECATED_REGISTER_BYTES.
7703
7704 2003-06-03 Michael Snyder <msnyder@redhat.com>
7705
7706 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7707 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7708 for h8300sx.
7709
7710 2003-06-03 J. Brobecker <brobecker@gnat.com>
7711
7712 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7713 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7714
7715 2003-06-03 Andrew Cagney <cagney@redhat.com>
7716
7717 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7718 (sparc_convert_to_raw): Delete function.
7719 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7720 register_convert_to_virtual.
7721
7722 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7723
7724 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7725 layer if not dealing with a statically-linked threaded program.
7726
7727 2003-06-03 Kris Warkentin <kewarken@qnx.com>
7728
7729 * solib.c (solib_open): Update comment to reflect actual search order.
7730
7731 2003-06-03 Andrew Cagney <cagney@redhat.com>
7732
7733 * frame.c (get_frame_memory_signed): New function.
7734 (get_frame_memory, get_frame_memory_unsigned): New function.
7735 (get_frame_arch): New function.
7736 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7737 (get_frame_memory, get_frame_unsigned_memory): Declare.
7738 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7739 get_frame_memory_unsigned and get_frame_arch.
7740 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7741
7742 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7743
7744 * MAINTAINERS (write after approval): Add myself.
7745
7746 2003-06-03 Jim Blandy <jimb@redhat.com>
7747
7748 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7749 elements of gregset_t are 64 bits each, but access registers
7750 are still 32 bits, so they're packed two per gregset_t
7751 element. Unpack/pack them properly.
7752
7753 2003-06-02 David Carlton <carlton@bactrian.org>
7754
7755 * linespec.c (find_methods): Break out code into
7756 add_matching_methods and add_constructors.
7757 (add_matching_methods): New.
7758 (add_constructors): Ditto.
7759
7760 2003-06-02 Andrew Cagney <cagney@redhat.com>
7761
7762 * sparc-tdep.c (sparc_print_registers): Delete call to
7763 REGISTER_CONVERTIBLE.
7764 (sparc_gdbarch_init): Do not set register_convertible.
7765 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7766 * frv-tdep.c (frv_gdbarch_init): Ditto.
7767 * cris-tdep.c (cris_gdbarch_init): Ditto.
7768
7769 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
7770
7771 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
7772 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7773 (syms_from_objfile): Ditto.
7774
7775 2003-06-03 Andreas Schwab <schwab@suse.de>
7776
7777 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7778 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7779
7780 2003-06-02 Richard Henderson <rth@redhat.com>
7781
7782 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7783 a member of all_reggroup.
7784
7785 2003-06-02 Richard Henderson <rth@redhat.com>
7786
7787 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7788 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7789 (alpha_lds, alpha_sts): New.
7790 (alpha_convert_register_p): Change from _register_convertible.
7791 (alpha_register_to_value): Change from _convert_to_virtual;
7792 restructure and fail for type sizes other than 4 or 8.
7793 (alpha_value_to_register): Similarly.
7794 (alpha_extract_return_value): Use alpha_sts.
7795 (alpha_store_return_value): Use alpha_lds.
7796 (alpha_gdbarch_init): Update hooks.
7797
7798 2003-06-02 Richard Henderson <rth@redhat.com>
7799
7800 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7801 regnum identifiers.
7802 (alpha_sigtramp_register_address): Likewise.
7803
7804 2003-06-02 Richard Henderson <rth@redhat.com>
7805
7806 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7807 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7808 * alpha-tdep.h: Declare them.
7809
7810 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7811 Remove zerobuf. Don't error on UNIQUE.
7812 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7813 (ALPHA_REGSET_UNIQUE): Provide default.
7814 (supply_gregset): Use alpha_supply_int_regs.
7815 (fill_gregset): Use alpha_fill_int_regs.
7816 (supply_fpregset): Use alpha_supply_fp_regs.
7817 (fill_fpregset): Use alpha_fill_fp_regs.
7818 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7819 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7820 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7821 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7822 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7823 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7824
7825 2003-06-02 Richard Henderson <rth@redhat.com>
7826
7827 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7828
7829 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7830 (alpha_store_return_value): Likewise.
7831
7832 2003-06-02 David Carlton <carlton@math.stanford.edu>
7833
7834 * block.c (contained_in): Add 'const' to arguments.
7835 (block_function): Ditto.
7836 * block.h: Update declarations for block_function and
7837 contained_in.
7838
7839 2003-06-02 David Carlton <carlton@math.stanford.edu>
7840
7841 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7842 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7843 * p-valprint.c (pascal_val_print): Ditto.
7844 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7845
7846 2003-06-02 Richard Henderson <rth@redhat.com>
7847
7848 * alpha-tdep.c (alpha_push_dummy_call): Use
7849 builtin_type_ieee_double_little instead of builtin_type_double.
7850
7851 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
7852 sign-extension of 32-bit values.
7853 (alpha_store_return_value): Similarly.
7854
7855 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7856 (alpha_extract_return_value): Likewise.
7857 (alpha_store_return_value): Likewise.
7858
7859 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7860 (alpha_store_return_value): Error on IEEE Quad floats.
7861
7862 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7863 (alpha_extract_struct_value_address): Likewise.
7864 (alpha_store_return_value): Likewise.
7865 (alpha_store_struct_return): Remove.
7866 (alpha_gdbarch_init): Update hook registration to match.
7867
7868 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7869 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7870 macros where appropriate.
7871 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7872 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
7873
7874 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7875 for SP, GP; void_func_ptr for PC; non-language-specific types
7876 for all others.
7877 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
7878
7879 2003-06-02 Richard Henderson <rth@redhat.com>
7880
7881 * top.h (lim_at_start): Declare.
7882 * main.c (captured_main): Set it.
7883 * top.c (lim_at_start): Define.
7884 (command_loop): Use it instead of &environ.
7885 * event-top.c (command_handler): Likewise.
7886
7887 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7888
7889 * mipsnbsd-tdep.c: Update copyright years.
7890 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7891
7892 2003-06-01 Richard Henderson <rth@redhat.com>
7893
7894 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7895 (alpha-linux-tdep.o): Update dependencies.
7896 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7897 * alpha-mdebug-tdep.c: Remove unneeded includes.
7898
7899 2003-06-01 Richard Henderson <rth@redhat.com>
7900
7901 * alpha-tdep.c (alpha_register_reggroup_p): New.
7902 (alpha_gdbarch_init): Register it.
7903
7904 2003-06-02 Andrew Cagney <cagney@redhat.com>
7905
7906 * dwarfread.c: Eliminate "register"
7907 (decode_die_type): Eliminate assignment within "if".
7908 (struct_type, decode_array_element_type): Ditto.
7909 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7910 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7911 (decode_modified_type, completedieinfo): Ditto.
7912 * block.c: Eliminate "register".
7913 (blockvector_for_pc_sect): Eliminate assignment within "if".
7914 * cp-support.h (struct symbol): Opaque declaration.
7915 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7916
7917 2003-06-01 Richard Henderson <rth@redhat.com>
7918
7919 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7920 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
7921
7922 2003-06-01 Adam Fedor <fedor@gnu.org>
7923
7924 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7925 * gdbarch.[ch]: Regenerate.
7926 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7927 (hppa_gdbarch_init): Set it in the gdbarch vector.
7928 * i386-tdep.c (i386_fetch_pointer_argument): New
7929 (i386_gdbarch_init): Set it into gdbarch.
7930 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7931 (rs6000_gdbarch_init): Set it in gdbarch.
7932 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7933 (sparc_gdbarch_init): Set it in gdbarch.
7934
7935 2003-06-01 Andrew Cagney <cagney@redhat.com>
7936
7937 * defs.h (extract_address): Delete declaration.
7938 * findvar.c (extract_address): Delete function.
7939 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7940 extract_address with the inline equivalent,
7941 extract_unsigned_integer.
7942 (xstormy16_extract_struct_value_address): Ditto.
7943 (xstormy16_pointer_to_address): Ditto.
7944 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7945 * v850-tdep.c (v850_push_arguments): Ditto.
7946 (v850_extract_return_value): Ditto.
7947 (v850_extract_struct_value_address): Ditto.
7948 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7949 (sparcnbsd_get_longjmp_target_64): Ditto.
7950 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7951 (get_longjmp_target): Ditto.
7952 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7953 (sh64_extract_struct_value_address): Ditto.
7954 (sh_push_arguments): Ditto.
7955 (sh64_push_arguments): Ditto.
7956 * remote-vxsparc.c (vx_read_register): Ditto.
7957 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7958 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7959 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7960 * mipsv4-nat.c (get_longjmp_target): Ditto.
7961 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7962 * mips-nat.c (get_longjmp_target): Ditto.
7963 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7964 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7965 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7966 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7967 * irix5-nat.c (get_longjmp_target): Ditto.
7968 * irix4-nat.c (get_longjmp_target): Ditto.
7969 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7970 (ia64_push_arguments): Ditto.
7971 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7972 * h8300-tdep.c (h8300_push_arguments): Ditto.
7973 (h8300_store_return_value): Ditto.
7974 (h8300_extract_struct_value_address): Ditto.
7975 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7976 (frv_push_arguments): Ditto.
7977 * avr-tdep.c (avr_pointer_to_address): Ditto.
7978 (avr_push_arguments): Ditto.
7979 * arm-tdep.c (arm_push_dummy_call): Ditto.
7980 (arm_get_longjmp_target): Ditto.
7981 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7982 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7983 (alpha_get_longjmp_target): Ditto.
7984
7985 * solib-irix.c (extract_mips_address): Inline extract_address,
7986 replacing it with extract_signed_integer.
7987 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7988 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7989 (first_link_map_member, open_symbol_file_object): Ditto.
7990 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7991 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7992 (LM_NEXT, LM_NAME): Ditto.
7993
7994 2003-06-01 Richard Henderson <rth@redhat.com>
7995
7996 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7997 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7998 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7999 (alpha_cannot_store_register): Likewise.
8000 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
8001 * alpha-nat.c (supply_gregset): Likewise.
8002 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
8003
8004 2003-06-01 Andrew Cagney <cagney@redhat.com>
8005
8006 * infcall.c (call_function_by_hand): Update comment on
8007 DEPRECATED_DUMMY_WRITE_SP.
8008
8009 * mips-tdep.c (mips_gdbarch_init): Do not set
8010 deprecated_dummy_write_sp.
8011 (mips_eabi_push_dummy_call): Set the SP register.
8012 (mips_o64_push_dummy_call): Set the SP register.
8013 (mips_o32_push_dummy_call): Set the SP register.
8014 (mips_n32n64_push_dummy_call): Set the SP register.
8015
8016 2003-06-01 Richard Henderson <rth@redhat.com>
8017
8018 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
8019 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
8020 (supply_gregset): Likewise.
8021 * alpha-tdep.c (alpha_store_return_value): Likewise.
8022 (alpha_get_longjmp_target): Likewise.
8023 (alpha_register_name): Constify array.
8024 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
8025 deprecated_register_size, deprecated_register_bytes,
8026 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
8027 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
8028 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
8029
8030 2003-06-01 Richard Henderson <rth@redhat.com>
8031
8032 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
8033 from arg_reg_buffer to regcache to avoid double conversion.
8034
8035 2003-06-01 Mark Kettenis <kettenis@gnu.org>
8036
8037 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
8038 SP_REGNUM.
8039 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
8040 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
8041
8042 2003-06-01 Richard Henderson <rth@redhat.com>
8043
8044 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
8045 (decode_frame_entry): Set it. Skip FDE augmentation.
8046
8047 2003-06-01 Richard Henderson <rth@redhat.com>
8048
8049 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
8050 not overlapping PC_REGNUM.
8051
8052 2003-06-01 Richard Henderson <rth@redhat.com>
8053
8054 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
8055 alpha_push_arguments. Don't dump argument register data to
8056 the target stack. Fix float and 128-bit long double semantics.
8057 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
8058 (alpha_fix_call_dummy): Remove.
8059 (alpha_call_dummy_words): Remove.
8060 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
8061
8062 2003-06-01 Richard Henderson <rth@redhat.com>
8063
8064 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
8065
8066 2003-06-01 Andrew Cagney <cagney@redhat.com>
8067
8068 * mips-tdep.c (is_mips16_addr): New function.
8069 (make_mips16_addr, unmake_mips16_addr): New functions.
8070 (pc_is_mips16, mips_fetch_instruction): Use.
8071 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
8072 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
8073 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
8074 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
8075 TARGET_MIPS.
8076 * config/mips/tm-mips.h: Update copyright.
8077 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
8078 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
8079 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
8080 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
8081 (TM_PRINT_INSN_MACH): Delete.
8082 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
8083
8084 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
8085 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
8086 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
8087 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
8088 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
8089 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
8090 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
8091 mips*-*-riscos* and mips*-*-sysv* onto mips.
8092 * config/mips/mips64.mt: New file.
8093 * config/mips/mips.mt: New file.
8094 * config/mips/littlemips.mt: Delete file.
8095 * config/mips/decstation.mt: Delete file.
8096 * config/mips/vr4300el.mt: Delete file.
8097 * config/mips/vr5000el.mt: Delete file.
8098 * config/mips/vr5000.mt: Delete file.
8099 * config/mips/vr4100.mt: Delete file.
8100 * config/mips/vr4xxxel.mt: Delete file.
8101 * config/mips/vr4300.mt: Delete file.
8102 * config/mips/vr4xxx.mt: Delete file.
8103 * config/mips/bigmips.mt: Delete file.
8104 * config/mips/bigmips64.mt: Delete file.
8105 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
8106 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
8107 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
8108 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
8109 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
8110 "tm-bigmips.h".
8111 * config/mips/tm-irix3.h: Ditto.
8112 * config/mips/tm-mipsv4.h: Ditto.
8113 * config/mips/tm-embed.h: Ditto.
8114 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
8115 "tm-bigmips64.h".
8116 * config/mips/tm-vr5000el.h: Delete file.
8117 * config/mips/tm-tx39l.h: Delete file.
8118 * config/mips/tm-vr4300el.h: Delete file.
8119 * config/mips/tm-vr4xxxel.h: Delete file.
8120 * config/mips/tm-vr4300.h: Delete file.
8121 * config/mips/tm-vr4100.h: Delete file.
8122 * config/mips/tm-vr4xxx.h: Delete file.
8123 * config/mips/tm-vr5000.h: Delete file.
8124 * config/mips/tm-embedl64.h: Delete file.
8125 * config/mips/tm-embedl.h: Delete file.
8126 * config/mips/tm-embed64.h: Delete file.
8127 * config/mips/tm-bigmips64.h: Delete file.
8128 * config/mips/tm-bigmips.h: Delete file.
8129
8130 2003-06-01 Mark Kettenis <kettenis@gnu.org>
8131
8132 Fix gdb/1216.
8133 * shnbsd-nat.c: Include "sh-tdep.h".
8134
8135 From Richard Henderson <rth@redhat.com>:
8136 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
8137
8138 2003-05-31 Andrew Cagney <cagney@redhat.com>
8139
8140 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
8141 forward declaration.
8142 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8143 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8144 (mips_find_saved_regs): Use set_reg_offset.
8145 (mips_frame_init_saved_regs): Delete function.
8146 (mips_pop_frame): Call mips_find_saved_regs instead of
8147 DEPRECATED_FRAME_INIT_SAVED_REGS.
8148
8149 2003-05-31 Andrew Cagney <cagney@redhat.com>
8150
8151 * mips-tdep.c (mips_gdbarch_init): Do not set
8152 deprecated_max_register_raw_size, register_virtual_size, and
8153 deprecated_max_register_virtual_size.
8154
8155 2003-05-31 Mark Kettenis <kettenis@gnu.org>
8156
8157 * i386-tdep.c: Include "dwarf2-frame.h".
8158 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
8159 * Makefile.in (i386-tdep.o): Update dependencies.
8160
8161 * dwarf2-frame.c, dwarf2-frame.h: New files.
8162 * Makefile.in (SFILES): Add dwarf2-frame.c.
8163 (dwarf2_frame_h): Define.
8164 (COMMON_OBS): Add dwarf2-frame.o.
8165 (dwarf2-frame.o): Add dependencies.
8166
8167 2003-05-31 Andreas Jaeger <aj@suse.de>
8168
8169 * x86-64-linux-nat.c: Fix comment.
8170
8171 2003-05-31 Mark Kettenis <kettenis@gnu.org>
8172
8173 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
8174 function signature.
8175
8176 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
8177 have a sigcontext_addr handler.
8178 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
8179 sigcontext_addr handler.
8180
8181 2003-05-31 Andrew Cagney <cagney@redhat.com>
8182
8183 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
8184 (print_fp_register_row): Replace do_fp_register_row.
8185 (mips_print_fp_register): Add "file" and "frame" parameters.
8186 (mips_print_register): Add "file" and "frame" parameters.
8187 (mips_print_registers_info): Replace mips_do_registers_info.
8188 (mips_gdbarch_init): Set print_registers_info instead of
8189 deprecated_do_registers_info.
8190 (mips_read_fp_register_single): Add "frame" parameter.
8191 (mips_read_fp_register_double): Add "frame" parameter.
8192
8193 2003-05-31 Mark Kettenis <kettenis@gnu.org>
8194
8195 * i386-tdep.c (i386_register_name): Check for MMX registers first.
8196 Fixes a bug where GDB would print the wrong register names for
8197 targets without SSE.
8198
8199 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
8200 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8201 registers.
8202
8203 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
8204 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
8205 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8206 TDEP->sc_sp_offset.
8207
8208 From Michal Ludvig <mludvig@suse.cz>:
8209 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
8210 and `sc_num_regs'.
8211 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8212 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8213 I386_ST0_REGNUM): Move here from...
8214 * i386-tdep.c: ... here.
8215 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
8216 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8217 registers if possible.
8218 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
8219 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
8220 Remove variables.
8221 (i386bsd_sc_reg_offset): New variable.
8222 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
8223 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8224 TDEP->sc_sp_offset.
8225 (i386fbsd_sc_reg_offset): New variable.
8226 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8227 TDEP->sc_num_regs.
8228 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
8229 variables.
8230 (i386fbsd4_sc_reg_offset): New variable.
8231 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
8232 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8233 TDEP->sc_sp_offset.
8234 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
8235 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
8236 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
8237 Remove variables.
8238 (i386nbsd_sc_reg_offset): New variable.
8239 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
8240 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8241 TDEP->sc_sp_offset.
8242 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
8243 Remove variables.
8244 (i386obsd_sc_reg_offset): New variable.
8245 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
8246 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8247 TDEP->sc_sp_offset.
8248 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
8249 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
8250 for frame pointer offset in `struct sigcontext'.
8251
8252 2003-05-31 Andrew Cagney <cagney@redhat.com>
8253
8254 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
8255 architecture methods call_dummy_words, sizeof_call_dummy_words,
8256 push_return_address, store_struct_return, and fix_call_dummy. Set
8257 push_dummy_call instead of deprecated_push_arguments.
8258 (mips_store_struct_return): Delete function.
8259 (mips_fix_call_dummy): Delete function.
8260 (mips_push_return_address): Delete function.
8261 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8262 RA_REGNUM and T9_REGNUM.
8263 (mips_n32n64_push_dummy_call): Ditto for
8264 mips_n32n64_push_arguments.
8265 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8266 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8267
8268 2003-05-31 Andrew Cagney <cagney@redhat.com>
8269
8270 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
8271 "dummy_addr" to "bp_addr".
8272 * infcall.c (call_function_by_hand): Pass "funaddr" to
8273 gdbarch_push_dummy_call.
8274 * gdbarch.h, gdbarch.c: Re-generate.
8275 * i386-tdep.c (i386_push_dummy_call): Update.
8276 * arm-tdep.c (arm_push_dummy_call): Update.
8277 * d10v-tdep.c (d10v_push_dummy_call): Update.
8278
8279 2003-05-31 Mark Kettenis <kettenis@gnu.org>
8280
8281 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8282 variable declarations.
8283 (x86_64_register_number, x86_64_register_name): Remove prototypes.
8284 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8285 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8286 x86_64_init_frame_pc, x86_64_init_frame_pc,
8287 x86_64_function_has_prologue): Remove prototypes.
8288 (X86_64_NUM_GREGS): New define.
8289 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8290 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
8291 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8292 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8293 XMM1_REGNUM): Remove defines.
8294 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8295 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8296 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8297 X86_64_XMM1_REGNUM): New defines.
8298 (struct x86_64_register_info): Renamed from `struct
8299 register_info'. Remove `size' member.
8300 (x86_64_register_info_table): Remove variable.
8301 (x86_64_register_info): New variable.
8302 (X86_64_NUM_REGS): New define.
8303 (X86_64_NUM_GREGS): Remove define.
8304 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8305 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8306 Remove variables.
8307 (x86_54_dwarf2_reg_to_regnum): Remove function.
8308 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8309 (x86_64_dwarf_reg_to_regnum): New function.
8310 (x86_64_register_name): Rewrite.
8311 (x86_64_register_raw_size): Remove function.
8312 (x86_64_register_byte_table): Remove variable.
8313 (x86_64_register_byte): Remove function.
8314 (x86_64_register_virtual_type): Remove function.
8315 (x86_64_register_type): New function.
8316 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8317 x86_64_register_convert_to_raw): Remove functions.
8318 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8319 (x86_64_use_struct_convention): Make static. Adjust for renamed
8320 defines.
8321 (x86_64_frame_init_saved_regs): Remove function.
8322 (x86_64_push_arguments): Make static. Change to accept a regcache
8323 as argument.
8324 (x86_64_store_return_value, x86_64_extract_return_value): Make
8325 static. Rewrite based on i386 counterparts.
8326 (x86_64_push_dummy_call): New function.
8327 (X86_64_NUM_SAVED_REGS): New define.
8328 (x86_64_register_number): Remove function.
8329 (x86_64_store_struct_return): Remove function.
8330 (x86_64_frameless_function_invocation,
8331 x86_64_function_has_prologue): Remove functions.
8332 (PROLOG_BUFSIZE): Remove define.
8333 (struct x86_64_frame_cache): New structure.
8334 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8335 x86_64_frame_cache, x86_64_frame_this_id,
8336 x86_64_frame_prev_register, x86_64_frame_p,
8337 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8338 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8339 functions.
8340 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8341 variables.
8342 (x86_64_skip_prologue): Rewrite in terms of
8343 x86_64_analyze_prologue.
8344 (x86_64_frame_base_address): New function.
8345 (x86_64_frame_base): New variable.
8346 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8347 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
8348 set deprecated_fp_regnum, deprecated_register_size,
8349 deprecated_register_bytes, register_raw_size, register_byte,
8350 register_virtual_type, register_convertiable,
8351 register_convert_to_virtual, convert_to_raw,
8352 deprecated_get_saved_register, deprecated_target_read_fp,
8353 deprecated_push_arguments, deprecated_push_return_address,
8354 deprecated_pop_frame, deprecated_store_struct_return,
8355 deprecated_frame_init_saved_regs, deprecated_frame_chain,
8356 frameless_function_invocation, deprecated_frame_saved_pc,
8357 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8358 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8359 deprecated_init_frame_pc and virtual_frame_pointer. Call
8360 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8361 and x86_64_frame_p. Call frame_base_set_default to register
8362 x86_64_frame_base.
8363 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8364 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8365 (_initialize_x86_64_tdep): Remove function.
8366 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8367 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8368 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8369 define.
8370 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8371 (x86_64_linux_sigcontext_addr): Rewrite.
8372 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8373 x86_64_linux_frame_saved_pc): Remove functions.
8374 (x86_64_linux_pc_in_sigtramp): Renamed from
8375 x86_64_linux_in_sigtramp. Try harder to recognize a signal
8376 trampoline.
8377 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8378 Remove_functions.
8379 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
8380 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8381 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8382 (x86_64_regmap): Rename to regmap.
8383 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8384 x86_64_num_gregs.
8385 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
8386 x86_64_regmap.
8387 (x86_64_fxsave_offset): Remove function.
8388 (supply_fpregset): Simply call x86_64_supply_fxsave.
8389 (fill_fpregset): Simply call x86_64_fill_fxsave.
8390 (fetch_inferior_registers, store_inferior_registers): Avoid
8391 asignment in if-statement.
8392 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8393 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8394 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8395 (fetch_core_registers): Remove function.
8396 (linux_elf_core_fns): Remove.
8397 (offsetoff): Don't define.
8398 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8399 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8400 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8401 add core-regset.o.
8402 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8403 protection against multiple includes instead of NM_X86_64_h. Add
8404 various comments. Include "config/nm-linux.h". Don't include
8405 <signal.h>.
8406 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8407 GET_THREAD_SIGNALS): Remove defines.
8408 (x86_64_register_u_addr, kernel_u_size,
8409 lin_thread_get_thread_signals): Remove prototypes.
8410 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8411 [HAVE_LINK_H]: Don't include "solib.h".
8412 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8413 * config/i386/tm-x86-64linux.h: Fix comments.
8414 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8415 x86-64-tdep.o): Update dependencies.
8416
8417 2003-05-30 Andrew Cagney <cagney@redhat.com>
8418
8419 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8420 Change parameter type to a "struct regcache *".
8421
8422 * gdbarch.sh: Regardless of the multi-arch level, always define
8423 the macro when not already defined.
8424 * gdbarch.h, gdbarch.c: Re-generate.
8425
8426 2003-05-30 Richard Henderson <rth@redhat.com>
8427
8428 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8429 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8430 (alpha_mdebug_frame_this_id): Likewise.
8431 (alpha_mdebug_frame_prev_register): Likewise.
8432 (alpha_mdebug_frame_base_address): Likewise.
8433 (alpha_mdebug_frame_locals_address): Likewise.
8434 (alpha_mdebug_frame_args_address): Likewise.
8435 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8436 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8437 (alpha_heuristic_frame_unwind_cache): Make static; add missing
8438 loop increment.
8439 (alpha_heuristic_frame_this_id): Make static.
8440 (alpha_heuristic_frame_prev_register): Likewise.
8441 (alpha_heuristic_frame_base_address): Likewise.
8442 * alpha-tdep.h: Update.
8443
8444 2003-05-30 Mark Kettenis <kettenis@gnu.org>
8445
8446 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8447 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8448 defenitions.
8449 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8450 * i386-tdep.c: Mark functions that are 64-bit safe as such.
8451 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8452 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8453 I386_ST0_REGNUM): New defines.
8454 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8455 codestream_get): Remove define.
8456 (codestream_next_addr, condestream_addr, condestream_buf,
8457 codestream_off, codestream_cnt): Remove variables.
8458 (codestream_fill, codestream_seek, codestream_read): Remove
8459 functions.
8460 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8461 functionality.
8462 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8463 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8464 i386_frame_saved_pc, i386_saved_pc_after_call,
8465 i386_frame_num_args, i386_frame_init_saved_regs,
8466 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8467 i386_push_arguments): Remove functions.
8468 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8469 functionality. Use i386_analyze_prologue instead of
8470 i386_get_frame_setup.
8471 (I386_NUM_SAVED_REGS): New define.
8472 (struct i386_frame_cache): New structure.
8473 (i386_alloc_frame_cache, i386_analyze_struct_return,
8474 i386_skip_probe, i386_analyze_frame_setup,
8475 i386_analyze_register_saves, i386_analyze_prologue,
8476 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8477 i386_frame_prev_register, i386_sigtramp_frame_cache,
8478 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8479 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8480 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8481 New functions.
8482 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8483 New variables.
8484 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8485 I386_EAX_REGNUM and I386_EDX_REGNUM.
8486 (i386_extract_return_value, i386_store_return_value): Use
8487 I386_ST0_REGNUM where appropriate.
8488 (i386_extract_struct_value_address): Rewrite to use extract_address.
8489 (i386_svr4_pc_in_sigtramp): Add comment.
8490 (i386_svr4_sigcontext_addr): Rewrite.
8491 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8492 TDEP->sc_sp_offset.
8493 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8494 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8495 of new defines. Set push_dummy_call, don't set
8496 deprecated_push_arguments, deprecated_push_return_address,
8497 deprecated_pop_frame. Don't set parm_boundary. Don't set
8498 deprecated_frame_chain, deprecated_frame_saved_pc,
8499 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8500 save_dummy_frame_tos, unwind_pc. Call
8501 frame_unwind_append_predicate and frame_base_set_default. Don't
8502 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8503 Don't set frameless_function_invocation. Don't set
8504 deprecated_register_bytes, deprecated_register_size,
8505 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8506 * i386-linux-tdep.c: Fix formatting in some comments.
8507 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8508 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8509 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8510 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8511 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8512 redundant parentheses.
8513 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8514 (i386_linux_sigcontext_addr): Use it. Rewrite.
8515 (find_minsym_and_objfile): Change name of second argument.
8516 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8517 changed. Use frame_pc_unwind instead of
8518 DEPRECATED_SAVED_PC_AFTER_CALL.
8519 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8520 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8521 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8522 unwinder.
8523 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8524 "dummy-frame.h".
8525 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8526 (_initialize_i386_cygwin_tdep): New prototype.
8527 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8528 deprecated_frame_chain_valid.
8529 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8530 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8531 Rely on the SVR4 defaults.
8532 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8533 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8534
8535 2003-05-30 Andrew Cagney <cagney@redhat.com>
8536
8537 * infcall.c (call_function_by_hand): Always call
8538 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8539
8540 2003-05-30 Richard Henderson <rth@redhat.com>
8541
8542 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8543 increment.
8544
8545 2003-05-29 Jim Blandy <jimb@redhat.com>
8546
8547 Use gdbarch methods for solib stuff on PowerPC Linux.
8548 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8549 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8550 show through.
8551 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8552 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8553 giving the same effect as the #definitions above.
8554
8555 2003-05-29 Adam Fedor <fedor@gnu.org>
8556
8557 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8558 (find_implementation_from_class): Replace it with the standard
8559 case i.e. do nothing.
8560
8561 2003-05-29 Richard Henderson <rth@redhat.com>
8562
8563 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8564 (alpha_linux_sigtramp_offset): Use it. Make static.
8565 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8566 update for new frame model.
8567 * alpha-mdebug-tdep.c: New file.
8568 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8569 (alpha_osf1_init_abi): Install it.
8570 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8571 (linked_proc_desc_table): Remove.
8572 (alpha_frame_past_sigtramp_frame): Remove.
8573 (alpha_dynamic_sigtramp_offset): Remove.
8574 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8575 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8576 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8577 (push_sigtramp_desc): Remove.
8578 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8579 (alpha_cannot_store_register): Likewise.
8580 (alpha_sigcontext_addr): Remove.
8581 (alpha_find_saved_regs): Remove.
8582 (alpha_frame_init_saved_regs): Remove.
8583 (alpha_init_frame_pc_first): Remove.
8584 (read_next_frame_reg): Remove.
8585 (alpha_frame_saved_pc): Remove.
8586 (alpha_saved_pc_after_call): Remove.
8587 (temp_proc_desc, temp_saved_regs): Remove.
8588 (alpha_about_to_return): Remove.
8589 (cached_proc_desc): Remove.
8590 (alpha_frame_chain): Remove.
8591 (alpha_print_extra_frame_info): Remove.
8592 (alpha_init_extra_frame_info): Remove.
8593 (alpha_frame_locals_address): Remove.
8594 (alpha_frame_args_address): Remove.
8595 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8596 (alpha_push_dummy_frame): Remove.
8597 (alpha_pop_frame): Remove.
8598 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8599 (alpha_read_insn): New.
8600 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8601 for different insn encodings.
8602 (alpha_in_lenient_prologue): Remove.
8603 (struct alpha_sigtramp_unwind_cache): New.
8604 (alpha_sigtramp_frame_unwind_cache): New.
8605 (alpha_sigtramp_register_address): New.
8606 (alpha_sigtramp_frame_this_id): New.
8607 (alpha_sigtramp_frame_prev_register): New.
8608 (alpha_sigtramp_frame_unwind): New.
8609 (alpha_sigtramp_frame_p): New.
8610 (struct alpha_heuristic_unwind_cache): New.
8611 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8612 don't count nop insns that occur between functions.
8613 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8614 heuristic_proc_desc, but without the mdebug wrapping.
8615 (alpha_heuristic_frame_this_id): New.
8616 (alpha_heuristic_frame_prev_register): New.
8617 (alpha_heuristic_frame_unwind): New.
8618 (alpha_heuristic_frame_p): New.
8619 (alpha_heuristic_frame_base_address): New.
8620 (alpha_heuristic_frame_base): New.
8621 (alpha_unwind_dummy_id): New.
8622 (alpha_unwind_pc): New.
8623 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8624 frame related deprecated initializations; install replacements.
8625 (alpha_dump_tdep): Remove.
8626 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8627 (alpha_read_insn, alpha_after_prologue,
8628 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8629 alpha_heuristic_frame_prev_register,
8630 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8631 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8632 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8633 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8634
8635 2003-05-29 Andrew Cagney <cagney@redhat.com>
8636
8637 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8638 dependant on the availability of ASSERT_FUNCTION.
8639 (ASSERT_FUNCTION): Do not define when there is no function name.
8640
8641 2003-05-29 Kevin Buettner <kevinb@redhat.com>
8642
8643 From Jimi X <jimix@watson.ibm.com>:
8644 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8645
8646 2003-05-28 Jim Blandy <jimb@redhat.com>
8647
8648 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8649 argument to ptrace to int; the system headers should give it the
8650 right type, and pointers don't fit in ints on powerpc64-*-*.
8651
8652 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8653
8654 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8655 DW_TAG_catch_block.
8656
8657 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
8658
8659 * stabsread.c (dbx_lookup_type): Make static.
8660 (read_type): Ditto.
8661 (add_undefined_type): Ditto.
8662 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8663 not export.
8664
8665 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
8666
8667 * hpread.c (hpread_has_name): Make static.
8668 (hpread_psymtab_to_symtab): Ditto.
8669 (file_exists): Ditto.
8670 (hpread_call_pxdb): Ditto.
8671 (hpread_pxdb_needed): Ditto.
8672 (hpread_quick_traverse): Ditto.
8673 (hpread_get_header): Ditto.
8674 (hpread_get_lntt): Ditto.
8675 (hpread_get_slt): Ditto.
8676 (class_of): Ditto.
8677
8678 2003-05-25 Andreas Schwab <schwab@suse.de>
8679
8680 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8681 stack_align and deprecated_extra_stack_alignment_needed.
8682 (m68k_stack_align): Delete.
8683
8684 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8685 (m68k_register_virtual_size): Likewise.
8686 (altos_skip_prologue): Remove obsolete function.
8687 (isi_frame_num_args): Likewise.
8688 (news_frame_num_args): Likewise.
8689 (m68k_fix_call_dummy): Make static.
8690 (m68k_push_dummy_frame): Likewise.
8691 (m68k_pop_frame): Likewise.
8692 (m68k_skip_prologue): Likewise.
8693 (m68k_frame_init_saved_regs): Likewise.
8694 (m68k_saved_pc_after_call): Likewise.
8695 (m68k_get_longjmp_target): Make multi-arch.
8696 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8697 structure. Register m68k_get_longjmp_target if enabled.
8698 * m68k-tdep.h (struct gdbarch_tdep): Define.
8699 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8700
8701 * Makefile.in (config.status): Also depend on configure.tgt
8702 and configure.host.
8703 (m68klinux-tdep.o): Update dependencies.
8704 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8705 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8706 (M68K_LINUX_JB_PC): Define.
8707 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8708 and take additional parameter.
8709 (m68k_linux_sigtramp_saved_pc): Update.
8710 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8711 m68k_linux_pc_in_sigtramp, in_plt_section,
8712 find_solib_trampoline_target.
8713 * config/m68k/tm-linux.h: Don't include any tm headers.
8714 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8715 (JB_ELEMENT_SIZE): Likewise.
8716 (JB_PC): Likewise.
8717 (GET_LONGJMP_TARGET): Likewise.
8718 (IN_SIGTRAMP): Likewise.
8719 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8720
8721 2003-05-25 Mark Kettenis <kettenis@gnu.org>
8722
8723 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8724 (sparc32_push_arguments): Re-implement by calling
8725 sparc32_do_push_arguments.
8726
8727 2003-05-25 Mark Kettenis <kettenis@gnu.org>
8728
8729 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8730 SPARC_O1_REGNUM): New defines.
8731 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8732 (sparc32_store_return_value): New function.
8733 (sparc_extract_struct_value_address): Rewrite to operate on a
8734 regcache.
8735 (sparc_gdbarch_init): Don't set
8736 deprecated_extract_struct_value_address. Set
8737 extract_struct_value_address instead. Don't set
8738 deprecated_extract_return_value and deprecated_store_return_value
8739 for 32-bit targets. Set extract_return_value and
8740 store_return_value instead.
8741 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
8742 DEPRECATED_EXTRACT_RETURN_VALUE,
8743 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8744 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8745 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8746 (sparc_store_return_value): Remove prototype.
8747 (sparc32_store_return_value): New prototype.
8748 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8749 Adjust prototypes.
8750
8751 2003-05-24 Mark Kettenis <kettenis@gnu.org>
8752
8753 * sparcnbsd-tdep.c: Include "gdb_string.h".
8754
8755 2003-05-23 Andrew Cagney <cagney@redhat.com>
8756
8757 * p-valprint.c (pascal_val_print): Replace extract_address with
8758 the inline equivalent extract_unsigned_integer.
8759 * jv-valprint.c (java_value_print): Ditto.
8760 * ada-valprint.c (ada_val_print_1): Ditto.
8761 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8762
8763 2003-05-23 Theodore A. Roth <troth@openavr.org>
8764
8765 * blockframe.c (frameless_look_for_prologue): Remove unused
8766 after_prologue variable.
8767
8768 2003-05-23 Mark Kettenis <kettenis@gnu.org>
8769
8770 * blockframe.c (get_pc_function_start): Rewrite to avoid
8771 asignments in if-statements.
8772
8773 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8774
8775 Committed by Elena Zannoni <ezannoni@redhat.com>.
8776 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
8777 files, don't relocate absolute symbols (and do use mst_abs).
8778
8779 2003-05-23 Andrew Cagney <cagney@redhat.com>
8780
8781 * objc-lang.c: Include "gdb_assert.h".
8782 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8783 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8784 (gdb_check, gdb_check_fatal): Delete functions.
8785 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8786 gdb_assert.
8787 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8788 * Makefile.in (objc-lang.o): Update dependencies.
8789
8790 2003-05-22 Ian Lance Taylor <ian@airs.com>
8791
8792 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8793 with fprintf_filtered, not fprintf_unfiltered.
8794
8795 2003-05-22 Andrew Cagney <cagney@redhat.com>
8796
8797 * stack.c (frame_info): Inline extract_address, replacing it with
8798 extract_unsigned_integer.
8799 * findvar.c (unsigned_pointer_to_address): Ditto.
8800 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8801 * dwarf2expr.c (dwarf2_read_address): Ditto.
8802 * frame.c (frame_pc_unwind): Update comment.
8803 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8804
8805 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8806
8807 * infptrace.c (detach): Call print_sys_errmsg rather than
8808 perror_with_name to issue warning message when errno is non-zero
8809 after calling ptrace detach.
8810
8811 2003-05-21 J. Brobecker <brobecker@gnat.com>
8812
8813 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8814 macro definitions from here...
8815 * hppa-tdep.c: ...to there.
8816
8817 2003-05-20 Kevin Buettner <kevinb@redhat.com>
8818
8819 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8820 register_ptrace_addr(). Fix all callers.
8821
8822 2003-05-21 Andreas Schwab <schwab@suse.de>
8823
8824 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8825 dependencies.
8826 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8827 end.
8828 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8829 (_initialize_m68k_linux_tdep): New function.
8830 (m68k_linux_frame_saved_pc): Make static.
8831 (m68k_linux_extract_return_value): Likewise.
8832 (m68k_linux_store_return_value): Likewise.
8833 (m68k_linux_extract_struct_value_address): Likewise.
8834 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8835 Remove.
8836 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8837 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8838 (DEPRECATED_FRAME_SAVED_PC): Remove.
8839
8840 2003-05-20 Kris Warkentin <kewarken@qnx.com>
8841
8842 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8843 regset numbering rather than our own.
8844
8845 2003-05-19 David Carlton <carlton@bactrian.org>
8846
8847 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8848
8849 2003-05-19 David Carlton <carlton@bactrian.org>
8850
8851 Partial fix for PR c++/827.
8852 * cp-support.h: Include symtab.h.
8853 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8854 * cp-namespace.c: Update contributors.
8855 (cp_lookup_symbol_nonlocal): New.
8856 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8857 (lookup_symbol_file): Ditto.
8858 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8859 * block.h: Declare block_scope, block_using, block_global_block.
8860 * block.c (block_scope): New.
8861 (block_using, block_global_block): Ditto.
8862 * Makefile.in (cp_support_h): Depend on symtab_h.
8863 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8864
8865 2003-05-19 David Carlton <carlton@bactrian.org>
8866
8867 * language.h (struct language_defn): Add 'la_value_of_this'
8868 and 'la_lookup_symbol_nonlocal' members.
8869 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8870 lookup_symbol_static, lookup_symbol_global,
8871 lookup_symbol_aux_block.
8872 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8873 if we should search fields of this and how to do static/global
8874 lookup.
8875 (lookup_symbol_aux_block): Make extern.
8876 (basic_lookup_symbol_nonlocal): New.
8877 (lookup_symbol_static, lookup_symbol_global): Ditto.
8878 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8879 'la_lookup_symbol_nonlocal' members.
8880 * c-lang.c (c_language_defn, cplus_language_defn)
8881 (asm_language_defn, minimal_language_defn): Ditto.
8882 * jv-lang.c (java_language_defn): Ditto.
8883 * language.c (unknown_language_defn, auto_language_defn)
8884 (local_language_defn): Ditto.
8885 * m2-lang.c (m2_language_defn): Ditto.
8886 * objc-lang.c (objc_language_defn): Ditto.
8887 * scm-lang.c (scm_language_defn): Ditto.
8888 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8889 * p-lang.c (pascal_language_defn): Ditto for both.
8890 * Makefile.in (f-lang.o): Depend on value_h.
8891 (p-lang.o): Ditto.
8892
8893 2003-05-19 David Carlton <carlton@bactrian.org>
8894
8895 * block.h: Declare block_static_block.
8896 * block.c (block_static_block): New.
8897 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8898 lookup_symbol_aux_local, calling block_static_block instead.
8899 (lookup_symbol_aux_local): Delete 'static_block' argument.
8900
8901 2003-05-19 David Carlton <carlton@bactrian.org>
8902
8903 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8904
8905 2003-05-19 Michal Ludvig <mludvig@suse.cz>
8906
8907 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8908 register numbers mapping.
8909
8910 2003-05-18 Adam Fedor <fedor@gnu.org>
8911
8912 * symtab.c (completion_list_objc_symbol): New function.
8913 (make_symbol_completion_list): Use it to add ObjC symbols
8914 when looking though the list.
8915 (language_search_unquoted_string): New function.
8916 (make_file_symbol_completion_list): Use it.
8917
8918 2003-05-18 Andreas Schwab <schwab@suse.de>
8919
8920 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8921 dependencies.
8922 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8923 as m68k_linux_extract_return_value.
8924 (DEPRECATED_STORE_RETURN_VALUE): Define as
8925 m68k_linux_store_return_value.
8926 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8927 m68k_linux_extract_struct_value_address.
8928 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8929 get_next_frame, get_frame_base, get_frame_pc.
8930 (m68k_linux_frame_saved_pc): Use get_frame_base.
8931 (m68k_linux_extract_return_value): New function.
8932 (m68k_linux_store_return_value): New function.
8933 (m68k_linux_extract_struct_value_address): New function.
8934 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8935
8936 * c-exp.y (typebase): Remove duplicate occurence of
8937 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8938 of lookup_signed_typename.
8939
8940 2003-05-18 Mark Kettenis <kettenis@gnu.org>
8941
8942 * dwarf2loc.c (find_location_expression): Change type of second
8943 argument to `size_t *'.
8944 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8945 for size variable.
8946
8947 2003-05-18 David Carlton <carlton@bactrian.org>
8948
8949 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8950 'linkage_name'. Add comment.
8951 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8952 'linkage_name'.
8953 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8954 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8955 (lookup_block_symbol): Ditto.
8956
8957 2003-05-16 Andrew Cagney <cagney@redhat.com>
8958
8959 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8960 * gdbarch.h, gdbarch.c: Re-generate.
8961 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8962 * TODO (REGISTER_BYTES): Delete reference.
8963 * alpha-tdep.c (alpha_gdbarch_init): Update.
8964 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8965 * x86-64-tdep.c (x86_64_init_abi): Update.
8966 * vax-tdep.c (vax_gdbarch_init): Update.
8967 * v850-tdep.c (v850_gdbarch_init): Update.
8968 * sparc-tdep.c (sparc_gdbarch_init): Update.
8969 * sh-tdep.c (sh_gdbarch_init): Update.
8970 * s390-tdep.c (s390_gdbarch_init): Update.
8971 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8972 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8973 (ns32k_gdbarch_init_32382): Update.
8974 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8975 * mcore-tdep.c (mcore_gdbarch_init): Update.
8976 * m68k-tdep.c (m68k_gdbarch_init): Update.
8977 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8978 * ia64-tdep.c (ia64_gdbarch_init): Update.
8979 * i386-tdep.c (i386_gdbarch_init): Update.
8980 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8981 * hppa-tdep.c (hppa_gdbarch_init): Update.
8982 * h8300-tdep.c (h8300_gdbarch_init): Update.
8983 * frv-tdep.c (frv_gdbarch_init): Update.
8984 * cris-tdep.c (cris_gdbarch_init): Update.
8985 * avr-tdep.c (avr_gdbarch_init): Update.
8986 * arm-tdep.c (arm_gdbarch_init): Update.
8987 * sparc-tdep.c (sparc_pop_frame): Update.
8988 * rs6000-tdep.c (rs6000_pop_frame): Update.
8989 * remote.c (init_remote_state): Update.
8990 (remote_prepare_to_store): Update.
8991 * remote-vx.c (vx_prepare_to_store): Update.
8992 * remote-sds.c (sds_fetch_registers): Update.
8993 (sds_prepare_to_store): Update.
8994 * remote-array.c: Update.
8995 * regcache.c (init_legacy_regcache_descr): Update.
8996 (init_regcache_descr): Update.
8997 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8998 (mips_o64_extract_return_value): Update.
8999 * irix5-nat.c (fetch_core_registers): Update.
9000 * irix4-nat.c (fetch_core_registers): Update.
9001 * i386-tdep.h: Update.
9002 * hppa-tdep.c (pa_do_registers_info): Update.
9003 (pa_do_strcat_registers_info): Update.
9004 * cris-tdep.c (cris_register_bytes_ok): Update.
9005 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
9006 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
9007 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
9008 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
9009 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
9010 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
9011 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
9012 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
9013 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
9014 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
9015 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
9016 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
9017 (REGISTER_BYTES_OK): Update.
9018 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
9019 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
9020
9021 2003-05-16 Ian Lance Taylor <ian@airs.com>
9022
9023 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
9024 (vax_print_insn, print_insn_arg): Remove static functions.
9025 (vax_gdbarch_init): Call set_gdbarch_print_insn with
9026 print_insn_vax from opcodes library.
9027 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
9028
9029 2003-05-15 Andrew Cagney <cagney@redhat.com>
9030
9031 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
9032 * target.h (memory_breakpoint_from_pc): Delete declaration.
9033 * mem-break.c (memory_breakpoint_from_pc): Delete function.
9034 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
9035 * monitor.c (monitor_insert_breakpoint): Use
9036 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
9037 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
9038 * gdbarch.h, gdbarch.c: Re-generate.
9039 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
9040 (sparc_gdbarch_init): Set breakpoint_from_pc to
9041 sparc_breakpoint_from_pc.
9042 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
9043 (BREAKPOINT_FROM_PC): Define.
9044 (sparc_breakpoint_from_pc): Declare.
9045 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
9046 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
9047 (BREAKPOINT_FROM_PC): Define.
9048 (BREAKPOINT): Delete macro.
9049 * target.h: Update comment.
9050 * s390-tdep.c (s390_gdbarch_init): Update comments.
9051 * remote.c: Update comments.
9052 * remote-mips.c: Update comments.
9053 * proc-api.c (write_with_trace): Do not check for a breakpoint.
9054 * mem-break.c: Update comment.
9055 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
9056 (ia64_memory_insert_breakpoint): Update.
9057 * config/sparc/tm-sparc.h: Update comment.
9058 * config/pa/tm-hppa64.h: Update comment.
9059 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9060 (rs6000_breakpoint_from_pc): Update.
9061 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9062 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
9063 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
9064 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
9065 (mips_breakpoint_from_pc): Update.
9066 (mips_dump_tdep): Update.
9067
9068 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
9069 * minsyms.c (lookup_minimal_symbol): Inline
9070 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
9071
9072 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
9073 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9074 * p-lang.c (pascal_printstr): Ditto.
9075 * objc-lang.c (objc_printstr): Ditto.
9076 * m2-lang.c (m2_printstr): Ditto.
9077 * jv-valprint.c (java_print_value_fields): Ditto.
9078 * f-lang.c (f_printstr): Ditto.
9079 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
9080 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
9081 for repeat_count_threshold.
9082 * Makefile.in (cp-valprint.o): Update dependencies.
9083
9084 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
9085
9086 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
9087 (examine_prologue): Support looking through leaf functions, knowing
9088 they start with mov r2,r12. Support skipping over indirect stores
9089 of the input registers. Upon hitting a non-nop branch instruction
9090 or predicated instruction, bail out by setting lim_pc to the current
9091 pc value in the loop. At the end, if the lim_pc value is still
9092 beyond our calculated value and we have trust_limit set,
9093 use the lim_pc value.
9094
9095 2003-05-15 Andrew Cagney <cagney@redhat.com>
9096
9097 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
9098 generic_find_dummy_frame.
9099 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
9100 (deprecated_generic_find_dummy_frame): Update.
9101 (deprecated_read_register_dummy): Update.
9102 * frame.c (deprecated_generic_get_saved_register): Update.
9103
9104 2003-05-15 Theodore A. Roth <troth@openavr.org>
9105
9106 * avr-tdep.c (avr_breakpoint_from_pc): New function.
9107 (avr_gdbarch_init): Set breakpoint_from_pc method.
9108
9109 2003-05-15 Andrew Cagney <cagney@redhat.com>
9110
9111 * regcache.c (build_regcache): Set deprecated_register_valid
9112 directly.
9113 (deprecated_grub_regcache_for_register_valid): Delete function.
9114 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
9115 declaration.
9116
9117 2003-05-15 David Carlton <carlton@bactrian.org>
9118
9119 Committed by Elena Zannoni <ezannoni@redhat.com>
9120 * symtab.c (lookup_symbol_aux): Delete calls to
9121 lookup_symbol_aux_minsyms.
9122 (lookup_symbol_aux_minsyms): Comment out function and
9123 prototype. Delete lookup by mangled name.
9124
9125 2003-05-14 Kevin Buettner <kevinb@redhat.com>
9126
9127 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
9128 correctly indicate an empty stack and ``stack_allocated'' to the
9129 indicate the number of elements initially allocated.
9130 (dwarf_expr_grow_stack): Simplify method for computing new
9131 stack size. Don't loop infinitely if ``stack_len'' is zero.
9132 (execute_stack_op): Move ``ctx->in_reg'' initialization
9133 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
9134 be used in conjuction with DW_OP_piece. Revise error message
9135 accordingly.
9136
9137 2003-05-14 Theodore A. Roth <troth@openavr.org>
9138
9139 * MAINTAINERS: Update my email address.
9140 * avr-tdep.c: Ditto.
9141
9142 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
9143
9144 * symtab.h (enum domain_enum): Rename from namespace_enum.
9145 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
9146 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
9147 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
9148 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
9149 TYPES_NAMESPACE, METHODS_NAMESPACE.
9150 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
9151 (struct symbol, struct partial_symbol): Rename field
9152 'namespace_enum namespace' to 'domain_enum domain'.
9153 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
9154 Delete old define kludge for namespace.
9155
9156 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
9157 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
9158 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
9159 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
9160 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
9161 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
9162 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
9163 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
9164 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
9165 occurrences of the above.
9166
9167 2003-05-14 Ian Lance Taylor <ian@airs.com>
9168
9169 * Makefile.in (install-only): Use $(SHELL) when running
9170 mkinstalldirs.
9171
9172 2003-05-13 Ian Lance Taylor <ian@airs.com>
9173
9174 * MAINTAINERS (write after approval): Add myself.
9175
9176 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
9177 second and third arguments.
9178 * ser-tcp.c (_initialize_ser_tcp): Likewise.
9179 * ser-unix.c (_initialize_ser_hardwire): Likewise.
9180
9181 2003-05-13 Andrew Cagney <cagney@redhat.com>
9182
9183 * defs.h (store_address): Delete declaration.
9184 findvar.c (store_address): Delete function.
9185 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
9186 store_unsigned_integer.
9187 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
9188 * v850-tdep.c (v850_push_arguments): Ditto.
9189 * sparc-tdep.c (sparc_get_saved_register): Ditto.
9190 * sh-tdep.c (sh64_get_saved_register): Ditto.
9191 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
9192 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
9193 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
9194 (mips_get_saved_register): Ditto.
9195 * ia64-tdep.c (ia64_get_saved_register): Ditto.
9196 (find_func_descr, ia64_push_arguments): Ditto.
9197 * i386-tdep.c (i386_push_arguments): Ditto.
9198 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9199 * frv-tdep.c (frv_push_arguments): Ditto.
9200 * frame.c (legacy_saved_regs_prev_register): Ditto.
9201 (deprecated_generic_get_saved_register): Ditto.
9202 * findvar.c (unsigned_address_to_pointer): Ditto.
9203 * dwarf2read.c (dwarf2_const_value): Ditto.
9204 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
9205 * alpha-tdep.c (alpha_push_arguments): Ditto.
9206
9207 2003-05-12 J. Brobecker <brobecker@gnat.com>
9208
9209 * NEWS: Mention that the hppa-hpux port has been partially
9210 multiarched (32bit ABIT only, so far).
9211
9212 2003-05-11 Andrew Cagney <cagney@redhat.com>
9213
9214 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
9215 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
9216 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
9217 sim/testsuite/sim/arm/misaligned2.ms, and
9218 sim/testsuite/sim/arm/misaligned3.ms.
9219 * disasm.h (struct ui_file): Add opaque struct declaration.
9220 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
9221 * frame.h (struct ui_file): Ditto.
9222
9223 2003-05-11 Mark Kettenis <kettenis@gnu.org>
9224
9225 * value.h: Pretty print.
9226
9227 2003-05-10 Mark Kettenis <kettenis@gnu.org>
9228
9229 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9230
9231 2003-05-08 Andrew Cagney <cagney@redhat.com>
9232
9233 * regcache.h (max_register_size): Delete declaration.
9234 * regcache.c (max_register_size): Delete function.
9235 (struct regcache_descr): Delete field "max_register_size".
9236 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
9237 registers fit in MAX_REGISTER_SIZE.
9238 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
9239 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
9240 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
9241 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
9242 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
9243 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
9244 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
9245 * dve3900-rom.c, hppa-tdep.c: Ditto.
9246
9247 2003-05-08 David Carlton <carlton@math.stanford.edu>
9248
9249 * valops.c (push_word): Fix typo.
9250
9251 2003-05-08 Andrew Cagney <cagney@redhat.com>
9252
9253 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
9254 * gdbarch.h: Re-generate.
9255 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
9256 (legacy_max_register_raw_size): Delete declaration.
9257 * regcache.c (legacy_max_register_raw_size): Delete function.
9258 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
9259 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
9260 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
9261 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9262 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9263 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9264 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9265 * findvar.c, dwarf2cfi.c: Ditto.
9266
9267 2003-05-08 Andrew Cagney <cagney@redhat.com>
9268
9269 * mips-tdep.c (read_signed_register): New function, moved to here
9270 from "regcache.c".
9271 (read_signed_register_pid): Ditto.
9272 * regcache.c (read_signed_register_pid): Delete function, moved to
9273 "mips-tdep.c".
9274 (read_signed_register): Ditto.
9275 * regcache.h (read_signed_register): Delete declaration.
9276 (read_signed_register_pid): Delete declaration.
9277
9278 2003-05-08 Andrew Cagney <cagney@redhat.com>
9279
9280 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9281 * gdbarch.h: Re-generate.
9282 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9283 (legacy_max_register_virtual_size): Delete declaration.
9284 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9285 * d10v-tdep.c (d10v_print_registers_info): Ditto.
9286 * tracepoint.c (memrange_sortmerge): Ditto.
9287 * sparc-tdep.c (sparc_print_registers): Ditto.
9288 * regcache.c (legacy_max_register_virtual_size): Delete function.
9289
9290 2002-05-08 J. Brobecker <brobecker@gnat.com>
9291
9292 * fork-child.c (escape_bang_in_quoted_argument): New function.
9293 (fork_inferior): Escape '!' characters in quoted arguments
9294 only when needed.
9295
9296 2003-05-08 J. Brobecker <brobecker@gnat.com>
9297
9298 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9299 the language of the CU is not currently supported by GDB.
9300
9301 2003-05-08 J. Brobecker <brobecker@gnat.com>
9302
9303 * defs.h (language): Add language_minimal enum value.
9304 * c-lang.c (minimal_language_defn): New language definition.
9305 (_initialize_c_language): Add the new minimal language to the list
9306 of languages known to GDB.
9307
9308 2003-05-08 Kevin Buettner <kevinb@redhat.com>
9309
9310 * frame.c (get_frame_type): Don't attempt to lazily initialize
9311 frame's unwinder for legacy frames.
9312
9313 2003-05-07 Andrew Cagney <cagney@redhat.com>
9314
9315 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9316 and "regcache" parameters.
9317 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9318
9319 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9320
9321 * dwarf2read.c (dwarf_decode_lines): Only use output of
9322 check_cu_functions() when calling record_line(). Do not update
9323 the current address.
9324
9325 2003-05-07 Andrew Cagney <cagney@redhat.com>
9326
9327 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9328 code.
9329
9330 2003-05-07 Jim Blandy <jimb@redhat.com>
9331
9332 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9333 'maint info symtabs' and 'maint info psymtabs'.
9334 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9335 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9336 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9337 Declarations updated.
9338 * maint.c (maintenance_list_command): Delete.
9339 (_initialize_maint_cmds): Update calls to add_cmd.
9340 * gdbcmd.h (maintenancelistlist): Delete declaration.
9341 * cli/cli-cmds.c (maintenancelistlist): Delete.
9342 (init_cmd_lists): Don't initialize it.
9343 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9344
9345 2003-05-07 Andrew Cagney <cagney@redhat.com>
9346
9347 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9348 "regcache".
9349 (d10v_print_registers_info): Update.
9350 (d10v_dmap_register, d10v_imap_register): Delete functions.
9351 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9352 and "imap_register".
9353 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9354 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9355 * arch-utils.c (generic_remote_translate_xfer_address): Add
9356 "regcache" and "gdbarch" parameters.
9357 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9358 parameter. Change class to multi-arch.
9359 * gdbarch.h, gdbarch.c: Re-generate.
9360 * remote.c (remote_xfer_memory): Use
9361 gdbarch_remote_translate_xfer_address.
9362
9363 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9364
9365 * infrun.c (prev_pc): Move declaration ahead of proceed().
9366 (proceed): Refresh prev_pc value before resuming.
9367 (stop_stepping): Remove code to refresh prev_pc.
9368
9369 2003-05-06 Kris Warkentin <kewarken@qnx.com>
9370
9371 * nto-tdep.c: Removed stray comment.
9372
9373 2003-05-06 Kris Warkentin <kewarken@qnx.com>
9374
9375 * i386-nto-tdep.c: Fix old K&R function definitions.
9376 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9377 Also change add_show_from_set() call to add_setshow_cmd().
9378 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9379
9380 2003-05-05 Andrew Cagney <cagney@redhat.com>
9381
9382 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9383 (fprint_dummy_frames): New function.
9384 (maintenance_print_dummy_frames): New function.
9385 (_initialize_dummy_frame): Add command "maint print dummy-frames".
9386 * frame.c (fprint_frame_id): Make global.
9387 * frame.h (fprint_frame_id): Declare.
9388 * Makefile.in (dummy-frame.o): Update dependencies.
9389
9390 2003-05-05 Andrew Cagney <cagney@redhat.com>
9391
9392 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9393 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9394 SIZEOF_CALL_DUMMY_WORDS.
9395 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9396 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9397 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9398 CALL_DUMMY_BREAKPOINT_OFFSET.
9399 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9400 CALL_DUMMY_START_OFFSET.
9401 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9402 * gdbarch.h, gdbarch.c: Re-generate.
9403 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9404 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9405 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9406 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9407 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9408 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9409 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9410 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9411 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9412 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9413 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9414 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9415 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9416 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9417 * config/sparc/tm-sparc.h: Update.
9418
9419 2003-05-05 Kris Warkentin <kewarken@qnx.com>
9420
9421 * configure.tgt: Add i[3456]86-*-nto*.
9422 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
9423 * nto-tdep.c: New file. Neutrino target support routines.
9424 * nto-tdep.h: New file. Neutrino target header.
9425 * config/tm-qnxnto.h: New file.
9426 * config/i386/i386nto.mt: New file.
9427 * config/i386/tm-i386nto.h: New file.
9428
9429 2003-05-04 Andrew Cagney <cagney@redhat.com>
9430
9431 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9432 (load_infrun_state): Ditto.
9433 (struct thread_info): Drop "prev_func_name" field.
9434 * thread.c (load_infrun_state): Update.
9435 (save_infrun_state): Update.
9436 * infrun.c (prev_func_name): Delete variable.
9437 (init_wait_for_inferior): Do not clear prev_func_name.
9438 (stop_stepping, keep_going, context_switch): Do not swap
9439 prev_func_name.
9440 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9441 instead of PC_IN_SIGTRAMP.
9442
9443 2003-05-04 Andrew Cagney <cagney@redhat.com>
9444
9445 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9446 REGISTER_BYTE with register_offset_hack.
9447 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9448 that REGISTER_BYTE is consistent with the regcache.
9449 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9450 * gdbarch.h, gdbarch.c: Regenerate.
9451
9452 2003-05-04 Mark Kettenis <kettenis@gnu.org>
9453
9454 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9455 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9456
9457 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9458
9459 2003-05-03 J. Brobecker <brobecker@gnat.com>
9460
9461 From Thierry Schneider <tpschneider1@yahoo.com>
9462 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9463 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9464 (mi-cmd-symbol.o): Add rule.
9465
9466 2003-05-03 Andrew Cagney <cagney@redhat.com>
9467
9468 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9469 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9470 * gdbarch.h, gdbarch.c: Re-generate.
9471 * d10v-tdep.c (d10v_push_dummy_code): New function.
9472 (d10v_gdbarch_init): Set push_dummy_code.
9473 * infcall.c (legacy_push_dummy_code): New function.
9474 (generic_push_dummy_code): New function.
9475 (push_dummy_code): New function.
9476 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9477 instead of dummy_addr, to push_dummy_call. Move call to
9478 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9479 switch.
9480 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9481
9482 2003-05-03 Andrew Cagney <cagney@redhat.com>
9483
9484 * disasm.h (print_insn): Declare.
9485 * disasm.c (init_gdb_disassemble_info): New function.
9486 (gdb_disassembly): Call init_gdb_disassemble_info.
9487 (gdb_print_insn): New function.
9488 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9489 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9490 * mcore-tdep.c: Include "disasm.h"
9491 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9492 * d10v-tdep.c: Include "disasm.h".
9493 (display_trace): Call gdb_print_insn, instead of print_insn.
9494 (print_insn): Delete function.
9495 * printcmd.c: Include "disasm.h".
9496 (print_insn): Delete function.
9497 (print_formatted): Call gdb_print_insn, instead of print_insn.
9498 * Makefile.in (printcmd.o): Update dependencies.
9499 (mcore-tdep.o, d10v-tdep.o): Ditto.
9500
9501 2003-05-02 Andrew Cagney <cagney@redhat.com>
9502
9503 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9504 PC_REGNUM, re-indent.
9505 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9506 PC_REGNUM isn't set.
9507
9508 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9509 * gdbarch.h, gdbarch.c: Re-generate.
9510 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9511 register_virtual_size, pc_regnum, or register_bytes.
9512 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9513 (d10v_register_type): Use D10V_PC_REGNUM.
9514 (d10v_print_registers_info, d10v_read_pc): Ditto.
9515 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9516 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9517
9518 2003-05-02 David Carlton <carlton@bactrian.org>
9519
9520 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9521 the name with mstrsave.
9522
9523 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
9524
9525 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9526 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9527 (host_charset_name, target_charset_name): New vars for use by
9528 set/show commands.
9529 (host_charset_enum, target_charset_enum): New enums for set/show
9530 commands.
9531 (set_charset_sfunc, set_host_charset_sfunc,
9532 set_target_charset_sfunc): New functions.
9533 (set_host_charset, set_target_charset): Make static.
9534 (list_charsets, set_host_charset_command,
9535 set_target_charset_command): Delete functions.
9536 (show_charset_command): Rewrite as....
9537 (show_charset): Hook this up with the set/show command mechanism.
9538 (_initialize_charset): Change names of charsets to match the
9539 set/show enums. Use host_charset_name and target_charset_name.
9540 Use set/show mechanism for charset, host-charset, target-charset
9541 commands. Do not make 'show host-charset' and 'show
9542 target-charset' be aliases of 'show charset'.
9543
9544 * charset.h (set_host_charset, set_target_charset): Don't export,
9545 they are not used outside the file.
9546
9547 2003-05-01 Andrew Cagney <cagney@redhat.com>
9548
9549 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9550 (gdb_disassembly): Make "di" non static, always initialize and
9551 cleanup. Always use dis_asm_read_memory.
9552 (gdb_dis_asm_read_memory): Delete function.
9553
9554 2003-05-01 Andrew Cagney <cagney@redhat.com>
9555
9556 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9557 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9558
9559 2003-04-30 Andrew Cagney <cagney@redhat.com>
9560
9561 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9562 "tm_print_insn_info".
9563 (TARGET_PRINT_INSN_INFO): Delete macro.
9564 (dis_asm_read_memory): Delete function declaration.
9565 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9566 (tm_print_insn_info): Delete variable definition.
9567 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9568 * gdbarch.h, gdbarch.c: Re-generate.
9569 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9570 "deprecated_tm_print_insn_info".
9571 * mcore-tdep.c (mcore_dump_insn): Ditto.
9572 * mips-tdep.c (mips_gdbarch_init): Ditto.
9573 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9574 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9575 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9576 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9577 instead of TARGET_PRINT_INSN_INFO, add comment.
9578 * s390-tdep.c (s390_get_frame_info): Instead of
9579 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9580 (s390_check_function_end, s390_is_sigreturn): Ditto.
9581 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9582 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9583 * disasm.c: Include "gdbcore.h".
9584 (_initialize_disasm): New function, initialize
9585 "deprecated_tm_print_insn_info".
9586 (deprecated_tm_print_insn_info): New variable.
9587 (dis_asm_read_memory): Moved from "corefile.c", made static.
9588 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9589 * Makefile.in (disasm.o): Update dependencies.
9590
9591 2003-04-30 Andrew Cagney <cagney@redhat.com>
9592
9593 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9594
9595 2003-04-29 Adam Fedor <fedor@gnu.org>
9596
9597 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9598 * infcall.c (find_function_addr): Make non-static.
9599 * infcall.h (find_function_addr): Declare.
9600 * Makefile.in (eval.o): Update dependencies.
9601
9602 2003-04-28 Adam Fedor <fedor@gnu.org>
9603
9604 * symtab.c (symbol_find_demangled_name): Check for and demangle
9605 ObjC symbols.
9606 (symbol_init_demangled_name): Init for language_objc as well.
9607
9608 2003-04-28 Andrew Cagney <cagney@redhat.com>
9609
9610 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9611 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9612 * gdbarch.h, gdbarch.c: Re-generate.
9613 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9614 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9615 * inferior.h (deprecated_read_fp): Rename read_fp.
9616 (generic_target_read_fp): Delete declaration.
9617 * regcache.c (generic_target_read_fp): Delete function.
9618 (deprecated_read_fp): Replace read_fp, use
9619 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9620 * d10v-tdep.c (d10v_read_fp): Delete function.
9621 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9622
9623 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9624 deprecated_target_read_fp to generic_target_read_fp.
9625 * sh-tdep.c (sh_gdbarch_init): Ditto.
9626 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9627 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9628 * frv-tdep.c (frv_gdbarch_init): Ditto.
9629
9630 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9631 deprecated_fp_regnum.
9632 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9633 * vax-tdep.c (vax_gdbarch_init): Ditto.
9634 * v850-tdep.c (v850_gdbarch_init): Ditto.
9635 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9636 * sh-tdep.c (sh_gdbarch_init): Ditto.
9637 * s390-tdep.c (s390_gdbarch_init): Ditto.
9638 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9639 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9640 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9641 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9642 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9643 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9644 * i386-tdep.c (i386_gdbarch_init): Ditto.
9645 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9646 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9647 * frv-tdep.c (frv_gdbarch_init): Ditto.
9648 * cris-tdep.c (cris_gdbarch_init): Ditto.
9649 * avr-tdep.c (avr_gdbarch_init): Ditto.
9650 * arm-tdep.c (arm_gdbarch_init): Ditto.
9651 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9652
9653 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9654 * v850-tdep.c (v850_gdbarch_init): Ditto.
9655 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9656 * sh-tdep.c (sh_gdbarch_init): Ditto.
9657 * s390-tdep.c (s390_gdbarch_init): Ditto.
9658 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9659 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9660 * mips-tdep.c (mips_gdbarch_init): Ditto.
9661 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9662 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9663 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9664 * frv-tdep.c (frv_gdbarch_init): Ditto.
9665 * avr-tdep.c (avr_gdbarch_init): Ditto.
9666 * arm-tdep.c (arm_gdbarch_init): Ditto.
9667
9668 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9669 DEPRECATED_FP_REGNUM.
9670 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9671 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9672 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9673 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9674 (sparc32_register_virtual_type): Ditto.
9675 * sh-tdep.c (sh64_frame_chain): Ditto.
9676 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9677 (sh_nofp_frame_init_saved_regs): Ditto.
9678 (sh64_nofp_frame_init_saved_regs): Ditto.
9679 (sh_fp_frame_init_saved_regs): Ditto.
9680 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9681 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9682 * procfs.c (procfs_fetch_registers): Ditto.
9683 (procfs_store_registers): Ditto.
9684 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9685 (store_inferior_registers, fetch_core_registers): Ditto.
9686 (fetch_kcore_registers, clear_regs): Ditto.
9687 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9688 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9689 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9690 * nlm/i386.c (do_status): Ditto.
9691 * mipsv4-nat.c (supply_gregset): Ditto.
9692 * mips-tdep.c: Ditto for comments.
9693 * mips-nat.c (fetch_inferior_registers): Ditto.
9694 (store_inferior_registers, fetch_core_registers): Ditto.
9695 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9696 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9697 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9698 (i386_do_pop_frame, i386_register_type): Ditto.
9699 * hppa-tdep.c (hppa_frame_chain): Ditto.
9700 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9701 (hppa_pop_frame, hppa_read_fp): Ditto.
9702 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9703 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9704 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9705 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9706 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9707 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9708 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9709 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9710 * blockframe.c: Ditto for comments.
9711 * arch-utils.h: Ditto for comments.
9712 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9713 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9714 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9715 * alpha-tdep.h: Ditto for comments.
9716 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9717 (alpha_cannot_store_register): Ditto.
9718 (alpha_push_dummy_frame): Ditto.
9719 * alpha-nat.c (supply_gregset): Ditto.
9720
9721 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9722 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9723 * config/sparc/tm-sparc.h: Update comment.
9724
9725 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9726 deprecated_read_fp instead of TARGET_READ_FP.
9727 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9728 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9729 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9730 deprecated_read_fp instead of read_fp.
9731 * s390-tdep.c (s390_push_arguments): Ditto.
9732 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9733 * frame.h: Ditto in comments.
9734 * frame.c (legacy_get_prev_frame): Ditto.
9735 * dummy-frame.c (dummy_frame_this_id): Ditto.
9736 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9737
9738 2003-04-28 Andrew Cagney <cagney@redhat.com>
9739
9740 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9741 * gdbarch.h, gdbarch.c: Re-generate.
9742 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9743 * vax-tdep.c (_initialize_vax_tdep): Update.
9744 * v850-tdep.c (_initialize_v850_tdep): Update.
9745 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9746 * s390-tdep.c (_initialize_s390_tdep): Update.
9747 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9748 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9749 * mips-tdep.c (_initialize_mips_tdep): Update.
9750 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9751 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9752 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9753 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9754 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9755 * frv-tdep.c (_initialize_frv_tdep): Update.
9756 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9757 (_initialize_cris_tdep): Update.
9758 * arch-utils.c (legacy_print_insn): Update.
9759 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9760
9761 2003-04-26 Adam Fedor <fedor@gnu.org>
9762
9763 * linespec.c (decode_objc): New function to decode ObjC calls
9764 (decode_line_1): Check for ObjC calls (using decode_objc)
9765 * Makefile (linespec.o): Update dependencies.
9766
9767 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
9768
9769 * breakpoint.h (struct breakpoint_ops): New.
9770 (struct breakpoint): Add ops member.
9771
9772 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9773 (mention): Use new breakpoint ops member.
9774 (set_raw_breakpoint): Initialize ops field to NULL.
9775 (print_exception_catchpoint, print_one_exception_catchpoint)
9776 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9777 (gnu_v3_exception_catchpoint_ops): New.
9778 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9779
9780 2003-04-25 Adam Fedor <fedor@gnu.org>
9781
9782 * Makefile.in (COMMON_OBS): Add objc-lang.o
9783
9784 2003-04-25 Andrew Cagney <cagney@redhat.com>
9785
9786 * d10v-tdep.c (print_insn): Delete function.
9787 (display_trace): Use TARGET_PRINT_INSN.
9788 (_initialize_d10v_tdep): Do not set tm_print_insn.
9789 (d10v_gdbarch_init): Set print_insn.
9790
9791 2003-04-25 Andrew Cagney <cagney@redhat.com>
9792
9793 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9794 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9795 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9796 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9797 (nr_dmap_regs, a0_regnum): ... new functions.
9798 (d10v_print_registers_info): Use a0_regnum, use register_size.
9799 (d10v_register_byte): Delete function.
9800 (d10v_register_raw_size): Delete function.
9801 (d10v_register_type): Use a0_regnum.
9802 (d10v_print_registers_info): Use a0_regnum.
9803 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9804 (d10v_gdbarch_init): Do not set register_byte or
9805 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9806 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9807 extract_address.
9808 (trace_command): Use XCALLOC.
9809 (print_insn): Delete reference to tm_print_insn.
9810 (saved_regs_unwinder): Use store_unsigned_integer instead of
9811 store_address.
9812 * frame.h (FRAME_OBSTACK_CALLOC): Define
9813
9814 2003-04-25 David Carlton <carlton@bactrian.org>
9815
9816 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9817
9818 2003-04-24 Adam Fedor <fedor@gnu.org>
9819
9820 * objc-lang.c: Include "valprint.h"
9821 * Makefile.in (objc-lang.o): Update dependencies.
9822
9823 2003-04-24 Adam Fedor <fedor@gnu.org>
9824
9825 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
9826 architecture dependant compilation and mark as unimplemented
9827 (until they get put in the gdbarch vector).
9828
9829 2003-04-23 David Carlton <carlton@bactrian.org>
9830
9831 * cp-support.c (cp_find_first_component): Accept 'operator' in
9832 more locations.
9833
9834 2003-04-23 Andrew Cagney <cagney@redhat.com>
9835
9836 * infcall.c (call_function_by_hand): Eliminate redundant
9837 indentation. Move "saved_async" and "old_cleanups" to where they
9838 are needed.
9839
9840 2003-04-23 Andrew Cagney <cagney@redhat.com>
9841
9842 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9843 and "buffer". Move the "name" code to where it is needed.
9844
9845 2003-04-23 Andrew Cagney <cagney@redhat.com>
9846
9847 * infcall.c (call_function_by_hand): Move variables "start_sp",
9848 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9849 code to ON_STACK switch branch.
9850
9851 2003-04-23 Andrew Cagney <cagney@redhat.com>
9852
9853 * infcall.c (call_function_by_hand): Make declaration of "i",
9854 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9855 lint.
9856
9857 2003-04-23 Andrew Cagney <cagney@redhat.com>
9858
9859 * infcall.c (call_function_by_hand): Delete variable
9860 "n_method_args". Localize "param_type"'s declaration to the loop
9861 that it is used. Reinstate code assigning to said variable -
9862 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9863 Rationalize code using "param_type".
9864
9865 2003-04-22 Andrew Cagney <cagney@redhat.com>
9866
9867 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9868 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9869 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9870 to DEPRECATED_PUSH_RETURN_ADDRESS.
9871
9872 2003-04-22 Kevin Buettner <kevinb@redhat.com>
9873
9874 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9875 on the DWARF2 register number prior to fetching a register.
9876
9877 2003-04-22 J. Brobecker <brobecker@gnat.com>
9878
9879 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9880 Update all the tests using SOFT_FLOAT considering the fact that
9881 this macro was always set to 0.
9882 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9883 considering the fact that this macro was always set to 0.
9884 * hppa-tdep.h (hppa_store_return_value): Likewise.
9885 (hppa_extract_return_value): Likewise.
9886
9887 2003-04-22 J. Brobecker <brobecker@gnat.com>
9888
9889 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9890 the hppa-pro target only.
9891
9892 2003-04-21 J. Brobecker <brobecker@gnat.com>
9893
9894 Ongoing multi-arch conversion effort for HP/UX:
9895 * config/pa/tm-hppa.h: Move all macro that are no longer
9896 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9897 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9898
9899 2003-04-21 J. Brobecker <brobecker@gnat.com>
9900
9901 * config/pa/tm-hppa.h: Obsolete a section that was only used
9902 for hppa-pro.
9903
9904 2003-04-21 J. Brobecker <brobecker@gnat.com>
9905
9906 Ongoing multi-arch conversion for HP/UX.
9907 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9908 if already defined (allows hppa64 to stay non-multiarched for now).
9909 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9910
9911 2003-04-21 Andrew Cagney <cagney@redhat.com>
9912
9913 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9914
9915 2003-04-21 Andrew Cagney <cagney@redhat.com>
9916
9917 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9918 "i386_num_mmx_regs".
9919
9920 2003-04-21 Andrew Cagney <cagney@redhat.com>
9921
9922 * infcall.c: New file.
9923 * infcall.h: New file.
9924 * valarith.c: Include "infcall.h".
9925 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9926 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9927 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9928 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9929 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9930 (SFILES): Add "infcall.c"
9931 (COMMON_OBS): Add "infcall.o".
9932 (infcall.o): Specify dependencies.
9933 * value.h (call_function_by_hand): Delete declaration.
9934 * inferior.h (run_stack_dummy): Delete declaration.
9935 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9936 (run_stack_dummy): Move to "infcall.c", merged into
9937 call_function_by_hand.
9938 * valops.c (call_function_by_hand): Moved to "infcall.c".
9939 (find_function_addr, value_arg_coerce): Ditto.
9940 (unwindonsignal_p, coerce_float_to_double): Ditto.
9941 (_initialize_valops): Move "set/show coerce-float-to-double", and
9942 "set/show unwindonsignal" commands to "infcall.c".
9943 * v850-tdep.c, target.h: Update comments.
9944 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9945 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9946 (sh64_init_extra_frame_info): Update comments.
9947 * mn10300-tdep.c: Update comments.
9948 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9949 * config/sparc/tm-sparc.h: Update comments.
9950 * breakpoint.h: Update comments.
9951 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9952 * arm-tdep.c: Update comment.
9953
9954 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9955
9956 * i386-tdep.c (i386_num_register_names): New variable.
9957 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9958 (MM0_REGNUM): Remove redundant parentheses in define.
9959 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9960 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9961 i386_mxcsr_regnum_p): Remove redundant parentheses.
9962 (i386_register_name): Use i386_num_register_names.
9963
9964 * i386-tdep.c (i386_extract_return_value,
9965 i386_store_return_value): Correct check for availability of
9966 floating-point registers.
9967
9968 * i386-tdep.c (i386_frame_num_args): Remove function.
9969 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9970
9971 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9972 mmx_regnum_to_fp_regnum. Adjust all callers.
9973
9974 * i386-tdep.c (i386_get_longjmp_target): Use
9975 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9976 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9977 extract_address.
9978
9979 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9980
9981 * core-regset.c: Update comments to reflect reality. Re-order
9982 includes.
9983 (fetch_core_registers): Use switch instead of if. Remove
9984 redundant prototype.
9985
9986 2003-04-18 Jim Blandy <jimb@redhat.com>
9987
9988 * s390-tdep.c (s390_frame_align): New function.
9989 (s390_gdbarch_init): Register it with the gdbarch object.
9990
9991 2003-04-17 Richard Henderson <rth@redhat.com>
9992
9993 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9994
9995 2003-04-17 Michael Snyder <msnyder@redhat.com>
9996 Karen Bennet <bennet@redhat.com>
9997
9998 Committed by Elena Zannoni <ezannoni@redhat.com>
9999 * gdb_gcore.sh: New script to create a core dump of a process.
10000
10001 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
10002
10003 * values.c (value_being_returned): Don't fetch the return
10004 value if the return type is void.
10005
10006 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
10007
10008 * thread-db.c: Reindented.
10009
10010 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
10011
10012 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
10013 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
10014 as types.
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040 2003-04-16 Kevin Buettner <kevinb@redhat.com>
10041
10042 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
10043 the size of ``long double'' to 16, instead of 8.
10044
10045 2003-04-16 Mark Kettenis <kettenis@gnu.org>
10046
10047 * i386-linux-nat.c: Add some whitespace to make things more
10048 readable.
10049 (fetch_register, store_register, fetch_inferior_registers,
10050 store_inferior_registers): Get rid of assignment in if-statement.
10051 (store_register): Fix typo in error message.
10052
10053 2003-04-16 Andrew Cagney <cagney@redhat.com>
10054
10055 * utils.c (xmmalloc): Always allocate something, matches
10056 libiberty/xmalloc's semantics.
10057 (xmrealloc, xmcalloc): Ditto.
10058
10059 2003-04-16 Andrew Cagney <cagney@redhat.com>
10060
10061 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
10062 update comments.
10063 (get_frame_type): Initialize unwind and type when needed.
10064 (get_frame_id, frame_register_unwind): Ditto.
10065
10066 2003-04-16 Andrew Cagney <cagney@redhat.com>
10067
10068 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
10069 obsolete.
10070 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
10071 * sparcl-stub.c: Obsolete file.
10072 * config/sparc/tm-sparclet.h: Obsolete file.
10073 * sparclet-stub.c: Obsolete file.
10074 * sparclet-rom.c: Obsolete file.
10075 * sparcl-tdep.c: Obsolete file.
10076 * config/sparc/tm-sparclite.h: Obsolete file.
10077 * config/sparc/sparclite.mt: Obsolete file.
10078 * config/sparc/sparclet.mt: Obsolete file.
10079 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
10080 sparc86x-*-* obsolete.
10081
10082 2003-04-15 David Carlton <carlton@math.stanford.edu>
10083
10084 * Makefile.in (SFILES): Add cp-namespace.c.
10085 (COMMON_OBS): Add cp-namespace.o.
10086 (block.o): Depend on gdb_obstack_h and cp_support_h.
10087 (buildsym.o): Depend on cp_support_h.
10088 (cp-namespace.o): New.
10089 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
10090 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
10091 (dwarf2read.o): Depend on cp_support_h.
10092 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
10093 * dwarf2read.c (process_die): Set processing_has_namespace_info,
10094 processing_current_namespace.
10095 (read_namespace): Update processing_current_namespace; check for
10096 anonymous namespaces.
10097 (dwarf2_name): New function.
10098 (dwarf2_extension): Ditto.
10099 * cp-support.h: Update copyright, contributors.
10100 Add inclusion guards.
10101 Add opaque declaration for structs obstack, block, symbol.
10102 (struct using_direct): New struct.
10103 Add declarations for cp_find_first_component,
10104 cp_entire_prefix_len, processing_has_namespace_info,
10105 processing_current_namespace, cp_is_anonymous,
10106 cp_add_using_directive, cp_initialize_namespace,
10107 cp_finalize_namespace, cp_set_block_scope,
10108 cp_scan_for_anonymous_namespaces.
10109 * cp-namespace.c: New file.
10110 * cp-support.c: Update copyright.
10111 Include ctype.h, gdb_assert.h, gdbcmd.h.
10112 New variable maint_cplus_cmd_list.
10113 (cp_find_first_component): New function.
10114 (cp_entire_prefix_len, maint_cplus_command)
10115 (first_component_command, _initialize_cp_support): Ditto.
10116 * buildsym.c: Include cp-support.h.
10117 New variable using_list.
10118 (add_symbol_to_list): Check for anonymous namespaces.
10119 (finish_block): Set block's scope.
10120 (start_symtab): Initialize C++ namespace support.
10121 (end_symtab): Finalize C++ namespace support.
10122 * block.h: Add opaque declarations for structs
10123 block_namespace_info, using_direct, and obstack.
10124 Add declarations for block_set_scope and block_set_using.
10125 (struct block): Add 'language_specific' member.
10126 (BLOCK_NAMESPACE): New macro.
10127 * block.c: Include gdb_obstack.h and cp-support.h.
10128 (struct block_namespace_info): New struct.
10129 (block_set_scope): New function.
10130 (block_set_using, block_initialize_namespace): Ditto.
10131
10132 2003-04-14 Kevin Buettner <kevinb@redhat.com>
10133
10134 * solib-svr4.c (svr4_have_link_map_offsets): New function.
10135 (locate_base): Return early if there aren't any link map offsets.
10136 (svr4_solib_create_inferior_hook): Warn if shared library support
10137 is unavailable.
10138
10139 2003-04-14 David Carlton <carlton@math.stanford.edu>
10140
10141 * symtab.c (symbol_set_names): Add prefix when storing Java names
10142 in hash table. Fix for PR java/1039.
10143
10144 2003-04-14 David Carlton <carlton@math.stanford.edu>
10145
10146 * symtab.c (symbol_set_names): Rename 'name' arg to
10147 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
10148 * symtab.h: Change 'name' argument in declaration of
10149 symbol_set_names to 'linkage_name'.
10150 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
10151
10152 2003-04-14 Andrew Cagney <cagney@redhat.com>
10153
10154 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
10155 return the fully sign-extended register value.
10156 (get_frame_pointer): Ditto.
10157 (mips_pop_frame): Initialize "proc_desc" after checking for a
10158 dummy frame.
10159
10160 2003-04-14 Andrew Cagney <cagney@redhat.com>
10161
10162 * mips-tdep.c (mips_push_dummy_frame): Delete function.
10163 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
10164 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
10165 (mips_push_register): Delete function.
10166 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
10167 PUSH_FP_REGNUM.
10168
10169 2003-04-14 Jim Blandy <jimb@redhat.com>
10170
10171 * symmisc.c: #include "gdb_regex.h".
10172 (maintenance_list_symtabs, maintenance_list_psymtabs): New
10173 functions.
10174 * maint.c (maintenance_list_command): New function.
10175 (_initialize_maint_cmds): Register the above as commands.
10176 * symtab.h (maintenance_list_symtabs,
10177 maintenance_list_psymtabs): New declarations.
10178 * cli/cli-cmds.c (maintenancelistlist): New variable.
10179 (init_cmd_lists): Initialize it.
10180 * cli/cli-cmds.h (maintenancelistlist): New declaration.
10181 * gdbcmd.h (maintenancelistlist): New declaration.
10182 * Makefile.in (symmisc.o): Update dependencies.
10183
10184 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
10185
10186 * s390-nat.c: Include asm/types.h for addr_t.
10187
10188 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
10189
10190 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
10191 actually incoming type.
10192
10193 2003-04-13 Andrew Cagney <cagney@redhat.com>
10194
10195 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
10196 get_next_frame and get_frame_saved_regs.
10197
10198 2003-04-13 Andrew Cagney <cagney@redhat.com>
10199
10200 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
10201 of gdbarch_num_regs.
10202
10203 2003-04-13 Andrew Cagney <cagney@redhat.com>
10204
10205 * frame.h: Mention what replaced what in "struct frame_info".
10206 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
10207 deprecated_update_frame_base_hack and
10208 deprecated_update_frame_pc_hack.
10209 * hppa-tdep.c: Ditto.
10210
10211 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
10212
10213 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
10214 to read_reg and update its comment. Remove regnum member.
10215 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
10216 Don't call read_reg when setting in_reg. Call read_reg to get
10217 the frame base if it's in a register. Return the register number
10218 on the stack instead of in the context. Remove extra arguments
10219 to read_reg.
10220 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
10221 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
10222 the register number on the expression stack.
10223 (needs_frame_read_reg): Remove extra arguments.
10224
10225 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
10226
10227 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
10228 made non-static.
10229 (execute_stack_op): All callers updated.
10230 * dwarf2expr.h: Add prototype for dwarf2_read_address.
10231 * dwarf2loc.c (find_location_expression): New function.
10232 (dwarf_expr_frame_base): Call it.
10233 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
10234 (dwarf2_tracepoint_var_ref): New function, broken out from
10235 locexpr_tracepoint_var_ref.
10236 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
10237 Make static.
10238 (loclist_read_variable, loclist_read_needs_frame): New functions.
10239 (loclist_describe_location, loclist_tracepoint_var_ref): New
10240 functions.
10241 (dwarf2_loclist_funcs): New struct location_funcs.
10242 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
10243 (struct dwarf2_locexpr_baton): Add comments.
10244 (dwarf2_loclist_funcs): New extern.
10245 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
10246 base_address and base_known.
10247 (dwarf_loc_buffer): New variable.
10248 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
10249 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
10250 (dwarf2_has_info): Initialize dwarf_loc_offset.
10251 (dwarf2_build_psymtabs): Read in .debug_loc.
10252 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
10253 DWARF_LOC_SIZE.
10254 (psymtab_to_symtab_1): Likewise. Move base address calculation
10255 here, from...
10256 (dwarf2_get_pc_bounds): ... here. Use the base address from
10257 cu_header.
10258 (dwarf2_symbol_mark_computed): Handle location lists.
10259
10260 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
10261
10262 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10263 if the linkage name demangled successfully.
10264
10265 2003-04-13 Mark Kettenis <kettenis@gnu.org>
10266
10267 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10268 disassmbly_flavour): Removed.
10269
10270 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10271
10272 2003-04-13 Mark Kettenis <kettenis@gnu.org>
10273
10274 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10275
10276 2003-04-12 Andrew Cagney <cagney@redhat.com>
10277
10278 * frame.h (struct frame_info): Move definition from here ...
10279 * frame.c (struct frame_info): ... to here.
10280
10281 2003-04-12 Andrew Cagney <cagney@redhat.com>
10282
10283 * gdbthread.h (save_infrun_state): Delete parameter
10284 "prev_func_start".
10285 (struct thread_info): Delete field "prev_func_start".
10286 (load_infrun_state): Ditto.
10287 * thread.c (load_infrun_state, save_infrun_state): Update.
10288 * infrun.c (prev_func_start): Delete variable.
10289 (context_switch, init_wait_for_inferior): Update.
10290 (stop_stepping, keep_going): Update.
10291
10292 2003-04-12 Andrew Cagney <cagney@redhat.com>
10293
10294 * gdbarch.sh: Add missing opaque declarations.
10295 * gdbarch.h: Regnerate.
10296 * symtab.h: Add missing opaque declarations.
10297 * value.h, target.h, symfile.h, stabsread.h: Ditto.
10298 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10299 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10300 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10301 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10302 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10303 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10304 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10305 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10306 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10307 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10308 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10309 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10310
10311 2003-04-11 Andrew Cagney <cagney@redhat.com>
10312
10313 * frame.c (get_frame_id): Return this frame's "id".
10314 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10315 function start.
10316 (legacy_saved_regs_this_id): Replace function body with
10317 internal-error.
10318 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10319 FRAME_OBSTACK_ZALLOC.
10320 (create_new_frame): Mark the frame ID as valid.
10321
10322 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
10323
10324 * Makefile.in (libbfd_h): Added missing setting.
10325 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10326 according to the selected ABI.
10327
10328 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
10329
10330 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10331
10332 2003-04-11 Andrew Cagney <cagney@redhat.com>
10333
10334 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10335 SAVED_PC_AFTER_CALL.
10336 * gdbarch.h, gdbarch.c: Regenerate.
10337 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10338 * x86-64-tdep.c (x86_64_init_abi): Update.
10339 * vax-tdep.c (vax_gdbarch_init): Update.
10340 * v850-tdep.c (v850_gdbarch_init): Update.
10341 * sparc-tdep.c (sparc_gdbarch_init): Update.
10342 * sh-tdep.c (sh_gdbarch_init): Update.
10343 * s390-tdep.c (s390_gdbarch_init): Update.
10344 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10345 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10346 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10347 * mips-tdep.c (mips_gdbarch_init): Update.
10348 * mcore-tdep.c (mcore_gdbarch_init): Update.
10349 * m68k-tdep.c (m68k_gdbarch_init): Update.
10350 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10351 * ia64-tdep.c (ia64_gdbarch_init): Update.
10352 (ia64_saved_pc_after_call): Update declaration.
10353 * i386ly-tdep.c (i386lynx_init_abi): Update.
10354 * i386-tdep.c (i386_gdbarch_init): Update.
10355 * hppa-tdep.c (hppa_gdbarch_init): Update.
10356 * h8300-tdep.c (h8300_gdbarch_init): Update.
10357 * frv-tdep.c (frv_gdbarch_init): Update.
10358 * cris-tdep.c (cris_gdbarch_init): Update.
10359 * avr-tdep.c (avr_gdbarch_init): Update.
10360 * arm-tdep.c (arm_gdbarch_init): Update.
10361 * alpha-tdep.c (alpha_gdbarch_init): Update.
10362 * ns32knbsd-nat.c (frame_num_args): Update.
10363 * ns32k-tdep.c (umax_frame_num_args): Update.
10364 * mips-tdep.c (mips_init_frame_pc_first): Update.
10365 * infrun.c (step_over_function): Update.
10366 * i386-linux-tdep.c (skip_hurd_resolver): Update.
10367 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10368 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10369 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10370 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10371 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10372 * arm-linux-tdep.c (skip_hurd_resolver): Update.
10373 * arch-utils.c (init_frame_pc_default): Update.
10374 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10375 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10376 declaration.
10377
10378 2003-04-11 Andrew Cagney <cagney@redhat.com>
10379
10380 * i387-tdep.c: Update copyright.
10381 (i387_to_double): Delete function.
10382 (double_to_i387): Delete function.
10383
10384 2003-04-10 Andrew Cagney <cagney@redhat.com>
10385
10386 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10387 frame's function's address. Simplify.
10388 (d10v_frame_unwind_cache): Check that the frame's function is
10389 non-zero.
10390
10391 2003-04-10 Jim Blandy <jimb@redhat.com>
10392
10393 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10394 call to set_gdbarch_deprecated_push_arguments.
10395
10396 2003-04-10 Andrew Cagney <cagney@redhat.com>
10397
10398 * frame.c (fprint_frame_id): New function.
10399 (fprint_frame_type, fprint_frame): New function.
10400 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10401 (create_sentinel_frame, get_frame_id): Ditto.
10402 (frame_id_p, frame_id_eq): Ditto.
10403 (frame_id_inner, create_new_frame): Ditto.
10404 (legacy_get_prev_frame, get_prev_frame): Ditto.
10405 (deprecated_update_frame_pc_hack): Ditto.
10406 (frame_register_unwind): Ditto.
10407 (deprecated_update_frame_base_hack): Ditto.
10408
10409 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
10410
10411 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10412 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10413 frame_chain function.
10414 * Makefile.in: Add dependencies due to above change.
10415
10416 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
10417
10418 * blockframe.c (legacy_frame_chain_valid): Move call to
10419 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10420 inside_entry_file.
10421
10422 2003-04-09 Andrew Cagney <cagney@redhat.com>
10423
10424 * frame.h (struct frame_id): Replace "pc" and "base" with
10425 "stack_addr" and "code_addr". Update comments.
10426 (frame_id_build): Update parameter names and comment.
10427 (struct frame_info): Replace "id_p" and "id" with "this_id".
10428 * dummy-frame.c (dummy_frame_this_id): Update.
10429 * breakpoint.c (print_one_breakpoint): Update.
10430 * frame.c (get_frame_id): Update.
10431 (get_frame_base, frame_id_build): Update.
10432 (create_sentinel_frame, legacy_get_prev_frame): Update.
10433 (deprecated_update_frame_base_hack): Update.
10434 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10435 (frame_id_inner): Ditto.
10436
10437 2003-04-09 Andrew Cagney <cagney@redhat.com>
10438
10439 * defs.h (gdb_print_host_address): Make "addr" parameter a
10440 pointer constant.
10441 * utils.c (gdb_print_host_address): Update.
10442
10443 2003-04-09 Kevin Buettner <kevinb@redhat.com>
10444
10445 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10446 register number for R0 is 0.
10447
10448 2003-04-09 J. Brobecker <brobecker@gnat.com>
10449
10450 * frame.h (struct gdbarch): Add opaque structure definition
10451 to avoid a compilation warning on LynxOS 4.0.
10452
10453 2003-04-09 Andrew Cagney <cagney@redhat.com>
10454
10455 * frame.h (struct frame_info): Delete field "pc". Replace
10456 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10457 structure.
10458 * frame.c (frame_pc_unwind): Update.
10459 (create_sentinel_frame): Do not set "pc".
10460 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10461 (get_frame_pc): Call frame_pc_unwind.
10462 (deprecated_update_frame_pc_hack): Update.
10463 (create_new_frame): Use "pc" not "->pc".
10464
10465 2003-04-09 Andrew Cagney <cagney@redhat.com>
10466
10467 * frame.c (get_frame_id): Eliminate code updating "frame".
10468 (legacy_get_prev_frame): Ditto.
10469 (get_frame_base): Return id.base directly.
10470 (deprecated_update_frame_base_hack): Update "id.base".
10471 * frame.h (struct frame_info): Delete field "frame".
10472
10473 2003-04-09 Andrew Cagney <cagney@redhat.com>
10474
10475 * NEWS: Mention that the "Sequent family" is obsolete.
10476 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10477 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10478 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10479 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10480 * config/i386/tm-ptx4.h: Obsolete file.
10481 * config/i386/tm-ptx.h: Obsolete file.
10482 * symm-tdep.c: Obsolete file.
10483 * config/i386/symmetry.mt: Obsolete file.
10484 * config/i386/tm-symmetry.h: Obsolete file.
10485 * symm-nat.c: Obsolete file.
10486 * config/i386/nm-symmetry.h: Obsolete file.
10487 * config/i386/xm-symmetry.h: Obsolete file.
10488 * config/i386/symmetry.mh: Obsolete file.
10489 * config/i386/nm-ptx4.h: Obsolete file.
10490 * config/i386/ptx4.mh: Obsolete file.
10491 * config/i386/ptx.mt: Obsolete file.
10492 * config/i386/ptx.mh: Obsolete file.
10493 * config/i386/xm-ptx4.h: Obsolete file.
10494 * config/i386/xm-ptx.h: Obsolete file.
10495
10496 2003-04-09 Andrew Cagney <cagney@redhat.com>
10497
10498 Obsolete mips*-*-mach3*.
10499 * NEWS: Mention that mips*-*-mach3* is obsolete.
10500 * m3-nat.c: Obsolete file.
10501 * config/nm-m3.h: Obsolete file.
10502 * config/mips/tm-mipsm3.h: Obsolete file.
10503 * config/mips/mipsm3.mt: Obsolete file.
10504 * config/mips/mipsm3.mh: Obsolete file.
10505 * config/mips/xm-mipsm3.h: Obsolete file.
10506 * mipsm3-nat.c: Obsolete file.
10507 * configure.host: Obsolete mips-dec-mach3*.
10508 * configure.tgt: Obsolete mips*-*-mach3*.
10509
10510 2003-04-09 Andrew Cagney <cagney@redhat.com>
10511
10512 * doublest.h: Update copyright.
10513 (deprecated_store_floating, deprecated_extract_floating): Rename
10514 store_floating and extract_floating. Update comments.
10515 * doublest.c: Update copyright.
10516 (extract_floating_by_length): Replace extract_floating.
10517 (store_floating_by_length): Replace store_floating.
10518 (deprecated_extract_floating): New function.
10519 (deprecated_store_floating): New function.
10520 (extract_typed_floating): Call extract_floating_by_length.
10521 (store_typed_floating): Call store_floating_by_length.
10522 * x86-64-tdep.c (x86_64_store_return_value): Update.
10523 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10524 (sh64_extract_return_value): Update.
10525 (sh_sh4_register_convert_to_virtual): Update.
10526 (sh_sh64_register_convert_to_virtual): Update.
10527 (sh_sh4_register_convert_to_raw): Update.
10528 (sh_sh64_register_convert_to_raw): Update.
10529 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10530 (rs6000_register_convert_to_raw): Update.
10531 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10532 (ia64_register_convert_to_raw): Update.
10533 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10534 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10535 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10536 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10537 (alpha_register_convert_to_raw): Update.
10538
10539 2003-04-08 Andrew Cagney <cagney@redhat.com>
10540
10541 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10542 * gdbarch.h, gdbarch.c: Re-generate.
10543 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10544 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10545 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10546 conditionally, use frame_pc_unwind as an alternative. Add
10547 comments.
10548 * arch-utils.c (init_frame_pc_default): Only call
10549 SAVED_PC_AFTER_CALL when available.
10550
10551 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
10552
10553 * infrun.c (stop_soon): Rename from stop_soon_quietly.
10554 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10555 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10556 (start_remote): Ditto.
10557 (handle_inferior_event): Ditto.
10558 (save_inferior_status): Ditto.
10559 (restore_inferior_status): Ditto.
10560 * infcmd.c (attach_command): Ditto.
10561 * fork-child.c (startup_inferior): Ditto.
10562 * inferior.h (stop_soon): Rename from stop_soon_quietly.
10563 * alpha-tdep.c (heuristic_proc_start): Ditto.
10564 * mips-tdep.c (heuristic_proc_start): Ditto.
10565 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10566 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10567 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10568 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10569 * remote-vx.c (vx_create_inferior): Ditto.
10570
10571 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
10572
10573 * infrun.c (stop_soon_quietly): Make it an enum, to better
10574 override the default behavior of handle_inferior_event.
10575 (clear_proceed_status): Update uses of stop_soon_quietly to
10576 reflect that it is now an enum.
10577 (start_remote): Ditto.
10578 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10579 is set to handle the new GNU/Linux kernel behavior for
10580 attach/sigstop. Update uses of stop_soon_quietly.
10581 * inferior.h (enum stop_kind): New enum.
10582 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10583 Reset normal handle_inferior_event behavior, afterwards.
10584 * fork-child.c (startup_inferior): Update.
10585 * alpha-tdep.c (heuristic_proc_start): Update.
10586 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10587 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10588 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10589 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10590 * remote-vx.c (vx_create_inferior): Update.
10591 * mips-tdep.c (heuristic_proc_start): Update.
10592
10593 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
10594
10595 * disasm.c (dump_insns): Move variables inside loop, or they will
10596 be freed more than once, causing wild memory corruptions.
10597 (gdb_disassembly): Look for the substring "-thread",
10598 instead of "-threads" in the target name, to make sure to find
10599 the 'multi-thread' target. Also, make sure we do the right thing
10600 with the "core" target.
10601
10602 2003-04-07 Kevin Buettner <kevinb@redhat.com>
10603
10604 * mips-tdep.c (mips_print_fp_register): New function, created from
10605 do_fp_register_row(). Registers are now (also) printed as hex.
10606 Only one register is printed per row.
10607 (mips_print_register, do_fp_register_row): Print floating point
10608 registers with mips_print_fp_register().
10609
10610 2003-04-06 Andrew Cagney <cagney@redhat.com>
10611
10612 * valprint.h (inspect_it): Add extern declaration.
10613 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10614 (selectors_info, classes_info): Ditto.
10615 (find_objc_msgcall): Fix indentation.
10616 (objc_printstr): Delete extern declarations.
10617
10618 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10619
10620 2003-04-06 Andrew Cagney <cagney@redhat.com>
10621
10622 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10623 Update comment.
10624 * frame.c (legacy_saved_regs_this_id): Update.
10625 (legacy_get_prev_frame): Update.
10626 * xstormy16-tdep.c: Update comment.
10627 * sparc-tdep.c (sparc_frame_chain): Update comment.
10628 * blockframe.c (legacy_frame_chain_valid): Update.
10629
10630 2003-04-06 Andrew Cagney <cagney@redhat.com>
10631
10632 * valprint.c (val_print_type_code_int): Delete #ifdef
10633 PRINT_TYPELESS_INTEGER code.
10634
10635 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10636 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10637 multi-arch definition.
10638 * gdbarch.h: Re-generate.
10639
10640 2003-04-05 Andrew Cagney <cagney@redhat.com>
10641
10642 Eliminate FRAME_FIND_SAVED_REGS.
10643 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10644 Change FSR parameter to a pointer.
10645 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10646 Assume FSR parameter is a pointer.
10647 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10648 Make fsr a pointer.
10649 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10650 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10651 saved_regs a pointer.
10652 (hppa_frame_saved_pc): Ditto.
10653 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10654 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10655 pointer.
10656 (restore_pc_queue): Make fsr a pointer.
10657 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10658 (hppa_frame_chain): Make saved_regs a pointer, call
10659 hppa_frame_init_saved_regs.
10660 * sparc-tdep.c: Include "gdb_assert.h".
10661 (sparc_frame_find_saved_regs): Replace internal_error with
10662 gdb_assert.
10663 * remote-vxsparc.c (vx_read_register): Delete reference to
10664 FRAME_FIND_SAVED_REGS.
10665 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10666 * gdbarch.h: Regenerate.
10667 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10668 (deprecated_get_frame_saved_regs): Delete declaration.
10669 (struct frame_saved_regs): Delete definition.
10670 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10671 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10672 (hppa_frame_find_saved_regs): Delete declaration.
10673 (FRAME_FIND_SAVED_REGS): Delete macro.
10674 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10675 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10676 FRAME_FIND_SAVED_REGS in comment.
10677
10678 2003-04-05 Andrew Cagney <cagney@redhat.com>
10679
10680 * frame.c (frame_func_unwind, get_frame_func): New functions.
10681 * frame.h (get_frame_func, frame_func_unwind): Declare.
10682 (struct frame_info): Add field "prev_func" for caching the
10683 previous frame's function address.
10684 * arm-tdep.c (arm_frameless_function_invocation): Combine
10685 get_pc_function_start and get_frame_pc into get_frame_func.
10686 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10687 (sh64_nofp_frame_init_saved_regs): Ditto.
10688 * s390-tdep.c (s390_function_start): Ditto.
10689 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10690 (rs6000_frameless_function_invocation): Ditto.
10691 (rs6000_frame_saved_pc): Ditto.
10692 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10693 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10694 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10695 (i386_frame_init_saved_regs): Ditto.
10696 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10697 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10698 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10699 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10700 * blockframe.c (frameless_look_for_prologue): Ditto.
10701
10702 2003-04-05 Andrew Cagney <cagney@redhat.com>
10703
10704 * frame.c (legacy_get_prev_frame): Link prev to next at the
10705 function start. Update comments.
10706
10707 2003-04-05 Andrew Cagney <cagney@redhat.com>
10708
10709 * frame.c (get_frame_id): Update comment.
10710 (legacy_get_prev_frame): Update comment.
10711 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10712 * gdbarch.h: Regenerate.
10713 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10714 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10715
10716 2003-04-05 Andrew Cagney <cagney@redhat.com>
10717
10718 * stack.c (print_frame_info): Use get_frame_pc.
10719
10720 2003-04-04 Andrew Cagney <cagney@redhat.com>
10721
10722 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10723 the frame's type from the unwinder.
10724 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10725 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10726 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10727 (get_frame_base_address): Use get_frame_type.
10728 (get_frame_locals_address, get_frame_args_address): Ditto.
10729 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10730 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10731 (struct frame_info): Add comment explaining why the frame contains
10732 a "type" field.
10733 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10734 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10735 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10736 NORMAL_FRAME.
10737 * frame-unwind.h: Include "frame.h".
10738 (struct frame_unwind): Add "type" field.
10739 * Makefile.in (frame_unwind_h): Add $(frame_h).
10740
10741 2003-04-04 Andrew Cagney <cagney@redhat.com>
10742
10743 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10744 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10745 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10746 get_frame_base.
10747 (d10v_unwind_dummy_id): Use frame_id_build.
10748 * frame.c (find_frame_sal): Use get_frame_pc.
10749 (create_new_frame): Use deprecated_update_frame_pc_hack and
10750 deprecated_update_frame_base_hack.
10751 (create_sentinel_frame): Add comment about ->pc going away.
10752 (get_prev_frame): Add comment about ->pc going away.
10753 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10754 frame_id_build, deprecated_update_frame_pc_hack and
10755 deprecated_update_frame_base_hack.
10756 (select_frame): Use get_frame_pc.
10757 (legacy_saved_regs_this_id): Use frame_id_build.
10758
10759 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
10760
10761 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10762 signed integer case.
10763 (classify_argument): Handle enumerations and references.
10764
10765 2003-04-04 Andrew Cagney <cagney@redhat.com>
10766
10767 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10768 ID to NULL.
10769
10770 2003-04-01 Adam Fedor <fedor@gnu.org>
10771
10772 * gdb/objc-lang.c (selectors_info): Replace calls to
10773 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10774 SYMBOL_NATURAL_NAME.
10775 (classes_info, find_methods): Likewise.
10776
10777 2003-04-03 Kevin Buettner <kevinb@redhat.com>
10778
10779 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10780 ``mach'' to the value determined by bfd_default_set_arch_mach().
10781
10782 2003-04-02 Bob Rossi <bob_rossi@cox.net>
10783
10784 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10785 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10786 (mi-cmd-file.o): Update dependencies.
10787
10788 2003-04-01 Kevin Buettner <kevinb@redhat.com>
10789
10790 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10791 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10792
10793 2003-04-01 Adam Fedor <fedor@gnu.org>
10794
10795 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10796 * language.h (struct language_defn): Add la_demangle.
10797 (language_demangle): Declare.
10798 * language.c (language_demangle): New function.
10799 (unk_lang_demangle): Likewise.
10800 (unknown_language_defn, auto_language_defn, local_language_defn):
10801 Add ukn_lang_demangle.
10802 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
10803 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
10804 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10805 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10806 * jv-lang.c (java_demangle): New function
10807 (java_language_defn): Use it for la_demangle element.
10808 * objc-lang.c (objc_demangle): Add options argument
10809 (objc_language_defn): Use objc_demangle for la_demangle element.
10810 * maint.c (maintenance_demangle): Replace switch with
10811 call to language_demangle.
10812 * utils.c (fprintf_symbol_filtered): Likewise.
10813
10814 2003-04-01 Andrew Cagney <cagney@redhat.com>
10815
10816 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10817 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10818 PRINT_TYPELESS_INTEGER.
10819 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10820 PUSH_RETURN_ADDRESS.
10821
10822 2003-04-01 Andrew Cagney <cagney@redhat.com>
10823
10824 * Makefile.in (d10v-tdep.o): Update dependencies.
10825 * d10v-tdep.c: Include "frame-base.h".
10826 (d10v_frame_unwind): Make constant.
10827 (d10v_frame_base_address): New function.
10828 (d10v_frame_base): New variable.
10829 (d10v_gdbarch_init): Set frame_base default.
10830 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10831 comment for base.
10832 (d10v_frame_unwind_cache): Set and use "prev_sp".
10833 (d10v_frame_this_id): Use the previous frame's inner most stack
10834 address and this frame's func address for the frame ID. Use
10835 frame_id_build. Don't analyze beyond the current instruction.
10836
10837 2003-04-01 Andrew Cagney <cagney@redhat.com>
10838
10839 * frame.h (get_frame_locals_address, get_frame_args_address):
10840 Refer to the base address, instead of the address of the first
10841 local or parameter.
10842
10843 2003-04-01 Andrew Cagney <cagney@redhat.com>
10844
10845 Add frame debug info addresses:
10846 * frame-base.c: New file.
10847 * frame-base.h: New file.
10848 * frame.h (struct frame_base): Add opaque declaration.
10849 (get_frame_base): Update comment.
10850 (get_frame_base_address): Declare.
10851 (get_frame_locals_address): Declare.
10852 (get_frame_args_address): Declare.
10853 (struct frame_info): Add "base" and "base_cache". Update
10854 comments on the unwinder.
10855 * frame.c: Include "frame-base.h".
10856 (get_frame_locals_address): New function.
10857 (get_frame_base_address): New function.
10858 (get_frame_args_address): New function.
10859 * findvar.c (read_var_value): Use get_frame_locals_address and
10860 get_frame_args_address.
10861 * stack.c (frame_info): Use get_frame_locals_address and
10862 get_frame_args_address.
10863 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10864 moved to "frame-base.c".
10865 * printcmd.c (print_frame_nameless_args): Ditto.
10866 * symtab.h (address_class): Update comments.
10867 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10868 get_frame_base_address.
10869 * dwarf2expr.c (execute_stack_op): Ditto.
10870 * Makefile.in (frame_base_h): Define.
10871 (frame.o): Update dependencies.
10872 (frame-base.o): Add dependencies.
10873 (SFILES): Add frame-base.c.
10874 (COMMON_OBS): Add frame-base.o.
10875
10876 2003-04-01 Andrew Cagney <cagney@redhat.com>
10877
10878 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10879 CALL_DUMMY_LENGTH): Ditto.
10880 * gdbarch.c: Re-generate.
10881 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10882 (CALL_DUMMY_LENGTH): Delete macro.
10883 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10884 * arm-tdep.c (arm_gdbarch_init): Ditto.
10885 * avr-tdep.c (avr_gdbarch_init): Ditto.
10886 * cris-tdep.c (cris_gdbarch_init): Ditto.
10887 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10888 * frv-tdep.c (frv_gdbarch_init): Ditto.
10889 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10890 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10891 * i386-tdep.c (i386_gdbarch_init): Ditto.
10892 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10893 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10894 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10895 * mips-tdep.c (mips_gdbarch_init): Ditto.
10896 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10897 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10898 * s390-tdep.c (s390_gdbarch_init): Ditto.
10899 * sh-tdep.c (sh_gdbarch_init): Ditto.
10900 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10901 * v850-tdep.c (v850_gdbarch_init): Ditto.
10902 * vax-tdep.c (vax_gdbarch_init): Ditto.
10903 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10904
10905 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
10906
10907 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10908
10909 2003-04-01 Andrew Cagney <cagney@redhat.com>
10910
10911 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10912 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10913 * gdbarch.h, gdbarch.c: Re-generate.
10914 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10915 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10916 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10917 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10918 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10919 * infcmd.c (run_stack_dummy): Simplify assuming
10920 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10921 * infrun.c (handle_inferior_event): Ditto.
10922 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10923 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10924 * arm-tdep.c (arm_gdbarch_init): Ditto.
10925 * avr-tdep.c (avr_gdbarch_init): Ditto.
10926 * cris-tdep.c (cris_gdbarch_init): Ditto.
10927 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10928 * frv-tdep.c (frv_gdbarch_init): Ditto.
10929 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10930 * i386-tdep.c (i386_gdbarch_init): Ditto.
10931 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10932 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10933 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10934 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10935 * mips-tdep.c (mips_gdbarch_init): Ditto.
10936 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10937 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10938 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10939 * s390-tdep.c (s390_gdbarch_init): Ditto.
10940 * sh-tdep.c (sh_gdbarch_init): Ditto.
10941 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10942 * v850-tdep.c (v850_gdbarch_init): Ditto.
10943 * vax-tdep.c (vax_gdbarch_init): Ditto.
10944 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10945
10946 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
10947
10948 * symfile.c (symfile_relocate_debug_section): Update call to
10949 bfd_simple_get_relocated_section_contents.
10950
10951 2003-03-31 Andrew Cagney <cagney@redhat.com>
10952
10953 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10954 * gdbarch.h, gdbarch.c: Regenerate.
10955 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10956 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10957 available.
10958 * frame.h (generic_fix_call_dummy): Delete declaration.
10959 * dummy-frame.h: Update comment.
10960 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10961 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10962 fix_call_dummy.
10963 * sh-tdep.c (sh_gdbarch_init): Ditto.
10964 * s390-tdep.c (s390_gdbarch_init): Ditto.
10965 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10966 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10967 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10968 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10969 * i386-tdep.c (i386_gdbarch_init): Ditto.
10970 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10971 * frv-tdep.c (frv_gdbarch_init): Ditto.
10972 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10973 * cris-tdep.c (cris_gdbarch_init): Ditto.
10974 * avr-tdep.c (avr_gdbarch_init): Ditto.
10975 * arm-tdep.c (arm_gdbarch_init): Ditto.
10976
10977 2003-03-31 J. Brobecker <brobecker@gnat.com>
10978
10979 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10980 (INIT_FRAME_AP): Likewise.
10981 (EXTRA_FRAME_INFO): Likewise.
10982
10983 2003-03-31 Andrew Cagney <cagney@redhat.com>
10984
10985 * gdbarch.sh: Include "symfile.h".
10986 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10987 * gdbarch.h, gdbarch.c: Re-generate.
10988 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10989 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10990 call_dummy_address, the default is at entry_point_address.
10991 * v850-tdep.c (v850_gdbarch_init): Ditto.
10992 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10993 * sh-tdep.c (sh_gdbarch_init): Ditto.
10994 * s390-tdep.c (s390_gdbarch_init): Ditto.
10995 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10996 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10997 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10998 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10999 * i386-tdep.c (i386_gdbarch_init): Ditto.
11000 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11001 * frv-tdep.c (frv_gdbarch_init): Ditto.
11002 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11003 * cris-tdep.c (cris_gdbarch_init): Ditto.
11004 * arm-tdep.c (arm_gdbarch_init): Ditto.
11005
11006 2003-03-31 Andrew Cagney <cagney@redhat.com>
11007
11008 * gdbarch.sh (CALL_DUMMY_P): Delete.
11009 * gdbarch.h, gdbarch.c: Re-generate.
11010 * inferior.h (CALL_DUMMY_P): Delete macro.
11011 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11012 * vax-tdep.c (vax_gdbarch_init): Update.
11013 * v850-tdep.c (v850_gdbarch_init): Update.
11014 * sparc-tdep.c (sparc_gdbarch_init): Update.
11015 * sh-tdep.c (sh_gdbarch_init): Update.
11016 * s390-tdep.c (s390_gdbarch_init): Update.
11017 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11018 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11019 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11020 * mips-tdep.c (mips_gdbarch_init): Update.
11021 * mcore-tdep.c (mcore_gdbarch_init): Update.
11022 * m68k-tdep.c (m68k_gdbarch_init): Update.
11023 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11024 * ia64-tdep.c (ia64_gdbarch_init): Update.
11025 * i386-tdep.c (i386_gdbarch_init): Update.
11026 * h8300-tdep.c (h8300_gdbarch_init): Update.
11027 * frv-tdep.c (frv_gdbarch_init): Update.
11028 * d10v-tdep.c (d10v_gdbarch_init): Update.
11029 * cris-tdep.c (cris_gdbarch_init): Update.
11030 * breakpoint.c (deprecated_frame_in_dummy): Update.
11031 * avr-tdep.c (avr_gdbarch_init): Update.
11032 * alpha-tdep.c (alpha_gdbarch_init): Update.
11033 * arm-tdep.c (arm_gdbarch_init): Update.
11034 * dummy-frame.c (dummy_frame_this_id): Update comments.
11035 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
11036 * frame.c (legacy_get_prev_frame): Ditto.
11037 * valops.c (call_function_by_hand): Delete function.
11038 (hand_function_call): Rename to call_function_by_hand
11039
11040 2003-03-30 Andrew Cagney <cagney@redhat.com>
11041
11042 2002-11-10 Klee Dienes <kdienes@apple.com>
11043 * value.h (struct value): Update comment.
11044
11045 2003-03-30 Andrew Cagney <cagney@redhat.com>
11046
11047 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
11048 D10V_FP_REGNUM.
11049 (d10v_gdbarch_init): Do not set fp_regnum.
11050
11051 * frame.c (get_frame_base): Force ID initialization.
11052 (get_prev_frame): Move computation of the frame ID from here ...
11053 (get_frame_id): ... to here.
11054 (legacy_get_prev_frame): Mark the frame ID as valid.
11055 * frame.h (struct frame_info): Add field "id_p".
11056
11057 2003-03-30 Mark Kettenis <kettenis@gnu.org>
11058
11059 * i386-tdep.c (i386_store_struct_return): Removed.
11060 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
11061
11062 2003-03-30 Andrew Cagney <cagney@redhat.com>
11063
11064 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
11065 * gdbarch.h, gdbarch.c: Regenerate.
11066 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
11067 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11068 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11069 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11070 * i386-tdep.c (i386_gdbarch_init): Ditto.
11071 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11072 * cris-tdep.c (cris_gdbarch_init): Ditto.
11073 * vax-tdep.c (vax_gdbarch_init): Ditto.
11074 * s390-tdep.c (s390_gdbarch_init): Ditto.
11075 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11076 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11077 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11078 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
11079 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
11080 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
11081 * sparc-tdep.c (sparc_gdbarch_init): Update.
11082 * sh-tdep.c (sh_gdbarch_init): Update.
11083 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11084 * mips-tdep.c (mips_gdbarch_init): Update.
11085 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11086 * ia64-tdep.c (ia64_gdbarch_init): Update.
11087 * frv-tdep.c (frv_gdbarch_init): Update.
11088 * avr-tdep.c (avr_gdbarch_init): Update.
11089 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
11090 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
11091 instead of when push_dummy_call is not available.
11092
11093 2003-03-30 Andrew Cagney <cagney@redhat.com>
11094
11095 * infttrace.c: Include "gdbthread.h".
11096 (parent_attach_all): Fix function signature.
11097 (call_ptrace): Update call.
11098 * Makefile.in (infttrace.o): Update dependencies.
11099
11100 2003-03-30 Andrew Cagney <cagney@redhat.com>
11101
11102 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
11103 PUSH_RETURN_ADDRESS.
11104 * gdbarch.h, gdbarch.c: Regenerate.
11105 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11106 * x86-64-tdep.c (x86_64_init_abi): Update.
11107 * v850-tdep.c (v850_gdbarch_init): Update.
11108 * sparc-tdep.c (sparc_gdbarch_init): Update.
11109 * sh-tdep.c (sh_gdbarch_init): Update.
11110 * s390-tdep.c (s390_gdbarch_init): Update.
11111 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11112 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11113 * mips-tdep.c (mips_gdbarch_init): Update.
11114 * mcore-tdep.c (mcore_gdbarch_init): Update.
11115 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11116 * ia64-tdep.c (ia64_gdbarch_init): Update.
11117 * i386-tdep.c (i386_gdbarch_init): Update.
11118 * h8300-tdep.c (h8300_gdbarch_init): Update.
11119 * frv-tdep.c (frv_gdbarch_init): Update.
11120 * cris-tdep.c (cris_gdbarch_init): Update.
11121 * avr-tdep.c (avr_gdbarch_init): Update.
11122 * arm-tdep.c (arm_gdbarch_init): Update.
11123 * valops.c (hand_function_call): Update.
11124
11125 2003-03-29 Andrew Cagney <cagney@redhat.com>
11126
11127 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
11128 sizeof_call_dummy_words.
11129 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
11130 define.
11131 * gdbarch.h: Regenerate.
11132
11133 2003-03-29 Andrew Cagney <cagney@redhat.com>
11134
11135 * infttrace.h: New file.
11136 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
11137 (hpread_get_textlow): Detect an uninitialized dn_bufp.
11138 (hpread_read_doc_function_type): Detect an initialized type1.
11139 (hpread_quick_traverse): Initialize mod_name_string.
11140 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
11141 (som_solib_get_solib_by_pc): Declare.
11142 (so_lib_thread_start_addr): Declare.
11143 (no_shared_libraries): Declare.
11144 * somread.c (init_import_symbols): Make static. Add forward
11145 declaration.
11146 * config/pa/nm-hppah.h: Include "infttrace.h" for
11147 parent_attach_all.
11148 (hppa_insert_hw_watchpoint): Declare.
11149 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
11150 * hppah-nat.c: Include "gdb_string.h".
11151 (parent_attach_all): Delete extern declaration, moved to
11152 "infttrace.h".
11153 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
11154 int.
11155 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
11156 * Makefile.in (infttrace_h): Define.
11157 (hpread.o): Update dependencies.
11158 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
11159 * hppa-hpux-tdep.c: Include "gdb_string.h".
11160 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
11161 * infrun.c (handle_inferior_event): Always initialize
11162 stepped_after_stopped_by_watchpoint. Add default and remove
11163 fallthrough in switch statement.
11164 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
11165 parameter to int.
11166 (hppa_remove_hw_watchpoint): Ditto.
11167
11168 2003-03-29 Andrew Cagney <cagney@redhat.com>
11169
11170 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
11171 offset.
11172
11173 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
11174
11175 * arm-tdep.c (arm_push_arguments): Delete.
11176 (struct stack_item): New type.
11177 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
11178 (arm_store_struct_return): Delte.
11179 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
11180 arm_push_arguments or arm_store_struct_return.
11181
11182 2003-03-28 Andrew Cagney <cagney@redhat.com>
11183
11184 * Makefile.in (d10v-tdep.o): Update dependencies.
11185 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
11186 * d10v-tdep.c: Include "remote.h".
11187 (target_resume_hook): Delete extern declaration.
11188 (target_wait_loop_hook): Ditto.
11189 (tdisassemble_command): Eliminate assignment in "if" conditional.
11190 (d10v_ts2_register_sim_regno): Eliminate call to
11191 legacy_register_sim_regno.
11192 (d10v_ts3_register_sim_regno): Ditto.
11193
11194 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
11195
11196 * thread.c: Reindented.
11197 * lin-lwp.c: Ditto.
11198 * linux-proc.c: Ditto.
11199
11200 2003-03-28 Bob Rossi <bob_rossi@cox.net>
11201
11202 * MAINTAINERS (write after approval): Add myself.
11203
11204 2003-03-27 Theodore A. Roth <troth@openavr.org>
11205
11206 * objc-exp.y: Add missing semi-colons.
11207
11208 2003-03-27 Andrew Cagney <cagney@redhat.com>
11209
11210 * regcache.c (write_sp): Delete function and references.
11211 * inferior.h (write_sp): Delete declaration.
11212 * valops.c (hand_function_call): Replace write_sp with
11213 TARGET_WRITE_SP.
11214 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
11215 (sparc_pop_frame): Ditto.
11216
11217 2003-03-27 Andrew Cagney <cagney@redhat.com>
11218
11219 * NEWS: Mention removal of support for hppa*-*-bsd* and
11220 hppa*-*-osf* natives, and hppa*-*-pro* target.
11221 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
11222 * config/pa/xm-pa.h: Obsolete file.
11223 * config/pa/xm-hppab.h: Obsolete file.
11224 * config/pa/nm-hppab.h: Obsolete file.
11225 * config/pa/tm-hppab.h: Obsolete file.
11226 * config/pa/tm-hppao.h: Obsolete file.
11227 * config/pa/nm-hppao.h: Obsolete file.
11228 * config/pa/tm-pro.h: Obsolete file.
11229 * config/pa/hppaosf.mt: Obsolete file.
11230 * config/pa/hppaosf.mh: Obsolete file.
11231 * config/pa/hppapro.mt: Obsolete file.
11232 * config/pa/hppabsd.mt: Obsolete file.
11233 * config/pa/hppabsd.mh: Obsolete file.
11234 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
11235 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
11236 hppa*-*-osf*.
11237
11238 2003-03-27 Andrew Cagney <cagney@redhat.com>
11239
11240 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
11241 push_arguments. Don't set push_return_address or write_sp.
11242 (d10v_push_dummy_call): Replace d10v_push_arguments.
11243 (d10v_push_return_address, d10v_write_sp): Delete function,
11244 handled by push_dummy_call.
11245
11246 2003-03-26 Andrew Cagney <cagney@redhat.com>
11247
11248 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
11249 (push_dummy_call): New pure multi-arch replacement with gdbarch,
11250 regcache and dummy_addr parameters.
11251 * gdbarch.h, gdbarch.c: Re-generate.
11252 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
11253 available; assume it will handle stack alignment and return
11254 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
11255 legacy_push_arguments.
11256 (legacy_push_arguments): Rename default_push_arguments.
11257 * value.h (legacy_push_arguments): Rename default_push_arguments.
11258 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
11259 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11260 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11261 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11262 * config/i386/tm-symmetry.h: Update.
11263 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11264 * x86-64-tdep.c (x86_64_init_abi): Update.
11265 * v850-tdep.c (v850_gdbarch_init): Update.
11266 * sparc-tdep.c (sparc_gdbarch_init): Update.
11267 * sh-tdep.c (sh_gdbarch_init): Update.
11268 * s390-tdep.c (s390_gdbarch_init): Update.
11269 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11270 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11271 * mips-tdep.c (mips_gdbarch_init): Update.
11272 * mcore-tdep.c (mcore_gdbarch_init): Update.
11273 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11274 * ia64-tdep.c (ia64_gdbarch_init): Update.
11275 * i386-tdep.c (i386_gdbarch_init): Update.
11276 * hppa-tdep.c (hppa_gdbarch_init): Update.
11277 * h8300-tdep.c (h8300_gdbarch_init): Update.
11278 * frv-tdep.c (frv_gdbarch_init): Update.
11279 * d10v-tdep.c (d10v_gdbarch_init): Update.
11280 * cris-tdep.c (cris_gdbarch_init): Update.
11281 * avr-tdep.c (avr_gdbarch_init): Update.
11282 * arm-tdep.c (arm_gdbarch_init): Update.
11283 * arm-linux-tdep.c (arm_linux_init_abi): Update.
11284 * alpha-tdep.c (alpha_gdbarch_init): Update.
11285
11286 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11287
11288 * signals/signals.c (do_target_signal_to_host): Correct realtime
11289 signal range test.
11290
11291 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11292
11293 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11294 (struct sal_chain, map_catch_names): Remove.
11295 (catch_exception_command_1): Don't call
11296 handle_gnu_4_16_catch_command.
11297
11298 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11299
11300 From Mark Dettinger <dettinge@de.ibm.com>:
11301 * dwarf2cfi.c (read_2u): Increment pointer by two.
11302
11303 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11304
11305 * signals/signals.c: Fix typos in last change.
11306
11307 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11308
11309 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11310 not already defined. Use __SIGRTMIN if available.
11311 (target_signal_from_host): Remove SIGRTMIN block.
11312 (do_target_signal_to_host): Remove SIGRTMIN block; check that
11313 the signal is within the realtime range.
11314
11315 2003-03-25 Adam Fedor <fedor@gnu.org>
11316
11317 * Makefile.in (infrun.o): Add $(language_h)
11318 * infrun.c (handle_inferior_event): Use skip_language_trampoline
11319 for language specific trampolines.
11320 * language.h (struct language_defn): Add skip_trampoline.
11321 (skip_language_trampoline): Declare.
11322 * language.c (unk_lang_trampoline, skip_language_trampoline):
11323 New functions.
11324 (unknown_language_defn, auto_language_defn, local_language_defn):
11325 Add ukn_lang_trampoline.
11326 * ada-lang.c (ada_language_defn): Add NULL for language
11327 specific skip_trampoline.
11328 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11329 scm-lang.c: Likewise.
11330 * objc-lang.c (objc_skip_trampoline): New function.
11331 (objc_language_defn): Add objc_skip_trampoline.
11332
11333 2003-03-25 Andrew Cagney <cagney@redhat.com>
11334
11335 * frame.c (get_prev_frame): Delay validating a frame's ID -
11336 non-NULL, didn't go backwards - until an attempt to unwind it to
11337 the previous frame.
11338
11339 2003-03-25 Andrew Cagney <cagney@redhat.com>
11340
11341 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11342 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
11343 * gdbarch.h, gdbarch.c: Re-generate.
11344 * config/sparc/tm-sparc.h
11345 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11346 * sparc-tdep.c (sparc_gdbarch_init): Set
11347 deprecated_extra_stack_alignment_needed.
11348 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11349 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11350 extra_stack_alignment_needed.
11351 * v850-tdep.c (v850_gdbarch_init): Ditto.
11352 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11353 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11354 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11355 * cris-tdep.c (cris_gdbarch_init): Ditto.
11356 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11357 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11358
11359 2003-03-25 Andrew Cagney <cagney@redhat.com>
11360
11361 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11362 STORE_STRUCT_RETURN.
11363 * gdbarch.h, gdbarch.c: Regenerate.
11364 * d10v-tdep.c (d10v_store_struct_return): Delete function.
11365 (d10v_push_arguments): Set the struct return register.
11366 (d10v_gdbarch_init): Update.
11367 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11368 * x86-64-tdep.c (x86_64_init_abi): Update.
11369 * vax-tdep.c (vax_gdbarch_init): Update.
11370 * v850-tdep.c (v850_gdbarch_init): Update.
11371 * sparc-tdep.c (sparc_gdbarch_init): Update.
11372 * sh-tdep.c (sh_gdbarch_init): Update.
11373 * s390-tdep.c (s390_gdbarch_init): Update.
11374 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11375 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11376 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11377 * mips-tdep.c (mips_gdbarch_init): Update.
11378 * mcore-tdep.c (mcore_gdbarch_init): Update.
11379 * m68k-tdep.c (m68k_gdbarch_init): Update.
11380 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11381 * ia64-tdep.c (ia64_gdbarch_init): Update.
11382 * i386-tdep.c (i386_gdbarch_init): Update.
11383 * hppa-tdep.c (hppa_gdbarch_init): Update.
11384 * h8300-tdep.c (h8300_gdbarch_init): Update.
11385 * frv-tdep.c (frv_gdbarch_init): Update.
11386 * cris-tdep.c (cris_gdbarch_init): Update.
11387 * avr-tdep.c (avr_gdbarch_init): Update.
11388 * arm-tdep.c (arm_gdbarch_init): Update.
11389 * alpha-tdep.c (alpha_gdbarch_init): Update.
11390
11391 2003-03-25 Andrew Cagney <cagney@redhat.com>
11392
11393 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11394 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11395 CALL_DUMMY_STACK_ADJUST with a predicate variable.
11396 * gdbarch.h, gdbarch.c: Regenerate.
11397 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11398 call_dummy_stack_adjust_p.
11399 * vax-tdep.c (vax_gdbarch_init): Ditto.
11400 * v850-tdep.c (v850_gdbarch_init): Ditto.
11401 * sh-tdep.c (sh_gdbarch_init): Ditto.
11402 * s390-tdep.c (s390_gdbarch_init): Ditto.
11403 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11404 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11405 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11406 * mips-tdep.c (mips_gdbarch_init): Ditto.
11407 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11408 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11409 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11410 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11411 * i386-tdep.c (i386_gdbarch_init): Ditto.
11412 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11413 * frv-tdep.c (frv_gdbarch_init): Ditto.
11414 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11415 * cris-tdep.c (cris_gdbarch_init): Ditto.
11416 * avr-tdep.c (avr_gdbarch_init): Ditto.
11417 * arm-tdep.c (arm_gdbarch_init): Ditto.
11418 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11419 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11420 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11421 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11422 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
11423 call_dummy_stack_adjust_p.
11424 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11425 (CALL_DUMMY_STACK_ADJUST): Delete macro.
11426 * sparc-tdep.c (sparc32_push_arguments): Update.
11427 * valops.c (hand_function_call): Update.
11428
11429 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
11430
11431 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11432 set_gdbarch_char_signed.
11433
11434 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
11435
11436 PR cli/548
11437 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11438
11439 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
11440
11441 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11442 (_initialize_arm_tdep): Don't set tm_print_insn.
11443
11444 2003-03-24 Adam Fedor <fedor@gnu.org>
11445
11446 * Makefile.in (YYOBJ): Add objc-exp.tab.o
11447 * objc-lang.h: Add multiple inclusion protection.
11448 (start_msglist, add_msglist, end_msglist): Additional declarations.
11449
11450 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
11451
11452 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11453 value was renamed to ARM_FLOAT_SOFT_FPA.
11454
11455 2003-03-23 Andrew Cagney <cagney@redhat.com>
11456
11457 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11458 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11459 * gdbarch.h, gdbarch.c: Regenerate.
11460 * valops.c (hand_function_call): Update.
11461 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11462 * frame.c (legacy_saved_regs_this_id): Update.
11463 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11464 * dummy-frame.h: Update.
11465 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11466 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11467 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11468 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11469 * config/m68k/tm-sun3.h: Update.
11470 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11471 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11472 * x86-64-tdep.c (x86_64_init_abi): Update.
11473 * vax-tdep.c (vax_gdbarch_init): Update.
11474 * v850-tdep.c (v850_gdbarch_init): Update.
11475 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11476 * sh-tdep.c (sh_gdbarch_init): Update.
11477 * s390-tdep.c (s390_gdbarch_init): Update.
11478 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11479 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11480 (frame_get_saved_regs): Update.
11481 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11482 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11483 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11484 * mips-tdep.c (mips_gdbarch_init): Update.
11485 * mcore-tdep.c (mcore_gdbarch_init): Update.
11486 * m68k-tdep.c (m68k_gdbarch_init): Update.
11487 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11488 * ia64-tdep.c (ia64_gdbarch_init): Update.
11489 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11490 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11491 (i386_interix_back_one_frame): Update.
11492 * hppa-tdep.c (hppa_gdbarch_init): Update.
11493 (hppa_init_extra_frame_info): Update.
11494 * h8300-tdep.c (h8300_gdbarch_init): Update.
11495 * frv-tdep.c (frv_gdbarch_init): Update.
11496 * cris-tdep.c (cris_gdbarch_init): Update.
11497 * avr-tdep.c (avr_gdbarch_init): Update.
11498 * arm-tdep.c (arm_gdbarch_init): Update.
11499 * alpha-tdep.c (alpha_gdbarch_init): Update.
11500
11501 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11502
11503 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11504 (arm_get_fp_model): Declare.
11505 * arm-tdep.c (fp_model_strings): New string array.
11506 (arm_fp_model, current_fp_model): New variables.
11507 (arm_get_fp_model): New function.
11508 (arm_set_fp): New function.
11509 (set_fp_model_sfunc): New function.
11510 (show_fp_model): New function.
11511 (_initialize_arm_tdep): Add new command to set/show the FPU.
11512 (arm_extract_return_value): Use arm_get_fp_model.
11513 (arm_store_return_value): Likewise.
11514 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11515 to initialize the floating-point data types.
11516 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11517 model is FPA.
11518
11519 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11520
11521 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11522 the current setting of each value.
11523 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
11524 new_set and new_show. Use add_setshow_cmd_full and
11525 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11526 commands and add new version as subcommands of "set/show arm".
11527
11528 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11529
11530 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11531 (set_arm_command, show_arm_command): New functions.
11532 (_initialize_arm_tdep): Add them.
11533 (num_disassembly_options): Renamed from num_flavor_options.
11534 (valid_disassembly_styles): Renamed from valid_flavors.
11535 (disassembly_style): Renamed from disassembly_flavor.
11536 (set_disassembly_style_sfunc): Renamed from
11537 set_disassembly_flavor_sfunc.
11538 (set_disassembly_style): Renamed from set_disassembly_flavor.
11539 (arm_othernames): Updated.
11540 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11541 command. Add "set/show arm disassembly" commands. Deprecate
11542 "othernames" command.
11543
11544 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11545
11546 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11547 (arm-tdep.o): Depend on elf_arm_h.
11548
11549 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11550
11551 * Makefile.in (coff_internal_h): Define.
11552 (arm-tdep.o): Update dependencies.
11553
11554 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11555
11556 * arm-tdep.c (prologue_cache): Delete.
11557 (check_prologue_cache, save_prologue_cache): Delete.
11558 (arm_scan_prologue): Don't check or update the prologue_cache.
11559 (arm_gdb_arch_init): Don't initialize it.
11560 (_initialize_arm_tdep): Likewise.
11561
11562 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11563
11564 * MAINTAINERS (tui): Maintainer of tui code.
11565
11566 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
11567
11568 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11569 (i386-cygwin-tdep.o): Add dependencies.
11570 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11571 * i386-cygwin-tdep.c: New file.
11572 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11573 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11574
11575 2003-03-20 Andrew Cagney <cagney@redhat.com>
11576
11577 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11578 (handle_inferior_event): Remove code calling
11579 DYNAMIC_TRAMPOLINE_NEXTPC.
11580
11581 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11582 already has a full path.
11583
11584 * main.c (gdb_main): Return 1.
11585 (captured_main): Call error to report an invalid interpreter.
11586
11587 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11588 * alpha-osf1-tdep.c: Include "gdb_string.h".
11589
11590 2003-03-19 J. Brobecker <brobecker@gnat.com>
11591
11592 Continuing work to convert the hppa targets to multiarch partial.
11593
11594 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11595 method, now that hppa_push_dummy_frame has a conformant prototype.
11596 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11597 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11598 for the switch to multiarch partial.
11599
11600 2003-03-19 Kevin Buettner <kevinb@redhat.com>
11601
11602 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11603 when iss is issNull.
11604
11605 2003-03-18 Kevin Buettner <kevinb@redhat.com>
11606
11607 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11608 NUM_REGS bounds check.
11609
11610 2003-03-18 Kevin Buettner <kevinb@redhat.com>
11611
11612 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11613 * mips-tdep.c (gdb_assert.h): Include.
11614 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11615 (mips_register_name): Handle integer registers explicitly. Add
11616 bounds checking.
11617 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11618 (mips_lsi33k_reg_names): Don't list integer registers; they're
11619 handled by mips_register_name() now.
11620 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11621 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11622 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11623 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11624 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11625
11626 2003-03-18 Andrew Cagney <cagney@redhat.com>
11627
11628 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11629 a void pointer.
11630 * gdbtypes.h (print_scalar_formatted): Update declaration.
11631 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11632
11633 2003-03-18 J. Brobecker <brobecker@gnat.com>
11634
11635 * infrun.c (observer.h): Add #include.
11636 (normal_stop): Add call to observer_notify_normal_stop.
11637 * Makefile.in (infrun.o): Add dependency on observer.h.
11638
11639 2003-03-18 J. Brobecker <brobecker@gnat.com>
11640
11641 Continuing work to convert the hppa targets to multiarch partial.
11642 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11643 parameter. Reformat comment.
11644 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11645 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11646 to match new profile.
11647
11648 2003-03-18 J. Brobecker <brobecker@gnat.com>
11649
11650 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11651 appear to be working in any case.
11652
11653 2003-03-18 J. Brobecker <brobecker@gnat.com>
11654
11655 * observer.c (observer_test_first_observer): New static variable.
11656 (observer_test_second_observer): Likewise.
11657 (observer_test_third_observer): Likewise.
11658 (observer_test_first_notification_function): New static function.
11659 (observer_test_second_notification_function): Likewise.
11660 (observer_test_third_notification_function): Likewise.
11661
11662 2003-03-17 J. Brobecker <brobecker@gnat.com>
11663
11664 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11665 * somsolib.c (gdb_assert.h): Likewise.
11666 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11667 (somsolib.o): Likewise.
11668
11669 2003-03-17 Andrew Cagney <cagney@redhat.com>
11670
11671 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11672 BFD. Simplify setting of di.endian.
11673
11674 2003-03-17 Andrew Cagney <cagney@redhat.com>
11675
11676 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11677 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11678
11679 From Elena Zannoni <ezannoni@redhat.com>
11680 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11681 vector and floating-point parameters.
11682 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11683 convention.
11684 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11685
11686 2003-03-17 Fernando Nasser <fnasser@redhat.com>
11687
11688 * MAINTAINERS: Remove my name from several maintainership roles.
11689
11690 2003-03-17 Andrew Cagney <cagney@redhat.com>
11691
11692 Fix frame off-by-one bug.
11693 * frame-unwind.h (frame_this_id_ftype): Replace
11694 frame_unwind_id_ftype.
11695 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11696 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11697 with "prev_register".
11698 * frame-unwind.c (frame_unwind_find_by_pc): Return
11699 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11700 comment.
11701 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11702 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11703 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11704 (dummy_frame_unwind): Update.
11705 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11706 sentinel_frame_register_unwind.
11707 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11708 (sentinel_frame_unwinder): Update.
11709 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11710 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11711 * frame.c (create_sentinel_frame): Update. Initialize
11712 "prologue_cache" instead of "unwind_cache".
11713 (frame_register_unwind): Call this frame's prev_register with the
11714 next frame and this frame's prologue cache.
11715 (get_prev_frame): Simplify. Always call prev frame's this_id with
11716 this frame and prev frame's prologue cache. Document that this
11717 call is shifted one to the left when compared to the
11718 frame_register_unwind call.
11719 (legacy_saved_regs_prev_register): Replace
11720 frame_saved_regs_register_unwind.
11721 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11722 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11723 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11724 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11725 (d10v_frame_unwind): Update.
11726 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11727 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11728 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11729 "saved_regs" with "this_saved_regs".
11730
11731 2003-03-16 Andrew Cagney <cagney@redhat.com>
11732
11733 * frame.c (frame_pop): Don't call target_store_registers. Fix
11734 problem reported by Mark Kettenis.
11735
11736 2003-03-16 Mark Kettenis <kettenis@gnu.org>
11737
11738 * i386-tdep.c (i386_register_type): Renamed from
11739 i386_register_virtual_type. Adjust function signature.
11740 (i386_gdbarch_init): Set register_type instead of
11741 deprecated_max_register_raw_size,
11742 deprecated_max_register_virtual_size and register_virtual_type.
11743
11744 2003-03-14 Andrew Cagney <cagney@redhat.com>
11745
11746 * frame.c (get_prev_frame): When a legacy frame, always call
11747 legacy_get_prev_frame. Simplify unwind code using assumption that
11748 the unwinder is new.
11749 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11750 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11751 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11752
11753 2003-03-14 Andrew Cagney <cagney@redhat.com>
11754
11755 * frame.c (get_saved_register): Delete function.
11756 * frame.h (get_saved_register): Delete declaration.
11757 * xstormy16-tdep.c: Update comment.
11758 * regcache.h: Update comments.
11759 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11760 get_saved_register and extract_address, use
11761 frame_read_unsigned_register.
11762 (sparc_frame_saved_pc): Ditto.
11763 (sparc_get_saved_register): Instead of get_saved_register, use
11764 frame_register.
11765 (sparc_pop_frame): Ditto.
11766 * findvar.c: Update comments.
11767 (value_of_register): Call frame_register instead of
11768 get_saved_register.
11769 (value_from_register): Ditto.
11770 * config/sparc/tm-sparc.h: Update comment.
11771 * breakpoint.c: Update comment.
11772
11773 2003-03-14 Andrew Cagney <cagney@redhat.com>
11774
11775 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11776 GET_SAVED_REGISTER.
11777 * gdbarch.h, gdbarch.c: Re-generate.
11778 * frame.h: Update comments.
11779 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11780 * x86-64-tdep.c (x86_64_init_abi): Update.
11781 * sparc-tdep.c (sparc_gdbarch_init): Update.
11782 * sh-tdep.c (sh_gdbarch_init): Update.
11783 * mips-tdep.c (mips_gdbarch_init): Update.
11784 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11785 * cris-tdep.c (cris_gdbarch_init): Update.
11786 * ia64-tdep.c (ia64_gdbarch_init): Update.
11787 * frame.c (frame_register): Update.
11788 (get_saved_register): Update.
11789 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
11790
11791 2003-03-13 Andrew Cagney <cagney@redhat.com>
11792
11793 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11794 * gdbarch.h, gdbarch.c: Regenerate.
11795 * valops.c (hand_function_call): Update comment.
11796 * stack.c (return_command): Update comment.
11797 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11798 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11799 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11800 * x86-64-tdep.c (x86_64_init_abi): Update.
11801 * vax-tdep.c (vax_gdbarch_init): Update.
11802 * v850-tdep.c (v850_gdbarch_init): Update.
11803 * sparc-tdep.c (sparc_gdbarch_init): Update.
11804 * sh-tdep.c (sh_gdbarch_init): Update.
11805 * s390-tdep.c (s390_gdbarch_init): Update.
11806 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11807 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11808 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11809 * mips-tdep.c (mips_gdbarch_init): Update.
11810 * mcore-tdep.c (mcore_gdbarch_init): Update.
11811 * m68k-tdep.c (m68k_gdbarch_init): Update.
11812 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11813 * ia64-tdep.c (ia64_gdbarch_init): Update.
11814 * i386-tdep.c (i386_gdbarch_init): Update.
11815 * hppa-tdep.c (hppa_gdbarch_init): Update.
11816 * h8300-tdep.c (h8300_gdbarch_init): Update.
11817 * frv-tdep.c (frv_gdbarch_init): Update.
11818 * cris-tdep.c (cris_gdbarch_init): Update.
11819 * avr-tdep.c (avr_gdbarch_init): Update.
11820 * arm-tdep.c (arm_gdbarch_init): Update.
11821 * alpha-tdep.c (alpha_gdbarch_init): Update.
11822
11823 2003-03-13 Andrew Cagney <cagney@redhat.com>
11824
11825 * frame.c (legacy_frame_p): New function.
11826 (get_prev_frame): Use legacy_frame_p.
11827 * frame.h (legacy_frame_p): Declare.
11828
11829 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11830
11831 * MAINTAINERS (write after approval): Alphabetically
11832 listing corrected.
11833
11834 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11835
11836 * MAINTAINERS (write after approval): Add myself.
11837
11838 2003-03-12 Andrew Cagney <cagney@redhat.com>
11839
11840 * frame.c (get_prev_frame): Rename the frame parameter to
11841 "this_frame".
11842 (get_next_frame, legacy_get_prev_frame): Ditto.
11843
11844 2003-03-12 Andrew Cagney <cagney@redhat.com>
11845
11846 * frame.c (get_current_frame): Check target_has_registers before
11847 checking target_has_stack.
11848 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11849 instead of deprecated_selected_frame.
11850 * findvar.c (value_of_register): Pass "frame", not
11851 deprecated_selected_frame, to value_of_builtin_reg.
11852
11853 2003-03-12 Andrew Cagney <cagney@redhat.com>
11854
11855 * regcache.c (regcache_cooked_write_signed): New function.
11856 (regcache_cooked_write_unsigned): New function.
11857 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11858 (regcache_cooked_read_signed): Fix regnum in range assertion.
11859 * regcache.h (regcache_cooked_write_signed): Declare.
11860 (regcache_cooked_write_unsigned): Declare.
11861
11862 2003-03-12 Andrew Cagney <cagney@redhat.com>
11863
11864 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11865 * gdbarch.h, gdbarch.c: Re-generate.
11866 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11867 * x86-64-tdep.h: Update.
11868 * x86-64-tdep.c (x86_64_init_abi): Update.
11869 * v850-tdep.c (v850_gdbarch_init): Update.
11870 * sparc-tdep.c (sparc_gdbarch_init): Update.
11871 * sh-tdep.c (sh_gdbarch_init): Update.
11872 * s390-tdep.c (s390_gdbarch_init): Update.
11873 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11874 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11875 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11876 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11877 * mips-tdep.c (mips_gdbarch_init): Update.
11878 * mcore-tdep.c (mcore_gdbarch_init): Update.
11879 * m68k-tdep.c (m68k_gdbarch_init): Update.
11880 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11881 * ia64-tdep.c (ia64_gdbarch_init): Update.
11882 * i386-tdep.c (i386_gdbarch_init): Update.
11883 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11884 * hppa-tdep.c (hppa_gdbarch_init): Update.
11885 * h8300-tdep.c (h8300_gdbarch_init): Update.
11886 * frv-tdep.c (frv_gdbarch_init): Update.
11887 * cris-tdep.c (cris_gdbarch_init): Update.
11888 * avr-tdep.c (avr_gdbarch_init): Update.
11889 * arm-tdep.c (arm_gdbarch_init): Update.
11890 * alpha-tdep.c (alpha_gdbarch_init): Update.
11891 * sh-tdep.c (sh_init_extra_frame_info): Update.
11892 (sh64_init_extra_frame_info): Update.
11893 * ns32knbsd-nat.c (frame_num_args): Update.
11894 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11895 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11896 (xstormy16_frame_chain_valid): Update.
11897 * vax-tdep.c (vax_saved_pc_after_call): Update.
11898 * v850-tdep.c (v850_frame_chain): Update.
11899 (v850_pop_frame): Update.
11900 (v850_init_extra_frame_info): Update.
11901 * sparc-tdep.c (setup_arbitrary_frame): Update.
11902 * ns32k-tdep.c (umax_frame_num_args): Update.
11903 * s390-tdep.c (s390_pop_frame_regular): Update.
11904 * mn10300-tdep.c (mn10300_frame_chain): Update.
11905 (mn10300_pop_frame_regular): Update.
11906 (mn10300_init_extra_frame_info): Update.
11907 * mips-tdep.c (mips_init_frame_pc_first): Update.
11908 (mips_frame_chain): Update.
11909 (mips_pop_frame): Update.
11910 * mcore-tdep.c (mcore_frame_chain): Update.
11911 (mcore_pop_frame): Update.
11912 (mcore_init_extra_frame_info): Update.
11913 * arch-utils.c (init_frame_pc_default): Update.
11914 * m68k-tdep.c (isi_frame_num_args): Update.
11915 (delta68_frame_num_args): Update.
11916 (news_frame_num_args): Update.
11917 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11918 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11919 (alpha_frame_chain): Update.
11920 (alpha_pop_frame): Update.
11921 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11922 (hppa_init_extra_frame_info): Update.
11923 (hppa_frame_chain): Update.
11924 (hppa_frame_chain_valid): Update.
11925 * cris-tdep.c (cris_init_extra_frame_info): Update.
11926 * avr-tdep.c (avr_init_extra_frame_info): Update.
11927 * arm-tdep.c (arm_frame_chain_valid): Update.
11928 (arm_init_extra_frame_info): Update.
11929 (arm_pop_frame): Update.
11930 * frame.c (frame_pc_unwind): Update.
11931 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11932 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11933 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11934 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11935 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11936 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11937
11938 2003-03-12 Andrew Cagney <cagney@redhat.com>
11939
11940 Eliminate the need for POP_FRAME.
11941 * frame.c (do_frame_unwind_register): New function.
11942 (frame_pop): When no POP_FRAME, pop the frame using register
11943 unwind and a scratch regcache.
11944 (frame_saved_regs_pop): Delete function.
11945 (trad_frame_unwinder): Update.
11946 * d10v-tdep.c (d10v_frame_pop): Delete function.
11947 (d10v_frame_unwind): Update.
11948 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11949 (sentinel_frame_unwinder): Update.
11950 * dummy-frame.c (dummy_frame_pop): Delete function.
11951 (dummy_frame_unwind): Update.
11952 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11953 (struct frame_unwind): Update.
11954
11955 2003-03-11 Kevin Buettner <kevinb@redhat.com>
11956
11957 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11958 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11959 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11960 Do range checks on register number obtained from debugging info.
11961 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11962 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11963 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11964 mapping function.
11965 (do_fp_register_row): Fix typo which caused double type to be
11966 used when attempting to unpack a float.
11967
11968 2003-03-11 J. Brobecker <brobecker@gnat.com>
11969
11970 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11971
11972 2003-03-11 Andrew Cagney <cagney@redhat.com>
11973
11974 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11975 frame. Problem found by Corinna Vinschen.
11976
11977 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11978
11979 * doublest.c (floatformat_from_length): Accept also
11980 the real size of 'long double' type.
11981
11982 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
11983
11984 From Klee Dienes <kdienes@apple.com>:
11985 * breakpoint.c (bpstat_copy): Copy the command lines as well
11986 as the old value, to match what is freed in bpstat_clear.
11987
11988 2003-03-10 David Carlton <carlton@math.stanford.edu>
11989
11990 * minsyms.c (add_minsym_to_hash_table): Replace
11991 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11992 (compare_minimal_symbols, compact_minimal_symbols)
11993 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11994 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11995 of DEPRECATED_SYMBOL_MATCHES_NAME.
11996 (lookup_minimal_symbol_solib_trampoline): Ditto.
11997
11998 2003-03-10 Andrew Cagney <cagney@redhat.com>
11999
12000 * regcache.h (regcache_cooked_read_ftype): Define.
12001 (regcache_save, regcache_restore): Add a cooked_read parameter.
12002 * regcache.c (regcache_save, regcache_restore): Update.
12003 (do_cooked_read): New function.
12004 (regcache_cpy): Pass do_cooked_read to regcache_save and
12005 regcache_restore.
12006
12007 2003-03-10 Andrew Cagney <cagney@redhat.com>
12008
12009 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
12010 * gdbarch.h, gdbarch.c: Re-generate.
12011 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12012 * x86-64-tdep.h: Update.
12013 * x86-64-tdep.c (x86_64_init_abi): Update.
12014 * v850-tdep.c (v850_gdbarch_init): Update.
12015 * sparc-tdep.c (sparc_gdbarch_init): Update.
12016 * sh-tdep.c (sh_gdbarch_init): Update.
12017 * s390-tdep.c (s390_gdbarch_init): Update.
12018 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12019 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12020 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12021 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12022 * mips-tdep.c (mips_gdbarch_init): Update.
12023 * mcore-tdep.c (mcore_gdbarch_init): Update.
12024 * m68k-tdep.c (m68k_gdbarch_init): Update.
12025 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12026 * ia64-tdep.c (ia64_gdbarch_init): Update.
12027 * i386-tdep.c (i386_gdbarch_init): Update.
12028 * i386-interix-tdep.c (i386_interix_init_abi): Update.
12029 * hppa-tdep.c (hppa_gdbarch_init): Update.
12030 * h8300-tdep.c (h8300_gdbarch_init): Update.
12031 * frv-tdep.c (frv_gdbarch_init): Update.
12032 * cris-tdep.c (cris_gdbarch_init): Update.
12033 * avr-tdep.c (avr_gdbarch_init): Update.
12034 * arm-tdep.c (arm_gdbarch_init): Update.
12035 * alpha-tdep.c (alpha_gdbarch_init): Update.
12036 * sh-tdep.c (sh_init_extra_frame_info): Update.
12037 (sh64_init_extra_frame_info): Update.
12038 * ns32knbsd-nat.c (frame_num_args): Update.
12039 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
12040 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
12041 (xstormy16_frame_chain_valid): Update.
12042 * vax-tdep.c (vax_saved_pc_after_call): Update.
12043 * v850-tdep.c (v850_frame_chain): Update.
12044 (v850_pop_frame): Update.
12045 (v850_init_extra_frame_info): Update.
12046 * sparc-tdep.c (setup_arbitrary_frame): Update.
12047 * ns32k-tdep.c (umax_frame_num_args): Update.
12048 * s390-tdep.c (s390_pop_frame_regular): Update.
12049 * mn10300-tdep.c (mn10300_frame_chain): Update.
12050 (mn10300_pop_frame_regular): Update.
12051 (mn10300_init_extra_frame_info): Update.
12052 * mips-tdep.c (mips_init_frame_pc_first): Update.
12053 (mips_frame_chain): Update.
12054 (mips_pop_frame): Update.
12055 * mcore-tdep.c (mcore_frame_chain): Update.
12056 (mcore_pop_frame): Update.
12057 (mcore_init_extra_frame_info): Update.
12058 * arch-utils.c (init_frame_pc_default): Update.
12059 * m68k-tdep.c (isi_frame_num_args): Update.
12060 (delta68_frame_num_args): Update.
12061 (news_frame_num_args): Update.
12062 * ia64-tdep.c (ia64_pop_frame_regular): Update.
12063 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
12064 (alpha_frame_chain): Update.
12065 (alpha_pop_frame): Update.
12066 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
12067 (hppa_init_extra_frame_info): Update.
12068 (hppa_frame_chain): Update.
12069 (hppa_frame_chain_valid): Update.
12070 * cris-tdep.c (cris_init_extra_frame_info): Update.
12071 * avr-tdep.c (avr_init_extra_frame_info): Update.
12072 * arm-tdep.c (arm_frame_chain_valid): Update.
12073 (arm_init_extra_frame_info): Update.
12074 (arm_pop_frame): Update.
12075 * frame.c (frame_pc_unwind): Update.
12076 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
12077 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12078 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12079 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12080 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12081 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
12082
12083 2003-03-10 Andrew Cagney <cagney@redhat.com>
12084
12085 * gdbarch.sh (gdbarch_unwind_pc): New method.
12086 * gdbarch.h, gdbarch.c: Regenerate.
12087 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
12088 but use read_pc and FRAME_SAVED_PC as fall backs.
12089 (frame_saved_regs_pc_unwind): Delete function.
12090 (trad_frame_unwinder): Update.
12091 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
12092 (struct frame_unwind): Update.
12093 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
12094 (dummy_frame_unwind): Update.
12095 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
12096 (sentinel_frame_unwinder): Update.
12097 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
12098 (d10v_frame_unwind): Update.
12099 (d10v_unwind_pc): New function.
12100 (d10v_gdbarch_init): Set unwind_pc.
12101
12102 2003-03-10 Andrew Cagney <cagney@redhat.com>
12103
12104 * gdbarch.h: Re-generate.
12105
12106 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
12107 PC.
12108 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
12109 the PC register.
12110
12111 2003-03-08 Mark Kettenis <kettenis@gnu.org>
12112
12113 * gdbarch.sh (save_dummy_frame_tos): Add comment.
12114
12115 2003-03-08 Andrew Cagney <cagney@redhat.com>
12116
12117 * cli-out.c: Update copyright.
12118 (cli_out_data): Define typedef. Use instead of ui_out_data.
12119
12120 2003-03-08 Andrew Cagney <cagney@redhat.com>
12121
12122 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
12123 the result.
12124
12125 2003-03-07 Andrew Cagney <cagney@redhat.com>
12126
12127 * gdbarch.sh: Don't generate two macro definitions when an
12128 undefined macro taking no arguments.
12129 * gdbarch.h: Regenerate.
12130
12131 2002-03-07 Michal Ludvig <mludvig@suse.cz>
12132
12133 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
12134 (x86_64_unwind_dummy_id): New functions.
12135 (x86_64_init_abi): Register these two new functions.
12136
12137 2003-03-07 Michal Ludvig <mludvig@suse.cz>
12138
12139 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
12140 (x86_64_skip_prologue): Move prologue detection to
12141 separate function.
12142 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
12143
12144 2003-03-05 Andrew Cagney <cagney@redhat.com>
12145
12146 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
12147 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
12148 * frame.c (get_prev_frame): Restructure the frame ID unwind code
12149 to use unwind_dummy_id when a dummy frame.
12150 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
12151 predicate.
12152 * gdbarch.h, gdbarch.c: Regneerate.
12153
12154 2003-03-05 Andrew Cagney <cagney@redhat.com>
12155
12156 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
12157 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
12158 Do not use d10v_read_sp or d10v_read_fp when obtaining register
12159 values.
12160
12161 2003-03-05 Andrew Cagney <cagney@redhat.com>
12162
12163 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
12164 (struct d10v_unwind_cache): Delete field "frameless". Replace
12165 "next_addr" with "sp_offset". Add "r11_offset".
12166 (d10v_frame_unwind_cache): Update.
12167 (prologue_find_regs): Update. When "mv r11, sp", save the
12168 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
12169 RN was saved in r11_offset.
12170
12171 2003-03-05 Andrew Cagney <cagney@redhat.com>
12172
12173 * frame.c (deprecated_update_frame_pc_hack): Also update the the
12174 cached PC value in the next frame.
12175
12176 2003-03-05 Andrew Cagney <cagney@redhat.com>
12177
12178 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
12179 "id_unwind_cache" with "id".
12180 (frame_id_unwind): Delete declaration.
12181 * frame.c (frame_id_unwind): Delete function.
12182 (get_prev_frame): Call the frame id unwind method directly. Store
12183 the returned next frame's ID value in NEXT_FRAME. Note that there
12184 is a problem with the wrong unwind ID being called with the wrong
12185 unwind cache.
12186
12187 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
12188
12189 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
12190
12191 2003-03-05 James Ingham <jingham@apple.com>
12192 Daniel Jacobowitz <drow@mvista.com>
12193
12194 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
12195 (auto_cp_abi): New variable.
12196 (current_cp_abi, num_cp_abis): Make static.
12197 (CP_ABI_MAX): Define.
12198 (cp_abis): Turn into an array.
12199 (value_virtual_fn_field): Fix formatting.
12200 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
12201 takes a pointer.
12202 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
12203 (list_cp_abis, _initialize_cp_abi): New functions.
12204 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
12205 declarations for cp_abis, num_cp_abis, current_cp_abi, and
12206 switch_to_cp_abi. Update prototype for register_cp_abi.
12207 * Makefile.in (cp-abi.o): Update dependencies.
12208 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
12209 instead of switch_to_cp_abi.
12210 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
12211 register_cp_abi.
12212 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
12213 register_cp_abi.
12214 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
12215
12216 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
12217
12218 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
12219 * dwarf2loc.c: Include "regcache.h".
12220 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
12221 register_size.
12222 * Makefile.in (dwarf2loc.o): Update dependencies.
12223
12224 2003-03-04 Theodore A. Roth <troth@openavr.org>
12225
12226 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
12227 number of io registers reported by remote target is not a multiple of
12228 step.
12229
12230 2003-03-04 David Carlton <carlton@math.stanford.edu>
12231
12232 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
12233 (lookup_symbol_aux_psymtabs): Update call to
12234 lookup_partial_symbol.
12235 (lookup_transparent_type, find_main_psymtab)
12236 (make_symbol_overload_list): Ditto.
12237
12238 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
12239
12240 * MAINTAINERS (Write after approval): Update my email address.
12241
12242 2003-03-03 Andrew Cagney <cagney@redhat.com>
12243
12244 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
12245 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
12246 predicate. Replace MAX_REGISTER_RAW_SIZE.
12247 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
12248 MAX_REGISTER_VIRTUAL_SIZE.
12249 * regcache.c (legacy_max_register_raw_size): New function.
12250 (legacy_max_register_virtual_size): New function.
12251 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
12252 (MAX_REGISTER_RAW_SIZE): Define.
12253 (legacy_max_register_raw_size): Declare.
12254 (legacy_max_register_virtual_size): Declare.
12255 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12256 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
12257 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12258 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12259 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12260 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12261 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12262 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12263 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12264 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12265 * vax-tdep.c (vax_gdbarch_init): Update.
12266 * v850-tdep.c (v850_gdbarch_init): Update.
12267 * sparc-tdep.c (sparc_gdbarch_init): Update.
12268 * sh-tdep.c (sh_gdbarch_init): Update.
12269 * s390-tdep.c (s390_gdbarch_init): Update.
12270 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12271 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12272 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12273 * mips-tdep.c (mips_gdbarch_init): Update.
12274 * mcore-tdep.c (mcore_gdbarch_init): Update.
12275 * m68k-tdep.c (m68k_gdbarch_init): Update.
12276 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12277 * ia64-tdep.c (ia64_gdbarch_init): Update.
12278 * i386-tdep.c (i386_gdbarch_init): Update.
12279 * hppa-tdep.c (hppa_gdbarch_init): Update.
12280 * h8300-tdep.c (h8300_gdbarch_init): Update.
12281 * frv-tdep.c (frv_gdbarch_init): Update.
12282 * cris-tdep.c (cris_gdbarch_init): Update.
12283 * avr-tdep.c (avr_gdbarch_init): Update.
12284 * arm-tdep.c (arm_gdbarch_init): Update.
12285 * alpha-tdep.c (alpha_gdbarch_init): Update.
12286 * d10v-tdep.c (d10v_gdbarch_init): Do not set
12287 max_register_raw_size or max_register_virtual_size.
12288
12289 2003-03-03 David Carlton <carlton@math.stanford.edu>
12290
12291 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12292 SYMBOL_MATCHES_NAME, add comment.
12293 (SYMBOL_MATCHES_NATURAL_NAME): New.
12294 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12295 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12296 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12297 * symtab.c (lookup_partial_symbol): Use
12298 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
12299 unhelpful comment.
12300 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12301 SYMBOL_MATCHES_NAME.
12302 Fix for PR c++/33.
12303
12304 2003-03-03 David Carlton <carlton@math.stanford.edu>
12305
12306 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12307 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12308 by regexp matching against SYMBOL_NATURAL_NAME.
12309
12310 2003-03-03 David Carlton <carlton@math.stanford.edu>
12311
12312 * linespec.c (find_method): Extract code into collect_methods.
12313 (collect_methods): New.
12314
12315 2003-03-02 Mark Kettenis <kettenis@gnu.org>
12316
12317 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12318 get_frame_base.
12319
12320 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12321 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12322
12323 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
12324
12325 * arch-utils.c (generic_register_byte): Fix to use the loop index
12326 and not regnum when summing the size of all registers up to regnum.
12327
12328 2003-03-01 Andrew Cagney <cagney@redhat.com>
12329
12330 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12331 FRAME_INIT_SAVED_REGS.
12332 * gdbarch.h, gdbarch.c: Regenerate.
12333 * stack.c (frame_info): Update.
12334 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12335 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12336 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12337 * ns32k-tdep.c (ns32k_pop_frame): Update.
12338 * mips-tdep.c (mips_pop_frame): Update.
12339 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12340 * ia64-tdep.c (ia64_frame_chain): Update.
12341 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12342 (ia64_frameless_function_invocation): Update.
12343 (ia64_init_extra_frame_info): Update.
12344 (ia64_pop_frame_regular): Update.
12345 * frame.h (struct frame_info): Update comment.
12346 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12347 * frame.c (frame_saved_regs_register_unwind): Update.
12348 (frame_saved_regs_register_unwind): Update.
12349 (deprecated_generic_get_saved_register): Update.
12350 * cris-tdep.c: Update comment.
12351 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12352 Rename macro.
12353 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12354 * x86-64-tdep.c (x86_64_init_abi): Update.
12355 * vax-tdep.c (vax_gdbarch_init): Update.
12356 * v850-tdep.c (v850_gdbarch_init): Update.
12357 * sparc-tdep.c (sparc_gdbarch_init): Update.
12358 * sh-tdep.c (sh_gdbarch_init): Update.
12359 * s390-tdep.c (s390_gdbarch_init): Update.
12360 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12361 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12362 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12363 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12364 * mips-tdep.c (mips_gdbarch_init): Update.
12365 * mcore-tdep.c (mcore_gdbarch_init): Update.
12366 * m68k-tdep.c (m68k_gdbarch_init): Update.
12367 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12368 * ia64-tdep.c (ia64_gdbarch_init): Update.
12369 * i386-tdep.c (i386_gdbarch_init): Update.
12370 * frv-tdep.c (frv_gdbarch_init): Update.
12371 * avr-tdep.c (avr_gdbarch_init): Update.
12372 * arm-tdep.c (arm_gdbarch_init): Update.
12373 * alpha-tdep.c (alpha_gdbarch_init): Update.
12374
12375 2003-03-01 Andrew Cagney <cagney@redhat.com>
12376
12377 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12378 option enum and switch. When no windows, set the interpreter to
12379 INTERP_CONSOLE.
12380
12381 2003-03-01 Andrew Cagney <cagney@redhat.com>
12382
12383 * main.c (captured_main): Replace magic option characters with an
12384 enum.
12385
12386 2003-03-01 Andrew Cagney <cagney@redhat.com>
12387
12388 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12389 INIT_EXTRA_FRAME_INFO.
12390 * gdbarch.h, gdbarch.c: Regenerate.
12391 * arm-tdep.c: Update comments.
12392 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12393 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12394 * frame.h, avr-tdep.c: Ditto.
12395 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12396 (create_new_frame, legacy_get_prev_frame): Ditto.
12397 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12398 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12399 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12400 deprecated_init_extra_frame_info instead of init_extra_frame_info.
12401 * x86-64-tdep.c (x86_64_init_abi): Ditto.
12402 * v850-tdep.c (v850_gdbarch_init): Ditto.
12403 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12404 * sh-tdep.c (sh_gdbarch_init): Ditto.
12405 * s390-tdep.c (s390_gdbarch_init): Ditto.
12406 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12407 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12408 * mips-tdep.c (mips_gdbarch_init): Ditto.
12409 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12410 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12411 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12412 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12413 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12414 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12415 * frv-tdep.c (frv_gdbarch_init): Ditto.
12416 * cris-tdep.c (cris_gdbarch_init): Ditto.
12417 * avr-tdep.c (avr_gdbarch_init): Ditto.
12418 * arm-tdep.c (arm_gdbarch_init): Ditto.
12419 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12420 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12421
12422 2003-03-01 Andrew Cagney <cagney@redhat.com>
12423
12424 * gdbarch.sh (register_type): New function with predicate.
12425 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12426 * gdbarch.h, gdbarch.c: Re-generate.
12427 * arch-utils.c (generic_register_byte): Use generic_register_size.
12428 (generic_register_size): When available, use
12429 gdbarch_register_type.
12430 * regcache.c (init_regcache_descr): When available, initialize the
12431 register type array using gdbarch_register_type. If the
12432 architecture supplies gdbarch_register_type, do not use the legacy
12433 regcache layout.
12434 * d10v-tdep.c (d10v_register_type): Replace
12435 d10v_register_virtual_type.
12436 (d10v_gdbarch_init): Set register_type instead of
12437 register_virtual_type.
12438
12439 2003-03-01 Andrew Cagney <cagney@redhat.com>
12440
12441 * Makefile.in (ax-gdb.o): Update dependencies.
12442 * ax-gdb.c: Include "regcache.h".
12443 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12444 * findvar.c (value_of_register): Ditto.
12445 * infcmd.c (default_print_registers_info): Ditto.
12446
12447 2003-03-01 Mark Kettenis <kettenis@gnu.org>
12448
12449 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12450 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12451
12452 2003-03-01 Mark Kettenis <kettenis@gnu.org>
12453
12454 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12455 of STREQ.
12456
12457 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
12458
12459 * Makefile.in (dwarf2loc.o): Update dependencies.
12460 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12461 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12462 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12463 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12464 (locexpr_tracepoint_var_ref): New function.
12465 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12466
12467 2003-02-28 Andrew Cagney <cagney@redhat.com>
12468
12469 * regcache.c (register_size): New function.
12470 * regcache.h (register_size): Declare
12471 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12472 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12473
12474 2003-02-28 David Carlton <carlton@math.stanford.edu>
12475
12476 * linespec.c (decode_compound): Extract code into find_method.
12477 (find_method): New.
12478
12479 2003-02-28 J. Brobecker <brobecker@gnat.com>
12480
12481 * Makefile.in: Add rules to build and link in observer.o.
12482
12483 2003-02-27 J. Brobecker <brobecker@gnat.com>
12484
12485 * observer.c: Minor comments edits.
12486
12487 2003-02-27 J. Brobecker <brobecker@gnat.com>
12488
12489 * observer.h, observer.c: New file.
12490
12491 2003-02-27 Andrew Cagney <cagney@redhat.com>
12492
12493 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12494
12495 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12496
12497 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12498 (M6812_OP_STS_EXT): Likewise.
12499 (m6811_prologue): Use the above to recognize prologue.
12500 (m6812_prologue): Likewise.
12501
12502 2003-02-27 David Carlton <carlton@math.stanford.edu>
12503
12504 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12505 SYMBOL_PRINT_NAME.
12506 (compare_psymbols): Ditto.
12507 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12508
12509 2003-02-27 Michael Snyder <msnyder@redhat.com>
12510
12511 * f-lang.c (build_fortran_types): New function.
12512 (_initialize_f_language): Gdbarch-register built-in fortran types.
12513 * doublest.c (extract_floating): Fix warning text.
12514
12515 2003-02-27 Andrew Cagney <cagney@redhat.com>
12516
12517 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12518 predicate. Replaces PUSH_DUMMY_FRAME.
12519 * gdbarch.h, gdbarch.c: Regnerate.
12520 * valops.c (hand_function_call): Update. Call
12521 generic_push_dummy_frame directly.
12522 * vax-tdep.c (vax_gdbarch_init): Update.
12523 * sparc-tdep.c (sparc_gdbarch_init): Update.
12524 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12525 * m68k-tdep.c (m68k_gdbarch_init): Update.
12526 * hppa-tdep.c (hppa_gdbarch_init): Update.
12527 * alpha-tdep.c (alpha_gdbarch_init): Update.
12528 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12529 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12530 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12531 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12532 push_dummy_frame to generic_push_dummy_frame.
12533 * v850-tdep.c (v850_gdbarch_init): Ditto.
12534 * sh-tdep.c (sh_gdbarch_init): Ditto.
12535 * s390-tdep.c (s390_gdbarch_init): Ditto.
12536 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12537 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12538 * mips-tdep.c (mips_gdbarch_init): Ditto.
12539 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12540 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12541 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12542 * i386-tdep.c (i386_gdbarch_init): Ditto.
12543 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12544 * frv-tdep.c (frv_gdbarch_init): Ditto.
12545 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12546 * cris-tdep.c (cris_gdbarch_init): Ditto.
12547 * avr-tdep.c (avr_gdbarch_init): Ditto.
12548 * arm-tdep.c (arm_gdbarch_init): Ditto.
12549
12550 2003-02-26 Kevin Buettner <kevinb@redhat.com>
12551
12552 * mips-tdep.c (show_mips_abi): New function.
12553 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12554 command ``show mips abi''.
12555
12556 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
12557
12558 From Elena Zannoni <ezannoni@redhat.com>
12559 * dbxread.c (process_one_symbol): Only record line 0 if one or
12560 more sline entries have been seen for the function.
12561
12562 2003-02-26 Michael Chastain <mec@shout.net>
12563
12564 * configure: Regenerate with autoconf 000227.
12565
12566 2003-02-26 Michael Chastain <mec@shout.net>
12567
12568 Close PR build/660.
12569 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12570 for old libc5/glibc.
12571 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12572
12573 2003-02-26 Kris Warkentin <kewarken@qnx.com>
12574
12575 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12576 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12577
12578 2003-02-26 Michael Chastain <mec@shout.net>
12579
12580 * configure.in: New variable HAVE_UINTPTR_T.
12581 * configure, config.in: Regenerated.
12582
12583 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
12584
12585 Fix PR build/1097.
12586 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12587
12588 2003-02-25 Andrew Cagney <cagney@redhat.com>
12589
12590 * frame.c (get_prev_frame): Add comment on check for
12591 inside_entry_func. Only check for inside_entry_file when not a
12592 dummy and not a sentinel. Check that the new frame is not inner
12593 to the old frame.
12594
12595 2003-02-25 Andrew Cagney <cagney@redhat.com>
12596
12597 * frame.c (frame_debug): New variable.
12598 (_initialize_frame): Add "set/show debug frame" command.
12599 (get_prev_frame): When frame_debug, print reason why unwind
12600 failed.
12601
12602 2003-02-25 Michael Chastain <mec@shout.net>
12603
12604 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12605 to avoid uintptr_t definition problems.
12606
12607 2003-02-25 David Carlton <carlton@math.stanford.edu>
12608
12609 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12610 (SYMBOL_LINKAGE_NAME): Ditto.
12611 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12612 SYMBOL_LINKAGE_NAME.
12613 (struct general_symbol_info): Expand comment.
12614 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12615 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12616 (SYMBOL_MATCHES_REGEXP): Ditto.
12617 * symtab.c (symbol_natural_name): New function.
12618 * objfiles.h: Replace all uses of SYMBOL_NAME by
12619 DEPRECATED_SYMBOL_NAME.
12620 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12621 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12622 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12623 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12624 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12625 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12626 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12627 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12628 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12629 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12630 * ada-exp.y: Ditto.
12631 * ada-exp.y: Update copyright.
12632 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12633 * cp-valprint.c: Ditto.
12634
12635 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12636
12637 * infptrace.c (detach): Do not flag error if ptrace detach fails
12638 and errno is set to ESRCH.
12639
12640 2003-02-24 Andrew Cagney <cagney@redhat.com>
12641
12642 * infptrace.c (udot_info): Change type of udot_off to long. Use
12643 paddr when printing udot_off's value.
12644
12645 2003-02-24 David Carlton <carlton@math.stanford.edu>
12646
12647 * symtab.c (make_symbol_overload_list): Only read in partial
12648 symtabs containing a matching partial symbol.
12649
12650 2003-02-24 David Carlton <carlton@math.stanford.edu>
12651
12652 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12653 do the comparison, not strcmp.
12654 * symfile.c (compare_psymbols): Ditto.
12655 * defs.h: Declare strcmp_iw_ordered.
12656 * utils.c (strcmp_iw_ordered): New function.
12657
12658 2003-02-24 Jim Blandy <jimb@redhat.com>
12659
12660 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12661 support, shared libs): Remove my name from here, to better reflect
12662 reality.
12663
12664 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12665
12666 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12667 (target_ops): Add to_have_continuable_watchpoint.
12668 * target.c (update_current_target): Add INHERIT line for
12669 to_have_continuable_watchpoint.
12670 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12671 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12672 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12673 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12674
12675 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
12676
12677 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12678 maintainership.
12679
12680 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12681
12682 * solib.c (solib_open): Call target defined search function after
12683 failing with solib-search-path.
12684 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12685 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
12686
12687 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12688
12689 * MAINTAINERS: Add myself to Write After section.
12690
12691 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12692
12693 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12694
12695 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12696
12697 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12698 (m68hc11_add_reggroups): New function.
12699 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12700 (m68hc11_gdbarch_init): Install the reggroups.
12701 (_initialize_m68hc11_tdep): Initialize them.
12702
12703 2003-02-21 James E Wilson <wilson@tuliptree.org>
12704
12705 * MAINTAINERS: Update my email address.
12706
12707 2003-02-21 David Carlton <carlton@math.stanford.edu>
12708
12709 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12710
12711 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
12712
12713 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12714 * symtab.h: Add opaque declarations of struct axs_value and
12715 struct agent_expr.
12716 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12717 (struct location_funcs): New type.
12718 (struct symbol): Add "loc" to aux_value.
12719 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12720 * dwarf2read.c: Include "dwarf2expr.h".
12721 (dwarf2_symbol_mark_computed): New function.
12722 (read_func_scope): Use it.
12723 (var_decode_location): New function.
12724 (new_symbol): Use it.
12725 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12726
12727 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12728 (dwarf2expr_h, dwarf2loc_h): New variables.
12729 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12730 (dwarf2expr.o, dwarf2loc.o): New rules.
12731 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12732 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12733 LOC_COMPUTED_ARG.
12734 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12735 * m2-exp.y (yylex): Likewise.
12736 * printcmd.c (address_info, print_frame_args): Likewise.
12737 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12738 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12739 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12740 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12741 * symtab.c (lookup_block_symbol): Likewise.
12742
12743 2003-02-20 Adam Fedor <fedor@gnu.org>
12744
12745 * symtab.h: Remove objc_specific struct
12746 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12747 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12748 Have language_objc use cplus_specific struct.
12749
12750 2003-02-20 Tom Tromey <tromey@redhat.com>
12751
12752 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12753 TYPE_NAME, when printing a String value. PR java/1075.
12754
12755 2003-02-20 Adam Fedor <fedor@gnu.org>
12756
12757 * objc-lang.h (find_methods): Remove declaration.
12758 * objc-lang.c (find_methods): Make static.
12759
12760 2003-02-20 Christopher Faylor <cgf@redhat.com>
12761
12762 * win32-nat.c (get_image_name): Check return value from
12763 ReadProcessMemory.
12764 (child_xfer_memory): Ditto.
12765
12766 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
12767
12768 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12769 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12770 '${exec_prefix}' (in addition to the expansion thereof) as
12771 relocatable.
12772 * configure: Rebuilt.
12773
12774 2003-02-20 David Carlton <carlton@math.stanford.edu>
12775
12776 * symtab.c (search_symbols): Revert the search_symbols part of my
12777 2002-12-23 patch. Add comment.
12778
12779 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12780
12781 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12782 * dbxread.c (elfstab_build_psymtabs): Don't call
12783 install_minimal_symbols.
12784 (stabsect_build_psymtabs): Likewise.
12785 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12786 earlier.
12787 * somread.c (som_symfile_read): Call install_minimal_symbols
12788 and do_cleanups earlier.
12789 * nlmread.c (nlm_symfile_read): Likewise.
12790 * mdebugread.c (elfmdebug_build_psymtabs): Call
12791 install_minimal_symbols and make appropriate cleanups.
12792
12793 2003-02-20 Kevin Buettner <kevinb@redhat.com>
12794
12795 * solib.c (reload_shared_libraries): New function.
12796 (_initialize_solib): Add callbacks for ``set solib-search-path''
12797 and ``set solib-absolute-prefix''.
12798
12799 2003-02-20 David Carlton <carlton@math.stanford.edu>
12800
12801 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12802 expand comment.
12803 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12804 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12805 * ada-typeprint.c (ada_typedef_print): Ditto.
12806 * ax-gdb.c (gen_var_ref): Ditto.
12807 * breakpoint.c (print_one_breakpoint): Ditto.
12808 * buildsym.c (finish_block): Ditto.
12809 * c-valprint.c (c_val_print): Ditto.
12810 * expprint.c (print_subexp): Ditto.
12811 * findvar.c (locate_var_value): Ditto.
12812 * infcmd.c (jump_command): Ditto.
12813 * linespec.c (decode_line_2, decode_compound): Ditto.
12814 * maint.c (maintenance_translate_address): Ditto.
12815 * objc-lang.c (compare_selectors, compare_classes): Ditto.
12816 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12817 Ditto.
12818 * p-valprint.c (pascal_val_print): Ditto.
12819 * stabsread.c (define_symbol): Ditto.
12820 * stack.c (print_frame, frame_info, print_block_frame_locals)
12821 (print_frame_arg_vars, return_command): Ditto.
12822 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12823 * symmisc.c (print_symbol): Ditto.
12824 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12825 (compare_search_syms, print_symbol_info, print_msymbol_info)
12826 (rbreak_command): Ditto.
12827 * tracepoint.c (tracepoints_info): Ditto.
12828 * typeprint.c (typedef_print): Ditto.
12829 * valops.c (value_of_variable, hand_function_call): Ditto.
12830 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12831 * ada-typeprint.c: Update Copyright.
12832 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12833 * tracepoint.c, cli/cli-cmds.c: Ditto.
12834
12835 2003-02-20 Kevin Buettner <kevinb@redhat.com>
12836
12837 * frame.c (generic_unwind_get_saved_register): Make non-static.
12838 * frame.h (generic_unwind_get_saved_register): Declare.
12839 * mips-tdep.c (read_next_frame_reg): Fetch register from
12840 current regcache when frame is NULL.
12841 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12842 that must be NULL.
12843 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12844 instead of frame_register_unwind().
12845
12846 2003-02-20 Andrew Cagney <ac131313@redhat.com>
12847
12848 * remote-sim.c (gdbsim_insert_breakpoint)
12849 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12850 code.
12851
12852 2003-02-20 Andrew Cagney <ac131313@redhat.com>
12853
12854 * remote.c (_initialize_remote): Add commands "set/show remote
12855 hardware-watchpoint-limit" and "set/show remote
12856 hardware-breakpoint-limit".
12857 (remote_hw_watchpoint_limit): Initialize to -1.
12858 (remote_hw_breakpoint_limit): Ditto.
12859 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12860
12861 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12862
12863 * coff-pe-read.c: New file - support reading of minimal symbols from a
12864 portable executable using the export table.
12865 * coff-pe-read.h: New file.
12866 * coffread.c: Include coff-pe-read.h.
12867 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12868 debugging symbols found.
12869 * Makefile.in (SFILES): Add coff-pe-read.o.
12870 (coff_pe_read_h): Define.
12871 (COMMON_OBS): Add coff-pe-read.o.
12872 (coffread.o): Add coff_pe_read_h dependency.
12873 (coff-pe-read.o): New target.
12874
12875 2003-02-19 David Carlton <carlton@math.stanford.edu>
12876
12877 * Makefile.in (SFILES): Add block.c.
12878 (block_h): New.
12879 (COMMON_OBS): Add block.o.
12880 (block.o): New.
12881 (x86-64-tdep.o): Add $(block_h).
12882 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12883 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12884 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12885 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12886 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12887 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12888 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12889 * value.h: Add opaque declaration for struct block.
12890 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12891 * ada-lang.h: Ditto.
12892 * x86-64-tdep.c: #include "block.h"
12893 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12894 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12895 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12896 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12897 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12898 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12899 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12900 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12901 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12902 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12903 * symtab.c (block_function): Ditto.
12904 (contained_in): Ditto.
12905 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12906 block.h. Add opaque declaration for struct block.
12907 * symtab.h: Move block_function and contained_in declarations to
12908 block.h. Add opaque declarations for struct block, struct
12909 blockvector.
12910 (struct block): Move to block.h.
12911 (struct blockvector): Ditto.
12912 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12913 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12914 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12915 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12916 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12917 Ditto.
12918 * block.c: New file.
12919 * block.h: New file.
12920
12921 2003-02-19 Theodore A. Roth <troth@openavr.org>
12922
12923 * avr-tdep.c (avr_extract_return_value): Remove function.
12924 (avr_store_return_value): Remove function.
12925 (avr_extract_struct_value_address): Remove function.
12926 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12927
12928 2003-02-19 Andrew Cagney <ac131313@redhat.com>
12929
12930 * rs6000-tdep.c: Include "gdb_assert.h".
12931 (registers_e500): Add "acc" and "spefscr".
12932 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12933 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12934 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12935 really is "r0".
12936 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12937
12938 2003-02-18 Keith Seitz <keiths@redhat.com>
12939
12940 * Makefile.in: Add gdbtk-interps.c.
12941
12942 2003-02-18 Kevin Buettner <kevinb@redhat.com>
12943
12944 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12945 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12946
12947 2003-02-18 Andrew Cagney <cagney@redhat.com>
12948
12949 * symtab.h (struct objfile): Add opaque declaration.
12950
12951 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
12952
12953 From Jim Ingham <jingham@apple.com>:
12954 * dbxread.c (process_one_symbol): Use last_function_start rather
12955 than function_start_offset to find the real beginning of the
12956 current function. The latter is just the text section offset on
12957 some systems, the former is always the real function start.
12958
12959 2003-02-17 Andrew Cagney <cagney@redhat.com>
12960
12961 * configure.in: Revert ${target} != ${host}.
12962
12963 2003-02-17 Andrew Cagney <ac131313@redhat.com>
12964
12965 * configure.in (Makefile): Use the test ${target} != ${host},
12966 instead of the absence of the "nm.h" file, to determine of the
12967 configuration non-native.
12968 * configure: Regenerate.
12969
12970 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
12971
12972 From Brian Ford <ford@vss.fsi.com>
12973
12974 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12975 conditionalize tui_active test.
12976 (lookup_cmd_1): Ditto.
12977
12978 2003-02-14 Mark Kettenis <kettenis@gnu.org>
12979
12980 * configure.in: Add check for _etext.
12981 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12982 available.
12983 * config.in, configure: regenerated.
12984
12985 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
12986
12987 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12988
12989 2003-02-14 Andrew Cagney <ac131313@redhat.com>
12990
12991 * main.c (tui_version): Delete variable.
12992 (captured_main): When --tui, set interpreter_p to "tui" instead of
12993 enabling tui_version.
12994 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12995 tui_version.
12996 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12997 * cli/cli-cmds.c (disassemble_command): Ditto.
12998 * defs.h (tui_version): Delete declaration.
12999 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
13000 (tui-interp.o): Add rules.
13001 (SUBDIR_TUI_OBS): Add "tui-interp.o".
13002
13003 2003-02-14 Christopher Faylor <cgf@redhat.com>
13004
13005 * win32-nat.c (register_loaded_dll): Correctly set address range for
13006 just-loaded dll.
13007
13008 2003-02-12 Jason Molenda (jmolenda@apple.com)
13009
13010 * symmisc.c (print_objfile_statistics): Include information about
13011 the number of psymtabs and symtabs in each object file.
13012
13013 2003-02-13 Keith R Seitz <keiths@redhat.com>
13014
13015 * main.h (struct captured_main_args): Add interpreter_p.
13016 * main.c (captured_main): Initialize interpreter_p from context.
13017 * gdb.c (main): Set interpreter_p argument.
13018 * Makefile.in (gdb.o): Add dependency for interps.h.
13019
13020 2003-02-12 Andrew Cagney <ac131313@redhat.com>
13021
13022 * event-top.c (cli_command_loop): Delete declaration.
13023 (_initialize_event_loop): Delete function setting event_loop_hook.
13024 * event-top.h (cli_command_loop): Declare. Update copyright.
13025 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
13026 * interps.c (current_interp_command_loop): When event_loop_p, call
13027 cli_command_loop.
13028
13029 2003-02-12 Andrew Cagney <ac131313@redhat.com>
13030
13031 * interps.h (interp_command_loop_ftype): Change return type to
13032 void.
13033
13034 2003-02-12 Michal Ludvig <mludvig@suse.cz>
13035
13036 * x86-64-tdep.c (x86_64_extract_return_value)
13037 (x86_64_store_return_value): Use regcache instead of regbuf.
13038 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
13039 * x86-64-linux-nat.c (fill_gregset): Use regcache.
13040
13041 2003-02-11 Andrew Cagney <ac131313@redhat.com>
13042
13043 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
13044 * aclocal.m4: Regenerate.
13045 * configure: Regenerate.
13046
13047 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
13048 TCL_LD_SEARCH_FLAGS.
13049
13050 2003-02-10 Michal Ludvig <mludvig@suse.cz>
13051
13052 * dwarf2cfi.c: Reindented.
13053
13054 2003-02-09 Andrew Cagney <ac131313@redhat.com>
13055
13056 * interps.c (clear_interpreter_hooks): Convert function definition
13057 to ISO C.
13058
13059 2003-02-07 David Carlton <carlton@math.stanford.edu>
13060
13061 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
13062
13063 2003-02-07 Kevin Buettner <kevinb@redhat.com>
13064
13065 * gdbtypes.h (struct main_type): Move ``length'' field from here...
13066 (struct type): ...to here.
13067 (TYPE_LENGTH): Adjust to reflect different location of ``length''
13068 field.
13069 * gdbtypes.c (make_qualified_type): Set length on newly created type.
13070 (replace_type): Set length on all type variants for a given type.
13071
13072 2003-02-07 Andrew Cagney <ac131313@redhat.com>
13073
13074 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
13075 <sys/stat.h>.
13076 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
13077
13078 2003-02-06 Andrew Cagney <ac131313@redhat.com>
13079
13080 * Makefile.in (symm-nat.o): Update dependencies.
13081 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
13082 (lynx-nat.o, ia64-linux-nat.): Ditto.
13083 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
13084 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
13085 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
13086
13087 * Makefile.in (inflow_h): Define.
13088 (procfs.o, inflow.o, procfs.o): Update dependencies.
13089 * inftarg.c (child_stop): Delete extern declaration of
13090 inferior_process_group. Include "inflow.h".
13091 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
13092 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
13093 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
13094 (our_process_group, inferior_process_group): Extern declarations.
13095
13096 * procfs.c: Include "gdb_assert.h".
13097
13098 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
13099 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
13100 * jv-typeprint.c (java_type_print_base): Ditto.
13101 * typeprint.c (typedef_print): Eliminate STREQ.
13102 * cli/cli-script.c (define_command, define_command): Ditto.
13103 * main.c (captured_main): Ditto.
13104 * values.c (lookup_internalvar): Ditto.
13105 * utils.c (safe_strerror, parse_escape): Eliminate assignment
13106 within `if' conditional.
13107 * linespec.c (decode_line_2): Ditto.
13108 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
13109 (bfd_openw_with_cleanup): Ditto.
13110
13111 2003-02-07 Mark Kettenis <kettenis@gnu.org>
13112
13113 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
13114 legacy_extract_return_value and store_return_value to
13115 legacy_return_value.
13116
13117 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
13118
13119 * win32-nat.c (get_relocated_section_addrs): New function. Find
13120 section load addresses for symbol handling in relocated DLLs.
13121 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
13122
13123 2003-02-05 Fred Fish <fnf@intrinsity.com>
13124
13125 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
13126 '=' and '!='.
13127 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
13128 with '&' and '=='.
13129 (angel_RDI_info): Ditto.
13130 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
13131 with '&' and '!='.
13132 (threads_continue_all_with_signals): Ditto.
13133
13134 2003-02-05 Jim Ingham <jingham@apple.com>
13135 Keith Seitz <keiths@redhat.com>
13136 Elena Zannoni <ezannoni@redhat.com>
13137 Andrew Cagney <ac131313@redhat.com>
13138
13139 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
13140 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
13141 (SUBDIR_MI_OBS): Add "mi-interp.o".
13142 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
13143 (SFILES): Add "interps.c".
13144 (COMMON_OBS): Add "interps.o".
13145 (interps_h, mi_main_h): Define.
13146 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
13147 (mi-main.o, main.o, event-top.o): Update dependencies.
13148 * cli/cli-interp.c: New file.
13149 * interps.h, interps.c: New files.
13150 * top.c: (gdb_init): Don't install the default interpreter, handed
13151 by captured_main.
13152 * main.c: Include "interps.h".
13153 (interpreter_p): Note that it should malloc'ed.
13154 (captured_command_loop): Call current_interp_command_loop.
13155 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
13156 xfree and xstrdup when updating interpreter_p. Install the
13157 default interpreter. Add hack to stop mi1's copyright notice
13158 being encoded.
13159 * event-top.h (gdb_setup_readline): Declare.
13160 (gdb_disable_readline): Declare.
13161 * event-top.c: Include "interps.h".
13162 (display_gdb_prompt): Call current_interp_display_prompt_p.
13163 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
13164 gdb_stdlog, and gdb_stdtarg.
13165 (_initialize_event_loop): Don't call gdb_setup_readline.
13166 * cli-out.c (cli_out_set_stream): New function.
13167 * cli-out.h (cli_out_set_stream): Declare.
13168
13169 2003-02-06 Mark Kettenis <kettenis@gnu.org>
13170
13171 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
13172 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
13173 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
13174 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
13175 config/i386/i386v42mp.mt: Removed.
13176
13177 2003-02-05 Mark Kettenis <kettenis@gnu.org>
13178
13179 * configure.tgt (*-*-solaris*): Set gdb_osabi to
13180 GDB_OSABI_SOLARIS.
13181
13182 2003-02-05 Michael Chastain <mec@shout.net>
13183
13184 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
13185 2.12.1 and earlier versions.
13186
13187 2003-02-05 Andrew Cagney <ac131313@redhat.com>
13188
13189 Remove orphaned hosts, targets and files.
13190 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
13191 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
13192 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
13193 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
13194 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
13195 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
13196 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
13197 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
13198 * config/sparc/tm-sp64sim.h: Delete.
13199 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
13200 hosts.
13201 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
13202 mips*-dec-mach3* targets.
13203
13204 2003-02-04 Michael Chastain <mec@shout.net>
13205
13206 * NEWS: Fix typo: sepcifying -> specifying.
13207
13208 2003-02-04 Michael Chastain <mec@shout.net>
13209
13210 * dwarfread.c: Add documentation on the state of dwarf-1,
13211 looking towards obsoletion.
13212
13213 2003-02-03 Michael Chastain <mec@shout.net>
13214
13215 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
13216 gdb/testsuite/gdb.c++/pr-1023.exp.
13217
13218 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13219
13220 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13221 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13222
13223 * utils.c (init_page_info): Delete reference to MPW in comments.
13224 * main.c (captured_main): Delete #ifdef MPW.
13225
13226 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13227
13228 * NEWS: Note that the m32r-*-elf* is obsolete.
13229 * monitor.c (monitor_expect): Obsolete reference to m32r.
13230 * configure.tgt: Mark m32r-*-elf* as obsolete.
13231 * MAINTAINERS: Mark m32k as obsolete.
13232 * m32r-rom.c: Obsolete file.
13233 * config/m32r/m32r.mt: Obsolete file.
13234 * config/m32r/tm-m32r.h: Obsolete file.
13235 * m32r-stub.c: Obsolete file.
13236 * m32r-tdep.c: Obsolete file.
13237
13238 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13239
13240 * NEWS: Mention that the z8k-zilog-none is obsolete.
13241 * MAINTAINERS: Mark z8k as obsolete.
13242 * configure.tgt: Obsolete the z8k-*-coff* target.
13243 * config/z8k/z8k.mt: Obsolete file.
13244 * config/z8k/tm-z8k.h: Obsolete file.
13245 * z8k-tdep.c: Obsolete file.
13246
13247 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13248
13249 * NEWS: Mention that the mn10200-elf is obsolete.
13250 * configure.tgt: Obsolete mn10200-*-* target.
13251 * breakpoint.c (update_breakpoints_after_exec): Update comment to
13252 mention that the mn10200 is obsolete.
13253 * breakpoint.h: Ditto.
13254 * MAINTAINERS: Mark the mn10200-elf as obsolete.
13255 * config/mn10200/mn10200.mt: Obsolete file.
13256 * config/mn10200/tm-mn10200.h: Obsolete file.
13257 * mn10200-tdep.c: Obsolete file.
13258
13259 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13260
13261 * MAINTAINERS: Mark h8500 as obsolete.
13262 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13263 * findvar.c (value_from_register): Ditto.
13264 * h8500-tdep.c: Mark file as obsolete.
13265 * config/h8500/h8500.mt: Ditto.
13266 * config/h8500/tm-h8500.h: Ditto.
13267 * NEWS: Mention that h8500 is obsolete.
13268
13269 2003-02-04 David Carlton <carlton@math.stanford.edu>
13270
13271 * objfiles.c (allocate_objfile): Always set name. Add comment at
13272 start of function.
13273 * jv-lang.c (get_dynamics_objfile): Add comment.
13274
13275 2003-02-04 David Carlton <carlton@math.stanford.edu>
13276
13277 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13278 * printcmd.c (build_address_symbolic): Replace uses of
13279 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13280 SYMBOL_NAME, and asm_demangle.
13281 Update copyright.
13282
13283 2003-02-04 David Carlton <carlton@math.stanford.edu>
13284
13285 * linespec.c (decode_compound): Extract code into
13286 lookup_prefix_sym.
13287 (lookup_prefix_sym): New function.
13288
13289 2003-02-04 David Carlton <carlton@math.stanford.edu>
13290
13291 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13292 FLOAT_COERCION_BADNESS.
13293 * gdbtypes.c (rank_one_type): Replace all uses of
13294 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13295
13296 2003-02-04 Jim Blandy <jimb@redhat.com>
13297
13298 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13299 section, let dwarf_macinfo_section point to it, not
13300 dwarf_loc_section.
13301
13302 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
13303
13304 Pointed out by Anton Blanchard <anton@samba.org>.
13305 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13306 (ppc_linux_at_sigtramp_return_path): Use it.
13307
13308 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
13309
13310 * defs.h (streq): Add prototype.
13311 * utils.c (streq): New function.
13312
13313 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13314 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13315 * mdebugread.c (new_symbol): Likewise.
13316 * stabsread.c (define_symbol): Likewise.
13317 * coffread.c (process_coff_symbol): Likewise.
13318 * dwarfread.c (new_symbol): Likewise.
13319
13320 * minsyms.c (prim_record_minimal_symbol_and_info): Use
13321 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
13322 here.
13323 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13324 SYMBOL_INIT_DEMANGLED_NAME.
13325 * objfiles.c: Include "hashtab.h".
13326 (allocate_objfile): Call htab_set_functions_ex for the
13327 demangled_names_hash.
13328 (free_objfile): Call htab_delete for the demangled_names_hash.
13329 * objfiles.h (struct htab): Add declaration.
13330 (struct objfile): Add demangled_names_hash.
13331 * symfile.c: Include "hashtab.h".
13332 (reread_symbols): Call htab_delete for the demangled_names_hash.
13333 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13334 SYMBOL_NAME in the bcache.
13335 * symtab.c: Include "hashtab.h". Update comments.
13336 (create_demangled_names_hash, symbol_set_names): New functions.
13337 (symbol_find_demangled_name): New function, broken out from
13338 symbol_init_demangled_names.
13339 (symbol_init_demangled_names): Use it.
13340 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13341 (SYMBOL_SET_NAMES): New macro.
13342 (symbol_set_names): Add prototype.
13343
13344 2003-02-03 Jim Blandy <jimb@redhat.com>
13345
13346 Use a single, consistent representation for an empty minimal
13347 symbol table in an objfile.
13348 * objfiles.c (terminate_minimal_symbol_table): New function.
13349 (allocate_objfile): Call it.
13350 * objfiles.h (terminate_minimal_symbol_table): New declaration.
13351 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
13352 non-NULL.
13353 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13354 objfile has minimal symbols, compare minimal_symbol_count to zero,
13355 instead of comparing msymbols with NULL.
13356 * objfiles.c (have_minimal_symbols): Same.
13357 * solib-sunos.c (solib_add_common_symbols): Call
13358 terminate_minimal_symbol_table.
13359 * symfile.c (reread_symbols): Same.
13360
13361 2003-02-03 Kevin Buettner <kevinb@redhat.com>
13362
13363 * s390-tdep.c (s390_address_class_type_flags)
13364 (s390_address_class_type_flags_to_name)
13365 (s390_address_class_name_to_type_flags): New functions.
13366 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13367 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13368
13369 2003-02-03 Michael Snyder <msnyder@redhat.com>
13370
13371 * arm-tdep.c: Fix spell-o in comment.
13372
13373 2003-02-03 Michal Ludvig <mludvig@suse.cz>
13374
13375 * dwarf2cfi.c (pointer_encoding): Added new parameter.
13376 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
13377 error messages to contain BFD filename.
13378
13379 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
13380
13381 Fix PR gdb/742 gdb/743 gdb/877
13382 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13383 (do_mixed_source_and_assembly): Use
13384 make_cleanup_ui_out_tuple_begin_end and
13385 make_cleanup_ui_out_tuple_begin_end.
13386 (do_mixed_source_and_assembly): Ditto.
13387 * thread.c (do_captured_list_thread_ids): Ditto.
13388 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13389 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13390 ui_out_tuple_end): Delete prototypes.
13391 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13392 ui_out_list_end, ui_out_tuple_end): Delete.
13393
13394 From Kevin Buettner <kevinb@redhat.com>:
13395 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
13396 * ui-out.c (make_cleanup_ui_out_table_begin_end)
13397 (do_cleanup_table_end): New functions.
13398 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13399 Use cleanups to invoke_ui_out_tuple_end().
13400 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
13401 * cli/cli-setshow.c (cmd_show_list): Use
13402 make_cleanup_ui_out_tuple_begin_end.
13403
13404 2003-02-02 Andrew Cagney <ac131313@redhat.com>
13405
13406 * frame.c (frame_unwind_register): New function.
13407 (frame_unwind_unsigned_register): Use.
13408 (frame_unwind_signed_register): Use.
13409 (frame_read_register): New function.
13410 * frame.h (frame_unwind_register): Declare.
13411 (frame_read_register): Declare.
13412
13413 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13414 and frame_unwind_register instead of read_memory, write_register
13415 and deprecated_write_register_bytes.
13416
13417 2003-02-02 Andrew Cagney <ac131313@redhat.com>
13418
13419 * frame.h: Note that namelen can be negative.
13420 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13421 NAME's length.
13422
13423 * NEWS: Mention that the d10v's `regs' command is deprecated.
13424 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13425 (d10v_print_registers_info): New function.
13426 (show_regs): Call d10v_print_registers_info.
13427 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13428
13429 2003-02-02 Mark Kettenis <kettenis@gnu.org>
13430
13431 * stack.c (print_frame_info): Restore call to annotate_frame_begin
13432 lost in the previous patch.
13433
13434 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13435
13436 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
13437 * stack.c (print_frame_info_base): Output complete FRAME tuple
13438 for synthesized frames.
13439
13440 2003-02-02 Andrew Cagney <ac131313@redhat.com>
13441
13442 * mips-nat.c (zerobuf): Delete.
13443 (fetch_inferior_registers): Alloc local zerobuf.
13444 (fetch_core_registers): Alloc local zerobuf.
13445 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13446 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13447 * thread-db.c (thread_db_store_registers): Ditto.
13448 * sh-tdep.c (sh_do_register): Ditto.
13449 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13450 * remote-sim.c (gdbsim_store_register): Ditto.
13451 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13452 * remote-e7000.c (fetch_regs_from_dump): Ditto.
13453 * monitor.c (monitor_supply_register): Ditto.
13454 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13455 * mips-nat.c (fetch_inferior_registers): Ditto.
13456 * m68klinux-nat.c (fetch_register): Ditto.
13457 * lynx-nat.c (fetch_inferior_registers): Ditto.
13458 (fetch_inferior_registers): Ditto.
13459 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13460 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13461 (hpux_thread_store_registers): Ditto.
13462 * hppah-nat.c (fetch_register): Ditto.
13463 * hppab-nat.c (fetch_register): Ditto.
13464 * hppa-tdep.c (pa_register_look_aside): Ditto.
13465 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13466 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13467
13468 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13469
13470 * gdbarch.sh: Explictly specify all method levels. When a
13471 variable with an empty level, provide a non-multi-arch default.
13472 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13473 * gdbarch.h: Re-generate.
13474 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13475 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13476
13477 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13478
13479 * defs.h (host_pointer_to_address): Delete declaration.
13480 (address_to_host_pointer): Delete declaration.
13481 * utils.c (host_pointer_to_address): Delete function.
13482 (address_to_host_pointer): Delete function.
13483 * procfs.c (procfs_address_to_host_pointer): New function.
13484 * procfs.c (proc_set_watchpoint): Use.
13485 (procfs_can_use_hw_breakpoint): Update comments.
13486 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13487 (som_solib_add): Use.
13488 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13489 * hppa-tdep.c (unwind_command): Use.
13490
13491 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13492
13493 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13494 strlen d_name.
13495
13496 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13497 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13498 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13499 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13500 (define_symbol): Update.
13501 * symfile.c (generic_load): Remove references to nindy.
13502 * symtab.c: Remove references to nindy.
13503
13504 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13505
13506 * infcmd.c (print_float_info): Delete code conditional on
13507 FLOAT_INFO.
13508 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13509 * config/m68k/nm-apollo68b.h: Ditto.
13510 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13511 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13512 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13513
13514 2003-02-01 Mark Kettenis <kettenis@gnu.org>
13515
13516 * config/i386/tm-i386os9k.h: Removed.
13517
13518 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13519 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13520 they're identical to i[3456]86-*-sysv* now.
13521 * config/i386/i386v32.mh: Removed.
13522 * config/i386/xm-i386v32.h: Removed.
13523 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13524
13525 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13526
13527 * config/i386/i386dgux.mh: Removed.
13528 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13529
13530 * configure.in: Fix typo.
13531 * configure: Regenerated.
13532
13533 2003-01-31 David Carlton <carlton@math.stanford.edu>
13534
13535 * dwarf2read.c (dwarf2_locate_sections): Set
13536 dwarf_ranges_section.
13537
13538 2003-01-31 Andrew Cagney <ac131313@redhat.com>
13539
13540 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13541 * utils.c: Update comments documenting legitimate uses of PTR.
13542
13543 * utils.c: Re-indent.
13544
13545 * config/djgpp/fnchange.lst: Delete nindy files.
13546 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13547 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13548 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13549 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13550 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13551 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13552 * Makefile.in (init.c): Remove nindy references.
13553 (saber_gdb): Delete rule.
13554 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13555 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13556 and a68v-nat.c.
13557 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13558 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13559 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13560 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13561 nindy-share/stop.h.
13562 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13563 * saber.suppress: Delete file.
13564
13565 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
13566
13567 * dbxread.c (stabs_data): New static variable.
13568 (fill_symbuf): Support an in-memory buffer for stabs data.
13569 (stabs_seek): New function.
13570 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13571 (read_ofile_symtab): Use stabs_seek.
13572 (elfstab_build_psymtabs): Take an asection* instead of
13573 an offset and size. Relocate the stabs data if necessary.
13574 Save the section* for dbx_psymtab_to_symtab.
13575 * dwarf2read.c: Add section variables for each debug section.
13576 (dwarf2_locate_sections): Fill them in.
13577 (dwarf2_read_section): Take an asection* argument.
13578 Relocate the section contents if necessary.
13579 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13580 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13581 it to dwarf2_read_section.
13582 (dwarf2_build_frame_info): Update callers.
13583 * elfread.c (elf_symfile_read): Update call to
13584 elfstab_build_psymtabs.
13585 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13586 (DBX_STAB_SECTION): New macro.
13587 * stabsread.h (elfstab_build_psymtabs): Update prototype.
13588 * symfile.c (symfile_dummy_outputs): New function.
13589 (symfile_relocate_debug_section): New function.
13590 * symfile.h (symfile_relocate_debug_section): Add prototype.
13591
13592 2003-01-31 Richard Henderson <rth@redhat.com>
13593
13594 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13595 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13596 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13597 * alpha-tdep.c (alpha_register_name): Add "unique".
13598 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13599 (ALPHA_UNIQUE_REGNUM): New.
13600 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13601
13602 2003-01-31 Andrew Cagney <ac131313@redhat.com>
13603
13604 * README: Remove reference to Ericsson 1800 monitor.
13605 * Makefile.in (remote-es.o): Delete rule.
13606 (ALLDEPFILES): Delete remote-es.c.
13607 * remote-es.c: Delete file.
13608 * config/m68k/es1800.mt: Delete file.
13609 * config/djgpp/fnchange.lst: Update.
13610 * configure.tgt: Delete m68*-ericsson-* target.
13611
13612 2003-01-31 Adam Fedor <fedor@gnu.org>
13613
13614 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13615 Remove duplicate/shadowing variable of same name.
13616
13617 2003-01-30 Jim Blandy <jimb@redhat.com>
13618
13619 * symfile.c (find_separate_debug_file): Assert that the objfile's
13620 directory name we compute ends with a slash, and then assume that
13621 that's so everywhere we use it.
13622
13623 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
13624
13625 * valops.c (value_assign): Flush frame cache after stores to memory
13626 also.
13627
13628 2003-01-30 Andrew Cagney <ac131313@redhat.com>
13629
13630 * Makefile.in (mon960-rom.o): Delete rule.
13631 * mon960-rom.c: Delete file.
13632
13633 2003-01-30 Andrew Cagney <ac131313@redhat.com>
13634
13635 * d10v-tdep.c: Include "frame-unwind.h".
13636 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13637 list.
13638 (next_addr, uses_frame): Delete.
13639 (struct d10v_unwind_cache): Define.
13640 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13641 Use info instead of next_addr and uses_frame globals.
13642 (d10v_frame_init_saved_regs): Delete function.
13643 (d10v_init_extra_frame_info): Delete function.
13644 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13645 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13646 init_frame_pc or frame_saved_pc.
13647 (d10v_pop_frame): Delete function.
13648 (do_d10v_pop_frame): Delete function.
13649 (d10v_frame_chain): Delete function.
13650 (d10v_frame_chain_valid): Delete function.
13651 (d10v_frame_pc_unwind): New function.
13652 (d10v_frame_id_unwind): New function.
13653 (saved_regs_unwinder): New function.
13654 (d10v_frame_register_unwind): New function.
13655 (d10v_frame_pop): New function.
13656 (d10v_frame_unwind): New variable.
13657 (d10v_frame_p): New function.
13658 (d10v_frame_saved_pc): Delete function.
13659 * Makefile.in (d10v-tdep.o): Update dependencies.
13660
13661 2003-01-30 J. Brobecker <brobecker@gnat.com>
13662
13663 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13664 causing some regressions due to a change in the default value
13665 for this macro.
13666
13667 2003-01-29 Richard Henderson <rth@redhat.com>
13668 Elena Zannoni <ezannoni@redhat.com>
13669 Daniel Jacobowitz <drow@mvista.com>
13670
13671 Fix PR gdb/961.
13672 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
13673 variables.
13674 (RANGES_SECTION): New.
13675 (dwarf_ranges_buffer): New variable.
13676 (struct comp_unit_head): Add member "die".
13677 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13678 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13679 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13680 (dwarf2_locate_sections): Likewise.
13681 (dwarf2_build_psymtabs): Read .debug_ranges.
13682 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13683 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13684 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13685 Look for DW_AT_ranges and return the bounding box.
13686
13687 2003-01-29 Brian Ford <ford@vss.fsi.com>
13688
13689 * win32-nat.c (cygwin_pid): Removed as unused.
13690 (child_attach): Try fall back to Cygwin pid.
13691
13692 2003-01-29 Jim Blandy <jimb@redhat.com>
13693
13694 * objfiles.h (struct objfile): Doc fix.
13695
13696 2003-01-29 Andrew Cagney <ac131313@redhat.com>
13697
13698 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13699 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13700 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13701 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13702 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13703 (FRAME_SAVED_PC): Change to a function with predicate.
13704 * gdbarch.h, gdbarch.c: Re-generate.
13705
13706 2003-01-28 Andrew Cagney <ac131313@redhat.com>
13707
13708 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13709
13710 * complaints.c (complain): Delete function.
13711 * complaints.h (struct deprecated_complaint): Delete definition.
13712 (complain): Delete declaration.
13713
13714 2003-01-28 Kevin Buettner <kevinb@redhat.com>
13715
13716 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13717 dummy frames.
13718
13719 2003-01-27 Andrew Cagney <ac131313@redhat.com>
13720
13721 * sentinel-frame.h, sentinel-frame.c: New files.
13722 * Makefile.in (frame.o): Update dependencies.
13723 (SFILES): Add sentinel-frame.c.
13724 (sentinel_frame_h): Define.
13725 (COMMON_OBS): Add sentinel-frame.o.
13726 (sentinel-frame.o): Specify dependencies.
13727 * frame.c: Include "sentinel-frame.h".
13728 (frame_register_unwind): Rewrite assuming that there is always a a
13729 ->next frame.
13730 (frame_register, generic_unwind_get_saved_register): Ditto.
13731 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13732 (create_sentinel_frame, unwind_to_current_frame): New functions.
13733 (get_current_frame): Rewrite using create_sentinel_frame and
13734 unwind_to_current_frame. When possible, always create a frame.
13735 (create_new_frame): Set next to the sentinel frame.
13736 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13737 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13738 ID cache when necessary.
13739 (frame_saved_regs_id_unwind): Use frame_relative_level.
13740 (deprecated_generic_get_saved_register): Use frame_relative_level,
13741 get_frame_saved_regs, get_frame_pc, get_frame_base and
13742 get_next_frame.
13743 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13744 frame_register.
13745
13746 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13747
13748 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13749
13750 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13751
13752 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13753 (maintenance_set_profile_cmd): Use error () instead of warning ().
13754
13755 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13756
13757 * configure.in: Check that -pg works if using --enable-profiling.
13758 Check for monstartup and _mcleanup regardless of --enable-profiling.
13759 * maint.c: Check for monstartup and _mcleanup before using them.
13760 * config.in: Regenerated.
13761 * configure: Regenerated.
13762
13763 2003-01-24 Nick Clifton <nickc@redhat.com>
13764
13765 * Add sh2e support:
13766
13767 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13768
13769 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13770 (sh2e_show_regs): New.
13771 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13772 * config/sh/tm-sh.h: Added sh2e to comments.
13773
13774 2003-01-23 Jim Blandy <jimb@redhat.com>
13775
13776 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13777 symbols found)" message here; we haven't checked for a separate
13778 debug info file yet, so we don't know yet.
13779 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13780 we've looked everywhere. Also, there's no need to print a special
13781 message when we're loading the separate debug info file: the one
13782 symbol_file_add prints is fine.
13783
13784 2003-01-23 Alexander Larsson <alexl@redhat.com>
13785 Jim Blandy <jimb@redhat.com>
13786
13787 Add support for executables whose debug info has been separated
13788 out into a separate file, leaving only a link behind.
13789 * objfiles.h (struct objfile): New fields: separate_debug_objfile
13790 and separate_debug_objfile_backlink.
13791 (put_objfile_before): New declaration.
13792 * symfile.c: #include "filenames.h".
13793 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13794 debug info in a separate file, read that, too. Save the addrs
13795 argument, so we can use it again to read the separated debug info;
13796 syms_from_objfile modifies the table we pass it.
13797 (reread_symbols): After re-reading an objfile, call
13798 reread_separate_symbols to refresh its separate debug info
13799 objfile, if it has one.
13800 (reread_separate_symbols, find_separate_debug_file,
13801 get_debug_link_info, separate_debug_file_exists): New functions.
13802 (debug_file_directory): New global var.
13803 (_initialize_symfile): Initialize debug_file_directory, and
13804 provide the new `set debug-file-directory' command to let the user
13805 change it.
13806 * objfiles.c (free_objfile): If this objfile has its debug info in
13807 a separate objfile, free that one too. If this is itself a
13808 separate debug info objfile, clear our parent's backlink.
13809 (put_objfile_before): New function.
13810 * utils.c (gnu_debuglink_crc32): New function.
13811 * defs.h (gnu_debuglink_crc32): New declaration.
13812 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13813 * configure.in: Handle --with-separate-debug-dir config option.
13814 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13815 * acconfig.h (DEBUGDIR): New macro.
13816 * configure, aclocal.m4, config.in: Regenerated.
13817
13818 2003-01-22 Jim Blandy <jimb@redhat.com>
13819
13820 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13821 like the old symbol_file_add, but taking new arguments: you can
13822 now pass in either a `struct section_addr_info' list to say where
13823 each section is loaded, or a `struct section_offsets' table. Pass
13824 these new arguments through to syms_from_objfile as appropriate.
13825 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
13826 with the appropriate quiescent values for the new arguments.
13827
13828 * symfile.c: #include "gdb_assert.h".
13829 (syms_from_objfile): Add the ability to pass in a section offset
13830 table directly, as an alternative to the section_addr_info table.
13831 Document arguments better.
13832 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13833 * symfile.h (syms_from_objfile): Update declaration.
13834 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13835 syms_from_objfile.
13836 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13837
13838 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
13839
13840 Original patch by Tom Tromey <tromey@cygnus.com> and
13841 Jason Molenda <jmolenda@apple.com>.
13842 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13843 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13844 * NEWS: Mention profiling.
13845 * configure.in (--enable-gdbtk): Fix typo.
13846 (--enable-profiling): New. Set PROFILE_CFLAGS.
13847 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13848 Fill in function.
13849 (profiling_state): New variable.
13850 (mcleanup_wrapper): New function.
13851 (_initialize_maint): Remove NOTYET, fix call to
13852 add_setshow_boolean_cmd for "maint set profile".
13853 * configure: Regenerated.
13854
13855 2003-01-21 Martin M. Hunt <hunt@redhat.com>
13856
13857 * Makefile.in (install-gdbtk): Install PNG images too.
13858
13859 2003-01-21 Andrew Cagney <ac131313@redhat.com>
13860
13861 * exec.c (text_start): Delete global variable.
13862 (exec_file_attach): Make text_start local to the function.
13863 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13864 * valops.c (hand_function_call): Delete code that handles
13865 BEFORE_TEXT_END and AFTER_TEXT_END.
13866 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13867 of CALL_DUMMY_LOCATION.
13868 * gdbarch.c: Regenerate.
13869 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13870 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13871 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13872 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13873 (text_end): Delete extern declaration.
13874
13875 2003-01-21 Andrew Cagney <ac131313@redhat.com>
13876
13877 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13878 * blockframe.c (backtrace_below_main): Move to "frame.c".
13879 (frame_chain_valid): Delete check for backtrace_below_main.
13880 (_initialize_blockframe): Delete initialization, move ``set
13881 backtrace-below-main'' command to "frame.c".
13882 (do_flush_frames_sfunc): Delete function.
13883 * frame.c: Include "command.h" and "gdbcmd.h".
13884 (frame_type_from_pc): New function.
13885 (create_new_frame): Use frame_type_from_pc.
13886 (legacy_get_prev_frame): New function.
13887 (get_prev_frame): Rewrite. When an old style frame, call
13888 legacy_get_prev_frame. Otherwize, unwind the PC first.
13889 (_initialize_frame): Add ``set backtrace-below-main'' command.
13890 * Makefile.in (frame.o): Update dependencies.
13891
13892 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13893
13894 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13895 DEPRECATED_REGISTERS_INFO.
13896
13897 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13898
13899 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13900 Maintainers'. Update `Various Maintainers'.
13901
13902 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13903
13904 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13905 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13906 Suppress actual parameters when `-'.
13907 * gdbarch.h, gdbarch.c: Regenerate.
13908
13909 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13910
13911 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13912 code handling dummy frames.
13913
13914 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13915
13916 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13917 (struct frame_unwind): Add field pop.
13918 * frame.h (frame_pop): Declare.
13919 * frame.c (frame_saved_regs_pop): New function.
13920 (trad_frame_unwinder): Add frame_saved_regs_pop.
13921 (frame_pop): New function.
13922 * dummy-frame.c (dummy_frame_pop): New function.
13923 (discard_innermost_dummy): New function.
13924 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13925 (dummy_frame_unwind): Add dummy_frame_pop.
13926 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13927 * valops.c (hand_function_call): Ditto.
13928 * stack.c (return_command): Ditto.
13929
13930 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13931
13932 * cris-tdep.c: Fix function declaration indentation.
13933 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13934 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13935 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13936 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13937 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13938 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13939
13940 2003-01-18 Michael Chastain <mec@shout.net>
13941
13942 * README (Unpacking and Installation -- quick overview):
13943 Warn against ".../gdb-5.3/gdb/configure".
13944
13945 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13946
13947 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13948 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13949 (struct frame_unwind): Declare opaque.
13950 (dummy_frame_p): Declare function.
13951 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13952 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13953 * dummy-frame.c: Include "frame-unwind.h".
13954 (dummy_frame_p): New function.
13955 (dummy_frame_unwind): New variable.
13956 * frame.c: Include "frame-unwind.h".
13957 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13958 to use the new unwind field.
13959 (set_unwind_by_pc): Delete function.
13960 (create_new_frame, get_prev_frame): Set unwind field using
13961 frame_unwind_find_by_pc.
13962 (trad_frame_unwind, trad_frame_unwinder): New variables.
13963 * frame.h (trad_frame_unwind): Declare variable.
13964 (frame_id_unwind_ftype): Delete declaration.
13965 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13966 (struct frame_unwind): Declare opaque.
13967 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13968 register_unwind with a single unwind pointer.
13969 * frame-unwind.h, frame-unwind.c: New files.
13970 * Makefile.in (SFILES): Add frame-unwind.c.
13971 (frame_unwind_h): Define.
13972 (COMMON_OBS): Add frame-unwind.o.
13973 (frame-unwind.o): Specify dependencies.
13974 (frame.o, dummy-frame.o): Update dependencies.
13975
13976 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13977
13978 * ada-valprint.c: Eliminate PTR.
13979 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13980 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13981 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13982 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13983 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13984 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13985 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
13986
13987 2003-01-17 Andrew Cagney <ac131313@redhat.com>
13988
13989 * main.c (captured_main): Don't use PTR.
13990 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13991 * gdbtypes.c (lookup_primitive_typename): Ditto.
13992 (lookup_struct_elt_type): Ditto.
13993 * f-valprint.c (info_common_command): Ditto.
13994 (list_all_visible_commons): Ditto.
13995 * jv-typeprint.c (java_type_print_base): Ditto.
13996
13997 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13998 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13999 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
14000 i386-interix-nat.c and i386-interix-tdep.c. Rename
14001 m68klinux-nat.c and m68klinux-tdep.c. Rename
14002 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
14003 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
14004 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
14005 * main.c (captured_main): Use xfree, not free.
14006
14007 2003-01-16 Andrew Cagney <ac131313@redhat.com>
14008
14009 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
14010 ID back using a parameter.
14011 * frame.c (frame_id_unwind): Update call.
14012 (frame_saved_regs_id_unwind): Update.
14013 * dummy-frame.c (dummy_frame_id_unwind): Update function.
14014 * dummy-frame.h (struct frame_id): Add opaque declaration.
14015 (dummy_frame_id_unwind): Update declaration.
14016
14017 2003-01-15 Andrew Cagney <ac131313@redhat.com>
14018
14019 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
14020
14021 2003-01-15 Stephen P. Smith <ischis2@cox.net>
14022
14023 * MAINTAINERS (Stephen P. Smith): Updated email address.
14024
14025 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
14026
14027 Fix PR gdb/898
14028 * breakpoint.c (until_break_command): Add new argument. Use it to
14029 decide whether to stop only at the current frame or not.
14030 * breakpoint.h (until_break_command): Update prototype.
14031 * infcmd.c (until_command): Add new argument to until_break_command
14032 call.
14033 (advance_command): New function.
14034 (_initialize_infcmd): Update help string for 'until' command.
14035 Add new 'advance' command.
14036
14037 2003-01-14 David Carlton <carlton@math.stanford.edu>
14038
14039 * linespec.c (decode_line_1): Normalize comments.
14040 (set_flags): Ditto.
14041 (locate_first_half): Ditto.
14042 (decode_compound): Ditto.
14043 (symtab_from_filename): Ditto.
14044 (decode_all_digits): Ditto.
14045 (decode_dollar): Ditto.
14046 (find_methods): Ditto.
14047 (find_toplevel_char): Ditto.
14048
14049 2003-01-13 Andrew Cagney <ac131313@redhat.com>
14050
14051 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
14052 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
14053 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
14054 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
14055 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
14056 * language.c, language.h, m32r-tdep.c: Update copyright.
14057 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
14058 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
14059 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
14060 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
14061 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
14062 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
14063
14064 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
14065
14066 * stabsread.h (process_later, resolve_cfront_continuation):
14067 Obsolete.
14068 Update copyright years.
14069 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
14070 Update copyright year.
14071 * dbxread.c(struct cont_elem): Obsolete.
14072 (process_later, process_now): Obsolete functions.
14073 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
14074 Update copyright year.
14075 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
14076 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
14077 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
14078 (parse_partial_symbols): Obsolete cfront support.
14079 * stabsread.c
14080 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
14081 macros.
14082 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
14083 read_cfront_baseclasses, read_cfront_member_functions,
14084 resolve_cfront_continuation,read_cfront_static_fields,
14085 copy_cfront_struct_fields): Obsolete functions.
14086 (define_symbol, read_one_struct_field): Obsolete cfront support.
14087 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
14088 Update Copyright year.
14089
14090 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
14091
14092 * stack.c (print_frame_info, print_stack_frame_base_stub,
14093 print_stack_frame_base, show_and_print_stack_frame_stub,
14094 show_and_print_stack_frame, print_only_stack_frame_stub,
14095 print_only_stack_frame): Delete functions.
14096 (print_stack_frame_stub): Call print_frame_info instead of
14097 print_frame_info_base.
14098 (print_frame_info_base): Rename to print_frame_info.
14099 (backtrace_command_1): Call print_frame_info, instead of
14100 print_frame_info_base.
14101 (current_frame_command): Call print_stack_frame, instead of
14102 print_only_stack_frame.
14103 (frame_command): Call print_stack_frame, instead of
14104 show_and_print_stack_frame.
14105 (up_command): Ditto.
14106 (down_command): Ditto.
14107 * frame.h (print_only_stack_frame): Delete prototype.
14108 * infrun.c (normal_stop): Call print_stack_frame, instead of
14109 show_and_print_stack_frame.
14110 * thread.c (info_threads_command): Call print_stack_frame, instead
14111 of print_only_stack_frame.
14112
14113 2003-01-13 Andrew Cagney <ac131313@redhat.com>
14114
14115 * README (Graphical interface to GDB): Update URL. Point at
14116 gdb/links/.
14117
14118 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
14119 version match.
14120
14121 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14122
14123 * symtab.c (find_pc_sect_line): Don't consider end-of-function
14124 lines.
14125
14126 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14127
14128 * thread-db.c (attach_thread): Prototype.
14129 (struct private_thread_info): Remove lwpid. Add thread handle (th),
14130 thread information (ti), and valid flags (th_valid, ti_valid).
14131 (attach_thread): Move target_pid_to_str call to after the thread
14132 is added to GDB's list. Initialize the cache.
14133 (thread_get_info_callback, thread_db_map_id2thr)
14134 (thread_db_get_info): New functions.
14135 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
14136 (thread_db_store_registers, thread_db_thread_alive)
14137 (thread_db_get_thread_local_address): Use them.
14138 (thread_db_pid_to_str): Likewise. Return "Missing" instead
14139 of calling error() for threads in unknown state.
14140
14141 (clear_lwpid_callback): New function.
14142 (thread_db_resume): Use it to clear the cache.
14143
14144 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14145
14146 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
14147 (resume_callback): Remove dead code.
14148
14149 2003-01-13 Andrew Cagney <ac131313@redhat.com>
14150
14151 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
14152 predicate.
14153 * gdbarch.h, gdbarch.c: Regenerate.
14154 * stack.c (frame_info): Only initialize the saved registers when
14155 FRAME_INIT_SAVED_REGS_P.
14156 * frame.c (frame_saved_regs_register_unwind): Assert
14157 FRAME_INIT_SAVED_REGS_P.
14158 (deprecated_generic_get_saved_register): Ditto.
14159
14160 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14161
14162 * source.c (openp): Squelch warning about "filename".
14163
14164 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14165
14166 * source.c (openp): If the file does not exist don't necessarily
14167 search the path.
14168
14169 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14170
14171 Fix PR gdb/872.
14172 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
14173 (integer_types_same_name_p): New function.
14174 (rank_one_type): Use it.
14175 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
14176
14177 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14178
14179 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
14180 variables.
14181 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
14182 * configure.in: Add --with-sysroot.
14183 * configure: Regenerated.
14184 * main.c (gdb_sysroot): New variable.
14185 (captured_main): Initialize gdb_sysroot.
14186 * defs.h (gdb_sysroot): New extern declaration.
14187 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
14188
14189 2003-01-12 Michael Chastain <mec@shout.net>
14190
14191 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
14192
14193 2003-01-12 Michael Chastain <mec@shout.net>
14194
14195 * top.c (print_gdb_version): Bump copyright year to 2003.
14196
14197 2003-01-12 David Carlton <carlton@bactrian.org>
14198
14199 * linespec.c (symtab_from_filename): Rename variable 's' to
14200 'file_symtab'.
14201
14202 2003-01-12 Andrew Cagney <ac131313@redhat.com>
14203
14204 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
14205 dummy frame.
14206 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
14207
14208 2003-01-12 Andrew Cagney <ac131313@redhat.com>
14209
14210 * d10v-tdep.c: Include "gdb_assert.h".
14211 (d10v_store_return_value): Rewrite to match current interface.
14212 (d10v_extract_struct_value_address): Ditto.
14213 (d10v_extract_return_value): Ditto.
14214 (d10v_gdbarch_init): Set store_restore_value,
14215 extract_struct_value_address and extract_return_value.
14216
14217 2003-01-12 J. Brobecker <brobecker@gnat.com>
14218
14219 * hpread.c (set_namestring): New procedure replacing the
14220 SET_NAMESTRING macro.
14221 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
14222 by calls to set_namestring.
14223
14224 2003-01-11 J. Brobecker <brobecker@gnat.com>
14225
14226 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14227 a compilation warning.
14228 (hpread_process_one_debug_symbol): Likewise.
14229
14230 2003-01-10 David Carlton <carlton@math.stanford.edu>
14231
14232 * linespec.c (decode_line_1): Rename variable 's' to
14233 'file_symtab'.
14234 (decode_all_digits): Rename argument 's' to 'file_symtab'.
14235 (decode_dollar): Ditto.
14236 (decode_variable): Ditto.
14237 (symbol_found): Ditto.
14238
14239 2003-01-09 Michael Chastain <mec@shout.net>
14240
14241 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14242
14243 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
14244
14245 * win32-nat.c (set_process_privilege): New function.
14246 (child_attach): Call set_process_privilege() to enable the
14247 SE_DEBUG_NAME user privilege if available in process token.
14248
14249 2003-01-10 J. Brobecker <brobecker@gnat.com>
14250
14251 * hpread.c (hpread_process_one_debug_symbol): Fix a small
14252 compilation error in the previous revision.
14253
14254 2003-01-09 David Carlton <carlton@math.stanford.edu>
14255
14256 * linespec.c: Update copyright.
14257
14258 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
14259
14260 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
14261 than inferior_ptid.
14262 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14263
14264 2003-01-09 Andrew Cagney <ac131313@redhat.com>
14265
14266 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14267 Update comments.
14268 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14269 (frame_saved_regs_zalloc): Update.
14270 (frame_saved_regs_register_unwind): Update.
14271 (create_new_frame): Update.
14272 (get_prev_frame): Update.
14273 (frame_extra_info_zalloc): Update.
14274 (deprecated_get_frame_saved_regs): Update.
14275 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14276 * cris-tdep.c: Update comment.
14277
14278 * somsolib.h: Fix function indentation.
14279 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14280 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14281 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14282 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14283 * somsolib.c, inftarg.c: Remove assignment in if conditional.
14284
14285 * infrun.c (follow_fork): Use ISO C definition.
14286 * expprint.c (print_subexp): Use xfree instead of free.
14287 * charset.c: Include "gdb_string.h" instead of <string.h>.
14288 (register_iconv_charsets): Use ISO C definition.
14289 (host_charset, target_charset): Ditto.
14290 * Makefile.in (charset.o): Update dependencies.
14291 (mi-cmd-env.o): Update dependencies.
14292
14293 2003-01-08 Andrew Cagney <cagney@redhat.com>
14294
14295 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14296 get_frame_base.
14297
14298 2003-01-08 Andrew Cagney <ac131313@redhat.com>
14299
14300 * gdb_mbuild.sh: Add --keep option. When specified, keep the
14301 build directories. Save edited gdb output in Mbuild.log. If a
14302 build fails, remove any final GDB executable.
14303
14304 2003-01-08 Andrew Cagney <ac131313@redhat.com>
14305
14306 * gdb_mbuild.sh: Edit the output of `maint print architecture'
14307 replacing hex constants with function names and stripping leading
14308 file name directory prefixes.
14309
14310 2003-01-08 Andrew Cagney <cagney@redhat.com>
14311
14312 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14313 get_frame_base.
14314
14315 2003-01-08 David Carlton <carlton@math.stanford.edu>
14316
14317 * linespec.c (decode_line_1): Move code into decode_variable.
14318 (decode_variable): New function.
14319
14320 2003-01-08 Andrew Cagney <ac131313@redhat.com>
14321
14322 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14323
14324 2003-01-08 Andrew Cagney <cagney@redhat.com>
14325
14326 * cris-tdep.c (cris_frame_init_saved_regs): Use
14327 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14328 saved_regs buffer.
14329 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14330 (sh64_nofp_frame_init_saved_regs): Ditto.
14331 (sh_fp_frame_init_saved_regs): Ditto.
14332 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14333 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14334 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14335 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14336
14337 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
14338
14339 * minsyms.c (lookup_minimal_symbol): Update comment.
14340 (lookup_minimal_symbol_text): Update comment. Use the hash table.
14341 (lookup_minimal_symbol_solib_trampoline): Likewise.
14342
14343 2003-01-08 Andrew Cagney <cagney@redhat.com>
14344
14345 * d10v-tdep.c (d10v_init_extra_frame_info): Use
14346 frame_relative_level.
14347
14348 * alpha-tdep.c: Use get_frame_extra_info.
14349 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14350 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14351 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14352 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14353
14354 * alpha-tdep.c: Use get_next_frame.
14355 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14356 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14357 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14358 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14359 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14360 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14361 * xstormy16-tdep.c: Ditto.
14362
14363 2003-01-07 Andrew Cagney <cagney@redhat.com>
14364
14365 * alpha-tdep.c: Use get_frame_base.
14366 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14367 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14368 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14369 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14370 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14371 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14372 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14373 * config/sparc/tm-sparc.h: Ditto.
14374
14375 2003-01-07 Andrew Cagney <cagney@redhat.com>
14376
14377 * frame.c (deprecated_get_frame_context): New function.
14378 (deprecated_set_frame_context): New function.
14379 * frame.h (deprecated_get_frame_context): Declare.
14380 (deprecated_set_frame_context): Declare.
14381 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14382 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
14383
14384 2003-01-07 Andrew Cagney <cagney@redhat.com>
14385
14386 * frame.c (deprecated_set_frame_next_hack): New function.
14387 (deprecated_set_frame_prev_hack): New function.
14388 * frame.h (deprecated_set_frame_next_hack): Declare.
14389 (deprecated_set_frame_prev_hack): Declare.
14390 * mcore-tdep.c (analyze_dummy_frame): Use
14391 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14392 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14393
14394 2003-01-07 David Carlton <carlton@math.stanford.edu>
14395
14396 * linespec.c (decode_line_1): Move code into decode_dollar.
14397 (decode_dollar): New function.
14398
14399 2003-01-07 Andrew Cagney <cagney@redhat.com>
14400
14401 * arm-tdep.c (arm_init_extra_frame_info): Use
14402 deprecated_update_frame_base_hack.
14403 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14404 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14405 (fix_frame_pointer): Ditto.
14406 (mn10300_analyze_prologue): Ditto.
14407
14408 2003-01-07 Andrew Cagney <cagney@redhat.com>
14409
14410 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14411 extra_info using frame_extra_info_zalloc.
14412 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14413 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14414 (sh64_init_extra_frame_info): Ditto.
14415 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14416 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14417 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14418 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14419 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14420 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14421 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14422 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14423 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14424 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14425 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14426 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14427
14428 * mn10300-tdep.c (analyze_dummy_frame): Use
14429 deprecated_set_frame_extra_info_hack.
14430 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14431
14432 2003-01-07 J. Brobecker <brobecker@gnat.com>
14433
14434 * mdebugread.c (parse_symbol): Skip stProc entries which storage
14435 class is not scText. These do not define "real" procedures.
14436 (parse_partial_symbols): Likewise.
14437
14438 2003-01-06 Michael Snyder <msnyder@redhat.com>
14439
14440 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14441
14442 2003-01-06 Andrew Cagney <ac131313@redhat.com>
14443
14444 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14445 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14446 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14447 deprecated_frame_xmalloc_with_cleanup.
14448 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14449 deprecated_frame_xmalloc.
14450 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14451 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14452
14453 2003-01-06 Andrew Cagney <cagney@redhat.com>
14454
14455 * x86-64-linux-tdep.c: Include "osabi.h".
14456 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14457
14458 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14459
14460 2003-01-06 Andrew Cagney <cagney@redhat.com>
14461
14462 * MAINTAINERS (Target Instruction Set Architectures): Update
14463 arm-elf. Can be built with -Werror, has been multiarched.
14464
14465 * value.h (unpack_long): Make buffer parameter constant.
14466 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14467 * scm-lang.h (scm_parse): Ditto.
14468 * defs.h (extract_typed_address, extract_address): Ditto.
14469 (extract_long_unsigned_integer): Ditto.
14470 * inferior.h (unsigned_pointer_to_address): Ditto.
14471 (signed_pointer_to_address): Ditto.
14472 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14473 * gdbarch.h, gdbarch.c: Regenerate.
14474 * findvar.c (extract_long_unsigned_integer): Update.
14475 (extract_address): Update.
14476 (extract_typed_address): Update.
14477 (unsigned_pointer_to_address): Update.
14478 * values.c (unpack_long): Update.
14479 (unpack_double): Update.
14480 (unpack_pointer): Update.
14481 (unpack_field_as_long): Update.
14482 * d10v-tdep.c (d10v_pointer_to_address): Update.
14483 * avr-tdep.c (avr_pointer_to_address): Update.
14484 * scm-lang.c (scm_unpack): Update.
14485 * findvar.c (signed_pointer_to_address): Update.
14486
14487 2003-01-06 Michal Ludvig <mludvig@suse.cz>
14488
14489 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
14490 since it is in i386-tdep.c.
14491
14492 2003-01-06 J. Brobecker <brobecker@gnat.com>
14493
14494 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14495 failure introduced in the previous change.
14496
14497 2003-01-05 Michael Chastain <mec@shout.net>
14498
14499 * README: Remove references to deleted remote-*.c files:
14500 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14501 remote-nrom.c, remote-os9k.c, remote-udi.c.
14502
14503 2003-01-05 Mark Kettenis <kettenis@gnu.org>
14504
14505 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14506 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14507 i386_get_longjmp_target.
14508
14509 2003-01-05 Andrew Cagney <ac131313@redhat.com>
14510
14511 * arm-tdep.c (prologue_cache): Change to a pointer.
14512 (_initialize_arm_tdep): Allocate prologue_cache.
14513 (check_prologue_cache): Update.
14514 (save_prologue_cache): Update.
14515 (arm_gdbarch_init): Update.
14516
14517 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14518
14519 * stabsread.c (update_method_name_from_physname): Call complaint()
14520 instead of error.
14521
14522 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14523
14524 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14525 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14526 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14527
14528 * blockframe.c: Include "gdbcmd.h" and "command.h".
14529 (backtrace_below_main): New variable.
14530 (file_frame_chain_valid, func_frame_chain_valid)
14531 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14532 (generic_func_frame_chain_valid): Remove functions.
14533 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14534 (_initialize_blockframe): New function.
14535 * Makefile.in (blockframe.o): Update dependencies.
14536 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14537 comment. Call frame_chain_valid ().
14538 * frame.h: Remove old prototypes. Add prototype for
14539 frame_chain_valid and update comments to match.
14540 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14541 Remove old comment.
14542 * gdbarch.h: Regenerated.
14543 * gdbarch.c: Regenerated.
14544
14545 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14546 set_gdbarch_frame_chain_valid.
14547 * avr-tdep.c (avr_gdbarch_init): Likewise.
14548 * cris-tdep.c (cris_gdbarch_init): Likewise.
14549 * frv-tdep.c (frv_gdbarch_init): Likewise.
14550 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14551 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14552 (i386_nw_init_abi): Likewise.
14553 (i386_gdbarch_init): Likewise.
14554 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14555 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14556 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14557 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14558 * mips-tdep.c (mips_gdbarch_init): Likewise.
14559 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14560 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14561 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14562 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14563 * s390-tdep.c (s390_gdbarch_init): Likewise.
14564 * sh-tdep.c (sh_gdbarch_init): Likewise.
14565 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14566 * v850-tdep.c (v850_gdbarch_init): Likewise.
14567 * vax-tdep.c (vax_gdbarch_init): Likewise.
14568 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14569
14570 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14571 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14572 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14573 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14574 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14575 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14576 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14577 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14578
14579 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14580
14581 * Makefile.in (acconfig_h): Remove incorrect macro.
14582 (config_h): Define.
14583 (osabi.o): Update dependencies.
14584 * configure.tgt: Set gdb_osabi based on target triplet.
14585 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14586 * configure: Regenerated.
14587 * config.in: Regenerated.
14588 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14589 (GDB_OSABI_DEFAULT): Define if not already defined.
14590 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14591 (set_osabi_string): New variables.
14592 (gdbarch_register_osabi): Add new OS ABI to
14593 gdb_osabi_available_names.
14594 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14595 (set_osabi, show_osabi): New functions.
14596 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14597
14598 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14599
14600 * arch-utils.c (gdbarch_info_init): Set osabi to
14601 GDB_OSABI_UNINITIALIZED.
14602 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14603 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14604 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14605 * gdbarch.c: Regenerated.
14606 * gdbarch.h: Regenerated.
14607 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14608 there's no BFD.
14609 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14610 * osabi.h (enum gdb_osabi): Move to defs.h.
14611 (gdbarch_init_osabi): Update prototype.
14612 * defs.h (enum gdb_osabi): Moved here.
14613 * Makefile.in: Update dependencies.
14614
14615 * alpha-tdep.h: Don't include "osabi.h".
14616 (struct gdbarch_tdep): Remove osabi member.
14617 * alpha-tdep.c: Include "osabi.h".
14618 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14619 iterate over arches. Update call to gdbarch_init_osabi.
14620 (alpha_dump_tdep): Don't dump osabi.
14621 * alpha-linux-tdep.c: Include "osabi.h".
14622 * alpha-osf1-tdep.c: Include "osabi.h".
14623 * alphafbsd-tdep.c: Include "osabi.h".
14624 * alphanbsd-tdep.c: Include "osabi.h".
14625
14626 * arm-tdep.h: Don't include "osabi.h".
14627 (struct gdbarch_tdep): Remove osabi member.
14628 * arm-tdep.c: Include "osabi.h".
14629 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14630 iterate over arches. Update call to gdbarch_init_osabi.
14631 (arm_dump_tdep): Don't dump osabi.
14632 * arm-linux-tdep.c: Include "osabi.h".
14633 * armnbsd-tdep.c: Include "osabi.h".
14634
14635 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14636 Update call to gdbarch_init_osabi.
14637
14638 * i386-tdep.h: Don't include "osabi.h".
14639 (struct gdbarch_tdep): Remove osabi member.
14640 * i386-tdep.c: Include "osabi.h".
14641 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14642 iterate over arches. Update call to gdbarch_init_osabi.
14643 (i386_dump_tdep): Don't dump osabi.
14644 * i386-linux-tdep.c: Include "osabi.h".
14645 * i386-sol2-tdep.c: Include "osabi.h".
14646 * i386bsd-tdep.c: Include "osabi.h".
14647 * i386gnu-tdep.c: Include "osabi.h".
14648 * i386ly-tdep.c: Include "osabi.h".
14649 * i386nbsd-tdep.c: Include "osabi.h".
14650 * i386obsd-tdep.c: Include "osabi.h".
14651
14652 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14653 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14654 check osabi when iterating over arches. Update call to
14655 gdbarch_init_osabi.
14656 (mips_dump_tdep): Don't dump osabi.
14657
14658 * ns32k-tdep.h: Don't include "osabi.h".
14659 (struct gdbarch_tdep): Remove.
14660 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14661 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14662 allocate tdep. Update call to gdbarch_init_osabi.
14663 (ns32k_dump_tdep): Remove.
14664 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14665 * ns32knbsd-tdep.c: Include "osabi.h".
14666
14667 * ppc-tdep.h: Don't include "osabi.h".
14668 (struct gdbarch_tdep): Remove osabi member.
14669 * rs6000-tdep.c: Include "osabi.h".
14670 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14671 osabi when iterating over arches. Update call to
14672 gdbarch_init_osabi.
14673 (rs6000_dump_tdep): Don't dump osabi.
14674 * ppc-linux-tdep.c: Include "osabi.h".
14675 * ppcnbsd-tdep.c: Include "osabi.h".
14676
14677 * sh-tdep.h: Don't include "osabi.h".
14678 (struct gdbarch_tdep): Remove osabi member.
14679 * sh-tdep.c: Include "osabi.h".
14680 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14681 iterate over arches. Update call to gdbarch_init_osabi.
14682 (sh_dump_tdep): Don't dump osabi.
14683 * shnbsd-tdep.c: Include "osabi.h".
14684
14685 * sparc-tdep.c: Include "osabi.h".
14686 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14687 iterate over arches. Update call to gdbarch_init_osabi.
14688 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14689 tdep structure.
14690
14691 * vax-tdep.h: Don't include "osabi.h".
14692 (struct gdbarch_tdep): Remove.
14693 * vax-tdep.c: Include "osabi.h".
14694 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14695 iterate over arches. Don't allocate tdep. Update call
14696 to gdbarch_init_osabi.
14697 (vax_dump_tdep): Remove.
14698 (_initialize_vax_tdep): Update call to gdbarch_register.
14699
14700 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14701
14702 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14703 entirely.
14704 (breakpoint_re_set_one): Don't fetch the value for a disabled
14705 watchpoint.
14706
14707 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14708
14709 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14710 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14711 (COERCE_FLOAT_TO_DOUBLE): Remove.
14712 * gdbarch.c: Regenerate.
14713 * gdbarch.h: Regenerate.
14714 * Makefile.in: Remove value_h from gdbarch_h.
14715 * valops.c (coerce_float_to_double): New variable.
14716 (default_coerce_float_to_double): Remove.
14717 (standard_coerce_float_to_double): Remove.
14718 (value_arg_coerce): Use coerce_float_to_double.
14719 (_initialize_valops): Add "set coerce-float-to-double".
14720 * value.h (default_coerce_float_to_double): Remove prototype.
14721 (standard_coerce_float_to_double): Remove prototype.
14722
14723 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14724 prototyped.
14725 * mdebugread.c (parse_symbol): Likewise.
14726 * stabsread.c (define_symbol): Mark all functions as prototyped.
14727
14728 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14729 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14730 set_gdbarch_coerce_float_to_double.
14731 * arm-tdep.c (arm_gdbarch_init): Likewise.
14732 * frv-tdep.c (frv_gdbarch_init): Likewise.
14733 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14734 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14735 * mips-tdep.c (mips_gdbarch_init): Likewise.
14736 (mips_coerce_float_to_double): Remove.
14737 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14738 (rs6000_coerce_float_to_double): Remove.
14739 * s390-tdep.c (s390_gdbarch_init): Likewise.
14740 * sh-tdep.c (sh_gdbarch_init): Likewise.
14741 (sh_coerce_float_to_double): Remove.
14742 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14743 (sparc_coerce_float_to_double): Remove.
14744 * v850-tdep.c (v850_gdbarch_init): Likewise.
14745 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14746 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14747 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14748 (hppa_coerce_float_to_double): Remove prototype.
14749 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14750
14751 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14752
14753 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14754
14755 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14756
14757 Suggested by Stewart Brown <sb24@avaya.com>:
14758 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14759 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14760 (c_type_print_varspec_suffix): Likewise.
14761
14762 2003-01-04 Mark Kettenis <kettenis@gnu.org>
14763
14764 * configure.in: Don't set and AC_SUBST SUBDIRS.
14765 * configure: Regenerated.
14766
14767 * configure.in: Remove code dealing with shared libraries.
14768 * Makefile.in: Remove HLDFLAGS and HLDENV.
14769 * configure: Regenerated.
14770
14771 2003-01-04 Andrew Cagney <ac131313@redhat.com>
14772
14773 * frame.c (deprecated_frame_xmalloc): New function.
14774 (deprecated_set_frame_saved_regs_hack): New function.
14775 (deprecated_set_frame_extra_info_hack): New function.
14776 * frame.h (deprecated_frame_xmalloc): Declare.
14777 (deprecated_set_frame_saved_regs_hack): Declare.
14778 (deprecated_set_frame_extra_info_hack): Declare.
14779
14780 2003-01-04 Mark Kettenis <kettenis@gnu.org>
14781
14782 * configure.in: Move code that provides the --enable-gdbtk option
14783 right after the code that handles the --enable-tui option, and
14784 polish it somewhat.
14785 * configure: Regenerated.
14786
14787 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14788 AC_CHECK_FUNCS and remove the old check for pread64.
14789 * acinclude.m4 (AC_GNU_SOURCE): New macro.
14790 * acconfig.h (_GNU_SOURCE): Add.
14791 (HAVE_PREAD64): Remove.
14792 * configure, aclocal.m4, config.in: Regenerated.
14793
14794 2003-01-03 Andrew Cagney <ac131313@redhat.com>
14795
14796 * alpha-tdep.c: Use get_frame_saved_regs.
14797 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14798 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14799 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14800 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14801 * vax-tdep.c, xstormy16-tdep.c: Ditto.
14802
14803 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14804
14805 * configure.in: Remove all use of the SUBDIRS variable; add
14806 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14807 code providing the --enable-multi-ice option, and move it right in
14808 front of the code that checks whether gdbserver is supported.
14809 Polish that too.
14810 * configure: Regenerated.
14811 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14812 @SUBDIRS@.
14813
14814 2003-01-03 Andrew Cagney <cagney@redhat.com>
14815
14816 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14817 * avr-tdep.c, cris-tdep.c: Ditto.
14818 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14819 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14820
14821 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14822
14823 * configure.in: Remove --enable-netrom option.
14824 * configure: Regenerated.
14825
14826 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14827
14828 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14829 declaration for `struct re_pattern_buffer' instead.
14830 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14831
14832 2003-01-03 J. Brobecker <brobecker@gnat.com>
14833
14834 * mdebugread.c (parse_symbol): Count until the stEnd matching
14835 the structure name.
14836
14837 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14838
14839 * configure.in: Remove --with-cpu option.
14840 subscripts. Remove evil changequotes here.
14841 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14842 * config.in, configure: Regenerated.
14843
14844 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14845 * configure.in: Cleanup section that sources GDB and BFD configure
14846 subscripts. Remove evil changequotes here.
14847 * config.in, configure: Regenerated.
14848
14849 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14850
14851 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14852 frame accessor methods.
14853 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14854 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14855 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14856 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14857 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14858 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14859 * z8k-tdep.c: Ditto.
14860
14861 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14862
14863 * configure.in: Remove UI_OUT configuration code.
14864 * ada-lang.c: Update assuming UI_OUT is always true.
14865 * Makefile.in (UIOUT_CFLAGS): Remove.
14866 * configure: Regenerated.
14867 * TODO: Remove blurb about elimination of -DUI_OUT.
14868
14869 * configure.in: Move code that provides the --enable-gdbcli,
14870 --enable-gdbmi options right before the code that handles the
14871 --enable-tui option. Polish a bit.
14872 * configure: Regenerated.
14873
14874 * configure.in: Rewrite check for GNU regex and the
14875 --without-included regex option, and move it into the "Checks for
14876 library functions" section. This makes us use the system regex
14877 again by default on systems with version 2 of the GNU C library.
14878 This was apparently broken.
14879 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14880 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14881 * config.in, configure: Regenerated.
14882
14883 * configure.in: Move code that provides the --enable-tui option
14884 before the "Checks for libraries" section. Polish the code
14885 somewhat and set need_curses to yes if we build the TUI. Rewrite
14886 code that looks for a library providing termcap functionality to
14887 match more closely what's done in the Readline library, and move
14888 it into to the "Checks for libraries" section.
14889 * configure: Regenerated.
14890 * Makefile.in (TERMCAP): Remove variable.
14891 * config/i386/go32.mh (TERMCAP): Remove variable.
14892
14893 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14894
14895 * MAINTAINERS: Mention gdb_mbuild.sh.
14896 * gdb_mbuild.sh: Rewrite.
14897
14898 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14899
14900 * configure.in: Fix typo in last change.
14901 * config.in, configure: Regenerated.
14902
14903 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14904
14905 * valarith.c (value_binop): Delete obsolete code and comments.
14906 * configure.host: Ditto.
14907 * buildsym.h (make_blockvector): Ditto.
14908 * buildsym.c (make_blockvector): Ditto.
14909 * defs.h (enum language): Ditto.
14910 (chill_demangle): Ditto.
14911 * elfread.c (elf_symtab_read): Ditto.
14912 * dwarfread.c (CHILL_PRODUCER): Ditto.
14913 (set_cu_language): Ditto.
14914 (handle_producer): Ditto.
14915 * expprint.c (print_subexp): Ditto.
14916 * gdbtypes.c (chill_varying_type): Ditto.
14917 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14918 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14919 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14920 (chill_varying_type): Ditto.
14921 * language.h (_LANG_chill): Ditto.
14922 * language.c (binop_result_type, integral_type): Ditto.
14923 (character_type, string_type, structured_type): Ditto.
14924 (lang_bool_type, binop_type_check): Ditto.
14925 * stabsread.h (os9k_stabs): Ditto.
14926 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14927 (define_symbol, read_type, read_struct_fields): Ditto.
14928 (read_array_type, read_enum_type, read_huge_number): Ditto.
14929 (read_range_type, start_stabs): Ditto.
14930 * symfile.c (init_filename_language_table): Ditto.
14931 (add_psymbol_with_dem_name_to_list): Ditto.
14932 * symtab.c (symbol_init_language_specific): Ditto.
14933 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14934 * symtab.h (struct general_symbol_info): Ditto.
14935 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14936 * typeprint.c (typedef_print): Ditto.
14937 * utils.c (fprintf_symbol_filtered): Ditto.
14938 * valops.c (value_cast, search_struct_field, value_slice): Delete
14939 obsolete code.
14940 (varying_to_slice): Delete function.
14941 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14942 (varying_to_slice): Delete declaration.
14943 * MAINTAINERS: Update.
14944
14945 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14946
14947 * configure.in: Reorganize "Checks for library functions section"
14948 a bit. Remove check for `btowc' and `isascii' functions.
14949 * configure: Regenerated.
14950
14951 * acconfig.h (_MSE_INT_H): Remove.
14952 * configure.in: Create "Checks for header files" section, and move
14953 appropriate tests there. Don't check for objlist.h, wchar.h,
14954 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14955 misdetection fix. Also add "Checks for types", "Checks for
14956 compiler characteristics" and "Checks for library functions"
14957 sections.
14958 * config.in, configure: Regenerated.
14959
14960 * configure.in: Create "Checks for programs" section, and move
14961 appropriate tests there.
14962
14963 2003-01-01 Mark Kettenis <kettenis@gnu.org>
14964
14965 * configure.in: Create "Checks for libraries" section, and move
14966 appropriate tests there. Cleanup check for wctype in libw. Use
14967 AC_SEARCH_LIBS to see whether we need libsocket.
14968 * configure: Regenerated.
14969
14970 For older changes see ChangeLog-2002
14971 \f
14972 Local Variables:
14973 mode: change-log
14974 left-margin: 8
14975 fill-column: 74
14976 version-control: never
14977 End:
This page took 0.372238 seconds and 4 git commands to generate.