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