* xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
376a5a49
JB
12003-07-07 Joel Brobecker <brobecker@gnat.com>
2
3 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
4 sort_symtab_syms, no longer necessary.
5
22b4a9ad
JB
62003-07-07 Joel Brobecker <brobecker@gnat.com>
7
8 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
9
5bbcb741
JB
102003-07-07 Joel Brobecker <brobecker@gnat.com>
11
12 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
13 (mips_register_byte): Likewise.
14
c139e7d9
DJ
152003-07-07 Daniel Jacobowitz <drow@mvista.com>
16
17 * Makefile.in (sparc_tdep_h): New.
18 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
19 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
20 * sparc-linux-nat.c: Include "sparc-tdep.h".
21 * sparc-nat.c: Likewise.
22 * sparc-tdep.c: Likewise.
23 * sparc64nbsd-nat.c: Likewise.
24 * sparcnbsd-nat.c: Likewise.
25 * sparcnbsd-tdep.c: Likewise.
26 * sparc-tdep.h: New file.
27 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
28 and sparc_npc_regnum.
29
fd8f87c5
DJ
302003-07-07 Daniel Jacobowitz <drow@mvista.com>
31
32 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
33 (mips_linux_cannot_store_register): List supported instead of
34 unsupported registers.
35
13adf674
DJ
362003-07-07 Daniel Jacobowitz <drow@mvista.com>
37
38 * disasm.c (dump_insns): Separate instructions from addresses.
39
8de307e0
AS
402003-07-07 Andreas Schwab <schwab@suse.de>
41
42 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
43 dependencies.
44 * m68k-tdep.c (NUM_FREGS): Delete.
45 (SIG_PC_FP_OFFSET): Delete.
46 (TARGET_M68K): Delete.
47 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
48 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
49 P_MOVEL_SP, P_MOVEML_SP): Define.
50 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
51 P_TRAP): Delete.
52 (m68k_register_raw_size): Delete.
53 (m68k_register_virtual_size): Delete.
54 (m68k_register_type): Renamed from m68k_register_virtual_type and
55 add gdbarch argument.
56 (m68k_store_struct_return): Delete.
57 (m68k_deprecated_extract_return_value): Delete.
58 (m68k_deprecated_extract_struct_value_address): Delete.
59 (m68k_frame_chain): Delete.
60 (m68k_frame_saved_pc): Delete.
61 (m68k_fix_call_dummy): Delete.
62 (m68k_push_dummy_frame): Delete.
63 (m68k_pop_frame): Delete.
64 (m68k_extract_return_value): New function.
65 (m68k_store_return_value): Rewrite using regcache.
66 (m68k_extract_struct_value_address): Rewrite using regcache.
67 (m68k_push_dummy_call): New function.
68 (struct m68k_frame_cache): Define.
69 (m68k_alloc_frame_cache): New function.
70 (m68k_analyze_frame_setup): New function.
71 (m68k_analyze_register_saves): New function.
72 (m68k_analyze_prologue): New function.
73 (m68k_skip_prologue): Rewrite using above functions.
74 (m68k_unwind_pc): New function.
75 (m68k_frame_cache): New function.
76 (m68k_frame_this_id): New function.
77 (m68k_frame_prev_register): New function.
78 (m68k_frame_unwind): New variable.
79 (m68k_frame_p): New function.
80 (m68k_sigtramp_frame_cache): New function.
81 (m68k_sigtramp_frame_this_id): New function.
82 (m68k_sigtramp_frame_prev_register): New function.
83 (m68k_sigtramp_frame_unwind): New variable.
84 (m68k_sigtramp_frame_p): New function.
85 (m68k_frame_base_address): New function.
86 (m68k_frame_base): New function.
87 (m68k_unwind_dummy_id): New function.
88 (fill_gregset): Use regcache_collect.
89 (fill_fpregset): Likewise.
90 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
91 defined.
92 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
93 deprecated_init_frame_pc, deprecated_store_struct_return,
94 deprecated_extract_return_value, deprecated_store_return_value,
95 deprecated_frame_chain, deprecated_frame_saved_pc,
96 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
97 deprecated_register_virtual_size,
98 deprecated_max_register_raw_size,
99 deprecated_max_register_virtual_size,
100 deprecated_register_virtual_type, deprecated_register_size,
101 deprecated_register_byte, deprecated_register_bytes,
102 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
103 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
104 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
105 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
106 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
107 deprecated_push_dummy_frame, deprecated_pop_frame,
108 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
109 only if SYSCALL_TRAP is defined. Set extract_return_value,
110 store_return_value, extract_struct_value_address, register_type,
111 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
112 predicates.
113 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
114 M68K_MAX_REGISTER_SIZE): Define.
115 (struct m68k_sigtramp_info): Define.
116 (struct gdbarch_tdep): Add get_sigtramp_info.
117 * m68klinux-nat.c (fetch_register): Use register_size instead of
118 REGISTER_RAW_SIZE. Don't put assignment in if.
119 (store_register): Likewise.
120 (fetch_inferior_registers): Likewise.
121 (store_inferior_registers): Likewise.
122 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
123 (m68k_linux_frame_saved_pc): Delete.
124 (m68k_linux_sigcontext_reg_offset,
125 m68k_linux_ucontext_reg_offset): Define.
126 (m68k_linux_get_sigtramp_info): New function.
127 (m68k_linux_extract_return_value): Rewrite using regcache.
128 (m68k_linux_store_return_value): Likewise.
129 (m68k_linux_extract_struct_value_address): Likewise.
130 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
131 Don't set deprecated_frame_saved_pc,
132 deprecated_extract_return_value, deprecated_store_return_value,
133 deprecated_extract_struct_value_address. Set
134 extract_return_value, store_return_value,
135 extract_struct_value_address.
136
eb8bc282
AC
1372003-07-07 Andrew Cagney <cagney@redhat.com>
138
139 * expprint.c: Include "user-regs.h" instead of "frame.h".
140 (print_subexp): Use user_reg_map_regnum_to_name, instead of
141 frame_map_regnum_to_name.
142 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
143 (frame_map_name_to_regnum): Simplify, call
144 user_reg_map_name_to_regnum.
145 (frame_map_regnum_to_name): Simplify, call
146 user_reg_map_regnum_to_name.
147 (frame_register_unwind): Update.
148 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
149 (_initialize_frame_reg): Call user_reg_add_builtin.
150 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
151 (value_of_register): Use value_of_user_reg.
152 * eval.c (evaluate_subexp_standard): Update.
153 * parse.c (write_dollar_variable): Update.
154 * d10v-tdep.c (d10v_print_registers_info): Update.
155 * infcmd.c (registers_info): Update.
156 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
157 (builtin_regs_h): Delete macro.
158 (user_regs_h): Define.
159 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
160 (builtin-regs.o): Delete target.
161 (user-regs.o): Specify dependencies.
162 (expprint.o): Update dependencies.
163 (findvar.o): Update dependencies.
164 (frame.o): Update dependencies.
165 (std-regs.o): Update dependencies.
166
9f476a01
CF
1672003-07-06 Christopher Faylor <cgf@redhat.com>
168
169 * win32-nat.c (solib_symbols_add): Use one variable for all section
170 address stuff. Pass variable rather than address of variable to
171 safe_symbol_file_add.
172
a731b831
AS
1732003-07-06 Andreas Schwab <schwab@suse.de>
174
175 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
176
9f83329d
JB
1772003-07-04 Joel Brobecker <brobecker@gnat.com>
178
179 * rs6000-nat.c (vmap_symtab): Fix compilation error.
180
27e28cc5
KW
1812003-07-04 Kris Warkentin <kewarken@qnx.com>
182
183 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
184
1852003-07-04 Kris Warkentin <kewarken@qnx.com>
186
187 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
188 * config/i386/nto.mh: New file.
189 * config/i386/nm-nto.h: New file.
190 * configure.host: Add i[3456]86-*-nto*.
191
100f2e98
JB
1922003-07-03 Joel Brobecker <brobecker@gnat.com>
193
194 * remote-vx.c (vx_add_symbols): Fix compilation error.
195
e23457df
AC
1962003-07-03 Andrew Cagney <cagney@redhat.com>
197
198 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
199 * gdbarch.h, gdbarch.c: Re-generate.
200 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
201 (legacy_register_name): Declare.
202 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
203 (REGISTER_NAME): Define.
204 * sparc-tdep.c (legacy_register_name): New function.
205 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
206 (REGISTER_NAME): Define.
207 (hppa64_register_name): Declare.
208 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
209 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
210 (hppa64_register_name): New function.
211 (hppa_register_name): New function.
212 * arch-utils.c (legacy_register_name): Delete.
213 * arch-utils.h (legacy_register_name): Delete.
214
38caaeec
DJ
2152003-07-03 Daniel Jacobowitz <drow@mvista.com>
216
217 * cli/cli-interp.c (cli_interpreter_resume): Update the
218 cli_uiout's stream to gdb_stdout.
219
dadd712e
AC
2202003-07-03 Andrew Cagney <cagney@redhat.com>
221
222 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
223 predicate.
224 * gdbarch.h, gdbarch.c: Re-generate.
225 * regcache.c (init_regcache_descr): Use legacy code when either
226 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
227
c7f1390e
DJ
2282003-07-02 Daniel Jacobowitz <drow@mvista.com>
229
230 * NEWS: Move "set logging" entry into GDB 6.0 section.
231
4bc8c588
JB
2322003-07-02 Jim Blandy <jimb@redhat.com>
233
a9dd42f1
JB
234 * s390-tdep.c (struct frame_extra_info): new member:
235 'stack_bought_valid'.
236 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
237 initialize fextra_info->stack_bought.
238 (s390_frameless_function_invocation): Don't trust the value of
239 fextra_info_ptr->stack_bought unless
240 fextra_info->stack_bought_valid is set.
241
4bc8c588
JB
242 New S390 prologue analyzer.
243 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
244 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
245 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
246 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
247 compute_x_addr, s390_on_stack, s390_store,
248 s390_get_signal_frame_info): New functions.
249 (S390_NUM_SPILL_SLOTS): New macro.
250 (s390_get_frame_info): Rewritten.
251 (is_arg_reg): Deleted.
252
253 Break out the decoding of S/390 instructions into separate
254 functions, to make it more legible, and easier to check
255 against the spec.
256 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
257 is_rx, is_rxe): New functions.
258 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
259 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
260 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
261 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
262 enums for opcode values. (Is this an improvement?)
263
fd13a04a
AC
2642003-07-02 Andrew Cagney <cagney@redhat.com>
265
266 * i386-tdep.c: Revert change committed as part of trad-frame code
267 below.
268
3f8091c1
DJ
2692003-07-02 Daniel Jacobowitz <drow@mvista.com>
270
271 * breakpoint.c (insert_catchpoint): Make static.
272
8dd5115e
AS
2732003-07-02 Andreas Schwab <schwab@suse.de>
274
275 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
276 former ia64_push_arguments and ia64_push_return_address, and use
277 regcache functions instead of read/write_register.
278 (ia64_gdbarch_init): Set push_dummy_call instead of
279 deprecated_push_arguments and deprecated_push_return_address.
280
a2229c23
AJ
2812003-07-01 Andreas Jaeger <aj@suse.de>
282
283 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
284 before the call.
285 Set %rax only to number of SSE registers used.
286
3b3850e8
AC
2872003-07-01 Andrew Cagney <cagney@redhat.com>
288
289 * trad-frame.h: Update comments, a -1 .addr is reserved.
290 (trad_frame_value_p, trad_frame_addr_p): Declare.
291 (trad_frame_reg_p): Declare.
292 (trad_frame_set_value): Rename trad_frame_register_value.
293 (trad_frame_set_unknown): Declare.
294 * trad-frame.c (trad_frame_realreg_p): New function.
295 (trad_frame_addr_p, trad_frame_value_p): New function.
296 (trad_frame_set_unknown): New function.
297 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
298 (trad_frame_prev_register): Use trad_frame_realreg_p,
299 trad_frame_addr_p and trad_frame_value_p.
300 (trad_frame_set_value): Rename trad_frame_register_value.
301 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
302 and trad_frame_set_value.
a2229c23 303
4d819d0e
JB
3042003-06-30 Jim Blandy <jimb@redhat.com>
305
306 Patch from IBM (authors unspecified, probably Ulrich Weigand and
307 Gerhard Tonn) for argument passing on the S/390 and S/390x:
308 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
309 for 16 registers, and then 32 more bytes.
310 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
311 New macros.
312 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
313 Move up in the file, since it's now used by is_simple_arg.
314 (is_simple_arg): Don't assume registers are four bytes long.
315 Exclude all double arguments. Extended floats are not simple
316 args.
317 (is_power_of_two): New function.
318 (pass_by_copy_ref): Call is_power_of_two, and check that the
319 length fits in a register, rather than listing all the acceptable
320 sizes. Extended floats are not passed by reference.
321 (s390_push_arguments): Don't assume registers are four bytes long.
322 Reserve an argument register to point to the buffer for structures
323 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
324 S390_STACK_FRAME_OVERHEAD.
325
1ad828f1
AS
3262003-06-30 Andreas Schwab <schwab@suse.de>
327
328 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
329 format error message.
330
39b00981
JB
3312003-06-30 Joel Brobecker <brobecker@gnat.com>
332
333 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
334
b2a7f303
DC
3352003-06-30 David Carlton <carlton@kealia.com>
336
337 Band-aid for PR c++/1245.
338 * Makefile.in (cp-support.o): Depend on complaints_h.
339 * cp-support.c: Include complaints.h. Add declaration for
340 find_last_component.
341 (cp_find_first_component): Separate code into
342 cp_find_first_component_aux.
343 (cp_find_first_component_aux): Call demangled_name_complaint.
344 (demangled_name_complaint): New.
345
a257b5bb
AC
3462003-06-30 Andrew Cagney <cagney@redhat.com>
347
348 * remote.c (remote_write_bytes): Explicitly compute and then use
349 the payload size. Update comments to reflect. Fixes problem of
350 GDB not sending small packets as found by Fred Fish.
351
0a2cfde4
AC
3522003-06-30 Andrew Cagney <cagney@redhat.com>
353
354 * remote.c (remote_async_wait): Fix -Wformat problem.
355
3fcb8548
AC
3562003-06-29 Andrew Cagney <cagney@redhat.com>
357
358 * remote.c (remote_wait): Call error, and not warning, when the
359 packet is corrupt.
360 (remote_async_wait): Ditto.
361
9f9970a3
DJ
3622003-06-29 Daniel Jacobowitz <drow@mvista.com>
363
364 * sparc-tdep.c (sparc_y_regnum): Make external again.
365
83a8ccca
DJ
3662003-06-29 Daniel Jacobowitz <drow@mvista.com>
367
368 * cli/cli-logging.c (pop_output_files): Add void to function
369 definition.
370
d2cf594a
AC
3712003-06-29 Andrew Cagney <cagney@redhat.com>
372
373 * frame.c (frame_register_unwind): Use unsigned char when dumping
374 the buffer contents.
375
0fac0b41
DJ
3762003-06-28 Daniel Jacobowitz <drow@mvista.com>
377
378 * cli/cli-logging.c: New file.
379 * cli-out.c (struct ui_out_data): Add original_stream.
380 (cli_redirect): New function.
381 (cli_ui_out_impl): Add cli_redirect.
382 (cli_out_new): Initialize original_stream.
383 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
384 (uo_redirect, ui_out_redirect): New.
385 * ui-out.h (struct ui_out_impl): Add redirect member.
386 (redirect_ftype): New.
387 (ui_out_redirect): Add prototype.
388 * Makefile.in: Add rules for cli-logging.c.
389 * NEWS: Mention "set logging".
390
88a07d7c
EZ
3912003-06-27 Elena Zannoni <ezannoni@redhat.com>
392
393 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
394
4eb58876
AC
3952003-06-27 Andrew Cagney <cagney@redhat.com>
396
397 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
398 (m68hc11_gdbarch_init): Do not set call_dummy_address.
399 * avr-tdep.c (avr_call_dummy_address): Delete function.
400 (avr_gdbarch_init): Do not set call_dummy_address.
401
1549f619
EZ
4022003-06-27 Elena Zannoni <ezannoni@redhat.com>
403
404 * symfile.c (syms_from_objfile): Move variables to inner block.
405 Move the checks for the non-mainline case a bit earlier to avoid
406 doing some useless computations.
407
3cb3398d
EZ
4082003-06-27 Elena Zannoni <ezannoni@redhat.com>
409
410 * dwarfread.c (decode_modified_type): Gag new compiler warning.
411
3799ccc6
EZ
4122003-06-26 Elena Zannoni <ezannoni@redhat.com>
413
414 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
415 sections.
416
ce1f6491
MC
4172003-06-26 Michael Chastain <mec@shout.net>
418
419 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
420 gdb/testsuite/gdb.c++/pr-1210.exp.
421
d958dfd0
AC
4222003-06-26 Andrew Cagney <cagney@redhat.com>
423
424 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
425 altivec_expression.h and altivec_registers.h.
426
d31431ed
AC
4272003-06-26 Andrew Cagney <cagney@redhat.com>
428
429 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
430 info->mach when MIPS16. Patch suggested by Fred Fish.
431
714b1282
AC
4322003-06-26 Andrew Cagney <cagney@redhat.com>
433
434 * utils.c (internal_vproblem): Print the problem to a reason
435 buffer and then pass to query. Make the msg variable more local.
436
42efa47a
AC
4372003-06-26 Andrew Cagney <cagney@redhat.com>
438
439 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
440 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
441 * gdbarch.h, gdbarch.c: Re-generate.
442 * frame-base.c (default_frame_args_address): Update. Use
443 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
444 not available.
445 (default_frame_locals_address): Ditto for
446 DEPRECATED_FRAME_LOCALS_ADDRESS.
447 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
448 (vax_frame_num_args): Update.
449 (vax_gdbarch_init): Update.
450 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
451 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
452 * mcore-tdep.c (mcore_gdbarch_init): Update.
453 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
454 * ia64-tdep.c (ia64_gdbarch_init): Update.
455 * symtab.h (address_class): Update comments.
456 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
457 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
458 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
459 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
460 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
461 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
462 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
463 * alpha-mdebug-tdep.c: Update.
464 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
465
8ffd9b1b
AJ
4662003-06-26 Andreas Jaeger <aj@suse.de>
467
468 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
469 of SSE registers so that varargs functions work. Rework handling
470 of passing arguments on the stack.
471 (x86_64_store_return_value): Return double and float values in SSE
472 register.
473
e8ac10a6
MC
4742003-06-24 Michael Chastain <mec@shout.net>
475
476 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
477 the "constructor breakpoints ignored" bug.
478
986af8e6
DC
4792003-06-25 David Carlton <carlton@kealia.com>
480
481 * MAINTAINERS: Update e-mail address.
482
d64558a5
JB
4832003-06-24 Jim Blandy <jimb@redhat.com>
484
e538d2d7
JB
485 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
486
02631ec0
JB
487 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
488 function.
489 (ppc_linux_init_abi): Register it as the
490 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
491
e716d87a
JB
492 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
493 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
494 method.
495
d64558a5
JB
496 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
497 (ppc64_standard_linkage_target): Use it.
498
449a5da4
AC
4992003-06-23 Andrew Cagney <cagney@redhat.com>
500
501 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
502 for 0 "int0" and 4 "int32" sized registers.
503 * gdbtypes.c (builtin_type_int0): Define.
504 (build_gdbtypes): Initialize builtin_type_int0.
505 * gdbtypes.h (builtin_type_int0): Declare.
506
b2a02dda
SC
5072003-06-23 Stephane Carrez <stcarrez@nerim.fr>
508
509 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
510 as characters are unsigned.
511
fba3138e
DJ
5122003-06-22 Daniel Jacobowitz <drow@mvista.com>
513
514 PR gdb/1179
515 * dwarfread.c (struct_type): Skip static fields without crashing.
516
f6c8180b
AC
5172003-06-22 Andrew Cagney <cagney@redhat.com>
518
519 GDB 6.0 branch created.
f2c06f52
AC
520 * README: Update.
521 * PROBLEMS: Update. Empty.
522 * NEWS: Update.
f6c8180b 523
ae822768
DJ
5242003-06-22 Daniel Jacobowitz <drow@mvista.com>
525
526 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
527 Suggested by Nick Hibma <n_hibma@webweaving.org>.
528
261de166
AC
5292003-06-22 Andrew Cagney <cagney@redhat.com>
530
531 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
532 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
533 Velikov.
534
30e94205
DJ
5352003-06-22 Daniel Jacobowitz <drow@mvista.com>
536
537 * cli/cli-cmds.c (shell_escape): Silence warnings from old
538 compilers.
539
9e14d721
DJ
5402003-06-21 Daniel Jacobowitz <drow@mvista.com>
541
542 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
543 argument of val_print.
544 * cp-valprint.c (cp_print_value): Don't add the offset parameter
545 to the address argument of baseclass_offset or target_read_memory.
546 Do add it to the argument of cp_print_value_fields.
547
a4b8ebc8
AC
5482003-06-21 Andrew Cagney <cagney@redhat.com>
549
550 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
551 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
552 instead of 0..NUM_REGS.
553 (mips_register_reggroup_p): New function.
554 (mips_pseudo_register_write): New function.
555 (mips_pseudo_register_read): New function.
556 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
557 based on the register's type.
558 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
559 cooked.
560 (mips_get_saved_register): Simplify. Assert that REGNO is a
561 pseudo / cooked.
562 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
563 (mips_register_type): Replace mips_register_virtual_type. Map
564 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
565 when available.
566 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
567 that the register is cooked / virtual.
568 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
569 Only get the extra info when needed.
570 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
571 (mips32_heuristic_proc_desc): Fetch the cooked register.
572 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
573 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
574 (mips_print_register): Use gdbarch_register_type, instead of
575 REGISTER_VIRTUAL_TYPE.
576 (print_gp_register_row): Use gdbarch_register_type, instead of
577 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
578 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
579 Print the pseudo / cooked registers.
580 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
581 Print the pseudo / cooked registers.
582 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
583 REG_NUM is pseudo / cooked.
584 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
585 (mips_n32n64_xfer_return_value): Ditto.
586 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
587 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
588 (mips_register_sim_regno): New function.
589 (mips_gdbarch_init): Set deprecated_register_byte,
590 register_group_p, pseudo_register_write, pseudo_register_read,
591 register_sim_regno, and num_pseudo_regs. Set register_type,
592 instead of register_virtual_type.
593 * Makefile.in (mips-tdep.o): Update dependencies.
594 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
595 REGISTER_VIRTUAL_TYPE.
596 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
597 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
598 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
599 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
600 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
601
325ed089
DJ
6022003-06-21 Daniel Jacobowitz <drow@mvista.com>
603
604 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
605 * cli/cli-cmds.c: Include "gdb_vfork.h".
606 (shell_escape): Use vfork.
607
f0e7d0e8
AC
6082003-06-21 Andrew Cagney <cagney@redhat.com>
609
c57bb9fa
AC
610 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
611 32 bit floating-point register saves.
612
6e51443a
AC
613 * frame.h (deprecated_unwind_get_saved_register): Delete.
614 * frame.c (deprecated_unwind_get_saved_register): Delete function.
615 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
616 and deprecated_get_next_frame_hack instead of
617 deprecated_unwind_get_saved_register.
618
ed183c7c
AC
619 * mips-tdep.c (mips_dump_tdep): Do not print
620 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
621
f0e7d0e8
AC
622 * frame.c (get_frame_register): New function.
623 (frame_unwind_register_signed): New function.
624 (get_frame_register_signed): New function.
625 (frame_unwind_register_unsigned): New function.
626 (get_frame_register_unsigned): New function.
627 * frame.h: Add comments on naming schema.
628 (get_frame_register, frame_unwind_register_signed): Declare.
629 (get_frame_register_signed, get_frame_register_signed): Declare.
630 (frame_unwind_register_unsigned): Declare.
631 (get_frame_register_unsigned): Declare.
632
2224d941
TR
6332003-06-20 Theodore A. Roth <troth@openavr.org>
634
635 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
636
8619218d
TR
6372003-06-20 Theodore A. Roth <troth@openavr.org>
638
639 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
640 (avr_read_sp): Ditto.
641
0b1b50c0
DJ
6422003-06-20 Daniel Jacobowitz <drow@mvista.com>
643
644 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
645 * config/arm/nm-linux.h: Likewise.
646 * config/arm/tm-linux.h: Likewise.
647 * config/ia64/nm-linux.h: Likewise.
648 * config/ia64/tm-ia64.h: Likewise.
649 * config/s390/tm-linux.h: Likewise.
650 * config/s390/tm-s390.h: Likewise.
651 * s390-nat.c: Likewise.
652 * s390-tdep.c: Likewise.
653
654 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
655 * config/ia64/linux.mt: Likewise.
656 * config/m68k/linux.mh: Likewise.
657 * config/mips/linux.mt: Likewise.
658 * config/powerpc/linux.mh: Likewise.
659 * config/sh/linux.mt: Likewise.
660
c8c18e65
KW
6612003-06-19 Kris Warkentin <kewarken@qnx.com>
662
663 * solib.c (solib_open): Change tests for whether to search
664 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
665 comments.
666
dcccef2e
TR
6672003-06-19 Theodore A. Roth <troth@openavr.org>
668
669 * avr-tdep.c (avr_frame_address): Delete function.
670 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
671 set_gdbarch_frame_args_address.
672
5861a190
AC
6732003-06-19 Andrew Cagney <cagney@redhat.com>
674
675 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
676 (REGISTER_CONVERT_FROM_TYPE): Delete.
677 (mips_register_convert_to_type): Delete declaration.
678 (mips_register_convert_from_type): Delete declaration.
679 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
680 kernel/.
681
0274a8ce
MS
6822003-06-19 Michael Snyder <msnyder@redhat.com>
683
684 * linux-nat.h: New file.
685 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 686 * lin-lwp.c: Include linux-nat.h.
0274a8ce 687 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 688 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
689 (linux_make_note_section): Iterate over lwps instead of threads.
690 (linux_do_thread_registers): Use lwp instead of merged pid.
691 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 692 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
693 Add dependency on linux_nat_h.
694
adf5f719
TR
6952003-06-19 Theodore A. Roth <troth@openavr.org>
696
697 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
698
6766a268
DJ
6992003-06-19 Daniel Jacobowitz <drow@mvista.com>
700
701 * varobj.c (get_type, get_target_type): Use check_typedef.
702
1171114a
DJ
7032003-06-19 Daniel Jacobowitz <drow@mvista.com>
704
705 * breakpoint.c (insert_catchpoint): Call internal_error.
706
adcf68a2
TR
7072003-06-19 Theodore A. Roth <troth@openavr.org>
708
709 * avr-tdep.c (avr_push_dummy_code): Delete function.
710 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
711
ea67f13b
DJ
7122003-06-19 Daniel Jacobowitz <drow@mvista.com>
713
714 * arch-utils.c (default_prepare_to_proceed): Remove.
715 (generic_prepare_to_proceed): Remove.
716 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
717 (generic_prepare_to_proceed): Remove prototype.
718 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
719 * gdbarch.c: Regenerate.
720 * gdbarch.h: Regenerate.
721 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
722 * hppah-nat.c (hppa_switched_threads): Remove.
723 * infrun.c (prepare_to_proceed): New static function, copied from
724 generic_prepare_to_proceed. Remove select_it argument.
725 (proceed): Call prepare_to_proceed.
726 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
727 variables.
728 (ptrace_wait): Don't set the removed variables.
729 (hppa_switched_threads): Remove.
730 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
731 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
732 (lin_lwp_prepare_to_proceed): Remove prototype.
733 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
734 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
735
4add8633
TR
7362003-06-18 Theodore A. Roth <troth@openavr.org>
737
738 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
739 trad-frame.h.
740 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
741 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
742 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
743 (AVR_PROLOGUE_*): Enumerate prologue types.
744 (struct frame_extra_info): Remove.
745 (struct avr_unwind_cache): Define.
746 (avr_write_sp): Delete function.
747 (avr_read_fp): Ditto.
748 (avr_init_extra_frame_info): Ditto.
749 (avr_pop_frame): Ditto.
750 (avr_frame_saved_pc): Ditto.
751 (avr_saved_pc_after_call): Ditto.
752 (avr_push_return_address): Ditto.
753 (avr_frame_chain): Ditto.
754 (avr_store_struct_return): Ditto.
755 (avr_push_arguments): Ditto.
756 (avr_scan_prologue): Update comments. Changed to set up the info for
757 cache unwinding. Now returns end of prologue PC.
758 (avr_skip_prologue): Better handling of functions lacking a prologue
759 by using avr_scan_prologue.
760 (avr_scan_arg_moves): New function.
761 (avr_saved_regs_unwinder): Ditto.
762 (avr_frame_unwind_cache): Ditto.
763 (avr_unwind_pc): Ditto.
764 (avr_frame_this_id): Ditto.
765 (avr_frame_prev_register): Ditto.
766 (avr_frame_p): Ditto.
767 (avr_frame_base_address ): Ditto.
768 (avr_unwind_dummy_id): Ditto.
769 (avr_push_dummy_code): Ditto.
770 (push_stack_item): Ditto.
771 (pop_stack_item): Ditto.
772 (avr_push_dummy_call): Ditto.
773 (struct stack_item): Define.
774 (avr_frame_unwind): Declare structure.
775 (avr_frame_base): Ditto.
776 (avr_gdbarch_init): Remove calls to
777 set_gdbarch_deprecated_init_frame_pc,
778 set_gdbarch_deprecated_target_read_fp,
779 set_gdbarch_deprecated_dummy_write_sp,
780 set_gdbarch_deprecated_fp_regnum,
781 set_gdbarch_deprecated_push_arguments,
782 set_gdbarch_deprecated_push_return_address,
783 set_gdbarch_deprecated_pop_frame,
784 set_gdbarch_deprecated_store_struct_return,
785 set_gdbarch_deprecated_frame_init_saved_regs,
786 set_gdbarch_deprecated_init_extra_frame_info,
787 set_gdbarch_deprecated_frame_chain,
788 set_gdbarch_deprecated_frame_saved_pc,
789 set_gdbarch_deprecated_saved_pc_after_call.
790 Add calls to set_gdbarch_push_dummy_call,
791 set_gdbarch_push_dummy_code,
792 frame_unwind_append_predicate,
793 frame_base_set_default,
794 set_gdbarch_unwind_dummy_id,
795 set_gdbarch_unwind_pc.
796 Wrap a long line.
797
7be04a68
MS
7982003-06-18 Corinna Vinschen <vinschen@redhat.com>
799
800 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
801 registers for H8/300S.
802 (h8300_print_registers_info): Ditto.
8ffd9b1b 803 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 804
ae087d01
DJ
8052003-06-18 Daniel Jacobowitz <drow@mvista.com>
806
807 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
808 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
809 (lin_lwp_wait): Likewise. Update comments.
810 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
811 (pull_pid_from_list, linux_record_stopped_pid): New.
812
07d8f827
SC
8132003-06-17 Stephane Carrez <stcarrez@nerim.fr>
814
815 * ada-lang.c (scan_discrim_bound): Name first argument.
816 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
817 declared by ALL_BLOCK_SYMBOLS.
818
7cb47b14
SC
8192003-06-17 Stephane Carrez <stcarrez@nerim.fr>
820
821 * ada-tasks.c (find_function_in_inferior): Don't declare it.
822 ("regcache.h"): Include it.
823 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
824
6ad8ae5c
DJ
8252003-06-17 Daniel Jacobowitz <drow@mvista.com>
826
827 * NEWS: Mention gdbserver detach change and "disconnect" command.
828 * infcmd.c (disconnect_command): New function.
829 (_initialize_infcmd): Add ``disconnect'' command.
830 * remote.c (remote_async_detach): Delete.
831 (remote_detach): Merge remote_async_detach.
832 (remote_disconnect): New.
833 (init_remote_ops): Set to_disconnect.
834 (init_remote_cisco_ops): Likewise.
835 (init_remote_async_ops): Likewise. Use remote_detach.
836 * target.c (cleanup_target): Default to_disconnect.
837 (update_current_target): Inherit to_disconnect.
838 (target_disconnect, debug_to_disconnect): New functions.
839 (setup_target_debug): Set to_disconnect.
840 * target.h (struct target_ops): Add to_disconnect.
841 (target_disconnect): Add prototype.
842
687595f9
DJ
8432003-06-17 Daniel Jacobowitz <drow@mvista.com>
844
845 * breakpoint.c (insert_catchpoint): New function.
846 (insert_breakpoints): Use catch_exceptions to call
847 insert_catchpoint. Disable catchpoints if they fail to insert.
848
29239a8f
DJ
8492003-06-17 Daniel Jacobowitz <drow@mvista.com>
850
851 * symfile.c (reread_symbols): Clear sym_private.
852
2cdf3c63
AC
8532003-06-17 Andrew Cagney <cagney@redhat.com>
854
855 * trad-frame.h (struct frame_info): Add opaque declaration.
856 * remote-fileio.h (struct cmd_list_element): Add opaque
857 declaration.
858 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
859 comments.
860
cf0e1e0d
DJ
8612003-06-17 Daniel Jacobowitz <drow@mvista.com>
862
863 * remote.c (remote_prepare_to_store): Replace call to
864 deprecated_read_register_bytes with multiple regcache_raw_read
865 calls.
866
192cdb19
KW
8672003-06-17 Kris Warkentin <kewarken@qnx.com>
868
869 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
870 (nto_find_and_open_solib): Likewise.
871 (nto_init_solib_absolute_prefix): Likewise.
872 (_initialize_nto_tdep): Fix indentation.
873
89929b45
KW
8742003-06-17 Kris Warkentin <kewarken@qnx.com>
875
876 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
877
46019f27
KW
8782003-06-17 Kris Warkentin <kewarken@qnx.com>
879
880 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
881
1a38736e
JB
8822003-06-17 Jim Blandy <jimb@redhat.com>
883
884 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
885
3605c34a
TR
8862003-06-16 Theodore A. Roth <troth@openavr.org>
887
888 * avr-tdep.c (avr_extract_return_value): New function.
889 (avr_gdbarch_init): Set extract_return_value method.
890
870b3035
AC
8912003-06-16 Andrew Cagney <cagney@redhat.com>
892
893 * frame.h (deprecated_get_next_frame_hack): Declare.
894 * frame.c (legacy_saved_regs_prev_register): Only require
895 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
896 there are always saved regs.
897 (deprecated_generic_get_saved_register): Do not require
898 DEPRECATED_FRAME_INIT_SAVED_REGS.
899 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
900 use frame ID unwind instead.
901 (deprecated_get_next_frame_hack): New function.
902
63d47a7d
CV
9032003-06-16 Corinna Vinschen <vinschen@redhat.com>
904
905 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
906 (h8300_push_dummy_call): ...this function. Some minor optimization.
907 (h8300_push_return_address): Remove.
908 (h8300_gdbarch_init): Remove calls to
909 set_gdbarch_deprecated_dummy_write_sp,
910 set_gdbarch_deprecated_push_arguments and
911 set_gdbarch_deprecated_push_return_address.
912 Add call to set_gdbarch_push_dummy_call.
913
4bb1dc5e
CV
9142003-06-16 Corinna Vinschen <vinschen@redhat.com>
915
916 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
917 (E_PSEUDO_EXR_REGNUM): Ditto.
918 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 919 registers into safe registers.
4bb1dc5e
CV
920 (h8300_skip_prologue): Check for stm instruction to push registers
921 used for register variables onto stack.
922 (gdb_print_insn_h8300): Remove.
923 (h8300_examine_prologue): Add a comment.
924 (h8300_register_name): Take pseudo registers into account.
925 (h8300s_register_name): Ditto.
926 (h8300sx_register_name): Ditto.
927 (h8300_print_register): Ditto.
928 (h8300_print_registers_info): Define "nice" printing order.
929 (h8300_saved_pc_after_call): Take pseudo registers into account.
930 (h8300_register_type): Ditto. Return type used for remote connection
931 when requesting real CCR or EXR register, return actual type when
932 requesting pseudo CCR or EXR.
933 (h8300_pseudo_register_read): New function.
934 (h8300_pseudo_register_write): Ditto.
935 (h8300_dbg_reg_to_regnum): Ditto.
936 (h8300s_dbg_reg_to_regnum): Ditto.
937 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
938 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
939 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
940 set_gdbarch_print_insn architecture dependent.
941 Call set_gdbarch_pseudo_register_read and
942 set_gdbarch_pseudo_register_write.
943 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
944
a59fe496
AC
9452003-06-16 Andrew Cagney <cagney@redhat.com>
946
947 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
948 * gdbarch.h, gdbarch.c: Re-generate.
949 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
950 * s390-tdep.c (s390_gdbarch_init): Update.
951 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
952 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
953 * mips-tdep.c (mips_gdbarch_init): Update.
954 * mcore-tdep.c (mcore_gdbarch_init): Update.
955 * cris-tdep.c (cris_gdbarch_init): Update.
956 * infcall.c (call_function_by_hand): Update.
957 * ia64-tdep.c (ia64_push_arguments): Update comment.
958 * frame.c (legacy_get_prev_frame): Do not assume
959 SAVE_DUMMY_FRAME_TOS_P.
960 * dummy-frame.c (find_dummy_frame): Update comment.
961
6f4e5a41
AC
9622003-06-16 Andrew Cagney <cagney@redhat.com>
963
964 * regcache.c (do_cooked_read): Do not use register_valid_p.
965
72fab697
TR
9662003-06-15 Theodore A. Roth <troth@openavr.org>
967
968 * avr-tdep.c (avr_register_type): Remove a blank line.
969 (avr_scan_prologue): Correct some comments.
970
e3d8b004
TR
9712003-06-15 Theodore A. Roth <troth@openavr.org>
972
973 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
974 prologue types.
8ffd9b1b 975 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
976 option.
977 Add code to scan -mcall-prologues for mega devices.
978
866b76ea
TR
9792003-06-15 Theodore A. Roth <troth@openavr.org>
980
981 * avr-tdep.c (avr_register_byte): Delete function.
982 (avr_register_raw_size): Delete function.
983 (avr_register_virtual_size): Delete function.
984 (avr_register_virtual_type): Delete function.
985 (avr_register_type): New function.
986 (avr_address_to_pointer): Remove unused code.
987 (avr_read_fp): Need to read FP as two separate bytes due to change to
988 avr_register_type() usage.
989 (avr_gdbarch_init): Don't set deprecated_register_size.
990 Don't set deprecated_register_bytes.
991 Don't set deprecated_register_byte.
992 Don't set deprecated_register_raw_size.
993 Don't set deprecated_max_register_raw_size.
994 Don't set deprecated_register_virtual_size.
995 Don't set deprecated_max_register_virtual_size.
996 Don't set deprecated_register_virtual_type.
997 Set register_type method.
998
3993f6b1
DJ
9992003-06-15 Daniel Jacobowitz <drow@mvista.com>
1000
1001 * Makefile.in (linux-nat.o): Add rule.
1002 * linux-nat.c: New file.
1003 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
1004 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
1005 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
1006 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
1007 * config/arm/linux.mh (NATDEPFILES): Likewise.
1008 * config/i386/linux.mh (NATDEPFILES): Likewise.
1009 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
1010 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1011 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1012 * config/mips/linux.mh (NATDEPFILES): Likewise.
1013 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
1014 * config/s390/s390.mh (NATDEPFILES): Likewise.
1015 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1016
786a90bb
MK
10172003-06-15 Mark Kettenis <kettenis@gnu.org>
1018
1019 * i387-tdep.c: Reorder includes, fix some whitespace issues and
1020 replace out-of-date comment.
1021
3bd3f01e
AC
10222003-06-15 Andrew Cagney <cagney@redhat.com>
1023
1024 * rdi-share/host.h (Fail): Change to a varargs function.
1025 * remote-rdi.c (Fail): Update.
8ffd9b1b 1026
de5b9bb9
MK
10272003-06-15 Mark Kettenis <kettenis@gnu.org>
1028
1029 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
1030 (i386_convert_register_p, i386_register_to_value,
1031 i386_register_from_value): Handle types longer than 8 bytes.
1032
d532c08f
MK
10332003-06-15 Mark Kettenis <kettenis@gnu.org>
1034
1035 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
1036 Move floating-point code to new function in i387-tdep.c.
1037 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
1038 New functions containing code moved here from i386-tdep.c.
1039 * i387-tdep.h: Add opaque declaration for `struct type'.
1040 (i387_register_to_value, i387_value_to_register): New prototypes.
1041 * x86-64-tdep.c (x86_64_convert_register_p): New function.
1042 (x86_64_init_abi): Set convert_register_p, register_to_value and
1043 value_to_register here.
8ffd9b1b 1044
42c466d7
AC
10452003-06-14 Andrew Cagney <cagney@redhat.com>
1046
1047 * mips-tdep.c (mips_register_to_value): Make static.
1048 (mips_value_to_register): Make static.
1049 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
1050 * ia64-tdep.c (ia64_register_raw_size): Make static.
1051 (ia64_register_virtual_size): Make static.
1052 (ia64_register_byte): Make static.
1053 * i387-tdep.c: Include "i387-tdep.h".
1054 (print_387_control_word): Delete function.
1055 (print_387_status_word): Delete function.
1056 (print_387_status_bits): Delete function.
1057 (print_387_control_bits): Delete function.
1058 * Makefile.in (i387-tdep.o): Update dependencies.
1059 * rdi-share/host.h (Fail): Declare.
1060 * remote-rdi.c (Fail): Update to match declaration.
1061
2a9cda49
AC
10622003-06-14 Andrew Cagney <cagney@redhat.com>
1063
1064 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
1065 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
1066 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
1067 * config/djgpp/fnchange.lst: Delete "remote-array.c".
1068 * README: Delete reference to remote-array.
1069 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
1070 (remote-array.o): Delete target.
1071 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
1072 * remote-array.c: Delete file.
1073
ff2e87ac
AC
10742003-06-14 Andrew Cagney <cagney@redhat.com>
1075 Mark Kettenis <kettenis@gnu.org>
1076
1077 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
1078 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
1079 parameter with "frame".
1080 * gdbarch.h, gdbarch.c: Re-generate.
1081 * frame.h (put_frame_register): Declare.
1082 * frame.c (put_frame_register): New function.
1083 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
1084 (legacy_register_to_value): Rewrite, use "frame" to get the
1085 register value.
1086 (legacy_value_to_register): Rewrite, use "frame" to find the
1087 register's location before storing.
1088 * arch-utils.h (legacy_convert_register_p): Update.
1089 (legacy_register_to_value, legacy_value_to_register): Update.
1090 * findvar.c (value_from_register): Rewrite, eliminate use of
1091 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
1092 "frame" to REGISTER_TO_VALUE.
1093 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
1094 lval_reg_frame_relative + lval_register branch of the switch. Do
1095 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
1096 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1097 I386_EDI_REGNUM): New defines.
1098 (i386_next_regnum, i386_convert_register_p,
1099 i386_register_to_value, i386_value_to_register): New functions.
1100 (i386_register_convertible, i386_register_convert_to_virtual,
1101 i386_convert_to_raw): Remove functions.
1102 (i386_gdbarch_init): Set convert_register_p, register_to_value and
1103 value_to_register instead of register_convertible,
1104 register_convert_to_virtual and register_convert_to_raw.
1105 * mips-tdep.c (mips_convert_register_p): New function.
1106 (mips_value_to_register): Replace mips_register_convert_from_type.
1107 (mips_register_to_value): Replace mips_register_convert_to_type.
1108 (mips_gdbarch_init): Set conver_register_p, value_to_register and
1109 register_to_value.
1110 * alpha-tdep.c (alpha_convert_register_p): Update.
1111 (alpha_value_to_register): Update, store the register.
1112 (alpha_register_to_value): Update, fetch the register.
1113
98be1e77
TR
11142003-06-14 Theodore A. Roth <troth@openavr.org>
1115
1116 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
1117 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
1118 Don't set deprecated_call_dummy_words.
1119 Remove commented out set_gdbarch_believe_pcc_promotion() call.
1120 Don't set remote_translate_xfer_address.
1121 (avr_io_reg_read_command): Remove commented out debug printf.
1122 Wrap a long line.
1123
57bc6122
TR
11242003-06-14 Theodore A. Roth <troth@openavr.org>
1125
1126 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
1127 causes gdb to seg fault.
1128
eb01fc62
DJ
11292003-06-14 Daniel Jacobowitz <drow@mvista.com>
1130
1131 * sparc-nat.c (fetch_inferior_registers): Correct
1132 a reference to "registers".
1133
3b3e6bee
DJ
11342003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
1135
1136 * Makefile.in (exc_request_U_h): Define
1137 (exc_request_S_h): Likewise.
1138 (msg_reply_S_h): Likewise.
1139 (msg_U_h): Likewise.
1140 (notify_S_h): Likewise.
1141 (process_reply_S_h): Likewise.
1142 (gnu-nat.o): Depend on gdb_obstack_h
1143 * gnu-nat.c: Include "gdb_obstack.h".
1144
b8de8283
AC
11452003-06-13 Andrew Cagney <cagney@redhat.com>
1146
1147 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
1148 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 1149
f3be58bc
AC
11502003-06-13 Andrew Cagney <cagney@redhat.com>
1151
1152 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
1153 when deprecated REGISTER macros can be deleted.
1154 * gdbarch.h, gdbarch.c: Re-generate.
1155
4c0122c8
JB
11562003-06-13 Jim Blandy <jimb@redhat.com>
1157
1158 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
1159 Linux entry point symbols for _dl_debug_state, too.
1160
3e210248
AC
11612003-06-13 Andrew Cagney <cagney@redhat.com>
1162
1163 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
1164 available, do not use the FP register, and always save the TOS.
1165 * dummy-frame.c (dummy_frame_this_id): Do not assert
1166 SAVE_DUMMY_FRAME_TOS.
1167 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
1168 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
1169 (i386_push_dummy_call): Add 8 to the returned SP.
1170 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
1171 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
1172 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
1173 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
1174 (x86_64_push_dummy_call): Return "sp + 16".
1175 (x86_64_init_abi): Do not set save_dummy_frame_tos.
1176 * alpha-tdep.c (alpha_gdbarch_init): Do not set
1177 save_dummy_frame_tos.
1178
0b65af49
JB
11792003-06-13 Jim Blandy <jimb@redhat.com>
1180
1181 * frv-tdep.c (frv_use_struct_convention): Delete static
1182 declaration for function deleted in my change of 2003-06-12.
1183
4ea2465e
TR
11842003-06-13 Theodore A. Roth <troth@openavr.org>
1185
1186 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
1187 (avr_pointer_to_address): Shift code addrs left 1 bit.
1188 (avr_convert_from_func_ptr_addr): Delete function since operation is
1189 better handled by avr_address_to_pointer and avr_pointer_to_address.
1190 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
1191
1581182a
MK
11922003-06-13 Mark Kettenis <kettenis@gnu.org>
1193
1194 From Kelley Cook <kelleycook@wideopenwest.com>:
1195 * configure.host: Accept i[34567]86 variants.
1196 * configure.tgt: Likewise.
1197 * nlm/configure.in: Likewise.
1198 * nlm/configure: Regenerated.
1199
7aa1783e
RE
12002003-06-13 Richard Earnshaw <rearnsha@arm.com>
1201
1202 * arm-tdep.c (solib-svr4.h): Dont' include it.
1203 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
1204 * arm-linux-tdep.c: ... here. Make static.
1205 (arm_linux_init_abi): Register it.
1206 (solib-svr4.h): Include it.
1207 * Makefile.in: Update dependencies.
1208 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
1209 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
1210
0261a0d0
CV
12112003-06-13 Corinna Vinschen <vinschen@redhat.com>
1212
1213 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
1214 indicate registers used for return values.
1215 (struct frame_extra_info): Drop args_pointer and locals_pointer.
1216 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
1217 members.
1218 (h8300_init_extra_frame_info): Ditto.
1219 (h8300_frame_locals_address): Removed.
1220 (h8300_frame_args_address): Removed.
1221 (h8300_extract_return_value): Use new regcache structure. Only care
1222 for 16 bit CPUs.
1223 (h8300h_extract_return_value): Same function for 32 bit CPUs.
1224 (h8300_store_return_value): Use new regcache structure. Only care
1225 for 16 bit CPUs.
1226 (h8300h_store_return_value): Same function for 32 bit CPUs.
1227 (h8300_store_struct_return): Removed.
1228 (h8300_extract_struct_value_address): Use new regcache structure.
1229 (h8300h_extract_struct_value_address): Removed.
1230 (h8300_push_dummy_code): New function.
1231 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
1232 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
1233 set_gdbarch_store_return_value architecture dependent.
1234 Call set_gdbarch_push_dummy_code and
1235 set_gdbarch_extract_struct_value_address.
1236 Remove calls to set_gdbarch_frame_args_address,
1237 set_gdbarch_frame_locals_address,
1238 set_gdbarch_deprecated_store_struct_return,
1239 set_gdbarch_deprecated_extract_return_value,
1240 set_gdbarch_deprecated_extract_struct_value_address,
1241 set_gdbarch_deprecated_call_dummy_words and
1242 set_gdbarch_deprecated_sizeof_call_dummy_words.
1243
055c394a
CV
12442003-06-13 Corinna Vinschen <vinschen@redhat.com>
1245
1246 * h8300-tdep.c (h8300_register_byte): Remove.
1247 (h8300h_register_byte): Remove.
1248 (h8300_register_virtual_type): Remove. Substitute by...
1249 (h8300_register_type): New function.
1250 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
1251 (h8300h_extract_struct_value_address): Ditto.
1252 (h8300_gdbarch_init): Drop calls to
1253 set_gdbarch_deprecated_register_byte and
1254 set_gdbarch_deprecated_register_virtual_type.
1255 Add call to set_gdbarch_register_type.
1256
9c04cab7
AC
12572003-06-13 Andrew Cagney <cagney@redhat.com>
1258
1259 * gdbarch.sh: Update comments on registers.
1260 (deprecated_register_byte): Rename register_byte.
1261 (deprecated_register_raw_size): Rename register_raw_size.
1262 (deprecated_register_virtual_size): Rename register_virtual_size.
1263 (deprecated_register_virtual_type): Rename register_virtual_type.
1264 * gdbarch.h, gdbarch.c: Re-generate.
1265 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1266 * vax-tdep.c (vax_gdbarch_init): Update.
1267 * v850-tdep.c (v850_gdbarch_init): Update.
1268 * sparc-tdep.c (sparc_gdbarch_init): Update.
1269 * sh-tdep.c (sh_gdbarch_init): Update.
1270 * s390-tdep.c (s390_gdbarch_init): Update.
1271 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1272 * ns32k-tdep.c: Update.
1273 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1274 * mips-tdep.c (mips_gdbarch_init): Update.
1275 * mcore-tdep.c (mcore_gdbarch_init): Update.
1276 * m68k-tdep.c (m68k_gdbarch_init): Update.
1277 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1278 * ia64-tdep.c (ia64_gdbarch_init): Update.
1279 * hppa-tdep.c (hppa_gdbarch_init): Update.
1280 * h8300-tdep.c (h8300_gdbarch_init): Update.
1281 * frv-tdep.c (frv_gdbarch_init): Update.
1282 * cris-tdep.c (cris_gdbarch_init): Update.
1283 * avr-tdep.c (avr_gdbarch_init): Update.
1284 * alpha-tdep.c (alpha_gdbarch_init): Update.
1285 * arm-tdep.c (arm_gdbarch_init): Update.
1286
b060cbea
AC
12872003-06-13 Andrew Cagney <cagney@redhat.com>
1288
1289 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
1290 mips_o32_use_struct_convention with always_use_struct_convention.
1291
0fc9922a
DC
12922003-06-12 David Carlton <carlton@kealia.com>
1293
1294 * cp-namespace.c (cp_set_block_scope): Comment out
1295 processing_has_namespace_info branch.
1296
1fd35568
JB
12972003-06-12 Jim Blandy <jimb@redhat.com>
1298
f470a70a
JB
1299 Recognize and skip 64-bit PowerPC Linux linkage functions.
1300 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
1301 insn_pattern, insns_match_pattern, d_field, ds_field): New
1302 functions, macros, and types for working with PPC instructions.
1303 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
1304 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
1305 ppc64_skip_trampoline_code): New functions, variables, and macros
1306 for recognizing and skipping linkage functions.
1307 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
1308 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
1309
49ff75ad
JB
1310 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
1311 register offsets for both the 32- and 64-bit interfaces.
1312
bd918c83
JB
1313 Actually finish the job started by my change of 2003-05-29.
1314 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
1315 other #definition of this.
1316 (ppc_linux_skip_trampoline_code): Remove declaration.
1317 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
1318 static.
1319 (ppc_linux_init_abi): Register it as the skip_trampoline_code
1320 method for GDBARCH.
1321
1322 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
1323 'long' on ppc64-*-linux*.
1324
f8c59253
JB
1325 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
1326 isn't #defined, assume the register doesn't exist: act as if
1327 tdep->ppc_mq_regnum were -1.
1328
8fbb30b1
JB
1329 * configure.host, configure.tgt: Add entries for
1330 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
1331 powerpc/linux.mt.
1332 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
1333 New files.
1334
1fd35568
JB
1335 * arch-utils.c (always_use_struct_convention): New function.
1336 * arch-utils.h (always_use_struct_convention): New prototype.
1337 * alpha-tdep.c (alpha_use_struct_convention): Delete.
1338 (alpha_gdbarch_init): Register always_use_struct_convention,
1339 instead of alpha_use_struct_convention.
1340 * cris-tdep.c (cris_use_struct_convention): Delete.
1341 (cris_gdbarch_init): Register always_use_struct_convention,
1342 instead of cris_use_struct_convention.
1343 * frv-tdep.c (frv_use_struct_convention): Delete.
1344 (frv_gdbarch_init): Register always_use_struct_convention,
1345 instead of frv_use_struct_convention.
1346 * h8300-tdep.c (h8300_use_struct_convention): Delete.
1347 (h8300_gdbarch_init): Register always_use_struct_convention,
1348 instead of h8300_use_struct_convention.
e3305dd9 1349 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
1350 (mips_o32_gdbarch_init): Register always_use_struct_convention,
1351 instead of mips_o32_use_struct_convention.
1352
e14e6e9c
AC
13532003-06-12 Andrew Cagney <cagney@redhat.com>
1354
1355 * wince.c: Include "mips-tdep.h".
1356 * mips-tdep.h (mips_next_pc): Declare.
1357 * mcore-tdep.c: Make more local functions static.
1358 * Makefile.in (wince.o): Update dependencies.
1359
2335f48e
DC
13602003-06-12 David Carlton <carlton@kealia.com>
1361
1362 * symtab.c (lookup_symbol_aux_minsyms): Replace
1363 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
1364 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
1365 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
1366 SYMBOL_NATURAL_NAME.
1367
f70a7d61
AS
13682003-06-12 Andreas Schwab <schwab@suse.de>
1369
1370 * Makefile.in (tuiDisassem.o): Update dependencies.
1371
b6429628
DC
13722003-06-12 David Carlton <carlton@bactrian.org>
1373
1374 * symtab.h: Delete declaration of make_symbol_overload_list.
1375 Add declaration of lookup_partial_symbol.
1376 * symtab.c (remove_params): Move to cp-support.c.
1377 (overload_list_add_symbol, make_symbol_overload_list)
1378 (sym_return_val_size, sym_return_val_index): Ditto.
1379 (lookup_partial_symbol): Make extern.
1380 * cp-support.h: Add declaration of make_symbol_overload_list.
1381 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
1382 symtab.h, and block.h.
1383 (remove_params): Move here from symtab.c.
1384 (overload_list_add_symbol, make_symbol_overload_list)
1385 (sym_return_val_size, sym_return_val_index): Ditto.
1386 * valops.c: Include cp-support.h.
1387 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
1388 frame_h, and block_h.
1389 (valops.o): Depend on cp_support_h.
1390
084edea5
CV
13912003-06-12 Corinna Vinschen <vinschen@redhat.com>
1392
1393 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
1394 substitute by NUM_REGS throughout.
1395 (h8300_register_name): Only care for H8/300 and H8/300H registers.
1396 (h8300s_register_name): New function for H8S registers.
1397 (h8300sx_register_name): Ditto for H8SX registers.
1398 (h8300_print_register): Revise register printing, avoid depending
1399 on 32 bit long.
0261a0d0 1400 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
1401 (h8300h_register_byte): New function for any other architecture.
1402 (h8300_register_raw_size): Remove.
1403 (h8300_register_virtual_type): Revise to return actually useful
1404 type.
1405 (h8300_extract_struct_value_address): Only care for H8/300 registers.
1406 (h8300h_extract_struct_value_address): New function for any other
1407 architecture.
1408 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
1409 set_gdbarch_register_name, set_gdbarch_register_byte,
1410 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
1411 Remove calls to set_gdbarch_deprecated_register_size,
1412 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
1413 set_gdbarch_deprecated_max_register_raw_size,
1414 set_gdbarch_register_virtual_size and
1415 set_gdbarch_deprecated_max_register_virtual_size entirely.
1416 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
1417 set_gdbarch_long_double_bit.
1418
06194148
JJ
14192003-06-11 Jeff Johnston <jjohnstn@redhat.com>
1420
8ffd9b1b
AJ
1421 * doublest.c (convert_doublest_to_floatformat): When dealing
1422 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
1423 processing a full 32 bits of mantissa.
1424
de4f826b
DC
14252003-06-11 David Carlton <carlton@bactrian.org>
1426
1427 * dictionary.h: New.
1428 * dictionary.c: New.
1429 * block.h: Add opaque declaration for struct dictionary.
1430 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
1431 'sym' members.
1432 (BLOCK_DICT): New macro.
1433 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
1434 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
1435 BLOCK_SHOULD_SORT.
1436 (ALL_BLOCK_SYMBOLS): Update definition.
1437 * Makefile.in (SFILES): Add dictionary.c.
1438 (dictionary_h): New.
1439 (COMMON_OBS): Add dictionary.o.
1440 (dictionary.o): New.
1441 (ada-lang.o): Depend on dictionary_h.
1442 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
1443 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
1444 (mi-cmd-stack.o): Ditto.
1445 (gdbtk-cmds.o): Update dependencies.
1446 (gdbtk-stack.o): Ditto.
1447 * ada-lang.c: Include dictionary.h.
1448 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
1449 (fill_in_ada_prototype, debug_print_block): Ditto.
1450 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
1451 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
1452 'is_sorted'.
1453 * mdebugread.c: Include dictionary.h.
1454 (struct parse_stack): Delete 'maxsyms' member.
1455 (parse_symbol): Update calls to new_block. Delete calls to
1456 shrink_block. Use dictionary methods.
1457 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
1458 Update calls to new_symtab. Don't maintain maxsyms data.
1459 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
1460 (add_symbol): Just call dict_add_symbol.
1461 (new_symtab): Delete 'maxsyms' argument.
1462 (new_symtab): Update calls to new_block.
1463 (new_block): Delete 'maxsyms' argument; add 'function' argument.
1464 (shrink_block): Delete function.
1465 (fixup_sigtramp): Update call to new_block. Add symbol via
1466 dict_add_symbol.
1467 * jv-lang.c: Include dictionary.h.
1468 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
1469 appropriately. Set class_symtab->free_func. Make sure the
1470 blockvector is big enough to hold two blocks.
1471 (add_class_symtab_symbol): Use dictionary methods.
1472 (free_class_block): New function.
1473 (type_from_class): Replace explicit iteration by
1474 ALL_BLOCK_SYMBOLS.
1475 * symtab.h (struct symtab): Replace 'free_ptr' method by
1476 'free_func'.
1477 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
1478 sort_symtab_syms.
1479 * dwarfread.c (psymtab_to_symtab_1): Delete call to
1480 sort_symtab_syms.
1481 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
1482 Include dictionary.h.
1483 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
1484 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
1485 sort_symtab_syms.
1486 * objfiles.c: Include dictionary.h.
1487 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
1488 * buildsym.c: Include dictionary.h.
1489 (finish_block): Use dictionary methods.
1490 (end_symtab): Set free_func to NULL, not free_ptr.
1491 * tracepoint.c: Include dictionary.h.
1492 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
1493 (scope_info): Ditto.
1494 * stack.c: Include dictionary.h.
1495 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
1496 (print_block_frame_labels, print_frame_arg_vars)
1497 (print_frame_args): Ditto.
1498 * symmisc.c (free_symtab_block): Use dictionary methods.
1499 (dump_symtab): Ditto.
1500 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
1501 Include dictionary.h.
1502 * symfile.h: Delete declarations of sort_block_syms,
1503 sort_symtab_syms.
1504 * symfile.c (sort_block_syms): Delete.
1505 (sort_symtab_syms): Delete.
1506 * symtab.c: Include dictionary.h.
1507 (lookup_block_symbol): Use dictionary iterators.
1508 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
1509 (search_symbols, make_symbol_completion_list): Ditto.
1510 (make_symbol_overload_list): Ditto.
1511 * valops.c (value_of_local): Use dict_empty.
1512 Include dictionary.h.
1513
a31f978c
JB
15142003-06-11 J. Brobecker <brobecker@gnat.com>
1515
1516 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
1517
526e70c0
DC
15182003-06-11 David Carlton <carlton@bactrian.org>
1519
1520 * block.h (BLOCK_SHOULD_SORT): Delete.
1521 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
1522 blocks.
1523 * ada-lang.c (ada_add_block_symbols): Ditto.
1524 * symfile.c (sort_block_syms): Delete.
1525 (sort_symtab_syms): Ditto.
1526 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
1527 declarations.
1528 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
1529 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
1530 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
1531 * dwarfread.c (psymtab_to_symtab_1): Ditto.
1532 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
1533 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1534 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
1535
33c08150
JJ
15362003-06-11 Jeff Johnston <jjohnstn@redhat.com>
1537
8ffd9b1b 1538 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
1539 bits to 128.
1540
781a750d
AC
15412003-06-11 Andrew Cagney <cagney@redhat.com>
1542
1543 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
1544 REGISTER_CONVERTIBLE.
1545 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
1546 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
1547 * gdbarch.h, gdbarch.c: Re-generate.
1548 * arch-utils.h (deprecated_register_convertible_not): Rename
1549 generic_register_convertible_not.
1550 * arch-utils.c (deprecated_register_convertible_not): Rename
1551 generic_register_convertible.
1552 (legacy_convert_register_p, legacy_register_to_value): Update.
1553 * sh-tdep.c (sh64_push_arguments): Update.
1554 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
1555 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
1556 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
1557 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
1558 * arch-utils.c (legacy_value_to_register): Update.
1559 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1560 (rs6000_register_convert_to_raw): Make parameter "from" const.
1561 * mips-tdep.c (mips_gdbarch_init): Update.
1562 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
1563 * infcmd.c (default_print_registers_info): Update.
1564 * ia64-tdep.c (ia64_gdbarch_init): Update.
1565 (ia64_register_convert_to_raw): Make parameter "from" const.
1566 * i386-tdep.c (i386_gdbarch_init): Update.
1567 (i386_register_convert_to_raw): Update.
1568
cd90e54f
AC
15692003-06-11 Andrew Cagney <cagney@redhat.com>
1570
1571 * remote-fileio.c: Include "remote-fileio.h".
1572 * Makefile.in (remote-fileio.o): Update dependencies.
1573 (remote_fileio_h): Fix typo.
1574
a78f21af
AC
15752003-06-11 Andrew Cagney <cagney@redhat.com>
1576
1577 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
1578 (xstormy16_save_dummy_frame_tos): Make static.
1579 (_initialize_xstormy16_tdep): Add declaration.
1580 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
1581 * v850-tdep.c: Make local functions static.
1582 (_initialize_v850_tdep): Add declaration.
1583 * sparc-tdep.c: Make local functions static.
1584 (_initialize_sparc_tdep): Add declaration.
1585 * sh-tdep.c: Make local functions static.
1586 (_initialize_sh_tdep): Add declaration.
1587 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
1588 * s390-tdep.c: Make local functions static.
1589 (_initialize_s390_tdep): Add declaration.
1590 * dbxread.c (find_stab_function_addr): Make static.
1591 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
1592 * ocd.c (_initialize_remote_ocd): Add declaration.
1593 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
1594 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
1595 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
1596 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
1597 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
1598 * remote-array.c (_initialize_array): Add declaration.
1599 (_initialize_remote_monitors): Add declaration.
1600 * remote-mips.c: Make local functions static.
1601 (_initialize_remote_mips): Add declaration.
1602 * mcore-tdep.c: Make all local functions static.
1603 (_initialize_mcore_tdep): Add declaration.
1604 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
1605 * abug-rom.c (_initialize_abug_rom): Add declaration.
1606 * rom68k-rom.c (_initialize_rom68k): Add declaration.
1607 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
1608 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
1609 * remote-est.c (_initialize_est): Add declaration.
1610 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
1611 (m68hc11_call_dummy_address): Make static.
1612 * ia64-tdep.c: Make local functions static.
1613 (_initialize_ia64_tdep): Add declaration.
1614 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
1615 * monitor.c (monitor_wait_filter): Make static.
1616 (_initialize_remote_monitors): Add declaration.
1617 * remote-hms.c (_initialize_remote_hms): Add declaration.
1618 * remote-e7000.c (fetch_regs_from_dump): Make static.
1619 (expect_n): Make static.
1620 (_initialize_remote_e7000): Add declaration.
1621 * ser-e7kpc.c: Always include "defs.h".
1622 (_initialize_ser_e7000pc): Add declaration.
1623 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
1624 * cris-tdep.c: Make all but one function static.
1625 (_initialize_cris_tdep): Add declaration.
1626 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
1627 * solib.c (update_solib_list): Make static.
1628 (_initialize_solib): Add declaration.
1629 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
1630 (_initialize_avr_tdep): Add declaration.
1631 * remote-rdi.c (voiddummy): Make static.
1632 (_initialize_remote_rdi): Add declaration.
1633 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
1634 * remote-rdp.c (send_rdp): Make static.
1635 (_initialize_remote_rdp): Add declaration.
1636 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
1637
cbcdb1f5
CV
16382003-06-11 Corinna Vinschen <vinschen@redhat.com>
1639
1640 * remote-fileio.c: Make ari happy.
1641
a191ea8d
JB
16422003-06-10 J. Brobecker <brobecker@gnat.com>
1643
1644 * rs6000-nat.c (child_xfer_memory): Compute the right address when
1645 fetching the trailing bytes of the buffer we are about to write.
1646
0ef75e11
AC
16472003-06-10 Andrew Cagney <cagney@redhat.com>
1648
1649 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
1650 * Makefile.in (remote-fileio.o): Update dependencies.
1651 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
1652 include <setjmp.h>, or <sys/types.h> conditional on USG.
1653 (remote_fio_jmp_buf): Delete global variable.
1654
449092f6 16552003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 1656 Martin M. Hunt <hunt@redhat.com>
449092f6 1657
559fa028
AC
1658 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
1659 (SFILES): Add remote-fileio.c.
1660 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
1661 dependencies for building remote.o.
449092f6
CV
1662 * remote-fileio.c: New file implementing the remote File-I/O protocol.
1663 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 1664 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
1665 static storage class.
1666 (remote_wait, remote_async_wait): Call remote_fileio_request() on
1667 'F' packet.
1668 (_initialize_remote): Call initialize_remote_fileio().
1669 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
1670 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
1671 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
1672 (captured_main): Initialize new ui_files.
1673 * ui-file.c: Add read and fgets input functions.
1674 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
1675 (null_file_read): New function.
1676 (ui_file_read): New function.
1677 (set_ui_file_read): New function.
1678 (stdio_file_read): New function.
1679 * ui-file.h: New type ui_file_read_ftype.
1680 (set_ui_file_read): Declare.
1681 (ui_file_read): Declare.
1682
248de703
AC
16832003-06-09 Andrew Cagney <cagney@redhat.com>
1684
1685 * frame.h (deprecated_unwind_get_saved_register): Rename
1686 generic_unwind_get_saved_register, update comments.
1687 * mips-tdep.c (mips_get_saved_register): Update.
1688 * frame.c (deprecated_unwind_get_saved_register): Update.
1689
0ed8aa57
AC
16902003-06-09 Andrew Cagney <cagney@redhat.com>
1691
1692 * vax-tdep.c (vax_frame_locals_address): Delete function.
1693 (vax_gdbarch_init): Do not set frame_locals_address.
1694 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
1695 (m68hc11_gdbarch_init): Do not set frame_locals_address.
1696 * s390-tdep.c (s390_frame_args_address): Delete function.
1697 (s390_gdbarch_init): Do not set frame_args_address or
1698 frame_locals_address.
1699 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
1700 (ns32k_gdbarch_init): Do not set frame_locals_address.
1701 * hppa-tdep.c (hppa_frame_args_address): Delete function.
1702 (hppa_frame_locals_address): Delete function.
1703 (hppa_gdbarch_init): Do not set frame_args_address, or
1704 frame_locals_address.
1705 * arm-tdep.c (arm_frame_args_address): Delete.
1706 (arm_frame_locals_address): Delete.
1707 (arm_gdbarch_init): Do not set frame_args_address, or
1708 frame_locals_address.
1709
983a287a
AC
17102003-06-09 Andrew Cagney <cagney@redhat.com>
1711
1712 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
1713 * gdbarch.h, gdbarch.c: Re-generate.
1714 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
1715 * arch-utils.c (frame_num_args_unknown): Delete function.
1716 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
1717 (frame_info): Use FRAME_NUM_ARGS_P.
1718 * arm-tdep.c (arm_frame_num_args): Delete function.
1719 (arm_gdbarch_init): Do not set frame_num_args.
1720 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
1721 * hppa-tdep.c (hppa_frame_num_args): Delete function.
1722 (hppa_gdbarch_init): Do not set frame_num_args.
1723 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
1724 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1725 frame_num_args to default frame_num_args_unknown.
1726 * v850-tdep.c (v850_gdbarch_init): Ditto.
1727 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1728 * sh-tdep.c (sh_gdbarch_init): Ditto.
1729 * s390-tdep.c (s390_gdbarch_init): Ditto.
1730 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1731 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1732 * mips-tdep.c (mips_gdbarch_init): Ditto.
1733 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1734 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1735 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1736 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1737 * i386-tdep.c (i386_gdbarch_init): Ditto.
1738 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1739 * frv-tdep.c (frv_gdbarch_init): Ditto.
1740 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1741 * cris-tdep.c (cris_gdbarch_init): Ditto.
1742 * avr-tdep.c (avr_gdbarch_init): Ditto.
1743 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1744
8d3b0994
AC
17452003-06-09 Andrew Cagney <cagney@redhat.com>
1746
1747 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
1748 (print_frame_args): Moved to "stack.c".
1749 * stack.c: Include "gdb_assert.h".
1750 (print_frame_nameless_args): Moved from "printcmd.c", made static.
1751 (print_frame_args): Moved from "printcmd.c".
1752 * frame.h (print_frame_args): Delete declaration.
1753 * Makefile.in (stack.o): Update dependencies.
1754
25e3a86b
AC
17552003-06-08 Andrew Cagney <cagney@redhat.com>
1756
1757 * frame.c (get_prev_frame): Remove reference to
1758 frame_args_address_correct in comments.
1759 * frame-base.c (default_frame_args_address): Delete code
1760 conditional on FRAME_ARGS_ADDRESS_CORRECT.
1761 * vax-tdep.c (vax_frame_args_address_correct): Delete.
1762 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
1763 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
1764 (vax_frame_args_address_correct): Delete declaration.
1765
a9e5fdc2
AC
17662003-06-08 Andrew Cagney <cagney@redhat.com>
1767
1768 * gdbarch.sh (UNWIND_SP): Add.
1769 * gdbarch.h, gdbarch.c: Re-generate.
1770 * frame.c (frame_sp_unwind): New function.
1771 (get_frame_sp): New function.
1772 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
1773 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
1774 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
1775 value.
1776 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
1777 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
1778
8983bd83
AC
17792003-06-08 Andrew Cagney <cagney@redhat.com>
1780
7fec2c59
AC
1781 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
1782 REMOTE_BREAKPOINT.
1783 * remote.c: Update.
1784 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
1785 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
1786 * config/m68k/tm-sun3.h: Update.
1787 * config/m68k/tm-m68klynx.h: Update.
1788 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
1789
8983bd83
AC
1790 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
1791 trad_frame". Update comments.
1792 * d10v-tdep.c (struct d10v_unwind_cache): Update.
1793 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
1794 (trad_frame_register_value, trad_frame_prev_register): Update.
1795
b9362cc7
AC
17962003-06-08 Andrew Cagney <cagney@redhat.com>
1797
1798 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
1799 from GCC's acinclude.m4.
1800 * configure.in: Check for getopt's delcaration.
8ffd9b1b 1801 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
1802 * main.c (error_init): Delete declaration.
1803 * defs.h (error_init): Declare.
1804 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
1805 (rs6000_convert_from_func_ptr_addr): Make static.
1806 (_initialize_rs6000_tdep): Add declaration.
1807 * cli/cli-cmds.c (dont_repeat): Delete declaration.
1808 (show_commands, set_verbose, show_history): Delete declaration.
1809 * top.h (set_verbose): Add declaration.
1810 (show_history, set_history, show_commands): Add declaration.
1811 (do_restore_instream_cleanup): Add declaration.
1812 * objc-lang.c (specialcmp): Make static.
1813 (print_object_command): Make static.
1814 (find_objc_msgsend): Make static.
1815 (find_objc_msgcall_submethod_helper): Make static.
1816 (find_objc_msgcall_submethod): Make static.
1817 (_initialize_objc_language): Add declaration.
1818 (find_implementation_from_class): Make static.
1819 (find_implementation): Make static.
1820 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
1821 * objc-lang.h (lookup_struct_typedef): Add declaration.
1822 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
1823 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
1824 (do_restore_user_call_depth): Make static.
1825 (do_restore_instream_cleanup): Delete declaration.
1826 (dont_repeat): Delete declaration.
1827 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
1828 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
1829 * reggroups.c (_initialize_reggroup): Add declaration.
1830 * cp-support.c (_initialize_cp_support): Add declaration.
1831 * cp-abi.c (_initialize_cp_abi): Add declaration.
1832 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
1833 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
1834 (_initialize_gnu_v3_abi): Add declaration.
1835 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
1836 (_initialize_gnu_v2_abi): Add declaration.
1837 * frame-base.c (_initialize_frame_base): Add declaration.
1838 * doublest.c (floatformat_from_length): Make static.
1839 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
1840 * frame.c (create_sentinel_frame): Make static.
1841 (_initialize_frame): Add declaration.
1842 * top.c (do_catch_errors): Make static.
1843 (gdb_rl_operate_and_get_next_completion): Make static.
1844 * typeprint.c: Include "typeprint.h".
1845 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
1846 (sentinel_frame_this_id): Make static.
1847 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
1848 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
1849 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
1850 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
1851 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
1852 * maint.c (maintenance_print_architecture): Make static.
1853 * signals/signals.c (_initialize_signals): Add declaration.
1854 * std-regs.c (_initialize_frame_reg): Add declaration.
1855 * jv-exp.y (push_variable): ISO C definition.
1856 (push_qualified_expression_name): Ditto.
1857 * memattr.c (_initialize_mem): Add declaration.
1858 * remote.c (remote_check_watch_resources): Make static.
1859 (remote_stopped_by_watchpoint): Make static.
1860 (remote_stopped_data_address): Make static.
1861 * d10v-tdep.c (nr_dmap_regs): Make static.
1862 (a0_regnum): Make static.
1863 (d10v_frame_unwind_cache): Make static.
1864 (d10v_frame_p): Make static.
1865 * osabi.c (show_osabi): Make static.
1866 (_initialize_gdb_osabi): Add extern declaration.
1867 * gdbtypes.c (make_qualified_type): Make static.
1868 (safe_parse_type): Make static.
1869 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
1870 * macrotab.c (macro_bcache_free): Make static.
1871 * interps.c (interp_set_quiet): Make static.
1872 (interpreter_exec_cmd): Make static.
1873 * stack.h (select_frame_command): New file.
1874 * stack.c: Include "stack.h".
1875 (select_frame_command_wrapper): Delete function.
1876 (select_frame_command): Make global.
1877 * infcall.c: Include "infcall.h".
1878 * linespec.c: Include "linespec.h".
1879 * symfile.c (sections_overlap): Make static.
1880 * cp-support.h (cp_initialize_namespace): ISO C declaration.
1881 * charset.c (_initialize_charset): Add missing prototype.
1882 * regcache.c (init_legacy_regcache_descr): Make static.
1883 (do_regcache_xfree): Make static.
1884 (regcache_xfer_part): Make static.
1885 (_initialize_regcache): Add missing prototype.
1886 * breakpoint.c (parse_breakpoint_sals): Make static.
1887 (breakpoint_sals_to_pc): Make static.
1888 * interps.h (clear_interpreter_hooks): ISO C declaration.
1889 * Makefile.in (stack_h): Define.
1890 (stack.o, typeprint.o, mi-main.o): Update dependencies.
1891 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
1892
a0f267c7
AC
18932003-06-08 Andrew Cagney <cagney@redhat.com>
1894
1895 * Makefile.in (d10v-tdep.o): Update dependencies.
1896 (SFILES): Add trad-frame.c.
1897 (trad_frame_h): Define.
1898 (COMMON_OBS): Add trad-frame.o.
1899 (trad-frame.o): Specify dependencies.
1900 * d10v-tdep.c: Include "trad-frame.h".
1901 (saved_regs_unwinder): Delete function.
1902 (d10v_frame_prev_register): Use trad_frame_prev_register.
1903 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
1904 trad_frame", delete "regs" and "prev_sp".
1905 (prologue_find_regs): Use trad-frame.
1906 * trad-frame.h, trad-frame.c: New files.
1907
4538b4f4
MK
19082003-06-08 Mark Kettenis <kettenis@gnu.org>
1909
1910 * dwarf2cfi.c, dwarf2cfi.h: Remove.
1911
a0273b2f
AF
19122003-06-07 Adam Fedor <fedor@gnu.org>
1913
1914 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
1915 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
1916 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
1917 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 1918 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
1919 Use it.
1920
3a6c3343
AC
19212003-06-07 Andrew Cagney <cagney@redhat.com>
1922
1923 * symfile.h: Re-indent, clean up comments.
1924
b46e02f6
AC
19252003-06-07 Andrew Cagney <cagney@redhat.com>
1926
1927 * inferior.h (deprecated_write_sp): Replace
1928 generic_target_write_sp.
1929 * regcache.c (deprecated_write_sp): Replace
1930 generic_target_write_sp.
1931 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1932 * vax-tdep.c (vax_gdbarch_init): Update.
1933 * v850-tdep.c (v850_gdbarch_init): Update.
1934 * sparc-tdep.c (sparc_gdbarch_init): Update.
1935 * sh-tdep.c (sh_gdbarch_init): Update.
1936 * s390-tdep.c (s390_gdbarch_init): Update.
1937 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1938 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1939 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1940 * mcore-tdep.c (mcore_gdbarch_init): Update.
1941 * m68k-tdep.c (m68k_gdbarch_init): Update.
1942 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1943 * ia64-tdep.c (ia64_gdbarch_init): Update.
1944 * h8300-tdep.c (h8300_gdbarch_init): Update.
1945 * frv-tdep.c (frv_gdbarch_init): Update.
1946 * cris-tdep.c (cris_gdbarch_init): Update.
1947 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
1948
a42e117c
AC
19492003-06-07 Andrew Cagney <cagney@redhat.com>
1950
1951 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
1952 Assert that PC_REGNUM is valid.
1953 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
1954
bd1ce8ba
AC
19552003-06-07 Andrew Cagney <cagney@redhat.com>
1956
1957 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
1958 * gdbarch.h, gdbarch.c: Regenerate.
1959 * mn10300-tdep.c: Include "gdb_assert.h".
1960 (mn10300_read_fp): New function.
1961 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
1962 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
1963 * ia64-tdep.c: Include "gdb_assert.h".
1964 (ia64_read_fp): New function.
1965 (ia64_gdbarch_init): Set deprecated_target_read_fp to
1966 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
1967 * regcache.c (generic_target_read_sp): Delete function.
1968 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
1969 * inferior.h (generic_target_read_sp): Delete declaration.
1970 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
1971 generic_target_read_sp.
1972 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1973 * sparc-tdep.c (sparc_gdbarch_init): Ditto
1974 * sh-tdep.c (sh_gdbarch_init): Ditto.
1975 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1976 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
1977
ec5cbaec
AC
19782003-06-07 Andrew Cagney <cagney@redhat.com>
1979
1980 * gdbarch.sh: Comment each field of startup_gdbarch.
1981 * gdbarch.h, gdbarch.c: Re-generate.
1982
cde9ea48
AC
19832003-06-07 Andrew Cagney <cagney@redhat.com>
1984
1985 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
1986 * gdbarch.h, gdbarch.c: Re-generate.
1987 * regcache.c: Update comments on read_pc et.al.
1988 (generic_target_read_pc): Delete function.
1989 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
1990 * inferior.h (generic_target_read_pc): Delete declaration.
1991 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
1992 generic_target_read_pc.
1993 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1994 * sh-tdep.c (sh_gdbarch_init): Ditto.
1995 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1996 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 1997
9a90a780
AC
19982003-06-07 Andrew Cagney <cagney@redhat.com>
1999
2000 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
2001 "index" with "special_local_sect". Use strcmp instead of STREQ.
2002 Append period to coments.
2003
a39a16c4
MM
20042003-06-06 Mark Mitchell <mark@codesourcery.com>
2005
2006 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
2007 (elfstab_offset_sections): Likewise.
2008 * gdb-stabs.h (stab_section_info): Likewise.
2009 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
2010 * objfiles.c (objfile_relocate): Likewise.
2011 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
2012 * remote.c (get_offsets): Likewise.
2013 (remote_cisco_objfile_relocate): Likewise.
2014 * somread.c (som_symfile_offsets): Likewise.
2015 * symfile.c (alloc_section_addr_info): New function.
2016 (build_section_addr_info_from_section_tab): Use it.
2017 (free_section_addr_info): Adjust.
2018 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
2019 (syms_from_objfile): Allocate local_addr dynamically.
2020 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
2021 dynamically.
2022 (add_symbol_file_command): Allocate sect_opts dynamically.
2023 (reread_symbols): Avoid use of SECT_OFF_MAX.
2024 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
2025 (alloc_section_addr_info): Declare it.
2026 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
2027 * win32-nat.c (solib_symbols_add): Allocate section_addrs
2028 dynamically.
2029 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 2030
20c6c2f8
AC
20312003-06-06 Andrew Cagney <cagney@redhat.com>
2032
2033 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
2034 (d10v_frame_unwind_cache): Do not set "return_pc".
2035
884a26c8
MS
20362003-06-06 Michael Snyder <msnyder@redhat.com>
2037
2038 * h8300-tdep.c: Make tidy (long lines).
2039
088ce440
ML
20402003-06-06 Michal Ludvig <mludvig@suse.cz>
2041
8ffd9b1b 2042 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
2043 to regcache_collect().
2044
7d773d96
JB
20452003-06-05 J. Brobecker <brobecker@gnat.com>
2046
2047 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
2048 pc_in_sigtramp multiarch method.
2049 (hppa_hpux_som_init_abi): Use it.
2050 (hppa_hpux_elf_init_abi): Likewise.
2051 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
2052 macro has been multiarched.
2053 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
2054 macro here, as hppa64 isn't multiarched yet.
2055
1df6926e
AC
20562003-06-05 Andrew Cagney <cagney@redhat.com>
2057
2058 * Makefile.in (value_h): Add $(frame_h).
2059 * value.h: Include "frame.h".
2060 (struct value): Replace "frame_addr" with "frame_id".
2061 (VALUE_FRAME_ID): Replace VALUE_FRAME.
2062 * values.c (allocate_value): Use VALUE_FRAME_ID.
2063 (value_copy): Use VALUE_FRAME_ID.
2064 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
2065 * valops.c (value_assign): Update. Use frame_find_by_id.
2066
6b53acc6
ML
20672003-06-05 Michal Ludvig <mludvig@suse.cz>
2068
2069 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
2070 in each pass.
2071
4d9850d3
JJ
20722003-06-05 Jeff Johnston <jjohnstn@redhat.com>
2073
2074 * thread-db.c (check_event): For create/death event breakpoints,
2075 loop through all messages to ensure that we read the message
2076 corresponding to the breakpoint we are at.
2077
8efca6ba
MS
20782003-06-04 Michael Snyder <msnyder@redhat.com>
2079
2080 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
2081
0912c7f2
MK
20822003-06-04 Mark Kettenis <kettenis@gnu.org>
2083
2084 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
2085 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
2086 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
2087 when handling .eh_frame sections.
2088
4e370325
JB
20892003-06-04 J. Brobecker <brobecker@gnat.com>
2090
2091 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
2092 prepare_to_proceed procedure instead of the hppa-specific one.
2093 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
2094
b757528f 20952003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 2096
b757528f
JJ
2097 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
2098 * config.in: Regenerated.
2099 * configure.in: Add test for syscall function and check for
2100 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
2101 * configure: Regenerated.
2102 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
2103 <sys/syscall.h>.
2104 (kill_lwp): New function that uses tkill syscall or
2105 uses kill, depending on whether threading model is nptl or not.
2106 All callers of kill() changed to use kill_lwp().
2107 (lin_lwp_wait): Make special check when WIFEXITED occurs to
2108 see if all threads have already exited in the nptl model.
2109 (stop_and_resume_callback): New callback function used by the
2110 lin_lwp_wait thread exit handling code.
2111 (stop_wait_callback): Check for threads already having exited and
2112 delete such threads fromt the lwp list when discovered.
2113 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 2114
b757528f
JJ
2115 Roland McGrath <roland@redhat.com>
2116 * i386-linux-nat.c (ps_get_thread_area): New function needed by
2117 nptl libthread_db.
2118
087779b1
RH
21192003-06-03 Richard Henderson <rth@redhat.com>
2120
b21fd293
RH
2121 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
2122 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
2123 (alpha_sigtramp_frame_prev_register): Likewise.
2124 (alpha_heuristic_frame_prev_register): Likewise.
2125 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
2126
8ffd9b1b 2127 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
2128 alpha-specific register id names.
2129 (alpha_mdebug_frame_unwind_cache): Likewise.
2130 (alpha_mdebug_frame_prev_register): Likewise.
2131
baa490c4
RH
21322003-06-03 Richard Henderson <rth@redhat.com>
2133
2134 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
2135 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
2136 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
2137 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
2138 unwind routines.
2139 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
2140 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
2141 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
2142
2143 * alpha-linux-tdep.c: Remove unnecessary includes.
2144 * Makefile.in (alpha-linux-tdep.o): Update.
2145
21462003-06-03 Richard Henderson <rth@redhat.com>
2147
2148 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
2149 (alphabsd_fill_fpreg): Likewise.
2150
f534e522
JB
21512003-06-03 J. Brobecker <brobecker@gnat.com>
2152
2153 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
2154 references to struct frame_info fields by calls to the equivalent
2155 accessors. Necessary now that frame_info is opaque.
2156
4035536b
JB
21572003-06-03 J. Brobecker <brobecker@gnat.com>
2158
2159 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
2160 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
2161 structure, field no longer exists.
2162
0bd79c5c
JB
21632003-06-03 J. Brobecker <brobecker@gnat.com>
2164
2165 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
2166 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
2167
37bb6d9f
JB
21682003-06-03 J. Brobecker <brobecker@gnat.com>
2169
2170 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
2171 references to struct frame_info fields by calls to the equivalent
2172 accessors. Necessary now that frame_info is opaque.
2173
852ee05c
JB
21742003-06-03 J. Brobecker <brobecker@gnat.com>
2175
2176 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
2177 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
2178 structure, field no longer exists.
2179
7d58c67d
TR
21802003-06-03 Theodore A. Roth <troth@openavr.org>
2181
8ffd9b1b 2182 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
2183 accumulation of the size of all registers instead of blindly using
2184 DEPRECATED_REGISTER_BYTES.
2185
0a48e7e8
MS
21862003-06-03 Michael Snyder <msnyder@redhat.com>
2187
2188 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
2189 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
2190 for h8300sx.
2191
9798ab0d
JB
21922003-06-03 J. Brobecker <brobecker@gnat.com>
2193
2194 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
2195 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
2196
00b037e2
AC
21972003-06-03 Andrew Cagney <cagney@redhat.com>
2198
2199 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
2200 (sparc_convert_to_raw): Delete function.
2201 (sparc_gdbarch_init): Do not set register_convert_to_raw or
2202 register_convert_to_virtual.
2203
043b2f77
JJ
22042003-06-03 Jeff Johnston <jjohnstn@redhat.com>
2205
2206 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
2207 layer if not dealing with a statically-linked threaded program.
2208
f43caff8
KW
22092003-06-03 Kris Warkentin <kewarken@qnx.com>
2210
2211 * solib.c (solib_open): Update comment to reflect actual search order.
2212
ae1e7417
AC
22132003-06-03 Andrew Cagney <cagney@redhat.com>
2214
2215 * frame.c (get_frame_memory_signed): New function.
2216 (get_frame_memory, get_frame_memory_unsigned): New function.
2217 (get_frame_arch): New function.
2218 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
2219 (get_frame_memory, get_frame_unsigned_memory): Declare.
2220 * d10v-tdep.c (d10v_frame_unwind_cache): Use
2221 get_frame_memory_unsigned and get_frame_arch.
2222 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
2223
cb123844
RG
22242003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
2225
2226 * MAINTAINERS (write after approval): Add myself.
2227
1bb792e9
JB
22282003-06-03 Jim Blandy <jimb@redhat.com>
2229
2230 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
2231 elements of gregset_t are 64 bits each, but access registers
2232 are still 32 bits, so they're packed two per gregset_t
2233 element. Unpack/pack them properly.
2234
aee8d8ba
DC
22352003-06-02 David Carlton <carlton@bactrian.org>
2236
2237 * linespec.c (find_methods): Break out code into
2238 add_matching_methods and add_constructors.
2239 (add_matching_methods): New.
2240 (add_constructors): Ditto.
2241
bf7488d2
AC
22422003-06-02 Andrew Cagney <cagney@redhat.com>
2243
bf7488d2
AC
2244 * sparc-tdep.c (sparc_print_registers): Delete call to
2245 REGISTER_CONVERTIBLE.
2246 (sparc_gdbarch_init): Do not set register_convertible.
2247 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2248 * frv-tdep.c (frv_gdbarch_init): Ditto.
2249 * cris-tdep.c (cris_gdbarch_init): Ditto.
2250
adedef68
EZ
22512003-06-02 Elena Zannoni <ezannoni@redhat.com>
2252
8ffd9b1b 2253 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
2254 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
2255 (syms_from_objfile): Ditto.
2256
650fcc91
AS
22572003-06-03 Andreas Schwab <schwab@suse.de>
2258
2259 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
2260 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
2261
df4a182b
RH
22622003-06-02 Richard Henderson <rth@redhat.com>
2263
2264 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
2265 a member of all_reggroup.
2266
c483c494
RH
22672003-06-02 Richard Henderson <rth@redhat.com>
2268
2269 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
2270 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
2271 (alpha_lds, alpha_sts): New.
2272 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 2273 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
2274 restructure and fail for type sizes other than 4 or 8.
2275 (alpha_value_to_register): Similarly.
2276 (alpha_extract_return_value): Use alpha_sts.
2277 (alpha_store_return_value): Use alpha_lds.
2278 (alpha_gdbarch_init): Update hooks.
2279
b38b6be2
RH
22802003-06-02 Richard Henderson <rth@redhat.com>
2281
2282 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
2283 regnum identifiers.
2284 (alpha_sigtramp_register_address): Likewise.
2285
98a8e1e5
RH
22862003-06-02 Richard Henderson <rth@redhat.com>
2287
2288 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
2289 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
2290 * alpha-tdep.h: Declare them.
2291
2292 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
2293 Remove zerobuf. Don't error on UNIQUE.
2294 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
2295 (ALPHA_REGSET_UNIQUE): Provide default.
2296 (supply_gregset): Use alpha_supply_int_regs.
2297 (fill_gregset): Use alpha_fill_int_regs.
2298 (supply_fpregset): Use alpha_supply_fp_regs.
2299 (fill_fpregset): Use alpha_fill_fp_regs.
2300 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
2301 (alphabsd_supply_reg): Use alpha_supply_int_regs.
2302 (alphabsd_fill_reg): Use alpha_fill_int_regs.
2303 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
2304 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
2305 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
2306
67dfac52
RH
23072003-06-02 Richard Henderson <rth@redhat.com>
2308
f75d70cc
RH
2309 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
2310
67dfac52
RH
2311 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
2312 (alpha_store_return_value): Likewise.
2313
0cf566ec
DC
23142003-06-02 David Carlton <carlton@math.stanford.edu>
2315
2316 * block.c (contained_in): Add 'const' to arguments.
2317 (block_function): Ditto.
2318 * block.h: Update declarations for block_function and
2319 contained_in.
2320
cdef89d0
DC
23212003-06-02 David Carlton <carlton@math.stanford.edu>
2322
2323 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
2324 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
2325 * p-valprint.c (pascal_val_print): Ditto.
2326 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
2327
72667056
RH
23282003-06-02 Richard Henderson <rth@redhat.com>
2329
98a8e1e5
RH
2330 * alpha-tdep.c (alpha_push_dummy_call): Use
2331 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 2332
8ffd9b1b 2333 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
2334 sign-extension of 32-bit values.
2335 (alpha_store_return_value): Similarly.
0ede8eca 2336
98a8e1e5
RH
2337 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
2338 (alpha_extract_return_value): Likewise.
2339 (alpha_store_return_value): Likewise.
7b5e1cb3 2340
98a8e1e5
RH
2341 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
2342 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 2343
98a8e1e5
RH
2344 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
2345 (alpha_extract_struct_value_address): Likewise.
2346 (alpha_store_return_value): Likewise.
2347 (alpha_store_struct_return): Remove.
2348 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 2349
98a8e1e5
RH
2350 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
2351 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
2352 macros where appropriate.
2353 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
2354 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 2355
98a8e1e5
RH
2356 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
2357 for SP, GP; void_func_ptr for PC; non-language-specific types
2358 for all others.
2359 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 2360
6dd77b81
RH
23612003-06-02 Richard Henderson <rth@redhat.com>
2362
2363 * top.h (lim_at_start): Declare.
2364 * main.c (captured_main): Set it.
2365 * top.c (lim_at_start): Define.
2366 (command_loop): Use it instead of &environ.
2367 * event-top.c (command_handler): Likewise.
2368
f4dbdb54
JT
23692003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
2370
2371 * mipsnbsd-tdep.c: Update copyright years.
2372 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
2373
8f285956
RH
23742003-06-01 Richard Henderson <rth@redhat.com>
2375
98a8e1e5
RH
2376 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
2377 (alpha-linux-tdep.o): Update dependencies.
2378 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
2379 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 2380
615967cb
RH
23812003-06-01 Richard Henderson <rth@redhat.com>
2382
98a8e1e5
RH
2383 * alpha-tdep.c (alpha_register_reggroup_p): New.
2384 (alpha_gdbarch_init): Register it.
615967cb 2385
b59661bd
AC
23862003-06-02 Andrew Cagney <cagney@redhat.com>
2387
2388 * dwarfread.c: Eliminate "register"
2389 (decode_die_type): Eliminate assignment within "if".
2390 (struct_type, decode_array_element_type): Ditto.
2391 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
2392 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
2393 (decode_modified_type, completedieinfo): Ditto.
2394 * block.c: Eliminate "register".
2395 (blockvector_for_pc_sect): Eliminate assignment within "if".
2396 * cp-support.h (struct symbol): Opaque declaration.
2397 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
2398
5ef165c2
RH
23992003-06-01 Richard Henderson <rth@redhat.com>
2400
98a8e1e5
RH
2401 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
2402 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 2403
143985b7
AF
24042003-06-01 Adam Fedor <fedor@gnu.org>
2405
2406 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
2407 * gdbarch.[ch]: Regenerate.
2408 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
2409 (hppa_gdbarch_init): Set it in the gdbarch vector.
2410 * i386-tdep.c (i386_fetch_pointer_argument): New
2411 (i386_gdbarch_init): Set it into gdbarch.
2412 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
2413 (rs6000_gdbarch_init): Set it in gdbarch.
2414 * sparc-tdep.c (sparc_fetch_pointer_argument): New
2415 (sparc_gdbarch_init): Set it in gdbarch.
2416
ae0167b9
AC
24172003-06-01 Andrew Cagney <cagney@redhat.com>
2418
7c0b4a20
AC
2419 * defs.h (extract_address): Delete declaration.
2420 * findvar.c (extract_address): Delete function.
2421 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
2422 extract_address with the inline equivalent,
2423 extract_unsigned_integer.
2424 (xstormy16_extract_struct_value_address): Ditto.
2425 (xstormy16_pointer_to_address): Ditto.
2426 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
2427 * v850-tdep.c (v850_push_arguments): Ditto.
2428 (v850_extract_return_value): Ditto.
2429 (v850_extract_struct_value_address): Ditto.
2430 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
2431 (sparcnbsd_get_longjmp_target_64): Ditto.
2432 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
2433 (get_longjmp_target): Ditto.
2434 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
2435 (sh64_extract_struct_value_address): Ditto.
2436 (sh_push_arguments): Ditto.
2437 (sh64_push_arguments): Ditto.
2438 * remote-vxsparc.c (vx_read_register): Ditto.
2439 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
2440 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
2441 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
2442 * mipsv4-nat.c (get_longjmp_target): Ditto.
2443 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
2444 * mips-nat.c (get_longjmp_target): Ditto.
2445 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
2446 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
2447 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
2448 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
2449 * irix5-nat.c (get_longjmp_target): Ditto.
2450 * irix4-nat.c (get_longjmp_target): Ditto.
2451 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
2452 (ia64_push_arguments): Ditto.
2453 * hpux-thread.c (hpux_thread_store_registers): Ditto.
2454 * h8300-tdep.c (h8300_push_arguments): Ditto.
2455 (h8300_store_return_value): Ditto.
2456 (h8300_extract_struct_value_address): Ditto.
2457 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
2458 (frv_push_arguments): Ditto.
2459 * avr-tdep.c (avr_pointer_to_address): Ditto.
2460 (avr_push_arguments): Ditto.
2461 * arm-tdep.c (arm_push_dummy_call): Ditto.
2462 (arm_get_longjmp_target): Ditto.
2463 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
2464 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
2465 (alpha_get_longjmp_target): Ditto.
2466
ae0167b9
AC
2467 * solib-irix.c (extract_mips_address): Inline extract_address,
2468 replacing it with extract_signed_integer.
2469 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
2470 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
2471 (first_link_map_member, open_symbol_file_object): Ditto.
2472 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
2473 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
2474 (LM_NEXT, LM_NAME): Ditto.
2475
44d88583
RH
24762003-06-01 Richard Henderson <rth@redhat.com>
2477
98a8e1e5
RH
2478 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
2479 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
2480 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
2481 (alpha_cannot_store_register): Likewise.
2482 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
2483 * alpha-nat.c (supply_gregset): Likewise.
2484 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 2485
310e9b6a
AC
24862003-06-01 Andrew Cagney <cagney@redhat.com>
2487
2488 * infcall.c (call_function_by_hand): Update comment on
2489 DEPRECATED_DUMMY_WRITE_SP.
2490
2491 * mips-tdep.c (mips_gdbarch_init): Do not set
2492 deprecated_dummy_write_sp.
2493 (mips_eabi_push_dummy_call): Set the SP register.
2494 (mips_o64_push_dummy_call): Set the SP register.
2495 (mips_o32_push_dummy_call): Set the SP register.
2496 (mips_n32n64_push_dummy_call): Set the SP register.
2497
5ab84872
RH
24982003-06-01 Richard Henderson <rth@redhat.com>
2499
98a8e1e5
RH
2500 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
2501 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
2502 (supply_gregset): Likewise.
2503 * alpha-tdep.c (alpha_store_return_value): Likewise.
2504 (alpha_get_longjmp_target): Likewise.
2505 (alpha_register_name): Constify array.
2506 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
2507 deprecated_register_size, deprecated_register_bytes,
2508 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
2509 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
2510 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 2511
09cc52fd
RH
25122003-06-01 Richard Henderson <rth@redhat.com>
2513
2514 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
2515 from arg_reg_buffer to regcache to avoid double conversion.
2516
c7f16359
MK
25172003-06-01 Mark Kettenis <kettenis@gnu.org>
2518
2519 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
2520 SP_REGNUM.
2521 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
2522 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
2523
7131cb6e
RH
25242003-06-01 Richard Henderson <rth@redhat.com>
2525
98a8e1e5
RH
2526 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
2527 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 2528
f3e0f90b
RH
25292003-06-01 Richard Henderson <rth@redhat.com>
2530
98a8e1e5
RH
2531 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
2532 not overlapping PC_REGNUM.
f3e0f90b 2533
c88e30c0
RH
25342003-06-01 Richard Henderson <rth@redhat.com>
2535
98a8e1e5
RH
2536 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
2537 alpha_push_arguments. Don't dump argument register data to
2538 the target stack. Fix float and 128-bit long double semantics.
2539 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
2540 (alpha_fix_call_dummy): Remove.
2541 (alpha_call_dummy_words): Remove.
2542 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 2543
f1a559ae
RH
25442003-06-01 Richard Henderson <rth@redhat.com>
2545
2546 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
2547
5e045346
AC
25482003-06-01 Andrew Cagney <cagney@redhat.com>
2549
95404a3e
AC
2550 * mips-tdep.c (is_mips16_addr): New function.
2551 (make_mips16_addr, unmake_mips16_addr): New functions.
2552 (pc_is_mips16, mips_fetch_instruction): Use.
2553 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
2554 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
2555 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
2556 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
2557 TARGET_MIPS.
2558 * config/mips/tm-mips.h: Update copyright.
2559 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
2560 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
2561 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
2562 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
2563 (TM_PRINT_INSN_MACH): Delete.
2564 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
2565
5e045346
AC
2566 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
2567 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
2568 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
2569 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
2570 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
2571 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
2572 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
2573 mips*-*-riscos* and mips*-*-sysv* onto mips.
2574 * config/mips/mips64.mt: New file.
2575 * config/mips/mips.mt: New file.
2576 * config/mips/littlemips.mt: Delete file.
2577 * config/mips/decstation.mt: Delete file.
2578 * config/mips/vr4300el.mt: Delete file.
2579 * config/mips/vr5000el.mt: Delete file.
2580 * config/mips/vr5000.mt: Delete file.
2581 * config/mips/vr4100.mt: Delete file.
2582 * config/mips/vr4xxxel.mt: Delete file.
2583 * config/mips/vr4300.mt: Delete file.
2584 * config/mips/vr4xxx.mt: Delete file.
2585 * config/mips/bigmips.mt: Delete file.
2586 * config/mips/bigmips64.mt: Delete file.
2587 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
2588 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
2589 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
2590 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
2591 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
2592 "tm-bigmips.h".
2593 * config/mips/tm-irix3.h: Ditto.
2594 * config/mips/tm-mipsv4.h: Ditto.
2595 * config/mips/tm-embed.h: Ditto.
2596 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
2597 "tm-bigmips64.h".
2598 * config/mips/tm-vr5000el.h: Delete file.
2599 * config/mips/tm-tx39l.h: Delete file.
2600 * config/mips/tm-vr4300el.h: Delete file.
2601 * config/mips/tm-vr4xxxel.h: Delete file.
2602 * config/mips/tm-vr4300.h: Delete file.
2603 * config/mips/tm-vr4100.h: Delete file.
2604 * config/mips/tm-vr4xxx.h: Delete file.
2605 * config/mips/tm-vr5000.h: Delete file.
2606 * config/mips/tm-embedl64.h: Delete file.
2607 * config/mips/tm-embedl.h: Delete file.
2608 * config/mips/tm-embed64.h: Delete file.
2609 * config/mips/tm-bigmips64.h: Delete file.
2610 * config/mips/tm-bigmips.h: Delete file.
2611
2473a4a9
MK
26122003-06-01 Mark Kettenis <kettenis@gnu.org>
2613
97a5b208
MK
2614 Fix gdb/1216.
2615 * shnbsd-nat.c: Include "sh-tdep.h".
2616
2473a4a9
MK
2617 From Richard Henderson <rth@redhat.com>:
2618 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
2619
e0f7ec59
AC
26202003-05-31 Andrew Cagney <cagney@redhat.com>
2621
2622 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
2623 forward declaration.
2624 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
2625 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
2626 (mips_find_saved_regs): Use set_reg_offset.
2627 (mips_frame_init_saved_regs): Delete function.
2628 (mips_pop_frame): Call mips_find_saved_regs instead of
2629 DEPRECATED_FRAME_INIT_SAVED_REGS.
2630
68dcc709
AC
26312003-05-31 Andrew Cagney <cagney@redhat.com>
2632
2633 * mips-tdep.c (mips_gdbarch_init): Do not set
2634 deprecated_max_register_raw_size, register_virtual_size, and
2635 deprecated_max_register_virtual_size.
2636
cfc14b3a
MK
26372003-05-31 Mark Kettenis <kettenis@gnu.org>
2638
6405b0a6
MK
2639 * i386-tdep.c: Include "dwarf2-frame.h".
2640 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
2641 * Makefile.in (i386-tdep.o): Update dependencies.
2642
cfc14b3a
MK
2643 * dwarf2-frame.c, dwarf2-frame.h: New files.
2644 * Makefile.in (SFILES): Add dwarf2-frame.c.
2645 (dwarf2_frame_h): Define.
2646 (COMMON_OBS): Add dwarf2-frame.o.
2647 (dwarf2-frame.o): Add dependencies.
2648
6a2751d2
AJ
26492003-05-31 Andreas Jaeger <aj@suse.de>
2650
2651 * x86-64-linux-nat.c: Fix comment.
2652
1c3545ae
MK
26532003-05-31 Mark Kettenis <kettenis@gnu.org>
2654
10f93086
MK
2655 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
2656 function signature.
2657
1c3545ae
MK
2658 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
2659 have a sigcontext_addr handler.
2660 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
2661 sigcontext_addr handler.
2662
e11c53d2
AC
26632003-05-31 Andrew Cagney <cagney@redhat.com>
2664
2665 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
2666 (print_fp_register_row): Replace do_fp_register_row.
2667 (mips_print_fp_register): Add "file" and "frame" parameters.
2668 (mips_print_register): Add "file" and "frame" parameters.
2669 (mips_print_registers_info): Replace mips_do_registers_info.
2670 (mips_gdbarch_init): Set print_registers_info instead of
2671 deprecated_do_registers_info.
2672 (mips_read_fp_register_single): Add "frame" parameter.
2673 (mips_read_fp_register_double): Add "frame" parameter.
2674
a3386186
MK
26752003-05-31 Mark Kettenis <kettenis@gnu.org>
2676
70913449
MK
2677 * i386-tdep.c (i386_register_name): Check for MMX registers first.
2678 Fixes a bug where GDB would print the wrong register names for
2679 targets without SSE.
2680
2b5e0749
MK
2681 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
2682 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
2683 registers.
2684
2685 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
2686 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
2687 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2688 TDEP->sc_sp_offset.
2689
a3386186
MK
2690 From Michal Ludvig <mludvig@suse.cz>:
2691 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
2692 and `sc_num_regs'.
2693 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
2694 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
2695 I386_ST0_REGNUM): Move here from...
2696 * i386-tdep.c: ... here.
2697 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
2698 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
2699 registers if possible.
2700 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
2701 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
2702 Remove variables.
2703 (i386bsd_sc_reg_offset): New variable.
2704 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
2705 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2706 TDEP->sc_sp_offset.
2707 (i386fbsd_sc_reg_offset): New variable.
2708 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
2709 TDEP->sc_num_regs.
2710 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
2711 variables.
2712 (i386fbsd4_sc_reg_offset): New variable.
2713 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
2714 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2715 TDEP->sc_sp_offset.
2716 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
2717 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
2718 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
2719 Remove variables.
2720 (i386nbsd_sc_reg_offset): New variable.
2721 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
2722 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2723 TDEP->sc_sp_offset.
2724 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
2725 Remove variables.
2726 (i386obsd_sc_reg_offset): New variable.
2727 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
2728 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2729 TDEP->sc_sp_offset.
2730 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
2731 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
2732 for frame pointer offset in `struct sigcontext'.
2733
25ab4790
AC
27342003-05-31 Andrew Cagney <cagney@redhat.com>
2735
2736 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
2737 architecture methods call_dummy_words, sizeof_call_dummy_words,
2738 push_return_address, store_struct_return, and fix_call_dummy. Set
2739 push_dummy_call instead of deprecated_push_arguments.
2740 (mips_store_struct_return): Delete function.
2741 (mips_fix_call_dummy): Delete function.
2742 (mips_push_return_address): Delete function.
2743 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
2744 RA_REGNUM and T9_REGNUM.
2745 (mips_n32n64_push_dummy_call): Ditto for
2746 mips_n32n64_push_arguments.
2747 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
2748 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
2749
6a65450a
AC
27502003-05-31 Andrew Cagney <cagney@redhat.com>
2751
2752 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
2753 "dummy_addr" to "bp_addr".
2754 * infcall.c (call_function_by_hand): Pass "funaddr" to
2755 gdbarch_push_dummy_call.
2756 * gdbarch.h, gdbarch.c: Re-generate.
2757 * i386-tdep.c (i386_push_dummy_call): Update.
2758 * arm-tdep.c (arm_push_dummy_call): Update.
2759 * d10v-tdep.c (d10v_push_dummy_call): Update.
2760
c4f35dd8
MK
27612003-05-31 Mark Kettenis <kettenis@gnu.org>
2762
2763 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
2764 variable declarations.
2765 (x86_64_register_number, x86_64_register_name): Remove prototypes.
2766 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
2767 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
2768 x86_64_init_frame_pc, x86_64_init_frame_pc,
2769 x86_64_function_has_prologue): Remove prototypes.
2770 (X86_64_NUM_GREGS): New define.
2771 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
2772 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
2773 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
2774 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
2775 XMM1_REGNUM): Remove defines.
2776 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
2777 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
2778 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
2779 X86_64_XMM1_REGNUM): New defines.
2780 (struct x86_64_register_info): Renamed from `struct
2781 register_info'. Remove `size' member.
2782 (x86_64_register_info_table): Remove variable.
2783 (x86_64_register_info): New variable.
2784 (X86_64_NUM_REGS): New define.
2785 (X86_64_NUM_GREGS): Remove define.
2786 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
2787 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
2788 Remove variables.
2789 (x86_54_dwarf2_reg_to_regnum): Remove function.
2790 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
2791 (x86_64_dwarf_reg_to_regnum): New function.
2792 (x86_64_register_name): Rewrite.
2793 (x86_64_register_raw_size): Remove function.
2794 (x86_64_register_byte_table): Remove variable.
2795 (x86_64_register_byte): Remove function.
2796 (x86_64_register_virtual_type): Remove function.
2797 (x86_64_register_type): New function.
2798 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
2799 x86_64_register_convert_to_raw): Remove functions.
2800 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
2801 (x86_64_use_struct_convention): Make static. Adjust for renamed
2802 defines.
2803 (x86_64_frame_init_saved_regs): Remove function.
2804 (x86_64_push_arguments): Make static. Change to accept a regcache
2805 as argument.
2806 (x86_64_store_return_value, x86_64_extract_return_value): Make
2807 static. Rewrite based on i386 counterparts.
2808 (x86_64_push_dummy_call): New function.
2809 (X86_64_NUM_SAVED_REGS): New define.
2810 (x86_64_register_number): Remove function.
2811 (x86_64_store_struct_return): Remove function.
2812 (x86_64_frameless_function_invocation,
2813 x86_64_function_has_prologue): Remove functions.
2814 (PROLOG_BUFSIZE): Remove define.
2815 (struct x86_64_frame_cache): New structure.
2816 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
2817 x86_64_frame_cache, x86_64_frame_this_id,
2818 x86_64_frame_prev_register, x86_64_frame_p,
2819 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
2820 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
2821 functions.
2822 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
2823 variables.
2824 (x86_64_skip_prologue): Rewrite in terms of
2825 x86_64_analyze_prologue.
2826 (x86_64_frame_base_address): New function.
2827 (x86_64_frame_base): New variable.
2828 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
2829 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
2830 set deprecated_fp_regnum, deprecated_register_size,
2831 deprecated_register_bytes, register_raw_size, register_byte,
2832 register_virtual_type, register_convertiable,
2833 register_convert_to_virtual, convert_to_raw,
2834 deprecated_get_saved_register, deprecated_target_read_fp,
2835 deprecated_push_arguments, deprecated_push_return_address,
2836 deprecated_pop_frame, deprecated_store_struct_return,
2837 deprecated_frame_init_saved_regs, deprecated_frame_chain,
2838 frameless_function_invocation, deprecated_frame_saved_pc,
2839 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
2840 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
2841 deprecated_init_frame_pc and virtual_frame_pointer. Call
2842 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
2843 and x86_64_frame_p. Call frame_base_set_default to register
2844 x86_64_frame_base.
2845 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
2846 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
2847 (_initialize_x86_64_tdep): Remove function.
2848 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
2849 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
2850 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
2851 define.
2852 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
2853 (x86_64_linux_sigcontext_addr): Rewrite.
2854 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
2855 x86_64_linux_frame_saved_pc): Remove functions.
2856 (x86_64_linux_pc_in_sigtramp): Renamed from
2857 x86_64_linux_in_sigtramp. Try harder to recognize a signal
2858 trampoline.
2859 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
2860 Remove_functions.
2861 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
2862 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
2863 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
2864 (x86_64_regmap): Rename to regmap.
2865 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
2866 x86_64_num_gregs.
2867 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
2868 x86_64_regmap.
2869 (x86_64_fxsave_offset): Remove function.
2870 (supply_fpregset): Simply call x86_64_supply_fxsave.
2871 (fill_fpregset): Simply call x86_64_fill_fxsave.
2872 (fetch_inferior_registers, store_inferior_registers): Avoid
2873 asignment in if-statement.
2874 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
2875 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
2876 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
2877 (fetch_core_registers): Remove function.
2878 (linux_elf_core_fns): Remove.
2879 (offsetoff): Don't define.
2880 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
2881 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
2882 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
2883 add core-regset.o.
2884 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
2885 protection against multiple includes instead of NM_X86_64_h. Add
2886 various comments. Include "config/nm-linux.h". Don't include
2887 <signal.h>.
2888 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
2889 GET_THREAD_SIGNALS): Remove defines.
2890 (x86_64_register_u_addr, kernel_u_size,
2891 lin_thread_get_thread_signals): Remove prototypes.
2892 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
2893 [HAVE_LINK_H]: Don't include "solib.h".
2894 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
2895 * config/i386/tm-x86-64linux.h: Fix comments.
2896 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
2897 x86-64-tdep.o): Update dependencies.
2898
c25083af
AC
28992003-05-30 Andrew Cagney <cagney@redhat.com>
2900
c8f55a7b
AC
2901 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
2902 Change parameter type to a "struct regcache *".
2903
c25083af
AC
2904 * gdbarch.sh: Regardless of the multi-arch level, always define
2905 the macro when not already defined.
2906 * gdbarch.h, gdbarch.c: Re-generate.
2907
fbe586ae
RH
29082003-05-30 Richard Henderson <rth@redhat.com>
2909
2910 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
2911 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
2912 (alpha_mdebug_frame_this_id): Likewise.
2913 (alpha_mdebug_frame_prev_register): Likewise.
2914 (alpha_mdebug_frame_base_address): Likewise.
2915 (alpha_mdebug_frame_locals_address): Likewise.
2916 (alpha_mdebug_frame_args_address): Likewise.
2917 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
2918 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
2919 (alpha_heuristic_frame_unwind_cache): Make static; add missing
2920 loop increment.
2921 (alpha_heuristic_frame_this_id): Make static.
2922 (alpha_heuristic_frame_prev_register): Likewise.
2923 (alpha_heuristic_frame_base_address): Likewise.
2924 * alpha-tdep.h: Update.
2925
acd5c798
MK
29262003-05-30 Mark Kettenis <kettenis@gnu.org>
2927
2928 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
2929 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
2930 defenitions.
2931 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
2932 * i386-tdep.c: Mark functions that are 64-bit safe as such.
2933 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
2934 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
2935 I386_ST0_REGNUM): New defines.
2936 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
2937 codestream_get): Remove define.
2938 (codestream_next_addr, condestream_addr, condestream_buf,
2939 codestream_off, codestream_cnt): Remove variables.
2940 (codestream_fill, codestream_seek, codestream_read): Remove
2941 functions.
2942 (i386_follow_jump): Rewrite to avoid usage of removed codestream
2943 functionality.
2944 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
2945 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
2946 i386_frame_saved_pc, i386_saved_pc_after_call,
2947 i386_frame_num_args, i386_frame_init_saved_regs,
2948 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
2949 i386_push_arguments): Remove functions.
2950 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
2951 functionality. Use i386_analyze_prologue instead of
2952 i386_get_frame_setup.
2953 (I386_NUM_SAVED_REGS): New define.
2954 (struct i386_frame_cache): New structure.
2955 (i386_alloc_frame_cache, i386_analyze_struct_return,
2956 i386_skip_probe, i386_analyze_frame_setup,
2957 i386_analyze_register_saves, i386_analyze_prologue,
2958 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
2959 i386_frame_prev_register, i386_sigtramp_frame_cache,
2960 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
2961 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
2962 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
2963 New functions.
2964 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
2965 New variables.
2966 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
2967 I386_EAX_REGNUM and I386_EDX_REGNUM.
2968 (i386_extract_return_value, i386_store_return_value): Use
2969 I386_ST0_REGNUM where appropriate.
2970 (i386_extract_struct_value_address): Rewrite to use extract_address.
2971 (i386_svr4_pc_in_sigtramp): Add comment.
2972 (i386_svr4_sigcontext_addr): Rewrite.
2973 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
2974 TDEP->sc_sp_offset.
2975 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
2976 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
2977 of new defines. Set push_dummy_call, don't set
2978 deprecated_push_arguments, deprecated_push_return_address,
2979 deprecated_pop_frame. Don't set parm_boundary. Don't set
2980 deprecated_frame_chain, deprecated_frame_saved_pc,
2981 deprecated_saved_pc_after_call. Set unwind_dummy_id,
2982 save_dummy_frame_tos, unwind_pc. Call
2983 frame_unwind_append_predicate and frame_base_set_default. Don't
2984 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
2985 Don't set frameless_function_invocation. Don't set
2986 deprecated_register_bytes, deprecated_register_size,
2987 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
2988 * i386-linux-tdep.c: Fix formatting in some comments.
2989 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
2990 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
2991 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
2992 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
2993 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
2994 redundant parentheses.
2995 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
2996 (i386_linux_sigcontext_addr): Use it. Rewrite.
2997 (find_minsym_and_objfile): Change name of second argument.
2998 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
2999 changed. Use frame_pc_unwind instead of
3000 DEPRECATED_SAVED_PC_AFTER_CALL.
3001 (i386_linux_init_abi): Don't set deprecated_register_bytes.
3002 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
3003 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
3004 unwinder.
3005 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
3006 "dummy-frame.h".
3007 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
3008 (_initialize_i386_cygwin_tdep): New prototype.
3009 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
3010 deprecated_frame_chain_valid.
3011 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
3012 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3013 Rely on the SVR4 defaults.
3014 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
3015 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
3016
c89b70f1
AC
30172003-05-30 Andrew Cagney <cagney@redhat.com>
3018
3019 * infcall.c (call_function_by_hand): Always call
3020 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
3021
85b32d22
RH
30222003-05-30 Richard Henderson <rth@redhat.com>
3023
c89b70f1
AC
3024 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
3025 increment.
85b32d22 3026
bfe51b1e
JB
30272003-05-29 Jim Blandy <jimb@redhat.com>
3028
3029 Use gdbarch methods for solib stuff on PowerPC Linux.
3030 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
3031 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
3032 show through.
3033 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3034 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
3035 giving the same effect as the #definitions above.
3036
1abf022c
AF
30372003-05-29 Adam Fedor <fedor@gnu.org>
3038
3039 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
3040 (find_implementation_from_class): Replace it with the standard
3041 case i.e. do nothing.
3042
d2427a71
RH
30432003-05-29 Richard Henderson <rth@redhat.com>
3044
3045 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
3046 (alpha_linux_sigtramp_offset): Use it. Make static.
3047 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
3048 update for new frame model.
3049 * alpha-mdebug-tdep.c: New file.
3050 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
3051 (alpha_osf1_init_abi): Install it.
3052 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
3053 (linked_proc_desc_table): Remove.
3054 (alpha_frame_past_sigtramp_frame): Remove.
3055 (alpha_dynamic_sigtramp_offset): Remove.
3056 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
3057 (alpha_proc_desc_is_dyn_sigtramp): Remove.
3058 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
3059 (push_sigtramp_desc): Remove.
3060 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
3061 (alpha_cannot_store_register): Likewise.
3062 (alpha_sigcontext_addr): Remove.
3063 (alpha_find_saved_regs): Remove.
3064 (alpha_frame_init_saved_regs): Remove.
3065 (alpha_init_frame_pc_first): Remove.
3066 (read_next_frame_reg): Remove.
3067 (alpha_frame_saved_pc): Remove.
3068 (alpha_saved_pc_after_call): Remove.
3069 (temp_proc_desc, temp_saved_regs): Remove.
3070 (alpha_about_to_return): Remove.
3071 (cached_proc_desc): Remove.
3072 (alpha_frame_chain): Remove.
3073 (alpha_print_extra_frame_info): Remove.
3074 (alpha_init_extra_frame_info): Remove.
3075 (alpha_frame_locals_address): Remove.
3076 (alpha_frame_args_address): Remove.
3077 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
3078 (alpha_push_dummy_frame): Remove.
3079 (alpha_pop_frame): Remove.
3080 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
3081 (alpha_read_insn): New.
3082 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
3083 for different insn encodings.
3084 (alpha_in_lenient_prologue): Remove.
3085 (struct alpha_sigtramp_unwind_cache): New.
3086 (alpha_sigtramp_frame_unwind_cache): New.
3087 (alpha_sigtramp_register_address): New.
3088 (alpha_sigtramp_frame_this_id): New.
3089 (alpha_sigtramp_frame_prev_register): New.
3090 (alpha_sigtramp_frame_unwind): New.
3091 (alpha_sigtramp_frame_p): New.
3092 (struct alpha_heuristic_unwind_cache): New.
3093 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
3094 don't count nop insns that occur between functions.
3095 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
3096 heuristic_proc_desc, but without the mdebug wrapping.
3097 (alpha_heuristic_frame_this_id): New.
3098 (alpha_heuristic_frame_prev_register): New.
3099 (alpha_heuristic_frame_unwind): New.
3100 (alpha_heuristic_frame_p): New.
3101 (alpha_heuristic_frame_base_address): New.
3102 (alpha_heuristic_frame_base): New.
3103 (alpha_unwind_dummy_id): New.
3104 (alpha_unwind_pc): New.
3105 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
3106 frame related deprecated initializations; install replacements.
3107 (alpha_dump_tdep): Remove.
3108 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
3109 (alpha_read_insn, alpha_after_prologue,
3110 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
3111 alpha_heuristic_frame_prev_register,
3112 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
3113 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3114 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
3115 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
3116
93ec1121
AC
31172003-05-29 Andrew Cagney <cagney@redhat.com>
3118
3119 * gdb_assert.h (gdb_assert_fail): Provide different definitions
3120 dependant on the availability of ASSERT_FUNCTION.
3121 (ASSERT_FUNCTION): Do not define when there is no function name.
3122
98f08d3d
KB
31232003-05-29 Kevin Buettner <kevinb@redhat.com>
3124
3125 From Jimi X <jimix@watson.ibm.com>:
3126 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
3127
0897f59b
JB
31282003-05-28 Jim Blandy <jimb@redhat.com>
3129
3130 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
3131 argument to ptrace to int; the system headers should give it the
3132 right type, and pointers don't fit in ints on powerpc64-*-*.
3133
14898363
L
31342003-05-28 H.J. Lu <hongjiu.lu@intel.com>
3135
3136 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
3137 DW_TAG_catch_block.
3138
a7a48797
EZ
31392003-05-26 Elena Zannoni <ezannoni@redhat.com>
3140
3141 * stabsread.c (dbx_lookup_type): Make static.
3142 (read_type): Ditto.
3143 (add_undefined_type): Ditto.
3144 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
3145 not export.
3146
f5479e9c
EZ
31472003-05-26 Elena Zannoni <ezannoni@redhat.com>
3148
3149 * hpread.c (hpread_has_name): Make static.
3150 (hpread_psymtab_to_symtab): Ditto.
3151 (file_exists): Ditto.
3152 (hpread_call_pxdb): Ditto.
3153 (hpread_pxdb_needed): Ditto.
3154 (hpread_quick_traverse): Ditto.
3155 (hpread_get_header): Ditto.
3156 (hpread_get_lntt): Ditto.
3157 (hpread_get_slt): Ditto.
3158 (class_of): Ditto.
3159
eb2e12d7
AS
31602003-05-25 Andreas Schwab <schwab@suse.de>
3161
78bf922a
AS
3162 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
3163 stack_align and deprecated_extra_stack_alignment_needed.
3164 (m68k_stack_align): Delete.
3165
eb2e12d7
AS
3166 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
3167 (m68k_register_virtual_size): Likewise.
3168 (altos_skip_prologue): Remove obsolete function.
3169 (isi_frame_num_args): Likewise.
3170 (news_frame_num_args): Likewise.
3171 (m68k_fix_call_dummy): Make static.
3172 (m68k_push_dummy_frame): Likewise.
3173 (m68k_pop_frame): Likewise.
3174 (m68k_skip_prologue): Likewise.
3175 (m68k_frame_init_saved_regs): Likewise.
3176 (m68k_saved_pc_after_call): Likewise.
3177 (m68k_get_longjmp_target): Make multi-arch.
3178 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
3179 structure. Register m68k_get_longjmp_target if enabled.
3180 * m68k-tdep.h (struct gdbarch_tdep): Define.
3181 * config/m68k/tm-m68k.h: Don't include "regcache.h".
3182
3183 * Makefile.in (config.status): Also depend on configure.tgt
3184 and configure.host.
3185 (m68klinux-tdep.o): Update dependencies.
3186 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
3187 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
3188 (M68K_LINUX_JB_PC): Define.
3189 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
3190 and take additional parameter.
3191 (m68k_linux_sigtramp_saved_pc): Update.
3192 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
3193 m68k_linux_pc_in_sigtramp, in_plt_section,
3194 find_solib_trampoline_target.
3195 * config/m68k/tm-linux.h: Don't include any tm headers.
3196 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
3197 (JB_ELEMENT_SIZE): Likewise.
3198 (JB_PC): Likewise.
3199 (GET_LONGJMP_TARGET): Likewise.
3200 (IN_SIGTRAMP): Likewise.
3201 (SVR4_SHARED_LIBS): Define this and include "solib.h".
3202
eb2c22dc
MK
32032003-05-25 Mark Kettenis <kettenis@gnu.org>
3204
3205 * sparc-tdep.c (sparc32_do_push_arguments): New function.
3206 (sparc32_push_arguments): Re-implement by calling
3207 sparc32_do_push_arguments.
3208
44b7b84e
MK
32092003-05-25 Mark Kettenis <kettenis@gnu.org>
3210
3211 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
3212 SPARC_O1_REGNUM): New defines.
3213 (sparc32_extract_return_value): Rewrite to operate on a regcache.
3214 (sparc32_store_return_value): New function.
3215 (sparc_extract_struct_value_address): Rewrite to operate on a
3216 regcache.
3217 (sparc_gdbarch_init): Don't set
3218 deprecated_extract_struct_value_address. Set
3219 extract_struct_value_address instead. Don't set
3220 deprecated_extract_return_value and deprecated_store_return_value
3221 for 32-bit targets. Set extract_return_value and
3222 store_return_value instead.
3223 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
3224 DEPRECTAED_EXTRACT_RETURN_VALUE,
3225 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
3226 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
3227 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
3228 (sparc_store_return_value): Remove prototype.
3229 (sparc32_store_return_value): New prototype.
3230 (sparc32_extract_return_value, sparc_extract_struct_value_address):
3231 Adjust prototypes.
3232
f6ad61e3
MK
32332003-05-24 Mark Kettenis <kettenis@gnu.org>
3234
3235 * sparcnbsd-tdep.c: Include "gdb_string.h".
3236
b276f1bb
AC
32372003-05-23 Andrew Cagney <cagney@redhat.com>
3238
3239 * p-valprint.c (pascal_val_print): Replace extract_address with
3240 the inline equivalent extract_unsigned_integer.
3241 * jv-valprint.c (java_value_print): Ditto.
3242 * ada-valprint.c (ada_val_print_1): Ditto.
3243 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
3244
e76c5fcc
TR
32452003-05-23 Theodore A. Roth <troth@openavr.org>
3246
3247 * blockframe.c (frameless_look_for_prologue): Remove unused
3248 after_prologue variable.
3249
2cdd89cb
MK
32502003-05-23 Mark Kettenis <kettenis@gnu.org>
3251
3252 * blockframe.c (get_pc_function_start): Rewrite to avoid
3253 asignments in if-statements.
3254
182d43bc
EZ
32552003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
3256
3257 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 3258 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
3259 files, don't relocate absolute symbols (and do use mst_abs).
3260
e8f3fcdd
AC
32612003-05-23 Andrew Cagney <cagney@redhat.com>
3262
3263 * objc-lang.c: Include "gdb_assert.h".
3264 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
3265 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
3266 (gdb_check, gdb_check_fatal): Delete functions.
3267 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
3268 gdb_assert.
3269 (parse_selector, parse_method, find_methods, find_imps): Ditto.
3270 * Makefile.in (objc-lang.o): Update dependencies.
3271
3c23e6fb
ILT
32722003-05-22 Ian Lance Taylor <ian@airs.com>
3273
3274 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
3275 with fprintf_filtered, not fprintf_unfiltered.
3276
af1342ab
AC
32772003-05-22 Andrew Cagney <cagney@redhat.com>
3278
3279 * stack.c (frame_info): Inline extract_address, replacing it with
3280 extract_unsigned_integer.
3281 * findvar.c (unsigned_pointer_to_address): Ditto.
3282 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
3283 * dwarf2expr.c (dwarf2_read_address): Ditto.
3284 * frame.c (frame_pc_unwind): Update comment.
3285 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
3286
47e242ec
JJ
32872003-05-22 Jeff Johnston <jjohnstn@redhat.com>
3288
3289 * infptrace.c (detach): Call print_sys_errmsg rather than
3290 perror_with_name to issue warning message when errno is non-zero
3291 after calling ptrace detach.
3292
e2ac8128
JB
32932003-05-21 J. Brobecker <brobecker@gnat.com>
3294
3295 * config/pa/tm-hppa.h: Delete some unused macros. Move some
3296 macro definitions from here...
3297 * hppa-tdep.c: ...to there.
3298
92b3541e
KB
32992003-05-20 Kevin Buettner <kevinb@redhat.com>
3300
3301 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
3302 register_ptrace_addr(). Fix all callers.
3303
55809acb
AS
33042003-05-21 Andreas Schwab <schwab@suse.de>
3305
3306 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3307 dependencies.
3308 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
3309 end.
3310 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
3311 (_initialize_m68k_linux_tdep): New function.
3312 (m68k_linux_frame_saved_pc): Make static.
3313 (m68k_linux_extract_return_value): Likewise.
3314 (m68k_linux_store_return_value): Likewise.
3315 (m68k_linux_extract_struct_value_address): Likewise.
3316 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
3317 Remove.
3318 (DEPRECATED_STORE_RETURN_VALUE): Remove.
3319 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3320 (DEPRECATED_FRAME_SAVED_PC): Remove.
3321
0fbc10f7
KW
33222003-05-20 Kris Warkentin <kewarken@qnx.com>
3323
3324 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
3325 regset numbering rather than our own.
3326
58da2eb2
DC
33272003-05-19 David Carlton <carlton@bactrian.org>
3328
3329 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
3330
1fcb5155
DC
33312003-05-19 David Carlton <carlton@bactrian.org>
3332
3333 Partial fix for PR c++/827.
3334 * cp-support.h: Include symtab.h.
3335 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
3336 * cp-namespace.c: Update contributors.
3337 (cp_lookup_symbol_nonlocal): New.
3338 (lookup_namespace_scope, cp_lookup_symbol_namespace)
3339 (lookup_symbol_file): Ditto.
3340 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
3341 * block.h: Declare block_scope, block_using, block_global_block.
3342 * block.c (block_scope): New.
3343 (block_using, block_global_block): Ditto.
3344 * Makefile.in (cp_support_h): Depend on symtab_h.
3345 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
3346
5f9a71c3
DC
33472003-05-19 David Carlton <carlton@bactrian.org>
3348
3349 * language.h (struct language_defn): Add 'la_value_of_this'
3350 and 'la_lookup_symbol_nonlocal' members.
3351 * symtab.h: Declare basic_lookup_symbol_nonlocal,
3352 lookup_symbol_static, lookup_symbol_global,
3353 lookup_symbol_aux_block.
3354 * symtab.c (lookup_symbol_aux): Call language hooks to determine
3355 if we should search fields of this and how to do static/global
3356 lookup.
3357 (lookup_symbol_aux_block): Make extern.
3358 (basic_lookup_symbol_nonlocal): New.
3359 (lookup_symbol_static, lookup_symbol_global): Ditto.
3360 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
3361 'la_lookup_symbol_nonlocal' members.
3362 * c-lang.c (c_language_defn, cplus_language_defn)
3363 (asm_language_defn, minimal_language_defn): Ditto.
3364 * jv-lang.c (java_language_defn): Ditto.
3365 * language.c (unknown_language_defn, auto_language_defn)
3366 (local_language_defn): Ditto.
3367 * m2-lang.c (m2_language_defn): Ditto.
3368 * objc-lang.c (objc_language_defn): Ditto.
3369 * scm-lang.c (scm_language_defn): Ditto.
3370 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
3371 * p-lang.c (pascal_language_defn): Ditto for both.
3372 * Makefile.in (f-lang.o): Depend on value_h.
3373 (p-lang.o): Ditto.
3374
89a9d1b1
DC
33752003-05-19 David Carlton <carlton@bactrian.org>
3376
3377 * block.h: Declare block_static_block.
3378 * block.c (block_static_block): New.
3379 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
3380 lookup_symbol_aux_local, calling block_static_block instead.
3381 (lookup_symbol_aux_local): Delete 'static_block' argument.
3382
eed3f8ab
DC
33832003-05-19 David Carlton <carlton@bactrian.org>
3384
3385 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
3386
a09d8bda
ML
33872003-05-19 Michal Ludvig <mludvig@suse.cz>
3388
3389 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
3390 register numbers mapping.
3391
69636828
AF
33922003-05-18 Adam Fedor <fedor@gnu.org>
3393
3394 * symtab.c (completion_list_objc_symbol): New function.
3395 (make_symbol_completion_list): Use it to add ObjC symbols
3396 when looking though the list.
3397 (language_search_unquoted_string): New function.
3398 (make_file_symbol_completion_list): Use it.
3399
55baeb84
AS
34002003-05-18 Andreas Schwab <schwab@suse.de>
3401
d0b45d99
AS
3402 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
3403 dependencies.
3404 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
3405 as m68k_linux_extract_return_value.
3406 (DEPRECATED_STORE_RETURN_VALUE): Define as
3407 m68k_linux_store_return_value.
3408 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
3409 m68k_linux_extract_struct_value_address.
3410 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
3411 get_next_frame, get_frame_base, get_frame_pc.
3412 (m68k_linux_frame_saved_pc): Use get_frame_base.
3413 (m68k_linux_extract_return_value): New function.
3414 (m68k_linux_store_return_value): New function.
3415 (m68k_linux_extract_struct_value_address): New function.
3416 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
3417
55baeb84
AS
3418 * c-exp.y (typebase): Remove duplicate occurence of
3419 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 3420 of lookup_signed_typename.
55baeb84 3421
b6b08ebf
MK
34222003-05-18 Mark Kettenis <kettenis@gnu.org>
3423
3424 * dwarf2loc.c (find_location_expression): Change type of second
3425 argument to `size_t *'.
3426 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
3427 for size variable.
3428
5ad1c190
DC
34292003-05-18 David Carlton <carlton@bactrian.org>
3430
3431 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
3432 'linkage_name'. Add comment.
3433 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
3434 'linkage_name'.
3435 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
3436 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
3437 (lookup_block_symbol): Ditto.
3438
b8b527c5
AC
34392003-05-16 Andrew Cagney <cagney@redhat.com>
3440
3441 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
3442 * gdbarch.h, gdbarch.c: Re-generate.
3443 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
3444 * TODO (REGISTER_BYTES): Delete reference.
3445 * alpha-tdep.c (alpha_gdbarch_init): Update.
3446 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3447 * x86-64-tdep.c (x86_64_init_abi): Update.
3448 * vax-tdep.c (vax_gdbarch_init): Update.
3449 * v850-tdep.c (v850_gdbarch_init): Update.
3450 * sparc-tdep.c (sparc_gdbarch_init): Update.
3451 * sh-tdep.c (sh_gdbarch_init): Update.
3452 * s390-tdep.c (s390_gdbarch_init): Update.
3453 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3454 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3455 (ns32k_gdbarch_init_32382): Update.
3456 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3457 * mcore-tdep.c (mcore_gdbarch_init): Update.
3458 * m68k-tdep.c (m68k_gdbarch_init): Update.
3459 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3460 * ia64-tdep.c (ia64_gdbarch_init): Update.
3461 * i386-tdep.c (i386_gdbarch_init): Update.
3462 * i386-linux-tdep.c (i386_linux_init_abi): Update.
3463 * hppa-tdep.c (hppa_gdbarch_init): Update.
3464 * h8300-tdep.c (h8300_gdbarch_init): Update.
3465 * frv-tdep.c (frv_gdbarch_init): Update.
3466 * cris-tdep.c (cris_gdbarch_init): Update.
3467 * avr-tdep.c (avr_gdbarch_init): Update.
3468 * arm-tdep.c (arm_gdbarch_init): Update.
3469 * sparc-tdep.c (sparc_pop_frame): Update.
3470 * rs6000-tdep.c (rs6000_pop_frame): Update.
3471 * remote.c (init_remote_state): Update.
3472 (remote_prepare_to_store): Update.
3473 * remote-vx.c (vx_prepare_to_store): Update.
3474 * remote-sds.c (sds_fetch_registers): Update.
3475 (sds_prepare_to_store): Update.
3476 * remote-array.c: Update.
3477 * regcache.c (init_legacy_regcache_descr): Update.
3478 (init_regcache_descr): Update.
3479 * mips-tdep.c (mips_eabi_extract_return_value): Update.
3480 (mips_o64_extract_return_value): Update.
3481 * irix5-nat.c (fetch_core_registers): Update.
3482 * irix4-nat.c (fetch_core_registers): Update.
3483 * i386-tdep.h: Update.
3484 * hppa-tdep.c (pa_do_registers_info): Update.
3485 (pa_do_strcat_registers_info): Update.
3486 * cris-tdep.c (cris_register_bytes_ok): Update.
3487 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3488 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
3489 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
3490 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
3491 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
3492 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
3493 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
3494 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
3495 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
3496 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
3497 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
3498 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
3499 (REGISTER_BYTES_OK): Update.
3500 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
3501 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
3502
ee2842e2
ILT
35032003-05-16 Ian Lance Taylor <ian@airs.com>
3504
3505 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
3506 (vax_print_insn, print_insn_arg): Remove static functions.
3507 (vax_gdbarch_init): Call set_gdbarch_print_insn with
3508 print_insn_vax from opcodes library.
3509 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
3510
973177d3
AC
35112003-05-15 Andrew Cagney <cagney@redhat.com>
3512
aaab4dba
AC
3513 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
3514 * target.h (memory_breakpoint_from_pc): Delete declaration.
3515 * mem-break.c (memory_breakpoint_from_pc): Delete function.
3516 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
3517 * monitor.c (monitor_insert_breakpoint): Use
3518 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
3519 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
3520 * gdbarch.h, gdbarch.c: Re-generate.
3521 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
3522 (sparc_gdbarch_init): Set breakpoint_from_pc to
3523 sparc_breakpoint_from_pc.
3524 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
3525 (BREAKPOINT_FROM_PC): Define.
3526 (sparc_breakpoint_from_pc): Declare.
3527 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
3528 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
3529 (BREAKPOINT_FROM_PC): Define.
3530 (BREAKPOINT): Delete macro.
3531 * target.h: Update comment.
3532 * s390-tdep.c (s390_gdbarch_init): Update comments.
3533 * remote.c: Update comments.
3534 * remote-mips.c: Update comments.
3535 * proc-api.c (write_with_trace): Do not check for a breakpoint.
3536 * mem-break.c: Update comment.
3537 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
3538 (ia64_memory_insert_breakpoint): Update.
3539 * config/sparc/tm-sparc.h: Update comment.
3540 * config/pa/tm-hppa64.h: Update comment.
3541 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
3542 (rs6000_breakpoint_from_pc): Update.
3543 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
3544 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
3545 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
3546 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
3547 (mips_breakpoint_from_pc): Update.
3548 (mips_dump_tdep): Update.
3549
e06963ff
AC
3550 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
3551 * minsyms.c (lookup_minimal_symbol): Inline
3552 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
3553
973177d3
AC
3554 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
3555 * p-valprint.c (pascal_object_print_value_fields): Ditto.
3556 * p-lang.c (pascal_printstr): Ditto.
3557 * objc-lang.c (objc_printstr): Ditto.
3558 * m2-lang.c (m2_printstr): Ditto.
3559 * jv-valprint.c (java_print_value_fields): Ditto.
3560 * f-lang.c (f_printstr): Ditto.
3561 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
3562 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
3563 for repeat_count_threshold.
3564 * Makefile.in (cp-valprint.o): Update dependencies.
3565
5ea2bd7f 35662003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 3567
5ea2bd7f
JJ
3568 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
3569 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
3570 they start with mov r2,r12. Support skipping over indirect stores
3571 of the input registers. Upon hitting a non-nop branch instruction
3572 or predicated instruction, bail out by setting lim_pc to the current
3573 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
3574 beyond our calculated value and we have trust_limit set,
3575 use the lim_pc value.
3576
cc8c88f3
AC
35772003-05-15 Andrew Cagney <cagney@redhat.com>
3578
3579 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
3580 generic_find_dummy_frame.
3581 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
3582 (deprecated_generic_find_dummy_frame): Update.
3583 (deprecated_read_register_dummy): Update.
3584 * frame.c (deprecated_generic_get_saved_register): Update.
3585
909cd28e
TR
35862003-05-15 Theodore A. Roth <troth@openavr.org>
3587
3588 * avr-tdep.c (avr_breakpoint_from_pc): New function.
3589 (avr_gdbarch_init): Set breakpoint_from_pc method.
3590
b923b08d
AC
35912003-05-15 Andrew Cagney <cagney@redhat.com>
3592
3593 * regcache.c (build_regcache): Set deprecated_register_valid
3594 directly.
3595 (deprecated_grub_regcache_for_register_valid): Delete function.
3596 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
3597 declaration.
3598
ae2f03ac 35992003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
3600
3601 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
3602 * symtab.c (lookup_symbol_aux): Delete calls to
3603 lookup_symbol_aux_minsyms.
3604 (lookup_symbol_aux_minsyms): Comment out function and
3605 prototype. Delete lookup by mangled name.
ae2f03ac 3606
18ec9831
KB
36072003-05-14 Kevin Buettner <kevinb@redhat.com>
3608
3609 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
3610 correctly indicate an empty stack and ``stack_allocated'' to the
3611 indicate the number of elements initially allocated.
3612 (dwarf_expr_grow_stack): Simplify method for computing new
3613 stack size. Don't loop infinitely if ``stack_len'' is zero.
3614 (execute_stack_op): Move ``ctx->in_reg'' initialization
3615 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
3616 be used in conjuction with DW_OP_piece. Revise error message
3617 accordingly.
3618
de18ac1f
TR
36192003-05-14 Theodore A. Roth <troth@openavr.org>
3620
3621 * MAINTAINERS: Update my email address.
3622 * avr-tdep.c: Ditto.
3623
176620f1
EZ
36242003-05-14 Elena Zannoni <ezannoni@redhat.com>
3625
3626 * symtab.h (enum domain_enum): Rename from namespace_enum.
3627 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
3628 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
3629 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
3630 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
3631 TYPES_NAMESPACE, METHODS_NAMESPACE.
3632 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
3633 (struct symbol, struct partial_symbol): Rename field
3634 'namespace_enum namespace' to 'domain_enum domain'.
3635 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
3636 Delete old define kludge for namespace.
3637
3638 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
3639 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
3640 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
3641 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
3642 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
3643 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
3644 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
3645 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
3646 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
3647 occurrences of the above.
3648
b7f31508
ILT
36492003-05-14 Ian Lance Taylor <ian@airs.com>
3650
3651 * Makefile.in (install-only): Use $(SHELL) when running
3652 mkinstalldirs.
3653
2fdbdd39
ILT
36542003-05-13 Ian Lance Taylor <ian@airs.com>
3655
a208d82c
ILT
3656 * MAINTAINERS (write after approval): Add myself.
3657
2fdbdd39
ILT
3658 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
3659 second and third arguments.
3660 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3661 * ser-unix.c (_initialize_ser_hardwire): Likewise.
3662
fbd9dcd3
AC
36632003-05-13 Andrew Cagney <cagney@redhat.com>
3664
3665 * defs.h (store_address): Delete declaration.
3666 findvar.c (store_address): Delete function.
3667 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
3668 store_unsigned_integer.
3669 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
3670 * v850-tdep.c (v850_push_arguments): Ditto.
3671 * sparc-tdep.c (sparc_get_saved_register): Ditto.
3672 * sh-tdep.c (sh64_get_saved_register): Ditto.
3673 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
3674 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
3675 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
3676 (mips_get_saved_register): Ditto.
3677 * ia64-tdep.c (ia64_get_saved_register): Ditto.
3678 (find_func_descr, ia64_push_arguments): Ditto.
3679 * i386-tdep.c (i386_push_arguments): Ditto.
3680 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
3681 * frv-tdep.c (frv_push_arguments): Ditto.
3682 * frame.c (legacy_saved_regs_prev_register): Ditto.
3683 (deprecated_generic_get_saved_register): Ditto.
3684 * findvar.c (unsigned_address_to_pointer): Ditto.
3685 * dwarf2read.c (dwarf2_const_value): Ditto.
3686 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3687 * alpha-tdep.c (alpha_push_arguments): Ditto.
3688
6760f9e6
JB
36892003-05-12 J. Brobecker <brobecker@gnat.com>
3690
3691 * NEWS: Mention that the hppa-hpux port has been partially
3692 multiarched (32bit ABIT only, so far).
3693
30e221b4
AC
36942003-05-11 Andrew Cagney <cagney@redhat.com>
3695
3696 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
3697 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
3698 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
3699 sim/testsuite/sim/arm/misaligned2.ms, and
3700 sim/testsuite/sim/arm/misaligned3.ms.
3701 * disasm.h (struct ui_file): Add opaque struct declaration.
3702 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
3703 * frame.h (struct ui_file): Ditto.
3704
dea7f9ba
MK
37052003-05-11 Mark Kettenis <kettenis@gnu.org>
3706
3707 * value.h: Pretty print.
3708
01986c48
MK
37092003-05-10 Mark Kettenis <kettenis@gnu.org>
3710
3711 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
3712
123a958e
AC
37132003-05-08 Andrew Cagney <cagney@redhat.com>
3714
3715 * regcache.h (max_register_size): Delete declaration.
3716 * regcache.c (max_register_size): Delete function.
3717 (struct regcache_descr): Delete field "max_register_size".
3718 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
3719 registers fit in MAX_REGISTER_SIZE.
3720 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
3721 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
3722 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
3723 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
3724 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
3725 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
3726 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
3727 * dve3900-rom.c, hppa-tdep.c: Ditto.
3728
eb294659
DC
37292003-05-08 David Carlton <carlton@math.stanford.edu>
3730
3731 * valops.c (push_word): Fix typo.
3732
d9d9c31f
AC
37332003-05-08 Andrew Cagney <cagney@redhat.com>
3734
3735 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
3736 * gdbarch.h: Re-generate.
3737 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
3738 (legacy_max_register_raw_size): Delete declaration.
3739 * regcache.c (legacy_max_register_raw_size): Delete function.
3740 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
3741 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
3742 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
3743 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
3744 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
3745 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
3746 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
3747 * findvar.c, dwarf2cfi.c: Ditto.
3748
22540ece
AC
37492003-05-08 Andrew Cagney <cagney@redhat.com>
3750
3751 * mips-tdep.c (read_signed_register): New function, moved to here
3752 from "regcache.c".
3753 (read_signed_register_pid): Ditto.
3754 * regcache.c (read_signed_register_pid): Delete function, moved to
3755 "mips-tdep.c".
3756 (read_signed_register): Ditto.
3757 * regcache.h (read_signed_register): Delete declaration.
3758 (read_signed_register_pid): Delete declaration.
3759
0c92afe8
AC
37602003-05-08 Andrew Cagney <cagney@redhat.com>
3761
3762 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
3763 * gdbarch.h: Re-generate.
3764 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
3765 (legacy_max_register_virtual_size): Delete declaration.
3766 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
3767 * d10v-tdep.c (d10v_print_registers_info): Ditto.
3768 * tracepoint.c (memrange_sortmerge): Ditto.
3769 * sparc-tdep.c (sparc_print_registers): Ditto.
3770 * regcache.c (legacy_max_register_virtual_size): Delete function.
3771
6037b830
JB
37722002-05-08 J. Brobecker <brobecker@gnat.com>
3773
3774 * fork-child.c (escape_bang_in_quoted_argument): New function.
3775 (fork_inferior): Escape '!' characters in quoted arguments
3776 only when needed.
3777
5d62c8b1
JB
37782003-05-08 J. Brobecker <brobecker@gnat.com>
3779
3780 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
3781 the language of the CU is not currently supported by GDB.
3782
20a0e81d
JB
37832003-05-08 J. Brobecker <brobecker@gnat.com>
3784
3785 * defs.h (language): Add language_minimal enum value.
3786 * c-lang.c (minimal_language_defn): New language definition.
3787 (_initialize_c_language): Add the new minimal language to the list
3788 of languages known to GDB.
3789
710ee10a
KB
37902003-05-08 Kevin Buettner <kevinb@redhat.com>
3791
3792 * frame.c (get_frame_type): Don't attempt to lazily initialize
3793 frame's unwinder for legacy frames.
3794
1750fa04
AC
37952003-05-07 Andrew Cagney <cagney@redhat.com>
3796
3797 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
3798 and "regcache" parameters.
3799 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
3800
ddf9f258 38012003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
3802
3803 * dwarf2read.c (dwarf_decode_lines): Only use output of
3804 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
3805 the current address.
3806
87767c29
AC
38072003-05-07 Andrew Cagney <cagney@redhat.com>
3808
3809 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
3810 code.
3811
5e7b2f39
JB
38122003-05-07 Jim Blandy <jimb@redhat.com>
3813
3814 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
3815 'maint info symtabs' and 'maint info psymtabs'.
3816 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
3817 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
3818 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
3819 Declarations updated.
3820 * maint.c (maintenance_list_command): Delete.
3821 (_initialize_maint_cmds): Update calls to add_cmd.
3822 * gdbcmd.h (maintenancelistlist): Delete declaration.
3823 * cli/cli-cmds.c (maintenancelistlist): Delete.
3824 (init_cmd_lists): Don't initialize it.
3825 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
3826
f6684c31
AC
38272003-05-07 Andrew Cagney <cagney@redhat.com>
3828
3829 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
3830 "regcache".
3831 (d10v_print_registers_info): Update.
3832 (d10v_dmap_register, d10v_imap_register): Delete functions.
3833 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
3834 and "imap_register".
3835 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
3836 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
3837 * arch-utils.c (generic_remote_translate_xfer_address): Add
3838 "regcache" and "gdbarch" parameters.
3839 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
3840 parameter. Change class to multi-arch.
3841 * gdbarch.h, gdbarch.c: Re-generate.
3842 * remote.c (remote_xfer_memory): Use
3843 gdbarch_remote_translate_xfer_address.
8ffd9b1b 3844
e4846b08
JJ
38452003-05-07 Jeff Johnston <jjohnstn@redhat.com>
3846
3847 * infrun.c (prev_pc): Move declaration ahead of proceed().
3848 (proceed): Refresh prev_pc value before resuming.
3849 (stop_stepping): Remove code to refresh prev_pc.
3850
6b71b8ac
KW
38512003-05-06 Kris Warkentin <kewarken@qnx.com>
3852
3853 * nto-tdep.c: Removed stray comment.
3854
47979a4b
KW
38552003-05-06 Kris Warkentin <kewarken@qnx.com>
3856
3857 * i386-nto-tdep.c: Fix old K&R function definitions.
3858 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
3859 Also change add_show_from_set() call to add_setshow_cmd().
3860 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
3861
00905d52
AC
38622003-05-05 Andrew Cagney <cagney@redhat.com>
3863
3864 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
3865 (fprint_dummy_frames): New function.
3866 (maintenance_print_dummy_frames): New function.
3867 (_initialize_dummy_frame): Add command "maint print dummy-frames".
3868 * frame.c (fprint_frame_id): Make global.
3869 * frame.h (fprint_frame_id): Declare.
3870 * Makefile.in (dummy-frame.o): Update dependencies.
3871
b1e29e33
AC
38722003-05-05 Andrew Cagney <cagney@redhat.com>
3873
3874 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
3875 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
3876 SIZEOF_CALL_DUMMY_WORDS.
3877 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
3878 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
3879 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
3880 CALL_DUMMY_BREAKPOINT_OFFSET.
3881 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
3882 CALL_DUMMY_START_OFFSET.
3883 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
3884 * gdbarch.h, gdbarch.c: Re-generate.
3885 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
3886 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
3887 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
3888 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
3889 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
3890 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
3891 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
3892 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
3893 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
3894 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
3895 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
3896 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
3897 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
3898 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
3899 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
3900
39012003-05-05 Kris Warkentin <kewarken@qnx.com>
3902
3903 * configure.tgt: Add i[3456]86-*-nto*.
3904 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
3905 * nto-tdep.c: New file. Neutrino target support routines.
3906 * nto-tdep.h: New file. Neutrino target header.
3907 * config/tm-qnxnto.h: New file.
3908 * config/i386/i386nto.mt: New file.
3909 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 3910
0ce3d317
AC
39112003-05-04 Andrew Cagney <cagney@redhat.com>
3912
3913 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
3914 (load_infrun_state): Ditto.
3915 (struct thread_info): Drop "prev_func_name" field.
3916 * thread.c (load_infrun_state): Update.
3917 (save_infrun_state): Update.
3918 * infrun.c (prev_func_name): Delete variable.
3919 (init_wait_for_inferior): Do not clear prev_func_name.
3920 (stop_stepping, keep_going, context_switch): Do not swap
3921 prev_func_name.
3922 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
3923 instead of PC_IN_SIGTRAMP.
3924
46654a5b
AC
39252003-05-04 Andrew Cagney <cagney@redhat.com>
3926
3927 * sentinel-frame.c (sentinel_frame_prev_register): Replace
3928 REGISTER_BYTE with register_offset_hack.
3929 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
3930 that REGISTER_BYTE is consistent with the regcache.
3931 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
3932 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 3933
14b08c1b
MK
39342003-05-04 Mark Kettenis <kettenis@gnu.org>
3935
04c8243f
MK
3936 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
3937 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
3938
14b08c1b
MK
3939 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
3940
c7a11e01
JB
39412003-05-03 J. Brobecker <brobecker@gnat.com>
3942
3943 From Thierry Schneider <tpschneider1@yahoo.com>
3944 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
3945 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
3946 (mi-cmd-symbol.o): Add rule.
3947
7043d8dc
AC
39482003-05-03 Andrew Cagney <cagney@redhat.com>
3949
3950 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
3951 comments noteing that it replaces the old FIX_CALL_DUMMY code.
3952 * gdbarch.h, gdbarch.c: Re-generate.
3953 * d10v-tdep.c (d10v_push_dummy_code): New function.
3954 (d10v_gdbarch_init): Set push_dummy_code.
3955 * infcall.c (legacy_push_dummy_code): New function.
3956 (generic_push_dummy_code): New function.
3957 (push_dummy_code): New function.
3958 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
3959 instead of dummy_addr, to push_dummy_call. Move call to
3960 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
3961 switch.
3962 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
3963
92bf2b80
AC
39642003-05-03 Andrew Cagney <cagney@redhat.com>
3965
3966 * disasm.h (print_insn): Declare.
3967 * disasm.c (init_gdb_disassemble_info): New function.
3968 (gdb_disassembly): Call init_gdb_disassemble_info.
3969 (gdb_print_insn): New function.
3970 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
3971 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
3972 * mcore-tdep.c: Include "disasm.h"
3973 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
3974 * d10v-tdep.c: Include "disasm.h".
3975 (display_trace): Call gdb_print_insn, instead of print_insn.
3976 (print_insn): Delete function.
3977 * printcmd.c: Include "disasm.h".
3978 (print_insn): Delete function.
3979 (print_formatted): Call gdb_print_insn, instead of print_insn.
3980 * Makefile.in (printcmd.o): Update dependencies.
3981 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 3982
27d94c49
AC
39832003-05-02 Andrew Cagney <cagney@redhat.com>
3984
82de1e5b
AC
3985 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
3986 PC_REGNUM, re-indent.
3987 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
3988 PC_REGNUM isn't set.
3989
27d94c49
AC
3990 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
3991 * gdbarch.h, gdbarch.c: Re-generate.
3992 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
3993 register_virtual_size, pc_regnum, or register_bytes.
3994 (D10V_PC_REGNUM): Rename _PC_REGNUM.
3995 (d10v_register_type): Use D10V_PC_REGNUM.
3996 (d10v_print_registers_info, d10v_read_pc): Ditto.
3997 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
3998 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
3999
a9c0dc7f
DC
40002003-05-02 David Carlton <carlton@bactrian.org>
4001
4002 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
4003 the name with mstrsave.
4004
e33d66ec
EZ
40052003-05-02 Elena Zannoni <ezannoni@redhat.com>
4006
4007 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
4008 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
4009 (host_charset_name, target_charset_name): New vars for use by
4010 set/show commands.
4011 (host_charset_enum, target_charset_enum): New enums for set/show
4012 commands.
4013 (set_charset_sfunc, set_host_charset_sfunc,
4014 set_target_charset_sfunc): New functions.
4015 (set_host_charset, set_target_charset): Make static.
4016 (list_charsets, set_host_charset_command,
4017 set_target_charset_command): Delete functions.
4018 (show_charset_command): Rewrite as....
4019 (show_charset): Hook this up with the set/show command mechanism.
4020 (_initialize_charset): Change names of charsets to match the
4021 set/show enums. Use host_charset_name and target_charset_name.
4022 Use set/show mechanism for charset, host-charset, target-charset
4023 commands. Do not make 'show host-charset' and 'show
4024 target-charset' be aliases of 'show charset'.
4025
4026 * charset.h (set_host_charset, set_target_charset): Don't export,
4027 they are not used outside the file.
4028
2b6fd0d8
AC
40292003-05-01 Andrew Cagney <cagney@redhat.com>
4030
4031 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
4032 (gdb_disassembly): Make "di" non static, always initialize and
4033 cleanup. Always use dis_asm_read_memory.
4034 (gdb_dis_asm_read_memory): Delete function.
4035
6ae2f580
AC
40362003-05-01 Andrew Cagney <cagney@redhat.com>
4037
4038 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
4039 (d10v_gdbarch_init): Set frame_align instead of stack_align.
4040
810ecf9f
AC
40412003-04-30 Andrew Cagney <cagney@redhat.com>
4042
4043 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
4044 "tm_print_insn_info".
4045 (TARGET_PRINT_INSN_INFO): Delete macro.
4046 (dis_asm_read_memory): Delete function declaration.
4047 (dis_asm_memory_error, dis_asm_print_address): Ditto.
4048 (tm_print_insn_info): Delete variable definition.
4049 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
4050 * gdbarch.h, gdbarch.c: Re-generate.
4051 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
4052 "deprecated_tm_print_insn_info".
4053 * mcore-tdep.c (mcore_dump_insn): Ditto.
4054 * mips-tdep.c (mips_gdbarch_init): Ditto.
4055 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
4056 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
4057 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
4058 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
4059 instead of TARGET_PRINT_INSN_INFO, add comment.
4060 * s390-tdep.c (s390_get_frame_info): Instead of
4061 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
4062 (s390_check_function_end, s390_is_sigreturn): Ditto.
4063 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
4064 (dis_asm_memory_error, dis_asm_print_address): Ditto.
4065 * disasm.c: Include "gdbcore.h".
4066 (_initialize_disasm): New function, initialize
4067 "deprecated_tm_print_insn_info".
4068 (deprecated_tm_print_insn_info): New variable.
4069 (dis_asm_read_memory): Moved from "corefile.c", made static.
4070 (dis_asm_print_address, dis_asm_memory_error): Ditto.
4071 * Makefile.in (disasm.o): Update dependencies.
4072
07020390
AC
40732003-04-30 Andrew Cagney <cagney@redhat.com>
4074
4075 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
4076
a9fa03de
AF
40772003-04-29 Adam Fedor <fedor@gnu.org>
4078
4079 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
4080 * infcall.c (find_function_addr): Make non-static.
4081 * infcall.h (find_function_addr): Declare.
4082 * Makefile.in (eval.o): Update dependencies.
4083
1bae87b9
AF
40842003-04-28 Adam Fedor <fedor@gnu.org>
4085
4086 * symtab.c (symbol_find_demangled_name): Check for and demangle
4087 ObjC symbols.
4088 (symbol_init_demangled_name): Init for language_objc as well.
4089
0ba6dca9
AC
40902003-04-28 Andrew Cagney <cagney@redhat.com>
4091
4092 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
4093 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
4094 * gdbarch.h, gdbarch.c: Re-generate.
4095 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
4096 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
4097 * inferior.h (deprecated_read_fp): Rename read_fp.
4098 (generic_target_read_fp): Delete declaration.
4099 * regcache.c (generic_target_read_fp): Delete function.
4100 (deprecated_read_fp): Replace read_fp, use
4101 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
4102 * d10v-tdep.c (d10v_read_fp): Delete function.
4103 (d10v_gdbarch_init): Do not set deprecated_read_fp.
4104
4105 * sparc-tdep.c (sparc_gdbarch_init): Do not set
4106 deprecated_target_read_fp to generic_target_read_fp.
4107 * sh-tdep.c (sh_gdbarch_init): Ditto.
4108 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4109 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4110 * frv-tdep.c (frv_gdbarch_init): Ditto.
4111
4112 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
4113 deprecated_fp_regnum.
4114 * x86-64-tdep.c (x86_64_init_abi): Ditto.
4115 * vax-tdep.c (vax_gdbarch_init): Ditto.
4116 * v850-tdep.c (v850_gdbarch_init): Ditto.
4117 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4118 * sh-tdep.c (sh_gdbarch_init): Ditto.
4119 * s390-tdep.c (s390_gdbarch_init): Ditto.
4120 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4121 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4122 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4123 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4124 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4125 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4126 * i386-tdep.c (i386_gdbarch_init): Ditto.
4127 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4128 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4129 * frv-tdep.c (frv_gdbarch_init): Ditto.
4130 * cris-tdep.c (cris_gdbarch_init): Ditto.
4131 * avr-tdep.c (avr_gdbarch_init): Ditto.
4132 * arm-tdep.c (arm_gdbarch_init): Ditto.
4133 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4134
4135 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
4136 * v850-tdep.c (v850_gdbarch_init): Ditto.
4137 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4138 * sh-tdep.c (sh_gdbarch_init): Ditto.
4139 * s390-tdep.c (s390_gdbarch_init): Ditto.
4140 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4141 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4142 * mips-tdep.c (mips_gdbarch_init): Ditto.
4143 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4144 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4145 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4146 * frv-tdep.c (frv_gdbarch_init): Ditto.
4147 * avr-tdep.c (avr_gdbarch_init): Ditto.
4148 * arm-tdep.c (arm_gdbarch_init): Ditto.
4149
4150 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
4151 DEPRECATED_FP_REGNUM.
4152 (vax_push_dummy_frame, vax_pop_frame): Ditto.
4153 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
4154 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
4155 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
4156 (sparc32_register_virtual_type): Ditto.
4157 * sh-tdep.c (sh64_frame_chain): Ditto.
4158 (sh64_get_saved_register, sh64_pop_frame): Ditto.
4159 (sh_nofp_frame_init_saved_regs): Ditto.
4160 (sh64_nofp_frame_init_saved_regs): Ditto.
4161 (sh_fp_frame_init_saved_regs): Ditto.
4162 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4163 * remote-e7000.c (fetch_regs_from_dump): Ditto.
4164 * procfs.c (procfs_fetch_registers): Ditto.
4165 (procfs_store_registers): Ditto.
4166 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
4167 (store_inferior_registers, fetch_core_registers): Ditto.
4168 (fetch_kcore_registers, clear_regs): Ditto.
4169 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
4170 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
4171 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
4172 * nlm/i386.c (do_status): Ditto.
4173 * mipsv4-nat.c (supply_gregset): Ditto.
4174 * mips-tdep.c: Ditto for comments.
4175 * mips-nat.c (fetch_inferior_registers): Ditto.
4176 (store_inferior_registers, fetch_core_registers): Ditto.
4177 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
4178 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
4179 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
4180 (i386_do_pop_frame, i386_register_type): Ditto.
4181 * hppa-tdep.c (hppa_frame_chain): Ditto.
4182 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
4183 (hppa_pop_frame, hppa_read_fp): Ditto.
4184 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
4185 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
4186 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
4187 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
4188 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
4189 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
4190 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
4191 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
4192 * blockframe.c: Ditto for comments.
4193 * arch-utils.h: Ditto for comments.
4194 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
4195 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
4196 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
4197 * alpha-tdep.h: Ditto for comments.
4198 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
4199 (alpha_cannot_store_register): Ditto.
4200 (alpha_push_dummy_frame): Ditto.
4201 * alpha-nat.c (supply_gregset): Ditto.
4202
4203 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
4204 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
4205 * config/sparc/tm-sparc.h: Update comment.
4206
4207 * hppa-tdep.c (hppa_init_extra_frame_info): Use
4208 deprecated_read_fp instead of TARGET_READ_FP.
4209 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
4210 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
4211 * sparc-tdep.c (sparc_init_extra_frame_info): Use
4212 deprecated_read_fp instead of read_fp.
4213 * s390-tdep.c (s390_push_arguments): Ditto.
4214 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4215 * frame.h: Ditto in comments.
4216 * frame.c (legacy_get_prev_frame): Ditto.
4217 * dummy-frame.c (dummy_frame_this_id): Ditto.
4218 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
4219
d7a27068
AC
42202003-04-28 Andrew Cagney <cagney@redhat.com>
4221
4222 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
4223 * gdbarch.h, gdbarch.c: Re-generate.
4224 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
4225 * vax-tdep.c (_initialize_vax_tdep): Update.
4226 * v850-tdep.c (_initialize_v850_tdep): Update.
4227 * sparc-tdep.c (_initialize_sparc_tdep): Update.
4228 * s390-tdep.c (_initialize_s390_tdep): Update.
4229 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
4230 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
4231 * mips-tdep.c (_initialize_mips_tdep): Update.
4232 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4233 * m68k-tdep.c (_initialize_m68k_tdep): Update.
4234 * ia64-tdep.c (_initialize_ia64_tdep): Update.
4235 * hppa-tdep.c (_initialize_hppa_tdep): Update.
4236 * h8300-tdep.c (_initialize_h8300_tdep): Update.
4237 * frv-tdep.c (_initialize_frv_tdep): Update.
4238 * cris-tdep.c (cris_delayed_get_disassembler): Update.
4239 (_initialize_cris_tdep): Update.
4240 * arch-utils.c (legacy_print_insn): Update.
4241 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4242
d2630e69
AF
42432003-04-26 Adam Fedor <fedor@gnu.org>
4244
4245 * linespec.c (decode_objc): New function to decode ObjC calls
4246 (decode_line_1): Check for ObjC calls (using decode_objc)
4247 * Makefile (linespec.o): Update dependencies.
4248
3086aeae
DJ
42492003-04-26 Daniel Jacobowitz <drow@mvista.com>
4250
4251 * breakpoint.h (struct breakpoint_ops): New.
4252 (struct breakpoint): Add ops member.
4253
4254 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
4255 (mention): Use new breakpoint ops member.
4256 (set_raw_breakpoint): Initialize ops field to NULL.
4257 (print_exception_catchpoint, print_one_exception_catchpoint)
4258 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
4259 (gnu_v3_exception_catchpoint_ops): New.
4260 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
4261
1fbec6c3
AF
42622003-04-25 Adam Fedor <fedor@gnu.org>
4263
4264 * Makefile.in (COMMON_OBS): Add objc-lang.o
4265
0ef21242
AC
42662003-04-25 Andrew Cagney <cagney@redhat.com>
4267
4268 * d10v-tdep.c (print_insn): Delete function.
4269 (display_trace): Use TARGET_PRINT_INSN.
4270 (_initialize_d10v_tdep): Do not set tm_print_insn.
4271 (d10v_gdbarch_init): Set print_insn.
4272
f75493ed
AC
42732003-04-25 Andrew Cagney <cagney@redhat.com>
4274
4275 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
4276 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
4277 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
4278 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
4279 (nr_dmap_regs, a0_regnum): ... new functions.
4280 (d10v_print_registers_info): Use a0_regnum, use register_size.
4281 (d10v_register_byte): Delete function.
4282 (d10v_register_raw_size): Delete function.
4283 (d10v_register_type): Use a0_regnum.
4284 (d10v_print_registers_info): Use a0_regnum.
4285 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
4286 (d10v_gdbarch_init): Do not set register_byte or
4287 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
4288 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
4289 extract_address.
4290 (trace_command): Use XCALLOC.
4291 (print_insn): Delete reference to tm_print_insn.
4292 (saved_regs_unwinder): Use store_unsigned_integer instead of
4293 store_address.
4294 * frame.h (FRAME_OBSTACK_CALLOC): Define
4295
2202b100
DC
42962003-04-25 David Carlton <carlton@bactrian.org>
4297
4298 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
4299
4e45ca2e
AF
43002003-04-24 Adam Fedor <fedor@gnu.org>
4301
4302 * objc-lang.c: Include "valprint.h"
4303 * Makefile.in (objc-lang.o): Update dependencies.
4304
93de3e7f
AF
43052003-04-24 Adam Fedor <fedor@gnu.org>
4306
8ffd9b1b 4307 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
4308 architecture dependant compilation and mark as unimplemented
4309 (until they get put in the gdbarch vector).
4310
0f20eeea
DC
43112003-04-23 David Carlton <carlton@bactrian.org>
4312
4313 * cp-support.c (cp_find_first_component): Accept 'operator' in
4314 more locations.
4315
74cfe982
AC
43162003-04-23 Andrew Cagney <cagney@redhat.com>
4317
4318 * infcall.c (call_function_by_hand): Eliminate redundant
4319 indentation. Move "saved_async" and "old_cleanups" to where they
4320 are needed.
8ffd9b1b 4321
52557533
AC
43222003-04-23 Andrew Cagney <cagney@redhat.com>
4323
4324 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
4325 and "buffer". Move the "name" code to where it is needed.
4326
158775de
AC
43272003-04-23 Andrew Cagney <cagney@redhat.com>
4328
4329 * infcall.c (call_function_by_hand): Move variables "start_sp",
4330 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
4331 code to ON_STACK switch branch.
8ffd9b1b 4332
ebc7896c
AC
43332003-04-23 Andrew Cagney <cagney@redhat.com>
4334
4335 * infcall.c (call_function_by_hand): Make declaration of "i",
4336 "sal", "bpt" and "old_sp" more local to their use. Delete #if
4337 lint.
4338
d727590f
AC
43392003-04-23 Andrew Cagney <cagney@redhat.com>
4340
4341 * infcall.c (call_function_by_hand): Delete variable
4342 "n_method_args". Localize "param_type"'s declaration to the loop
4343 that it is used. Reinstate code assigning to said variable -
4344 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
4345 Rationalize code using "param_type".
4346
d585e13a
AC
43472003-04-22 Andrew Cagney <cagney@redhat.com>
4348
4349 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
4350 compute the breakpoint address. Only call FIX_CALL_DUMMY when
4351 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
4352 to DEPRECATED_PUSH_RETURN_ADDRESS.
4353
051caad9
KB
43542003-04-22 Kevin Buettner <kevinb@redhat.com>
4355
4356 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
4357 on the DWARF2 register number prior to fetching a register.
4358
77296879
JB
43592003-04-22 J. Brobecker <brobecker@gnat.com>
4360
4361 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
4362 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 4363 this macro was always set to 0.
77296879
JB
4364 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
4365 considering the fact that this macro was always set to 0.
4366 * hppa-tdep.h (hppa_store_return_value): Likewise.
4367 (hppa_extract_return_value): Likewise.
4368
4252f1df
JB
43692003-04-22 J. Brobecker <brobecker@gnat.com>
4370
4371 * config/pa/tm-hppa.h: Remove obsolete code, was used by
4372 the hppa-pro target only.
4373
14604c6b
JB
43742003-04-21 J. Brobecker <brobecker@gnat.com>
4375
4376 Ongoing multi-arch conversion effort for HP/UX:
4377 * config/pa/tm-hppa.h: Move all macro that are no longer
4378 defined now that GDB_MULTI_ARCH is now set to 1 from here...
4379 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
4380
77eb01d1
JB
43812003-04-21 J. Brobecker <brobecker@gnat.com>
4382
4383 * config/pa/tm-hppa.h: Obsolete a section that was only used
4384 for hppa-pro.
4385
61995b3b
JB
43862003-04-21 J. Brobecker <brobecker@gnat.com>
4387
4388 Ongoing multi-arch conversion for HP/UX.
4389 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
4390 if already defined (allows hppa64 to stay non-multiarched for now).
4391 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
4392
4aa79dcc
AC
43932003-04-21 Andrew Cagney <cagney@redhat.com>
4394
4395 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
4396
0f751ff2
AC
43972003-04-21 Andrew Cagney <cagney@redhat.com>
4398
4399 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
4400 "i386_num_mmx_regs".
4401
04714b91
AC
44022003-04-21 Andrew Cagney <cagney@redhat.com>
4403
4404 * infcall.c: New file.
4405 * infcall.h: New file.
4406 * valarith.c: Include "infcall.h".
4407 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
4408 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
4409 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
4410 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
4411 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
4412 (SFILES): Add "infcall.c"
4413 (COMMON_OBS): Add "infcall.o".
4414 (infcall.o): Specify dependencies.
4415 * value.h (call_function_by_hand): Delete declaration.
4416 * inferior.h (run_stack_dummy): Delete declaration.
4417 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
4418 (run_stack_dummy): Move to "infcall.c", merged into
4419 call_function_by_hand.
4420 * valops.c (call_function_by_hand): Moved to "infcall.c".
4421 (find_function_addr, value_arg_coerce): Ditto.
4422 (unwindonsignal_p, coerce_float_to_double): Ditto.
4423 (_initialize_valops): Move "set/show coerce-float-to-double", and
4424 "set/show unwindonsignal" commands to "infcall.c".
4425 * v850-tdep.c, target.h: Update comments.
4426 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
4427 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
4428 (sh64_init_extra_frame_info): Update comments.
4429 * mn10300-tdep.c: Update comments.
4430 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
4431 * config/sparc/tm-sparc.h: Update comments.
4432 * breakpoint.h: Update comments.
4433 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
4434 * arm-tdep.c: Update comment.
4435
f9d3c2a8
MK
44362003-04-19 Mark Kettenis <kettenis@gnu.org>
4437
c40e1eab
MK
4438 * i386-tdep.c (i386_num_register_names): New variable.
4439 (i386_num_mmx_regs): Renamed from mmx_num_regs.
4440 (MM0_REGNUM): Remove redundant parentheses in define.
4441 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
4442 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
4443 i386_mxcsr_regnum_p): Remove redundant parentheses.
4444 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 4445
94ea66b3
MK
4446 * i386-tdep.c (i386_extract_return_value,
4447 i386_store_return_value): Correct check for availability of
4448 floating-point registers.
4449
54299a1d
MK
4450 * i386-tdep.c (i386_frame_num_args): Remove function.
4451 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
4452
c86c27af
MK
4453 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
4454 mmx_regnum_to_fp_regnum. Adjust all callers.
4455
f9d3c2a8
MK
4456 * i386-tdep.c (i386_get_longjmp_target): Use
4457 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
4458 and TARGET_CHAR_BIT. Use extract_typed_address instead of
4459 extract_address.
4460
94ba74a9
MK
44612003-04-19 Mark Kettenis <kettenis@gnu.org>
4462
4463 * core-regset.c: Update comments to reflect reality. Re-order
4464 includes.
4465 (fetch_core_registers): Use switch instead of if. Remove
4466 redundant prototype.
4467
4074e13c
JB
44682003-04-18 Jim Blandy <jimb@redhat.com>
4469
4470 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 4471 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 4472
e3ab4aba
RH
44732003-04-17 Richard Henderson <rth@redhat.com>
4474
4475 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
4476
627bf7c1
EZ
44772003-04-17 Michael Snyder <msnyder@redhat.com>
4478 Karen Bennet <bennet@redhat.com>
4479
4480 Committed by Elena Zannoni <ezannoni@redhat.com>
4481 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 4482
514621a9
EZ
44832003-04-17 Elena Zannoni <ezannoni@redhat.com>
4484
4485 * values.c (value_being_returned): Don't fetch the return
fbe586ae 4486 value if the return type is void.
514621a9 4487
b4acd559
JJ
44882003-04-17 Jeff Johnston <jjohnstn@redhat.com>
4489
4490 * thread-db.c: Reindented.
8ffd9b1b 4491
530b167e 44922003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
4493
4494 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
4495 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
4496 as types.
4497
0a48e7e8
MS
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
8ffd9b1b 4521
ab9fe00e
KB
45222003-04-16 Kevin Buettner <kevinb@redhat.com>
4523
610a3745 4524 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
4525 the size of ``long double'' to 16, instead of 8.
4526
e64a344c
MK
45272003-04-16 Mark Kettenis <kettenis@gnu.org>
4528
4529 * i386-linux-nat.c: Add some whitespace to make things more
4530 readable.
4531 (fetch_register, store_register, fetch_inferior_registers,
4532 store_inferior_registers): Get rid of assignment in if-statement.
4533 (store_register): Fix typo in error message.
4534
25d41031
AC
45352003-04-16 Andrew Cagney <cagney@redhat.com>
4536
4537 * utils.c (xmmalloc): Always allocate something, matches
4538 libiberty/xmalloc's semantics.
4539 (xmrealloc, xmcalloc): Ditto.
4540
c50901fd
AC
45412003-04-16 Andrew Cagney <cagney@redhat.com>
4542
4543 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
4544 update comments.
4545 (get_frame_type): Initialize unwind and type when needed.
4546 (get_frame_id, frame_register_unwind): Ditto.
4547
f81824a9
AC
45482003-04-16 Andrew Cagney <cagney@redhat.com>
4549
4550 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
4551 obsolete.
4552 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
4553 * sparcl-stub.c: Obsolete file.
4554 * config/sparc/tm-sparclet.h: Obsolete file.
4555 * sparclet-stub.c: Obsolete file.
4556 * sparclet-rom.c: Obsolete file.
4557 * sparcl-tdep.c: Obsolete file.
4558 * config/sparc/tm-sparclite.h: Obsolete file.
4559 * config/sparc/sparclite.mt: Obsolete file.
4560 * config/sparc/sparclet.mt: Obsolete file.
4561 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
4562 sparc86x-*-* obsolete.
4563
9219021c
DC
45642003-04-15 David Carlton <carlton@math.stanford.edu>
4565
4566 * Makefile.in (SFILES): Add cp-namespace.c.
4567 (COMMON_OBS): Add cp-namespace.o.
4568 (block.o): Depend on gdb_obstack_h and cp_support_h.
4569 (buildsym.o): Depend on cp_support_h.
4570 (cp-namespace.o): New.
4571 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
4572 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
4573 (dwarf2read.o): Depend on cp_support_h.
4574 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
4575 * dwarf2read.c (process_die): Set processing_has_namespace_info,
4576 processing_current_namespace.
4577 (read_namespace): Update processing_current_namespace; check for
4578 anonymous namespaces.
4579 (dwarf2_name): New function.
4580 (dwarf2_extension): Ditto.
4581 * cp-support.h: Update copyright, contributors.
4582 Add inclusion guards.
4583 Add opaque declaration for structs obstack, block, symbol.
4584 (struct using_direct): New struct.
4585 Add declarations for cp_find_first_component,
4586 cp_entire_prefix_len, processing_has_namespace_info,
4587 processing_current_namespace, cp_is_anonymous,
4588 cp_add_using_directive, cp_initialize_namespace,
4589 cp_finalize_namespace, cp_set_block_scope,
4590 cp_scan_for_anonymous_namespaces.
4591 * cp-namespace.c: New file.
4592 * cp-support.c: Update copyright.
4593 Include ctype.h, gdb_assert.h, gdbcmd.h.
4594 New variable maint_cplus_cmd_list.
4595 (cp_find_first_component): New function.
4596 (cp_entire_prefix_len, maint_cplus_command)
4597 (first_component_command, _initialize_cp_support): Ditto.
4598 * buildsym.c: Include cp-support.h.
4599 New variable using_list.
4600 (add_symbol_to_list): Check for anonymous namespaces.
4601 (finish_block): Set block's scope.
4602 (start_symtab): Initialize C++ namespace support.
4603 (end_symtab): Finalize C++ namespace support.
4604 * block.h: Add opaque declarations for structs
4605 block_namespace_info, using_direct, and obstack.
4606 Add declarations for block_set_scope and block_set_using.
4607 (struct block): Add 'language_specific' member.
4608 (BLOCK_NAMESPACE): New macro.
4609 * block.c: Include gdb_obstack.h and cp-support.h.
4610 (struct block_namespace_info): New struct.
4611 (block_set_scope): New function.
4612 (block_set_using, block_initialize_namespace): Ditto.
4613
d5a921c9
KB
46142003-04-14 Kevin Buettner <kevinb@redhat.com>
4615
4616 * solib-svr4.c (svr4_have_link_map_offsets): New function.
4617 (locate_base): Return early if there aren't any link map offsets.
4618 (svr4_solib_create_inferior_hook): Warn if shared library support
4619 is unavailable.
4620
d2a52b27
DC
46212003-04-14 David Carlton <carlton@math.stanford.edu>
4622
4623 * symtab.c (symbol_set_names): Add prefix when storing Java names
4624 in hash table. Fix for PR java/1039.
4625
980cae7a
DC
46262003-04-14 David Carlton <carlton@math.stanford.edu>
4627
4628 * symtab.c (symbol_set_names): Rename 'name' arg to
4629 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
4630 * symtab.h: Change 'name' argument in declaration of
4631 symbol_set_names to 'linkage_name'.
4632 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
4633
e227b13c
AC
46342003-04-14 Andrew Cagney <cagney@redhat.com>
4635
4636 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
4637 return the fully sign-extended register value.
4638 (get_frame_pointer): Ditto.
4639 (mips_pop_frame): Initialize "proc_desc" after checking for a
4640 dummy frame.
4641
36712a20
AC
46422003-04-14 Andrew Cagney <cagney@redhat.com>
4643
4644 * mips-tdep.c (mips_push_dummy_frame): Delete function.
4645 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
4646 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
4647 (mips_push_register): Delete function.
4648 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
4649 PUSH_FP_REGNUM.
4650
44ea7b70
JB
46512003-04-14 Jim Blandy <jimb@redhat.com>
4652
4653 * symmisc.c: #include "gdb_regex.h".
4654 (maintenance_list_symtabs, maintenance_list_psymtabs): New
4655 functions.
4656 * maint.c (maintenance_list_command): New function.
4657 (_initialize_maint_cmds): Register the above as commands.
4658 * symtab.h (maintenance_list_symtabs,
4659 maintenance_list_psymtabs): New declarations.
4660 * cli/cli-cmds.c (maintenancelistlist): New variable.
4661 (init_cmd_lists): Initialize it.
4662 * cli/cli-cmds.h (maintenancelistlist): New declaration.
4663 * gdbcmd.h (maintenancelistlist): New declaration.
4664 * Makefile.in (symmisc.o): Update dependencies.
4665
2d0c7962
EZ
46662003-04-14 Elena Zannoni <ezannoni@redhat.com>
4667
4668 * s390-nat.c: Include asm/types.h for addr_t.
4669
1947a811
CV
46702003-04-14 Corinna Vinschen <vinschen@redhat.com>
4671
4672 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
4673 actually incoming type.
4674
adb616d7
AC
46752003-04-13 Andrew Cagney <cagney@redhat.com>
4676
4677 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
4678 get_next_frame and get_frame_saved_regs.
4679
9b5e151c
AC
46802003-04-13 Andrew Cagney <cagney@redhat.com>
4681
4682 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
4683 of gdbarch_num_regs.
4684
ef6e7e13
AC
46852003-04-13 Andrew Cagney <cagney@redhat.com>
4686
4687 * frame.h: Mention what replaced what in "struct frame_info".
4688 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
4689 deprecated_update_frame_base_hack and
4690 deprecated_update_frame_pc_hack.
4691 * hppa-tdep.c: Ditto.
4692
61fbb938
DJ
46932003-04-13 Daniel Jacobowitz <drow@mvista.com>
4694
4695 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
4696 to read_reg and update its comment. Remove regnum member.
4697 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
4698 Don't call read_reg when setting in_reg. Call read_reg to get
4699 the frame base if it's in a register. Return the register number
4700 on the stack instead of in the context. Remove extra arguments
4701 to read_reg.
4702 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
4703 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
4704 the register number on the expression stack.
4705 (needs_frame_read_reg): Remove extra arguments.
4706
0d53c4c4
DJ
47072003-04-13 Daniel Jacobowitz <drow@mvista.com>
4708
4709 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
4710 made non-static.
4711 (execute_stack_op): All callers updated.
4712 * dwarf2expr.h: Add prototype for dwarf2_read_address.
4713 * dwarf2loc.c (find_location_expression): New function.
4714 (dwarf_expr_frame_base): Call it.
4715 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
4716 (dwarf2_tracepoint_var_ref): New function, broken out from
4717 locexpr_tracepoint_var_ref.
4718 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
4719 Make static.
4720 (loclist_read_variable, loclist_read_needs_frame): New functions.
4721 (loclist_describe_location, loclist_tracepoint_var_ref): New
4722 functions.
4723 (dwarf2_loclist_funcs): New struct location_funcs.
4724 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
4725 (struct dwarf2_locexpr_baton): Add comments.
4726 (dwarf2_loclist_funcs): New extern.
4727 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
4728 base_address and base_known.
4729 (dwarf_loc_buffer): New variable.
4730 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
4731 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
4732 (dwarf2_has_info): Initialize dwarf_loc_offset.
4733 (dwarf2_build_psymtabs): Read in .debug_loc.
4734 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
4735 DWARF_LOC_SIZE.
4736 (psymtab_to_symtab_1): Likewise. Move base address calculation
4737 here, from...
4738 (dwarf2_get_pc_bounds): ... here. Use the base address from
4739 cu_header.
4740 (dwarf2_symbol_mark_computed): Handle location lists.
4741
6aca59a3
DJ
47422003-04-13 Daniel Jacobowitz <drow@mvista.com>
4743
4744 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
4745 if the linkage name demangled successfully.
4746
aca1fcd0
MK
47472003-04-13 Mark Kettenis <kettenis@gnu.org>
4748
97095916
MK
4749 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
4750 disassmbly_flavour): Removed.
4751
aca1fcd0
MK
4752 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
4753
562a961f
MK
47542003-04-13 Mark Kettenis <kettenis@gnu.org>
4755
4756 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
4757
bd013d54
AC
47582003-04-12 Andrew Cagney <cagney@redhat.com>
4759
4760 * frame.h (struct frame_info): Move definition from here ...
4761 * frame.c (struct frame_info): ... to here.
4762
167ef8b1
AC
47632003-04-12 Andrew Cagney <cagney@redhat.com>
4764
4765 * gdbthread.h (save_infrun_state): Delete parameter
4766 "prev_func_start".
4767 (struct thread_info): Delete field "prev_func_start".
4768 (load_infrun_state): Ditto.
4769 * thread.c (load_infrun_state, save_infrun_state): Update.
4770 * infrun.c (prev_func_start): Delete variable.
4771 (context_switch, init_wait_for_inferior): Update.
4772 (stop_stepping, keep_going): Update.
4773
da3331ec
AC
47742003-04-12 Andrew Cagney <cagney@redhat.com>
4775
4776 * gdbarch.sh: Add missing opaque declarations.
4777 * gdbarch.h: Regnerate.
4778 * symtab.h: Add missing opaque declarations.
4779 * value.h, target.h, symfile.h, stabsread.h: Ditto.
4780 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
4781 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
4782 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
4783 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
4784 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
4785 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
4786 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
4787 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
4788 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
4789 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
4790 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
4791 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
4792
18adea3f
AC
47932003-04-11 Andrew Cagney <cagney@redhat.com>
4794
4795 * frame.c (get_frame_id): Return this frame's "id".
4796 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
4797 function start.
4798 (legacy_saved_regs_this_id): Replace function body with
4799 internal-error.
4800 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
4801 FRAME_OBSTACK_ZALLOC.
4802 (create_new_frame): Mark the frame ID as valid.
4803
2252e863
AO
48042003-04-11 Alexandre Oliva <aoliva@redhat.com>
4805
4806 * Makefile.in (libbfd_h): Added missing setting.
4807 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
4808 according to the selected ABI.
4809
a8245ab8
JJ
48102003-04-11 Jeff Johnston <jjohnstn@redhat.com>
4811
4812 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
4813
6913c89a
AC
48142003-04-11 Andrew Cagney <cagney@redhat.com>
4815
4816 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
4817 SAVED_PC_AFTER_CALL.
4818 * gdbarch.h, gdbarch.c: Regenerate.
4819 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4820 * x86-64-tdep.c (x86_64_init_abi): Update.
4821 * vax-tdep.c (vax_gdbarch_init): Update.
4822 * v850-tdep.c (v850_gdbarch_init): Update.
4823 * sparc-tdep.c (sparc_gdbarch_init): Update.
4824 * sh-tdep.c (sh_gdbarch_init): Update.
4825 * s390-tdep.c (s390_gdbarch_init): Update.
4826 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4827 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4828 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4829 * mips-tdep.c (mips_gdbarch_init): Update.
4830 * mcore-tdep.c (mcore_gdbarch_init): Update.
4831 * m68k-tdep.c (m68k_gdbarch_init): Update.
4832 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4833 * ia64-tdep.c (ia64_gdbarch_init): Update.
4834 (ia64_saved_pc_after_call): Update declaration.
4835 * i386ly-tdep.c (i386lynx_init_abi): Update.
4836 * i386-tdep.c (i386_gdbarch_init): Update.
4837 * hppa-tdep.c (hppa_gdbarch_init): Update.
4838 * h8300-tdep.c (h8300_gdbarch_init): Update.
4839 * frv-tdep.c (frv_gdbarch_init): Update.
4840 * cris-tdep.c (cris_gdbarch_init): Update.
4841 * avr-tdep.c (avr_gdbarch_init): Update.
4842 * arm-tdep.c (arm_gdbarch_init): Update.
4843 * alpha-tdep.c (alpha_gdbarch_init): Update.
4844 * ns32knbsd-nat.c (frame_num_args): Update.
4845 * ns32k-tdep.c (umax_frame_num_args): Update.
4846 * mips-tdep.c (mips_init_frame_pc_first): Update.
4847 * infrun.c (step_over_function): Update.
4848 * i386-linux-tdep.c (skip_hurd_resolver): Update.
4849 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
4850 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
4851 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4852 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4853 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
4854 * arm-linux-tdep.c (skip_hurd_resolver): Update.
4855 * arch-utils.c (init_frame_pc_default): Update.
4856 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
4857 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
4858 declaration.
8ffd9b1b 4859
38edeab8
AC
48602003-04-11 Andrew Cagney <cagney@redhat.com>
4861
4862 * i387-tdep.c: Update copyright.
4863 (i387_to_double): Delete function.
4864 (double_to_i387): Delete function.
4865
81f8a206
AC
48662003-04-10 Andrew Cagney <cagney@redhat.com>
4867
4868 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
4869 frame's function's address. Simplify.
4870 (d10v_frame_unwind_cache): Check that the frame's function is
4871 non-zero.
4872
6e691f7a
JB
48732003-04-10 Jim Blandy <jimb@redhat.com>
4874
4875 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
4876 call to set_gdbarch_deprecated_push_arguments.
4877
7f78e237
AC
48782003-04-10 Andrew Cagney <cagney@redhat.com>
4879
4880 * frame.c (fprint_frame_id): New function.
4881 (fprint_frame_type, fprint_frame): New function.
4882 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
4883 (create_sentinel_frame, get_frame_id): Ditto.
4884 (frame_id_p, frame_id_eq): Ditto.
4885 (frame_id_inner, create_new_frame): Ditto.
4886 (legacy_get_prev_frame, get_prev_frame): Ditto.
4887 (deprecated_update_frame_pc_hack): Ditto.
4888 (frame_register_unwind): Ditto.
4889 (deprecated_update_frame_base_hack): Ditto.
4890
f870b49b
CV
48912003-04-10 Corinna Vinschen <vinschen@redhat.com>
4892
4893 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
4894 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
4895 frame_chain function.
4896 * Makefile.in: Add dependencies due to above change.
4897
7c86889b
CV
48982003-04-10 Corinna Vinschen <vinschen@redhat.com>
4899
4900 * blockframe.c (legacy_frame_chain_valid): Move call to
4901 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
4902 inside_entry_file.
4903
d0a55772
AC
49042003-04-09 Andrew Cagney <cagney@redhat.com>
4905
4906 * frame.h (struct frame_id): Replace "pc" and "base" with
4907 "stack_addr" and "code_addr". Update comments.
4908 (frame_id_build): Update parameter names and comment.
4909 (struct frame_info): Replace "id_p" and "id" with "this_id".
4910 * dummy-frame.c (dummy_frame_this_id): Update.
4911 * breakpoint.c (print_one_breakpoint): Update.
4912 * frame.c (get_frame_id): Update.
4913 (get_frame_base, frame_id_build): Update.
4914 (create_sentinel_frame, legacy_get_prev_frame): Update.
4915 (deprecated_update_frame_base_hack): Update.
4916 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
4917 (frame_id_inner): Ditto.
4918
ac16bf07
AC
49192003-04-09 Andrew Cagney <cagney@redhat.com>
4920
4921 * defs.h (gdb_print_host_address): Make "addr" parameter a
4922 pointer constant.
4923 * utils.c (gdb_print_host_address): Update.
4924
366cfc9e
KB
49252003-04-09 Kevin Buettner <kevinb@redhat.com>
4926
4927 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
4928 register number for R0 is 0.
4929
cd983b5c
JB
49302003-04-09 J. Brobecker <brobecker@gnat.com>
4931
4932 * frame.h (struct gdbarch): Add opaque structure definition
4933 to avoid a compilation warning on LynxOS 4.0.
4934
d1340264
AC
49352003-04-09 Andrew Cagney <cagney@redhat.com>
4936
4937 * frame.h (struct frame_info): Delete field "pc". Replace
4938 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
4939 structure.
4940 * frame.c (frame_pc_unwind): Update.
4941 (create_sentinel_frame): Do not set "pc".
4942 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
4943 (get_frame_pc): Call frame_pc_unwind.
4944 (deprecated_update_frame_pc_hack): Update.
4945 (create_new_frame): Use "pc" not "->pc".
4946
90a6fffb
AC
49472003-04-09 Andrew Cagney <cagney@redhat.com>
4948
4949 * frame.c (get_frame_id): Eliminate code updating "frame".
4950 (legacy_get_prev_frame): Ditto.
4951 (get_frame_base): Return id.base directly.
4952 (deprecated_update_frame_base_hack): Update "id.base".
4953 * frame.h (struct frame_info): Delete field "frame".
4954
2fbce691
AC
49552003-04-09 Andrew Cagney <cagney@redhat.com>
4956
4957 * NEWS: Mention that the "Sequent family" is obsolete.
4958 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
4959 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
4960 * configure.host: Obsolete i[3456]86-sequent-bsd*,
4961 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
4962 * config/i386/tm-ptx4.h: Obsolete file.
4963 * config/i386/tm-ptx.h: Obsolete file.
4964 * symm-tdep.c: Obsolete file.
4965 * config/i386/symmetry.mt: Obsolete file.
4966 * config/i386/tm-symmetry.h: Obsolete file.
4967 * symm-nat.c: Obsolete file.
4968 * config/i386/nm-symmetry.h: Obsolete file.
4969 * config/i386/xm-symmetry.h: Obsolete file.
4970 * config/i386/symmetry.mh: Obsolete file.
4971 * config/i386/nm-ptx4.h: Obsolete file.
4972 * config/i386/ptx4.mh: Obsolete file.
4973 * config/i386/ptx.mt: Obsolete file.
4974 * config/i386/ptx.mh: Obsolete file.
4975 * config/i386/xm-ptx4.h: Obsolete file.
4976 * config/i386/xm-ptx.h: Obsolete file.
4977
78c43945
AC
49782003-04-09 Andrew Cagney <cagney@redhat.com>
4979
4980 Obsolete mips*-*-mach3*.
4981 * NEWS: Mention that mips*-*-mach3* is obsolete.
4982 * m3-nat.c: Obsolete file.
4983 * config/nm-m3.h: Obsolete file.
4984 * config/mips/tm-mipsm3.h: Obsolete file.
4985 * config/mips/mipsm3.mt: Obsolete file.
4986 * config/mips/mipsm3.mh: Obsolete file.
4987 * config/mips/xm-mipsm3.h: Obsolete file.
4988 * mipsm3-nat.c: Obsolete file.
4989 * configure.host: Obsolete mips-dec-mach3*.
4990 * configure.tgt: Obsolete mips*-*-mach3*.
4991
f1908289
AC
49922003-04-09 Andrew Cagney <cagney@redhat.com>
4993
4994 * doublest.h: Update copyright.
4995 (deprecated_store_floating, deprecated_extract_floating): Rename
4996 store_floating and extract_floating. Update comments.
4997 * doublest.c: Update copyright.
4998 (extract_floating_by_length): Replace extract_floating.
4999 (store_floating_by_length): Replace store_floating.
5000 (deprecated_extract_floating): New function.
5001 (deprecated_store_floating): New function.
5002 (extract_typed_floating): Call extract_floating_by_length.
5003 (store_typed_floating): Call store_floating_by_length.
5004 * x86-64-tdep.c (x86_64_store_return_value): Update.
5005 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
5006 (sh64_extract_return_value): Update.
5007 (sh_sh4_register_convert_to_virtual): Update.
5008 (sh_sh64_register_convert_to_virtual): Update.
5009 (sh_sh4_register_convert_to_raw): Update.
5010 (sh_sh64_register_convert_to_raw): Update.
5011 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
5012 (rs6000_register_convert_to_raw): Update.
5013 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
5014 (ia64_register_convert_to_raw): Update.
5015 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
5016 (REGISTER_CONVERT_TO_VIRTUAL): Update.
5017 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
5018 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
5019 (alpha_register_convert_to_raw): Update.
5020
4443bd83
AC
50212003-04-08 Andrew Cagney <cagney@redhat.com>
5022
5023 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
5024 * gdbarch.h, gdbarch.c: Re-generate.
5025 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
5026 (d10v_gdbarch_init): Do not set saved_pc_after_call.
5027 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
5028 conditionally, use frame_pc_unwind as an alternative. Add
5029 comments.
5030 * arch-utils.c (init_frame_pc_default): Only call
5031 SAVED_PC_AFTER_CALL when available.
5032
c0236d92
EZ
50332003-04-08 Elena Zannoni <ezannoni@redhat.com>
5034
fbe586ae 5035 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
5036 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
5037 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
5038 (start_remote): Ditto.
5039 (handle_inferior_event): Ditto.
5040 (save_inferior_status): Ditto.
5041 (restore_inferior_status): Ditto.
5042 * infcmd.c (attach_command): Ditto.
5043 * fork-child.c (startup_inferior): Ditto.
fbe586ae 5044 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
5045 * alpha-tdep.c (heuristic_proc_start): Ditto.
5046 * mips-tdep.c (heuristic_proc_start): Ditto.
5047 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
5048 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
5049 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
5050 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
5051 * remote-vx.c (vx_create_inferior): Ditto.
5052
50532003-04-08 Elena Zannoni <ezannoni@redhat.com>
5054
5055 * infrun.c (stop_soon_quietly): Make it an enum, to better
5056 override the default behavior of handle_inferior_event.
5057 (clear_proceed_status): Update uses of stop_soon_quietly to
5058 reflect that it is now an enum.
5059 (start_remote): Ditto.
5060 (handle_inferior_event): Change logic a bit if stop_soon_quietly
5061 is set to handle the new GNU/Linux kernel behavior for
5062 attach/sigstop. Update uses of stop_soon_quietly.
5063 * inferior.h (enum stop_kind): New enum.
5064 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
5065 Reset normal handle_inferior_event behavior, afterwards.
5066 * fork-child.c (startup_inferior): Update.
5067 * alpha-tdep.c (heuristic_proc_start): Update.
5068 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
5069 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
5070 * solib-osf.c (osf_solib_create_inferior_hook): Update.
5071 * solib-irix.c (irix_solib_create_inferior_hook): Update.
5072 * remote-vx.c (vx_create_inferior): Update.
5073 * mips-tdep.c (heuristic_proc_start): Update.
5074
1211bce3
EZ
50752003-04-07 Elena Zannoni <ezannoni@redhat.com>
5076
5077 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 5078 be freed more than once, causing wild memory corruptions.
1211bce3 5079 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 5080 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 5081 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 5082 with the "core" target.
1211bce3 5083
f0ef6b29
KB
50842003-04-07 Kevin Buettner <kevinb@redhat.com>
5085
5086 * mips-tdep.c (mips_print_fp_register): New function, created from
5087 do_fp_register_row(). Registers are now (also) printed as hex.
5088 Only one register is printed per row.
5089 (mips_print_register, do_fp_register_row): Print floating point
5090 registers with mips_print_fp_register().
5091
8cf71652
AC
50922003-04-06 Andrew Cagney <cagney@redhat.com>
5093
5e488a7b
AC
5094 * valprint.h (inspect_it): Add extern declaration.
5095 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
5096 (selectors_info, classes_info): Ditto.
5097 (find_objc_msgcall): Fix indentation.
5098 (objc_printstr): Delete extern declarations.
5099
8cf71652
AC
5100 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
5101
e6ba3bc9
AC
51022003-04-06 Andrew Cagney <cagney@redhat.com>
5103
5104 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
5105 Update comment.
5106 * frame.c (legacy_saved_regs_this_id): Update.
5107 (legacy_get_prev_frame): Update.
5108 * xstormy16-tdep.c: Update comment.
5109 * sparc-tdep.c (sparc_frame_chain): Update comment.
5110 * blockframe.c (legacy_frame_chain_valid): Update.
5111
55e1d7e7
AC
51122003-04-06 Andrew Cagney <cagney@redhat.com>
5113
996179ee
AC
5114 * valprint.c (val_print_type_code_int): Delete #ifdef
5115 PRINT_TYPELESS_INTEGER code.
5116
55e1d7e7
AC
5117 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
5118 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
5119 multi-arch definition.
5120 * gdbarch.h: Re-generate.
5121
43bd9a9e
AC
51222003-04-05 Andrew Cagney <cagney@redhat.com>
5123
5124 Eliminate FRAME_FIND_SAVED_REGS.
5125 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
5126 Change FSR parameter to a pointer.
5127 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
5128 Assume FSR parameter is a pointer.
5129 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
5130 Make fsr a pointer.
5131 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
5132 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
5133 saved_regs a pointer.
5134 (hppa_frame_saved_pc): Ditto.
5135 (find_dummy_frame_regs): Make frame_saved_regs a pointer
5136 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
5137 pointer.
5138 (restore_pc_queue): Make fsr a pointer.
5139 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
5140 (hppa_frame_chain): Make saved_regs a pointer, call
5141 hppa_frame_init_saved_regs.
5142 * sparc-tdep.c: Include "gdb_assert.h".
5143 (sparc_frame_find_saved_regs): Replace internal_error with
5144 gdb_assert.
5145 * remote-vxsparc.c (vx_read_register): Delete reference to
5146 FRAME_FIND_SAVED_REGS.
5147 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
5148 * gdbarch.h: Regenerate.
5149 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
5150 (deprecated_get_frame_saved_regs): Delete declaration.
5151 (struct frame_saved_regs): Delete definition.
5152 * frame.c (deprecated_get_frame_saved_regs): Delete function.
5153 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
5154 (hppa_frame_find_saved_regs): Delete declaration.
5155 (FRAME_FIND_SAVED_REGS): Delete macro.
5156 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
5157 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
5158 FRAME_FIND_SAVED_REGS in comment.
5159
be41e9f4
AC
51602003-04-05 Andrew Cagney <cagney@redhat.com>
5161
5162 * frame.c (frame_func_unwind, get_frame_func): New functions.
5163 * frame.h (get_frame_func, frame_func_unwind): Declare.
5164 (struct frame_info): Add field "prev_func" for caching the
5165 previous frame's function address.
5166 * arm-tdep.c (arm_frameless_function_invocation): Combine
5167 get_pc_function_start and get_frame_pc into get_frame_func.
5168 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
5169 (sh64_nofp_frame_init_saved_regs): Ditto.
5170 * s390-tdep.c (s390_function_start): Ditto.
5171 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
5172 (rs6000_frameless_function_invocation): Ditto.
5173 (rs6000_frame_saved_pc): Ditto.
5174 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
5175 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
5176 * i386-tdep.c (i386_frameless_signal_p): Ditto.
5177 (i386_frame_init_saved_regs): Ditto.
5178 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
5179 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
5180 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
5181 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5182 * blockframe.c (frameless_look_for_prologue): Ditto.
5183
a01dd7cc
AC
51842003-04-05 Andrew Cagney <cagney@redhat.com>
5185
5186 * frame.c (legacy_get_prev_frame): Link prev to next at the
5187 function start. Update comments.
5188
5e5592e6
AC
51892003-04-05 Andrew Cagney <cagney@redhat.com>
5190
5191 * frame.c (get_frame_id): Update comment.
5192 (legacy_get_prev_frame): Update comment.
5193 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
5194 * gdbarch.h: Regenerate.
5195 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
5196 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
5197
6fba5002
AC
51982003-04-05 Andrew Cagney <cagney@redhat.com>
5199
5200 * stack.c (print_frame_info): Use get_frame_pc.
5201
7df05f2b
AC
52022003-04-04 Andrew Cagney <cagney@redhat.com>
5203
5204 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
5205 the frame's type from the unwinder.
5206 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
5207 (create_new_frame, legacy_get_prev_frame): When the unwinder's
5208 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
5209 (get_frame_base_address): Use get_frame_type.
5210 (get_frame_locals_address, get_frame_args_address): Ditto.
5211 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
5212 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
5213 (struct frame_info): Add comment explaining why the frame contains
5214 a "type" field.
5215 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
5216 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
5217 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
5218 NORMAL_FRAME.
5219 * frame-unwind.h: Include "frame.h".
5220 (struct frame_unwind): Add "type" field.
5221 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 5222
11889732
AC
52232003-04-04 Andrew Cagney <cagney@redhat.com>
5224
5225 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
5226 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
5227 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
5228 get_frame_base.
5229 (d10v_unwind_dummy_id): Use frame_id_build.
5230 * frame.c (find_frame_sal): Use get_frame_pc.
5231 (create_new_frame): Use deprecated_update_frame_pc_hack and
5232 deprecated_update_frame_base_hack.
5233 (create_sentinel_frame): Add comment about ->pc going away.
5234 (get_prev_frame): Add comment about ->pc going away.
5235 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
5236 frame_id_build, deprecated_update_frame_pc_hack and
5237 deprecated_update_frame_base_hack.
5238 (select_frame): Use get_frame_pc.
5239 (legacy_saved_regs_this_id): Use frame_id_build.
5240
50c46a0d
EZ
52412003-04-04 Elena Zannoni <ezannoni@redhat.com>
5242
fbe586ae
RH
5243 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
5244 signed integer case.
5245 (classify_argument): Handle enumerations and references.
50c46a0d 5246
50bbdbd9
AC
52472003-04-04 Andrew Cagney <cagney@redhat.com>
5248
5249 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
5250 ID to NULL.
5251
36018d2e
AF
52522003-04-01 Adam Fedor <fedor@gnu.org>
5253
5254 * gdb/objc-lang.c (selectors_info): Replace calls to
5255 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
5256 SYMBOL_NATURAL_NAME.
5257 (classes_info, find_methods): Likewise.
5258
35cec841
KB
52592003-04-03 Kevin Buettner <kevinb@redhat.com>
5260
5261 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
5262 ``mach'' to the value determined by bfd_default_set_arch_mach().
5263
43136899
BR
52642003-04-02 Bob Rossi <bob_rossi@cox.net>
5265
5266 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
5267 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
5268 (mi-cmd-file.o): Update dependencies.
5269
040b99fd
KB
52702003-04-01 Kevin Buettner <kevinb@redhat.com>
5271
5272 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
5273 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
5274
9a3d7dfd
AF
52752003-04-01 Adam Fedor <fedor@gnu.org>
5276
5277 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
5278 * language.h (struct language_defn): Add la_demangle.
5279 (language_demangle): Declare.
5280 * language.c (language_demangle): New function.
5281 (unk_lang_demangle): Likewise.
5282 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 5283 Add ukn_lang_demangle.
9a3d7dfd 5284 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 5285 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
5286 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
5287 (cplus_language_defn): Add cplus_demangle for la_demangle element.
5288 * jv-lang.c (java_demangle): New function
5289 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
5290 * objc-lang.c (objc_demangle): Add options argument
5291 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
5292 * maint.c (maintenance_demangle): Replace switch with
5293 call to language_demangle.
5294 * utils.c (fprintf_symbol_filtered): Likewise.
5295
5e074003
AC
52962003-04-01 Andrew Cagney <cagney@redhat.com>
5297
5298 * printcmd.c (print_frame_nameless_args): Delete #ifdef
5299 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
5300 PRINT_TYPELESS_INTEGER.
5301 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
5302 PUSH_RETURN_ADDRESS.
5303
270cb5d6
AC
53042003-04-01 Andrew Cagney <cagney@redhat.com>
5305
5306 * Makefile.in (d10v-tdep.o): Update dependencies.
5307 * d10v-tdep.c: Include "frame-base.h".
5308 (d10v_frame_unwind): Make constant.
5309 (d10v_frame_base_address): New function.
5310 (d10v_frame_base): New variable.
5311 (d10v_gdbarch_init): Set frame_base default.
5312 (struct d10v_unwind_cache): Add the field "prev_sp". Update
5313 comment for base.
5314 (d10v_frame_unwind_cache): Set and use "prev_sp".
5315 (d10v_frame_this_id): Use the previous frame's inner most stack
5316 address and this frame's func address for the frame ID. Use
5317 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 5318
6bfb3e36
AC
53192003-04-01 Andrew Cagney <cagney@redhat.com>
5320
5321 * frame.h (get_frame_locals_address, get_frame_args_address):
5322 Refer to the base address, instead of the address of the first
5323 local or parameter.
8ffd9b1b 5324
da62e633
AC
53252003-04-01 Andrew Cagney <cagney@redhat.com>
5326
5327 Add frame debug info addresses:
5328 * frame-base.c: New file.
5329 * frame-base.h: New file.
5330 * frame.h (struct frame_base): Add opaque declaration.
5331 (get_frame_base): Update comment.
5332 (get_frame_base_address): Declare.
5333 (get_frame_locals_address): Declare.
5334 (get_frame_args_address): Declare.
5335 (struct frame_info): Add "base" and "base_cache". Update
5336 comments on the unwinder.
5337 * frame.c: Include "frame-base.h".
5338 (get_frame_locals_address): New function.
5339 (get_frame_base_address): New function.
5340 (get_frame_args_address): New function.
5341 * findvar.c (read_var_value): Use get_frame_locals_address and
5342 get_frame_args_address.
5343 * stack.c (frame_info): Use get_frame_locals_address and
5344 get_frame_args_address.
5345 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
5346 moved to "frame-base.c".
5347 * printcmd.c (print_frame_nameless_args): Ditto.
5348 * symtab.h (address_class): Update comments.
5349 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
5350 get_frame_base_address.
5351 * dwarf2expr.c (execute_stack_op): Ditto.
5352 * Makefile.in (frame_base_h): Define.
5353 (frame.o): Update dependencies.
5354 (frame-base.o): Add dependencies.
5355 (SFILES): Add frame-base.c.
5356 (COMMON_OBS): Add frame-base.o.
5357
3d30e9c2
AC
53582003-04-01 Andrew Cagney <cagney@redhat.com>
5359
5360 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
5361 CALL_DUMMY_LENGTH): Ditto.
5362 * gdbarch.c: Re-generate.
5363 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
5364 (CALL_DUMMY_LENGTH): Delete macro.
5365 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
5366 * arm-tdep.c (arm_gdbarch_init): Ditto.
5367 * avr-tdep.c (avr_gdbarch_init): Ditto.
5368 * cris-tdep.c (cris_gdbarch_init): Ditto.
5369 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5370 * frv-tdep.c (frv_gdbarch_init): Ditto.
5371 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5372 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5373 * i386-tdep.c (i386_gdbarch_init): Ditto.
5374 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5375 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5376 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5377 * mips-tdep.c (mips_gdbarch_init): Ditto.
5378 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5379 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5380 * s390-tdep.c (s390_gdbarch_init): Ditto.
5381 * sh-tdep.c (sh_gdbarch_init): Ditto.
5382 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5383 * v850-tdep.c (v850_gdbarch_init): Ditto.
5384 * vax-tdep.c (vax_gdbarch_init): Ditto.
5385 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5386
ce0c7262
CV
53872003-04-01 Corinna Vinschen <vinschen@redhat.com>
5388
5389 * frame.c (get_prev_frame): Disable call to inside_entry_file().
5390
73dd234f
AC
53912003-04-01 Andrew Cagney <cagney@redhat.com>
5392
5393 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
5394 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5395 * gdbarch.h, gdbarch.c: Re-generate.
5396 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5397 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5398 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5399 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5400 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
5401 * infcmd.c (run_stack_dummy): Simplify assuming
5402 CALL_DUMMY_BREAKPOINT_OFFSET_P.
5403 * infrun.c (handle_inferior_event): Ditto.
5404 * alpha-tdep.c (alpha_gdbarch_init): Do not set
5405 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
5406 * arm-tdep.c (arm_gdbarch_init): Ditto.
5407 * avr-tdep.c (avr_gdbarch_init): Ditto.
5408 * cris-tdep.c (cris_gdbarch_init): Ditto.
5409 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5410 * frv-tdep.c (frv_gdbarch_init): Ditto.
5411 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5412 * i386-tdep.c (i386_gdbarch_init): Ditto.
5413 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5414 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5415 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5416 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5417 * mips-tdep.c (mips_gdbarch_init): Ditto.
5418 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5419 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5420 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5421 * s390-tdep.c (s390_gdbarch_init): Ditto.
5422 * sh-tdep.c (sh_gdbarch_init): Ditto.
5423 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5424 * v850-tdep.c (v850_gdbarch_init): Ditto.
5425 * vax-tdep.c (vax_gdbarch_init): Ditto.
5426 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5427
97606a13
DJ
54282003-04-01 Daniel Jacobowitz <drow@mvista.com>
5429
5430 * symfile.c (symfile_relocate_debug_section): Update call to
5431 bfd_simple_get_relocated_section_contents.
5432
e8ab51f7
AC
54332003-03-31 Andrew Cagney <cagney@redhat.com>
5434
5435 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
5436 * gdbarch.h, gdbarch.c: Regenerate.
5437 * inferior.h (FIX_CALL_DUMMY): Delete macro.
5438 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
5439 available.
5440 * frame.h (generic_fix_call_dummy): Delete declaration.
5441 * dummy-frame.h: Update comment.
5442 * dummy-frame.c (generic_fix_call_dummy): Delete function.
5443 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5444 fix_call_dummy.
5445 * sh-tdep.c (sh_gdbarch_init): Ditto.
5446 * s390-tdep.c (s390_gdbarch_init): Ditto.
5447 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5448 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5449 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5450 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5451 * i386-tdep.c (i386_gdbarch_init): Ditto.
5452 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5453 * frv-tdep.c (frv_gdbarch_init): Ditto.
5454 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5455 * cris-tdep.c (cris_gdbarch_init): Ditto.
5456 * avr-tdep.c (avr_gdbarch_init): Ditto.
5457 * arm-tdep.c (arm_gdbarch_init): Ditto.
5458
018d1b48
JB
54592003-03-31 J. Brobecker <brobecker@gnat.com>
5460
5461 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
5462 (INIT_FRAME_AP): Likewise.
5463 (EXTRA_FRAME_INFO): Likewise.
5464
e9a2674e
AC
54652003-03-31 Andrew Cagney <cagney@redhat.com>
5466
5467 * gdbarch.sh: Include "symfile.h".
5468 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
5469 * gdbarch.h, gdbarch.c: Re-generate.
5470 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
5471 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5472 call_dummy_address, the default is at entry_point_address.
5473 * v850-tdep.c (v850_gdbarch_init): Ditto.
5474 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5475 * sh-tdep.c (sh_gdbarch_init): Ditto.
5476 * s390-tdep.c (s390_gdbarch_init): Ditto.
5477 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5478 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5479 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5480 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5481 * i386-tdep.c (i386_gdbarch_init): Ditto.
5482 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5483 * frv-tdep.c (frv_gdbarch_init): Ditto.
5484 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5485 * cris-tdep.c (cris_gdbarch_init): Ditto.
5486 * arm-tdep.c (arm_gdbarch_init): Ditto.
5487
e8a8712a
AC
54882003-03-31 Andrew Cagney <cagney@redhat.com>
5489
5490 * gdbarch.sh (CALL_DUMMY_P): Delete.
5491 * gdbarch.h, gdbarch.c: Re-generate.
5492 * inferior.h (CALL_DUMMY_P): Delete macro.
5493 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5494 * vax-tdep.c (vax_gdbarch_init): Update.
5495 * v850-tdep.c (v850_gdbarch_init): Update.
5496 * sparc-tdep.c (sparc_gdbarch_init): Update.
5497 * sh-tdep.c (sh_gdbarch_init): Update.
5498 * s390-tdep.c (s390_gdbarch_init): Update.
5499 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5500 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5501 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5502 * mips-tdep.c (mips_gdbarch_init): Update.
5503 * mcore-tdep.c (mcore_gdbarch_init): Update.
5504 * m68k-tdep.c (m68k_gdbarch_init): Update.
5505 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5506 * ia64-tdep.c (ia64_gdbarch_init): Update.
5507 * i386-tdep.c (i386_gdbarch_init): Update.
5508 * h8300-tdep.c (h8300_gdbarch_init): Update.
5509 * frv-tdep.c (frv_gdbarch_init): Update.
5510 * d10v-tdep.c (d10v_gdbarch_init): Update.
5511 * cris-tdep.c (cris_gdbarch_init): Update.
5512 * breakpoint.c (deprecated_frame_in_dummy): Update.
5513 * avr-tdep.c (avr_gdbarch_init): Update.
5514 * alpha-tdep.c (alpha_gdbarch_init): Update.
5515 * arm-tdep.c (arm_gdbarch_init): Update.
5516 * dummy-frame.c (dummy_frame_this_id): Update comments.
5517 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
5518 * frame.c (legacy_get_prev_frame): Ditto.
5519 * valops.c (call_function_by_hand): Delete function.
5520 (hand_function_call): Rename to call_function_by_hand
5521
ed234cf8
AC
55222003-03-30 Andrew Cagney <cagney@redhat.com>
5523
5524 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 5525 * value.h (struct value): Update comment.
ed234cf8 5526
06c77151
AC
55272003-03-30 Andrew Cagney <cagney@redhat.com>
5528
6c2b5168
AC
5529 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
5530 D10V_FP_REGNUM.
5531 (d10v_gdbarch_init): Do not set fp_regnum.
5532
06c77151
AC
5533 * frame.c (get_frame_base): Force ID initialization.
5534 (get_prev_frame): Move computation of the frame ID from here ...
5535 (get_frame_id): ... to here.
5536 (legacy_get_prev_frame): Mark the frame ID as valid.
5537 * frame.h (struct frame_info): Add field "id_p".
5538
97a1a11c
MK
55392003-03-30 Mark Kettenis <kettenis@gnu.org>
5540
5541 * i386-tdep.c (i386_store_struct_return): Removed.
5542 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
5543
6c0e89ed
AC
55442003-03-30 Andrew Cagney <cagney@redhat.com>
5545
5546 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
5547 * gdbarch.h, gdbarch.c: Regenerate.
5548 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
5549 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5550 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5551 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5552 * i386-tdep.c (i386_gdbarch_init): Ditto.
5553 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5554 * cris-tdep.c (cris_gdbarch_init): Ditto.
5555 * vax-tdep.c (vax_gdbarch_init): Ditto.
5556 * s390-tdep.c (s390_gdbarch_init): Ditto.
5557 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5558 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5559 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5560 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
5561 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5562 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
5563 * sparc-tdep.c (sparc_gdbarch_init): Update.
5564 * sh-tdep.c (sh_gdbarch_init): Update.
5565 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5566 * mips-tdep.c (mips_gdbarch_init): Update.
5567 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5568 * ia64-tdep.c (ia64_gdbarch_init): Update.
5569 * frv-tdep.c (frv_gdbarch_init): Update.
5570 * avr-tdep.c (avr_gdbarch_init): Update.
5571 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
5572 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
5573 instead of when push_dummy_call is not available.
8ffd9b1b 5574
f7dd6af2
AC
55752003-03-30 Andrew Cagney <cagney@redhat.com>
5576
5577 * infttrace.c: Include "gdbthread.h".
5578 (parent_attach_all): Fix function signature.
5579 (call_ptrace): Update call.
5580 * Makefile.in (infttrace.o): Update dependencies.
5581
28f617b3
AC
55822003-03-30 Andrew Cagney <cagney@redhat.com>
5583
5584 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
5585 PUSH_RETURN_ADDRESS.
5586 * gdbarch.h, gdbarch.c: Regenerate.
5587 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5588 * x86-64-tdep.c (x86_64_init_abi): Update.
5589 * v850-tdep.c (v850_gdbarch_init): Update.
5590 * sparc-tdep.c (sparc_gdbarch_init): Update.
5591 * sh-tdep.c (sh_gdbarch_init): Update.
5592 * s390-tdep.c (s390_gdbarch_init): Update.
5593 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5594 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5595 * mips-tdep.c (mips_gdbarch_init): Update.
5596 * mcore-tdep.c (mcore_gdbarch_init): Update.
5597 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5598 * ia64-tdep.c (ia64_gdbarch_init): Update.
5599 * i386-tdep.c (i386_gdbarch_init): Update.
5600 * h8300-tdep.c (h8300_gdbarch_init): Update.
5601 * frv-tdep.c (frv_gdbarch_init): Update.
5602 * cris-tdep.c (cris_gdbarch_init): Update.
5603 * avr-tdep.c (avr_gdbarch_init): Update.
5604 * arm-tdep.c (arm_gdbarch_init): Update.
5605 * valops.c (hand_function_call): Update.
5606
4d628cd7
AC
56072003-03-29 Andrew Cagney <cagney@redhat.com>
5608
5609 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
5610 sizeof_call_dummy_words.
5611 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
5612 define.
5613 * gdbarch.h: Regenerate.
8ffd9b1b 5614
65e82032
AC
56152003-03-29 Andrew Cagney <cagney@redhat.com>
5616
5617 * infttrace.h: New file.
5618 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
5619 (hpread_get_textlow): Detect an uninitialized dn_bufp.
5620 (hpread_read_doc_function_type): Detect an initialized type1.
5621 (hpread_quick_traverse): Initialize mod_name_string.
5622 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
5623 (som_solib_get_solib_by_pc): Declare.
5624 (so_lib_thread_start_addr): Declare.
5625 (no_shared_libraries): Declare.
5626 * somread.c (init_import_symbols): Make static. Add forward
5627 declaration.
5628 * config/pa/nm-hppah.h: Include "infttrace.h" for
5629 parent_attach_all.
5630 (hppa_insert_hw_watchpoint): Declare.
5631 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
5632 * hppah-nat.c: Include "gdb_string.h".
5633 (parent_attach_all): Delete extern declaration, moved to
5634 "infttrace.h".
5635 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
5636 int.
5637 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
5638 * Makefile.in (infttrace_h): Define.
5639 (hpread.o): Update dependencies.
5640 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
5641 * hppa-hpux-tdep.c: Include "gdb_string.h".
5642 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
5643 * infrun.c (handle_inferior_event): Always initialize
5644 stepped_after_stopped_by_watchpoint. Add default and remove
5645 fallthrough in switch statement.
5646 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
5647 parameter to int.
5648 (hppa_remove_hw_watchpoint): Ditto.
5649
2c3bbe77
AC
56502003-03-29 Andrew Cagney <cagney@redhat.com>
5651
5652 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
5653 offset.
5654
2dd604e7
RE
56552003-03-29 Richard Earnshaw <rearnsha@arm.com>
5656
5657 * arm-tdep.c (arm_push_arguments): Delete.
5658 (struct stack_item): New type.
5659 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
5660 (arm_store_struct_return): Delte.
5661 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
5662 arm_push_arguments or arm_store_struct_return.
5663
e8933a55
AC
56642003-03-28 Andrew Cagney <cagney@redhat.com>
5665
5666 * Makefile.in (d10v-tdep.o): Update dependencies.
5667 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
5668 * d10v-tdep.c: Include "remote.h".
5669 (target_resume_hook): Delete extern declaration.
5670 (target_wait_loop_hook): Ditto.
5671 (tdisassemble_command): Eliminate assignment in "if" conditional.
5672 (d10v_ts2_register_sim_regno): Eliminate call to
5673 legacy_register_sim_regno.
5674 (d10v_ts3_register_sim_regno): Ditto.
5675
6949171e
JJ
56762003-03-28 Jeff Johnston <jjohnstn@redhat.com>
5677
5678 * thread.c: Reindented.
5679 * lin-lwp.c: Ditto.
5680 * linux-proc.c: Ditto.
5681
98c7071f
BR
56822003-03-28 Bob Rossi <bob_rossi@cox.net>
5683
fbe586ae 5684 * MAINTAINERS (write after approval): Add myself.
98c7071f 5685
5edc9ca6
TR
56862003-03-27 Theodore A. Roth <troth@openavr.org>
5687
5688 * objc-exp.y: Add missing semi-colons.
5689
378bfd1b
AC
56902003-03-27 Andrew Cagney <cagney@redhat.com>
5691
5692 * regcache.c (write_sp): Delete function and references.
5693 * inferior.h (write_sp): Delete declaration.
5694 * valops.c (hand_function_call): Replace write_sp with
5695 TARGET_WRITE_SP.
5696 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
5697 (sparc_pop_frame): Ditto.
8ffd9b1b 5698
56056df7
AC
56992003-03-27 Andrew Cagney <cagney@redhat.com>
5700
5701 * NEWS: Mention removal of support for hppa*-*-bsd* and
5702 hppa*-*-osf* natives, and hppa*-*-pro* target.
5703 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
5704 * config/pa/xm-pa.h: Obsolete file.
5705 * config/pa/xm-hppab.h: Obsolete file.
5706 * config/pa/nm-hppab.h: Obsolete file.
5707 * config/pa/tm-hppab.h: Obsolete file.
5708 * config/pa/tm-hppao.h: Obsolete file.
5709 * config/pa/nm-hppao.h: Obsolete file.
5710 * config/pa/tm-pro.h: Obsolete file.
5711 * config/pa/hppaosf.mt: Obsolete file.
5712 * config/pa/hppaosf.mh: Obsolete file.
5713 * config/pa/hppapro.mt: Obsolete file.
5714 * config/pa/hppabsd.mt: Obsolete file.
5715 * config/pa/hppabsd.mh: Obsolete file.
5716 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
5717 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
5718 hppa*-*-osf*.
5719
5873a88d
AC
57202003-03-27 Andrew Cagney <cagney@redhat.com>
5721
5722 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
5723 push_arguments. Don't set push_return_address or write_sp.
5724 (d10v_push_dummy_call): Replace d10v_push_arguments.
5725 (d10v_push_return_address, d10v_write_sp): Delete function,
5726 handled by push_dummy_call.
5727
b81774d8
AC
57282003-03-26 Andrew Cagney <cagney@redhat.com>
5729
5730 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
5731 (push_dummy_call): New pure multi-arch replacement with gdbarch,
5732 regcache and dummy_addr parameters.
5733 * gdbarch.h, gdbarch.c: Re-generate.
5734 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
5735 available; assume it will handle stack alignment and return
5736 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
5737 legacy_push_arguments.
5738 (legacy_push_arguments): Rename default_push_arguments.
5739 * value.h (legacy_push_arguments): Rename default_push_arguments.
5740 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
5741 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
5742 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
5743 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
5744 * config/i386/tm-symmetry.h: Update.
5745 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5746 * x86-64-tdep.c (x86_64_init_abi): Update.
5747 * v850-tdep.c (v850_gdbarch_init): Update.
5748 * sparc-tdep.c (sparc_gdbarch_init): Update.
5749 * sh-tdep.c (sh_gdbarch_init): Update.
5750 * s390-tdep.c (s390_gdbarch_init): Update.
5751 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5752 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5753 * mips-tdep.c (mips_gdbarch_init): Update.
5754 * mcore-tdep.c (mcore_gdbarch_init): Update.
5755 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5756 * ia64-tdep.c (ia64_gdbarch_init): Update.
5757 * i386-tdep.c (i386_gdbarch_init): Update.
5758 * hppa-tdep.c (hppa_gdbarch_init): Update.
5759 * h8300-tdep.c (h8300_gdbarch_init): Update.
5760 * frv-tdep.c (frv_gdbarch_init): Update.
5761 * d10v-tdep.c (d10v_gdbarch_init): Update.
5762 * cris-tdep.c (cris_gdbarch_init): Update.
5763 * avr-tdep.c (avr_gdbarch_init): Update.
5764 * arm-tdep.c (arm_gdbarch_init): Update.
5765 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5766 * alpha-tdep.c (alpha_gdbarch_init): Update.
5767
f541410f
DJ
57682003-03-26 Daniel Jacobowitz <drow@mvista.com>
5769
5770 * signals/signals.c (do_target_signal_to_host): Correct realtime
5771 signal range test.
5772
69f567ae
DJ
57732003-03-26 Daniel Jacobowitz <drow@mvista.com>
5774
5775 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
5776 (struct sal_chain, map_catch_names): Remove.
5777 (catch_exception_command_1): Don't call
5778 handle_gnu_4_16_catch_command.
5779
d5d14a5a
DJ
57802003-03-26 Daniel Jacobowitz <drow@mvista.com>
5781
5782 From Mark Dettinger <dettinge@de.ibm.com>:
5783 * dwarf2cfi.c (read_2u): Increment pointer by two.
5784
bdd73e22
DJ
57852003-03-26 Daniel Jacobowitz <drow@mvista.com>
5786
5787 * signals/signals.c: Fix typos in last change.
5788
960cb555
DJ
57892003-03-26 Daniel Jacobowitz <drow@mvista.com>
5790
5791 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
5792 not already defined. Use __SIGRTMIN if available.
5793 (target_signal_from_host): Remove SIGRTMIN block.
5794 (do_target_signal_to_host): Remove SIGRTMIN block; check that
5795 the signal is within the realtime range.
5796
f636b87d
AF
57972003-03-25 Adam Fedor <fedor@gnu.org>
5798
5799 * Makefile.in (infrun.o): Add $(language_h)
5800 * infrun.c (handle_inferior_event): Use skip_language_trampoline
5801 for language specific trampolines.
5802 * language.h (struct language_defn): Add skip_trampoline.
5803 (skip_language_trampoline): Declare.
5804 * language.c (unk_lang_trampoline, skip_language_trampoline):
5805 New functions.
5806 (unknown_language_defn, auto_language_defn, local_language_defn):
5807 Add ukn_lang_trampoline.
5808 * ada-lang.c (ada_language_defn): Add NULL for language
5809 specific skip_trampoline.
5810 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
5811 scm-lang.c: Likewise.
5812 * objc-lang.c (objc_skip_trampoline): New function.
5813 (objc_language_defn): Add objc_skip_trampoline.
5814
28f617b3 58152003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
5816
5817 * frame.c (get_prev_frame): Delay validating a frame's ID -
5818 non-NULL, didn't go backwards - until an attempt to unwind it to
5819 the previous frame.
5820
f933a9c5
AC
58212003-03-25 Andrew Cagney <cagney@redhat.com>
5822
5823 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
5824 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
5825 * gdbarch.h, gdbarch.c: Re-generate.
5826 * config/sparc/tm-sparc.h
5827 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
5828 * sparc-tdep.c (sparc_gdbarch_init): Set
5829 deprecated_extra_stack_alignment_needed.
5830 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
5831 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
5832 extra_stack_alignment_needed.
5833 * v850-tdep.c (v850_gdbarch_init): Ditto.
5834 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5835 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5836 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5837 * cris-tdep.c (cris_gdbarch_init): Ditto.
5838 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5839 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 5840
4183d812
AC
58412003-03-25 Andrew Cagney <cagney@redhat.com>
5842
5843 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
5844 STORE_STRUCT_RETURN.
5845 * gdbarch.h, gdbarch.c: Regenerate.
5846 * d10v-tdep.c (d10v_store_struct_return): Delete function.
5847 (d10v_push_arguments): Set the struct return register.
5848 (d10v_gdbarch_init): Update.
5849 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5850 * x86-64-tdep.c (x86_64_init_abi): Update.
5851 * vax-tdep.c (vax_gdbarch_init): Update.
5852 * v850-tdep.c (v850_gdbarch_init): Update.
5853 * sparc-tdep.c (sparc_gdbarch_init): Update.
5854 * sh-tdep.c (sh_gdbarch_init): Update.
5855 * s390-tdep.c (s390_gdbarch_init): Update.
5856 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5857 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5858 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5859 * mips-tdep.c (mips_gdbarch_init): Update.
5860 * mcore-tdep.c (mcore_gdbarch_init): Update.
5861 * m68k-tdep.c (m68k_gdbarch_init): Update.
5862 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5863 * ia64-tdep.c (ia64_gdbarch_init): Update.
5864 * i386-tdep.c (i386_gdbarch_init): Update.
5865 * hppa-tdep.c (hppa_gdbarch_init): Update.
5866 * h8300-tdep.c (h8300_gdbarch_init): Update.
5867 * frv-tdep.c (frv_gdbarch_init): Update.
5868 * cris-tdep.c (cris_gdbarch_init): Update.
5869 * avr-tdep.c (avr_gdbarch_init): Update.
5870 * arm-tdep.c (arm_gdbarch_init): Update.
5871 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 5872
1bf6d5cc
AC
58732003-03-25 Andrew Cagney <cagney@redhat.com>
5874
5875 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
5876 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
5877 CALL_DUMMY_STACK_ADJUST with a predicate variable.
5878 * gdbarch.h, gdbarch.c: Regenerate.
5879 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5880 call_dummy_stack_adjust_p.
5881 * vax-tdep.c (vax_gdbarch_init): Ditto.
5882 * v850-tdep.c (v850_gdbarch_init): Ditto.
5883 * sh-tdep.c (sh_gdbarch_init): Ditto.
5884 * s390-tdep.c (s390_gdbarch_init): Ditto.
5885 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5886 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5887 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5888 * mips-tdep.c (mips_gdbarch_init): Ditto.
5889 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5890 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5891 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5892 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5893 * i386-tdep.c (i386_gdbarch_init): Ditto.
5894 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5895 * frv-tdep.c (frv_gdbarch_init): Ditto.
5896 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5897 * cris-tdep.c (cris_gdbarch_init): Ditto.
5898 * avr-tdep.c (avr_gdbarch_init): Ditto.
5899 * arm-tdep.c (arm_gdbarch_init): Ditto.
5900 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5901 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
5902 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
5903 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
5904 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
5905 call_dummy_stack_adjust_p.
5906 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
5907 (CALL_DUMMY_STACK_ADJUST): Delete macro.
5908 * sparc-tdep.c (sparc32_push_arguments): Update.
5909 * valops.c (hand_function_call): Update.
5910
71c08af0
CV
59112003-03-25 Corinna Vinschen <vinschen@redhat.com>
5912
5913 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
5914 set_gdbarch_char_signed.
5915
30757f90
RE
59162003-03-25 Richard Earnshaw <rearnsha@arm.com>
5917
5918 PR cli/548
5919 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
5920
03d48a7d
RE
59212003-03-25 Richard Earnshaw <rearnsha@arm.com>
5922
5923 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
5924 (_initialize_arm_tdep): Don't set tm_print_insn.
5925
2cf6873c
AF
59262003-03-24 Adam Fedor <fedor@gnu.org>
5927
5928 * Makefile.in (YYOBJ): Add objc-exp.tab.o
5929 * objc-lang.h: Add multiple inclusion protection.
5930 (start_msglist, add_msglist, end_msglist): Additional declarations.
5931
17c0759e
RE
59322003-03-24 Richard Earnshaw <rearnsha@arm.com>
5933
5934 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
5935 value was renamed to ARM_FLOAT_SOFT_FPA.
5936
618ce49f
AC
59372003-03-23 Andrew Cagney <cagney@redhat.com>
5938
5939 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
5940 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
5941 * gdbarch.h, gdbarch.c: Regenerate.
5942 * valops.c (hand_function_call): Update.
5943 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
5944 * frame.c (legacy_saved_regs_this_id): Update.
5945 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
5946 * dummy-frame.h: Update.
5947 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
5948 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
5949 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
5950 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
5951 * config/m68k/tm-sun3.h: Update.
5952 * blockframe.c (inside_main_func, frame_chain_valid): Update.
5953 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5954 * x86-64-tdep.c (x86_64_init_abi): Update.
5955 * vax-tdep.c (vax_gdbarch_init): Update.
5956 * v850-tdep.c (v850_gdbarch_init): Update.
5957 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
5958 * sh-tdep.c (sh_gdbarch_init): Update.
5959 * s390-tdep.c (s390_gdbarch_init): Update.
5960 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
5961 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
5962 (frame_get_saved_regs): Update.
5963 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
5964 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5965 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5966 * mips-tdep.c (mips_gdbarch_init): Update.
5967 * mcore-tdep.c (mcore_gdbarch_init): Update.
5968 * m68k-tdep.c (m68k_gdbarch_init): Update.
5969 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5970 * ia64-tdep.c (ia64_gdbarch_init): Update.
5971 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
5972 * i386-interix-tdep.c (i386_interix_init_abi): Update.
5973 (i386_interix_back_one_frame): Update.
5974 * hppa-tdep.c (hppa_gdbarch_init): Update.
5975 (hppa_init_extra_frame_info): Update.
5976 * h8300-tdep.c (h8300_gdbarch_init): Update.
5977 * frv-tdep.c (frv_gdbarch_init): Update.
5978 * cris-tdep.c (cris_gdbarch_init): Update.
5979 * avr-tdep.c (avr_gdbarch_init): Update.
5980 * arm-tdep.c (arm_gdbarch_init): Update.
5981 * alpha-tdep.c (alpha_gdbarch_init): Update.
5982
fd50bc42
RE
59832003-03-22 Richard Earnshaw <rearnsha@arm.com>
5984
5985 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
5986 (arm_get_fp_model): Declare.
5987 * arm-tdep.c (fp_model_strings): New string array.
5988 (arm_fp_model, current_fp_model): New variables.
5989 (arm_get_fp_model): New function.
5990 (arm_set_fp): New function.
5991 (set_fp_model_sfunc): New function.
5992 (show_fp_model): New function.
5993 (_initialize_arm_tdep): Add new command to set/show the FPU.
5994 (arm_extract_return_value): Use arm_get_fp_model.
5995 (arm_store_return_value): Likewise.
5996 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
5997 to initialize the floating-point data types.
5998 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
5999 model is FPA.
6000
26304000
RE
60012003-03-22 Richard Earnshaw <rearnsha@arm.com>
6002
6003 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
6004 the current setting of each value.
6005 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 6006 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
6007 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
6008 commands and add new version as subcommands of "set/show arm".
6009
afd7eef0
RE
60102003-03-22 Richard Earnshaw <rearnsha@arm.com>
6011
6012 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
6013 (set_arm_command, show_arm_command): New functions.
6014 (_initialize_arm_tdep): Add them.
6015 (num_disassembly_options): Renamed from num_flavor_options.
6016 (valid_disassembly_styles): Renamed from valid_flavors.
6017 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 6018 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
6019 set_disassembly_flavor_sfunc.
6020 (set_disassembly_style): Renamed from set_disassembly_flavor.
6021 (arm_othernames): Updated.
6022 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
6023 command. Add "set/show arm disassembly" commands. Deprecate
6024 "othernames" command.
6025
299a7944
RE
60262003-03-22 Richard Earnshaw <rearnsha@arm.com>
6027
6028 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
6029 (arm-tdep.o): Depend on elf_arm_h.
6030
c1dac9e6
RE
60312003-03-22 Richard Earnshaw <rearnsha@arm.com>
6032
6033 * Makefile.in (coff_internal_h): Define.
6034 (arm-tdep.o): Update dependencies.
6035
2702d96c
RE
60362003-03-22 Richard Earnshaw <rearnsha@arm.com>
6037
6038 * arm-tdep.c (prologue_cache): Delete.
6039 (check_prologue_cache, save_prologue_cache): Delete.
6040 (arm_scan_prologue): Don't check or update the prologue_cache.
6041 (arm_gdb_arch_init): Don't initialize it.
6042 (_initialize_arm_tdep): Likewise.
6043
27d5d74b
SC
60442003-03-21 Stephane Carrez <stcarrez@nerim.fr>
6045
6046 * MAINTAINERS (tui): Maintainer of tui code.
6047
1762d96d
CV
60482003-03-21 Corinna Vinschen <vinschen@redhat.com>
6049
6050 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
6051 (i386-cygwin-tdep.o): Add dependencies.
6052 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
6053 * i386-cygwin-tdep.c: New file.
6054 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
6055 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
6056
4c2e2391
AC
60572003-03-20 Andrew Cagney <cagney@redhat.com>
6058
f20d38b7
AC
6059 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
6060 (handle_inferior_event): Remove code calling
6061 DYNAMIC_TRAMPOLINE_NEXTPC.
6062
0022b738
AC
6063 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
6064 already has a full path.
6065
864dbc90
AC
6066 * main.c (gdb_main): Return 1.
6067 (captured_main): Call error to report an invalid interpreter.
6068
4c2e2391
AC
6069 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6070 * alpha-osf1-tdep.c: Include "gdb_string.h".
6071
5ef7553b
JB
60722003-03-19 J. Brobecker <brobecker@gnat.com>
6073
6074 Continuing work to convert the hppa targets to multiarch partial.
6075
6076 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
6077 method, now that hppa_push_dummy_frame has a conformant prototype.
6078 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
6079 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
6080 for the switch to multiarch partial.
6081
7bde8967
KB
60822003-03-19 Kevin Buettner <kevinb@redhat.com>
6083
6084 * mdebugread.c (parse_symbol): For stEnd, we're done counting
6085 when iss is issNull.
6086
b006a9e9
KB
60872003-03-18 Kevin Buettner <kevinb@redhat.com>
6088
6089 * mips-tdep.c (mips_register_name): Fix fencepost error involving
6090 NUM_REGS bounds check.
6091
5e2e9765
KB
60922003-03-18 Kevin Buettner <kevinb@redhat.com>
6093
6094 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
6095 * mips-tdep.c (gdb_assert.h): Include.
6096 (mips_generic_reg_names, mips_processor_reg_names): Make static.
6097 (mips_register_name): Handle integer registers explicitly. Add
6098 bounds checking.
6099 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
6100 (mips_lsi33k_reg_names): Don't list integer registers; they're
6101 handled by mips_register_name() now.
6102 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
6103 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
6104 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
6105 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
6106 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
6107
a2867626
AC
61082003-03-18 Andrew Cagney <cagney@redhat.com>
6109
6110 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
6111 a void pointer.
6112 * gdbtypes.h (print_scalar_formatted): Update declaration.
6113 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
6114
06600e06
JB
61152003-03-18 J. Brobecker <brobecker@gnat.com>
6116
6117 * infrun.c (observer.h): Add #include.
6118 (normal_stop): Add call to observer_notify_normal_stop.
6119 * Makefile.in (infrun.o): Add dependency on observer.h.
6120
7daf4f5b
JB
61212003-03-18 J. Brobecker <brobecker@gnat.com>
6122
6123 Continuing work to convert the hppa targets to multiarch partial.
6124 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
6125 parameter. Reformat comment.
6126 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
6127 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
6128 to match new profile.
6129
3371ccc0
JB
61302003-03-18 J. Brobecker <brobecker@gnat.com>
6131
6132 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
6133 appear to be working in any case.
6134
4fbe891e
JB
61352003-03-18 J. Brobecker <brobecker@gnat.com>
6136
6137 * observer.c (observer_test_first_observer): New static variable.
6138 (observer_test_second_observer): Likewise.
6139 (observer_test_third_observer): Likewise.
6140 (observer_test_first_notification_function): New static function.
6141 (observer_test_second_notification_function): Likewise.
6142 (observer_test_third_notification_function): Likewise.
6143
a7ff40e7
JB
61442003-03-17 J. Brobecker <brobecker@gnat.com>
6145
6146 * hppa-tdep.c (gdb_assert.h): Add missing #include.
6147 * somsolib.c (gdb_assert.h): Likewise.
6148 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
6149 (somsolib.o): Likewise.
6150
26ca4152
AC
61512003-03-17 Andrew Cagney <cagney@redhat.com>
6152
6153 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
6154 BFD. Simplify setting of di.endian.
6155
0a613259
AC
61562003-03-17 Andrew Cagney <cagney@redhat.com>
6157
6158 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
6159 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
6160
6161 From Elena Zannoni <ezannoni@redhat.com>
6162 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
6163 vector and floating-point parameters.
6164 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
6165 convention.
6166 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
6167
1132738f
FN
61682003-03-17 Fernando Nasser <fnasser@redhat.com>
6169
6170 * MAINTAINERS: Remove my name from several maintainership roles.
6171
6dc42492
AC
61722003-03-17 Andrew Cagney <cagney@redhat.com>
6173
6174 Fix frame off-by-one bug.
6175 * frame-unwind.h (frame_this_id_ftype): Replace
6176 frame_unwind_id_ftype.
6177 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
6178 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
6179 with "prev_register".
6180 * frame-unwind.c (frame_unwind_find_by_pc): Return
6181 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
6182 comment.
6183 * dummy-frame.c (cached_find_dummy_frame): Delete function.
6184 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
6185 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
6186 (dummy_frame_unwind): Update.
6187 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6188 sentinel_frame_register_unwind.
6189 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
6190 (sentinel_frame_unwinder): Update.
6191 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
6192 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
6193 * frame.c (create_sentinel_frame): Update. Initialize
6194 "prologue_cache" instead of "unwind_cache".
6195 (frame_register_unwind): Call this frame's prev_register with the
6196 next frame and this frame's prologue cache.
6197 (get_prev_frame): Simplify. Always call prev frame's this_id with
6198 this frame and prev frame's prologue cache. Document that this
6199 call is shifted one to the left when compared to the
6200 frame_register_unwind call.
6201 (legacy_saved_regs_prev_register): Replace
6202 frame_saved_regs_register_unwind.
6203 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
6204 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
6205 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
6206 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
6207 (d10v_frame_unwind): Update.
6208 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
6209 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
6210 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
6211 "saved_regs" with "this_saved_regs".
6212
efd710d6
AC
62132003-03-16 Andrew Cagney <cagney@redhat.com>
6214
6215 * frame.c (frame_pop): Don't call target_store_registers. Fix
6216 problem reported by Mark Kettenis.
6217
4e259f09
MK
62182003-03-16 Mark Kettenis <kettenis@gnu.org>
6219
6220 * i386-tdep.c (i386_register_type): Renamed from
6221 i386_register_virtual_type. Adjust function signature.
6222 (i386_gdbarch_init): Set register_type instead of
6223 deprecated_max_register_raw_size,
6224 deprecated_max_register_virtual_size and register_virtual_type.
6225
055bb976
AC
62262003-03-14 Andrew Cagney <cagney@redhat.com>
6227
6228 * frame.c (get_prev_frame): When a legacy frame, always call
6229 legacy_get_prev_frame. Simplify unwind code using assumption that
6230 the unwinder is new.
6231 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
6232 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
6233 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
6234
ac2adee5
AC
62352003-03-14 Andrew Cagney <cagney@redhat.com>
6236
6237 * frame.c (get_saved_register): Delete function.
6238 * frame.h (get_saved_register): Delete declaration.
6239 * xstormy16-tdep.c: Update comment.
6240 * regcache.h: Update comments.
6241 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
6242 get_saved_register and extract_address, use
6243 frame_read_unsigned_register.
6244 (sparc_frame_saved_pc): Ditto.
6245 (sparc_get_saved_register): Instead of get_saved_register, use
6246 frame_register.
6247 (sparc_pop_frame): Ditto.
6248 * findvar.c: Update comments.
6249 (value_of_register): Call frame_register instead of
6250 get_saved_register.
6251 (value_from_register): Ditto.
6252 * config/sparc/tm-sparc.h: Update comment.
6253 * breakpoint.c: Update comment.
6254
129c1cd6
AC
62552003-03-14 Andrew Cagney <cagney@redhat.com>
6256
6257 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
6258 GET_SAVED_REGISTER.
6259 * gdbarch.h, gdbarch.c: Re-generate.
6260 * frame.h: Update comments.
6261 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6262 * x86-64-tdep.c (x86_64_init_abi): Update.
6263 * sparc-tdep.c (sparc_gdbarch_init): Update.
6264 * sh-tdep.c (sh_gdbarch_init): Update.
6265 * mips-tdep.c (mips_gdbarch_init): Update.
6266 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6267 * cris-tdep.c (cris_gdbarch_init): Update.
6268 * ia64-tdep.c (ia64_gdbarch_init): Update.
6269 * frame.c (frame_register): Update.
6270 (get_saved_register): Update.
6271 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 6272
749b82f6
AC
62732003-03-13 Andrew Cagney <cagney@redhat.com>
6274
6275 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
6276 * gdbarch.h, gdbarch.c: Regenerate.
6277 * valops.c (hand_function_call): Update comment.
6278 * stack.c (return_command): Update comment.
6279 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
6280 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
6281 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6282 * x86-64-tdep.c (x86_64_init_abi): Update.
6283 * vax-tdep.c (vax_gdbarch_init): Update.
6284 * v850-tdep.c (v850_gdbarch_init): Update.
6285 * sparc-tdep.c (sparc_gdbarch_init): Update.
6286 * sh-tdep.c (sh_gdbarch_init): Update.
6287 * s390-tdep.c (s390_gdbarch_init): Update.
6288 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6289 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6290 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6291 * mips-tdep.c (mips_gdbarch_init): Update.
6292 * mcore-tdep.c (mcore_gdbarch_init): Update.
6293 * m68k-tdep.c (m68k_gdbarch_init): Update.
6294 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6295 * ia64-tdep.c (ia64_gdbarch_init): Update.
6296 * i386-tdep.c (i386_gdbarch_init): Update.
6297 * hppa-tdep.c (hppa_gdbarch_init): Update.
6298 * h8300-tdep.c (h8300_gdbarch_init): Update.
6299 * frv-tdep.c (frv_gdbarch_init): Update.
6300 * cris-tdep.c (cris_gdbarch_init): Update.
6301 * avr-tdep.c (avr_gdbarch_init): Update.
6302 * arm-tdep.c (arm_gdbarch_init): Update.
6303 * alpha-tdep.c (alpha_gdbarch_init): Update.
6304
1594fa56
AC
63052003-03-13 Andrew Cagney <cagney@redhat.com>
6306
6307 * frame.c (legacy_frame_p): New function.
6308 (get_prev_frame): Use legacy_frame_p.
6309 * frame.h (legacy_frame_p): Declare.
6310
7717fda3
V
63112003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
6312
fbe586ae 6313 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
6314 listing corrected.
6315
0c67cbe9
V
63162003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
6317
fbe586ae 6318 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 6319
03febf99
AC
63202003-03-12 Andrew Cagney <cagney@redhat.com>
6321
6322 * frame.c (get_prev_frame): Rename the frame parameter to
6323 "this_frame".
6324 (get_next_frame, legacy_get_prev_frame): Ditto.
6325
0a1e1ca1
AC
63262003-03-12 Andrew Cagney <cagney@redhat.com>
6327
6328 * frame.c (get_current_frame): Check target_has_registers before
6329 checking target_has_stack.
6330 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
6331 instead of deprecated_selected_frame.
6332 * findvar.c (value_of_register): Pass "frame", not
6333 deprecated_selected_frame, to value_of_builtin_reg.
6334
a66a9c23
AC
63352003-03-12 Andrew Cagney <cagney@redhat.com>
6336
6337 * regcache.c (regcache_cooked_write_signed): New function.
6338 (regcache_cooked_write_unsigned): New function.
6339 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
6340 (regcache_cooked_read_signed): Fix regnum in range assertion.
6341 * regcache.h (regcache_cooked_write_signed): Declare.
6342 (regcache_cooked_write_unsigned): Declare.
6343
8bedc050
AC
63442003-03-12 Andrew Cagney <cagney@redhat.com>
6345
6346 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
6347 * gdbarch.h, gdbarch.c: Re-generate.
6348 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6349 * x86-64-tdep.h: Update.
6350 * x86-64-tdep.c (x86_64_init_abi): Update.
6351 * v850-tdep.c (v850_gdbarch_init): Update.
6352 * sparc-tdep.c (sparc_gdbarch_init): Update.
6353 * sh-tdep.c (sh_gdbarch_init): Update.
6354 * s390-tdep.c (s390_gdbarch_init): Update.
6355 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6356 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6357 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6358 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6359 * mips-tdep.c (mips_gdbarch_init): Update.
6360 * mcore-tdep.c (mcore_gdbarch_init): Update.
6361 * m68k-tdep.c (m68k_gdbarch_init): Update.
6362 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6363 * ia64-tdep.c (ia64_gdbarch_init): Update.
6364 * i386-tdep.c (i386_gdbarch_init): Update.
6365 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6366 * hppa-tdep.c (hppa_gdbarch_init): Update.
6367 * h8300-tdep.c (h8300_gdbarch_init): Update.
6368 * frv-tdep.c (frv_gdbarch_init): Update.
6369 * cris-tdep.c (cris_gdbarch_init): Update.
6370 * avr-tdep.c (avr_gdbarch_init): Update.
6371 * arm-tdep.c (arm_gdbarch_init): Update.
6372 * alpha-tdep.c (alpha_gdbarch_init): Update.
6373 * sh-tdep.c (sh_init_extra_frame_info): Update.
6374 (sh64_init_extra_frame_info): Update.
6375 * ns32knbsd-nat.c (frame_num_args): Update.
6376 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
6377 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
6378 (xstormy16_frame_chain_valid): Update.
6379 * vax-tdep.c (vax_saved_pc_after_call): Update.
6380 * v850-tdep.c (v850_frame_chain): Update.
6381 (v850_pop_frame): Update.
6382 (v850_init_extra_frame_info): Update.
6383 * sparc-tdep.c (setup_arbitrary_frame): Update.
6384 * ns32k-tdep.c (umax_frame_num_args): Update.
6385 * s390-tdep.c (s390_pop_frame_regular): Update.
6386 * mn10300-tdep.c (mn10300_frame_chain): Update.
6387 (mn10300_pop_frame_regular): Update.
6388 (mn10300_init_extra_frame_info): Update.
6389 * mips-tdep.c (mips_init_frame_pc_first): Update.
6390 (mips_frame_chain): Update.
6391 (mips_pop_frame): Update.
6392 * mcore-tdep.c (mcore_frame_chain): Update.
6393 (mcore_pop_frame): Update.
6394 (mcore_init_extra_frame_info): Update.
6395 * arch-utils.c (init_frame_pc_default): Update.
6396 * m68k-tdep.c (isi_frame_num_args): Update.
6397 (delta68_frame_num_args): Update.
6398 (news_frame_num_args): Update.
6399 * ia64-tdep.c (ia64_pop_frame_regular): Update.
6400 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6401 (alpha_frame_chain): Update.
6402 (alpha_pop_frame): Update.
6403 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
6404 (hppa_init_extra_frame_info): Update.
6405 (hppa_frame_chain): Update.
6406 (hppa_frame_chain_valid): Update.
6407 * cris-tdep.c (cris_init_extra_frame_info): Update.
6408 * avr-tdep.c (avr_init_extra_frame_info): Update.
6409 * arm-tdep.c (arm_frame_chain_valid): Update.
6410 (arm_init_extra_frame_info): Update.
6411 (arm_pop_frame): Update.
6412 * frame.c (frame_pc_unwind): Update.
6413 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
6414 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6415 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6416 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
6417 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
6418 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 6419
7a25a7c1
AC
64202003-03-12 Andrew Cagney <cagney@redhat.com>
6421
6422 Eliminate the need for POP_FRAME.
6423 * frame.c (do_frame_unwind_register): New function.
6424 (frame_pop): When no POP_FRAME, pop the frame using register
6425 unwind and a scratch regcache.
6426 (frame_saved_regs_pop): Delete function.
6427 (trad_frame_unwinder): Update.
6428 * d10v-tdep.c (d10v_frame_pop): Delete function.
6429 (d10v_frame_unwind): Update.
6430 * sentinel-frame.c (sentinel_frame_pop): Delete function.
6431 (sentinel_frame_unwinder): Update.
6432 * dummy-frame.c (dummy_frame_pop): Delete function.
6433 (dummy_frame_unwind): Update.
6434 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
6435 (struct frame_unwind): Update.
6436
2f38ef89
KB
64372003-03-11 Kevin Buettner <kevinb@redhat.com>
6438
6439 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
6440 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
6441 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
6442 Do range checks on register number obtained from debugging info.
6443 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
6444 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
6445 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
6446 mapping function.
6447 (do_fp_register_row): Fix typo which caused double type to be
6448 used when attempting to unpack a float.
6449
552f4abf
JB
64502003-03-11 J. Brobecker <brobecker@gnat.com>
6451
6452 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
6453
e0d2ae16
AC
64542003-03-11 Andrew Cagney <cagney@redhat.com>
6455
6456 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
6457 frame. Problem found by Corinna Vinschen.
6458
ddbfdd06
PM
64592003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
6460
6461 * doublest.c (floatformat_from_length): Accept also
6462 the real size of 'long double' type.
6463
088b2ddc 64642003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 6465
088b2ddc 6466 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
6467 * breakpoint.c (bpstat_copy): Copy the command lines as well
6468 as the old value, to match what is freed in bpstat_clear.
6469
f56f77c1
DC
64702003-03-10 David Carlton <carlton@math.stanford.edu>
6471
6472 * minsyms.c (add_minsym_to_hash_table): Replace
6473 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6474 (compare_minimal_symbols, compact_minimal_symbols)
6475 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
6476 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
6477 of DEPRECATED_SYMBOL_MATCHES_NAME.
6478 (lookup_minimal_symbol_solib_trampoline): Ditto.
6479
5602984a
AC
64802003-03-10 Andrew Cagney <cagney@redhat.com>
6481
6482 * regcache.h (regcache_cooked_read_ftype): Define.
6483 (regcache_save, regcache_restore): Add a cooked_read parameter.
6484 * regcache.c (regcache_save, regcache_restore): Update.
6485 (do_cooked_read): New function.
6486 (regcache_cpy): Pass do_cooked_read to regcache_save and
6487 regcache_restore.
6488
8bedc050
AC
64892003-03-10 Andrew Cagney <cagney@redhat.com>
6490
6491 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
6492 * gdbarch.h, gdbarch.c: Re-generate.
6493 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6494 * x86-64-tdep.h: Update.
6495 * x86-64-tdep.c (x86_64_init_abi): Update.
6496 * v850-tdep.c (v850_gdbarch_init): Update.
6497 * sparc-tdep.c (sparc_gdbarch_init): Update.
6498 * sh-tdep.c (sh_gdbarch_init): Update.
6499 * s390-tdep.c (s390_gdbarch_init): Update.
6500 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6501 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6502 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6503 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6504 * mips-tdep.c (mips_gdbarch_init): Update.
6505 * mcore-tdep.c (mcore_gdbarch_init): Update.
6506 * m68k-tdep.c (m68k_gdbarch_init): Update.
6507 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6508 * ia64-tdep.c (ia64_gdbarch_init): Update.
6509 * i386-tdep.c (i386_gdbarch_init): Update.
6510 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6511 * hppa-tdep.c (hppa_gdbarch_init): Update.
6512 * h8300-tdep.c (h8300_gdbarch_init): Update.
6513 * frv-tdep.c (frv_gdbarch_init): Update.
6514 * cris-tdep.c (cris_gdbarch_init): Update.
6515 * avr-tdep.c (avr_gdbarch_init): Update.
6516 * arm-tdep.c (arm_gdbarch_init): Update.
6517 * alpha-tdep.c (alpha_gdbarch_init): Update.
6518 * sh-tdep.c (sh_init_extra_frame_info): Update.
6519 (sh64_init_extra_frame_info): Update.
6520 * ns32knbsd-nat.c (frame_num_args): Update.
6521 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
6522 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
6523 (xstormy16_frame_chain_valid): Update.
6524 * vax-tdep.c (vax_saved_pc_after_call): Update.
6525 * v850-tdep.c (v850_frame_chain): Update.
6526 (v850_pop_frame): Update.
6527 (v850_init_extra_frame_info): Update.
6528 * sparc-tdep.c (setup_arbitrary_frame): Update.
6529 * ns32k-tdep.c (umax_frame_num_args): Update.
6530 * s390-tdep.c (s390_pop_frame_regular): Update.
6531 * mn10300-tdep.c (mn10300_frame_chain): Update.
6532 (mn10300_pop_frame_regular): Update.
6533 (mn10300_init_extra_frame_info): Update.
6534 * mips-tdep.c (mips_init_frame_pc_first): Update.
6535 (mips_frame_chain): Update.
6536 (mips_pop_frame): Update.
6537 * mcore-tdep.c (mcore_frame_chain): Update.
6538 (mcore_pop_frame): Update.
6539 (mcore_init_extra_frame_info): Update.
6540 * arch-utils.c (init_frame_pc_default): Update.
6541 * m68k-tdep.c (isi_frame_num_args): Update.
6542 (delta68_frame_num_args): Update.
6543 (news_frame_num_args): Update.
6544 * ia64-tdep.c (ia64_pop_frame_regular): Update.
6545 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6546 (alpha_frame_chain): Update.
6547 (alpha_pop_frame): Update.
6548 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
6549 (hppa_init_extra_frame_info): Update.
6550 (hppa_frame_chain): Update.
6551 (hppa_frame_chain_valid): Update.
6552 * cris-tdep.c (cris_init_extra_frame_info): Update.
6553 * avr-tdep.c (avr_init_extra_frame_info): Update.
6554 * arm-tdep.c (arm_frame_chain_valid): Update.
6555 (arm_init_extra_frame_info): Update.
6556 (arm_pop_frame): Update.
6557 * frame.c (frame_pc_unwind): Update.
6558 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
6559 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6560 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6561 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
6562 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
6563 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 6564
12cc2063
AC
65652003-03-10 Andrew Cagney <cagney@redhat.com>
6566
6567 * gdbarch.sh (gdbarch_unwind_pc): New method.
6568 * gdbarch.h, gdbarch.c: Regenerate.
6569 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
6570 but use read_pc and FRAME_SAVED_PC as fall backs.
6571 (frame_saved_regs_pc_unwind): Delete function.
6572 (trad_frame_unwinder): Update.
6573 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
6574 (struct frame_unwind): Update.
6575 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
6576 (dummy_frame_unwind): Update.
6577 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
6578 (sentinel_frame_unwinder): Update.
6579 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
6580 (d10v_frame_unwind): Update.
6581 (d10v_unwind_pc): New function.
6582 (d10v_gdbarch_init): Set unwind_pc.
6583
ef840a37
AC
65842003-03-10 Andrew Cagney <cagney@redhat.com>
6585
a2ce2e56
AC
6586 * gdbarch.h: Re-generate.
6587
ef840a37
AC
6588 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
6589 PC.
6590 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
6591 the PC register.
6592
08f3424b
MK
65932003-03-08 Mark Kettenis <kettenis@gnu.org>
6594
6595 * gdbarch.sh (save_dummy_frame_tos): Add comment.
6596
1248ede2
AC
65972003-03-08 Andrew Cagney <cagney@redhat.com>
6598
6599 * cli-out.c: Update copyright.
6600 (cli_out_data): Define typedef. Use instead of ui_out_data.
6601
f49bacc8
AC
66022003-03-08 Andrew Cagney <cagney@redhat.com>
6603
6604 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
6605 the result.
6606
9b05f993
AC
66072003-03-07 Andrew Cagney <cagney@redhat.com>
6608
6609 * gdbarch.sh: Don't generate two macro definitions when an
6610 undefined macro taking no arguments.
6611 * gdbarch.h: Regenerate.
8ffd9b1b 6612
166f4c7b
ML
66132002-03-07 Michal Ludvig <mludvig@suse.cz>
6614
6615 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
6616 (x86_64_unwind_dummy_id): New functions.
6617 (x86_64_init_abi): Register these two new functions.
6618
6d686a84
ML
66192003-03-07 Michal Ludvig <mludvig@suse.cz>
6620
6621 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 6622 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
6623 separate function.
6624 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
6625
6314f104
AC
66262003-03-05 Andrew Cagney <cagney@redhat.com>
6627
6628 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
6629 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
6630 * frame.c (get_prev_frame): Restructure the frame ID unwind code
6631 to use unwind_dummy_id when a dummy frame.
6632 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
6633 predicate.
6634 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 6635
ceea5145
AC
66362003-03-05 Andrew Cagney <cagney@redhat.com>
6637
6638 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
6639 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
6640 Do not use d10v_read_sp or d10v_read_fp when obtaining register
6641 values.
6642
0d843116
AC
66432003-03-05 Andrew Cagney <cagney@redhat.com>
6644
6645 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
6646 (struct d10v_unwind_cache): Delete field "frameless". Replace
6647 "next_addr" with "sp_offset". Add "r11_offset".
6648 (d10v_frame_unwind_cache): Update.
6649 (prologue_find_regs): Update. When "mv r11, sp", save the
6650 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
6651 RN was saved in r11_offset.
6652
b2579786
AC
66532003-03-05 Andrew Cagney <cagney@redhat.com>
6654
6655 * frame.c (deprecated_update_frame_pc_hack): Also update the the
6656 cached PC value in the next frame.
6657
218e5956
AC
66582003-03-05 Andrew Cagney <cagney@redhat.com>
6659
6660 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
6661 "id_unwind_cache" with "id".
6662 (frame_id_unwind): Delete declaration.
6663 * frame.c (frame_id_unwind): Delete function.
6664 (get_prev_frame): Call the frame id unwind method directly. Store
6665 the returned next frame's ID value in NEXT_FRAME. Note that there
6666 is a problem with the wrong unwind ID being called with the wrong
6667 unwind cache.
6668
ed363b1b
DJ
66692003-03-05 Daniel Jacobowitz <drow@mvista.com>
6670
6671 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
6672
fe1f4a5e
DJ
66732003-03-05 James Ingham <jingham@apple.com>
6674 Daniel Jacobowitz <drow@mvista.com>
6675
6676 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
6677 (auto_cp_abi): New variable.
6678 (current_cp_abi, num_cp_abis): Make static.
6679 (CP_ABI_MAX): Define.
6680 (cp_abis): Turn into an array.
6681 (value_virtual_fn_field): Fix formatting.
6682 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
6683 takes a pointer.
6684 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
6685 (list_cp_abis, _initialize_cp_abi): New functions.
6686 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
6687 declarations for cp_abis, num_cp_abis, current_cp_abi, and
6688 switch_to_cp_abi. Update prototype for register_cp_abi.
6689 * Makefile.in (cp-abi.o): Update dependencies.
6690 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
6691 instead of switch_to_cp_abi.
6692 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
6693 register_cp_abi.
6694 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
6695 register_cp_abi.
6696 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
6697
e4adbba9
DJ
66982003-03-05 Daniel Jacobowitz <drow@mvista.com>
6699
6700 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
6701 * dwarf2loc.c: Include "regcache.h".
6702 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
6703 register_size.
6704 * Makefile.in (dwarf2loc.o): Update dependencies.
6705
91ccbfc1
TR
67062003-03-04 Theodore A. Roth <troth@openavr.org>
6707
6708 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
6709 number of io registers reported by remote target is not a multiple of
6710 step.
6711
3d4e8fd2
DC
67122003-03-04 David Carlton <carlton@math.stanford.edu>
6713
6714 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
6715 (lookup_symbol_aux_psymtabs): Update call to
6716 lookup_partial_symbol.
6717 (lookup_transparent_type, find_main_psymtab)
6718 (make_symbol_overload_list): Ditto.
6719
ed42d87b
KH
67202003-03-04 Kazu Hirata <kazu@cs.umass.edu>
6721
6722 * MAINTAINERS (Write after approval): Update my email address.
6723
a0ed5532
AC
67242003-03-03 Andrew Cagney <cagney@redhat.com>
6725
6726 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
6727 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
6728 predicate. Replace MAX_REGISTER_RAW_SIZE.
6729 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
6730 MAX_REGISTER_VIRTUAL_SIZE.
6731 * regcache.c (legacy_max_register_raw_size): New function.
6732 (legacy_max_register_virtual_size): New function.
6733 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
6734 (MAX_REGISTER_RAW_SIZE): Define.
6735 (legacy_max_register_raw_size): Declare.
6736 (legacy_max_register_virtual_size): Declare.
6737 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6738 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
6739 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6740 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
6741 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6742 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
6743 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
6744 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
6745 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
6746 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6747 * vax-tdep.c (vax_gdbarch_init): Update.
6748 * v850-tdep.c (v850_gdbarch_init): Update.
6749 * sparc-tdep.c (sparc_gdbarch_init): Update.
6750 * sh-tdep.c (sh_gdbarch_init): Update.
6751 * s390-tdep.c (s390_gdbarch_init): Update.
6752 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6753 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6754 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6755 * mips-tdep.c (mips_gdbarch_init): Update.
6756 * mcore-tdep.c (mcore_gdbarch_init): Update.
6757 * m68k-tdep.c (m68k_gdbarch_init): Update.
6758 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6759 * ia64-tdep.c (ia64_gdbarch_init): Update.
6760 * i386-tdep.c (i386_gdbarch_init): Update.
6761 * hppa-tdep.c (hppa_gdbarch_init): Update.
6762 * h8300-tdep.c (h8300_gdbarch_init): Update.
6763 * frv-tdep.c (frv_gdbarch_init): Update.
6764 * cris-tdep.c (cris_gdbarch_init): Update.
6765 * avr-tdep.c (avr_gdbarch_init): Update.
6766 * arm-tdep.c (arm_gdbarch_init): Update.
6767 * alpha-tdep.c (alpha_gdbarch_init): Update.
6768 * d10v-tdep.c (d10v_gdbarch_init): Do not set
6769 max_register_raw_size or max_register_virtual_size.
6770
8e437497
DC
67712003-03-03 David Carlton <carlton@math.stanford.edu>
6772
6773 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
6774 SYMBOL_MATCHES_NAME, add comment.
6775 (SYMBOL_MATCHES_NATURAL_NAME): New.
6776 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
6777 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
6778 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
6779 * symtab.c (lookup_partial_symbol): Use
6780 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
6781 unhelpful comment.
6782 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
6783 SYMBOL_MATCHES_NAME.
6784 Fix for PR c++/33.
6785
25120b0d
DC
67862003-03-03 David Carlton <carlton@math.stanford.edu>
6787
6788 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
6789 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
6790 by regexp matching against SYMBOL_NATURAL_NAME.
6791
78a11fb4
DC
67922003-03-03 David Carlton <carlton@math.stanford.edu>
6793
6794 * linespec.c (find_method): Extract code into collect_methods.
6795 (collect_methods): New.
6796
645dd519
MK
67972003-03-02 Mark Kettenis <kettenis@gnu.org>
6798
b4700d91
MK
6799 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
6800 get_frame_base.
6801
645dd519
MK
6802 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
6803 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6804
0aa7e1aa
SC
68052003-03-02 Stephane Carrez <stcarrez@nerim.fr>
6806
8ffd9b1b 6807 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
6808 and not regnum when summing the size of all registers up to regnum.
6809
f30ee0bc
AC
68102003-03-01 Andrew Cagney <cagney@redhat.com>
6811
6812 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
6813 FRAME_INIT_SAVED_REGS.
6814 * gdbarch.h, gdbarch.c: Regenerate.
6815 * stack.c (frame_info): Update.
6816 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
6817 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
6818 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
6819 * ns32k-tdep.c (ns32k_pop_frame): Update.
6820 * mips-tdep.c (mips_pop_frame): Update.
6821 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
6822 * ia64-tdep.c (ia64_frame_chain): Update.
6823 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
6824 (ia64_frameless_function_invocation): Update.
6825 (ia64_init_extra_frame_info): Update.
6826 (ia64_pop_frame_regular): Update.
6827 * frame.h (struct frame_info): Update comment.
6828 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
6829 * frame.c (frame_saved_regs_register_unwind): Update.
6830 (frame_saved_regs_register_unwind): Update.
6831 (deprecated_generic_get_saved_register): Update.
6832 * cris-tdep.c: Update comment.
6833 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
6834 Rename macro.
6835 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6836 * x86-64-tdep.c (x86_64_init_abi): Update.
6837 * vax-tdep.c (vax_gdbarch_init): Update.
6838 * v850-tdep.c (v850_gdbarch_init): Update.
6839 * sparc-tdep.c (sparc_gdbarch_init): Update.
6840 * sh-tdep.c (sh_gdbarch_init): Update.
6841 * s390-tdep.c (s390_gdbarch_init): Update.
6842 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6843 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6844 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6845 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6846 * mips-tdep.c (mips_gdbarch_init): Update.
6847 * mcore-tdep.c (mcore_gdbarch_init): Update.
6848 * m68k-tdep.c (m68k_gdbarch_init): Update.
6849 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6850 * ia64-tdep.c (ia64_gdbarch_init): Update.
6851 * i386-tdep.c (i386_gdbarch_init): Update.
6852 * frv-tdep.c (frv_gdbarch_init): Update.
6853 * avr-tdep.c (avr_gdbarch_init): Update.
6854 * arm-tdep.c (arm_gdbarch_init): Update.
6855 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 6856
42fa7c0f
AC
68572003-03-01 Andrew Cagney <cagney@redhat.com>
6858
6859 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
6860 option enum and switch. When no windows, set the interpreter to
6861 INTERP_CONSOLE.
8ffd9b1b 6862
49c7e338
AC
68632003-03-01 Andrew Cagney <cagney@redhat.com>
6864
6865 * main.c (captured_main): Replace magic option characters with an
6866 enum.
6867
e9582e71
AC
68682003-03-01 Andrew Cagney <cagney@redhat.com>
6869
6870 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
6871 INIT_EXTRA_FRAME_INFO.
6872 * gdbarch.h, gdbarch.c: Regenerate.
6873 * arm-tdep.c: Update comments.
6874 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
6875 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
6876 * frame.h, avr-tdep.c: Ditto.
6877 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
6878 (create_new_frame, legacy_get_prev_frame): Ditto.
6879 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
6880 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
6881 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
6882 deprecated_init_extra_frame_info instead of init_extra_frame_info.
6883 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6884 * v850-tdep.c (v850_gdbarch_init): Ditto.
6885 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6886 * sh-tdep.c (sh_gdbarch_init): Ditto.
6887 * s390-tdep.c (s390_gdbarch_init): Ditto.
6888 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
6889 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6890 * mips-tdep.c (mips_gdbarch_init): Ditto.
6891 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6892 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6893 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6894 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
6895 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6896 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6897 * frv-tdep.c (frv_gdbarch_init): Ditto.
6898 * cris-tdep.c (cris_gdbarch_init): Ditto.
6899 * avr-tdep.c (avr_gdbarch_init): Ditto.
6900 * arm-tdep.c (arm_gdbarch_init): Ditto.
6901 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6902 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6903
35cac7cf
AC
69042003-03-01 Andrew Cagney <cagney@redhat.com>
6905
6906 * gdbarch.sh (register_type): New function with predicate.
6907 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
6908 * gdbarch.h, gdbarch.c: Re-generate.
6909 * arch-utils.c (generic_register_byte): Use generic_register_size.
6910 (generic_register_size): When available, use
6911 gdbarch_register_type.
6912 * regcache.c (init_regcache_descr): When available, initialize the
6913 register type array using gdbarch_register_type. If the
6914 architecture supplies gdbarch_register_type, do not use the legacy
6915 regcache layout.
6916 * d10v-tdep.c (d10v_register_type): Replace
6917 d10v_register_virtual_type.
6918 (d10v_gdbarch_init): Set register_type instead of
6919 register_virtual_type.
6920
7b83296f
AC
69212003-03-01 Andrew Cagney <cagney@redhat.com>
6922
6923 * Makefile.in (ax-gdb.o): Update dependencies.
6924 * ax-gdb.c: Include "regcache.h".
6925 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
6926 * findvar.c (value_of_register): Ditto.
6927 * infcmd.c (default_print_registers_info): Ditto.
6928
eadc1c87
MK
69292003-03-01 Mark Kettenis <kettenis@gnu.org>
6930
6931 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
6932 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6933
14143612
MK
69342003-03-01 Mark Kettenis <kettenis@gnu.org>
6935
6936 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
6937 of STREQ.
6938
a55cc764
DJ
69392003-02-28 Daniel Jacobowitz <drow@mvista.com>
6940
6941 * Makefile.in (dwarf2loc.o): Update dependencies.
6942 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
6943 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
6944 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
6945 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
6946 (locexpr_tracepoint_var_ref): New function.
6947 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
6948
08a617da
AC
69492003-02-28 Andrew Cagney <cagney@redhat.com>
6950
6951 * regcache.c (register_size): New function.
6952 * regcache.h (register_size): Declare
6953 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
6954 max_register_size instead of MAX_REGISTER_RAW_SIZE.
6955
4224873a
DC
69562003-02-28 David Carlton <carlton@math.stanford.edu>
6957
6958 * linespec.c (decode_compound): Extract code into find_method.
6959 (find_method): New.
6960
ccdc5d7f
JB
69612003-02-28 J. Brobecker <brobecker@gnat.com>
6962
6963 * Makefile.in: Add rules to build and link in observer.o.
6964
974e8ced
JB
69652003-02-27 J. Brobecker <brobecker@gnat.com>
6966
6967 * observer.c: Minor comments edits.
6968
7a28f973
JB
69692003-02-27 J. Brobecker <brobecker@gnat.com>
6970
6971 * observer.h, observer.c: New file.
6972
27cddce2
AC
69732003-02-27 Andrew Cagney <cagney@redhat.com>
6974
6975 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
6976
b94a41a1
SC
69772003-02-27 Stephane Carrez <stcarrez@nerim.fr>
6978
6979 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
6980 (M6812_OP_STS_EXT): Likewise.
6981 (m6811_prologue): Use the above to recognize prologue.
6982 (m6812_prologue): Likewise.
6983
c8be8951
DC
69842003-02-27 David Carlton <carlton@math.stanford.edu>
6985
6986 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
6987 SYMBOL_PRINT_NAME.
6988 (compare_psymbols): Ditto.
6989 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
6990
d05bb1fc
MS
69912003-02-27 Michael Snyder <msnyder@redhat.com>
6992
4e845cd3
MS
6993 * f-lang.c (build_fortran_types): New function.
6994 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
6995 * doublest.c (extract_floating): Fix warning text.
6996
f3824013
AC
69972003-02-27 Andrew Cagney <cagney@redhat.com>
6998
6999 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
7000 predicate. Replaces PUSH_DUMMY_FRAME.
7001 * gdbarch.h, gdbarch.c: Regnerate.
7002 * valops.c (hand_function_call): Update. Call
7003 generic_push_dummy_frame directly.
7004 * vax-tdep.c (vax_gdbarch_init): Update.
7005 * sparc-tdep.c (sparc_gdbarch_init): Update.
7006 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7007 * m68k-tdep.c (m68k_gdbarch_init): Update.
7008 * hppa-tdep.c (hppa_gdbarch_init): Update.
7009 * alpha-tdep.c (alpha_gdbarch_init): Update.
7010 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7011 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7012 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
7013 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
7014 push_dummy_frame to generic_push_dummy_frame.
7015 * v850-tdep.c (v850_gdbarch_init): Ditto.
7016 * sh-tdep.c (sh_gdbarch_init): Ditto.
7017 * s390-tdep.c (s390_gdbarch_init): Ditto.
7018 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7019 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7020 * mips-tdep.c (mips_gdbarch_init): Ditto.
7021 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7022 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7023 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7024 * i386-tdep.c (i386_gdbarch_init): Ditto.
7025 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7026 * frv-tdep.c (frv_gdbarch_init): Ditto.
7027 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7028 * cris-tdep.c (cris_gdbarch_init): Ditto.
7029 * avr-tdep.c (avr_gdbarch_init): Ditto.
7030 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 7031
ad188201
KB
70322003-02-26 Kevin Buettner <kevinb@redhat.com>
7033
7034 * mips-tdep.c (show_mips_abi): New function.
7035 (_initialize_mips_tdep): Use show_mips_abi() to implement the
7036 command ``show mips abi''.
7037
6b37567a 70382003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7039
6b37567a 7040 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 7041 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
7042 more sline entries have been seen for the function.
7043
d3e0a5bf
MC
70442003-02-26 Michael Chastain <mec@shout.net>
7045
7046 * configure: Regenerate with autoconf 000227.
7047
18972eea
MC
70482003-02-26 Michael Chastain <mec@shout.net>
7049
7050 Close PR build/660.
7051 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
7052 for old libc5/glibc.
7053 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
7054
0bbde931
KW
70552003-02-26 Kris Warkentin <kewarken@qnx.com>
7056
7057 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
7058 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
7059
27ca5dad
MC
70602003-02-26 Michael Chastain <mec@shout.net>
7061
7062 * configure.in: New variable HAVE_UINTPTR_T.
7063 * configure, config.in: Regenerated.
7064
6f88d630
DJ
70652003-02-26 Daniel Jacobowitz <drow@mvista.com>
7066
7067 Fix PR build/1097.
7068 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
7069
b14185ce
AC
70702003-02-25 Andrew Cagney <cagney@redhat.com>
7071
7072 * frame.c (get_prev_frame): Add comment on check for
7073 inside_entry_func. Only check for inside_entry_file when not a
7074 dummy and not a sentinel. Check that the new frame is not inner
7075 to the old frame.
7076
ac2bd0a9
AC
70772003-02-25 Andrew Cagney <cagney@redhat.com>
7078
7079 * frame.c (frame_debug): New variable.
7080 (_initialize_frame): Add "set/show debug frame" command.
7081 (get_prev_frame): When frame_debug, print reason why unwind
7082 failed.
7083
b18a0fd2
MC
70842003-02-25 Michael Chastain <mec@shout.net>
7085
7086 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
7087 to avoid uintptr_t definition problems.
7088
22abf04a
DC
70892003-02-25 David Carlton <carlton@math.stanford.edu>
7090
7091 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
7092 (SYMBOL_LINKAGE_NAME): Ditto.
7093 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
7094 SYMBOL_LINKAGE_NAME.
7095 (struct general_symbol_info): Expand comment.
7096 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
7097 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
7098 (SYMBOL_MATCHES_REGEXP): Ditto.
7099 * symtab.c (symbol_natural_name): New function.
7100 * objfiles.h: Replace all uses of SYMBOL_NAME by
7101 DEPRECATED_SYMBOL_NAME.
7102 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
7103 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
7104 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
7105 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
7106 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
7107 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
7108 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
7109 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
7110 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
7111 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
7112 * ada-exp.y: Ditto.
7113 * ada-exp.y: Update copyright.
7114 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
7115 * cp-valprint.c: Ditto.
7116
1a5848f6
JJ
71172003-02-25 Jeff Johnston <jjohnstn@redhat.com>
7118
7119 * infptrace.c (detach): Do not flag error if ptrace detach fails
7120 and errno is set to ESRCH.
7121
7343d46a
AC
71222003-02-24 Andrew Cagney <cagney@redhat.com>
7123
7124 * infptrace.c (udot_info): Change type of udot_off to long. Use
7125 paddr when printing udot_off's value.
7126
49fa1dc2
DC
71272003-02-24 David Carlton <carlton@math.stanford.edu>
7128
7129 * symtab.c (make_symbol_overload_list): Only read in partial
7130 symtabs containing a matching partial symbol.
7131
0fe19209
DC
71322003-02-24 David Carlton <carlton@math.stanford.edu>
7133
7134 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
7135 do the comparison, not strcmp.
7136 * symfile.c (compare_psymbols): Ditto.
7137 * defs.h: Declare strcmp_iw_ordered.
7138 * utils.c (strcmp_iw_ordered): New function.
7139
8e3ee7b5
JB
71402003-02-24 Jim Blandy <jimb@redhat.com>
7141
7142 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
7143 support, shared libs): Remove my name from here, to better reflect
7144 reality.
7145
7df1a324
KW
71462003-02-24 Kris Warkentin <kewarken@qnx.com>
7147
7148 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
7149 (target_ops): Add to_have_continuable_watchpoint.
7150 * target.c (update_current_target): Add INHERIT line for
7151 to_have_continuable_watchpoint.
7152 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
7153 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
7154 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
7155 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
7156
d1c76907
EZ
71572003-02-24 Elena Zannoni <ezannoni@redhat.com>
7158
7159 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
7160 maintainership.
7161
2610b0bf
KW
71622003-02-24 Kris Warkentin <kewarken@qnx.com>
7163
f46169db
KW
7164 * solib.c (solib_open): Call target defined search function after
7165 failing with solib-search-path.
7166 * solist.h (target_so_ops): Add find_and_open_solib function hook and
7167 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 7168
9a3c34fe
KW
71692003-02-24 Kris Warkentin <kewarken@qnx.com>
7170
f46169db 7171 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 7172
2417dd25
SC
71732003-02-23 Stephane Carrez <stcarrez@nerim.fr>
7174
7175 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
7176
b631436b
SC
71772003-02-22 Stephane Carrez <stcarrez@nerim.fr>
7178
7179 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
7180 (m68hc11_add_reggroups): New function.
7181 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
7182 (m68hc11_gdbarch_init): Install the reggroups.
7183 (_initialize_m68hc11_tdep): Initialize them.
7184
0aa8c1e4
JW
71852003-02-21 James E Wilson <wilson@tuliptree.org>
7186
7187 * MAINTAINERS: Update my email address.
7188
50ceaba5
DC
71892003-02-21 David Carlton <carlton@math.stanford.edu>
7190
7191 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
7192
4c2df51b
DJ
71932003-02-21 Daniel Jacobowitz <drow@mvista.com>
7194
7195 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
7196 * symtab.h: Add opaque declarations of struct axs_value and
7197 struct agent_expr.
7198 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
7199 (struct location_funcs): New type.
7200 (struct symbol): Add "loc" to aux_value.
7201 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
7202 * dwarf2read.c: Include "dwarf2expr.h".
7203 (dwarf2_symbol_mark_computed): New function.
7204 (read_func_scope): Use it.
7205 (var_decode_location): New function.
7206 (new_symbol): Use it.
7207 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
7208
7209 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
7210 (dwarf2expr_h, dwarf2loc_h): New variables.
7211 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
7212 (dwarf2expr.o, dwarf2loc.o): New rules.
7213 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
7214 * buildsym.c (finish_block): Handle LOC_COMPUTED and
7215 LOC_COMPUTED_ARG.
7216 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
7217 * m2-exp.y (yylex): Likewise.
7218 * printcmd.c (address_info, print_frame_args): Likewise.
7219 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
7220 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
7221 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
7222 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
7223 * symtab.c (lookup_block_symbol): Likewise.
7224
5784d15e
AF
72252003-02-20 Adam Fedor <fedor@gnu.org>
7226
7227 * symtab.h: Remove objc_specific struct
7228 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
7229 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
7230 Have language_objc use cplus_specific struct.
7231
d4cad8db
TT
72322003-02-20 Tom Tromey <tromey@redhat.com>
7233
7234 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
7235 TYPE_NAME, when printing a String value. PR java/1075.
7236
2f9a90b4
AF
72372003-02-20 Adam Fedor <fedor@gnu.org>
7238
d38074a8 7239 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 7240 * objc-lang.c (find_methods): Make static.
2f9a90b4 7241
6f17862b
CF
72422003-02-20 Christopher Faylor <cgf@redhat.com>
7243
7244 * win32-nat.c (get_image_name): Check return value from
7245 ReadProcessMemory.
7246 (child_xfer_memory): Ditto.
7247
715d1656
AO
72482003-02-20 Alexandre Oliva <aoliva@redhat.com>
7249
7250 * configure.in (TARGET_SYSTEM_ROOT): Set default to
7251 ${exec_prefix}/${target_alias}/sys-root. Match explicit
7252 '${exec_prefix}' (in addition to the expansion thereof) as
7253 relocatable.
7254 * configure: Rebuilt.
7255
b1262a02
DC
72562003-02-20 David Carlton <carlton@math.stanford.edu>
7257
7258 * symtab.c (search_symbols): Revert the search_symbols part of my
7259 2002-12-23 patch. Add comment.
7260
7134143f
DJ
72612002-02-20 Daniel Jacobowitz <drow@mvista.com>
7262
7263 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
7264 * dbxread.c (elfstab_build_psymtabs): Don't call
7265 install_minimal_symbols.
7266 (stabsect_build_psymtabs): Likewise.
7267 * elfread.c (elf_symfile_read): Call install_minimal_symbols
7268 earlier.
7269 * somread.c (som_symfile_read): Call install_minimal_symbols
7270 and do_cleanups earlier.
7271 * nlmread.c (nlm_symfile_read): Likewise.
7272 * mdebugread.c (elfmdebug_build_psymtabs): Call
7273 install_minimal_symbols and make appropriate cleanups.
7274
cf466558
KB
72752003-02-20 Kevin Buettner <kevinb@redhat.com>
7276
7277 * solib.c (reload_shared_libraries): New function.
7278 (_initialize_solib): Add callbacks for ``set solib-search-path''
7279 and ``set solib-absolute-prefix''.
7280
de5ad195
DC
72812003-02-20 David Carlton <carlton@math.stanford.edu>
7282
7283 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
7284 expand comment.
7285 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
7286 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
7287 * ada-typeprint.c (ada_typedef_print): Ditto.
7288 * ax-gdb.c (gen_var_ref): Ditto.
7289 * breakpoint.c (print_one_breakpoint): Ditto.
7290 * buildsym.c (finish_block): Ditto.
7291 * c-valprint.c (c_val_print): Ditto.
7292 * expprint.c (print_subexp): Ditto.
7293 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
7294 * infcmd.c (jump_command): Ditto.
7295 * linespec.c (decode_line_2, decode_compound): Ditto.
7296 * maint.c (maintenance_translate_address): Ditto.
7297 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
7298 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
7299 Ditto.
8ffd9b1b
AJ
7300 * p-valprint.c (pascal_val_print): Ditto.
7301 * stabsread.c (define_symbol): Ditto.
de5ad195 7302 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
7303 (print_frame_arg_vars, return_command): Ditto.
7304 * symfile.c (compare_symbols, compare_psymbols): Ditto.
7305 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
7306 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
7307 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
7308 (rbreak_command): Ditto.
7309 * tracepoint.c (tracepoints_info): Ditto.
7310 * typeprint.c (typedef_print): Ditto.
7311 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
7312 * cli/cli-cmds.c (edit_command, list_command): Ditto.
7313 * ada-typeprint.c: Update Copyright.
7314 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
7315 * tracepoint.c, cli/cli-cmds.c: Ditto.
7316
f796e4be
KB
73172003-02-20 Kevin Buettner <kevinb@redhat.com>
7318
7319 * frame.c (generic_unwind_get_saved_register): Make non-static.
7320 * frame.h (generic_unwind_get_saved_register): Declare.
7321 * mips-tdep.c (read_next_frame_reg): Fetch register from
7322 current regcache when frame is NULL.
7323 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
7324 that must be NULL.
7325 (mips_get_saved_register): Call generic_unwind_get_saved_register()
7326 instead of frame_register_unwind().
7327
836cc9f4
AC
73282003-02-20 Andrew Cagney <ac131313@redhat.com>
7329
7330 * remote-sim.c (gdbsim_insert_breakpoint)
7331 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
7332 code.
7333
501eef12
AC
73342003-02-20 Andrew Cagney <ac131313@redhat.com>
7335
7336 * remote.c (_initialize_remote): Add commands "set/show remote
7337 hardware-watchpoint-limit" and "set/show remote
7338 hardware-breakpoint-limit".
7339 (remote_hw_watchpoint_limit): Initialize to -1.
7340 (remote_hw_breakpoint_limit): Ditto.
7341 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
7342
1b6bc7e0
CF
73432003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
7344
7345 * coff-pe-read.c: New file - support reading of minimal symbols from a
7346 portable executable using the export table.
7347 * coff-pe-read.h: New file.
7348 * coffread.c: Include coff-pe-read.h.
7349 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
7350 debugging symbols found.
7351 * Makefile.in (SFILES): Add coff-pe-read.o.
7352 (coff_pe_read_h): Define.
7353 (COMMON_OBS): Add coff-pe-read.o.
7354 (coffread.o): Add coff_pe_read_h dependency.
7355 (coff-pe-read.o): New target.
7356
fe898f56
DC
73572003-02-19 David Carlton <carlton@math.stanford.edu>
7358
7359 * Makefile.in (SFILES): Add block.c.
7360 (block_h): New.
7361 (COMMON_OBS): Add block.o.
7362 (block.o): New.
7363 (x86-64-tdep.o): Add $(block_h).
7364 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
7365 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
7366 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
7367 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
7368 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
7369 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
7370 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
7371 * value.h: Add opaque declaration for struct block.
7372 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
7373 * ada-lang.h: Ditto.
7374 * x86-64-tdep.c: #include "block.h"
7375 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
7376 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
7377 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
7378 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
7379 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
7380 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
7381 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
7382 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
7383 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
7384 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
7385 * symtab.c (block_function): Ditto.
7386 (contained_in): Ditto.
7387 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
7388 block.h. Add opaque declaration for struct block.
7389 * symtab.h: Move block_function and contained_in declarations to
7390 block.h. Add opaque declarations for struct block, struct
7391 blockvector.
7392 (struct block): Move to block.h.
7393 (struct blockvector): Ditto.
7394 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
7395 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
7396 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
7397 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
7398 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
7399 Ditto.
7400 * block.c: New file.
7401 * block.h: New file.
7402
173345b5
TR
74032003-02-19 Theodore A. Roth <troth@openavr.org>
7404
7405 * avr-tdep.c (avr_extract_return_value): Remove function.
7406 (avr_store_return_value): Remove function.
7407 (avr_extract_struct_value_address): Remove function.
7408 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
7409
338ef23d
AC
74102003-02-19 Andrew Cagney <ac131313@redhat.com>
7411
7412 * rs6000-tdep.c: Include "gdb_assert.h".
7413 (registers_e500): Add "acc" and "spefscr".
7414 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
7415 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
7416 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
7417 really is "r0".
7418 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
7419
5412f5f3
KS
74202003-02-18 Keith Seitz <keiths@redhat.com>
7421
7422 * Makefile.in: Add gdbtk-interps.c.
7423
881324eb
KB
74242003-02-18 Kevin Buettner <kevinb@redhat.com>
7425
7426 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
7427 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
7428
6a2f5abf
AC
74292003-02-18 Andrew Cagney <cagney@redhat.com>
7430
7431 * symtab.h (struct objfile): Add opaque declaration.
7432
54c7009d
EZ
74332003-02-18 Elena Zannoni <ezannoni@redhat.com>
7434
7435 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
7436 * dbxread.c (process_one_symbol): Use last_function_start rather
7437 than function_start_offset to find the real beginning of the
7438 current function. The latter is just the text section offset on
7439 some systems, the former is always the real function start.
54c7009d 7440
7ee6d7eb
AC
74412003-02-17 Andrew Cagney <cagney@redhat.com>
7442
7443 * configure.in: Revert ${target} != ${host}.
7444
2846da9b
AC
74452003-02-17 Andrew Cagney <ac131313@redhat.com>
7446
7447 * configure.in (Makefile): Use the test ${target} != ${host},
7448 instead of the absence of the "nm.h" file, to determine of the
7449 configuration non-native.
7450 * configure: Regenerate.
8ffd9b1b 7451
3b27aeea
EZ
74522003-02-14 Elena Zannoni <ezannoni@redhat.com>
7453
fbe586ae 7454 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
7455
7456 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
7457 conditionalize tui_active test.
7458 (lookup_cmd_1): Ditto.
7459
b0b1c2c0
MK
74602003-02-14 Mark Kettenis <kettenis@gnu.org>
7461
7462 * configure.in: Add check for _etext.
7463 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
7464 available.
7465 * config.in, configure: regenerated.
7466
8f05cde5
DJ
74672003-02-14 Daniel Jacobowitz <drow@mvista.com>
7468
7469 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
7470
021e7609
AC
74712003-02-14 Andrew Cagney <ac131313@redhat.com>
7472
7473 * main.c (tui_version): Delete variable.
7474 (captured_main): When --tui, set interpreter_p to "tui" instead of
7475 enabling tui_version.
7476 * printcmd.c (display_command) [TUI]: Test tui_active instead of
7477 tui_version.
7478 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
7479 * cli/cli-cmds.c (disassemble_command): Ditto.
7480 * defs.h (tui_version): Delete declaration.
7481 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
7482 (tui-interp.o): Add rules.
7483 (SUBDIR_TUI_OBS): Add "tui-interp.o".
7484
e325dcec
CF
74852003-02-14 Christopher Faylor <cgf@redhat.com>
7486
36ffb041 7487 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
7488 just-loaded dll.
7489
c4f90d87
JM
74902003-02-12 Jason Molenda (jmolenda@apple.com)
7491
fbe586ae
RH
7492 * symmisc.c (print_objfile_statistics): Include information about
7493 the number of psymtabs and symtabs in each object file.
c4f90d87 7494
e46e5ccd
KS
74952003-02-13 Keith R Seitz <keiths@redhat.com>
7496
7497 * main.h (struct captured_main_args): Add interpreter_p.
7498 * main.c (captured_main): Initialize interpreter_p from context.
7499 * gdb.c (main): Set interpreter_p argument.
7500 * Makefile.in (gdb.o): Add dependency for interps.h.
7501
fe97fe9c
AC
75022003-02-12 Andrew Cagney <ac131313@redhat.com>
7503
7504 * event-top.c (cli_command_loop): Delete declaration.
7505 (_initialize_event_loop): Delete function setting event_loop_hook.
7506 * event-top.h (cli_command_loop): Declare. Update copyright.
7507 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
7508 * interps.c (current_interp_command_loop): When event_loop_p, call
7509 cli_command_loop.
7510
1cdac4ef
AC
75112003-02-12 Andrew Cagney <ac131313@redhat.com>
7512
7513 * interps.h (interp_command_loop_ftype): Change return type to
7514 void.
7515
48037ead
ML
75162003-02-12 Michal Ludvig <mludvig@suse.cz>
7517
7518 * x86-64-tdep.c (x86_64_extract_return_value)
7519 (x86_64_store_return_value): Use regcache instead of regbuf.
7520 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
7521 * x86-64-linux-nat.c (fill_gregset): Use regcache.
7522
033afc63
AC
75232003-02-11 Andrew Cagney <ac131313@redhat.com>
7524
7525 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
7526 * aclocal.m4: Regenerate.
7527 * configure: Regenerate.
7528
7529 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
7530 TCL_LD_SEARCH_FLAGS.
7531
40d02bca
ML
75322003-02-10 Michal Ludvig <mludvig@suse.cz>
7533
7534 * dwarf2cfi.c: Reindented.
7535
11308a41
AC
75362003-02-09 Andrew Cagney <ac131313@redhat.com>
7537
7538 * interps.c (clear_interpreter_hooks): Convert function definition
7539 to ISO C.
7540
e1c1c0f6
DC
75412003-02-07 David Carlton <carlton@math.stanford.edu>
7542
7543 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
7544
ab5d3da6
KB
75452003-02-07 Kevin Buettner <kevinb@redhat.com>
7546
7547 * gdbtypes.h (struct main_type): Move ``length'' field from here...
7548 (struct type): ...to here.
7549 (TYPE_LENGTH): Adjust to reflect different location of ``length''
7550 field.
7551 * gdbtypes.c (make_qualified_type): Set length on newly created type.
7552 (replace_type): Set length on all type variants for a given type.
7553
b8a92b82
AC
75542003-02-07 Andrew Cagney <ac131313@redhat.com>
7555
7556 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
7557 <sys/stat.h>.
7558 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 7559
5cb316ef
AC
75602003-02-06 Andrew Cagney <ac131313@redhat.com>
7561
2555fe1a
AC
7562 * Makefile.in (symm-nat.o): Update dependencies.
7563 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
7564 (lynx-nat.o, ia64-linux-nat.): Ditto.
7565 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
7566 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
7567 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
7568
44270758
AC
7569 * Makefile.in (inflow_h): Define.
7570 (procfs.o, inflow.o, procfs.o): Update dependencies.
7571 * inftarg.c (child_stop): Delete extern declaration of
7572 inferior_process_group. Include "inflow.h".
7573 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
7574 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
7575 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
7576 (our_process_group, inferior_process_group): Extern declarations.
7577
df8f7274
AC
7578 * procfs.c: Include "gdb_assert.h".
7579
5cb316ef
AC
7580 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
7581 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
7582 * jv-typeprint.c (java_type_print_base): Ditto.
7583 * typeprint.c (typedef_print): Eliminate STREQ.
7584 * cli/cli-script.c (define_command, define_command): Ditto.
7585 * main.c (captured_main): Ditto.
7586 * values.c (lookup_internalvar): Ditto.
7587 * utils.c (safe_strerror, parse_escape): Eliminate assignment
7588 within `if' conditional.
7589 * linespec.c (decode_line_2): Ditto.
7590 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
7591 (bfd_openw_with_cleanup): Ditto.
7592
2a28ccea
MK
75932003-02-07 Mark Kettenis <kettenis@gnu.org>
7594
7595 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
7596 legacy_extract_return_value and store_return_value to
7597 legacy_return_value.
7598
786b8124
CF
75992003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
7600
7601 * win32-nat.c (get_relocated_section_addrs): New function. Find
7602 section load addresses for symbol handling in relocated DLLs.
7603 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
7604
b871e4ec
FF
76052003-02-05 Fred Fish <fnf@intrinsity.com>
7606
7607 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
7608 '=' and '!='.
7609 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
7610 with '&' and '=='.
7611 (angel_RDI_info): Ditto.
7612 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
7613 with '&' and '!='.
7614 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 7615
4389a95a 76162003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
7617 Keith Seitz <keiths@redhat.com>
7618 Elena Zannoni <ezannoni@redhat.com>
7619 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
7620
7621 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
7622 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
7623 (SUBDIR_MI_OBS): Add "mi-interp.o".
7624 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
7625 (SFILES): Add "interps.c".
7626 (COMMON_OBS): Add "interps.o".
7627 (interps_h, mi_main_h): Define.
7628 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
7629 (mi-main.o, main.o, event-top.o): Update dependencies.
7630 * cli/cli-interp.c: New file.
7631 * interps.h, interps.c: New files.
7632 * top.c: (gdb_init): Don't install the default interpreter, handed
7633 by captured_main.
7634 * main.c: Include "interps.h".
7635 (interpreter_p): Note that it should malloc'ed.
7636 (captured_command_loop): Call current_interp_command_loop.
7637 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
7638 xfree and xstrdup when updating interpreter_p. Install the
7639 default interpreter. Add hack to stop mi1's copyright notice
7640 being encoded.
7641 * event-top.h (gdb_setup_readline): Declare.
7642 (gdb_disable_readline): Declare.
7643 * event-top.c: Include "interps.h".
7644 (display_gdb_prompt): Call current_interp_display_prompt_p.
7645 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
7646 gdb_stdlog, and gdb_stdtarg.
7647 (_initialize_event_loop): Don't call gdb_setup_readline.
7648 * cli-out.c (cli_out_set_stream): New function.
7649 * cli-out.h (cli_out_set_stream): Declare.
7650
ff3b5810
MK
76512003-02-06 Mark Kettenis <kettenis@gnu.org>
7652
7653 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
7654 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
7655 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
7656 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
7657 config/i386/i386v42mp.mt: Removed.
7658
5b729aa5
MK
76592003-02-05 Mark Kettenis <kettenis@gnu.org>
7660
7661 * configure.tgt (*-*-solaris*): Set gdb_osabi to
7662 GDB_OSABI_SOLARIS.
7663
8cc15142
MC
76642003-02-05 Michael Chastain <mec@shout.net>
7665
7666 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
7667 2.12.1 and earlier versions.
7668
5aa5d4b9
AC
76692003-02-05 Andrew Cagney <ac131313@redhat.com>
7670
7671 Remove orphaned hosts, targets and files.
7672 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
7673 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
7674 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
7675 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
7676 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
7677 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
7678 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
7679 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
7680 * config/sparc/tm-sp64sim.h: Delete.
7681 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
7682 hosts.
7683 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
7684 mips*-dec-mach3* targets.
7685
b68767c1
MC
76862003-02-04 Michael Chastain <mec@shout.net>
7687
7688 * NEWS: Fix typo: sepcifying -> specifying.
7689
5ae7ca1d
MC
76902003-02-04 Michael Chastain <mec@shout.net>
7691
7692 * dwarfread.c: Add documentation on the state of dwarf-1,
7693 looking towards obsoletion.
7694
d08a4280
MC
76952003-02-03 Michael Chastain <mec@shout.net>
7696
7697 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
7698 gdb/testsuite/gdb.c++/pr-1023.exp.
7699
e9be73e4
AC
77002003-02-04 Andrew Cagney <ac131313@redhat.com>
7701
7702 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
7703 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
7704
7705 * utils.c (init_page_info): Delete reference to MPW in comments.
7706 * main.c (captured_main): Delete #ifdef MPW.
7707
05d57f6f
AC
77082003-02-04 Andrew Cagney <ac131313@redhat.com>
7709
8ffd9b1b 7710 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
7711 * monitor.c (monitor_expect): Obsolete reference to m32r.
7712 * configure.tgt: Mark m32r-*-elf* as obsolete.
7713 * MAINTAINERS: Mark m32k as obsolete.
7714 * m32r-rom.c: Obsolete file.
7715 * config/m32r/m32r.mt: Obsolete file.
7716 * config/m32r/tm-m32r.h: Obsolete file.
7717 * m32r-stub.c: Obsolete file.
7718 * m32r-tdep.c: Obsolete file.
7719
8b0e5691
AC
77202003-02-04 Andrew Cagney <ac131313@redhat.com>
7721
7722 * NEWS: Mention that the z8k-zilog-none is obsolete.
7723 * MAINTAINERS: Mark z8k as obsolete.
7724 * configure.tgt: Obsolete the z8k-*-coff* target.
7725 * config/z8k/z8k.mt: Obsolete file.
7726 * config/z8k/tm-z8k.h: Obsolete file.
7727 * z8k-tdep.c: Obsolete file.
7728
67f16606
AC
77292003-02-04 Andrew Cagney <ac131313@redhat.com>
7730
7731 * NEWS: Mention that the mn10200-elf is obsolete.
7732 * configure.tgt: Obsolete mn10200-*-* target.
7733 * breakpoint.c (update_breakpoints_after_exec): Update comment to
7734 mention that the mn10200 is obsolete.
7735 * breakpoint.h: Ditto.
7736 * MAINTAINERS: Mark the mn10200-elf as obsolete.
7737 * config/mn10200/mn10200.mt: Obsolete file.
7738 * config/mn10200/tm-mn10200.h: Obsolete file.
7739 * mn10200-tdep.c: Obsolete file.
7740
fd2299bd
AC
77412003-02-04 Andrew Cagney <ac131313@redhat.com>
7742
7743 * MAINTAINERS: Mark h8500 as obsolete.
7744 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
7745 * findvar.c (value_from_register): Ditto.
7746 * h8500-tdep.c: Mark file as obsolete.
7747 * config/h8500/h8500.mt: Ditto.
7748 * config/h8500/tm-h8500.h: Ditto.
7749 * NEWS: Mention that h8500 is obsolete.
7750
eb9a305d
DC
77512003-02-04 David Carlton <carlton@math.stanford.edu>
7752
7753 * objfiles.c (allocate_objfile): Always set name. Add comment at
7754 start of function.
7755 * jv-lang.c (get_dynamics_objfile): Add comment.
7756
406fc7fb
DC
77572003-02-04 David Carlton <carlton@math.stanford.edu>
7758
7759 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
7760 * printcmd.c (build_address_symbolic): Replace uses of
7761 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
7762 SYMBOL_NAME, and asm_demangle.
7763 Update copyright.
7764
93d91629
DC
77652003-02-04 David Carlton <carlton@math.stanford.edu>
7766
7767 * linespec.c (decode_compound): Extract code into
7768 lookup_prefix_sym.
7769 (lookup_prefix_sym): New function.
7770
1c5cb38e
DC
77712003-02-04 David Carlton <carlton@math.stanford.edu>
7772
7773 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
7774 FLOAT_COERCION_BADNESS.
7775 * gdbtypes.c (rank_one_type): Replace all uses of
7776 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
7777
0cf824c9
JB
77782003-02-04 Jim Blandy <jimb@redhat.com>
7779
7780 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
7781 section, let dwarf_macinfo_section point to it, not
7782 dwarf_loc_section.
7783
a2d356b0
DJ
77842003-02-04 Daniel Jacobowitz <drow@mvista.com>
7785
7786 Pointed out by Anton Blanchard <anton@samba.org>.
7787 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
7788 (ppc_linux_at_sigtramp_return_path): Use it.
7789
2de7ced7
DJ
77902003-02-04 Daniel Jacobowitz <drow@mvista.com>
7791
7792 * defs.h (streq): Add prototype.
7793 * utils.c (streq): New function.
7794
7795 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
7796 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
7797 * mdebugread.c (new_symbol): Likewise.
7798 * stabsread.c (define_symbol): Likewise.
7799 * coffread.c (process_coff_symbol): Likewise.
7800 * dwarfread.c (new_symbol): Likewise.
7801
7802 * minsyms.c (prim_record_minimal_symbol_and_info): Use
7803 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
7804 here.
7805 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
7806 SYMBOL_INIT_DEMANGLED_NAME.
7807 * objfiles.c: Include "hashtab.h".
7808 (allocate_objfile): Call htab_set_functions_ex for the
7809 demangled_names_hash.
7810 (free_objfile): Call htab_delete for the demangled_names_hash.
7811 * objfiles.h (struct htab): Add declaration.
7812 (struct objfile): Add demangled_names_hash.
7813 * symfile.c: Include "hashtab.h".
7814 (reread_symbols): Call htab_delete for the demangled_names_hash.
7815 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
7816 SYMBOL_NAME in the bcache.
7817 * symtab.c: Include "hashtab.h". Update comments.
7818 (create_demangled_names_hash, symbol_set_names): New functions.
7819 (symbol_find_demangled_name): New function, broken out from
7820 symbol_init_demangled_names.
7821 (symbol_init_demangled_names): Use it.
7822 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
7823 (SYMBOL_SET_NAMES): New macro.
7824 (symbol_set_names): Add prototype.
7825
15831452
JB
78262003-02-03 Jim Blandy <jimb@redhat.com>
7827
7828 Use a single, consistent representation for an empty minimal
7829 symbol table in an objfile.
7830 * objfiles.c (terminate_minimal_symbol_table): New function.
7831 (allocate_objfile): Call it.
7832 * objfiles.h (terminate_minimal_symbol_table): New declaration.
7833 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 7834 non-NULL.
15831452
JB
7835 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
7836 objfile has minimal symbols, compare minimal_symbol_count to zero,
7837 instead of comparing msymbols with NULL.
7838 * objfiles.c (have_minimal_symbols): Same.
7839 * solib-sunos.c (solib_add_common_symbols): Call
7840 terminate_minimal_symbol_table.
7841 * symfile.c (reread_symbols): Same.
8ffd9b1b 7842
ffc65945
KB
78432003-02-03 Kevin Buettner <kevinb@redhat.com>
7844
7845 * s390-tdep.c (s390_address_class_type_flags)
7846 (s390_address_class_type_flags_to_name)
7847 (s390_address_class_name_to_type_flags): New functions.
7848 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
7849 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
7850
f211c6d4
MS
78512003-02-03 Michael Snyder <msnyder@redhat.com>
7852
7853 * arm-tdep.c: Fix spell-o in comment.
7854
659b0389
ML
78552003-02-03 Michal Ludvig <mludvig@suse.cz>
7856
7857 * dwarf2cfi.c (pointer_encoding): Added new parameter.
7858 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 7859 error messages to contain BFD filename.
659b0389 7860
3b31d625
EZ
78612003-02-02 Elena Zannoni <ezannoni@redhat.com>
7862
997b089a 7863 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
7864 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
7865 (do_mixed_source_and_assembly): Use
7866 make_cleanup_ui_out_tuple_begin_end and
7867 make_cleanup_ui_out_tuple_begin_end.
7868 (do_mixed_source_and_assembly): Ditto.
7869 * thread.c (do_captured_list_thread_ids): Ditto.
7870 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
7871 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
7872 ui_out_tuple_end): Delete prototypes.
7873 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
7874 ui_out_list_end, ui_out_tuple_end): Delete.
7875
7876 From Kevin Buettner <kevinb@redhat.com>:
7877 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
7878 * ui-out.c (make_cleanup_ui_out_table_begin_end)
7879 (do_cleanup_table_end): New functions.
7880 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
7881 Use cleanups to invoke_ui_out_tuple_end().
7882 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
7883 * cli/cli-setshow.c (cmd_show_list): Use
7884 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 7885
5b181d62
AC
78862003-02-02 Andrew Cagney <ac131313@redhat.com>
7887
7888 * frame.c (frame_unwind_register): New function.
7889 (frame_unwind_unsigned_register): Use.
7890 (frame_unwind_signed_register): Use.
7891 (frame_read_register): New function.
7892 * frame.h (frame_unwind_register): Declare.
7893 (frame_read_register): Declare.
7894
7895 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
7896 and frame_unwind_register instead of read_memory, write_register
7897 and deprecated_write_register_bytes.
7898
5f601589
AC
78992003-02-02 Andrew Cagney <ac131313@redhat.com>
7900
7901 * frame.h: Note that namelen can be negative.
7902 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
7903 NAME's length.
7904
7905 * NEWS: Mention that the d10v's `regs' command is deprecated.
7906 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
7907 (d10v_print_registers_info): New function.
7908 (show_regs): Call d10v_print_registers_info.
7909 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
7910
6a3fe0a4
MK
79112003-02-02 Mark Kettenis <kettenis@gnu.org>
7912
7913 * stack.c (print_frame_info): Restore call to annotate_frame_begin
7914 lost in the previous patch.
7915
075559bc
AC
79162003-02-01 Andrew Cagney <ac131313@redhat.com>
7917
7918 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
7919 * stack.c (print_frame_info_base): Output complete FRAME tuple
7920 for synthesized frames.
075559bc 7921
6789195b
AC
79222003-02-02 Andrew Cagney <ac131313@redhat.com>
7923
7924 * mips-nat.c (zerobuf): Delete.
7925 (fetch_inferior_registers): Alloc local zerobuf.
7926 (fetch_core_registers): Alloc local zerobuf.
7927 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
7928 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
7929 * thread-db.c (thread_db_store_registers): Ditto.
7930 * sh-tdep.c (sh_do_register): Ditto.
7931 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
7932 * remote-sim.c (gdbsim_store_register): Ditto.
7933 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7934 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7935 * monitor.c (monitor_supply_register): Ditto.
7936 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
7937 * mips-nat.c (fetch_inferior_registers): Ditto.
7938 * m68klinux-nat.c (fetch_register): Ditto.
7939 * lynx-nat.c (fetch_inferior_registers): Ditto.
7940 (fetch_inferior_registers): Ditto.
7941 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
7942 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7943 (hpux_thread_store_registers): Ditto.
7944 * hppah-nat.c (fetch_register): Ditto.
7945 * hppab-nat.c (fetch_register): Ditto.
7946 * hppa-tdep.c (pa_register_look_aside): Ditto.
7947 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
7948 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
7949
e669114a
AC
79502003-02-01 Andrew Cagney <ac131313@redhat.com>
7951
7952 * gdbarch.sh: Explictly specify all method levels. When a
7953 variable with an empty level, provide a non-multi-arch default.
7954 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
7955 * gdbarch.h: Re-generate.
7956 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
7957 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
7958
9a043c1d
AC
79592003-02-01 Andrew Cagney <ac131313@redhat.com>
7960
7961 * defs.h (host_pointer_to_address): Delete declaration.
7962 (address_to_host_pointer): Delete declaration.
7963 * utils.c (host_pointer_to_address): Delete function.
7964 (address_to_host_pointer): Delete function.
7965 * procfs.c (procfs_address_to_host_pointer): New function.
7966 * procfs.c (proc_set_watchpoint): Use.
7967 (procfs_can_use_hw_breakpoint): Update comments.
7968 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
7969 (som_solib_add): Use.
7970 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
7971 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 7972
7ca9f392
AC
79732003-02-01 Andrew Cagney <ac131313@redhat.com>
7974
94bbfd30
AC
7975 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
7976 strlen d_name.
7977
7ca9f392
AC
7978 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
7979 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
7980 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
7981 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
7982 (define_symbol): Update.
7983 * symfile.c (generic_load): Remove references to nindy.
7984 * symtab.c: Remove references to nindy.
7985
31a85ea2
AC
79862003-02-01 Andrew Cagney <ac131313@redhat.com>
7987
7988 * infcmd.c (print_float_info): Delete code conditional on
7989 FLOAT_INFO.
7990 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
7991 * config/m68k/nm-apollo68b.h: Ditto.
7992 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
7993 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
7994 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
7995
f6e85fc8
MK
79962003-02-01 Mark Kettenis <kettenis@gnu.org>
7997
6015b6a0
MK
7998 * config/i386/tm-i386os9k.h: Removed.
7999
f7a30bdf
MK
8000 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
8001 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
8002 they're identical to i[3456]86-*-sysv* now.
8003 * config/i386/i386v32.mh: Removed.
8004 * config/i386/xm-i386v32.h: Removed.
8005 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
8006
28d52111
MK
8007 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
8008
4d3f6bce
MK
8009 * config/i386/i386dgux.mh: Removed.
8010 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
8011
f6e85fc8
MK
8012 * configure.in: Fix typo.
8013 * configure: Regenerated.
8014
53955967
DC
80152003-01-31 David Carlton <carlton@math.stanford.edu>
8016
8017 * dwarf2read.c (dwarf2_locate_sections): Set
8018 dwarf_ranges_section.
8019
b1364885
AC
80202003-01-31 Andrew Cagney <ac131313@redhat.com>
8021
8dbb1c65
AC
8022 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
8023 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 8024
8731e58e
AC
8025 * utils.c: Re-indent.
8026
b1364885
AC
8027 * config/djgpp/fnchange.lst: Delete nindy files.
8028 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
8029 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
8030 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
8031 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
8032 * nindy-share/README, nindy-share/Onindy.c: Delete files.
8033 * nindy-tdep.c, nindy-share/Makefile: Delete files.
8034 * Makefile.in (init.c): Remove nindy references.
8035 (saber_gdb): Delete rule.
8036 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
8037 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
8038 and a68v-nat.c.
8039 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
8040 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
8041 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
8042 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
8043 nindy-share/stop.h.
8044 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
8045 * saber.suppress: Delete file.
8046
086df311
DJ
80472003-01-31 Daniel Jacobowitz <drow@mvista.com>
8048
8049 * dbxread.c (stabs_data): New static variable.
8050 (fill_symbuf): Support an in-memory buffer for stabs data.
8051 (stabs_seek): New function.
8052 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
8053 (read_ofile_symtab): Use stabs_seek.
8054 (elfstab_build_psymtabs): Take an asection* instead of
8055 an offset and size. Relocate the stabs data if necessary.
8056 Save the section* for dbx_psymtab_to_symtab.
8057 * dwarf2read.c: Add section variables for each debug section.
8058 (dwarf2_locate_sections): Fill them in.
8059 (dwarf2_read_section): Take an asection* argument.
8060 Relocate the section contents if necessary.
8061 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
8062 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
8063 it to dwarf2_read_section.
8064 (dwarf2_build_frame_info): Update callers.
8065 * elfread.c (elf_symfile_read): Update call to
8066 elfstab_build_psymtabs.
8067 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
8068 (DBX_STAB_SECTION): New macro.
8ffd9b1b 8069 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
8070 * symfile.c (symfile_dummy_outputs): New function.
8071 (symfile_relocate_debug_section): New function.
8072 * symfile.h (symfile_relocate_debug_section): Add prototype.
8073
87d1b352
RH
80742003-01-31 Richard Henderson <rth@redhat.com>
8075
8076 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
8077 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
8078 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
8079 * alpha-tdep.c (alpha_register_name): Add "unique".
8080 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
8081 (ALPHA_UNIQUE_REGNUM): New.
8082 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
8083
c48861fb
AC
80842003-01-31 Andrew Cagney <ac131313@redhat.com>
8085
8086 * README: Remove reference to Ericsson 1800 monitor.
8087 * Makefile.in (remote-es.o): Delete rule.
8088 (ALLDEPFILES): Delete remote-es.c.
8089 * remote-es.c: Delete file.
8090 * config/m68k/es1800.mt: Delete file.
8091 * config/djgpp/fnchange.lst: Update.
8092 * configure.tgt: Delete m68*-ericsson-* target.
8093
d764a824
AF
80942003-01-31 Adam Fedor <fedor@gnu.org>
8095
8096 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
8097 Remove duplicate/shadowing variable of same name.
8098
fe36c4f4
JB
80992003-01-30 Jim Blandy <jimb@redhat.com>
8100
8101 * symfile.c (find_separate_debug_file): Assert that the objfile's
8102 directory name we compute ends with a slash, and then assume that
8103 that's so everywhere we use it.
8104
cb741690
DJ
81052003-01-30 Daniel Jacobowitz <drow@mvista.com>
8106
8107 * valops.c (value_assign): Flush frame cache after stores to memory
8108 also.
8109
96ee5227
AC
81102003-01-30 Andrew Cagney <ac131313@redhat.com>
8111
8112 * Makefile.in (mon960-rom.o): Delete rule.
8113 * mon960-rom.c: Delete file.
8114
7f6104a9
AC
81152003-01-30 Andrew Cagney <ac131313@redhat.com>
8116
8117 * d10v-tdep.c: Include "frame-unwind.h".
8118 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
8119 list.
8120 (next_addr, uses_frame): Delete.
8121 (struct d10v_unwind_cache): Define.
8122 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
8123 Use info instead of next_addr and uses_frame globals.
8124 (d10v_frame_init_saved_regs): Delete function.
8125 (d10v_init_extra_frame_info): Delete function.
8126 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
8127 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
8128 init_frame_pc or frame_saved_pc.
8129 (d10v_pop_frame): Delete function.
8130 (do_d10v_pop_frame): Delete function.
8131 (d10v_frame_chain): Delete function.
8132 (d10v_frame_chain_valid): Delete function.
8133 (d10v_frame_pc_unwind): New function.
8134 (d10v_frame_id_unwind): New function.
8135 (saved_regs_unwinder): New function.
8136 (d10v_frame_register_unwind): New function.
8137 (d10v_frame_pop): New function.
8138 (d10v_frame_unwind): New variable.
8139 (d10v_frame_p): New function.
8140 (d10v_frame_saved_pc): Delete function.
8141 * Makefile.in (d10v-tdep.o): Update dependencies.
8142
cad2e848
JB
81432003-01-30 J. Brobecker <brobecker@gnat.com>
8144
8145 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
8146 causing some regressions due to a change in the default value
8147 for this macro.
8148
af34e669
DJ
81492003-01-29 Richard Henderson <rth@redhat.com>
8150 Elena Zannoni <ezannoni@redhat.com>
8151 Daniel Jacobowitz <drow@mvista.com>
8152
8153 Fix PR gdb/961.
8ffd9b1b 8154 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
8155 variables.
8156 (RANGES_SECTION): New.
8157 (dwarf_ranges_buffer): New variable.
8158 (struct comp_unit_head): Add member "die".
8159 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
8160 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
8161 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
8162 (dwarf2_locate_sections): Likewise.
8163 (dwarf2_build_psymtabs): Read .debug_ranges.
8164 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
8165 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
8166 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
8167 Look for DW_AT_ranges and return the bounding box.
8168
baa93fa6
CF
81692003-01-29 Brian Ford <ford@vss.fsi.com>
8170
8171 * win32-nat.c (cygwin_pid): Removed as unused.
8172 (child_attach): Try fall back to Cygwin pid.
8173
c63f977f
JB
81742003-01-29 Jim Blandy <jimb@redhat.com>
8175
8176 * objfiles.h (struct objfile): Doc fix.
8177
d62d1979
AC
81782003-01-29 Andrew Cagney <ac131313@redhat.com>
8179
8180 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
8181 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
8182 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
8183 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
8184 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
8185 (FRAME_SAVED_PC): Change to a function with predicate.
8186 * gdbarch.h, gdbarch.c: Re-generate.
8187
1ae18a04
AC
81882003-01-28 Andrew Cagney <ac131313@redhat.com>
8189
52287340
AC
8190 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
8191
1ae18a04
AC
8192 * complaints.c (complain): Delete function.
8193 * complaints.h (struct deprecated_complaint): Delete definition.
8194 (complain): Delete declaration.
8195
f2c16bd6
KB
81962003-01-28 Kevin Buettner <kevinb@redhat.com>
8197
8198 * mips-tdep.c (mips_init_extra_frame_info): Return early for
8199 dummy frames.
8200
a94dd1fd
AC
82012003-01-27 Andrew Cagney <ac131313@redhat.com>
8202
8203 * sentinel-frame.h, sentinel-frame.c: New files.
8204 * Makefile.in (frame.o): Update dependencies.
8205 (SFILES): Add sentinel-frame.c.
8206 (sentinel_frame_h): Define.
8207 (COMMON_OBS): Add sentinel-frame.o.
8208 (sentinel-frame.o): Specify dependencies.
8209 * frame.c: Include "sentinel-frame.h".
8210 (frame_register_unwind): Rewrite assuming that there is always a a
8211 ->next frame.
8212 (frame_register, generic_unwind_get_saved_register): Ditto.
8213 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
8214 (create_sentinel_frame, unwind_to_current_frame): New functions.
8215 (get_current_frame): Rewrite using create_sentinel_frame and
8216 unwind_to_current_frame. When possible, always create a frame.
8217 (create_new_frame): Set next to the sentinel frame.
8218 (get_next_frame): Rewrite. Don't go below the level 0 frame.
8219 (deprecated_update_frame_pc_hack): Update the next frame's PC and
8220 ID cache when necessary.
8221 (frame_saved_regs_id_unwind): Use frame_relative_level.
8222 (deprecated_generic_get_saved_register): Use frame_relative_level,
8223 get_frame_saved_regs, get_frame_pc, get_frame_base and
8224 get_next_frame.
8225 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
8226 frame_register.
8227
5378adc4
DJ
82282003-01-27 Daniel Jacobowitz <drow@mvista.com>
8229
8230 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
8231
51ee2ddc
DJ
82322003-01-27 Daniel Jacobowitz <drow@mvista.com>
8233
8234 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
8235 (maintenance_set_profile_cmd): Use error () instead of warning ().
8236
d9feb4e7
DJ
82372003-01-27 Daniel Jacobowitz <drow@mvista.com>
8238
8239 * configure.in: Check that -pg works if using --enable-profiling.
8240 Check for monstartup and _mcleanup regardless of --enable-profiling.
8241 * maint.c: Check for monstartup and _mcleanup before using them.
8242 * config.in: Regenerated.
8243 * configure: Regenerated.
8244
2d188dd3
NC
82452003-01-24 Nick Clifton <nickc@redhat.com>
8246
8247 * Add sh2e support:
8248
8249 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
8250
8251 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
8252 (sh2e_show_regs): New.
8253 (sh_gdbarch_init): Handle bfd_mach_sh2e.
8254 * config/sh/tm-sh.h: Added sh2e to comments.
8255
cb3c37b2
JB
82562003-01-23 Jim Blandy <jimb@redhat.com>
8257
8258 * symfile.c (syms_from_objfile): Don't print the "(no debugging
8259 symbols found)" message here; we haven't checked for a separate
8260 debug info file yet, so we don't know yet.
8261 (symbol_file_add_with_addrs_or_offsets): Print it here, after
8262 we've looked everywhere. Also, there's no need to print a special
8263 message when we're loading the separate debug info file: the one
8264 symbol_file_add prints is fine.
8265
5b5d99cf
JB
82662003-01-23 Alexander Larsson <alexl@redhat.com>
8267 Jim Blandy <jimb@redhat.com>
8268
8269 Add support for executables whose debug info has been separated
8270 out into a separate file, leaving only a link behind.
8271 * objfiles.h (struct objfile): New fields: separate_debug_objfile
8272 and separate_debug_objfile_backlink.
8273 (put_objfile_before): New declaration.
8274 * symfile.c: #include "filenames.h".
8275 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
8276 debug info in a separate file, read that, too. Save the addrs
8277 argument, so we can use it again to read the separated debug info;
8278 syms_from_objfile modifies the table we pass it.
8279 (reread_symbols): After re-reading an objfile, call
8280 reread_separate_symbols to refresh its separate debug info
8281 objfile, if it has one.
8282 (reread_separate_symbols, find_separate_debug_file,
8283 get_debug_link_info, separate_debug_file_exists): New functions.
8284 (debug_file_directory): New global var.
8285 (_initialize_symfile): Initialize debug_file_directory, and
8286 provide the new `set debug-file-directory' command to let the user
8287 change it.
8288 * objfiles.c (free_objfile): If this objfile has its debug info in
8289 a separate objfile, free that one too. If this is itself a
8290 separate debug info objfile, clear our parent's backlink.
8291 (put_objfile_before): New function.
8292 * utils.c (gnu_debuglink_crc32): New function.
8293 * defs.h (gnu_debuglink_crc32): New declaration.
8294 * Makefile.in (symfile.o): Note dependency on "filenames.h".
8295 * configure.in: Handle --with-separate-debug-dir config option.
8296 * acinclude.m4 (AC_DEFINE_DIR): New macro.
8297 * acconfig.h (DEBUGDIR): New macro.
8298 * configure, aclocal.m4, config.in: Regenerated.
8299
7e8580c1
JB
83002003-01-22 Jim Blandy <jimb@redhat.com>
8301
7904e09f
JB
8302 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
8303 like the old symbol_file_add, but taking new arguments: you can
8304 now pass in either a `struct section_addr_info' list to say where
8305 each section is loaded, or a `struct section_offsets' table. Pass
8306 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 8307 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
8308 with the appropriate quiescent values for the new arguments.
8309
7e8580c1
JB
8310 * symfile.c: #include "gdb_assert.h".
8311 (syms_from_objfile): Add the ability to pass in a section offset
8312 table directly, as an alternative to the section_addr_info table.
8313 Document arguments better.
8314 (symbol_file_add): Pass extra arguments to syms_from_objfile.
8315 * symfile.h (syms_from_objfile): Update declaration.
8316 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
8317 syms_from_objfile.
8318 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
8319
d28f9cdf
DJ
83202003-01-22 Daniel Jacobowitz <drow@mvista.com>
8321
8322 Original patch by Tom Tromey <tromey@cygnus.com> and
8323 Jason Molenda <jmolenda@apple.com>.
8324 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
8325 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
8326 * NEWS: Mention profiling.
8327 * configure.in (--enable-gdbtk): Fix typo.
8328 (--enable-profiling): New. Set PROFILE_CFLAGS.
8329 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
8330 Fill in function.
8331 (profiling_state): New variable.
8332 (mcleanup_wrapper): New function.
8333 (_initialize_maint): Remove NOTYET, fix call to
8334 add_setshow_boolean_cmd for "maint set profile".
8335 * configure: Regenerated.
8336
df21e465
MH
83372003-01-21 Martin M. Hunt <hunt@redhat.com>
8338
8339 * Makefile.in (install-gdbtk): Install PNG images too.
8340
73c1f219
AC
83412003-01-21 Andrew Cagney <ac131313@redhat.com>
8342
8343 * exec.c (text_start): Delete global variable.
8344 (exec_file_attach): Make text_start local to the function.
8345 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
8346 * valops.c (hand_function_call): Delete code that handles
8347 BEFORE_TEXT_END and AFTER_TEXT_END.
8348 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
8349 of CALL_DUMMY_LOCATION.
8350 * gdbarch.c: Regenerate.
8351 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
8352 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
8353 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
8354 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
8355 (text_end): Delete extern declaration.
8356
eb4f72c5
AC
83572003-01-21 Andrew Cagney <ac131313@redhat.com>
8358
8359 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
8360 * blockframe.c (backtrace_below_main): Move to "frame.c".
8361 (frame_chain_valid): Delete check for backtrace_below_main.
8362 (_initialize_blockframe): Delete initialization, move ``set
8363 backtrace-below-main'' command to "frame.c".
8364 (do_flush_frames_sfunc): Delete function.
8365 * frame.c: Include "command.h" and "gdbcmd.h".
8366 (frame_type_from_pc): New function.
8367 (create_new_frame): Use frame_type_from_pc.
8368 (legacy_get_prev_frame): New function.
8369 (get_prev_frame): Rewrite. When an old style frame, call
8370 legacy_get_prev_frame. Otherwize, unwind the PC first.
8371 (_initialize_frame): Add ``set backtrace-below-main'' command.
8372 * Makefile.in (frame.o): Update dependencies.
8373
778ce8cc
AC
83742003-01-19 Andrew Cagney <ac131313@redhat.com>
8375
8376 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
8377 DEPRECATED_REGISTERS_INFO.
8378
01c193c8
AC
83792003-01-19 Andrew Cagney <ac131313@redhat.com>
8380
8381 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
8382 Maintainers'. Update `Various Maintainers'.
8383
dedc2a2b
AC
83842003-01-19 Andrew Cagney <ac131313@redhat.com>
8385
8386 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
8387 * gdbarch.sh (POP_FRAME): Change to function with predicate.
8388 Suppress actual parameters when `-'.
8389 * gdbarch.h, gdbarch.c: Regenerate.
8390
b7261c70
AC
83912003-01-19 Andrew Cagney <ac131313@redhat.com>
8392
8393 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
8394 code handling dummy frames.
8395
dbe9fe58
AC
83962003-01-19 Andrew Cagney <ac131313@redhat.com>
8397
8398 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
8399 (struct frame_unwind): Add field pop.
8400 * frame.h (frame_pop): Declare.
8401 * frame.c (frame_saved_regs_pop): New function.
8402 (trad_frame_unwinder): Add frame_saved_regs_pop.
8403 (frame_pop): New function.
8404 * dummy-frame.c (dummy_frame_pop): New function.
8405 (discard_innermost_dummy): New function.
8406 (generic_pop_dummy_frame): Use discard_innermost_dummy.
8407 (dummy_frame_unwind): Add dummy_frame_pop.
8408 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
8409 * valops.c (hand_function_call): Ditto.
8410 * stack.c (return_command): Ditto.
8411
570b8f7c
AC
84122003-01-18 Andrew Cagney <ac131313@redhat.com>
8413
8414 * cris-tdep.c: Fix function declaration indentation.
8415 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
8416 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
8417 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
8418 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
8419 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
8420 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
8421
84222003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
8423
8424 * README (Unpacking and Installation -- quick overview):
8425 Warn against ".../gdb-5.3/gdb/configure".
8426
494cca16
AC
84272003-01-18 Andrew Cagney <ac131313@redhat.com>
8428
8429 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
8430 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
8431 (struct frame_unwind): Declare opaque.
8432 (dummy_frame_p): Declare function.
8433 * dummy-frame.c (dummy_frame_id_unwind): Make static.
8434 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
8435 * dummy-frame.c: Include "frame-unwind.h".
8436 (dummy_frame_p): New function.
8437 (dummy_frame_unwind): New variable.
8438 * frame.c: Include "frame-unwind.h".
8439 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
8440 to use the new unwind field.
8441 (set_unwind_by_pc): Delete function.
8442 (create_new_frame, get_prev_frame): Set unwind field using
8443 frame_unwind_find_by_pc.
8444 (trad_frame_unwind, trad_frame_unwinder): New variables.
8445 * frame.h (trad_frame_unwind): Declare variable.
8446 (frame_id_unwind_ftype): Delete declaration.
8447 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
8448 (struct frame_unwind): Declare opaque.
8449 (struct frame_info): Replace the fields id_unwind, pc_unwind and
8450 register_unwind with a single unwind pointer.
8451 * frame-unwind.h, frame-unwind.c: New files.
8452 * Makefile.in (SFILES): Add frame-unwind.c.
8453 (frame_unwind_h): Define.
8454 (COMMON_OBS): Add frame-unwind.o.
8455 (frame-unwind.o): Specify dependencies.
8456 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 8457
4efb68b1
AC
84582003-01-18 Andrew Cagney <ac131313@redhat.com>
8459
8460 * ada-valprint.c: Eliminate PTR.
8461 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
8462 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
8463 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
8464 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
8465 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
8466 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
8467 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 8468
a84d24ee
AC
84692003-01-17 Andrew Cagney <ac131313@redhat.com>
8470
762f08a3
AC
8471 * main.c (captured_main): Don't use PTR.
8472 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
8473 * gdbtypes.c (lookup_primitive_typename): Ditto.
8474 (lookup_struct_elt_type): Ditto.
8475 * f-valprint.c (info_common_command): Ditto.
8476 (list_all_visible_commons): Ditto.
8477 * jv-typeprint.c (java_type_print_base): Ditto.
8478
a84d24ee
AC
8479 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
8480 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
8481 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
8482 i386-interix-nat.c and i386-interix-tdep.c. Rename
8483 m68klinux-nat.c and m68klinux-tdep.c. Rename
8484 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
8485 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
8486 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
8487 * main.c (captured_main): Use xfree, not free.
8488
c170fb60
AC
84892003-01-16 Andrew Cagney <ac131313@redhat.com>
8490
8491 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
8492 ID back using a parameter.
8493 * frame.c (frame_id_unwind): Update call.
8494 (frame_saved_regs_id_unwind): Update.
8495 * dummy-frame.c (dummy_frame_id_unwind): Update function.
8496 * dummy-frame.h (struct frame_id): Add opaque declaration.
8497 (dummy_frame_id_unwind): Update declaration.
8498
867f3898
AC
84992003-01-15 Andrew Cagney <ac131313@redhat.com>
8500
8501 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
8502
40622be8 85032003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 8504
40622be8 8505 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 8506
ae66c1fc
EZ
85072003-01-14 Elena Zannoni <ezannoni@redhat.com>
8508
997b089a 8509 Fix PR gdb/898
ae66c1fc
EZ
8510 * breakpoint.c (until_break_command): Add new argument. Use it to
8511 decide whether to stop only at the current frame or not.
8512 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 8513 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
8514 call.
8515 (advance_command): New function.
8516 (_initialize_infcmd): Update help string for 'until' command.
8517 Add new 'advance' command.
8518
a04257e6
DC
85192003-01-14 David Carlton <carlton@math.stanford.edu>
8520
8521 * linespec.c (decode_line_1): Normalize comments.
8522 (set_flags): Ditto.
8523 (locate_first_half): Ditto.
8524 (decode_compound): Ditto.
8525 (symtab_from_filename): Ditto.
8526 (decode_all_digits): Ditto.
8527 (decode_dollar): Ditto.
8528 (find_methods): Ditto.
8529 (find_toplevel_char): Ditto.
8530
1bac305b
AC
85312003-01-13 Andrew Cagney <ac131313@redhat.com>
8532
8533 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
8534 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
8535 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
8536 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
8537 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
8538 * language.c, language.h, m32r-tdep.c: Update copyright.
8539 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
8540 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
8541 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
8542 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
8543 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
8544 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
8545
25caa7a8
EZ
85462003-01-13 Elena Zannoni <ezannoni@redhat.com>
8547
8548 * stabsread.h (process_later, resolve_cfront_continuation):
8549 Obsolete.
8550 Update copyright years.
8551 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
8552 Update copyright year.
8553 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 8554 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
8555 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
8556 Update copyright year.
8557 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
8558 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
8559 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
8560 (parse_partial_symbols): Obsolete cfront support.
8561 * stabsread.c
8562 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
8563 macros.
8564 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
8565 read_cfront_baseclasses, read_cfront_member_functions,
8566 resolve_cfront_continuation,read_cfront_static_fields,
8567 copy_cfront_struct_fields): Obsolete functions.
8568 (define_symbol, read_one_struct_field): Obsolete cfront support.
8569 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
8570 Update Copyright year.
8571
7789c6f5
EZ
85722003-01-13 Elena Zannoni <ezannoni@redhat.com>
8573
8574 * stack.c (print_frame_info, print_stack_frame_base_stub,
8575 print_stack_frame_base, show_and_print_stack_frame_stub,
8576 show_and_print_stack_frame, print_only_stack_frame_stub,
8577 print_only_stack_frame): Delete functions.
8578 (print_stack_frame_stub): Call print_frame_info instead of
8579 print_frame_info_base.
8580 (print_frame_info_base): Rename to print_frame_info.
8581 (backtrace_command_1): Call print_frame_info, instead of
8582 print_frame_info_base.
8583 (current_frame_command): Call print_stack_frame, instead of
8584 print_only_stack_frame.
8585 (frame_command): Call print_stack_frame, instead of
8586 show_and_print_stack_frame.
8587 (up_command): Ditto.
8588 (down_command): Ditto.
8589 * frame.h (print_only_stack_frame): Delete prototype.
8590 * infrun.c (normal_stop): Call print_stack_frame, instead of
8591 show_and_print_stack_frame.
8592 * thread.c (info_threads_command): Call print_stack_frame, instead
8593 of print_only_stack_frame.
8594
3f5a3016
AC
85952003-01-13 Andrew Cagney <ac131313@redhat.com>
8596
d99ba314
AC
8597 * README (Graphical interface to GDB): Update URL. Point at
8598 gdb/links/.
8599
3f5a3016
AC
8600 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
8601 version match.
8602
083ae935
DJ
86032003-01-13 Daniel Jacobowitz <drow@mvista.com>
8604
8605 * symtab.c (find_pc_sect_line): Don't consider end-of-function
8606 lines.
8607
5365276c
DJ
86082003-01-13 Daniel Jacobowitz <drow@mvista.com>
8609
8610 * thread-db.c (attach_thread): Prototype.
8611 (struct private_thread_info): Remove lwpid. Add thread handle (th),
8612 thread information (ti), and valid flags (th_valid, ti_valid).
8613 (attach_thread): Move target_pid_to_str call to after the thread
8614 is added to GDB's list. Initialize the cache.
8615 (thread_get_info_callback, thread_db_map_id2thr)
8616 (thread_db_get_info): New functions.
8617 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
8618 (thread_db_store_registers, thread_db_thread_alive)
8619 (thread_db_get_thread_local_address): Use them.
8620 (thread_db_pid_to_str): Likewise. Return "Missing" instead
8621 of calling error() for threads in unknown state.
8622
8623 (clear_lwpid_callback): New function.
8624 (thread_db_resume): Use it to clear the cache.
8625
9fc30b6b
DJ
86262003-01-13 Daniel Jacobowitz <drow@mvista.com>
8627
8628 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
8629 (resume_callback): Remove dead code.
8630
8f871025
AC
86312003-01-13 Andrew Cagney <ac131313@redhat.com>
8632
8633 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
8634 predicate.
8635 * gdbarch.h, gdbarch.c: Regenerate.
8636 * stack.c (frame_info): Only initialize the saved registers when
8637 FRAME_INIT_SAVED_REGS_P.
8638 * frame.c (frame_saved_regs_register_unwind): Assert
8639 FRAME_INIT_SAVED_REGS_P.
8640 (deprecated_generic_get_saved_register): Ditto.
8641
3f565f1e
DJ
86422003-01-13 Daniel Jacobowitz <drow@mvista.com>
8643
8644 * source.c (openp): Squelch warning about "filename".
8645
072b1022
DJ
86462003-01-13 Daniel Jacobowitz <drow@mvista.com>
8647
8648 * source.c (openp): If the file does not exist don't necessarily
8649 search the path.
8650
973ccf8b
DJ
86512003-01-13 Daniel Jacobowitz <drow@mvista.com>
8652
8653 Fix PR gdb/872.
8654 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
8655 (integer_types_same_name_p): New function.
8656 (rank_one_type): Use it.
8657 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
8658
030292b7
DJ
86592003-01-13 Daniel Jacobowitz <drow@mvista.com>
8660
8661 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
8662 variables.
8663 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
8664 * configure.in: Add --with-sysroot.
8665 * configure: Regenerated.
8666 * main.c (gdb_sysroot): New variable.
8667 (captured_main): Initialize gdb_sysroot.
8668 * defs.h (gdb_sysroot): New extern declaration.
8669 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
8670
afb5d334
MC
86712003-01-12 Michael Chastain <mec@shout.net>
8672
8673 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
8674
751ceeb4
MC
86752003-01-12 Michael Chastain <mec@shout.net>
8676
8677 * top.c (print_gdb_version): Bump copyright year to 2003.
8678
94cd26f8
DC
86792003-01-12 David Carlton <carlton@bactrian.org>
8680
8681 * linespec.c (symtab_from_filename): Rename variable 's' to
8682 'file_symtab'.
8683
1ce79225
AC
86842003-01-12 Andrew Cagney <ac131313@redhat.com>
8685
8686 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
8687 dummy frame.
8688 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
8689
fa1fd571
AC
86902003-01-12 Andrew Cagney <ac131313@redhat.com>
8691
8692 * d10v-tdep.c: Include "gdb_assert.h".
8693 (d10v_store_return_value): Rewrite to match current interface.
8694 (d10v_extract_struct_value_address): Ditto.
8695 (d10v_extract_return_value): Ditto.
8696 (d10v_gdbarch_init): Set store_restore_value,
8697 extract_struct_value_address and extract_return_value.
8698
68b8d23e
JB
86992003-01-12 J. Brobecker <brobecker@gnat.com>
8700
8701 * hpread.c (set_namestring): New procedure replacing the
8702 SET_NAMESTRING macro.
8703 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
8704 by calls to set_namestring.
8705
87062003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
8707
8708 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
8709 a compilation warning.
8710 (hpread_process_one_debug_symbol): Likewise.
8711
88d262ca
DC
87122003-01-10 David Carlton <carlton@math.stanford.edu>
8713
8714 * linespec.c (decode_line_1): Rename variable 's' to
8715 'file_symtab'.
8716 (decode_all_digits): Rename argument 's' to 'file_symtab'.
8717 (decode_dollar): Ditto.
8718 (decode_variable): Ditto.
8719 (symbol_found): Ditto.
8720
86669319
MC
87212003-01-09 Michael Chastain <mec@shout.net>
8722
8723 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
8724
616a9dc4
CV
87252003-01-07 Corinna Vinschen <vinschen@redhat.com>
8726
8727 * win32-nat.c (set_process_privilege): New function.
8728 (child_attach): Call set_process_privilege() to enable the
8729 SE_DEBUG_NAME user privilege if available in process token.
8730
3269bcfa
JB
87312003-01-10 J. Brobecker <brobecker@gnat.com>
8732
8733 * hpread.c (hpread_process_one_debug_symbol): Fix a small
8734 compilation error in the previous revision.
8735
2b0ee454
DC
87362003-01-09 David Carlton <carlton@math.stanford.edu>
8737
8738 * linespec.c: Update copyright.
8739
b3ba1b44
DJ
87402003-01-09 Daniel Jacobowitz <drow@mvista.com>
8741
8742 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
8743 than inferior_ptid.
8744 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
8745
4ef3f3be
AC
87462003-01-09 Andrew Cagney <ac131313@redhat.com>
8747
479ab5a0
AC
8748 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
8749 Update comments.
8750 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
8751 (frame_saved_regs_zalloc): Update.
8752 (frame_saved_regs_register_unwind): Update.
8753 (create_new_frame): Update.
8754 (get_prev_frame): Update.
8755 (frame_extra_info_zalloc): Update.
8756 (deprecated_get_frame_saved_regs): Update.
8757 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
8758 * cris-tdep.c: Update comment.
8759
bde58177
AC
8760 * somsolib.h: Fix function indentation.
8761 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
8762 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
8763 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
8764 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
8765 * somsolib.c, inftarg.c: Remove assignment in if conditional.
8766
4ef3f3be
AC
8767 * infrun.c (follow_fork): Use ISO C definition.
8768 * expprint.c (print_subexp): Use xfree instead of free.
8769 * charset.c: Include "gdb_string.h" instead of <string.h>.
8770 (register_iconv_charsets): Use ISO C definition.
8771 (host_charset, target_charset): Ditto.
8772 * Makefile.in (charset.o): Update dependencies.
8773 (mi-cmd-env.o): Update dependencies.
8774
1c615f7a
AC
87752003-01-08 Andrew Cagney <cagney@redhat.com>
8776
8777 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
8778 get_frame_base.
8779
c9a1dc08
AC
87802003-01-08 Andrew Cagney <ac131313@redhat.com>
8781
8782 * gdb_mbuild.sh: Add --keep option. When specified, keep the
8783 build directories. Save edited gdb output in Mbuild.log. If a
8784 build fails, remove any final GDB executable.
8785
dbad9d94
AC
87862003-01-08 Andrew Cagney <ac131313@redhat.com>
8787
8788 * gdb_mbuild.sh: Edit the output of `maint print architecture'
8789 replacing hex constants with function names and stripping leading
8790 file name directory prefixes.
8791
8d357cca
AC
87922003-01-08 Andrew Cagney <cagney@redhat.com>
8793
8794 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
8795 get_frame_base.
8796
bca02a8a
DC
87972003-01-08 David Carlton <carlton@math.stanford.edu>
8798
8799 * linespec.c (decode_line_1): Move code into decode_variable.
8800 (decode_variable): New function.
8801
7f8ab3a0
AC
88022003-01-08 Andrew Cagney <ac131313@redhat.com>
8803
8804 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
8805
7b5849cc
AC
88062003-01-08 Andrew Cagney <cagney@redhat.com>
8807
8808 * cris-tdep.c (cris_frame_init_saved_regs): Use
8809 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
8810 saved_regs buffer.
8811 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8812 (sh64_nofp_frame_init_saved_regs): Ditto.
8813 (sh_fp_frame_init_saved_regs): Ditto.
8814 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
8815 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
8816 * mcore-tdep.c (analyze_dummy_frame): Ditto.
8817 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
8818
72a5efb3
DJ
88192003-01-08 Daniel Jacobowitz <drow@mvista.com>
8820
8821 * minsyms.c (lookup_minimal_symbol): Update comment.
8822 (lookup_minimal_symbol_text): Update comment. Use the hash table.
8823 (lookup_minimal_symbol_solib_trampoline): Likewise.
8824
11c02a10
AC
88252003-01-08 Andrew Cagney <cagney@redhat.com>
8826
aab3ea25
AC
8827 * d10v-tdep.c (d10v_init_extra_frame_info): Use
8828 frame_relative_level.
8829
da50a4b7
AC
8830 * alpha-tdep.c: Use get_frame_extra_info.
8831 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
8832 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
8833 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
8834 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
8835
11c02a10
AC
8836 * alpha-tdep.c: Use get_next_frame.
8837 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
8838 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
8839 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
8840 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
8841 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
8842 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
8843 * xstormy16-tdep.c: Ditto.
8ffd9b1b 8844
1e2330ba
AC
88452003-01-07 Andrew Cagney <cagney@redhat.com>
8846
8847 * alpha-tdep.c: Use get_frame_base.
8848 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
8849 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
8850 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
8851 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
8852 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
8853 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
8854 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
8855 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 8856
2d75187b
AC
88572003-01-07 Andrew Cagney <cagney@redhat.com>
8858
8859 * frame.c (deprecated_get_frame_context): New function.
8860 (deprecated_set_frame_context): New function.
8861 * frame.h (deprecated_get_frame_context): Declare.
8862 (deprecated_set_frame_context): Declare.
8863 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
8864 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 8865
483d36b2
AC
88662003-01-07 Andrew Cagney <cagney@redhat.com>
8867
8868 * frame.c (deprecated_set_frame_next_hack): New function.
8869 (deprecated_set_frame_prev_hack): New function.
8870 * frame.h (deprecated_set_frame_next_hack): Declare.
8871 (deprecated_set_frame_prev_hack): Declare.
8872 * mcore-tdep.c (analyze_dummy_frame): Use
8873 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
8874 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
8875
14e91ac5
DC
88762003-01-07 David Carlton <carlton@math.stanford.edu>
8877
8878 * linespec.c (decode_line_1): Move code into decode_dollar.
8879 (decode_dollar): New function.
8880
b0c6b05c
AC
88812003-01-07 Andrew Cagney <cagney@redhat.com>
8882
8883 * arm-tdep.c (arm_init_extra_frame_info): Use
8884 deprecated_update_frame_base_hack.
8885 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
8886 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
8887 (fix_frame_pointer): Ditto.
8888 (mn10300_analyze_prologue): Ditto.
8889
a00a19e9
AC
88902003-01-07 Andrew Cagney <cagney@redhat.com>
8891
8892 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
8893 extra_info using frame_extra_info_zalloc.
8894 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
8895 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
8896 (sh64_init_extra_frame_info): Ditto.
8897 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
8898 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
8899 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
8900 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
8901 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
8902 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
8903 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
8904 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
8905 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
8906 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
8907 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
8908 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
8909
8910 * mn10300-tdep.c (analyze_dummy_frame): Use
8911 deprecated_set_frame_extra_info_hack.
8912 * mcore-tdep.c (analyze_dummy_frame): Ditto.
8913
1fb4c65b
JB
89142003-01-07 J. Brobecker <brobecker@gnat.com>
8915
8916 * mdebugread.c (parse_symbol): Skip stProc entries which storage
8917 class is not scText. These do not define "real" procedures.
8918 (parse_partial_symbols): Likewise.
8919
9fe7d6bf
MS
89202003-01-06 Michael Snyder <msnyder@redhat.com>
8921
8922 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
8923
f6c609c4
AC
89242003-01-06 Andrew Cagney <ac131313@redhat.com>
8925
8926 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
8927 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
8928 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
8929 deprecated_frame_xmalloc_with_cleanup.
8930 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
8931 deprecated_frame_xmalloc.
8932 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
8933 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
8934
d995ff4b
AC
89352003-01-06 Andrew Cagney <cagney@redhat.com>
8936
84dc46cb
AC
8937 * x86-64-linux-tdep.c: Include "osabi.h".
8938 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
8939
d995ff4b
AC
8940 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
8941
66140c26
AC
89422003-01-06 Andrew Cagney <cagney@redhat.com>
8943
8944 * MAINTAINERS (Target Instruction Set Architectures): Update
8945 arm-elf. Can be built with -Werror, has been multiarched.
8946
8947 * value.h (unpack_long): Make buffer parameter constant.
8948 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
8949 * scm-lang.h (scm_parse): Ditto.
8950 * defs.h (extract_typed_address, extract_address): Ditto.
8951 (extract_long_unsigned_integer): Ditto.
8952 * inferior.h (unsigned_pointer_to_address): Ditto.
8953 (signed_pointer_to_address): Ditto.
8954 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
8955 * gdbarch.h, gdbarch.c: Regenerate.
8956 * findvar.c (extract_long_unsigned_integer): Update.
8957 (extract_address): Update.
8958 (extract_typed_address): Update.
8959 (unsigned_pointer_to_address): Update.
8960 * values.c (unpack_long): Update.
8961 (unpack_double): Update.
8962 (unpack_pointer): Update.
8963 (unpack_field_as_long): Update.
8964 * d10v-tdep.c (d10v_pointer_to_address): Update.
8965 * avr-tdep.c (avr_pointer_to_address): Update.
8966 * scm-lang.c (scm_unpack): Update.
8967 * findvar.c (signed_pointer_to_address): Update.
8968
b089b3da
ML
89692003-01-06 Michal Ludvig <mludvig@suse.cz>
8970
8ffd9b1b 8971 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
8972 since it is in i386-tdep.c.
8973
aff87235
JB
89742003-01-06 J. Brobecker <brobecker@gnat.com>
8975
8976 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
8977 failure introduced in the previous change.
8978
34f5e845
MC
89792003-01-05 Michael Chastain <mec@shout.net>
8980
8981 * README: Remove references to deleted remote-*.c files:
8982 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
8983 remote-nrom.c, remote-os9k.c, remote-udi.c.
8984
28bcfd30
MK
89852003-01-05 Mark Kettenis <kettenis@gnu.org>
8986
8987 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
8988 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
8989 i386_get_longjmp_target.
8990
15a5b3ee
AC
89912003-01-05 Andrew Cagney <ac131313@redhat.com>
8992
8993 * arm-tdep.c (prologue_cache): Change to a pointer.
8994 (_initialize_arm_tdep): Allocate prologue_cache.
8995 (check_prologue_cache): Update.
8996 (save_prologue_cache): Update.
8997 (arm_gdbarch_init): Update.
8998
c263362b
DJ
89992003-01-04 Daniel Jacobowitz <drow@mvista.com>
9000
9001 * stabsread.c (update_method_name_from_physname): Call complaint()
9002 instead of error.
9003
51603483
DJ
90042003-01-04 Daniel Jacobowitz <drow@mvista.com>
9005
9006 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
9007 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
9008 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
9009
9010 * blockframe.c: Include "gdbcmd.h" and "command.h".
9011 (backtrace_below_main): New variable.
9012 (file_frame_chain_valid, func_frame_chain_valid)
9013 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
9014 (generic_func_frame_chain_valid): Remove functions.
9015 (frame_chain_valid, do_flush_frames_sfunc): New functions.
9016 (_initialize_blockframe): New function.
9017 * Makefile.in (blockframe.o): Update dependencies.
9018 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
9019 comment. Call frame_chain_valid ().
9020 * frame.h: Remove old prototypes. Add prototype for
9021 frame_chain_valid and update comments to match.
9022 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
9023 Remove old comment.
9024 * gdbarch.h: Regenerated.
9025 * gdbarch.c: Regenerated.
9026
9027 * alpha-tdep.c (alpha_gdbarch_init): Don't call
9028 set_gdbarch_frame_chain_valid.
9029 * avr-tdep.c (avr_gdbarch_init): Likewise.
9030 * cris-tdep.c (cris_gdbarch_init): Likewise.
9031 * frv-tdep.c (frv_gdbarch_init): Likewise.
9032 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
9033 * i386-tdep.c (i386_svr4_init_abi): Likewise.
9034 (i386_nw_init_abi): Likewise.
9035 (i386_gdbarch_init): Likewise.
9036 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
9037 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
9038 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
9039 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
9040 * mips-tdep.c (mips_gdbarch_init): Likewise.
9041 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9042 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
9043 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9044 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9045 * s390-tdep.c (s390_gdbarch_init): Likewise.
9046 * sh-tdep.c (sh_gdbarch_init): Likewise.
9047 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
9048 * v850-tdep.c (v850_gdbarch_init): Likewise.
9049 * vax-tdep.c (vax_gdbarch_init): Likewise.
9050 * x86-64-tdep.c (x86_64_init_abi): Likewise.
9051
9052 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
9053 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
9054 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
9055 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
9056 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
9057 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
9058 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
9059 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
9060
b00a8037
DJ
90612002-01-04 Daniel Jacobowitz <drow@mvista.com>
9062
9063 * Makefile.in (acconfig_h): Remove incorrect macro.
9064 (config_h): Define.
9065 (osabi.o): Update dependencies.
9066 * configure.tgt: Set gdb_osabi based on target triplet.
9067 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
9068 * configure: Regenerated.
9069 * config.in: Regenerated.
9070 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
9071 (GDB_OSABI_DEFAULT): Define if not already defined.
9072 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
9073 (set_osabi_string): New variables.
9074 (gdbarch_register_osabi): Add new OS ABI to
9075 gdb_osabi_available_names.
9076 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
9077 (set_osabi, show_osabi): New functions.
9078 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
9079
4be87837
DJ
90802003-01-04 Daniel Jacobowitz <drow@mvista.com>
9081
9082 * arch-utils.c (gdbarch_info_init): Set osabi to
9083 GDB_OSABI_UNINITIALIZED.
9084 * gdbarch.sh: Add osabi to struct gdbarch and to struct
9085 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
9086 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
9087 * gdbarch.c: Regenerated.
9088 * gdbarch.h: Regenerated.
9089 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
9090 there's no BFD.
9091 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
9092 * osabi.h (enum gdb_osabi): Move to defs.h.
9093 (gdbarch_init_osabi): Update prototype.
9094 * defs.h (enum gdb_osabi): Moved here.
9095 * Makefile.in: Update dependencies.
9096
9097 * alpha-tdep.h: Don't include "osabi.h".
9098 (struct gdbarch_tdep): Remove osabi member.
9099 * alpha-tdep.c: Include "osabi.h".
9100 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9101 iterate over arches. Update call to gdbarch_init_osabi.
9102 (alpha_dump_tdep): Don't dump osabi.
9103 * alpha-linux-tdep.c: Include "osabi.h".
9104 * alpha-osf1-tdep.c: Include "osabi.h".
9105 * alphafbsd-tdep.c: Include "osabi.h".
9106 * alphanbsd-tdep.c: Include "osabi.h".
9107
9108 * arm-tdep.h: Don't include "osabi.h".
9109 (struct gdbarch_tdep): Remove osabi member.
9110 * arm-tdep.c: Include "osabi.h".
9111 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9112 iterate over arches. Update call to gdbarch_init_osabi.
9113 (arm_dump_tdep): Don't dump osabi.
9114 * arm-linux-tdep.c: Include "osabi.h".
9115 * armnbsd-tdep.c: Include "osabi.h".
9116
9117 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
9118 Update call to gdbarch_init_osabi.
9119
9120 * i386-tdep.h: Don't include "osabi.h".
9121 (struct gdbarch_tdep): Remove osabi member.
9122 * i386-tdep.c: Include "osabi.h".
9123 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9124 iterate over arches. Update call to gdbarch_init_osabi.
9125 (i386_dump_tdep): Don't dump osabi.
9126 * i386-linux-tdep.c: Include "osabi.h".
9127 * i386-sol2-tdep.c: Include "osabi.h".
9128 * i386bsd-tdep.c: Include "osabi.h".
9129 * i386gnu-tdep.c: Include "osabi.h".
9130 * i386ly-tdep.c: Include "osabi.h".
9131 * i386nbsd-tdep.c: Include "osabi.h".
9132 * i386obsd-tdep.c: Include "osabi.h".
9133
9134 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
9135 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9136 check osabi when iterating over arches. Update call to
9137 gdbarch_init_osabi.
9138 (mips_dump_tdep): Don't dump osabi.
9139
9140 * ns32k-tdep.h: Don't include "osabi.h".
9141 (struct gdbarch_tdep): Remove.
9142 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
9143 gdbarch_lookup_osabi. Don't iterate over arches. Don't
9144 allocate tdep. Update call to gdbarch_init_osabi.
9145 (ns32k_dump_tdep): Remove.
9146 (_initialize_ns32k_tdep): Update call to gdbarch_register.
9147 * ns32knbsd-tdep.c: Include "osabi.h".
9148
9149 * ppc-tdep.h: Don't include "osabi.h".
9150 (struct gdbarch_tdep): Remove osabi member.
9151 * rs6000-tdep.c: Include "osabi.h".
9152 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
9153 osabi when iterating over arches. Update call to
9154 gdbarch_init_osabi.
9155 (rs6000_dump_tdep): Don't dump osabi.
9156 * ppc-linux-tdep.c: Include "osabi.h".
9157 * ppcnbsd-tdep.c: Include "osabi.h".
9158
9159 * sh-tdep.h: Don't include "osabi.h".
9160 (struct gdbarch_tdep): Remove osabi member.
9161 * sh-tdep.c: Include "osabi.h".
9162 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9163 iterate over arches. Update call to gdbarch_init_osabi.
9164 (sh_dump_tdep): Don't dump osabi.
9165 * shnbsd-tdep.c: Include "osabi.h".
9166
9167 * sparc-tdep.c: Include "osabi.h".
9168 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9169 iterate over arches. Update call to gdbarch_init_osabi.
9170 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
9171 tdep structure.
9172
9173 * vax-tdep.h: Don't include "osabi.h".
9174 (struct gdbarch_tdep): Remove.
9175 * vax-tdep.c: Include "osabi.h".
9176 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9177 iterate over arches. Don't allocate tdep. Update call
9178 to gdbarch_init_osabi.
9179 (vax_dump_tdep): Remove.
9180 (_initialize_vax_tdep): Update call to gdbarch_register.
9181
a881cf8e
DJ
91822003-01-04 Daniel Jacobowitz <drow@mvista.com>
9183
9184 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
9185 entirely.
9186 (breakpoint_re_set_one): Don't fetch the value for a disabled
9187 watchpoint.
9188
1e698235
DJ
91892003-01-04 Daniel Jacobowitz <drow@mvista.com>
9190
9191 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
9192 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
9193 (COERCE_FLOAT_TO_DOUBLE): Remove.
9194 * gdbarch.c: Regenerate.
9195 * gdbarch.h: Regenerate.
9196 * Makefile.in: Remove value_h from gdbarch_h.
9197 * valops.c (coerce_float_to_double): New variable.
9198 (default_coerce_float_to_double): Remove.
9199 (standard_coerce_float_to_double): Remove.
9200 (value_arg_coerce): Use coerce_float_to_double.
9201 (_initialize_valops): Add "set coerce-float-to-double".
9202 * value.h (default_coerce_float_to_double): Remove prototype.
9203 (standard_coerce_float_to_double): Remove prototype.
9204
9205 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
9206 prototyped.
9207 * mdebugread.c (parse_symbol): Likewise.
9208 * stabsread.c (define_symbol): Mark all functions as prototyped.
9209
9210 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
9211 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
9212 set_gdbarch_coerce_float_to_double.
9213 * arm-tdep.c (arm_gdbarch_init): Likewise.
9214 * frv-tdep.c (frv_gdbarch_init): Likewise.
9215 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
9216 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
9217 * mips-tdep.c (mips_gdbarch_init): Likewise.
9218 (mips_coerce_float_to_double): Remove.
9219 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9220 (rs6000_coerce_float_to_double): Remove.
9221 * s390-tdep.c (s390_gdbarch_init): Likewise.
9222 * sh-tdep.c (sh_gdbarch_init): Likewise.
9223 (sh_coerce_float_to_double): Remove.
9224 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
9225 (sparc_coerce_float_to_double): Remove.
9226 * v850-tdep.c (v850_gdbarch_init): Likewise.
9227 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
9228 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9229 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
9230 (hppa_coerce_float_to_double): Remove prototype.
9231 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9232
f436a26a
DJ
92332003-01-04 Daniel Jacobowitz <drow@mvista.com>
9234
9235 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
9236
248f8055
DJ
92372003-01-04 Daniel Jacobowitz <drow@mvista.com>
9238
9239 Suggested by Stewart Brown <sb24@avaya.com>:
9240 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
9241 in recursive calls. Handle TYPE_CODE_TYPEDEF.
9242 (c_type_print_varspec_suffix): Likewise.
9243
72cfdc76
MK
92442003-01-04 Mark Kettenis <kettenis@gnu.org>
9245
bfd260bb
MK
9246 * configure.in: Don't set and AC_SUBST SUBDIRS.
9247 * configure: Regenerated.
9248
72cfdc76
MK
9249 * configure.in: Remove code dealing with shared libraries.
9250 * Makefile.in: Remove HLDFLAGS and HLDENV.
9251 * configure: Regenerated.
9252
c8b8a898
AC
92532003-01-04 Andrew Cagney <ac131313@redhat.com>
9254
9255 * frame.c (deprecated_frame_xmalloc): New function.
9256 (deprecated_set_frame_saved_regs_hack): New function.
9257 (deprecated_set_frame_extra_info_hack): New function.
9258 * frame.h (deprecated_frame_xmalloc): Declare.
9259 (deprecated_set_frame_saved_regs_hack): Declare.
9260 (deprecated_set_frame_extra_info_hack): Declare.
9261
14abd0fb
MK
92622003-01-04 Mark Kettenis <kettenis@gnu.org>
9263
8ee53726
MK
9264 * configure.in: Move code that provides the --enable-gdbtk option
9265 right after the code that handles the --enable-tui option, and
9266 polish it somewhat.
9267 * configure: Regenerated.
9268
14abd0fb
MK
9269 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
9270 AC_CHECK_FUNCS and remove the old check for pread64.
9271 * acinclude.m4 (AC_GNU_SOURCE): New macro.
9272 * acconfig.h (_GNU_SOURCE): Add.
9273 (HAVE_PREAD64): Remove.
9274 * configure, aclocal.m4, config.in: Regenerated.
9275
b2fb4676
AC
92762003-01-03 Andrew Cagney <ac131313@redhat.com>
9277
9278 * alpha-tdep.c: Use get_frame_saved_regs.
9279 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9280 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
9281 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
9282 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
9283 * vax-tdep.c, xstormy16-tdep.c: Ditto.
9284
8dcde887
MK
92852003-01-03 Mark Kettenis <kettenis@gnu.org>
9286
9287 * configure.in: Remove all use of the SUBDIRS variable; add
9288 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
9289 code providing the --enable-multi-ice option, and move it right in
9290 front of the code that checks whether gdbserver is supported.
9291 Polish that too.
9292 * configure: Regenerated.
9293 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
9294 @SUBDIRS@.
9295
8ccd593b
AC
92962003-01-03 Andrew Cagney <cagney@redhat.com>
9297
9298 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
9299 * avr-tdep.c, cris-tdep.c: Ditto.
9300 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
9301 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 9302
91151a06
MK
93032003-01-03 Mark Kettenis <kettenis@gnu.org>
9304
9305 * configure.in: Remove --enable-netrom option.
9306 * configure: Regenerated.
9307
8fe84d01
MK
93082003-01-03 Mark Kettenis <kettenis@gnu.org>
9309
9310 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
9311 declaration for `struct re_pattern_buffer' instead.
9312 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
9313
f0394be6
JB
93142003-01-03 J. Brobecker <brobecker@gnat.com>
9315
9316 * mdebugread.c (parse_symbol): Count until the stEnd matching
9317 the structure name.
9318
27e9bf90
MK
93192003-01-02 Mark Kettenis <kettenis@gnu.org>
9320
93d331ba
MK
9321 * configure.in: Remove --with-cpu option.
9322 subscripts. Remove evil changequotes here.
9323 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
9324 * config.in, configure: Regenerated.
8ffd9b1b 9325
27e9bf90
MK
9326 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
9327 * configure.in: Cleanup section that sources GDB and BFD configure
9328 subscripts. Remove evil changequotes here.
9329 * config.in, configure: Regenerated.
9330
50abf9e5
AC
93312003-01-02 Andrew Cagney <ac131313@redhat.com>
9332
9333 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
9334 frame accessor methods.
9335 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9336 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
9337 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
9338 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
9339 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
9340 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
9341 * z8k-tdep.c: Ditto.
8ffd9b1b 9342
287c1a40
MK
93432003-01-02 Mark Kettenis <kettenis@gnu.org>
9344
f5dbc56d
MK
9345 * configure.in: Remove UI_OUT configuration code.
9346 * ada-lang.c: Update assuming UI_OUT is always true.
9347 * Makefile.in (UIOUT_CFLAGS): Remove.
9348 * configure: Regenerated.
9349 * TODO: Remove blurb about elimination of -DUI_OUT.
9350
627af7ea
MK
9351 * configure.in: Move code that provides the --enable-gdbcli,
9352 --enable-gdbmi options right before the code that handles the
9353 --enable-tui option. Polish a bit.
9354 * configure: Regenerated.
9355
06825bd1
MK
9356 * configure.in: Rewrite check for GNU regex and the
9357 --without-included regex option, and move it into the "Checks for
9358 library functions" section. This makes us use the system regex
9359 again by default on systems with version 2 of the GNU C library.
9360 This was apparently broken.
9361 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
9362 * acconfig.h (USE_INCLUDED_REGEX): Remove.
9363 * config.in, configure: Regenerated.
9364
287c1a40
MK
9365 * configure.in: Move code that provides the --enable-tui option
9366 before the "Checks for libraries" section. Polish the code
9367 somewhat and set need_curses to yes if we build the TUI. Rewrite
9368 code that looks for a library providing termcap functionality to
9369 match more closely what's done in the Readline library, and move
9370 it into to the "Checks for libraries" section.
9371 * configure: Regenerated.
9372 * Makefile.in (TERMCAP): Remove variable.
9373 * config/i386/go32.mh (TERMCAP): Remove variable.
9374
684e56bf
AC
93752003-01-02 Andrew Cagney <ac131313@redhat.com>
9376
9377 * MAINTAINERS: Mention gdb_mbuild.sh.
9378 * gdb_mbuild.sh: Rewrite.
9379
e1ea1d75
MK
93802003-01-02 Mark Kettenis <kettenis@gnu.org>
9381
9382 * configure.in: Fix typo in last change.
9383 * config.in, configure: Regenerated.
9384
1b831c93
AC
93852003-01-02 Andrew Cagney <ac131313@redhat.com>
9386
9387 * valarith.c (value_binop): Delete obsolete code and comments.
9388 * configure.host: Ditto.
9389 * buildsym.h (make_blockvector): Ditto.
9390 * buildsym.c (make_blockvector): Ditto.
9391 * defs.h (enum language): Ditto.
9392 (chill_demangle): Ditto.
9393 * elfread.c (elf_symtab_read): Ditto.
9394 * dwarfread.c (CHILL_PRODUCER): Ditto.
9395 (set_cu_language): Ditto.
9396 (handle_producer): Ditto.
9397 * expprint.c (print_subexp): Ditto.
9398 * gdbtypes.c (chill_varying_type): Ditto.
9399 * gdbtypes.h (builtin_type_chill_bool): Ditto.
9400 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
9401 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
9402 (chill_varying_type): Ditto.
9403 * language.h (_LANG_chill): Ditto.
9404 * language.c (binop_result_type, integral_type): Ditto.
9405 (character_type, string_type, structured_type): Ditto.
9406 (lang_bool_type, binop_type_check): Ditto.
9407 * stabsread.h (os9k_stabs): Ditto.
9408 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
9409 (define_symbol, read_type, read_struct_fields): Ditto.
9410 (read_array_type, read_enum_type, read_huge_number): Ditto.
9411 (read_range_type, start_stabs): Ditto.
9412 * symfile.c (init_filename_language_table): Ditto.
9413 (add_psymbol_with_dem_name_to_list): Ditto.
9414 * symtab.c (symbol_init_language_specific): Ditto.
9415 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
9416 * symtab.h (struct general_symbol_info): Ditto.
9417 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
9418 * typeprint.c (typedef_print): Ditto.
9419 * utils.c (fprintf_symbol_filtered): Ditto.
9420 * valops.c (value_cast, search_struct_field, value_slice): Delete
9421 obsolete code.
9422 (varying_to_slice): Delete function.
9423 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
9424 (varying_to_slice): Delete declaration.
9425 * MAINTAINERS: Update.
9426
8bb2c122
MK
94272003-01-02 Mark Kettenis <kettenis@gnu.org>
9428
97bf5e38
MK
9429 * configure.in: Reorganize "Checks for library functions section"
9430 a bit. Remove check for `btowc' and `isascii' functions.
9431 * configure: Regenerated.
9432
5ee754fc
MK
9433 * acconfig.h (_MSE_INT_H): Remove.
9434 * configure.in: Create "Checks for header files" section, and move
9435 appropriate tests there. Don't check for objlist.h, wchar.h,
9436 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
9437 misdetection fix. Also add "Checks for types", "Checks for
9438 compiler characteristics" and "Checks for library functions"
9439 sections.
9440 * config.in, configure: Regenerated.
9441
8bb2c122
MK
9442 * configure.in: Create "Checks for programs" section, and move
9443 appropriate tests there.
9444
9a156167
MK
94452003-01-01 Mark Kettenis <kettenis@gnu.org>
9446
9447 * configure.in: Create "Checks for libraries" section, and move
9448 appropriate tests there. Cleanup check for wctype in libw. Use
9449 AC_SEARCH_LIBS to see whether we need libsocket.
9450 * configure: Regenerated.
9451
a80e2bcb 9452For older changes see ChangeLog-2002
c906108c
SS
9453\f
9454Local Variables:
9455mode: change-log
9456left-margin: 8
9457fill-column: 74
9458version-control: never
9459End:
This page took 0.869707 seconds and 4 git commands to generate.