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