]> Git Repo - binutils.git/blame_incremental - gdb/ChangeLog
PR c++/1267
[binutils.git] / gdb / ChangeLog
... / ...
CommitLineData
12003-07-26 Daniel Jacobowitz <[email protected]>
2
3 PR c++/1267
4 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
5 NULL, default to the section containing PC.
6
72003-07-24 Stephane Carrez <[email protected]>
8
9 * NEWS: Mention "regs" deprecated for m68hc11 too.
10
11 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
12 (m68hc11_print_register): New function to print out one register.
13 (m68hc11_print_registers_info): New function to print registers.
14 (show_regs): Deprecate and use the above.
15 (m68hc11_gdbarch_init): Install the print_registers_info.
16
172003-07-24 Jeff Johnston <[email protected]>
18
19 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
20 that we have a SIGTRAP before returning non-zero.
21
222003-07-23 Michal Ludvig <[email protected]>
23 Elena Zannoni <[email protected]>
24
25 * linespec.c (decode_line_2): Avoid crash if
26 find_function_start_sal() returns empty record.
27
282003-07-23 Andreas Schwab <[email protected]>
29
30 * ia64-tdep.c (ia64_print_insn): New function.
31 (ia64_gdbarch_init): Set print_insn to it.
32 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
33 deprecated_tm_print_insn_info.
34
352003-07-22 Michael Snyder <[email protected]>
36
37 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
38 handle 8-bit returns (long long).
39 (h8300h_extract_return_value): Ditto.
40 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
41
422003-07-22 Andrew Cagney <[email protected]>
43
44 * gdbarch.c Include "gdb_obstack.h".
45 (struct gdbarch): Add an "obstack".
46 (alloc_gdbarch_data): Allocate the gdbarch data using
47 GDBARCH_OBSTACK_CALLOC.
48 (free_gdbarch_data): Delete function.
49 (gdbarch_obstack_zalloc): New function.
50 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
51 Assert that the architecture is not initialized.
52 (gdbarch_alloc): Allocate an obstack, allocate the architecture
53 vector from the obstack.
54 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
55 architecture obstack.
56 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
57 (set_gdbarch_data): Assert that the data is not initialized.
58 (struct gdbarch_data): Delete member "free".
59 (register_gdbarch_data): Do not initialize "free".
60 * gdbarch.h, gdbarch.c: Re-generate.
61
622003-07-22 Andrew Cagney <[email protected]>
63
64 * configure.in (build_warnings): Add -Wformat-nonliteral.
65 * configure: Re-generate.
66
672003-07-22 Elena Zannoni <[email protected]>
68
69 * dwarf2loc.c (locexpr_describe_location): Fix typos.
70
712003-07-22 Elena Zannoni <[email protected]>
72
73 * findvar.c (read_var_value): Remove case for thread local storage
74 variables. It is now entirely handled by the dwarf2 location
75 expression code.
76 * printcmd.c (address_info): Ditto.
77 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
78 enumeration value.
79 (struct symbol): Remove objfile field, which was used by
80 LOC_THREAD_LOCAL_STATIC only.
81 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
82 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
83 usage of objfile pointer.
84 * dwarf2loc.c (locexpr_describe_location): Add case to handle
85 thread local variables.
86 Add include of objfiles.h.
87 * dwarf2expr.c (execute_stack_op): Add comments about thread local
88 storage variables.
89 * Makefile.in (dwarf2loc.o): Update dependencies.
90
912003-07-22 Andrew Cagney <[email protected]>
92
93 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
94 get_frame_base.
95 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
96 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
97 (struct value): Add opaque declaration.
98 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
99
1002003-07-21 Andrew Cagney <[email protected]>
101
102 From 2003-07-04 Kei Sakamoto <[email protected]>:
103 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
104
1052003-07-20 Stephane Carrez <[email protected]>
106
107 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
108 regcache_cooked_read_unsigned instead of read_register.
109 (m68hc11_saved_pc_after_call): Likewise.
110 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
111 instead of write_register.
112 (m68hc11_register_type): New function.
113 (m68hc11_register_virtual_type): Remove.
114 (m68hc11_store_return_value): Convert to use the regcache.
115 (m68hc11_extract_struct_value_address): Likewise.
116 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
117 m68hc11_register_type; undeprecate store_return_value and
118 extract_struct_value_address.
119
1202003-07-20 Stephane Carrez <[email protected]>
121
122 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
123 and translate to use regcache.
124 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
125
1262003-07-18 Andrew Cagney <[email protected]>
127
128 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
129 * gdbarch.h, gdbarch.c: Re-generate.
130 * i386-tdep.c (i386_gdbarch_init): Do not set
131 DWARF2_BUILD_FRAME_INFO.
132 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
133 unconditionally.
134 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
135 DWARF2_BUILD_FRAME_INFO.
136
1372003-07-18 Andrew Cagney <[email protected]>
138
139 From 2003-07-04 Kei Sakamoto <[email protected]>:
140 * disasm.c (gdb_disassemble_info): Initilize di.arch.
141
1422003-07-18 Andrew Cagney <[email protected]>
143
144 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
145 frame_unwind_address_in_block, instead of frame_pc_unwind.
146 (dwarf2_frame_cache): Ditto.
147
1482003-07-18 Andrew Cagney <[email protected]>
149
150 * user-regs.h (struct gdbarch): Declare opaque.
151 * ui-out.h (struct ui_file): Declare opaque.
152 * dwarf2-frame.h (struct frame_info): Declare opaque.
153
1542003-07-18 Kris Warkentin <[email protected]>
155
156 * nto-procfs.c: Clean ARI hits. Change #include <..> to
157 #include "...".
158 (procfs_meminfo): Change strerror to safe_strerror.
159 (procfs_can_run): Remove K&R badness.
160
1612003-07-17 Michael Snyder <[email protected]>
162
163 * remote-sim.c: Comment typo fix.
164
1652003-07-17 Andrew Cagney <[email protected]>
166
167 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
168 configure.
169 * sparc-tdep.c (sparc_intreg_size): Make non-static.
170 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
171 GDB_MULTI_ARCH_PARTIAL.
172
1732003-07-17 Elena Zannoni <[email protected]>
174
175 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
176 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
177 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
178
1792003-07-16 Theodore A. Roth <[email protected]>
180
181 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
182 found.
183 (avr_frame_unwind_cache): Don't unwind FP for main.
184 Update a comment.
185 Save the computed prev_sp.
186 (avr_saved_regs_unwinder): Remove function.
187 (avr_frame_prev_register): Use PC unwind logic from
188 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
189
1902003-07-16 Andrew Cagney <[email protected]>
191
192 * frame-base.h (frame_base_p_ftype): Delete definition.
193 (frame_base_append_predicate): Delete declaration.
194 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
195 (frame_unwind_append_predicate): Delete declaration.
196 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
197 (append_predicate): Delete parameter "p".
198 (frame_unwind_append_predicate): Delete function.
199 (frame_unwind_append_sniffer): Update call to append_predicate.
200 (frame_unwind_free): Delete function.
201 (_initialize_frame_unwind): Pass NULL as "free" to
202 register_gdbarch_data.
203 (frame_unwind_init): Append the dummy_frame_sniffer.
204 (frame_unwind_find_by_frame): Simplify.
205 * frame-base.c (struct frame_base_table): Delete field "p".
206 (append_predicate): Delete parameter "p".
207 (frame_base_append_predicate): Delete function.
208 (frame_base_append_sniffer): Update call to append_predicate.
209 (frame_base_free): Delete function.
210 (frame_base_find_by_frame): Simplify.
211 (_initialize_frame_base): Pass NULL as "free" to
212 register_gdbarch_data.
213 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
214 (x86_64_sigtramp_frame_sniffer): Replace
215 "x86_64_sigtramp_frame_p".
216 (x86_64_init_abi): Set the frame unwind sniffers.
217 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
218 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
219 (m68k_gdbarch_init): Set the frame unwind sniffers.
220 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
221 "i386_sigtramp_frame_p".
222 (i386_frame_sniffer): Replace "i386_frame_p".
223 (i386_gdbarch_init): Set the frame unwind sniffers.
224 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
225 (avr_gdbarch_init): Set the frame unwind sniffers.
226 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
227 "alpha_sigtramp_frame_p"
228 (alpha_heuristic_frame_sniffer): Replace
229 "alpha_heuristic_frame_p".
230 (alpha_gdbarch_init): Set the frame unwind sniffers.
231 (alpha_dwarf2_init_abi): Ditto.
232 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
233 "alpha_debug_frame_p".
234 (alpha_mdebug_frame_base_sniffer): Replace
235 "alpha_mdebug_frame_base_p".
236 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
237 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
238 (d10v_gdbarch_init): Set the frame unwind sniffer.
239 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
240 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
241 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
242 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
243 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
244 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
245
2462003-07-16 Michael Snyder <[email protected]>
247
248 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
249 should go thru sh_dsp_register_sim_regno, else the dsp regs
250 will not get the right values.
251
2522003-07-16 Corinna Vinschen <[email protected]>
253
254 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
255 deprecated_store_floating by call to store_typed_floating.
256 (sh_sh4_register_convert_to_raw): Substitute call to
257 deprecated_extract_floating by call to extract_typed_floating.
258
2592003-07-16 Corinna Vinschen <[email protected]>
260
261 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
262
2632003-07-16 Corinna Vinschen <[email protected]>
264
265 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
266 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
267 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
268 as possible.
269 (do_pseudo_register): Remove.
270 (sh_push_dummy_code): New function.
271 (sh64_store_struct_return): Rename from sh_store_struct_return.
272 Only called for sh64 now.
273 (sh_extract_struct_value_address): Regcache'ify.
274 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
275 and accomodate new tasks.
276 (sh64_push_return_address): Rename from sh_push_return_address.
277 Only called for sh64 now.
278 (sh_default_extract_return_value): Rename from sh_extract_return_value.
279 Regcache'ify.
280 (sh3e_sh4_extract_return_value): Regcache'ify.
281 (sh_default_store_return_value): Ditto.
282 (sh3e_sh4_store_return_value): Ditto.
283 (sh_default_register_byte): Remove.
284 (sh_sh4_register_byte): Remove.
285 (sh_default_register_raw_size): Remove.
286 (sh_sh4_register_raw_size): Remove.
287 (sh_register_virtual_size): Remove.
288 (sh_sh3e_register_virtual_type): Remove.
289 (sh_sh3e_register_type): New function.
290 (sh_sh4_register_virtual_type): Remove.
291 (sh_sh4_register_type): New function.
292 (sh_default_register_virtual_type): Remove.
293 (sh_default_register_type): New function.
294 (do_fv_register_info): Add parameters to accomodate call from
295 sh_print_registers_info.
296 (do_dr_register_info): Ditto.
297 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
298 Add parameters to accomodate call from sh_print_registers_info.
299 (sh_do_fp_register): Ditto.
300 (sh64_do_pseudo_register): Call do_dr_register_info,
301 do_fv_register_info and sh_do_fp_register with default parameters.
302 (sh_do_register): Add parameters to accomodate call from
303 sh_print_registers_info.
304 (sh_print_register): Ditto.
305 (sh_print_registers_info): Rename from sh_do_registers_info.
306 Add parameters to be used as gdbarch_print_registers_info
307 implementation. Accomodate removed do_pseudo_register function
308 pointer.
309 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
310 function pointer. Call sh_print_register with default parameters.
311 (sh64_do_registers_info): Call sh_print_registers_info instead of
312 sh_do_registers_info.
313 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
314 detection of deprecated vs. non-deprecated functionality.
315 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
316 function pointer assignments by direct function calls.
317
3182003-07-15 Andrew Cagney <[email protected]>
319
320 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
321 (frame_register_unwind, create_new_frame): Ditto.
322 (legacy_get_prev_frame, get_frame_type): Ditto.
323 (get_frame_base_address): Use frame_base_find_by_frame.
324 (get_frame_locals_address): Use frame_base_find_by_frame.
325 (get_frame_args_address): Use frame_base_find_by_frame.
326 * frame-base.h (frame_base_sniffer_ftype): Declare.
327 (frame_base_append_sniffer): Declare.
328 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
329 * frame-base.c (append_predicate): Add a "sniffer" parameter.
330 (frame_base_append_sniffer): New function.
331 (frame_base_append_predicate): Add a NULL sniffer.
332 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
333 (struct frame_base_table): Add "sniffer".
334 (frame_base_free): Free the "sniffer" table.
335 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
336 (frame_unwind_append_sniffer): Declare.
337 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
338 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
339 (struct frame_unwind_table): Add "sniffer", delete "middle".
340 (append_predicate): Add "sniffer" parameter, append the sniffer.
341 (frame_unwind_init): Update append_predicate call.
342 (frame_unwind_append_sniffer): New function.
343 (frame_unwind_append_predicate): Update append_predicate call.
344 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
345
3462003-07-15 Andrew Cagney <[email protected]>
347
348 * frame.c (get_prev_frame): Move disabled inside_entry_func to
349 before code inhibiting repeated unwind attempts. Add to
350 commentary on that test's problems.
351 * blockframe.c (inside_main_func): Look for "main" in the minimal
352 symbol table.
353 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
354 identical.
355
3562003-07-15 Andrew Cagney <[email protected]>
357
358 * complaints.c (struct explanation): Define.
359 (struct complaints): Change type of "explanation" to "struct
360 explanation".
361 (symfile_explanations): Convert to a "struct explanation" table.
362 (vcomplaint): Update.
363
3642003-07-15 Michal Ludvig <[email protected]>
365
366 * x86-64-linux-nat.c (regmap): Removed.
367 (supply_gregset, fill_gregset): Call
368 x86_64_linux_(fill,supply)_gregset functions.
369 * x86-64-linux-tdep.c (USER_*): New defines.
370 (user_to_gdb_regmap, x86_64_core_fns): New structure.
371 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
372 New functions.
373 (fetch_core_registers): Ditto.
374 (_initialize_x86_64_linux_tdep): Call add_core_fns().
375 * x86-64-linux-tdep.h: New file.
376 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
377 and core-regset.o.
378 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
379
3802003-07-13 Mark Kettenis <[email protected]>
381
382 * x86-64-tdep.c (x86_64_store_return_value): Use
383 regcache_cooked_write_part instead of regcache_cooked_write.
384
385 * configure.host: Add x86_64-*-freebsd*.
386 * configure.tgt: Add x86_64-*-freebsd*.
387 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
388 * amd64fbsd-nat.c: New file.
389 * amd64fbsd-tdep.c: New file.
390 * config/i386/nm-fbsd64.h: New file.
391 * config/i386/fbsd64.mh: New file.
392 * config/i386/fbsd64.mt: New file.
393
3942003-07-11 Mark Kettenis <[email protected]>
395
396 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
397 `sc_regs_offset' and `sc_fpregs_offset'.
398 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
399 SIGFRAME_FPREGSAVE_OFF): Remove defines.
400 (alpha_sigtramp_register_address): Rewrite to use new members of
401 `struct gdbarch_tdep'.
402 (alpha_gdbarch_init): Initialize new members of struct
403 gdbarch_tdep'.
404 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
405 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
406 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
407 (alphafbsd_pc_in_sigtramp): Implement.
408 (alphafbsd_sigtramp_offset): New function.
409 (alphafbsd_sigcontext_addr): New function.
410 (alphafbsd_init_abi): Initialize signal trampoline related members
411 of `struct gdbarch_tdep'.
412 (_initialize_alphafbsd_tdep): Add prototype.
413
4142003-07-11 Theodore A. Roth <[email protected]>
415
416 * Makefile.in (install-only): Quote sed expression when generating
417 transformed_name.
418
4192003-07-11 Richard Henderson <[email protected]>
420
421 * Makefile.in (dwarf2-frame.o): Add complaints_h.
422 * dwarf2-frame.c: Include complaints.h.
423 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
424 variable initialization; return NULL on error.
425 (decode_frame_entry): New.
426
4272003-07-11 Andrew Cagney <[email protected]>
428
429 * frame.h (frame_address_in_block): Delete declaration.
430 * blockframe.c (frame_address_in_block): Delete function.
431 (get_frame_block): Use get_frame_address_in_block.
432 (block_innermost_frame): Ditto.
433 * stack.c (print_frame, backtrace_command_1): Ditto.
434
435 * frame.h (get_frame_address_in_block): Declare.
436 (frame_unwind_address_in_block): Declare.
437 * frame.c (frame_unwind_address_in_block): New function.
438 (get_frame_address_in_block): New function.
439
4402003-07-10 Andrew Cagney <[email protected]>
441
442 * gdbarch.sh: Simplify predicate methods. Remove need to provide
443 pre-default. Note: re-generate has no effect.
444
4452003-07-10 Andrew Cagney <[email protected]>
446
447 * gdbarch.sh: When a variable, but not a function, compare against
448 0. Fix problem in previous patch.
449 * gdbarch.c: Re-generate.
450
4512003-07-10 Andrew Cagney <[email protected]>
452
453 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
454 functions against NULL, not 0.
455 * gdbarch.c: Re-generate.
456
4572003-07-10 Fred Fish <[email protected]>
458
459 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
460 null string instead of a null pointer.
461 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
462
4632003-07-09 Michael Snyder <[email protected]>
464
465 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
466
4672003-07-09 Mark Kettenis <[email protected]>
468
469 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
470 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
471 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
472 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
473 * x86-64-tdep.c: ... from here.
474
4752003-07-09 Andreas Schwab <[email protected]>
476
477 * m68k-tdep.h (enum struct_return): Define.
478 (struct gdbarch_tdep): Add struct_return.
479 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
480 bytes are padded to the right, not to the left. Pass struct value
481 address in register %a1, not on stack.
482 (m68k_use_struct_convention): New function.
483 (m68k_gdbarch_init): Set use_struct_convention. Initialize
484 struct_return in tdep to pcc_struct_return.
485 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
486 reg_struct_return.
487
4882003-07-09 Joel Brobecker <[email protected]>
489
490 * somread.c (som_symfile_offsets): Fix compilation error.
491
4922003-07-09 Andrew Cagney <[email protected]>
493
494 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
495 Add comments about the checks.
496
4972003-07-08 Andrew Cagney <[email protected]>
498
499 * Makefile.in: Make dependency section headers consistent.
500 (config_h): Move to $BUILD headers section.
501 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
502 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
503 (ada-exp.tab.c): Move to YACC/LEX section.
504 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
505 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
506
5072003-07-08 Kris Warkentin <[email protected]>
508
509 * nto-procfs.c: Cleaned up a bunch of ARI hits.
510 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
511 of strerror with safe_strerror, use ISO C function definitions,
512 and replace instances of sprintf with snprintf.
513
5142003-07-07 Andrew Cagney <[email protected]>
515
516 * frame.c (get_prev_frame): Enable check for identical frames.
517 Update comments. Update error messages.
518
5192003-07-07 Joel Brobecker <[email protected]>
520
521 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
522
5232003-07-07 Joel Brobecker <[email protected]>
524
525 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
526 sort_symtab_syms, no longer necessary.
527
5282003-07-07 Joel Brobecker <[email protected]>
529
530 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
531
5322003-07-07 Joel Brobecker <[email protected]>
533
534 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
535 (mips_register_byte): Likewise.
536
5372003-07-07 Daniel Jacobowitz <[email protected]>
538
539 * Makefile.in (sparc_tdep_h): New.
540 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
541 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
542 * sparc-linux-nat.c: Include "sparc-tdep.h".
543 * sparc-nat.c: Likewise.
544 * sparc-tdep.c: Likewise.
545 * sparc64nbsd-nat.c: Likewise.
546 * sparcnbsd-nat.c: Likewise.
547 * sparcnbsd-tdep.c: Likewise.
548 * sparc-tdep.h: New file.
549 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
550 and sparc_npc_regnum.
551
5522003-07-07 Daniel Jacobowitz <[email protected]>
553
554 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
555 (mips_linux_cannot_store_register): List supported instead of
556 unsupported registers.
557
5582003-07-07 Daniel Jacobowitz <[email protected]>
559
560 * disasm.c (dump_insns): Separate instructions from addresses.
561
5622003-07-07 Andreas Schwab <[email protected]>
563
564 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
565 dependencies.
566 * m68k-tdep.c (NUM_FREGS): Delete.
567 (SIG_PC_FP_OFFSET): Delete.
568 (TARGET_M68K): Delete.
569 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
570 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
571 P_MOVEL_SP, P_MOVEML_SP): Define.
572 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
573 P_TRAP): Delete.
574 (m68k_register_raw_size): Delete.
575 (m68k_register_virtual_size): Delete.
576 (m68k_register_type): Renamed from m68k_register_virtual_type and
577 add gdbarch argument.
578 (m68k_store_struct_return): Delete.
579 (m68k_deprecated_extract_return_value): Delete.
580 (m68k_deprecated_extract_struct_value_address): Delete.
581 (m68k_frame_chain): Delete.
582 (m68k_frame_saved_pc): Delete.
583 (m68k_fix_call_dummy): Delete.
584 (m68k_push_dummy_frame): Delete.
585 (m68k_pop_frame): Delete.
586 (m68k_extract_return_value): New function.
587 (m68k_store_return_value): Rewrite using regcache.
588 (m68k_extract_struct_value_address): Rewrite using regcache.
589 (m68k_push_dummy_call): New function.
590 (struct m68k_frame_cache): Define.
591 (m68k_alloc_frame_cache): New function.
592 (m68k_analyze_frame_setup): New function.
593 (m68k_analyze_register_saves): New function.
594 (m68k_analyze_prologue): New function.
595 (m68k_skip_prologue): Rewrite using above functions.
596 (m68k_unwind_pc): New function.
597 (m68k_frame_cache): New function.
598 (m68k_frame_this_id): New function.
599 (m68k_frame_prev_register): New function.
600 (m68k_frame_unwind): New variable.
601 (m68k_frame_p): New function.
602 (m68k_sigtramp_frame_cache): New function.
603 (m68k_sigtramp_frame_this_id): New function.
604 (m68k_sigtramp_frame_prev_register): New function.
605 (m68k_sigtramp_frame_unwind): New variable.
606 (m68k_sigtramp_frame_p): New function.
607 (m68k_frame_base_address): New function.
608 (m68k_frame_base): New function.
609 (m68k_unwind_dummy_id): New function.
610 (fill_gregset): Use regcache_collect.
611 (fill_fpregset): Likewise.
612 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
613 defined.
614 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
615 deprecated_init_frame_pc, deprecated_store_struct_return,
616 deprecated_extract_return_value, deprecated_store_return_value,
617 deprecated_frame_chain, deprecated_frame_saved_pc,
618 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
619 deprecated_register_virtual_size,
620 deprecated_max_register_raw_size,
621 deprecated_max_register_virtual_size,
622 deprecated_register_virtual_type, deprecated_register_size,
623 deprecated_register_byte, deprecated_register_bytes,
624 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
625 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
626 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
627 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
628 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
629 deprecated_push_dummy_frame, deprecated_pop_frame,
630 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
631 only if SYSCALL_TRAP is defined. Set extract_return_value,
632 store_return_value, extract_struct_value_address, register_type,
633 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
634 predicates.
635 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
636 M68K_MAX_REGISTER_SIZE): Define.
637 (struct m68k_sigtramp_info): Define.
638 (struct gdbarch_tdep): Add get_sigtramp_info.
639 * m68klinux-nat.c (fetch_register): Use register_size instead of
640 REGISTER_RAW_SIZE. Don't put assignment in if.
641 (store_register): Likewise.
642 (fetch_inferior_registers): Likewise.
643 (store_inferior_registers): Likewise.
644 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
645 (m68k_linux_frame_saved_pc): Delete.
646 (m68k_linux_sigcontext_reg_offset,
647 m68k_linux_ucontext_reg_offset): Define.
648 (m68k_linux_get_sigtramp_info): New function.
649 (m68k_linux_extract_return_value): Rewrite using regcache.
650 (m68k_linux_store_return_value): Likewise.
651 (m68k_linux_extract_struct_value_address): Likewise.
652 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
653 Don't set deprecated_frame_saved_pc,
654 deprecated_extract_return_value, deprecated_store_return_value,
655 deprecated_extract_struct_value_address. Set
656 extract_return_value, store_return_value,
657 extract_struct_value_address.
658
6592003-07-07 Andrew Cagney <[email protected]>
660
661 * expprint.c: Include "user-regs.h" instead of "frame.h".
662 (print_subexp): Use user_reg_map_regnum_to_name, instead of
663 frame_map_regnum_to_name.
664 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
665 (frame_map_name_to_regnum): Simplify, call
666 user_reg_map_name_to_regnum.
667 (frame_map_regnum_to_name): Simplify, call
668 user_reg_map_regnum_to_name.
669 (frame_register_unwind): Update.
670 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
671 (_initialize_frame_reg): Call user_reg_add_builtin.
672 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
673 (value_of_register): Use value_of_user_reg.
674 * eval.c (evaluate_subexp_standard): Update.
675 * parse.c (write_dollar_variable): Update.
676 * d10v-tdep.c (d10v_print_registers_info): Update.
677 * infcmd.c (registers_info): Update.
678 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
679 (builtin_regs_h): Delete macro.
680 (user_regs_h): Define.
681 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
682 (builtin-regs.o): Delete target.
683 (user-regs.o): Specify dependencies.
684 (expprint.o): Update dependencies.
685 (findvar.o): Update dependencies.
686 (frame.o): Update dependencies.
687 (std-regs.o): Update dependencies.
688
6892003-07-06 Christopher Faylor <[email protected]>
690
691 * win32-nat.c (solib_symbols_add): Use one variable for all section
692 address stuff. Pass variable rather than address of variable to
693 safe_symbol_file_add.
694
6952003-07-06 Andreas Schwab <[email protected]>
696
697 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
698
6992003-07-04 Joel Brobecker <[email protected]>
700
701 * rs6000-nat.c (vmap_symtab): Fix compilation error.
702
7032003-07-04 Kris Warkentin <[email protected]>
704
705 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
706
7072003-07-04 Kris Warkentin <[email protected]>
708
709 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
710 * config/i386/nto.mh: New file.
711 * config/i386/nm-nto.h: New file.
712 * configure.host: Add i[3456]86-*-nto*.
713
7142003-07-03 Joel Brobecker <[email protected]>
715
716 * remote-vx.c (vx_add_symbols): Fix compilation error.
717
7182003-07-03 Andrew Cagney <[email protected]>
719
720 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
721 * gdbarch.h, gdbarch.c: Re-generate.
722 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
723 (legacy_register_name): Declare.
724 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
725 (REGISTER_NAME): Define.
726 * sparc-tdep.c (legacy_register_name): New function.
727 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
728 (REGISTER_NAME): Define.
729 (hppa64_register_name): Declare.
730 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
731 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
732 (hppa64_register_name): New function.
733 (hppa_register_name): New function.
734 * arch-utils.c (legacy_register_name): Delete.
735 * arch-utils.h (legacy_register_name): Delete.
736
7372003-07-03 Daniel Jacobowitz <[email protected]>
738
739 * cli/cli-interp.c (cli_interpreter_resume): Update the
740 cli_uiout's stream to gdb_stdout.
741
7422003-07-03 Andrew Cagney <[email protected]>
743
744 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
745 predicate.
746 * gdbarch.h, gdbarch.c: Re-generate.
747 * regcache.c (init_regcache_descr): Use legacy code when either
748 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
749
7502003-07-02 Daniel Jacobowitz <[email protected]>
751
752 * NEWS: Move "set logging" entry into GDB 6.0 section.
753
7542003-07-02 Jim Blandy <[email protected]>
755
756 * s390-tdep.c (struct frame_extra_info): new member:
757 'stack_bought_valid'.
758 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
759 initialize fextra_info->stack_bought.
760 (s390_frameless_function_invocation): Don't trust the value of
761 fextra_info_ptr->stack_bought unless
762 fextra_info->stack_bought_valid is set.
763
764 New S390 prologue analyzer.
765 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
766 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
767 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
768 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
769 compute_x_addr, s390_on_stack, s390_store,
770 s390_get_signal_frame_info): New functions.
771 (S390_NUM_SPILL_SLOTS): New macro.
772 (s390_get_frame_info): Rewritten.
773 (is_arg_reg): Deleted.
774
775 Break out the decoding of S/390 instructions into separate
776 functions, to make it more legible, and easier to check
777 against the spec.
778 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
779 is_rx, is_rxe): New functions.
780 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
781 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
782 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
783 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
784 enums for opcode values. (Is this an improvement?)
785
7862003-07-02 Andrew Cagney <[email protected]>
787
788 * i386-tdep.c: Revert change committed as part of trad-frame code
789 below.
790
7912003-07-02 Daniel Jacobowitz <[email protected]>
792
793 * breakpoint.c (insert_catchpoint): Make static.
794
7952003-07-02 Andreas Schwab <[email protected]>
796
797 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
798 former ia64_push_arguments and ia64_push_return_address, and use
799 regcache functions instead of read/write_register.
800 (ia64_gdbarch_init): Set push_dummy_call instead of
801 deprecated_push_arguments and deprecated_push_return_address.
802
8032003-07-01 Andreas Jaeger <[email protected]>
804
805 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
806 before the call.
807 Set %rax only to number of SSE registers used.
808
8092003-07-01 Andrew Cagney <[email protected]>
810
811 * trad-frame.h: Update comments, a -1 .addr is reserved.
812 (trad_frame_value_p, trad_frame_addr_p): Declare.
813 (trad_frame_reg_p): Declare.
814 (trad_frame_set_value): Rename trad_frame_register_value.
815 (trad_frame_set_unknown): Declare.
816 * trad-frame.c (trad_frame_realreg_p): New function.
817 (trad_frame_addr_p, trad_frame_value_p): New function.
818 (trad_frame_set_unknown): New function.
819 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
820 (trad_frame_prev_register): Use trad_frame_realreg_p,
821 trad_frame_addr_p and trad_frame_value_p.
822 (trad_frame_set_value): Rename trad_frame_register_value.
823 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
824 and trad_frame_set_value.
825
8262003-06-30 Jim Blandy <[email protected]>
827
828 Patch from IBM (authors unspecified, probably Ulrich Weigand and
829 Gerhard Tonn) for argument passing on the S/390 and S/390x:
830 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
831 for 16 registers, and then 32 more bytes.
832 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
833 New macros.
834 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
835 Move up in the file, since it's now used by is_simple_arg.
836 (is_simple_arg): Don't assume registers are four bytes long.
837 Exclude all double arguments. Extended floats are not simple
838 args.
839 (is_power_of_two): New function.
840 (pass_by_copy_ref): Call is_power_of_two, and check that the
841 length fits in a register, rather than listing all the acceptable
842 sizes. Extended floats are not passed by reference.
843 (s390_push_arguments): Don't assume registers are four bytes long.
844 Reserve an argument register to point to the buffer for structures
845 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
846 S390_STACK_FRAME_OVERHEAD.
847
8482003-06-30 Andreas Schwab <[email protected]>
849
850 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
851 format error message.
852
8532003-06-30 Joel Brobecker <[email protected]>
854
855 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
856
8572003-06-30 David Carlton <[email protected]>
858
859 Band-aid for PR c++/1245.
860 * Makefile.in (cp-support.o): Depend on complaints_h.
861 * cp-support.c: Include complaints.h. Add declaration for
862 find_last_component.
863 (cp_find_first_component): Separate code into
864 cp_find_first_component_aux.
865 (cp_find_first_component_aux): Call demangled_name_complaint.
866 (demangled_name_complaint): New.
867
8682003-06-30 Andrew Cagney <[email protected]>
869
870 * remote.c (remote_write_bytes): Explicitly compute and then use
871 the payload size. Update comments to reflect. Fixes problem of
872 GDB not sending small packets as found by Fred Fish.
873
8742003-06-30 Andrew Cagney <[email protected]>
875
876 * remote.c (remote_async_wait): Fix -Wformat problem.
877
8782003-06-29 Andrew Cagney <[email protected]>
879
880 * remote.c (remote_wait): Call error, and not warning, when the
881 packet is corrupt.
882 (remote_async_wait): Ditto.
883
8842003-06-29 Daniel Jacobowitz <[email protected]>
885
886 * sparc-tdep.c (sparc_y_regnum): Make external again.
887
8882003-06-29 Daniel Jacobowitz <[email protected]>
889
890 * cli/cli-logging.c (pop_output_files): Add void to function
891 definition.
892
8932003-06-29 Andrew Cagney <[email protected]>
894
895 * frame.c (frame_register_unwind): Use unsigned char when dumping
896 the buffer contents.
897
8982003-06-28 Daniel Jacobowitz <[email protected]>
899
900 * cli/cli-logging.c: New file.
901 * cli-out.c (struct ui_out_data): Add original_stream.
902 (cli_redirect): New function.
903 (cli_ui_out_impl): Add cli_redirect.
904 (cli_out_new): Initialize original_stream.
905 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
906 (uo_redirect, ui_out_redirect): New.
907 * ui-out.h (struct ui_out_impl): Add redirect member.
908 (redirect_ftype): New.
909 (ui_out_redirect): Add prototype.
910 * Makefile.in: Add rules for cli-logging.c.
911 * NEWS: Mention "set logging".
912
9132003-06-27 Elena Zannoni <[email protected]>
914
915 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
916
9172003-06-27 Andrew Cagney <[email protected]>
918
919 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
920 (m68hc11_gdbarch_init): Do not set call_dummy_address.
921 * avr-tdep.c (avr_call_dummy_address): Delete function.
922 (avr_gdbarch_init): Do not set call_dummy_address.
923
9242003-06-27 Elena Zannoni <[email protected]>
925
926 * symfile.c (syms_from_objfile): Move variables to inner block.
927 Move the checks for the non-mainline case a bit earlier to avoid
928 doing some useless computations.
929
9302003-06-27 Elena Zannoni <[email protected]>
931
932 * dwarfread.c (decode_modified_type): Gag new compiler warning.
933
9342003-06-26 Elena Zannoni <[email protected]>
935
936 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
937 sections.
938
9392003-06-26 Michael Chastain <[email protected]>
940
941 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
942 gdb/testsuite/gdb.c++/pr-1210.exp.
943
9442003-06-26 Andrew Cagney <[email protected]>
945
946 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
947 altivec_expression.h and altivec_registers.h.
948
9492003-06-26 Andrew Cagney <[email protected]>
950
951 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
952 info->mach when MIPS16. Patch suggested by Fred Fish.
953
9542003-06-26 Andrew Cagney <[email protected]>
955
956 * utils.c (internal_vproblem): Print the problem to a reason
957 buffer and then pass to query. Make the msg variable more local.
958
9592003-06-26 Andrew Cagney <[email protected]>
960
961 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
962 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
963 * gdbarch.h, gdbarch.c: Re-generate.
964 * frame-base.c (default_frame_args_address): Update. Use
965 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
966 not available.
967 (default_frame_locals_address): Ditto for
968 DEPRECATED_FRAME_LOCALS_ADDRESS.
969 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
970 (vax_frame_num_args): Update.
971 (vax_gdbarch_init): Update.
972 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
973 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
974 * mcore-tdep.c (mcore_gdbarch_init): Update.
975 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
976 * ia64-tdep.c (ia64_gdbarch_init): Update.
977 * symtab.h (address_class): Update comments.
978 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
979 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
980 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
981 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
982 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
983 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
984 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
985 * alpha-mdebug-tdep.c: Update.
986 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
987
9882003-06-26 Andreas Jaeger <[email protected]>
989
990 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
991 of SSE registers so that varargs functions work. Rework handling
992 of passing arguments on the stack.
993 (x86_64_store_return_value): Return double and float values in SSE
994 register.
995
9962003-06-24 Michael Chastain <[email protected]>
997
998 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
999 the "constructor breakpoints ignored" bug.
1000
10012003-06-25 David Carlton <[email protected]>
1002
1003 * MAINTAINERS: Update e-mail address.
1004
10052003-06-24 Jim Blandy <[email protected]>
1006
1007 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1008
1009 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1010 function.
1011 (ppc_linux_init_abi): Register it as the
1012 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1013
1014 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1015 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1016 method.
1017
1018 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1019 (ppc64_standard_linkage_target): Use it.
1020
10212003-06-23 Andrew Cagney <[email protected]>
1022
1023 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1024 for 0 "int0" and 4 "int32" sized registers.
1025 * gdbtypes.c (builtin_type_int0): Define.
1026 (build_gdbtypes): Initialize builtin_type_int0.
1027 * gdbtypes.h (builtin_type_int0): Declare.
1028
10292003-06-23 Stephane Carrez <[email protected]>
1030
1031 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1032 as characters are unsigned.
1033
10342003-06-22 Daniel Jacobowitz <[email protected]>
1035
1036 PR gdb/1179
1037 * dwarfread.c (struct_type): Skip static fields without crashing.
1038
10392003-06-22 Andrew Cagney <[email protected]>
1040
1041 GDB 6.0 branch created.
1042 * README: Update.
1043 * PROBLEMS: Update. Empty.
1044 * NEWS: Update.
1045
10462003-06-22 Daniel Jacobowitz <[email protected]>
1047
1048 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1049 Suggested by Nick Hibma <[email protected]>.
1050
10512003-06-22 Andrew Cagney <[email protected]>
1052
1053 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1054 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1055 Velikov.
1056
10572003-06-22 Daniel Jacobowitz <[email protected]>
1058
1059 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1060 compilers.
1061
10622003-06-21 Daniel Jacobowitz <[email protected]>
1063
1064 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1065 argument of val_print.
1066 * cp-valprint.c (cp_print_value): Don't add the offset parameter
1067 to the address argument of baseclass_offset or target_read_memory.
1068 Do add it to the argument of cp_print_value_fields.
1069
10702003-06-21 Andrew Cagney <[email protected]>
1071
1072 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1073 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1074 instead of 0..NUM_REGS.
1075 (mips_register_reggroup_p): New function.
1076 (mips_pseudo_register_write): New function.
1077 (mips_pseudo_register_read): New function.
1078 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1079 based on the register's type.
1080 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
1081 cooked.
1082 (mips_get_saved_register): Simplify. Assert that REGNO is a
1083 pseudo / cooked.
1084 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
1085 (mips_register_type): Replace mips_register_virtual_type. Map
1086 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
1087 when available.
1088 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
1089 that the register is cooked / virtual.
1090 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
1091 Only get the extra info when needed.
1092 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
1093 (mips32_heuristic_proc_desc): Fetch the cooked register.
1094 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
1095 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
1096 (mips_print_register): Use gdbarch_register_type, instead of
1097 REGISTER_VIRTUAL_TYPE.
1098 (print_gp_register_row): Use gdbarch_register_type, instead of
1099 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
1100 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1101 Print the pseudo / cooked registers.
1102 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1103 Print the pseudo / cooked registers.
1104 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
1105 REG_NUM is pseudo / cooked.
1106 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
1107 (mips_n32n64_xfer_return_value): Ditto.
1108 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
1109 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1110 (mips_register_sim_regno): New function.
1111 (mips_gdbarch_init): Set deprecated_register_byte,
1112 register_group_p, pseudo_register_write, pseudo_register_read,
1113 register_sim_regno, and num_pseudo_regs. Set register_type,
1114 instead of register_virtual_type.
1115 * Makefile.in (mips-tdep.o): Update dependencies.
1116 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
1117 REGISTER_VIRTUAL_TYPE.
1118 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
1119 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
1120 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
1121 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
1122 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
1123
11242003-06-21 Daniel Jacobowitz <[email protected]>
1125
1126 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
1127 * cli/cli-cmds.c: Include "gdb_vfork.h".
1128 (shell_escape): Use vfork.
1129
11302003-06-21 Andrew Cagney <[email protected]>
1131
1132 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
1133 32 bit floating-point register saves.
1134
1135 * frame.h (deprecated_unwind_get_saved_register): Delete.
1136 * frame.c (deprecated_unwind_get_saved_register): Delete function.
1137 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
1138 and deprecated_get_next_frame_hack instead of
1139 deprecated_unwind_get_saved_register.
1140
1141 * mips-tdep.c (mips_dump_tdep): Do not print
1142 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
1143
1144 * frame.c (get_frame_register): New function.
1145 (frame_unwind_register_signed): New function.
1146 (get_frame_register_signed): New function.
1147 (frame_unwind_register_unsigned): New function.
1148 (get_frame_register_unsigned): New function.
1149 * frame.h: Add comments on naming schema.
1150 (get_frame_register, frame_unwind_register_signed): Declare.
1151 (get_frame_register_signed, get_frame_register_signed): Declare.
1152 (frame_unwind_register_unsigned): Declare.
1153 (get_frame_register_unsigned): Declare.
1154
11552003-06-20 Theodore A. Roth <[email protected]>
1156
1157 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
1158
11592003-06-20 Theodore A. Roth <[email protected]>
1160
1161 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
1162 (avr_read_sp): Ditto.
1163
11642003-06-20 Daniel Jacobowitz <[email protected]>
1165
1166 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
1167 * config/arm/nm-linux.h: Likewise.
1168 * config/arm/tm-linux.h: Likewise.
1169 * config/ia64/nm-linux.h: Likewise.
1170 * config/ia64/tm-ia64.h: Likewise.
1171 * config/s390/tm-linux.h: Likewise.
1172 * config/s390/tm-s390.h: Likewise.
1173 * s390-nat.c: Likewise.
1174 * s390-tdep.c: Likewise.
1175
1176 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
1177 * config/ia64/linux.mt: Likewise.
1178 * config/m68k/linux.mh: Likewise.
1179 * config/mips/linux.mt: Likewise.
1180 * config/powerpc/linux.mh: Likewise.
1181 * config/sh/linux.mt: Likewise.
1182
11832003-06-19 Kris Warkentin <[email protected]>
1184
1185 * solib.c (solib_open): Change tests for whether to search
1186 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
1187 comments.
1188
11892003-06-19 Theodore A. Roth <[email protected]>
1190
1191 * avr-tdep.c (avr_frame_address): Delete function.
1192 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
1193 set_gdbarch_frame_args_address.
1194
11952003-06-19 Andrew Cagney <[email protected]>
1196
1197 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
1198 (REGISTER_CONVERT_FROM_TYPE): Delete.
1199 (mips_register_convert_to_type): Delete declaration.
1200 (mips_register_convert_from_type): Delete declaration.
1201 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
1202 kernel/.
1203
12042003-06-19 Michael Snyder <[email protected]>
1205
1206 * linux-nat.h: New file.
1207 * linux-nat.c: Include linux-nat.h.
1208 * lin-lwp.c: Include linux-nat.h.
1209 Move struct lwp_info def to linux-nat.h.
1210 * linux-proc.c: Include linux-nat.h.
1211 (linux_make_note_section): Iterate over lwps instead of threads.
1212 (linux_do_thread_registers): Use lwp instead of merged pid.
1213 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
1214 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
1215 Add dependency on linux_nat_h.
1216
12172003-06-19 Theodore A. Roth <[email protected]>
1218
1219 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
1220
12212003-06-19 Daniel Jacobowitz <[email protected]>
1222
1223 * varobj.c (get_type, get_target_type): Use check_typedef.
1224
12252003-06-19 Daniel Jacobowitz <[email protected]>
1226
1227 * breakpoint.c (insert_catchpoint): Call internal_error.
1228
12292003-06-19 Theodore A. Roth <[email protected]>
1230
1231 * avr-tdep.c (avr_push_dummy_code): Delete function.
1232 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
1233
12342003-06-19 Daniel Jacobowitz <[email protected]>
1235
1236 * arch-utils.c (default_prepare_to_proceed): Remove.
1237 (generic_prepare_to_proceed): Remove.
1238 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
1239 (generic_prepare_to_proceed): Remove prototype.
1240 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
1241 * gdbarch.c: Regenerate.
1242 * gdbarch.h: Regenerate.
1243 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
1244 * hppah-nat.c (hppa_switched_threads): Remove.
1245 * infrun.c (prepare_to_proceed): New static function, copied from
1246 generic_prepare_to_proceed. Remove select_it argument.
1247 (proceed): Call prepare_to_proceed.
1248 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
1249 variables.
1250 (ptrace_wait): Don't set the removed variables.
1251 (hppa_switched_threads): Remove.
1252 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
1253 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
1254 (lin_lwp_prepare_to_proceed): Remove prototype.
1255 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
1256 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
1257
12582003-06-18 Theodore A. Roth <[email protected]>
1259
1260 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
1261 trad-frame.h.
1262 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
1263 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
1264 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
1265 (AVR_PROLOGUE_*): Enumerate prologue types.
1266 (struct frame_extra_info): Remove.
1267 (struct avr_unwind_cache): Define.
1268 (avr_write_sp): Delete function.
1269 (avr_read_fp): Ditto.
1270 (avr_init_extra_frame_info): Ditto.
1271 (avr_pop_frame): Ditto.
1272 (avr_frame_saved_pc): Ditto.
1273 (avr_saved_pc_after_call): Ditto.
1274 (avr_push_return_address): Ditto.
1275 (avr_frame_chain): Ditto.
1276 (avr_store_struct_return): Ditto.
1277 (avr_push_arguments): Ditto.
1278 (avr_scan_prologue): Update comments. Changed to set up the info for
1279 cache unwinding. Now returns end of prologue PC.
1280 (avr_skip_prologue): Better handling of functions lacking a prologue
1281 by using avr_scan_prologue.
1282 (avr_scan_arg_moves): New function.
1283 (avr_saved_regs_unwinder): Ditto.
1284 (avr_frame_unwind_cache): Ditto.
1285 (avr_unwind_pc): Ditto.
1286 (avr_frame_this_id): Ditto.
1287 (avr_frame_prev_register): Ditto.
1288 (avr_frame_p): Ditto.
1289 (avr_frame_base_address ): Ditto.
1290 (avr_unwind_dummy_id): Ditto.
1291 (avr_push_dummy_code): Ditto.
1292 (push_stack_item): Ditto.
1293 (pop_stack_item): Ditto.
1294 (avr_push_dummy_call): Ditto.
1295 (struct stack_item): Define.
1296 (avr_frame_unwind): Declare structure.
1297 (avr_frame_base): Ditto.
1298 (avr_gdbarch_init): Remove calls to
1299 set_gdbarch_deprecated_init_frame_pc,
1300 set_gdbarch_deprecated_target_read_fp,
1301 set_gdbarch_deprecated_dummy_write_sp,
1302 set_gdbarch_deprecated_fp_regnum,
1303 set_gdbarch_deprecated_push_arguments,
1304 set_gdbarch_deprecated_push_return_address,
1305 set_gdbarch_deprecated_pop_frame,
1306 set_gdbarch_deprecated_store_struct_return,
1307 set_gdbarch_deprecated_frame_init_saved_regs,
1308 set_gdbarch_deprecated_init_extra_frame_info,
1309 set_gdbarch_deprecated_frame_chain,
1310 set_gdbarch_deprecated_frame_saved_pc,
1311 set_gdbarch_deprecated_saved_pc_after_call.
1312 Add calls to set_gdbarch_push_dummy_call,
1313 set_gdbarch_push_dummy_code,
1314 frame_unwind_append_predicate,
1315 frame_base_set_default,
1316 set_gdbarch_unwind_dummy_id,
1317 set_gdbarch_unwind_pc.
1318 Wrap a long line.
1319
13202003-06-18 Corinna Vinschen <[email protected]>
1321
1322 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
1323 registers for H8/300S.
1324 (h8300_print_registers_info): Ditto.
1325 (h8300_gdbarch_init): Accommodate register count for H8/300S.
1326
13272003-06-18 Daniel Jacobowitz <[email protected]>
1328
1329 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
1330 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1331 (lin_lwp_wait): Likewise. Update comments.
1332 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
1333 (pull_pid_from_list, linux_record_stopped_pid): New.
1334
13352003-06-17 Stephane Carrez <[email protected]>
1336
1337 * ada-lang.c (scan_discrim_bound): Name first argument.
1338 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
1339 declared by ALL_BLOCK_SYMBOLS.
1340
13412003-06-17 Stephane Carrez <[email protected]>
1342
1343 * ada-tasks.c (find_function_in_inferior): Don't declare it.
1344 ("regcache.h"): Include it.
1345 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
1346
13472003-06-17 Daniel Jacobowitz <[email protected]>
1348
1349 * NEWS: Mention gdbserver detach change and "disconnect" command.
1350 * infcmd.c (disconnect_command): New function.
1351 (_initialize_infcmd): Add ``disconnect'' command.
1352 * remote.c (remote_async_detach): Delete.
1353 (remote_detach): Merge remote_async_detach.
1354 (remote_disconnect): New.
1355 (init_remote_ops): Set to_disconnect.
1356 (init_remote_cisco_ops): Likewise.
1357 (init_remote_async_ops): Likewise. Use remote_detach.
1358 * target.c (cleanup_target): Default to_disconnect.
1359 (update_current_target): Inherit to_disconnect.
1360 (target_disconnect, debug_to_disconnect): New functions.
1361 (setup_target_debug): Set to_disconnect.
1362 * target.h (struct target_ops): Add to_disconnect.
1363 (target_disconnect): Add prototype.
1364
13652003-06-17 Daniel Jacobowitz <[email protected]>
1366
1367 * breakpoint.c (insert_catchpoint): New function.
1368 (insert_breakpoints): Use catch_exceptions to call
1369 insert_catchpoint. Disable catchpoints if they fail to insert.
1370
13712003-06-17 Daniel Jacobowitz <[email protected]>
1372
1373 * symfile.c (reread_symbols): Clear sym_private.
1374
13752003-06-17 Andrew Cagney <[email protected]>
1376
1377 * trad-frame.h (struct frame_info): Add opaque declaration.
1378 * remote-fileio.h (struct cmd_list_element): Add opaque
1379 declaration.
1380 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
1381 comments.
1382
13832003-06-17 Daniel Jacobowitz <[email protected]>
1384
1385 * remote.c (remote_prepare_to_store): Replace call to
1386 deprecated_read_register_bytes with multiple regcache_raw_read
1387 calls.
1388
13892003-06-17 Kris Warkentin <[email protected]>
1390
1391 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
1392 (nto_find_and_open_solib): Likewise.
1393 (nto_init_solib_absolute_prefix): Likewise.
1394 (_initialize_nto_tdep): Fix indentation.
1395
13962003-06-17 Kris Warkentin <[email protected]>
1397
1398 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
1399
14002003-06-17 Kris Warkentin <[email protected]>
1401
1402 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
1403
14042003-06-17 Jim Blandy <[email protected]>
1405
1406 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
1407
14082003-06-16 Theodore A. Roth <[email protected]>
1409
1410 * avr-tdep.c (avr_extract_return_value): New function.
1411 (avr_gdbarch_init): Set extract_return_value method.
1412
14132003-06-16 Andrew Cagney <[email protected]>
1414
1415 * frame.h (deprecated_get_next_frame_hack): Declare.
1416 * frame.c (legacy_saved_regs_prev_register): Only require
1417 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
1418 there are always saved regs.
1419 (deprecated_generic_get_saved_register): Do not require
1420 DEPRECATED_FRAME_INIT_SAVED_REGS.
1421 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
1422 use frame ID unwind instead.
1423 (deprecated_get_next_frame_hack): New function.
1424
14252003-06-16 Corinna Vinschen <[email protected]>
1426
1427 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
1428 (h8300_push_dummy_call): ...this function. Some minor optimization.
1429 (h8300_push_return_address): Remove.
1430 (h8300_gdbarch_init): Remove calls to
1431 set_gdbarch_deprecated_dummy_write_sp,
1432 set_gdbarch_deprecated_push_arguments and
1433 set_gdbarch_deprecated_push_return_address.
1434 Add call to set_gdbarch_push_dummy_call.
1435
14362003-06-16 Corinna Vinschen <[email protected]>
1437
1438 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
1439 (E_PSEUDO_EXR_REGNUM): Ditto.
1440 (h8300_is_argument_spill): Check for instructions moving argument
1441 registers into safe registers.
1442 (h8300_skip_prologue): Check for stm instruction to push registers
1443 used for register variables onto stack.
1444 (gdb_print_insn_h8300): Remove.
1445 (h8300_examine_prologue): Add a comment.
1446 (h8300_register_name): Take pseudo registers into account.
1447 (h8300s_register_name): Ditto.
1448 (h8300sx_register_name): Ditto.
1449 (h8300_print_register): Ditto.
1450 (h8300_print_registers_info): Define "nice" printing order.
1451 (h8300_saved_pc_after_call): Take pseudo registers into account.
1452 (h8300_register_type): Ditto. Return type used for remote connection
1453 when requesting real CCR or EXR register, return actual type when
1454 requesting pseudo CCR or EXR.
1455 (h8300_pseudo_register_read): New function.
1456 (h8300_pseudo_register_write): Ditto.
1457 (h8300_dbg_reg_to_regnum): Ditto.
1458 (h8300s_dbg_reg_to_regnum): Ditto.
1459 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
1460 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
1461 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
1462 set_gdbarch_print_insn architecture dependent.
1463 Call set_gdbarch_pseudo_register_read and
1464 set_gdbarch_pseudo_register_write.
1465 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
1466
14672003-06-16 Andrew Cagney <[email protected]>
1468
1469 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
1470 * gdbarch.h, gdbarch.c: Re-generate.
1471 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1472 * s390-tdep.c (s390_gdbarch_init): Update.
1473 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1474 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1475 * mips-tdep.c (mips_gdbarch_init): Update.
1476 * mcore-tdep.c (mcore_gdbarch_init): Update.
1477 * cris-tdep.c (cris_gdbarch_init): Update.
1478 * infcall.c (call_function_by_hand): Update.
1479 * ia64-tdep.c (ia64_push_arguments): Update comment.
1480 * frame.c (legacy_get_prev_frame): Do not assume
1481 SAVE_DUMMY_FRAME_TOS_P.
1482 * dummy-frame.c (find_dummy_frame): Update comment.
1483
14842003-06-16 Andrew Cagney <[email protected]>
1485
1486 * regcache.c (do_cooked_read): Do not use register_valid_p.
1487
14882003-06-15 Theodore A. Roth <[email protected]>
1489
1490 * avr-tdep.c (avr_register_type): Remove a blank line.
1491 (avr_scan_prologue): Correct some comments.
1492
14932003-06-15 Theodore A. Roth <[email protected]>
1494
1495 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
1496 prologue types.
1497 Properly scan prologues generated by gcc with the -mcall-prologues
1498 option.
1499 Add code to scan -mcall-prologues for mega devices.
1500
15012003-06-15 Theodore A. Roth <[email protected]>
1502
1503 * avr-tdep.c (avr_register_byte): Delete function.
1504 (avr_register_raw_size): Delete function.
1505 (avr_register_virtual_size): Delete function.
1506 (avr_register_virtual_type): Delete function.
1507 (avr_register_type): New function.
1508 (avr_address_to_pointer): Remove unused code.
1509 (avr_read_fp): Need to read FP as two separate bytes due to change to
1510 avr_register_type() usage.
1511 (avr_gdbarch_init): Don't set deprecated_register_size.
1512 Don't set deprecated_register_bytes.
1513 Don't set deprecated_register_byte.
1514 Don't set deprecated_register_raw_size.
1515 Don't set deprecated_max_register_raw_size.
1516 Don't set deprecated_register_virtual_size.
1517 Don't set deprecated_max_register_virtual_size.
1518 Don't set deprecated_register_virtual_type.
1519 Set register_type method.
1520
15212003-06-15 Daniel Jacobowitz <[email protected]>
1522
1523 * Makefile.in (linux-nat.o): Add rule.
1524 * linux-nat.c: New file.
1525 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
1526 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
1527 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
1528 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
1529 * config/arm/linux.mh (NATDEPFILES): Likewise.
1530 * config/i386/linux.mh (NATDEPFILES): Likewise.
1531 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
1532 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1533 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1534 * config/mips/linux.mh (NATDEPFILES): Likewise.
1535 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
1536 * config/s390/s390.mh (NATDEPFILES): Likewise.
1537 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1538
15392003-06-15 Mark Kettenis <[email protected]>
1540
1541 * i387-tdep.c: Reorder includes, fix some whitespace issues and
1542 replace out-of-date comment.
1543
15442003-06-15 Andrew Cagney <[email protected]>
1545
1546 * rdi-share/host.h (Fail): Change to a varargs function.
1547 * remote-rdi.c (Fail): Update.
1548
15492003-06-15 Mark Kettenis <[email protected]>
1550
1551 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
1552 (i386_convert_register_p, i386_register_to_value,
1553 i386_register_from_value): Handle types longer than 8 bytes.
1554
15552003-06-15 Mark Kettenis <[email protected]>
1556
1557 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
1558 Move floating-point code to new function in i387-tdep.c.
1559 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
1560 New functions containing code moved here from i386-tdep.c.
1561 * i387-tdep.h: Add opaque declaration for `struct type'.
1562 (i387_register_to_value, i387_value_to_register): New prototypes.
1563 * x86-64-tdep.c (x86_64_convert_register_p): New function.
1564 (x86_64_init_abi): Set convert_register_p, register_to_value and
1565 value_to_register here.
1566
15672003-06-14 Andrew Cagney <[email protected]>
1568
1569 * mips-tdep.c (mips_register_to_value): Make static.
1570 (mips_value_to_register): Make static.
1571 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
1572 * ia64-tdep.c (ia64_register_raw_size): Make static.
1573 (ia64_register_virtual_size): Make static.
1574 (ia64_register_byte): Make static.
1575 * i387-tdep.c: Include "i387-tdep.h".
1576 (print_387_control_word): Delete function.
1577 (print_387_status_word): Delete function.
1578 (print_387_status_bits): Delete function.
1579 (print_387_control_bits): Delete function.
1580 * Makefile.in (i387-tdep.o): Update dependencies.
1581 * rdi-share/host.h (Fail): Declare.
1582 * remote-rdi.c (Fail): Update to match declaration.
1583
15842003-06-14 Andrew Cagney <[email protected]>
1585
1586 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
1587 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
1588 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
1589 * config/djgpp/fnchange.lst: Delete "remote-array.c".
1590 * README: Delete reference to remote-array.
1591 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
1592 (remote-array.o): Delete target.
1593 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
1594 * remote-array.c: Delete file.
1595
15962003-06-14 Andrew Cagney <[email protected]>
1597 Mark Kettenis <[email protected]>
1598
1599 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
1600 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
1601 parameter with "frame".
1602 * gdbarch.h, gdbarch.c: Re-generate.
1603 * frame.h (put_frame_register): Declare.
1604 * frame.c (put_frame_register): New function.
1605 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
1606 (legacy_register_to_value): Rewrite, use "frame" to get the
1607 register value.
1608 (legacy_value_to_register): Rewrite, use "frame" to find the
1609 register's location before storing.
1610 * arch-utils.h (legacy_convert_register_p): Update.
1611 (legacy_register_to_value, legacy_value_to_register): Update.
1612 * findvar.c (value_from_register): Rewrite, eliminate use of
1613 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
1614 "frame" to REGISTER_TO_VALUE.
1615 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
1616 lval_reg_frame_relative + lval_register branch of the switch. Do
1617 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
1618 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1619 I386_EDI_REGNUM): New defines.
1620 (i386_next_regnum, i386_convert_register_p,
1621 i386_register_to_value, i386_value_to_register): New functions.
1622 (i386_register_convertible, i386_register_convert_to_virtual,
1623 i386_convert_to_raw): Remove functions.
1624 (i386_gdbarch_init): Set convert_register_p, register_to_value and
1625 value_to_register instead of register_convertible,
1626 register_convert_to_virtual and register_convert_to_raw.
1627 * mips-tdep.c (mips_convert_register_p): New function.
1628 (mips_value_to_register): Replace mips_register_convert_from_type.
1629 (mips_register_to_value): Replace mips_register_convert_to_type.
1630 (mips_gdbarch_init): Set conver_register_p, value_to_register and
1631 register_to_value.
1632 * alpha-tdep.c (alpha_convert_register_p): Update.
1633 (alpha_value_to_register): Update, store the register.
1634 (alpha_register_to_value): Update, fetch the register.
1635
16362003-06-14 Theodore A. Roth <[email protected]>
1637
1638 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
1639 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
1640 Don't set deprecated_call_dummy_words.
1641 Remove commented out set_gdbarch_believe_pcc_promotion() call.
1642 Don't set remote_translate_xfer_address.
1643 (avr_io_reg_read_command): Remove commented out debug printf.
1644 Wrap a long line.
1645
16462003-06-14 Theodore A. Roth <[email protected]>
1647
1648 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
1649 causes gdb to seg fault.
1650
16512003-06-14 Daniel Jacobowitz <[email protected]>
1652
1653 * sparc-nat.c (fetch_inferior_registers): Correct
1654 a reference to "registers".
1655
16562003-06-14 Jeroen Dekkers <[email protected]>
1657
1658 * Makefile.in (exc_request_U_h): Define
1659 (exc_request_S_h): Likewise.
1660 (msg_reply_S_h): Likewise.
1661 (msg_U_h): Likewise.
1662 (notify_S_h): Likewise.
1663 (process_reply_S_h): Likewise.
1664 (gnu-nat.o): Depend on gdb_obstack_h
1665 * gnu-nat.c: Include "gdb_obstack.h".
1666
16672003-06-13 Andrew Cagney <[email protected]>
1668
1669 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
1670 * gdbarch.h, gdbarch.c: Re-generate.
1671
16722003-06-13 Andrew Cagney <[email protected]>
1673
1674 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
1675 when deprecated REGISTER macros can be deleted.
1676 * gdbarch.h, gdbarch.c: Re-generate.
1677
16782003-06-13 Jim Blandy <[email protected]>
1679
1680 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
1681 Linux entry point symbols for _dl_debug_state, too.
1682
16832003-06-13 Andrew Cagney <[email protected]>
1684
1685 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
1686 available, do not use the FP register, and always save the TOS.
1687 * dummy-frame.c (dummy_frame_this_id): Do not assert
1688 SAVE_DUMMY_FRAME_TOS.
1689 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
1690 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
1691 (i386_push_dummy_call): Add 8 to the returned SP.
1692 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
1693 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
1694 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
1695 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
1696 (x86_64_push_dummy_call): Return "sp + 16".
1697 (x86_64_init_abi): Do not set save_dummy_frame_tos.
1698 * alpha-tdep.c (alpha_gdbarch_init): Do not set
1699 save_dummy_frame_tos.
1700
17012003-06-13 Jim Blandy <[email protected]>
1702
1703 * frv-tdep.c (frv_use_struct_convention): Delete static
1704 declaration for function deleted in my change of 2003-06-12.
1705
17062003-06-13 Theodore A. Roth <[email protected]>
1707
1708 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
1709 (avr_pointer_to_address): Shift code addrs left 1 bit.
1710 (avr_convert_from_func_ptr_addr): Delete function since operation is
1711 better handled by avr_address_to_pointer and avr_pointer_to_address.
1712 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
1713
17142003-06-13 Mark Kettenis <[email protected]>
1715
1716 From Kelley Cook <[email protected]>:
1717 * configure.host: Accept i[34567]86 variants.
1718 * configure.tgt: Likewise.
1719 * nlm/configure.in: Likewise.
1720 * nlm/configure: Regenerated.
1721
17222003-06-13 Richard Earnshaw <[email protected]>
1723
1724 * arm-tdep.c (solib-svr4.h): Dont' include it.
1725 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
1726 * arm-linux-tdep.c: ... here. Make static.
1727 (arm_linux_init_abi): Register it.
1728 (solib-svr4.h): Include it.
1729 * Makefile.in: Update dependencies.
1730 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
1731 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
1732
17332003-06-13 Corinna Vinschen <[email protected]>
1734
1735 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
1736 indicate registers used for return values.
1737 (struct frame_extra_info): Drop args_pointer and locals_pointer.
1738 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
1739 members.
1740 (h8300_init_extra_frame_info): Ditto.
1741 (h8300_frame_locals_address): Removed.
1742 (h8300_frame_args_address): Removed.
1743 (h8300_extract_return_value): Use new regcache structure. Only care
1744 for 16 bit CPUs.
1745 (h8300h_extract_return_value): Same function for 32 bit CPUs.
1746 (h8300_store_return_value): Use new regcache structure. Only care
1747 for 16 bit CPUs.
1748 (h8300h_store_return_value): Same function for 32 bit CPUs.
1749 (h8300_store_struct_return): Removed.
1750 (h8300_extract_struct_value_address): Use new regcache structure.
1751 (h8300h_extract_struct_value_address): Removed.
1752 (h8300_push_dummy_code): New function.
1753 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
1754 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
1755 set_gdbarch_store_return_value architecture dependent.
1756 Call set_gdbarch_push_dummy_code and
1757 set_gdbarch_extract_struct_value_address.
1758 Remove calls to set_gdbarch_frame_args_address,
1759 set_gdbarch_frame_locals_address,
1760 set_gdbarch_deprecated_store_struct_return,
1761 set_gdbarch_deprecated_extract_return_value,
1762 set_gdbarch_deprecated_extract_struct_value_address,
1763 set_gdbarch_deprecated_call_dummy_words and
1764 set_gdbarch_deprecated_sizeof_call_dummy_words.
1765
17662003-06-13 Corinna Vinschen <[email protected]>
1767
1768 * h8300-tdep.c (h8300_register_byte): Remove.
1769 (h8300h_register_byte): Remove.
1770 (h8300_register_virtual_type): Remove. Substitute by...
1771 (h8300_register_type): New function.
1772 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
1773 (h8300h_extract_struct_value_address): Ditto.
1774 (h8300_gdbarch_init): Drop calls to
1775 set_gdbarch_deprecated_register_byte and
1776 set_gdbarch_deprecated_register_virtual_type.
1777 Add call to set_gdbarch_register_type.
1778
17792003-06-13 Andrew Cagney <[email protected]>
1780
1781 * gdbarch.sh: Update comments on registers.
1782 (deprecated_register_byte): Rename register_byte.
1783 (deprecated_register_raw_size): Rename register_raw_size.
1784 (deprecated_register_virtual_size): Rename register_virtual_size.
1785 (deprecated_register_virtual_type): Rename register_virtual_type.
1786 * gdbarch.h, gdbarch.c: Re-generate.
1787 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1788 * vax-tdep.c (vax_gdbarch_init): Update.
1789 * v850-tdep.c (v850_gdbarch_init): Update.
1790 * sparc-tdep.c (sparc_gdbarch_init): Update.
1791 * sh-tdep.c (sh_gdbarch_init): Update.
1792 * s390-tdep.c (s390_gdbarch_init): Update.
1793 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1794 * ns32k-tdep.c: Update.
1795 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1796 * mips-tdep.c (mips_gdbarch_init): Update.
1797 * mcore-tdep.c (mcore_gdbarch_init): Update.
1798 * m68k-tdep.c (m68k_gdbarch_init): Update.
1799 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1800 * ia64-tdep.c (ia64_gdbarch_init): Update.
1801 * hppa-tdep.c (hppa_gdbarch_init): Update.
1802 * h8300-tdep.c (h8300_gdbarch_init): Update.
1803 * frv-tdep.c (frv_gdbarch_init): Update.
1804 * cris-tdep.c (cris_gdbarch_init): Update.
1805 * avr-tdep.c (avr_gdbarch_init): Update.
1806 * alpha-tdep.c (alpha_gdbarch_init): Update.
1807 * arm-tdep.c (arm_gdbarch_init): Update.
1808
18092003-06-13 Andrew Cagney <[email protected]>
1810
1811 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
1812 mips_o32_use_struct_convention with always_use_struct_convention.
1813
18142003-06-12 David Carlton <[email protected]>
1815
1816 * cp-namespace.c (cp_set_block_scope): Comment out
1817 processing_has_namespace_info branch.
1818
18192003-06-12 Jim Blandy <[email protected]>
1820
1821 Recognize and skip 64-bit PowerPC Linux linkage functions.
1822 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
1823 insn_pattern, insns_match_pattern, d_field, ds_field): New
1824 functions, macros, and types for working with PPC instructions.
1825 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
1826 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
1827 ppc64_skip_trampoline_code): New functions, variables, and macros
1828 for recognizing and skipping linkage functions.
1829 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
1830 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
1831
1832 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
1833 register offsets for both the 32- and 64-bit interfaces.
1834
1835 Actually finish the job started by my change of 2003-05-29.
1836 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
1837 other #definition of this.
1838 (ppc_linux_skip_trampoline_code): Remove declaration.
1839 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
1840 static.
1841 (ppc_linux_init_abi): Register it as the skip_trampoline_code
1842 method for GDBARCH.
1843
1844 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
1845 'long' on ppc64-*-linux*.
1846
1847 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
1848 isn't #defined, assume the register doesn't exist: act as if
1849 tdep->ppc_mq_regnum were -1.
1850
1851 * configure.host, configure.tgt: Add entries for
1852 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
1853 powerpc/linux.mt.
1854 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
1855 New files.
1856
1857 * arch-utils.c (always_use_struct_convention): New function.
1858 * arch-utils.h (always_use_struct_convention): New prototype.
1859 * alpha-tdep.c (alpha_use_struct_convention): Delete.
1860 (alpha_gdbarch_init): Register always_use_struct_convention,
1861 instead of alpha_use_struct_convention.
1862 * cris-tdep.c (cris_use_struct_convention): Delete.
1863 (cris_gdbarch_init): Register always_use_struct_convention,
1864 instead of cris_use_struct_convention.
1865 * frv-tdep.c (frv_use_struct_convention): Delete.
1866 (frv_gdbarch_init): Register always_use_struct_convention,
1867 instead of frv_use_struct_convention.
1868 * h8300-tdep.c (h8300_use_struct_convention): Delete.
1869 (h8300_gdbarch_init): Register always_use_struct_convention,
1870 instead of h8300_use_struct_convention.
1871 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1872 (mips_o32_gdbarch_init): Register always_use_struct_convention,
1873 instead of mips_o32_use_struct_convention.
1874
18752003-06-12 Andrew Cagney <[email protected]>
1876
1877 * wince.c: Include "mips-tdep.h".
1878 * mips-tdep.h (mips_next_pc): Declare.
1879 * mcore-tdep.c: Make more local functions static.
1880 * Makefile.in (wince.o): Update dependencies.
1881
18822003-06-12 David Carlton <[email protected]>
1883
1884 * symtab.c (lookup_symbol_aux_minsyms): Replace
1885 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
1886 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
1887 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
1888 SYMBOL_NATURAL_NAME.
1889
18902003-06-12 Andreas Schwab <[email protected]>
1891
1892 * Makefile.in (tuiDisassem.o): Update dependencies.
1893
18942003-06-12 David Carlton <[email protected]>
1895
1896 * symtab.h: Delete declaration of make_symbol_overload_list.
1897 Add declaration of lookup_partial_symbol.
1898 * symtab.c (remove_params): Move to cp-support.c.
1899 (overload_list_add_symbol, make_symbol_overload_list)
1900 (sym_return_val_size, sym_return_val_index): Ditto.
1901 (lookup_partial_symbol): Make extern.
1902 * cp-support.h: Add declaration of make_symbol_overload_list.
1903 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
1904 symtab.h, and block.h.
1905 (remove_params): Move here from symtab.c.
1906 (overload_list_add_symbol, make_symbol_overload_list)
1907 (sym_return_val_size, sym_return_val_index): Ditto.
1908 * valops.c: Include cp-support.h.
1909 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
1910 frame_h, and block_h.
1911 (valops.o): Depend on cp_support_h.
1912
19132003-06-12 Corinna Vinschen <[email protected]>
1914
1915 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
1916 substitute by NUM_REGS throughout.
1917 (h8300_register_name): Only care for H8/300 and H8/300H registers.
1918 (h8300s_register_name): New function for H8S registers.
1919 (h8300sx_register_name): Ditto for H8SX registers.
1920 (h8300_print_register): Revise register printing, avoid depending
1921 on 32 bit long.
1922 (h8300_register_byte): Only care for H8/300 registers.
1923 (h8300h_register_byte): New function for any other architecture.
1924 (h8300_register_raw_size): Remove.
1925 (h8300_register_virtual_type): Revise to return actually useful
1926 type.
1927 (h8300_extract_struct_value_address): Only care for H8/300 registers.
1928 (h8300h_extract_struct_value_address): New function for any other
1929 architecture.
1930 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
1931 set_gdbarch_register_name, set_gdbarch_register_byte,
1932 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
1933 Remove calls to set_gdbarch_deprecated_register_size,
1934 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
1935 set_gdbarch_deprecated_max_register_raw_size,
1936 set_gdbarch_register_virtual_size and
1937 set_gdbarch_deprecated_max_register_virtual_size entirely.
1938 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
1939 set_gdbarch_long_double_bit.
1940
19412003-06-11 Jeff Johnston <[email protected]>
1942
1943 * doublest.c (convert_doublest_to_floatformat): When dealing
1944 with the implied integer bit, only alter mant_bits if we are
1945 processing a full 32 bits of mantissa.
1946
19472003-06-11 David Carlton <[email protected]>
1948
1949 * dictionary.h: New.
1950 * dictionary.c: New.
1951 * block.h: Add opaque declaration for struct dictionary.
1952 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
1953 'sym' members.
1954 (BLOCK_DICT): New macro.
1955 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
1956 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
1957 BLOCK_SHOULD_SORT.
1958 (ALL_BLOCK_SYMBOLS): Update definition.
1959 * Makefile.in (SFILES): Add dictionary.c.
1960 (dictionary_h): New.
1961 (COMMON_OBS): Add dictionary.o.
1962 (dictionary.o): New.
1963 (ada-lang.o): Depend on dictionary_h.
1964 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
1965 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
1966 (mi-cmd-stack.o): Ditto.
1967 (gdbtk-cmds.o): Update dependencies.
1968 (gdbtk-stack.o): Ditto.
1969 * ada-lang.c: Include dictionary.h.
1970 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
1971 (fill_in_ada_prototype, debug_print_block): Ditto.
1972 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
1973 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
1974 'is_sorted'.
1975 * mdebugread.c: Include dictionary.h.
1976 (struct parse_stack): Delete 'maxsyms' member.
1977 (parse_symbol): Update calls to new_block. Delete calls to
1978 shrink_block. Use dictionary methods.
1979 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
1980 Update calls to new_symtab. Don't maintain maxsyms data.
1981 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
1982 (add_symbol): Just call dict_add_symbol.
1983 (new_symtab): Delete 'maxsyms' argument.
1984 (new_symtab): Update calls to new_block.
1985 (new_block): Delete 'maxsyms' argument; add 'function' argument.
1986 (shrink_block): Delete function.
1987 (fixup_sigtramp): Update call to new_block. Add symbol via
1988 dict_add_symbol.
1989 * jv-lang.c: Include dictionary.h.
1990 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
1991 appropriately. Set class_symtab->free_func. Make sure the
1992 blockvector is big enough to hold two blocks.
1993 (add_class_symtab_symbol): Use dictionary methods.
1994 (free_class_block): New function.
1995 (type_from_class): Replace explicit iteration by
1996 ALL_BLOCK_SYMBOLS.
1997 * symtab.h (struct symtab): Replace 'free_ptr' method by
1998 'free_func'.
1999 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2000 sort_symtab_syms.
2001 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2002 sort_symtab_syms.
2003 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2004 Include dictionary.h.
2005 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2006 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2007 sort_symtab_syms.
2008 * objfiles.c: Include dictionary.h.
2009 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2010 * buildsym.c: Include dictionary.h.
2011 (finish_block): Use dictionary methods.
2012 (end_symtab): Set free_func to NULL, not free_ptr.
2013 * tracepoint.c: Include dictionary.h.
2014 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2015 (scope_info): Ditto.
2016 * stack.c: Include dictionary.h.
2017 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2018 (print_block_frame_labels, print_frame_arg_vars)
2019 (print_frame_args): Ditto.
2020 * symmisc.c (free_symtab_block): Use dictionary methods.
2021 (dump_symtab): Ditto.
2022 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2023 Include dictionary.h.
2024 * symfile.h: Delete declarations of sort_block_syms,
2025 sort_symtab_syms.
2026 * symfile.c (sort_block_syms): Delete.
2027 (sort_symtab_syms): Delete.
2028 * symtab.c: Include dictionary.h.
2029 (lookup_block_symbol): Use dictionary iterators.
2030 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2031 (search_symbols, make_symbol_completion_list): Ditto.
2032 (make_symbol_overload_list): Ditto.
2033 * valops.c (value_of_local): Use dict_empty.
2034 Include dictionary.h.
2035
20362003-06-11 J. Brobecker <[email protected]>
2037
2038 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2039
20402003-06-11 David Carlton <[email protected]>
2041
2042 * block.h (BLOCK_SHOULD_SORT): Delete.
2043 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2044 blocks.
2045 * ada-lang.c (ada_add_block_symbols): Ditto.
2046 * symfile.c (sort_block_syms): Delete.
2047 (sort_symtab_syms): Ditto.
2048 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2049 declarations.
2050 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2051 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2052 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2053 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2054 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2055 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2056 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2057
20582003-06-11 Jeff Johnston <[email protected]>
2059
2060 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
2061 bits to 128.
2062
20632003-06-11 Andrew Cagney <[email protected]>
2064
2065 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2066 REGISTER_CONVERTIBLE.
2067 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2068 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2069 * gdbarch.h, gdbarch.c: Re-generate.
2070 * arch-utils.h (deprecated_register_convertible_not): Rename
2071 generic_register_convertible_not.
2072 * arch-utils.c (deprecated_register_convertible_not): Rename
2073 generic_register_convertible.
2074 (legacy_convert_register_p, legacy_register_to_value): Update.
2075 * sh-tdep.c (sh64_push_arguments): Update.
2076 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2077 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2078 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2079 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2080 * arch-utils.c (legacy_value_to_register): Update.
2081 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2082 (rs6000_register_convert_to_raw): Make parameter "from" const.
2083 * mips-tdep.c (mips_gdbarch_init): Update.
2084 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
2085 * infcmd.c (default_print_registers_info): Update.
2086 * ia64-tdep.c (ia64_gdbarch_init): Update.
2087 (ia64_register_convert_to_raw): Make parameter "from" const.
2088 * i386-tdep.c (i386_gdbarch_init): Update.
2089 (i386_register_convert_to_raw): Update.
2090
20912003-06-11 Andrew Cagney <[email protected]>
2092
2093 * remote-fileio.c: Include "remote-fileio.h".
2094 * Makefile.in (remote-fileio.o): Update dependencies.
2095 (remote_fileio_h): Fix typo.
2096
20972003-06-11 Andrew Cagney <[email protected]>
2098
2099 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
2100 (xstormy16_save_dummy_frame_tos): Make static.
2101 (_initialize_xstormy16_tdep): Add declaration.
2102 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2103 * v850-tdep.c: Make local functions static.
2104 (_initialize_v850_tdep): Add declaration.
2105 * sparc-tdep.c: Make local functions static.
2106 (_initialize_sparc_tdep): Add declaration.
2107 * sh-tdep.c: Make local functions static.
2108 (_initialize_sh_tdep): Add declaration.
2109 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
2110 * s390-tdep.c: Make local functions static.
2111 (_initialize_s390_tdep): Add declaration.
2112 * dbxread.c (find_stab_function_addr): Make static.
2113 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
2114 * ocd.c (_initialize_remote_ocd): Add declaration.
2115 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
2116 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
2117 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
2118 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
2119 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2120 * remote-array.c (_initialize_array): Add declaration.
2121 (_initialize_remote_monitors): Add declaration.
2122 * remote-mips.c: Make local functions static.
2123 (_initialize_remote_mips): Add declaration.
2124 * mcore-tdep.c: Make all local functions static.
2125 (_initialize_mcore_tdep): Add declaration.
2126 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
2127 * abug-rom.c (_initialize_abug_rom): Add declaration.
2128 * rom68k-rom.c (_initialize_rom68k): Add declaration.
2129 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
2130 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2131 * remote-est.c (_initialize_est): Add declaration.
2132 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2133 (m68hc11_call_dummy_address): Make static.
2134 * ia64-tdep.c: Make local functions static.
2135 (_initialize_ia64_tdep): Add declaration.
2136 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
2137 * monitor.c (monitor_wait_filter): Make static.
2138 (_initialize_remote_monitors): Add declaration.
2139 * remote-hms.c (_initialize_remote_hms): Add declaration.
2140 * remote-e7000.c (fetch_regs_from_dump): Make static.
2141 (expect_n): Make static.
2142 (_initialize_remote_e7000): Add declaration.
2143 * ser-e7kpc.c: Always include "defs.h".
2144 (_initialize_ser_e7000pc): Add declaration.
2145 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
2146 * cris-tdep.c: Make all but one function static.
2147 (_initialize_cris_tdep): Add declaration.
2148 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
2149 * solib.c (update_solib_list): Make static.
2150 (_initialize_solib): Add declaration.
2151 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
2152 (_initialize_avr_tdep): Add declaration.
2153 * remote-rdi.c (voiddummy): Make static.
2154 (_initialize_remote_rdi): Add declaration.
2155 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
2156 * remote-rdp.c (send_rdp): Make static.
2157 (_initialize_remote_rdp): Add declaration.
2158 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
2159
21602003-06-11 Corinna Vinschen <[email protected]>
2161
2162 * remote-fileio.c: Make ari happy.
2163
21642003-06-10 J. Brobecker <[email protected]>
2165
2166 * rs6000-nat.c (child_xfer_memory): Compute the right address when
2167 fetching the trailing bytes of the buffer we are about to write.
2168
21692003-06-10 Andrew Cagney <[email protected]>
2170
2171 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
2172 * Makefile.in (remote-fileio.o): Update dependencies.
2173 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
2174 include <setjmp.h>, or <sys/types.h> conditional on USG.
2175 (remote_fio_jmp_buf): Delete global variable.
2176
21772003-06-10 Corinna Vinschen <[email protected]>
2178 Martin M. Hunt <[email protected]>
2179
2180 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
2181 (SFILES): Add remote-fileio.c.
2182 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
2183 dependencies for building remote.o.
2184 * remote-fileio.c: New file implementing the remote File-I/O protocol.
2185 * remote-fileio.h: New header file defining remote File-I/O interface.
2186 * remote.c (remote_write_bytes, remote_read_bytes): Remove
2187 static storage class.
2188 (remote_wait, remote_async_wait): Call remote_fileio_request() on
2189 'F' packet.
2190 (_initialize_remote): Call initialize_remote_fileio().
2191 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
2192 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2193 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2194 (captured_main): Initialize new ui_files.
2195 * ui-file.c: Add read and fgets input functions.
2196 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
2197 (null_file_read): New function.
2198 (ui_file_read): New function.
2199 (set_ui_file_read): New function.
2200 (stdio_file_read): New function.
2201 * ui-file.h: New type ui_file_read_ftype.
2202 (set_ui_file_read): Declare.
2203 (ui_file_read): Declare.
2204
22052003-06-09 Andrew Cagney <[email protected]>
2206
2207 * frame.h (deprecated_unwind_get_saved_register): Rename
2208 generic_unwind_get_saved_register, update comments.
2209 * mips-tdep.c (mips_get_saved_register): Update.
2210 * frame.c (deprecated_unwind_get_saved_register): Update.
2211
22122003-06-09 Andrew Cagney <[email protected]>
2213
2214 * vax-tdep.c (vax_frame_locals_address): Delete function.
2215 (vax_gdbarch_init): Do not set frame_locals_address.
2216 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
2217 (m68hc11_gdbarch_init): Do not set frame_locals_address.
2218 * s390-tdep.c (s390_frame_args_address): Delete function.
2219 (s390_gdbarch_init): Do not set frame_args_address or
2220 frame_locals_address.
2221 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
2222 (ns32k_gdbarch_init): Do not set frame_locals_address.
2223 * hppa-tdep.c (hppa_frame_args_address): Delete function.
2224 (hppa_frame_locals_address): Delete function.
2225 (hppa_gdbarch_init): Do not set frame_args_address, or
2226 frame_locals_address.
2227 * arm-tdep.c (arm_frame_args_address): Delete.
2228 (arm_frame_locals_address): Delete.
2229 (arm_gdbarch_init): Do not set frame_args_address, or
2230 frame_locals_address.
2231
22322003-06-09 Andrew Cagney <[email protected]>
2233
2234 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
2235 * gdbarch.h, gdbarch.c: Re-generate.
2236 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
2237 * arch-utils.c (frame_num_args_unknown): Delete function.
2238 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
2239 (frame_info): Use FRAME_NUM_ARGS_P.
2240 * arm-tdep.c (arm_frame_num_args): Delete function.
2241 (arm_gdbarch_init): Do not set frame_num_args.
2242 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
2243 * hppa-tdep.c (hppa_frame_num_args): Delete function.
2244 (hppa_gdbarch_init): Do not set frame_num_args.
2245 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
2246 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2247 frame_num_args to default frame_num_args_unknown.
2248 * v850-tdep.c (v850_gdbarch_init): Ditto.
2249 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2250 * sh-tdep.c (sh_gdbarch_init): Ditto.
2251 * s390-tdep.c (s390_gdbarch_init): Ditto.
2252 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2253 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2254 * mips-tdep.c (mips_gdbarch_init): Ditto.
2255 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2256 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2257 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2258 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2259 * i386-tdep.c (i386_gdbarch_init): Ditto.
2260 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2261 * frv-tdep.c (frv_gdbarch_init): Ditto.
2262 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2263 * cris-tdep.c (cris_gdbarch_init): Ditto.
2264 * avr-tdep.c (avr_gdbarch_init): Ditto.
2265 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2266
22672003-06-09 Andrew Cagney <[email protected]>
2268
2269 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
2270 (print_frame_args): Moved to "stack.c".
2271 * stack.c: Include "gdb_assert.h".
2272 (print_frame_nameless_args): Moved from "printcmd.c", made static.
2273 (print_frame_args): Moved from "printcmd.c".
2274 * frame.h (print_frame_args): Delete declaration.
2275 * Makefile.in (stack.o): Update dependencies.
2276
22772003-06-08 Andrew Cagney <[email protected]>
2278
2279 * frame.c (get_prev_frame): Remove reference to
2280 frame_args_address_correct in comments.
2281 * frame-base.c (default_frame_args_address): Delete code
2282 conditional on FRAME_ARGS_ADDRESS_CORRECT.
2283 * vax-tdep.c (vax_frame_args_address_correct): Delete.
2284 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
2285 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
2286 (vax_frame_args_address_correct): Delete declaration.
2287
22882003-06-08 Andrew Cagney <[email protected]>
2289
2290 * gdbarch.sh (UNWIND_SP): Add.
2291 * gdbarch.h, gdbarch.c: Re-generate.
2292 * frame.c (frame_sp_unwind): New function.
2293 (get_frame_sp): New function.
2294 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
2295 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
2296 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
2297 value.
2298 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
2299 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
2300
23012003-06-08 Andrew Cagney <[email protected]>
2302
2303 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
2304 REMOTE_BREAKPOINT.
2305 * remote.c: Update.
2306 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
2307 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
2308 * config/m68k/tm-sun3.h: Update.
2309 * config/m68k/tm-m68klynx.h: Update.
2310 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
2311
2312 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
2313 trad_frame". Update comments.
2314 * d10v-tdep.c (struct d10v_unwind_cache): Update.
2315 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
2316 (trad_frame_register_value, trad_frame_prev_register): Update.
2317
23182003-06-08 Andrew Cagney <[email protected]>
2319
2320 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
2321 from GCC's acinclude.m4.
2322 * configure.in: Check for getopt's delcaration.
2323 * aclocal.m4, config.in, configure: Re-generate.
2324 * main.c (error_init): Delete declaration.
2325 * defs.h (error_init): Declare.
2326 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
2327 (rs6000_convert_from_func_ptr_addr): Make static.
2328 (_initialize_rs6000_tdep): Add declaration.
2329 * cli/cli-cmds.c (dont_repeat): Delete declaration.
2330 (show_commands, set_verbose, show_history): Delete declaration.
2331 * top.h (set_verbose): Add declaration.
2332 (show_history, set_history, show_commands): Add declaration.
2333 (do_restore_instream_cleanup): Add declaration.
2334 * objc-lang.c (specialcmp): Make static.
2335 (print_object_command): Make static.
2336 (find_objc_msgsend): Make static.
2337 (find_objc_msgcall_submethod_helper): Make static.
2338 (find_objc_msgcall_submethod): Make static.
2339 (_initialize_objc_language): Add declaration.
2340 (find_implementation_from_class): Make static.
2341 (find_implementation): Make static.
2342 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
2343 * objc-lang.h (lookup_struct_typedef): Add declaration.
2344 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
2345 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
2346 (do_restore_user_call_depth): Make static.
2347 (do_restore_instream_cleanup): Delete declaration.
2348 (dont_repeat): Delete declaration.
2349 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
2350 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
2351 * reggroups.c (_initialize_reggroup): Add declaration.
2352 * cp-support.c (_initialize_cp_support): Add declaration.
2353 * cp-abi.c (_initialize_cp_abi): Add declaration.
2354 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
2355 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
2356 (_initialize_gnu_v3_abi): Add declaration.
2357 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
2358 (_initialize_gnu_v2_abi): Add declaration.
2359 * frame-base.c (_initialize_frame_base): Add declaration.
2360 * doublest.c (floatformat_from_length): Make static.
2361 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
2362 * frame.c (create_sentinel_frame): Make static.
2363 (_initialize_frame): Add declaration.
2364 * top.c (do_catch_errors): Make static.
2365 (gdb_rl_operate_and_get_next_completion): Make static.
2366 * typeprint.c: Include "typeprint.h".
2367 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
2368 (sentinel_frame_this_id): Make static.
2369 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
2370 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
2371 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
2372 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
2373 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
2374 * maint.c (maintenance_print_architecture): Make static.
2375 * signals/signals.c (_initialize_signals): Add declaration.
2376 * std-regs.c (_initialize_frame_reg): Add declaration.
2377 * jv-exp.y (push_variable): ISO C definition.
2378 (push_qualified_expression_name): Ditto.
2379 * memattr.c (_initialize_mem): Add declaration.
2380 * remote.c (remote_check_watch_resources): Make static.
2381 (remote_stopped_by_watchpoint): Make static.
2382 (remote_stopped_data_address): Make static.
2383 * d10v-tdep.c (nr_dmap_regs): Make static.
2384 (a0_regnum): Make static.
2385 (d10v_frame_unwind_cache): Make static.
2386 (d10v_frame_p): Make static.
2387 * osabi.c (show_osabi): Make static.
2388 (_initialize_gdb_osabi): Add extern declaration.
2389 * gdbtypes.c (make_qualified_type): Make static.
2390 (safe_parse_type): Make static.
2391 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
2392 * macrotab.c (macro_bcache_free): Make static.
2393 * interps.c (interp_set_quiet): Make static.
2394 (interpreter_exec_cmd): Make static.
2395 * stack.h (select_frame_command): New file.
2396 * stack.c: Include "stack.h".
2397 (select_frame_command_wrapper): Delete function.
2398 (select_frame_command): Make global.
2399 * infcall.c: Include "infcall.h".
2400 * linespec.c: Include "linespec.h".
2401 * symfile.c (sections_overlap): Make static.
2402 * cp-support.h (cp_initialize_namespace): ISO C declaration.
2403 * charset.c (_initialize_charset): Add missing prototype.
2404 * regcache.c (init_legacy_regcache_descr): Make static.
2405 (do_regcache_xfree): Make static.
2406 (regcache_xfer_part): Make static.
2407 (_initialize_regcache): Add missing prototype.
2408 * breakpoint.c (parse_breakpoint_sals): Make static.
2409 (breakpoint_sals_to_pc): Make static.
2410 * interps.h (clear_interpreter_hooks): ISO C declaration.
2411 * Makefile.in (stack_h): Define.
2412 (stack.o, typeprint.o, mi-main.o): Update dependencies.
2413 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
2414
24152003-06-08 Andrew Cagney <[email protected]>
2416
2417 * Makefile.in (d10v-tdep.o): Update dependencies.
2418 (SFILES): Add trad-frame.c.
2419 (trad_frame_h): Define.
2420 (COMMON_OBS): Add trad-frame.o.
2421 (trad-frame.o): Specify dependencies.
2422 * d10v-tdep.c: Include "trad-frame.h".
2423 (saved_regs_unwinder): Delete function.
2424 (d10v_frame_prev_register): Use trad_frame_prev_register.
2425 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
2426 trad_frame", delete "regs" and "prev_sp".
2427 (prologue_find_regs): Use trad-frame.
2428 * trad-frame.h, trad-frame.c: New files.
2429
24302003-06-08 Mark Kettenis <[email protected]>
2431
2432 * dwarf2cfi.c, dwarf2cfi.h: Remove.
2433
24342003-06-07 Adam Fedor <[email protected]>
2435
2436 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
2437 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
2438 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
2439 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
2440 resolve_msgsend_super, resolve_msgsend_super_stret):
2441 Use it.
2442
24432003-06-07 Andrew Cagney <[email protected]>
2444
2445 * symfile.h: Re-indent, clean up comments.
2446
24472003-06-07 Andrew Cagney <[email protected]>
2448
2449 * inferior.h (deprecated_write_sp): Replace
2450 generic_target_write_sp.
2451 * regcache.c (deprecated_write_sp): Replace
2452 generic_target_write_sp.
2453 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2454 * vax-tdep.c (vax_gdbarch_init): Update.
2455 * v850-tdep.c (v850_gdbarch_init): Update.
2456 * sparc-tdep.c (sparc_gdbarch_init): Update.
2457 * sh-tdep.c (sh_gdbarch_init): Update.
2458 * s390-tdep.c (s390_gdbarch_init): Update.
2459 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2460 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2461 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2462 * mcore-tdep.c (mcore_gdbarch_init): Update.
2463 * m68k-tdep.c (m68k_gdbarch_init): Update.
2464 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2465 * ia64-tdep.c (ia64_gdbarch_init): Update.
2466 * h8300-tdep.c (h8300_gdbarch_init): Update.
2467 * frv-tdep.c (frv_gdbarch_init): Update.
2468 * cris-tdep.c (cris_gdbarch_init): Update.
2469 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
2470
24712003-06-07 Andrew Cagney <[email protected]>
2472
2473 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
2474 Assert that PC_REGNUM is valid.
2475 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
2476
24772003-06-07 Andrew Cagney <[email protected]>
2478
2479 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
2480 * gdbarch.h, gdbarch.c: Regenerate.
2481 * mn10300-tdep.c: Include "gdb_assert.h".
2482 (mn10300_read_fp): New function.
2483 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
2484 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
2485 * ia64-tdep.c: Include "gdb_assert.h".
2486 (ia64_read_fp): New function.
2487 (ia64_gdbarch_init): Set deprecated_target_read_fp to
2488 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
2489 * regcache.c (generic_target_read_sp): Delete function.
2490 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
2491 * inferior.h (generic_target_read_sp): Delete declaration.
2492 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
2493 generic_target_read_sp.
2494 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2495 * sparc-tdep.c (sparc_gdbarch_init): Ditto
2496 * sh-tdep.c (sh_gdbarch_init): Ditto.
2497 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2498 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
2499
25002003-06-07 Andrew Cagney <[email protected]>
2501
2502 * gdbarch.sh: Comment each field of startup_gdbarch.
2503 * gdbarch.h, gdbarch.c: Re-generate.
2504
25052003-06-07 Andrew Cagney <[email protected]>
2506
2507 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
2508 * gdbarch.h, gdbarch.c: Re-generate.
2509 * regcache.c: Update comments on read_pc et.al.
2510 (generic_target_read_pc): Delete function.
2511 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
2512 * inferior.h (generic_target_read_pc): Delete declaration.
2513 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
2514 generic_target_read_pc.
2515 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2516 * sh-tdep.c (sh_gdbarch_init): Ditto.
2517 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2518 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2519
25202003-06-07 Andrew Cagney <[email protected]>
2521
2522 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
2523 "index" with "special_local_sect". Use strcmp instead of STREQ.
2524 Append period to coments.
2525
25262003-06-06 Mark Mitchell <[email protected]>
2527
2528 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
2529 (elfstab_offset_sections): Likewise.
2530 * gdb-stabs.h (stab_section_info): Likewise.
2531 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
2532 * objfiles.c (objfile_relocate): Likewise.
2533 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
2534 * remote.c (get_offsets): Likewise.
2535 (remote_cisco_objfile_relocate): Likewise.
2536 * somread.c (som_symfile_offsets): Likewise.
2537 * symfile.c (alloc_section_addr_info): New function.
2538 (build_section_addr_info_from_section_tab): Use it.
2539 (free_section_addr_info): Adjust.
2540 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
2541 (syms_from_objfile): Allocate local_addr dynamically.
2542 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
2543 dynamically.
2544 (add_symbol_file_command): Allocate sect_opts dynamically.
2545 (reread_symbols): Avoid use of SECT_OFF_MAX.
2546 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
2547 (alloc_section_addr_info): Declare it.
2548 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
2549 * win32-nat.c (solib_symbols_add): Allocate section_addrs
2550 dynamically.
2551 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
2552
25532003-06-06 Andrew Cagney <[email protected]>
2554
2555 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
2556 (d10v_frame_unwind_cache): Do not set "return_pc".
2557
25582003-06-06 Michael Snyder <[email protected]>
2559
2560 * h8300-tdep.c: Make tidy (long lines).
2561
25622003-06-06 Michal Ludvig <[email protected]>
2563
2564 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
2565 to regcache_collect().
2566
25672003-06-05 J. Brobecker <[email protected]>
2568
2569 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
2570 pc_in_sigtramp multiarch method.
2571 (hppa_hpux_som_init_abi): Use it.
2572 (hppa_hpux_elf_init_abi): Likewise.
2573 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
2574 macro has been multiarched.
2575 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
2576 macro here, as hppa64 isn't multiarched yet.
2577
25782003-06-05 Andrew Cagney <[email protected]>
2579
2580 * Makefile.in (value_h): Add $(frame_h).
2581 * value.h: Include "frame.h".
2582 (struct value): Replace "frame_addr" with "frame_id".
2583 (VALUE_FRAME_ID): Replace VALUE_FRAME.
2584 * values.c (allocate_value): Use VALUE_FRAME_ID.
2585 (value_copy): Use VALUE_FRAME_ID.
2586 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
2587 * valops.c (value_assign): Update. Use frame_find_by_id.
2588
25892003-06-05 Michal Ludvig <[email protected]>
2590
2591 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
2592 in each pass.
2593
25942003-06-05 Jeff Johnston <[email protected]>
2595
2596 * thread-db.c (check_event): For create/death event breakpoints,
2597 loop through all messages to ensure that we read the message
2598 corresponding to the breakpoint we are at.
2599
26002003-06-04 Michael Snyder <[email protected]>
2601
2602 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
2603
26042003-06-04 Mark Kettenis <[email protected]>
2605
2606 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
2607 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
2608 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
2609 when handling .eh_frame sections.
2610
26112003-06-04 J. Brobecker <[email protected]>
2612
2613 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
2614 prepare_to_proceed procedure instead of the hppa-specific one.
2615 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
2616
26172003-06-04 Jeff Johnston <[email protected]>
2618
2619 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
2620 * config.in: Regenerated.
2621 * configure.in: Add test for syscall function and check for
2622 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
2623 * configure: Regenerated.
2624 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
2625 <sys/syscall.h>.
2626 (kill_lwp): New function that uses tkill syscall or
2627 uses kill, depending on whether threading model is nptl or not.
2628 All callers of kill() changed to use kill_lwp().
2629 (lin_lwp_wait): Make special check when WIFEXITED occurs to
2630 see if all threads have already exited in the nptl model.
2631 (stop_and_resume_callback): New callback function used by the
2632 lin_lwp_wait thread exit handling code.
2633 (stop_wait_callback): Check for threads already having exited and
2634 delete such threads fromt the lwp list when discovered.
2635 (stop_callback): Don't assert retcode of kill call.
2636
2637 Roland McGrath <[email protected]>
2638 * i386-linux-nat.c (ps_get_thread_area): New function needed by
2639 nptl libthread_db.
2640
26412003-06-03 Richard Henderson <[email protected]>
2642
2643 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
2644 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
2645 (alpha_sigtramp_frame_prev_register): Likewise.
2646 (alpha_heuristic_frame_prev_register): Likewise.
2647 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
2648
2649 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
2650 alpha-specific register id names.
2651 (alpha_mdebug_frame_unwind_cache): Likewise.
2652 (alpha_mdebug_frame_prev_register): Likewise.
2653
26542003-06-03 Richard Henderson <[email protected]>
2655
2656 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
2657 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
2658 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
2659 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
2660 unwind routines.
2661 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
2662 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
2663 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
2664
2665 * alpha-linux-tdep.c: Remove unnecessary includes.
2666 * Makefile.in (alpha-linux-tdep.o): Update.
2667
26682003-06-03 Richard Henderson <[email protected]>
2669
2670 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
2671 (alphabsd_fill_fpreg): Likewise.
2672
26732003-06-03 J. Brobecker <[email protected]>
2674
2675 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
2676 references to struct frame_info fields by calls to the equivalent
2677 accessors. Necessary now that frame_info is opaque.
2678
26792003-06-03 J. Brobecker <[email protected]>
2680
2681 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
2682 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
2683 structure, field no longer exists.
2684
26852003-06-03 J. Brobecker <[email protected]>
2686
2687 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
2688 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
2689
26902003-06-03 J. Brobecker <[email protected]>
2691
2692 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
2693 references to struct frame_info fields by calls to the equivalent
2694 accessors. Necessary now that frame_info is opaque.
2695
26962003-06-03 J. Brobecker <[email protected]>
2697
2698 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
2699 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
2700 structure, field no longer exists.
2701
27022003-06-03 Theodore A. Roth <[email protected]>
2703
2704 * remote.c (init_remote_state): Compute sizeof_g_packet by
2705 accumulation of the size of all registers instead of blindly using
2706 DEPRECATED_REGISTER_BYTES.
2707
27082003-06-03 Michael Snyder <[email protected]>
2709
2710 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
2711 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
2712 for h8300sx.
2713
27142003-06-03 J. Brobecker <[email protected]>
2715
2716 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
2717 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
2718
27192003-06-03 Andrew Cagney <[email protected]>
2720
2721 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
2722 (sparc_convert_to_raw): Delete function.
2723 (sparc_gdbarch_init): Do not set register_convert_to_raw or
2724 register_convert_to_virtual.
2725
27262003-06-03 Jeff Johnston <[email protected]>
2727
2728 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
2729 layer if not dealing with a statically-linked threaded program.
2730
27312003-06-03 Kris Warkentin <[email protected]>
2732
2733 * solib.c (solib_open): Update comment to reflect actual search order.
2734
27352003-06-03 Andrew Cagney <[email protected]>
2736
2737 * frame.c (get_frame_memory_signed): New function.
2738 (get_frame_memory, get_frame_memory_unsigned): New function.
2739 (get_frame_arch): New function.
2740 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
2741 (get_frame_memory, get_frame_unsigned_memory): Declare.
2742 * d10v-tdep.c (d10v_frame_unwind_cache): Use
2743 get_frame_memory_unsigned and get_frame_arch.
2744 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
2745
27462003-06-03 Raoul Gough <[email protected]>
2747
2748 * MAINTAINERS (write after approval): Add myself.
2749
27502003-06-03 Jim Blandy <[email protected]>
2751
2752 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
2753 elements of gregset_t are 64 bits each, but access registers
2754 are still 32 bits, so they're packed two per gregset_t
2755 element. Unpack/pack them properly.
2756
27572003-06-02 David Carlton <[email protected]>
2758
2759 * linespec.c (find_methods): Break out code into
2760 add_matching_methods and add_constructors.
2761 (add_matching_methods): New.
2762 (add_constructors): Ditto.
2763
27642003-06-02 Andrew Cagney <[email protected]>
2765
2766 * sparc-tdep.c (sparc_print_registers): Delete call to
2767 REGISTER_CONVERTIBLE.
2768 (sparc_gdbarch_init): Do not set register_convertible.
2769 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2770 * frv-tdep.c (frv_gdbarch_init): Ditto.
2771 * cris-tdep.c (cris_gdbarch_init): Ditto.
2772
27732003-06-02 Elena Zannoni <[email protected]>
2774
2775 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
2776 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
2777 (syms_from_objfile): Ditto.
2778
27792003-06-03 Andreas Schwab <[email protected]>
2780
2781 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
2782 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
2783
27842003-06-02 Richard Henderson <[email protected]>
2785
2786 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
2787 a member of all_reggroup.
2788
27892003-06-02 Richard Henderson <[email protected]>
2790
2791 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
2792 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
2793 (alpha_lds, alpha_sts): New.
2794 (alpha_convert_register_p): Change from _register_convertible.
2795 (alpha_register_to_value): Change from _convert_to_virtual;
2796 restructure and fail for type sizes other than 4 or 8.
2797 (alpha_value_to_register): Similarly.
2798 (alpha_extract_return_value): Use alpha_sts.
2799 (alpha_store_return_value): Use alpha_lds.
2800 (alpha_gdbarch_init): Update hooks.
2801
28022003-06-02 Richard Henderson <[email protected]>
2803
2804 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
2805 regnum identifiers.
2806 (alpha_sigtramp_register_address): Likewise.
2807
28082003-06-02 Richard Henderson <[email protected]>
2809
2810 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
2811 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
2812 * alpha-tdep.h: Declare them.
2813
2814 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
2815 Remove zerobuf. Don't error on UNIQUE.
2816 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
2817 (ALPHA_REGSET_UNIQUE): Provide default.
2818 (supply_gregset): Use alpha_supply_int_regs.
2819 (fill_gregset): Use alpha_fill_int_regs.
2820 (supply_fpregset): Use alpha_supply_fp_regs.
2821 (fill_fpregset): Use alpha_fill_fp_regs.
2822 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
2823 (alphabsd_supply_reg): Use alpha_supply_int_regs.
2824 (alphabsd_fill_reg): Use alpha_fill_int_regs.
2825 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
2826 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
2827 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
2828
28292003-06-02 Richard Henderson <[email protected]>
2830
2831 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
2832
2833 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
2834 (alpha_store_return_value): Likewise.
2835
28362003-06-02 David Carlton <[email protected]>
2837
2838 * block.c (contained_in): Add 'const' to arguments.
2839 (block_function): Ditto.
2840 * block.h: Update declarations for block_function and
2841 contained_in.
2842
28432003-06-02 David Carlton <[email protected]>
2844
2845 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
2846 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
2847 * p-valprint.c (pascal_val_print): Ditto.
2848 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
2849
28502003-06-02 Richard Henderson <[email protected]>
2851
2852 * alpha-tdep.c (alpha_push_dummy_call): Use
2853 builtin_type_ieee_double_little instead of builtin_type_double.
2854
2855 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
2856 sign-extension of 32-bit values.
2857 (alpha_store_return_value): Similarly.
2858
2859 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
2860 (alpha_extract_return_value): Likewise.
2861 (alpha_store_return_value): Likewise.
2862
2863 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
2864 (alpha_store_return_value): Error on IEEE Quad floats.
2865
2866 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
2867 (alpha_extract_struct_value_address): Likewise.
2868 (alpha_store_return_value): Likewise.
2869 (alpha_store_struct_return): Remove.
2870 (alpha_gdbarch_init): Update hook registration to match.
2871
2872 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
2873 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
2874 macros where appropriate.
2875 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
2876 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
2877
2878 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
2879 for SP, GP; void_func_ptr for PC; non-language-specific types
2880 for all others.
2881 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
2882
28832003-06-02 Richard Henderson <[email protected]>
2884
2885 * top.h (lim_at_start): Declare.
2886 * main.c (captured_main): Set it.
2887 * top.c (lim_at_start): Define.
2888 (command_loop): Use it instead of &environ.
2889 * event-top.c (command_handler): Likewise.
2890
28912003-06-01 Jason Thorpe <[email protected]>
2892
2893 * mipsnbsd-tdep.c: Update copyright years.
2894 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
2895
28962003-06-01 Richard Henderson <[email protected]>
2897
2898 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
2899 (alpha-linux-tdep.o): Update dependencies.
2900 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
2901 * alpha-mdebug-tdep.c: Remove unneeded includes.
2902
29032003-06-01 Richard Henderson <[email protected]>
2904
2905 * alpha-tdep.c (alpha_register_reggroup_p): New.
2906 (alpha_gdbarch_init): Register it.
2907
29082003-06-02 Andrew Cagney <[email protected]>
2909
2910 * dwarfread.c: Eliminate "register"
2911 (decode_die_type): Eliminate assignment within "if".
2912 (struct_type, decode_array_element_type): Ditto.
2913 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
2914 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
2915 (decode_modified_type, completedieinfo): Ditto.
2916 * block.c: Eliminate "register".
2917 (blockvector_for_pc_sect): Eliminate assignment within "if".
2918 * cp-support.h (struct symbol): Opaque declaration.
2919 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
2920
29212003-06-01 Richard Henderson <[email protected]>
2922
2923 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
2924 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
2925
29262003-06-01 Adam Fedor <[email protected]>
2927
2928 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
2929 * gdbarch.[ch]: Regenerate.
2930 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
2931 (hppa_gdbarch_init): Set it in the gdbarch vector.
2932 * i386-tdep.c (i386_fetch_pointer_argument): New
2933 (i386_gdbarch_init): Set it into gdbarch.
2934 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
2935 (rs6000_gdbarch_init): Set it in gdbarch.
2936 * sparc-tdep.c (sparc_fetch_pointer_argument): New
2937 (sparc_gdbarch_init): Set it in gdbarch.
2938
29392003-06-01 Andrew Cagney <[email protected]>
2940
2941 * defs.h (extract_address): Delete declaration.
2942 * findvar.c (extract_address): Delete function.
2943 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
2944 extract_address with the inline equivalent,
2945 extract_unsigned_integer.
2946 (xstormy16_extract_struct_value_address): Ditto.
2947 (xstormy16_pointer_to_address): Ditto.
2948 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
2949 * v850-tdep.c (v850_push_arguments): Ditto.
2950 (v850_extract_return_value): Ditto.
2951 (v850_extract_struct_value_address): Ditto.
2952 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
2953 (sparcnbsd_get_longjmp_target_64): Ditto.
2954 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
2955 (get_longjmp_target): Ditto.
2956 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
2957 (sh64_extract_struct_value_address): Ditto.
2958 (sh_push_arguments): Ditto.
2959 (sh64_push_arguments): Ditto.
2960 * remote-vxsparc.c (vx_read_register): Ditto.
2961 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
2962 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
2963 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
2964 * mipsv4-nat.c (get_longjmp_target): Ditto.
2965 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
2966 * mips-nat.c (get_longjmp_target): Ditto.
2967 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
2968 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
2969 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
2970 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
2971 * irix5-nat.c (get_longjmp_target): Ditto.
2972 * irix4-nat.c (get_longjmp_target): Ditto.
2973 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
2974 (ia64_push_arguments): Ditto.
2975 * hpux-thread.c (hpux_thread_store_registers): Ditto.
2976 * h8300-tdep.c (h8300_push_arguments): Ditto.
2977 (h8300_store_return_value): Ditto.
2978 (h8300_extract_struct_value_address): Ditto.
2979 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
2980 (frv_push_arguments): Ditto.
2981 * avr-tdep.c (avr_pointer_to_address): Ditto.
2982 (avr_push_arguments): Ditto.
2983 * arm-tdep.c (arm_push_dummy_call): Ditto.
2984 (arm_get_longjmp_target): Ditto.
2985 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
2986 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
2987 (alpha_get_longjmp_target): Ditto.
2988
2989 * solib-irix.c (extract_mips_address): Inline extract_address,
2990 replacing it with extract_signed_integer.
2991 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
2992 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
2993 (first_link_map_member, open_symbol_file_object): Ditto.
2994 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
2995 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
2996 (LM_NEXT, LM_NAME): Ditto.
2997
29982003-06-01 Richard Henderson <[email protected]>
2999
3000 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3001 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3002 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3003 (alpha_cannot_store_register): Likewise.
3004 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3005 * alpha-nat.c (supply_gregset): Likewise.
3006 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
3007
30082003-06-01 Andrew Cagney <[email protected]>
3009
3010 * infcall.c (call_function_by_hand): Update comment on
3011 DEPRECATED_DUMMY_WRITE_SP.
3012
3013 * mips-tdep.c (mips_gdbarch_init): Do not set
3014 deprecated_dummy_write_sp.
3015 (mips_eabi_push_dummy_call): Set the SP register.
3016 (mips_o64_push_dummy_call): Set the SP register.
3017 (mips_o32_push_dummy_call): Set the SP register.
3018 (mips_n32n64_push_dummy_call): Set the SP register.
3019
30202003-06-01 Richard Henderson <[email protected]>
3021
3022 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3023 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3024 (supply_gregset): Likewise.
3025 * alpha-tdep.c (alpha_store_return_value): Likewise.
3026 (alpha_get_longjmp_target): Likewise.
3027 (alpha_register_name): Constify array.
3028 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3029 deprecated_register_size, deprecated_register_bytes,
3030 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3031 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3032 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
3033
30342003-06-01 Richard Henderson <[email protected]>
3035
3036 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3037 from arg_reg_buffer to regcache to avoid double conversion.
3038
30392003-06-01 Mark Kettenis <[email protected]>
3040
3041 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3042 SP_REGNUM.
3043 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3044 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3045
30462003-06-01 Richard Henderson <[email protected]>
3047
3048 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3049 (decode_frame_entry): Set it. Skip FDE augmentation.
3050
30512003-06-01 Richard Henderson <[email protected]>
3052
3053 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3054 not overlapping PC_REGNUM.
3055
30562003-06-01 Richard Henderson <[email protected]>
3057
3058 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3059 alpha_push_arguments. Don't dump argument register data to
3060 the target stack. Fix float and 128-bit long double semantics.
3061 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3062 (alpha_fix_call_dummy): Remove.
3063 (alpha_call_dummy_words): Remove.
3064 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
3065
30662003-06-01 Richard Henderson <[email protected]>
3067
3068 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3069
30702003-06-01 Andrew Cagney <[email protected]>
3071
3072 * mips-tdep.c (is_mips16_addr): New function.
3073 (make_mips16_addr, unmake_mips16_addr): New functions.
3074 (pc_is_mips16, mips_fetch_instruction): Use.
3075 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3076 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3077 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3078 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3079 TARGET_MIPS.
3080 * config/mips/tm-mips.h: Update copyright.
3081 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3082 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3083 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3084 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3085 (TM_PRINT_INSN_MACH): Delete.
3086 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3087
3088 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
3089 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
3090 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
3091 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
3092 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
3093 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
3094 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
3095 mips*-*-riscos* and mips*-*-sysv* onto mips.
3096 * config/mips/mips64.mt: New file.
3097 * config/mips/mips.mt: New file.
3098 * config/mips/littlemips.mt: Delete file.
3099 * config/mips/decstation.mt: Delete file.
3100 * config/mips/vr4300el.mt: Delete file.
3101 * config/mips/vr5000el.mt: Delete file.
3102 * config/mips/vr5000.mt: Delete file.
3103 * config/mips/vr4100.mt: Delete file.
3104 * config/mips/vr4xxxel.mt: Delete file.
3105 * config/mips/vr4300.mt: Delete file.
3106 * config/mips/vr4xxx.mt: Delete file.
3107 * config/mips/bigmips.mt: Delete file.
3108 * config/mips/bigmips64.mt: Delete file.
3109 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
3110 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
3111 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
3112 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
3113 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
3114 "tm-bigmips.h".
3115 * config/mips/tm-irix3.h: Ditto.
3116 * config/mips/tm-mipsv4.h: Ditto.
3117 * config/mips/tm-embed.h: Ditto.
3118 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
3119 "tm-bigmips64.h".
3120 * config/mips/tm-vr5000el.h: Delete file.
3121 * config/mips/tm-tx39l.h: Delete file.
3122 * config/mips/tm-vr4300el.h: Delete file.
3123 * config/mips/tm-vr4xxxel.h: Delete file.
3124 * config/mips/tm-vr4300.h: Delete file.
3125 * config/mips/tm-vr4100.h: Delete file.
3126 * config/mips/tm-vr4xxx.h: Delete file.
3127 * config/mips/tm-vr5000.h: Delete file.
3128 * config/mips/tm-embedl64.h: Delete file.
3129 * config/mips/tm-embedl.h: Delete file.
3130 * config/mips/tm-embed64.h: Delete file.
3131 * config/mips/tm-bigmips64.h: Delete file.
3132 * config/mips/tm-bigmips.h: Delete file.
3133
31342003-06-01 Mark Kettenis <[email protected]>
3135
3136 Fix gdb/1216.
3137 * shnbsd-nat.c: Include "sh-tdep.h".
3138
3139 From Richard Henderson <[email protected]>:
3140 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
3141
31422003-05-31 Andrew Cagney <[email protected]>
3143
3144 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
3145 forward declaration.
3146 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3147 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3148 (mips_find_saved_regs): Use set_reg_offset.
3149 (mips_frame_init_saved_regs): Delete function.
3150 (mips_pop_frame): Call mips_find_saved_regs instead of
3151 DEPRECATED_FRAME_INIT_SAVED_REGS.
3152
31532003-05-31 Andrew Cagney <[email protected]>
3154
3155 * mips-tdep.c (mips_gdbarch_init): Do not set
3156 deprecated_max_register_raw_size, register_virtual_size, and
3157 deprecated_max_register_virtual_size.
3158
31592003-05-31 Mark Kettenis <[email protected]>
3160
3161 * i386-tdep.c: Include "dwarf2-frame.h".
3162 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
3163 * Makefile.in (i386-tdep.o): Update dependencies.
3164
3165 * dwarf2-frame.c, dwarf2-frame.h: New files.
3166 * Makefile.in (SFILES): Add dwarf2-frame.c.
3167 (dwarf2_frame_h): Define.
3168 (COMMON_OBS): Add dwarf2-frame.o.
3169 (dwarf2-frame.o): Add dependencies.
3170
31712003-05-31 Andreas Jaeger <[email protected]>
3172
3173 * x86-64-linux-nat.c: Fix comment.
3174
31752003-05-31 Mark Kettenis <[email protected]>
3176
3177 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
3178 function signature.
3179
3180 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
3181 have a sigcontext_addr handler.
3182 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
3183 sigcontext_addr handler.
3184
31852003-05-31 Andrew Cagney <[email protected]>
3186
3187 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
3188 (print_fp_register_row): Replace do_fp_register_row.
3189 (mips_print_fp_register): Add "file" and "frame" parameters.
3190 (mips_print_register): Add "file" and "frame" parameters.
3191 (mips_print_registers_info): Replace mips_do_registers_info.
3192 (mips_gdbarch_init): Set print_registers_info instead of
3193 deprecated_do_registers_info.
3194 (mips_read_fp_register_single): Add "frame" parameter.
3195 (mips_read_fp_register_double): Add "frame" parameter.
3196
31972003-05-31 Mark Kettenis <[email protected]>
3198
3199 * i386-tdep.c (i386_register_name): Check for MMX registers first.
3200 Fixes a bug where GDB would print the wrong register names for
3201 targets without SSE.
3202
3203 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
3204 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3205 registers.
3206
3207 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
3208 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
3209 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3210 TDEP->sc_sp_offset.
3211
3212 From Michal Ludvig <[email protected]>:
3213 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
3214 and `sc_num_regs'.
3215 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3216 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3217 I386_ST0_REGNUM): Move here from...
3218 * i386-tdep.c: ... here.
3219 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
3220 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3221 registers if possible.
3222 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
3223 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
3224 Remove variables.
3225 (i386bsd_sc_reg_offset): New variable.
3226 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
3227 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3228 TDEP->sc_sp_offset.
3229 (i386fbsd_sc_reg_offset): New variable.
3230 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
3231 TDEP->sc_num_regs.
3232 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
3233 variables.
3234 (i386fbsd4_sc_reg_offset): New variable.
3235 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
3236 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3237 TDEP->sc_sp_offset.
3238 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
3239 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
3240 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
3241 Remove variables.
3242 (i386nbsd_sc_reg_offset): New variable.
3243 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
3244 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3245 TDEP->sc_sp_offset.
3246 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
3247 Remove variables.
3248 (i386obsd_sc_reg_offset): New variable.
3249 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
3250 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3251 TDEP->sc_sp_offset.
3252 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
3253 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
3254 for frame pointer offset in `struct sigcontext'.
3255
32562003-05-31 Andrew Cagney <[email protected]>
3257
3258 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
3259 architecture methods call_dummy_words, sizeof_call_dummy_words,
3260 push_return_address, store_struct_return, and fix_call_dummy. Set
3261 push_dummy_call instead of deprecated_push_arguments.
3262 (mips_store_struct_return): Delete function.
3263 (mips_fix_call_dummy): Delete function.
3264 (mips_push_return_address): Delete function.
3265 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
3266 RA_REGNUM and T9_REGNUM.
3267 (mips_n32n64_push_dummy_call): Ditto for
3268 mips_n32n64_push_arguments.
3269 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
3270 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
3271
32722003-05-31 Andrew Cagney <[email protected]>
3273
3274 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
3275 "dummy_addr" to "bp_addr".
3276 * infcall.c (call_function_by_hand): Pass "funaddr" to
3277 gdbarch_push_dummy_call.
3278 * gdbarch.h, gdbarch.c: Re-generate.
3279 * i386-tdep.c (i386_push_dummy_call): Update.
3280 * arm-tdep.c (arm_push_dummy_call): Update.
3281 * d10v-tdep.c (d10v_push_dummy_call): Update.
3282
32832003-05-31 Mark Kettenis <[email protected]>
3284
3285 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
3286 variable declarations.
3287 (x86_64_register_number, x86_64_register_name): Remove prototypes.
3288 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
3289 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
3290 x86_64_init_frame_pc, x86_64_init_frame_pc,
3291 x86_64_function_has_prologue): Remove prototypes.
3292 (X86_64_NUM_GREGS): New define.
3293 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
3294 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
3295 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
3296 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
3297 XMM1_REGNUM): Remove defines.
3298 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
3299 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
3300 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
3301 X86_64_XMM1_REGNUM): New defines.
3302 (struct x86_64_register_info): Renamed from `struct
3303 register_info'. Remove `size' member.
3304 (x86_64_register_info_table): Remove variable.
3305 (x86_64_register_info): New variable.
3306 (X86_64_NUM_REGS): New define.
3307 (X86_64_NUM_GREGS): Remove define.
3308 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
3309 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
3310 Remove variables.
3311 (x86_54_dwarf2_reg_to_regnum): Remove function.
3312 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
3313 (x86_64_dwarf_reg_to_regnum): New function.
3314 (x86_64_register_name): Rewrite.
3315 (x86_64_register_raw_size): Remove function.
3316 (x86_64_register_byte_table): Remove variable.
3317 (x86_64_register_byte): Remove function.
3318 (x86_64_register_virtual_type): Remove function.
3319 (x86_64_register_type): New function.
3320 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
3321 x86_64_register_convert_to_raw): Remove functions.
3322 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
3323 (x86_64_use_struct_convention): Make static. Adjust for renamed
3324 defines.
3325 (x86_64_frame_init_saved_regs): Remove function.
3326 (x86_64_push_arguments): Make static. Change to accept a regcache
3327 as argument.
3328 (x86_64_store_return_value, x86_64_extract_return_value): Make
3329 static. Rewrite based on i386 counterparts.
3330 (x86_64_push_dummy_call): New function.
3331 (X86_64_NUM_SAVED_REGS): New define.
3332 (x86_64_register_number): Remove function.
3333 (x86_64_store_struct_return): Remove function.
3334 (x86_64_frameless_function_invocation,
3335 x86_64_function_has_prologue): Remove functions.
3336 (PROLOG_BUFSIZE): Remove define.
3337 (struct x86_64_frame_cache): New structure.
3338 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
3339 x86_64_frame_cache, x86_64_frame_this_id,
3340 x86_64_frame_prev_register, x86_64_frame_p,
3341 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
3342 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
3343 functions.
3344 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
3345 variables.
3346 (x86_64_skip_prologue): Rewrite in terms of
3347 x86_64_analyze_prologue.
3348 (x86_64_frame_base_address): New function.
3349 (x86_64_frame_base): New variable.
3350 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
3351 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
3352 set deprecated_fp_regnum, deprecated_register_size,
3353 deprecated_register_bytes, register_raw_size, register_byte,
3354 register_virtual_type, register_convertiable,
3355 register_convert_to_virtual, convert_to_raw,
3356 deprecated_get_saved_register, deprecated_target_read_fp,
3357 deprecated_push_arguments, deprecated_push_return_address,
3358 deprecated_pop_frame, deprecated_store_struct_return,
3359 deprecated_frame_init_saved_regs, deprecated_frame_chain,
3360 frameless_function_invocation, deprecated_frame_saved_pc,
3361 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
3362 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
3363 deprecated_init_frame_pc and virtual_frame_pointer. Call
3364 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
3365 and x86_64_frame_p. Call frame_base_set_default to register
3366 x86_64_frame_base.
3367 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
3368 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
3369 (_initialize_x86_64_tdep): Remove function.
3370 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
3371 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
3372 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
3373 define.
3374 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
3375 (x86_64_linux_sigcontext_addr): Rewrite.
3376 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
3377 x86_64_linux_frame_saved_pc): Remove functions.
3378 (x86_64_linux_pc_in_sigtramp): Renamed from
3379 x86_64_linux_in_sigtramp. Try harder to recognize a signal
3380 trampoline.
3381 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
3382 Remove_functions.
3383 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
3384 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3385 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
3386 (x86_64_regmap): Rename to regmap.
3387 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
3388 x86_64_num_gregs.
3389 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
3390 x86_64_regmap.
3391 (x86_64_fxsave_offset): Remove function.
3392 (supply_fpregset): Simply call x86_64_supply_fxsave.
3393 (fill_fpregset): Simply call x86_64_fill_fxsave.
3394 (fetch_inferior_registers, store_inferior_registers): Avoid
3395 asignment in if-statement.
3396 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
3397 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
3398 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
3399 (fetch_core_registers): Remove function.
3400 (linux_elf_core_fns): Remove.
3401 (offsetoff): Don't define.
3402 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
3403 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
3404 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
3405 add core-regset.o.
3406 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
3407 protection against multiple includes instead of NM_X86_64_h. Add
3408 various comments. Include "config/nm-linux.h". Don't include
3409 <signal.h>.
3410 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
3411 GET_THREAD_SIGNALS): Remove defines.
3412 (x86_64_register_u_addr, kernel_u_size,
3413 lin_thread_get_thread_signals): Remove prototypes.
3414 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
3415 [HAVE_LINK_H]: Don't include "solib.h".
3416 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
3417 * config/i386/tm-x86-64linux.h: Fix comments.
3418 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
3419 x86-64-tdep.o): Update dependencies.
3420
34212003-05-30 Andrew Cagney <[email protected]>
3422
3423 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
3424 Change parameter type to a "struct regcache *".
3425
3426 * gdbarch.sh: Regardless of the multi-arch level, always define
3427 the macro when not already defined.
3428 * gdbarch.h, gdbarch.c: Re-generate.
3429
34302003-05-30 Richard Henderson <[email protected]>
3431
3432 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
3433 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
3434 (alpha_mdebug_frame_this_id): Likewise.
3435 (alpha_mdebug_frame_prev_register): Likewise.
3436 (alpha_mdebug_frame_base_address): Likewise.
3437 (alpha_mdebug_frame_locals_address): Likewise.
3438 (alpha_mdebug_frame_args_address): Likewise.
3439 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
3440 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
3441 (alpha_heuristic_frame_unwind_cache): Make static; add missing
3442 loop increment.
3443 (alpha_heuristic_frame_this_id): Make static.
3444 (alpha_heuristic_frame_prev_register): Likewise.
3445 (alpha_heuristic_frame_base_address): Likewise.
3446 * alpha-tdep.h: Update.
3447
34482003-05-30 Mark Kettenis <[email protected]>
3449
3450 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
3451 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
3452 defenitions.
3453 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
3454 * i386-tdep.c: Mark functions that are 64-bit safe as such.
3455 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3456 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3457 I386_ST0_REGNUM): New defines.
3458 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
3459 codestream_get): Remove define.
3460 (codestream_next_addr, condestream_addr, condestream_buf,
3461 codestream_off, codestream_cnt): Remove variables.
3462 (codestream_fill, codestream_seek, codestream_read): Remove
3463 functions.
3464 (i386_follow_jump): Rewrite to avoid usage of removed codestream
3465 functionality.
3466 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
3467 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
3468 i386_frame_saved_pc, i386_saved_pc_after_call,
3469 i386_frame_num_args, i386_frame_init_saved_regs,
3470 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
3471 i386_push_arguments): Remove functions.
3472 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
3473 functionality. Use i386_analyze_prologue instead of
3474 i386_get_frame_setup.
3475 (I386_NUM_SAVED_REGS): New define.
3476 (struct i386_frame_cache): New structure.
3477 (i386_alloc_frame_cache, i386_analyze_struct_return,
3478 i386_skip_probe, i386_analyze_frame_setup,
3479 i386_analyze_register_saves, i386_analyze_prologue,
3480 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
3481 i386_frame_prev_register, i386_sigtramp_frame_cache,
3482 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
3483 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
3484 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
3485 New functions.
3486 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
3487 New variables.
3488 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
3489 I386_EAX_REGNUM and I386_EDX_REGNUM.
3490 (i386_extract_return_value, i386_store_return_value): Use
3491 I386_ST0_REGNUM where appropriate.
3492 (i386_extract_struct_value_address): Rewrite to use extract_address.
3493 (i386_svr4_pc_in_sigtramp): Add comment.
3494 (i386_svr4_sigcontext_addr): Rewrite.
3495 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
3496 TDEP->sc_sp_offset.
3497 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
3498 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
3499 of new defines. Set push_dummy_call, don't set
3500 deprecated_push_arguments, deprecated_push_return_address,
3501 deprecated_pop_frame. Don't set parm_boundary. Don't set
3502 deprecated_frame_chain, deprecated_frame_saved_pc,
3503 deprecated_saved_pc_after_call. Set unwind_dummy_id,
3504 save_dummy_frame_tos, unwind_pc. Call
3505 frame_unwind_append_predicate and frame_base_set_default. Don't
3506 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
3507 Don't set frameless_function_invocation. Don't set
3508 deprecated_register_bytes, deprecated_register_size,
3509 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
3510 * i386-linux-tdep.c: Fix formatting in some comments.
3511 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
3512 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
3513 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
3514 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
3515 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
3516 redundant parentheses.
3517 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
3518 (i386_linux_sigcontext_addr): Use it. Rewrite.
3519 (find_minsym_and_objfile): Change name of second argument.
3520 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
3521 changed. Use frame_pc_unwind instead of
3522 DEPRECATED_SAVED_PC_AFTER_CALL.
3523 (i386_linux_init_abi): Don't set deprecated_register_bytes.
3524 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
3525 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
3526 unwinder.
3527 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
3528 "dummy-frame.h".
3529 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
3530 (_initialize_i386_cygwin_tdep): New prototype.
3531 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
3532 deprecated_frame_chain_valid.
3533 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
3534 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3535 Rely on the SVR4 defaults.
3536 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
3537 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
3538
35392003-05-30 Andrew Cagney <[email protected]>
3540
3541 * infcall.c (call_function_by_hand): Always call
3542 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
3543
35442003-05-30 Richard Henderson <[email protected]>
3545
3546 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
3547 increment.
3548
35492003-05-29 Jim Blandy <[email protected]>
3550
3551 Use gdbarch methods for solib stuff on PowerPC Linux.
3552 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
3553 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
3554 show through.
3555 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3556 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
3557 giving the same effect as the #definitions above.
3558
35592003-05-29 Adam Fedor <[email protected]>
3560
3561 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
3562 (find_implementation_from_class): Replace it with the standard
3563 case i.e. do nothing.
3564
35652003-05-29 Richard Henderson <[email protected]>
3566
3567 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
3568 (alpha_linux_sigtramp_offset): Use it. Make static.
3569 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
3570 update for new frame model.
3571 * alpha-mdebug-tdep.c: New file.
3572 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
3573 (alpha_osf1_init_abi): Install it.
3574 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
3575 (linked_proc_desc_table): Remove.
3576 (alpha_frame_past_sigtramp_frame): Remove.
3577 (alpha_dynamic_sigtramp_offset): Remove.
3578 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
3579 (alpha_proc_desc_is_dyn_sigtramp): Remove.
3580 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
3581 (push_sigtramp_desc): Remove.
3582 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
3583 (alpha_cannot_store_register): Likewise.
3584 (alpha_sigcontext_addr): Remove.
3585 (alpha_find_saved_regs): Remove.
3586 (alpha_frame_init_saved_regs): Remove.
3587 (alpha_init_frame_pc_first): Remove.
3588 (read_next_frame_reg): Remove.
3589 (alpha_frame_saved_pc): Remove.
3590 (alpha_saved_pc_after_call): Remove.
3591 (temp_proc_desc, temp_saved_regs): Remove.
3592 (alpha_about_to_return): Remove.
3593 (cached_proc_desc): Remove.
3594 (alpha_frame_chain): Remove.
3595 (alpha_print_extra_frame_info): Remove.
3596 (alpha_init_extra_frame_info): Remove.
3597 (alpha_frame_locals_address): Remove.
3598 (alpha_frame_args_address): Remove.
3599 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
3600 (alpha_push_dummy_frame): Remove.
3601 (alpha_pop_frame): Remove.
3602 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
3603 (alpha_read_insn): New.
3604 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
3605 for different insn encodings.
3606 (alpha_in_lenient_prologue): Remove.
3607 (struct alpha_sigtramp_unwind_cache): New.
3608 (alpha_sigtramp_frame_unwind_cache): New.
3609 (alpha_sigtramp_register_address): New.
3610 (alpha_sigtramp_frame_this_id): New.
3611 (alpha_sigtramp_frame_prev_register): New.
3612 (alpha_sigtramp_frame_unwind): New.
3613 (alpha_sigtramp_frame_p): New.
3614 (struct alpha_heuristic_unwind_cache): New.
3615 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
3616 don't count nop insns that occur between functions.
3617 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
3618 heuristic_proc_desc, but without the mdebug wrapping.
3619 (alpha_heuristic_frame_this_id): New.
3620 (alpha_heuristic_frame_prev_register): New.
3621 (alpha_heuristic_frame_unwind): New.
3622 (alpha_heuristic_frame_p): New.
3623 (alpha_heuristic_frame_base_address): New.
3624 (alpha_heuristic_frame_base): New.
3625 (alpha_unwind_dummy_id): New.
3626 (alpha_unwind_pc): New.
3627 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
3628 frame related deprecated initializations; install replacements.
3629 (alpha_dump_tdep): Remove.
3630 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
3631 (alpha_read_insn, alpha_after_prologue,
3632 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
3633 alpha_heuristic_frame_prev_register,
3634 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
3635 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3636 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
3637 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
3638
36392003-05-29 Andrew Cagney <[email protected]>
3640
3641 * gdb_assert.h (gdb_assert_fail): Provide different definitions
3642 dependant on the availability of ASSERT_FUNCTION.
3643 (ASSERT_FUNCTION): Do not define when there is no function name.
3644
36452003-05-29 Kevin Buettner <[email protected]>
3646
3647 From Jimi X <[email protected]>:
3648 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
3649
36502003-05-28 Jim Blandy <[email protected]>
3651
3652 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
3653 argument to ptrace to int; the system headers should give it the
3654 right type, and pointers don't fit in ints on powerpc64-*-*.
3655
36562003-05-28 H.J. Lu <[email protected]>
3657
3658 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
3659 DW_TAG_catch_block.
3660
36612003-05-26 Elena Zannoni <[email protected]>
3662
3663 * stabsread.c (dbx_lookup_type): Make static.
3664 (read_type): Ditto.
3665 (add_undefined_type): Ditto.
3666 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
3667 not export.
3668
36692003-05-26 Elena Zannoni <[email protected]>
3670
3671 * hpread.c (hpread_has_name): Make static.
3672 (hpread_psymtab_to_symtab): Ditto.
3673 (file_exists): Ditto.
3674 (hpread_call_pxdb): Ditto.
3675 (hpread_pxdb_needed): Ditto.
3676 (hpread_quick_traverse): Ditto.
3677 (hpread_get_header): Ditto.
3678 (hpread_get_lntt): Ditto.
3679 (hpread_get_slt): Ditto.
3680 (class_of): Ditto.
3681
36822003-05-25 Andreas Schwab <[email protected]>
3683
3684 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
3685 stack_align and deprecated_extra_stack_alignment_needed.
3686 (m68k_stack_align): Delete.
3687
3688 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
3689 (m68k_register_virtual_size): Likewise.
3690 (altos_skip_prologue): Remove obsolete function.
3691 (isi_frame_num_args): Likewise.
3692 (news_frame_num_args): Likewise.
3693 (m68k_fix_call_dummy): Make static.
3694 (m68k_push_dummy_frame): Likewise.
3695 (m68k_pop_frame): Likewise.
3696 (m68k_skip_prologue): Likewise.
3697 (m68k_frame_init_saved_regs): Likewise.
3698 (m68k_saved_pc_after_call): Likewise.
3699 (m68k_get_longjmp_target): Make multi-arch.
3700 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
3701 structure. Register m68k_get_longjmp_target if enabled.
3702 * m68k-tdep.h (struct gdbarch_tdep): Define.
3703 * config/m68k/tm-m68k.h: Don't include "regcache.h".
3704
3705 * Makefile.in (config.status): Also depend on configure.tgt
3706 and configure.host.
3707 (m68klinux-tdep.o): Update dependencies.
3708 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
3709 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
3710 (M68K_LINUX_JB_PC): Define.
3711 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
3712 and take additional parameter.
3713 (m68k_linux_sigtramp_saved_pc): Update.
3714 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
3715 m68k_linux_pc_in_sigtramp, in_plt_section,
3716 find_solib_trampoline_target.
3717 * config/m68k/tm-linux.h: Don't include any tm headers.
3718 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
3719 (JB_ELEMENT_SIZE): Likewise.
3720 (JB_PC): Likewise.
3721 (GET_LONGJMP_TARGET): Likewise.
3722 (IN_SIGTRAMP): Likewise.
3723 (SVR4_SHARED_LIBS): Define this and include "solib.h".
3724
37252003-05-25 Mark Kettenis <[email protected]>
3726
3727 * sparc-tdep.c (sparc32_do_push_arguments): New function.
3728 (sparc32_push_arguments): Re-implement by calling
3729 sparc32_do_push_arguments.
3730
37312003-05-25 Mark Kettenis <[email protected]>
3732
3733 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
3734 SPARC_O1_REGNUM): New defines.
3735 (sparc32_extract_return_value): Rewrite to operate on a regcache.
3736 (sparc32_store_return_value): New function.
3737 (sparc_extract_struct_value_address): Rewrite to operate on a
3738 regcache.
3739 (sparc_gdbarch_init): Don't set
3740 deprecated_extract_struct_value_address. Set
3741 extract_struct_value_address instead. Don't set
3742 deprecated_extract_return_value and deprecated_store_return_value
3743 for 32-bit targets. Set extract_return_value and
3744 store_return_value instead.
3745 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
3746 DEPRECTAED_EXTRACT_RETURN_VALUE,
3747 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
3748 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
3749 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
3750 (sparc_store_return_value): Remove prototype.
3751 (sparc32_store_return_value): New prototype.
3752 (sparc32_extract_return_value, sparc_extract_struct_value_address):
3753 Adjust prototypes.
3754
37552003-05-24 Mark Kettenis <[email protected]>
3756
3757 * sparcnbsd-tdep.c: Include "gdb_string.h".
3758
37592003-05-23 Andrew Cagney <[email protected]>
3760
3761 * p-valprint.c (pascal_val_print): Replace extract_address with
3762 the inline equivalent extract_unsigned_integer.
3763 * jv-valprint.c (java_value_print): Ditto.
3764 * ada-valprint.c (ada_val_print_1): Ditto.
3765 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
3766
37672003-05-23 Theodore A. Roth <[email protected]>
3768
3769 * blockframe.c (frameless_look_for_prologue): Remove unused
3770 after_prologue variable.
3771
37722003-05-23 Mark Kettenis <[email protected]>
3773
3774 * blockframe.c (get_pc_function_start): Rewrite to avoid
3775 asignments in if-statements.
3776
37772003-05-23 Raoul Gough <[email protected]>
3778
3779 Committed by Elena Zannoni <[email protected]>.
3780 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
3781 files, don't relocate absolute symbols (and do use mst_abs).
3782
37832003-05-23 Andrew Cagney <[email protected]>
3784
3785 * objc-lang.c: Include "gdb_assert.h".
3786 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
3787 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
3788 (gdb_check, gdb_check_fatal): Delete functions.
3789 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
3790 gdb_assert.
3791 (parse_selector, parse_method, find_methods, find_imps): Ditto.
3792 * Makefile.in (objc-lang.o): Update dependencies.
3793
37942003-05-22 Ian Lance Taylor <[email protected]>
3795
3796 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
3797 with fprintf_filtered, not fprintf_unfiltered.
3798
37992003-05-22 Andrew Cagney <[email protected]>
3800
3801 * stack.c (frame_info): Inline extract_address, replacing it with
3802 extract_unsigned_integer.
3803 * findvar.c (unsigned_pointer_to_address): Ditto.
3804 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
3805 * dwarf2expr.c (dwarf2_read_address): Ditto.
3806 * frame.c (frame_pc_unwind): Update comment.
3807 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
3808
38092003-05-22 Jeff Johnston <[email protected]>
3810
3811 * infptrace.c (detach): Call print_sys_errmsg rather than
3812 perror_with_name to issue warning message when errno is non-zero
3813 after calling ptrace detach.
3814
38152003-05-21 J. Brobecker <[email protected]>
3816
3817 * config/pa/tm-hppa.h: Delete some unused macros. Move some
3818 macro definitions from here...
3819 * hppa-tdep.c: ...to there.
3820
38212003-05-20 Kevin Buettner <[email protected]>
3822
3823 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
3824 register_ptrace_addr(). Fix all callers.
3825
38262003-05-21 Andreas Schwab <[email protected]>
3827
3828 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3829 dependencies.
3830 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
3831 end.
3832 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
3833 (_initialize_m68k_linux_tdep): New function.
3834 (m68k_linux_frame_saved_pc): Make static.
3835 (m68k_linux_extract_return_value): Likewise.
3836 (m68k_linux_store_return_value): Likewise.
3837 (m68k_linux_extract_struct_value_address): Likewise.
3838 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
3839 Remove.
3840 (DEPRECATED_STORE_RETURN_VALUE): Remove.
3841 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3842 (DEPRECATED_FRAME_SAVED_PC): Remove.
3843
38442003-05-20 Kris Warkentin <[email protected]>
3845
3846 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
3847 regset numbering rather than our own.
3848
38492003-05-19 David Carlton <[email protected]>
3850
3851 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
3852
38532003-05-19 David Carlton <[email protected]>
3854
3855 Partial fix for PR c++/827.
3856 * cp-support.h: Include symtab.h.
3857 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
3858 * cp-namespace.c: Update contributors.
3859 (cp_lookup_symbol_nonlocal): New.
3860 (lookup_namespace_scope, cp_lookup_symbol_namespace)
3861 (lookup_symbol_file): Ditto.
3862 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
3863 * block.h: Declare block_scope, block_using, block_global_block.
3864 * block.c (block_scope): New.
3865 (block_using, block_global_block): Ditto.
3866 * Makefile.in (cp_support_h): Depend on symtab_h.
3867 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
3868
38692003-05-19 David Carlton <[email protected]>
3870
3871 * language.h (struct language_defn): Add 'la_value_of_this'
3872 and 'la_lookup_symbol_nonlocal' members.
3873 * symtab.h: Declare basic_lookup_symbol_nonlocal,
3874 lookup_symbol_static, lookup_symbol_global,
3875 lookup_symbol_aux_block.
3876 * symtab.c (lookup_symbol_aux): Call language hooks to determine
3877 if we should search fields of this and how to do static/global
3878 lookup.
3879 (lookup_symbol_aux_block): Make extern.
3880 (basic_lookup_symbol_nonlocal): New.
3881 (lookup_symbol_static, lookup_symbol_global): Ditto.
3882 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
3883 'la_lookup_symbol_nonlocal' members.
3884 * c-lang.c (c_language_defn, cplus_language_defn)
3885 (asm_language_defn, minimal_language_defn): Ditto.
3886 * jv-lang.c (java_language_defn): Ditto.
3887 * language.c (unknown_language_defn, auto_language_defn)
3888 (local_language_defn): Ditto.
3889 * m2-lang.c (m2_language_defn): Ditto.
3890 * objc-lang.c (objc_language_defn): Ditto.
3891 * scm-lang.c (scm_language_defn): Ditto.
3892 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
3893 * p-lang.c (pascal_language_defn): Ditto for both.
3894 * Makefile.in (f-lang.o): Depend on value_h.
3895 (p-lang.o): Ditto.
3896
38972003-05-19 David Carlton <[email protected]>
3898
3899 * block.h: Declare block_static_block.
3900 * block.c (block_static_block): New.
3901 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
3902 lookup_symbol_aux_local, calling block_static_block instead.
3903 (lookup_symbol_aux_local): Delete 'static_block' argument.
3904
39052003-05-19 David Carlton <[email protected]>
3906
3907 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
3908
39092003-05-19 Michal Ludvig <[email protected]>
3910
3911 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
3912 register numbers mapping.
3913
39142003-05-18 Adam Fedor <[email protected]>
3915
3916 * symtab.c (completion_list_objc_symbol): New function.
3917 (make_symbol_completion_list): Use it to add ObjC symbols
3918 when looking though the list.
3919 (language_search_unquoted_string): New function.
3920 (make_file_symbol_completion_list): Use it.
3921
39222003-05-18 Andreas Schwab <[email protected]>
3923
3924 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
3925 dependencies.
3926 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
3927 as m68k_linux_extract_return_value.
3928 (DEPRECATED_STORE_RETURN_VALUE): Define as
3929 m68k_linux_store_return_value.
3930 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
3931 m68k_linux_extract_struct_value_address.
3932 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
3933 get_next_frame, get_frame_base, get_frame_pc.
3934 (m68k_linux_frame_saved_pc): Use get_frame_base.
3935 (m68k_linux_extract_return_value): New function.
3936 (m68k_linux_store_return_value): New function.
3937 (m68k_linux_extract_struct_value_address): New function.
3938 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
3939
3940 * c-exp.y (typebase): Remove duplicate occurence of
3941 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
3942 of lookup_signed_typename.
3943
39442003-05-18 Mark Kettenis <[email protected]>
3945
3946 * dwarf2loc.c (find_location_expression): Change type of second
3947 argument to `size_t *'.
3948 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
3949 for size variable.
3950
39512003-05-18 David Carlton <[email protected]>
3952
3953 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
3954 'linkage_name'. Add comment.
3955 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
3956 'linkage_name'.
3957 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
3958 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
3959 (lookup_block_symbol): Ditto.
3960
39612003-05-16 Andrew Cagney <[email protected]>
3962
3963 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
3964 * gdbarch.h, gdbarch.c: Re-generate.
3965 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
3966 * TODO (REGISTER_BYTES): Delete reference.
3967 * alpha-tdep.c (alpha_gdbarch_init): Update.
3968 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3969 * x86-64-tdep.c (x86_64_init_abi): Update.
3970 * vax-tdep.c (vax_gdbarch_init): Update.
3971 * v850-tdep.c (v850_gdbarch_init): Update.
3972 * sparc-tdep.c (sparc_gdbarch_init): Update.
3973 * sh-tdep.c (sh_gdbarch_init): Update.
3974 * s390-tdep.c (s390_gdbarch_init): Update.
3975 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3976 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3977 (ns32k_gdbarch_init_32382): Update.
3978 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3979 * mcore-tdep.c (mcore_gdbarch_init): Update.
3980 * m68k-tdep.c (m68k_gdbarch_init): Update.
3981 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3982 * ia64-tdep.c (ia64_gdbarch_init): Update.
3983 * i386-tdep.c (i386_gdbarch_init): Update.
3984 * i386-linux-tdep.c (i386_linux_init_abi): Update.
3985 * hppa-tdep.c (hppa_gdbarch_init): Update.
3986 * h8300-tdep.c (h8300_gdbarch_init): Update.
3987 * frv-tdep.c (frv_gdbarch_init): Update.
3988 * cris-tdep.c (cris_gdbarch_init): Update.
3989 * avr-tdep.c (avr_gdbarch_init): Update.
3990 * arm-tdep.c (arm_gdbarch_init): Update.
3991 * sparc-tdep.c (sparc_pop_frame): Update.
3992 * rs6000-tdep.c (rs6000_pop_frame): Update.
3993 * remote.c (init_remote_state): Update.
3994 (remote_prepare_to_store): Update.
3995 * remote-vx.c (vx_prepare_to_store): Update.
3996 * remote-sds.c (sds_fetch_registers): Update.
3997 (sds_prepare_to_store): Update.
3998 * remote-array.c: Update.
3999 * regcache.c (init_legacy_regcache_descr): Update.
4000 (init_regcache_descr): Update.
4001 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4002 (mips_o64_extract_return_value): Update.
4003 * irix5-nat.c (fetch_core_registers): Update.
4004 * irix4-nat.c (fetch_core_registers): Update.
4005 * i386-tdep.h: Update.
4006 * hppa-tdep.c (pa_do_registers_info): Update.
4007 (pa_do_strcat_registers_info): Update.
4008 * cris-tdep.c (cris_register_bytes_ok): Update.
4009 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4010 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4011 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4012 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4013 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4014 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4015 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4016 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4017 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4018 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4019 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4020 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4021 (REGISTER_BYTES_OK): Update.
4022 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4023 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4024
40252003-05-16 Ian Lance Taylor <[email protected]>
4026
4027 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4028 (vax_print_insn, print_insn_arg): Remove static functions.
4029 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4030 print_insn_vax from opcodes library.
4031 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4032
40332003-05-15 Andrew Cagney <[email protected]>
4034
4035 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4036 * target.h (memory_breakpoint_from_pc): Delete declaration.
4037 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4038 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4039 * monitor.c (monitor_insert_breakpoint): Use
4040 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4041 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4042 * gdbarch.h, gdbarch.c: Re-generate.
4043 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4044 (sparc_gdbarch_init): Set breakpoint_from_pc to
4045 sparc_breakpoint_from_pc.
4046 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4047 (BREAKPOINT_FROM_PC): Define.
4048 (sparc_breakpoint_from_pc): Declare.
4049 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4050 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4051 (BREAKPOINT_FROM_PC): Define.
4052 (BREAKPOINT): Delete macro.
4053 * target.h: Update comment.
4054 * s390-tdep.c (s390_gdbarch_init): Update comments.
4055 * remote.c: Update comments.
4056 * remote-mips.c: Update comments.
4057 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4058 * mem-break.c: Update comment.
4059 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4060 (ia64_memory_insert_breakpoint): Update.
4061 * config/sparc/tm-sparc.h: Update comment.
4062 * config/pa/tm-hppa64.h: Update comment.
4063 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4064 (rs6000_breakpoint_from_pc): Update.
4065 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4066 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4067 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4068 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4069 (mips_breakpoint_from_pc): Update.
4070 (mips_dump_tdep): Update.
4071
4072 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4073 * minsyms.c (lookup_minimal_symbol): Inline
4074 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
4075
4076 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4077 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4078 * p-lang.c (pascal_printstr): Ditto.
4079 * objc-lang.c (objc_printstr): Ditto.
4080 * m2-lang.c (m2_printstr): Ditto.
4081 * jv-valprint.c (java_print_value_fields): Ditto.
4082 * f-lang.c (f_printstr): Ditto.
4083 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
4084 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4085 for repeat_count_threshold.
4086 * Makefile.in (cp-valprint.o): Update dependencies.
4087
40882003-05-15 Jeff Johnston <[email protected]>
4089
4090 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
4091 (examine_prologue): Support looking through leaf functions, knowing
4092 they start with mov r2,r12. Support skipping over indirect stores
4093 of the input registers. Upon hitting a non-nop branch instruction
4094 or predicated instruction, bail out by setting lim_pc to the current
4095 pc value in the loop. At the end, if the lim_pc value is still
4096 beyond our calculated value and we have trust_limit set,
4097 use the lim_pc value.
4098
40992003-05-15 Andrew Cagney <[email protected]>
4100
4101 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
4102 generic_find_dummy_frame.
4103 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
4104 (deprecated_generic_find_dummy_frame): Update.
4105 (deprecated_read_register_dummy): Update.
4106 * frame.c (deprecated_generic_get_saved_register): Update.
4107
41082003-05-15 Theodore A. Roth <[email protected]>
4109
4110 * avr-tdep.c (avr_breakpoint_from_pc): New function.
4111 (avr_gdbarch_init): Set breakpoint_from_pc method.
4112
41132003-05-15 Andrew Cagney <[email protected]>
4114
4115 * regcache.c (build_regcache): Set deprecated_register_valid
4116 directly.
4117 (deprecated_grub_regcache_for_register_valid): Delete function.
4118 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
4119 declaration.
4120
41212003-05-15 David Carlton <[email protected]>
4122
4123 Committed by Elena Zannoni <[email protected]>
4124 * symtab.c (lookup_symbol_aux): Delete calls to
4125 lookup_symbol_aux_minsyms.
4126 (lookup_symbol_aux_minsyms): Comment out function and
4127 prototype. Delete lookup by mangled name.
4128
41292003-05-14 Kevin Buettner <[email protected]>
4130
4131 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
4132 correctly indicate an empty stack and ``stack_allocated'' to the
4133 indicate the number of elements initially allocated.
4134 (dwarf_expr_grow_stack): Simplify method for computing new
4135 stack size. Don't loop infinitely if ``stack_len'' is zero.
4136 (execute_stack_op): Move ``ctx->in_reg'' initialization
4137 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
4138 be used in conjuction with DW_OP_piece. Revise error message
4139 accordingly.
4140
41412003-05-14 Theodore A. Roth <[email protected]>
4142
4143 * MAINTAINERS: Update my email address.
4144 * avr-tdep.c: Ditto.
4145
41462003-05-14 Elena Zannoni <[email protected]>
4147
4148 * symtab.h (enum domain_enum): Rename from namespace_enum.
4149 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
4150 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
4151 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
4152 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
4153 TYPES_NAMESPACE, METHODS_NAMESPACE.
4154 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
4155 (struct symbol, struct partial_symbol): Rename field
4156 'namespace_enum namespace' to 'domain_enum domain'.
4157 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
4158 Delete old define kludge for namespace.
4159
4160 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
4161 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
4162 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
4163 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
4164 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
4165 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
4166 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
4167 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
4168 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
4169 occurrences of the above.
4170
41712003-05-14 Ian Lance Taylor <[email protected]>
4172
4173 * Makefile.in (install-only): Use $(SHELL) when running
4174 mkinstalldirs.
4175
41762003-05-13 Ian Lance Taylor <[email protected]>
4177
4178 * MAINTAINERS (write after approval): Add myself.
4179
4180 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
4181 second and third arguments.
4182 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4183 * ser-unix.c (_initialize_ser_hardwire): Likewise.
4184
41852003-05-13 Andrew Cagney <[email protected]>
4186
4187 * defs.h (store_address): Delete declaration.
4188 findvar.c (store_address): Delete function.
4189 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
4190 store_unsigned_integer.
4191 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
4192 * v850-tdep.c (v850_push_arguments): Ditto.
4193 * sparc-tdep.c (sparc_get_saved_register): Ditto.
4194 * sh-tdep.c (sh64_get_saved_register): Ditto.
4195 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
4196 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
4197 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
4198 (mips_get_saved_register): Ditto.
4199 * ia64-tdep.c (ia64_get_saved_register): Ditto.
4200 (find_func_descr, ia64_push_arguments): Ditto.
4201 * i386-tdep.c (i386_push_arguments): Ditto.
4202 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4203 * frv-tdep.c (frv_push_arguments): Ditto.
4204 * frame.c (legacy_saved_regs_prev_register): Ditto.
4205 (deprecated_generic_get_saved_register): Ditto.
4206 * findvar.c (unsigned_address_to_pointer): Ditto.
4207 * dwarf2read.c (dwarf2_const_value): Ditto.
4208 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4209 * alpha-tdep.c (alpha_push_arguments): Ditto.
4210
42112003-05-12 J. Brobecker <[email protected]>
4212
4213 * NEWS: Mention that the hppa-hpux port has been partially
4214 multiarched (32bit ABIT only, so far).
4215
42162003-05-11 Andrew Cagney <[email protected]>
4217
4218 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
4219 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
4220 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
4221 sim/testsuite/sim/arm/misaligned2.ms, and
4222 sim/testsuite/sim/arm/misaligned3.ms.
4223 * disasm.h (struct ui_file): Add opaque struct declaration.
4224 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
4225 * frame.h (struct ui_file): Ditto.
4226
42272003-05-11 Mark Kettenis <[email protected]>
4228
4229 * value.h: Pretty print.
4230
42312003-05-10 Mark Kettenis <[email protected]>
4232
4233 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
4234
42352003-05-08 Andrew Cagney <[email protected]>
4236
4237 * regcache.h (max_register_size): Delete declaration.
4238 * regcache.c (max_register_size): Delete function.
4239 (struct regcache_descr): Delete field "max_register_size".
4240 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
4241 registers fit in MAX_REGISTER_SIZE.
4242 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
4243 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
4244 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
4245 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
4246 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
4247 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
4248 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
4249 * dve3900-rom.c, hppa-tdep.c: Ditto.
4250
42512003-05-08 David Carlton <[email protected]>
4252
4253 * valops.c (push_word): Fix typo.
4254
42552003-05-08 Andrew Cagney <[email protected]>
4256
4257 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
4258 * gdbarch.h: Re-generate.
4259 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
4260 (legacy_max_register_raw_size): Delete declaration.
4261 * regcache.c (legacy_max_register_raw_size): Delete function.
4262 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
4263 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
4264 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
4265 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
4266 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
4267 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
4268 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
4269 * findvar.c, dwarf2cfi.c: Ditto.
4270
42712003-05-08 Andrew Cagney <[email protected]>
4272
4273 * mips-tdep.c (read_signed_register): New function, moved to here
4274 from "regcache.c".
4275 (read_signed_register_pid): Ditto.
4276 * regcache.c (read_signed_register_pid): Delete function, moved to
4277 "mips-tdep.c".
4278 (read_signed_register): Ditto.
4279 * regcache.h (read_signed_register): Delete declaration.
4280 (read_signed_register_pid): Delete declaration.
4281
42822003-05-08 Andrew Cagney <[email protected]>
4283
4284 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
4285 * gdbarch.h: Re-generate.
4286 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
4287 (legacy_max_register_virtual_size): Delete declaration.
4288 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
4289 * d10v-tdep.c (d10v_print_registers_info): Ditto.
4290 * tracepoint.c (memrange_sortmerge): Ditto.
4291 * sparc-tdep.c (sparc_print_registers): Ditto.
4292 * regcache.c (legacy_max_register_virtual_size): Delete function.
4293
42942002-05-08 J. Brobecker <[email protected]>
4295
4296 * fork-child.c (escape_bang_in_quoted_argument): New function.
4297 (fork_inferior): Escape '!' characters in quoted arguments
4298 only when needed.
4299
43002003-05-08 J. Brobecker <[email protected]>
4301
4302 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
4303 the language of the CU is not currently supported by GDB.
4304
43052003-05-08 J. Brobecker <[email protected]>
4306
4307 * defs.h (language): Add language_minimal enum value.
4308 * c-lang.c (minimal_language_defn): New language definition.
4309 (_initialize_c_language): Add the new minimal language to the list
4310 of languages known to GDB.
4311
43122003-05-08 Kevin Buettner <[email protected]>
4313
4314 * frame.c (get_frame_type): Don't attempt to lazily initialize
4315 frame's unwinder for legacy frames.
4316
43172003-05-07 Andrew Cagney <[email protected]>
4318
4319 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
4320 and "regcache" parameters.
4321 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
4322
43232003-05-07 Jeff Johnston <[email protected]>
4324
4325 * dwarf2read.c (dwarf_decode_lines): Only use output of
4326 check_cu_functions() when calling record_line(). Do not update
4327 the current address.
4328
43292003-05-07 Andrew Cagney <[email protected]>
4330
4331 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
4332 code.
4333
43342003-05-07 Jim Blandy <[email protected]>
4335
4336 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
4337 'maint info symtabs' and 'maint info psymtabs'.
4338 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
4339 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
4340 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
4341 Declarations updated.
4342 * maint.c (maintenance_list_command): Delete.
4343 (_initialize_maint_cmds): Update calls to add_cmd.
4344 * gdbcmd.h (maintenancelistlist): Delete declaration.
4345 * cli/cli-cmds.c (maintenancelistlist): Delete.
4346 (init_cmd_lists): Don't initialize it.
4347 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
4348
43492003-05-07 Andrew Cagney <[email protected]>
4350
4351 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
4352 "regcache".
4353 (d10v_print_registers_info): Update.
4354 (d10v_dmap_register, d10v_imap_register): Delete functions.
4355 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
4356 and "imap_register".
4357 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
4358 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
4359 * arch-utils.c (generic_remote_translate_xfer_address): Add
4360 "regcache" and "gdbarch" parameters.
4361 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
4362 parameter. Change class to multi-arch.
4363 * gdbarch.h, gdbarch.c: Re-generate.
4364 * remote.c (remote_xfer_memory): Use
4365 gdbarch_remote_translate_xfer_address.
4366
43672003-05-07 Jeff Johnston <[email protected]>
4368
4369 * infrun.c (prev_pc): Move declaration ahead of proceed().
4370 (proceed): Refresh prev_pc value before resuming.
4371 (stop_stepping): Remove code to refresh prev_pc.
4372
43732003-05-06 Kris Warkentin <[email protected]>
4374
4375 * nto-tdep.c: Removed stray comment.
4376
43772003-05-06 Kris Warkentin <[email protected]>
4378
4379 * i386-nto-tdep.c: Fix old K&R function definitions.
4380 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
4381 Also change add_show_from_set() call to add_setshow_cmd().
4382 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
4383
43842003-05-05 Andrew Cagney <[email protected]>
4385
4386 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
4387 (fprint_dummy_frames): New function.
4388 (maintenance_print_dummy_frames): New function.
4389 (_initialize_dummy_frame): Add command "maint print dummy-frames".
4390 * frame.c (fprint_frame_id): Make global.
4391 * frame.h (fprint_frame_id): Declare.
4392 * Makefile.in (dummy-frame.o): Update dependencies.
4393
43942003-05-05 Andrew Cagney <[email protected]>
4395
4396 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
4397 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
4398 SIZEOF_CALL_DUMMY_WORDS.
4399 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
4400 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
4401 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
4402 CALL_DUMMY_BREAKPOINT_OFFSET.
4403 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
4404 CALL_DUMMY_START_OFFSET.
4405 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
4406 * gdbarch.h, gdbarch.c: Re-generate.
4407 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
4408 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
4409 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
4410 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
4411 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
4412 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
4413 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
4414 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
4415 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
4416 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
4417 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
4418 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
4419 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
4420 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
4421 * config/sparc/tm-sparc.h: Update.
4422
44232003-05-05 Kris Warkentin <[email protected]>
4424
4425 * configure.tgt: Add i[3456]86-*-nto*.
4426 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
4427 * nto-tdep.c: New file. Neutrino target support routines.
4428 * nto-tdep.h: New file. Neutrino target header.
4429 * config/tm-qnxnto.h: New file.
4430 * config/i386/i386nto.mt: New file.
4431 * config/i386/tm-i386nto.h: New file.
4432
44332003-05-04 Andrew Cagney <[email protected]>
4434
4435 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
4436 (load_infrun_state): Ditto.
4437 (struct thread_info): Drop "prev_func_name" field.
4438 * thread.c (load_infrun_state): Update.
4439 (save_infrun_state): Update.
4440 * infrun.c (prev_func_name): Delete variable.
4441 (init_wait_for_inferior): Do not clear prev_func_name.
4442 (stop_stepping, keep_going, context_switch): Do not swap
4443 prev_func_name.
4444 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
4445 instead of PC_IN_SIGTRAMP.
4446
44472003-05-04 Andrew Cagney <[email protected]>
4448
4449 * sentinel-frame.c (sentinel_frame_prev_register): Replace
4450 REGISTER_BYTE with register_offset_hack.
4451 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
4452 that REGISTER_BYTE is consistent with the regcache.
4453 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
4454 * gdbarch.h, gdbarch.c: Regenerate.
4455
44562003-05-04 Mark Kettenis <[email protected]>
4457
4458 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
4459 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
4460
4461 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
4462
44632003-05-03 J. Brobecker <[email protected]>
4464
4465 From Thierry Schneider <[email protected]>
4466 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
4467 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
4468 (mi-cmd-symbol.o): Add rule.
4469
44702003-05-03 Andrew Cagney <[email protected]>
4471
4472 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
4473 comments noteing that it replaces the old FIX_CALL_DUMMY code.
4474 * gdbarch.h, gdbarch.c: Re-generate.
4475 * d10v-tdep.c (d10v_push_dummy_code): New function.
4476 (d10v_gdbarch_init): Set push_dummy_code.
4477 * infcall.c (legacy_push_dummy_code): New function.
4478 (generic_push_dummy_code): New function.
4479 (push_dummy_code): New function.
4480 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
4481 instead of dummy_addr, to push_dummy_call. Move call to
4482 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
4483 switch.
4484 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
4485
44862003-05-03 Andrew Cagney <[email protected]>
4487
4488 * disasm.h (print_insn): Declare.
4489 * disasm.c (init_gdb_disassemble_info): New function.
4490 (gdb_disassembly): Call init_gdb_disassemble_info.
4491 (gdb_print_insn): New function.
4492 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
4493 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
4494 * mcore-tdep.c: Include "disasm.h"
4495 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
4496 * d10v-tdep.c: Include "disasm.h".
4497 (display_trace): Call gdb_print_insn, instead of print_insn.
4498 (print_insn): Delete function.
4499 * printcmd.c: Include "disasm.h".
4500 (print_insn): Delete function.
4501 (print_formatted): Call gdb_print_insn, instead of print_insn.
4502 * Makefile.in (printcmd.o): Update dependencies.
4503 (mcore-tdep.o, d10v-tdep.o): Ditto.
4504
45052003-05-02 Andrew Cagney <[email protected]>
4506
4507 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
4508 PC_REGNUM, re-indent.
4509 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
4510 PC_REGNUM isn't set.
4511
4512 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
4513 * gdbarch.h, gdbarch.c: Re-generate.
4514 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
4515 register_virtual_size, pc_regnum, or register_bytes.
4516 (D10V_PC_REGNUM): Rename _PC_REGNUM.
4517 (d10v_register_type): Use D10V_PC_REGNUM.
4518 (d10v_print_registers_info, d10v_read_pc): Ditto.
4519 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
4520 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
4521
45222003-05-02 David Carlton <[email protected]>
4523
4524 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
4525 the name with mstrsave.
4526
45272003-05-02 Elena Zannoni <[email protected]>
4528
4529 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
4530 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
4531 (host_charset_name, target_charset_name): New vars for use by
4532 set/show commands.
4533 (host_charset_enum, target_charset_enum): New enums for set/show
4534 commands.
4535 (set_charset_sfunc, set_host_charset_sfunc,
4536 set_target_charset_sfunc): New functions.
4537 (set_host_charset, set_target_charset): Make static.
4538 (list_charsets, set_host_charset_command,
4539 set_target_charset_command): Delete functions.
4540 (show_charset_command): Rewrite as....
4541 (show_charset): Hook this up with the set/show command mechanism.
4542 (_initialize_charset): Change names of charsets to match the
4543 set/show enums. Use host_charset_name and target_charset_name.
4544 Use set/show mechanism for charset, host-charset, target-charset
4545 commands. Do not make 'show host-charset' and 'show
4546 target-charset' be aliases of 'show charset'.
4547
4548 * charset.h (set_host_charset, set_target_charset): Don't export,
4549 they are not used outside the file.
4550
45512003-05-01 Andrew Cagney <[email protected]>
4552
4553 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
4554 (gdb_disassembly): Make "di" non static, always initialize and
4555 cleanup. Always use dis_asm_read_memory.
4556 (gdb_dis_asm_read_memory): Delete function.
4557
45582003-05-01 Andrew Cagney <[email protected]>
4559
4560 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
4561 (d10v_gdbarch_init): Set frame_align instead of stack_align.
4562
45632003-04-30 Andrew Cagney <[email protected]>
4564
4565 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
4566 "tm_print_insn_info".
4567 (TARGET_PRINT_INSN_INFO): Delete macro.
4568 (dis_asm_read_memory): Delete function declaration.
4569 (dis_asm_memory_error, dis_asm_print_address): Ditto.
4570 (tm_print_insn_info): Delete variable definition.
4571 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
4572 * gdbarch.h, gdbarch.c: Re-generate.
4573 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
4574 "deprecated_tm_print_insn_info".
4575 * mcore-tdep.c (mcore_dump_insn): Ditto.
4576 * mips-tdep.c (mips_gdbarch_init): Ditto.
4577 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
4578 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
4579 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
4580 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
4581 instead of TARGET_PRINT_INSN_INFO, add comment.
4582 * s390-tdep.c (s390_get_frame_info): Instead of
4583 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
4584 (s390_check_function_end, s390_is_sigreturn): Ditto.
4585 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
4586 (dis_asm_memory_error, dis_asm_print_address): Ditto.
4587 * disasm.c: Include "gdbcore.h".
4588 (_initialize_disasm): New function, initialize
4589 "deprecated_tm_print_insn_info".
4590 (deprecated_tm_print_insn_info): New variable.
4591 (dis_asm_read_memory): Moved from "corefile.c", made static.
4592 (dis_asm_print_address, dis_asm_memory_error): Ditto.
4593 * Makefile.in (disasm.o): Update dependencies.
4594
45952003-04-30 Andrew Cagney <[email protected]>
4596
4597 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
4598
45992003-04-29 Adam Fedor <[email protected]>
4600
4601 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
4602 * infcall.c (find_function_addr): Make non-static.
4603 * infcall.h (find_function_addr): Declare.
4604 * Makefile.in (eval.o): Update dependencies.
4605
46062003-04-28 Adam Fedor <[email protected]>
4607
4608 * symtab.c (symbol_find_demangled_name): Check for and demangle
4609 ObjC symbols.
4610 (symbol_init_demangled_name): Init for language_objc as well.
4611
46122003-04-28 Andrew Cagney <[email protected]>
4613
4614 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
4615 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
4616 * gdbarch.h, gdbarch.c: Re-generate.
4617 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
4618 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
4619 * inferior.h (deprecated_read_fp): Rename read_fp.
4620 (generic_target_read_fp): Delete declaration.
4621 * regcache.c (generic_target_read_fp): Delete function.
4622 (deprecated_read_fp): Replace read_fp, use
4623 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
4624 * d10v-tdep.c (d10v_read_fp): Delete function.
4625 (d10v_gdbarch_init): Do not set deprecated_read_fp.
4626
4627 * sparc-tdep.c (sparc_gdbarch_init): Do not set
4628 deprecated_target_read_fp to generic_target_read_fp.
4629 * sh-tdep.c (sh_gdbarch_init): Ditto.
4630 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4631 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4632 * frv-tdep.c (frv_gdbarch_init): Ditto.
4633
4634 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
4635 deprecated_fp_regnum.
4636 * x86-64-tdep.c (x86_64_init_abi): Ditto.
4637 * vax-tdep.c (vax_gdbarch_init): Ditto.
4638 * v850-tdep.c (v850_gdbarch_init): Ditto.
4639 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4640 * sh-tdep.c (sh_gdbarch_init): Ditto.
4641 * s390-tdep.c (s390_gdbarch_init): Ditto.
4642 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4643 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4644 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4645 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4646 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4647 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4648 * i386-tdep.c (i386_gdbarch_init): Ditto.
4649 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4650 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4651 * frv-tdep.c (frv_gdbarch_init): Ditto.
4652 * cris-tdep.c (cris_gdbarch_init): Ditto.
4653 * avr-tdep.c (avr_gdbarch_init): Ditto.
4654 * arm-tdep.c (arm_gdbarch_init): Ditto.
4655 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4656
4657 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
4658 * v850-tdep.c (v850_gdbarch_init): Ditto.
4659 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4660 * sh-tdep.c (sh_gdbarch_init): Ditto.
4661 * s390-tdep.c (s390_gdbarch_init): Ditto.
4662 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4663 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4664 * mips-tdep.c (mips_gdbarch_init): Ditto.
4665 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4666 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4667 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4668 * frv-tdep.c (frv_gdbarch_init): Ditto.
4669 * avr-tdep.c (avr_gdbarch_init): Ditto.
4670 * arm-tdep.c (arm_gdbarch_init): Ditto.
4671
4672 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
4673 DEPRECATED_FP_REGNUM.
4674 (vax_push_dummy_frame, vax_pop_frame): Ditto.
4675 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
4676 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
4677 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
4678 (sparc32_register_virtual_type): Ditto.
4679 * sh-tdep.c (sh64_frame_chain): Ditto.
4680 (sh64_get_saved_register, sh64_pop_frame): Ditto.
4681 (sh_nofp_frame_init_saved_regs): Ditto.
4682 (sh64_nofp_frame_init_saved_regs): Ditto.
4683 (sh_fp_frame_init_saved_regs): Ditto.
4684 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4685 * remote-e7000.c (fetch_regs_from_dump): Ditto.
4686 * procfs.c (procfs_fetch_registers): Ditto.
4687 (procfs_store_registers): Ditto.
4688 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
4689 (store_inferior_registers, fetch_core_registers): Ditto.
4690 (fetch_kcore_registers, clear_regs): Ditto.
4691 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
4692 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
4693 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
4694 * nlm/i386.c (do_status): Ditto.
4695 * mipsv4-nat.c (supply_gregset): Ditto.
4696 * mips-tdep.c: Ditto for comments.
4697 * mips-nat.c (fetch_inferior_registers): Ditto.
4698 (store_inferior_registers, fetch_core_registers): Ditto.
4699 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
4700 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
4701 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
4702 (i386_do_pop_frame, i386_register_type): Ditto.
4703 * hppa-tdep.c (hppa_frame_chain): Ditto.
4704 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
4705 (hppa_pop_frame, hppa_read_fp): Ditto.
4706 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
4707 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
4708 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
4709 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
4710 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
4711 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
4712 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
4713 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
4714 * blockframe.c: Ditto for comments.
4715 * arch-utils.h: Ditto for comments.
4716 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
4717 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
4718 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
4719 * alpha-tdep.h: Ditto for comments.
4720 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
4721 (alpha_cannot_store_register): Ditto.
4722 (alpha_push_dummy_frame): Ditto.
4723 * alpha-nat.c (supply_gregset): Ditto.
4724
4725 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
4726 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
4727 * config/sparc/tm-sparc.h: Update comment.
4728
4729 * hppa-tdep.c (hppa_init_extra_frame_info): Use
4730 deprecated_read_fp instead of TARGET_READ_FP.
4731 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
4732 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
4733 * sparc-tdep.c (sparc_init_extra_frame_info): Use
4734 deprecated_read_fp instead of read_fp.
4735 * s390-tdep.c (s390_push_arguments): Ditto.
4736 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4737 * frame.h: Ditto in comments.
4738 * frame.c (legacy_get_prev_frame): Ditto.
4739 * dummy-frame.c (dummy_frame_this_id): Ditto.
4740 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
4741
47422003-04-28 Andrew Cagney <[email protected]>
4743
4744 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
4745 * gdbarch.h, gdbarch.c: Re-generate.
4746 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
4747 * vax-tdep.c (_initialize_vax_tdep): Update.
4748 * v850-tdep.c (_initialize_v850_tdep): Update.
4749 * sparc-tdep.c (_initialize_sparc_tdep): Update.
4750 * s390-tdep.c (_initialize_s390_tdep): Update.
4751 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
4752 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
4753 * mips-tdep.c (_initialize_mips_tdep): Update.
4754 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4755 * m68k-tdep.c (_initialize_m68k_tdep): Update.
4756 * ia64-tdep.c (_initialize_ia64_tdep): Update.
4757 * hppa-tdep.c (_initialize_hppa_tdep): Update.
4758 * h8300-tdep.c (_initialize_h8300_tdep): Update.
4759 * frv-tdep.c (_initialize_frv_tdep): Update.
4760 * cris-tdep.c (cris_delayed_get_disassembler): Update.
4761 (_initialize_cris_tdep): Update.
4762 * arch-utils.c (legacy_print_insn): Update.
4763 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4764
47652003-04-26 Adam Fedor <[email protected]>
4766
4767 * linespec.c (decode_objc): New function to decode ObjC calls
4768 (decode_line_1): Check for ObjC calls (using decode_objc)
4769 * Makefile (linespec.o): Update dependencies.
4770
47712003-04-26 Daniel Jacobowitz <[email protected]>
4772
4773 * breakpoint.h (struct breakpoint_ops): New.
4774 (struct breakpoint): Add ops member.
4775
4776 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
4777 (mention): Use new breakpoint ops member.
4778 (set_raw_breakpoint): Initialize ops field to NULL.
4779 (print_exception_catchpoint, print_one_exception_catchpoint)
4780 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
4781 (gnu_v3_exception_catchpoint_ops): New.
4782 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
4783
47842003-04-25 Adam Fedor <[email protected]>
4785
4786 * Makefile.in (COMMON_OBS): Add objc-lang.o
4787
47882003-04-25 Andrew Cagney <[email protected]>
4789
4790 * d10v-tdep.c (print_insn): Delete function.
4791 (display_trace): Use TARGET_PRINT_INSN.
4792 (_initialize_d10v_tdep): Do not set tm_print_insn.
4793 (d10v_gdbarch_init): Set print_insn.
4794
47952003-04-25 Andrew Cagney <[email protected]>
4796
4797 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
4798 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
4799 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
4800 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
4801 (nr_dmap_regs, a0_regnum): ... new functions.
4802 (d10v_print_registers_info): Use a0_regnum, use register_size.
4803 (d10v_register_byte): Delete function.
4804 (d10v_register_raw_size): Delete function.
4805 (d10v_register_type): Use a0_regnum.
4806 (d10v_print_registers_info): Use a0_regnum.
4807 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
4808 (d10v_gdbarch_init): Do not set register_byte or
4809 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
4810 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
4811 extract_address.
4812 (trace_command): Use XCALLOC.
4813 (print_insn): Delete reference to tm_print_insn.
4814 (saved_regs_unwinder): Use store_unsigned_integer instead of
4815 store_address.
4816 * frame.h (FRAME_OBSTACK_CALLOC): Define
4817
48182003-04-25 David Carlton <[email protected]>
4819
4820 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
4821
48222003-04-24 Adam Fedor <[email protected]>
4823
4824 * objc-lang.c: Include "valprint.h"
4825 * Makefile.in (objc-lang.o): Update dependencies.
4826
48272003-04-24 Adam Fedor <[email protected]>
4828
4829 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
4830 architecture dependant compilation and mark as unimplemented
4831 (until they get put in the gdbarch vector).
4832
48332003-04-23 David Carlton <[email protected]>
4834
4835 * cp-support.c (cp_find_first_component): Accept 'operator' in
4836 more locations.
4837
48382003-04-23 Andrew Cagney <[email protected]>
4839
4840 * infcall.c (call_function_by_hand): Eliminate redundant
4841 indentation. Move "saved_async" and "old_cleanups" to where they
4842 are needed.
4843
48442003-04-23 Andrew Cagney <[email protected]>
4845
4846 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
4847 and "buffer". Move the "name" code to where it is needed.
4848
48492003-04-23 Andrew Cagney <[email protected]>
4850
4851 * infcall.c (call_function_by_hand): Move variables "start_sp",
4852 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
4853 code to ON_STACK switch branch.
4854
48552003-04-23 Andrew Cagney <[email protected]>
4856
4857 * infcall.c (call_function_by_hand): Make declaration of "i",
4858 "sal", "bpt" and "old_sp" more local to their use. Delete #if
4859 lint.
4860
48612003-04-23 Andrew Cagney <[email protected]>
4862
4863 * infcall.c (call_function_by_hand): Delete variable
4864 "n_method_args". Localize "param_type"'s declaration to the loop
4865 that it is used. Reinstate code assigning to said variable -
4866 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
4867 Rationalize code using "param_type".
4868
48692003-04-22 Andrew Cagney <[email protected]>
4870
4871 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
4872 compute the breakpoint address. Only call FIX_CALL_DUMMY when
4873 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
4874 to DEPRECATED_PUSH_RETURN_ADDRESS.
4875
48762003-04-22 Kevin Buettner <[email protected]>
4877
4878 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
4879 on the DWARF2 register number prior to fetching a register.
4880
48812003-04-22 J. Brobecker <[email protected]>
4882
4883 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
4884 Update all the tests using SOFT_FLOAT considering the fact that
4885 this macro was always set to 0.
4886 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
4887 considering the fact that this macro was always set to 0.
4888 * hppa-tdep.h (hppa_store_return_value): Likewise.
4889 (hppa_extract_return_value): Likewise.
4890
48912003-04-22 J. Brobecker <[email protected]>
4892
4893 * config/pa/tm-hppa.h: Remove obsolete code, was used by
4894 the hppa-pro target only.
4895
48962003-04-21 J. Brobecker <[email protected]>
4897
4898 Ongoing multi-arch conversion effort for HP/UX:
4899 * config/pa/tm-hppa.h: Move all macro that are no longer
4900 defined now that GDB_MULTI_ARCH is now set to 1 from here...
4901 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
4902
49032003-04-21 J. Brobecker <[email protected]>
4904
4905 * config/pa/tm-hppa.h: Obsolete a section that was only used
4906 for hppa-pro.
4907
49082003-04-21 J. Brobecker <[email protected]>
4909
4910 Ongoing multi-arch conversion for HP/UX.
4911 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
4912 if already defined (allows hppa64 to stay non-multiarched for now).
4913 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
4914
49152003-04-21 Andrew Cagney <[email protected]>
4916
4917 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
4918
49192003-04-21 Andrew Cagney <[email protected]>
4920
4921 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
4922 "i386_num_mmx_regs".
4923
49242003-04-21 Andrew Cagney <[email protected]>
4925
4926 * infcall.c: New file.
4927 * infcall.h: New file.
4928 * valarith.c: Include "infcall.h".
4929 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
4930 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
4931 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
4932 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
4933 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
4934 (SFILES): Add "infcall.c"
4935 (COMMON_OBS): Add "infcall.o".
4936 (infcall.o): Specify dependencies.
4937 * value.h (call_function_by_hand): Delete declaration.
4938 * inferior.h (run_stack_dummy): Delete declaration.
4939 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
4940 (run_stack_dummy): Move to "infcall.c", merged into
4941 call_function_by_hand.
4942 * valops.c (call_function_by_hand): Moved to "infcall.c".
4943 (find_function_addr, value_arg_coerce): Ditto.
4944 (unwindonsignal_p, coerce_float_to_double): Ditto.
4945 (_initialize_valops): Move "set/show coerce-float-to-double", and
4946 "set/show unwindonsignal" commands to "infcall.c".
4947 * v850-tdep.c, target.h: Update comments.
4948 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
4949 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
4950 (sh64_init_extra_frame_info): Update comments.
4951 * mn10300-tdep.c: Update comments.
4952 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
4953 * config/sparc/tm-sparc.h: Update comments.
4954 * breakpoint.h: Update comments.
4955 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
4956 * arm-tdep.c: Update comment.
4957
49582003-04-19 Mark Kettenis <[email protected]>
4959
4960 * i386-tdep.c (i386_num_register_names): New variable.
4961 (i386_num_mmx_regs): Renamed from mmx_num_regs.
4962 (MM0_REGNUM): Remove redundant parentheses in define.
4963 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
4964 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
4965 i386_mxcsr_regnum_p): Remove redundant parentheses.
4966 (i386_register_name): Use i386_num_register_names.
4967
4968 * i386-tdep.c (i386_extract_return_value,
4969 i386_store_return_value): Correct check for availability of
4970 floating-point registers.
4971
4972 * i386-tdep.c (i386_frame_num_args): Remove function.
4973 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
4974
4975 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
4976 mmx_regnum_to_fp_regnum. Adjust all callers.
4977
4978 * i386-tdep.c (i386_get_longjmp_target): Use
4979 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
4980 and TARGET_CHAR_BIT. Use extract_typed_address instead of
4981 extract_address.
4982
49832003-04-19 Mark Kettenis <[email protected]>
4984
4985 * core-regset.c: Update comments to reflect reality. Re-order
4986 includes.
4987 (fetch_core_registers): Use switch instead of if. Remove
4988 redundant prototype.
4989
49902003-04-18 Jim Blandy <[email protected]>
4991
4992 * s390-tdep.c (s390_frame_align): New function.
4993 (s390_gdbarch_init): Register it with the gdbarch object.
4994
49952003-04-17 Richard Henderson <[email protected]>
4996
4997 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
4998
49992003-04-17 Michael Snyder <[email protected]>
5000 Karen Bennet <[email protected]>
5001
5002 Committed by Elena Zannoni <[email protected]>
5003 * gdb_gcore.sh: New script to create a core dump of a process.
5004
50052003-04-17 Elena Zannoni <[email protected]>
5006
5007 * values.c (value_being_returned): Don't fetch the return
5008 value if the return type is void.
5009
50102003-04-17 Jeff Johnston <[email protected]>
5011
5012 * thread-db.c: Reindented.
5013
50142003-04-17 Jeff Johnston <[email protected]>
5015
5016 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5017 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
5018 as types.
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
50442003-04-16 Kevin Buettner <[email protected]>
5045
5046 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
5047 the size of ``long double'' to 16, instead of 8.
5048
50492003-04-16 Mark Kettenis <[email protected]>
5050
5051 * i386-linux-nat.c: Add some whitespace to make things more
5052 readable.
5053 (fetch_register, store_register, fetch_inferior_registers,
5054 store_inferior_registers): Get rid of assignment in if-statement.
5055 (store_register): Fix typo in error message.
5056
50572003-04-16 Andrew Cagney <[email protected]>
5058
5059 * utils.c (xmmalloc): Always allocate something, matches
5060 libiberty/xmalloc's semantics.
5061 (xmrealloc, xmcalloc): Ditto.
5062
50632003-04-16 Andrew Cagney <[email protected]>
5064
5065 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5066 update comments.
5067 (get_frame_type): Initialize unwind and type when needed.
5068 (get_frame_id, frame_register_unwind): Ditto.
5069
50702003-04-16 Andrew Cagney <[email protected]>
5071
5072 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5073 obsolete.
5074 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5075 * sparcl-stub.c: Obsolete file.
5076 * config/sparc/tm-sparclet.h: Obsolete file.
5077 * sparclet-stub.c: Obsolete file.
5078 * sparclet-rom.c: Obsolete file.
5079 * sparcl-tdep.c: Obsolete file.
5080 * config/sparc/tm-sparclite.h: Obsolete file.
5081 * config/sparc/sparclite.mt: Obsolete file.
5082 * config/sparc/sparclet.mt: Obsolete file.
5083 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5084 sparc86x-*-* obsolete.
5085
50862003-04-15 David Carlton <[email protected]>
5087
5088 * Makefile.in (SFILES): Add cp-namespace.c.
5089 (COMMON_OBS): Add cp-namespace.o.
5090 (block.o): Depend on gdb_obstack_h and cp_support_h.
5091 (buildsym.o): Depend on cp_support_h.
5092 (cp-namespace.o): New.
5093 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
5094 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
5095 (dwarf2read.o): Depend on cp_support_h.
5096 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
5097 * dwarf2read.c (process_die): Set processing_has_namespace_info,
5098 processing_current_namespace.
5099 (read_namespace): Update processing_current_namespace; check for
5100 anonymous namespaces.
5101 (dwarf2_name): New function.
5102 (dwarf2_extension): Ditto.
5103 * cp-support.h: Update copyright, contributors.
5104 Add inclusion guards.
5105 Add opaque declaration for structs obstack, block, symbol.
5106 (struct using_direct): New struct.
5107 Add declarations for cp_find_first_component,
5108 cp_entire_prefix_len, processing_has_namespace_info,
5109 processing_current_namespace, cp_is_anonymous,
5110 cp_add_using_directive, cp_initialize_namespace,
5111 cp_finalize_namespace, cp_set_block_scope,
5112 cp_scan_for_anonymous_namespaces.
5113 * cp-namespace.c: New file.
5114 * cp-support.c: Update copyright.
5115 Include ctype.h, gdb_assert.h, gdbcmd.h.
5116 New variable maint_cplus_cmd_list.
5117 (cp_find_first_component): New function.
5118 (cp_entire_prefix_len, maint_cplus_command)
5119 (first_component_command, _initialize_cp_support): Ditto.
5120 * buildsym.c: Include cp-support.h.
5121 New variable using_list.
5122 (add_symbol_to_list): Check for anonymous namespaces.
5123 (finish_block): Set block's scope.
5124 (start_symtab): Initialize C++ namespace support.
5125 (end_symtab): Finalize C++ namespace support.
5126 * block.h: Add opaque declarations for structs
5127 block_namespace_info, using_direct, and obstack.
5128 Add declarations for block_set_scope and block_set_using.
5129 (struct block): Add 'language_specific' member.
5130 (BLOCK_NAMESPACE): New macro.
5131 * block.c: Include gdb_obstack.h and cp-support.h.
5132 (struct block_namespace_info): New struct.
5133 (block_set_scope): New function.
5134 (block_set_using, block_initialize_namespace): Ditto.
5135
51362003-04-14 Kevin Buettner <[email protected]>
5137
5138 * solib-svr4.c (svr4_have_link_map_offsets): New function.
5139 (locate_base): Return early if there aren't any link map offsets.
5140 (svr4_solib_create_inferior_hook): Warn if shared library support
5141 is unavailable.
5142
51432003-04-14 David Carlton <[email protected]>
5144
5145 * symtab.c (symbol_set_names): Add prefix when storing Java names
5146 in hash table. Fix for PR java/1039.
5147
51482003-04-14 David Carlton <[email protected]>
5149
5150 * symtab.c (symbol_set_names): Rename 'name' arg to
5151 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
5152 * symtab.h: Change 'name' argument in declaration of
5153 symbol_set_names to 'linkage_name'.
5154 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
5155
51562003-04-14 Andrew Cagney <[email protected]>
5157
5158 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
5159 return the fully sign-extended register value.
5160 (get_frame_pointer): Ditto.
5161 (mips_pop_frame): Initialize "proc_desc" after checking for a
5162 dummy frame.
5163
51642003-04-14 Andrew Cagney <[email protected]>
5165
5166 * mips-tdep.c (mips_push_dummy_frame): Delete function.
5167 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
5168 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
5169 (mips_push_register): Delete function.
5170 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
5171 PUSH_FP_REGNUM.
5172
51732003-04-14 Jim Blandy <[email protected]>
5174
5175 * symmisc.c: #include "gdb_regex.h".
5176 (maintenance_list_symtabs, maintenance_list_psymtabs): New
5177 functions.
5178 * maint.c (maintenance_list_command): New function.
5179 (_initialize_maint_cmds): Register the above as commands.
5180 * symtab.h (maintenance_list_symtabs,
5181 maintenance_list_psymtabs): New declarations.
5182 * cli/cli-cmds.c (maintenancelistlist): New variable.
5183 (init_cmd_lists): Initialize it.
5184 * cli/cli-cmds.h (maintenancelistlist): New declaration.
5185 * gdbcmd.h (maintenancelistlist): New declaration.
5186 * Makefile.in (symmisc.o): Update dependencies.
5187
51882003-04-14 Elena Zannoni <[email protected]>
5189
5190 * s390-nat.c: Include asm/types.h for addr_t.
5191
51922003-04-14 Corinna Vinschen <[email protected]>
5193
5194 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
5195 actually incoming type.
5196
51972003-04-13 Andrew Cagney <[email protected]>
5198
5199 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
5200 get_next_frame and get_frame_saved_regs.
5201
52022003-04-13 Andrew Cagney <[email protected]>
5203
5204 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
5205 of gdbarch_num_regs.
5206
52072003-04-13 Andrew Cagney <[email protected]>
5208
5209 * frame.h: Mention what replaced what in "struct frame_info".
5210 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
5211 deprecated_update_frame_base_hack and
5212 deprecated_update_frame_pc_hack.
5213 * hppa-tdep.c: Ditto.
5214
52152003-04-13 Daniel Jacobowitz <[email protected]>
5216
5217 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
5218 to read_reg and update its comment. Remove regnum member.
5219 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
5220 Don't call read_reg when setting in_reg. Call read_reg to get
5221 the frame base if it's in a register. Return the register number
5222 on the stack instead of in the context. Remove extra arguments
5223 to read_reg.
5224 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
5225 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
5226 the register number on the expression stack.
5227 (needs_frame_read_reg): Remove extra arguments.
5228
52292003-04-13 Daniel Jacobowitz <[email protected]>
5230
5231 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
5232 made non-static.
5233 (execute_stack_op): All callers updated.
5234 * dwarf2expr.h: Add prototype for dwarf2_read_address.
5235 * dwarf2loc.c (find_location_expression): New function.
5236 (dwarf_expr_frame_base): Call it.
5237 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
5238 (dwarf2_tracepoint_var_ref): New function, broken out from
5239 locexpr_tracepoint_var_ref.
5240 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
5241 Make static.
5242 (loclist_read_variable, loclist_read_needs_frame): New functions.
5243 (loclist_describe_location, loclist_tracepoint_var_ref): New
5244 functions.
5245 (dwarf2_loclist_funcs): New struct location_funcs.
5246 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
5247 (struct dwarf2_locexpr_baton): Add comments.
5248 (dwarf2_loclist_funcs): New extern.
5249 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
5250 base_address and base_known.
5251 (dwarf_loc_buffer): New variable.
5252 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
5253 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
5254 (dwarf2_has_info): Initialize dwarf_loc_offset.
5255 (dwarf2_build_psymtabs): Read in .debug_loc.
5256 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
5257 DWARF_LOC_SIZE.
5258 (psymtab_to_symtab_1): Likewise. Move base address calculation
5259 here, from...
5260 (dwarf2_get_pc_bounds): ... here. Use the base address from
5261 cu_header.
5262 (dwarf2_symbol_mark_computed): Handle location lists.
5263
52642003-04-13 Daniel Jacobowitz <[email protected]>
5265
5266 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
5267 if the linkage name demangled successfully.
5268
52692003-04-13 Mark Kettenis <[email protected]>
5270
5271 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
5272 disassmbly_flavour): Removed.
5273
5274 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
5275
52762003-04-13 Mark Kettenis <[email protected]>
5277
5278 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
5279
52802003-04-12 Andrew Cagney <[email protected]>
5281
5282 * frame.h (struct frame_info): Move definition from here ...
5283 * frame.c (struct frame_info): ... to here.
5284
52852003-04-12 Andrew Cagney <[email protected]>
5286
5287 * gdbthread.h (save_infrun_state): Delete parameter
5288 "prev_func_start".
5289 (struct thread_info): Delete field "prev_func_start".
5290 (load_infrun_state): Ditto.
5291 * thread.c (load_infrun_state, save_infrun_state): Update.
5292 * infrun.c (prev_func_start): Delete variable.
5293 (context_switch, init_wait_for_inferior): Update.
5294 (stop_stepping, keep_going): Update.
5295
52962003-04-12 Andrew Cagney <[email protected]>
5297
5298 * gdbarch.sh: Add missing opaque declarations.
5299 * gdbarch.h: Regnerate.
5300 * symtab.h: Add missing opaque declarations.
5301 * value.h, target.h, symfile.h, stabsread.h: Ditto.
5302 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
5303 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
5304 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
5305 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
5306 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
5307 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
5308 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
5309 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
5310 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
5311 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
5312 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
5313 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
5314
53152003-04-11 Andrew Cagney <[email protected]>
5316
5317 * frame.c (get_frame_id): Return this frame's "id".
5318 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
5319 function start.
5320 (legacy_saved_regs_this_id): Replace function body with
5321 internal-error.
5322 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
5323 FRAME_OBSTACK_ZALLOC.
5324 (create_new_frame): Mark the frame ID as valid.
5325
53262003-04-11 Alexandre Oliva <[email protected]>
5327
5328 * Makefile.in (libbfd_h): Added missing setting.
5329 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
5330 according to the selected ABI.
5331
53322003-04-11 Jeff Johnston <[email protected]>
5333
5334 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
5335
53362003-04-11 Andrew Cagney <[email protected]>
5337
5338 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
5339 SAVED_PC_AFTER_CALL.
5340 * gdbarch.h, gdbarch.c: Regenerate.
5341 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5342 * x86-64-tdep.c (x86_64_init_abi): Update.
5343 * vax-tdep.c (vax_gdbarch_init): Update.
5344 * v850-tdep.c (v850_gdbarch_init): Update.
5345 * sparc-tdep.c (sparc_gdbarch_init): Update.
5346 * sh-tdep.c (sh_gdbarch_init): Update.
5347 * s390-tdep.c (s390_gdbarch_init): Update.
5348 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5349 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5350 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5351 * mips-tdep.c (mips_gdbarch_init): Update.
5352 * mcore-tdep.c (mcore_gdbarch_init): Update.
5353 * m68k-tdep.c (m68k_gdbarch_init): Update.
5354 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5355 * ia64-tdep.c (ia64_gdbarch_init): Update.
5356 (ia64_saved_pc_after_call): Update declaration.
5357 * i386ly-tdep.c (i386lynx_init_abi): Update.
5358 * i386-tdep.c (i386_gdbarch_init): Update.
5359 * hppa-tdep.c (hppa_gdbarch_init): Update.
5360 * h8300-tdep.c (h8300_gdbarch_init): Update.
5361 * frv-tdep.c (frv_gdbarch_init): Update.
5362 * cris-tdep.c (cris_gdbarch_init): Update.
5363 * avr-tdep.c (avr_gdbarch_init): Update.
5364 * arm-tdep.c (arm_gdbarch_init): Update.
5365 * alpha-tdep.c (alpha_gdbarch_init): Update.
5366 * ns32knbsd-nat.c (frame_num_args): Update.
5367 * ns32k-tdep.c (umax_frame_num_args): Update.
5368 * mips-tdep.c (mips_init_frame_pc_first): Update.
5369 * infrun.c (step_over_function): Update.
5370 * i386-linux-tdep.c (skip_hurd_resolver): Update.
5371 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
5372 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5373 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5374 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5375 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5376 * arm-linux-tdep.c (skip_hurd_resolver): Update.
5377 * arch-utils.c (init_frame_pc_default): Update.
5378 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
5379 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
5380 declaration.
5381
53822003-04-11 Andrew Cagney <[email protected]>
5383
5384 * i387-tdep.c: Update copyright.
5385 (i387_to_double): Delete function.
5386 (double_to_i387): Delete function.
5387
53882003-04-10 Andrew Cagney <[email protected]>
5389
5390 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
5391 frame's function's address. Simplify.
5392 (d10v_frame_unwind_cache): Check that the frame's function is
5393 non-zero.
5394
53952003-04-10 Jim Blandy <[email protected]>
5396
5397 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
5398 call to set_gdbarch_deprecated_push_arguments.
5399
54002003-04-10 Andrew Cagney <[email protected]>
5401
5402 * frame.c (fprint_frame_id): New function.
5403 (fprint_frame_type, fprint_frame): New function.
5404 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
5405 (create_sentinel_frame, get_frame_id): Ditto.
5406 (frame_id_p, frame_id_eq): Ditto.
5407 (frame_id_inner, create_new_frame): Ditto.
5408 (legacy_get_prev_frame, get_prev_frame): Ditto.
5409 (deprecated_update_frame_pc_hack): Ditto.
5410 (frame_register_unwind): Ditto.
5411 (deprecated_update_frame_base_hack): Ditto.
5412
54132003-04-10 Corinna Vinschen <[email protected]>
5414
5415 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
5416 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
5417 frame_chain function.
5418 * Makefile.in: Add dependencies due to above change.
5419
54202003-04-10 Corinna Vinschen <[email protected]>
5421
5422 * blockframe.c (legacy_frame_chain_valid): Move call to
5423 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
5424 inside_entry_file.
5425
54262003-04-09 Andrew Cagney <[email protected]>
5427
5428 * frame.h (struct frame_id): Replace "pc" and "base" with
5429 "stack_addr" and "code_addr". Update comments.
5430 (frame_id_build): Update parameter names and comment.
5431 (struct frame_info): Replace "id_p" and "id" with "this_id".
5432 * dummy-frame.c (dummy_frame_this_id): Update.
5433 * breakpoint.c (print_one_breakpoint): Update.
5434 * frame.c (get_frame_id): Update.
5435 (get_frame_base, frame_id_build): Update.
5436 (create_sentinel_frame, legacy_get_prev_frame): Update.
5437 (deprecated_update_frame_base_hack): Update.
5438 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
5439 (frame_id_inner): Ditto.
5440
54412003-04-09 Andrew Cagney <[email protected]>
5442
5443 * defs.h (gdb_print_host_address): Make "addr" parameter a
5444 pointer constant.
5445 * utils.c (gdb_print_host_address): Update.
5446
54472003-04-09 Kevin Buettner <[email protected]>
5448
5449 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
5450 register number for R0 is 0.
5451
54522003-04-09 J. Brobecker <[email protected]>
5453
5454 * frame.h (struct gdbarch): Add opaque structure definition
5455 to avoid a compilation warning on LynxOS 4.0.
5456
54572003-04-09 Andrew Cagney <[email protected]>
5458
5459 * frame.h (struct frame_info): Delete field "pc". Replace
5460 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
5461 structure.
5462 * frame.c (frame_pc_unwind): Update.
5463 (create_sentinel_frame): Do not set "pc".
5464 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
5465 (get_frame_pc): Call frame_pc_unwind.
5466 (deprecated_update_frame_pc_hack): Update.
5467 (create_new_frame): Use "pc" not "->pc".
5468
54692003-04-09 Andrew Cagney <[email protected]>
5470
5471 * frame.c (get_frame_id): Eliminate code updating "frame".
5472 (legacy_get_prev_frame): Ditto.
5473 (get_frame_base): Return id.base directly.
5474 (deprecated_update_frame_base_hack): Update "id.base".
5475 * frame.h (struct frame_info): Delete field "frame".
5476
54772003-04-09 Andrew Cagney <[email protected]>
5478
5479 * NEWS: Mention that the "Sequent family" is obsolete.
5480 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
5481 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5482 * configure.host: Obsolete i[3456]86-sequent-bsd*,
5483 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5484 * config/i386/tm-ptx4.h: Obsolete file.
5485 * config/i386/tm-ptx.h: Obsolete file.
5486 * symm-tdep.c: Obsolete file.
5487 * config/i386/symmetry.mt: Obsolete file.
5488 * config/i386/tm-symmetry.h: Obsolete file.
5489 * symm-nat.c: Obsolete file.
5490 * config/i386/nm-symmetry.h: Obsolete file.
5491 * config/i386/xm-symmetry.h: Obsolete file.
5492 * config/i386/symmetry.mh: Obsolete file.
5493 * config/i386/nm-ptx4.h: Obsolete file.
5494 * config/i386/ptx4.mh: Obsolete file.
5495 * config/i386/ptx.mt: Obsolete file.
5496 * config/i386/ptx.mh: Obsolete file.
5497 * config/i386/xm-ptx4.h: Obsolete file.
5498 * config/i386/xm-ptx.h: Obsolete file.
5499
55002003-04-09 Andrew Cagney <[email protected]>
5501
5502 Obsolete mips*-*-mach3*.
5503 * NEWS: Mention that mips*-*-mach3* is obsolete.
5504 * m3-nat.c: Obsolete file.
5505 * config/nm-m3.h: Obsolete file.
5506 * config/mips/tm-mipsm3.h: Obsolete file.
5507 * config/mips/mipsm3.mt: Obsolete file.
5508 * config/mips/mipsm3.mh: Obsolete file.
5509 * config/mips/xm-mipsm3.h: Obsolete file.
5510 * mipsm3-nat.c: Obsolete file.
5511 * configure.host: Obsolete mips-dec-mach3*.
5512 * configure.tgt: Obsolete mips*-*-mach3*.
5513
55142003-04-09 Andrew Cagney <[email protected]>
5515
5516 * doublest.h: Update copyright.
5517 (deprecated_store_floating, deprecated_extract_floating): Rename
5518 store_floating and extract_floating. Update comments.
5519 * doublest.c: Update copyright.
5520 (extract_floating_by_length): Replace extract_floating.
5521 (store_floating_by_length): Replace store_floating.
5522 (deprecated_extract_floating): New function.
5523 (deprecated_store_floating): New function.
5524 (extract_typed_floating): Call extract_floating_by_length.
5525 (store_typed_floating): Call store_floating_by_length.
5526 * x86-64-tdep.c (x86_64_store_return_value): Update.
5527 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
5528 (sh64_extract_return_value): Update.
5529 (sh_sh4_register_convert_to_virtual): Update.
5530 (sh_sh64_register_convert_to_virtual): Update.
5531 (sh_sh4_register_convert_to_raw): Update.
5532 (sh_sh64_register_convert_to_raw): Update.
5533 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
5534 (rs6000_register_convert_to_raw): Update.
5535 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
5536 (ia64_register_convert_to_raw): Update.
5537 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
5538 (REGISTER_CONVERT_TO_VIRTUAL): Update.
5539 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
5540 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
5541 (alpha_register_convert_to_raw): Update.
5542
55432003-04-08 Andrew Cagney <[email protected]>
5544
5545 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
5546 * gdbarch.h, gdbarch.c: Re-generate.
5547 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
5548 (d10v_gdbarch_init): Do not set saved_pc_after_call.
5549 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
5550 conditionally, use frame_pc_unwind as an alternative. Add
5551 comments.
5552 * arch-utils.c (init_frame_pc_default): Only call
5553 SAVED_PC_AFTER_CALL when available.
5554
55552003-04-08 Elena Zannoni <[email protected]>
5556
5557 * infrun.c (stop_soon): Rename from stop_soon_quietly.
5558 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
5559 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
5560 (start_remote): Ditto.
5561 (handle_inferior_event): Ditto.
5562 (save_inferior_status): Ditto.
5563 (restore_inferior_status): Ditto.
5564 * infcmd.c (attach_command): Ditto.
5565 * fork-child.c (startup_inferior): Ditto.
5566 * inferior.h (stop_soon): Rename from stop_soon_quietly.
5567 * alpha-tdep.c (heuristic_proc_start): Ditto.
5568 * mips-tdep.c (heuristic_proc_start): Ditto.
5569 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
5570 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
5571 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
5572 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
5573 * remote-vx.c (vx_create_inferior): Ditto.
5574
55752003-04-08 Elena Zannoni <[email protected]>
5576
5577 * infrun.c (stop_soon_quietly): Make it an enum, to better
5578 override the default behavior of handle_inferior_event.
5579 (clear_proceed_status): Update uses of stop_soon_quietly to
5580 reflect that it is now an enum.
5581 (start_remote): Ditto.
5582 (handle_inferior_event): Change logic a bit if stop_soon_quietly
5583 is set to handle the new GNU/Linux kernel behavior for
5584 attach/sigstop. Update uses of stop_soon_quietly.
5585 * inferior.h (enum stop_kind): New enum.
5586 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
5587 Reset normal handle_inferior_event behavior, afterwards.
5588 * fork-child.c (startup_inferior): Update.
5589 * alpha-tdep.c (heuristic_proc_start): Update.
5590 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
5591 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
5592 * solib-osf.c (osf_solib_create_inferior_hook): Update.
5593 * solib-irix.c (irix_solib_create_inferior_hook): Update.
5594 * remote-vx.c (vx_create_inferior): Update.
5595 * mips-tdep.c (heuristic_proc_start): Update.
5596
55972003-04-07 Elena Zannoni <[email protected]>
5598
5599 * disasm.c (dump_insns): Move variables inside loop, or they will
5600 be freed more than once, causing wild memory corruptions.
5601 (gdb_disassembly): Look for the substring "-thread",
5602 instead of "-threads" in the target name, to make sure to find
5603 the 'multi-thread' target. Also, make sure we do the right thing
5604 with the "core" target.
5605
56062003-04-07 Kevin Buettner <[email protected]>
5607
5608 * mips-tdep.c (mips_print_fp_register): New function, created from
5609 do_fp_register_row(). Registers are now (also) printed as hex.
5610 Only one register is printed per row.
5611 (mips_print_register, do_fp_register_row): Print floating point
5612 registers with mips_print_fp_register().
5613
56142003-04-06 Andrew Cagney <[email protected]>
5615
5616 * valprint.h (inspect_it): Add extern declaration.
5617 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
5618 (selectors_info, classes_info): Ditto.
5619 (find_objc_msgcall): Fix indentation.
5620 (objc_printstr): Delete extern declarations.
5621
5622 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
5623
56242003-04-06 Andrew Cagney <[email protected]>
5625
5626 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
5627 Update comment.
5628 * frame.c (legacy_saved_regs_this_id): Update.
5629 (legacy_get_prev_frame): Update.
5630 * xstormy16-tdep.c: Update comment.
5631 * sparc-tdep.c (sparc_frame_chain): Update comment.
5632 * blockframe.c (legacy_frame_chain_valid): Update.
5633
56342003-04-06 Andrew Cagney <[email protected]>
5635
5636 * valprint.c (val_print_type_code_int): Delete #ifdef
5637 PRINT_TYPELESS_INTEGER code.
5638
5639 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
5640 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
5641 multi-arch definition.
5642 * gdbarch.h: Re-generate.
5643
56442003-04-05 Andrew Cagney <[email protected]>
5645
5646 Eliminate FRAME_FIND_SAVED_REGS.
5647 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
5648 Change FSR parameter to a pointer.
5649 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
5650 Assume FSR parameter is a pointer.
5651 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
5652 Make fsr a pointer.
5653 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
5654 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
5655 saved_regs a pointer.
5656 (hppa_frame_saved_pc): Ditto.
5657 (find_dummy_frame_regs): Make frame_saved_regs a pointer
5658 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
5659 pointer.
5660 (restore_pc_queue): Make fsr a pointer.
5661 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
5662 (hppa_frame_chain): Make saved_regs a pointer, call
5663 hppa_frame_init_saved_regs.
5664 * sparc-tdep.c: Include "gdb_assert.h".
5665 (sparc_frame_find_saved_regs): Replace internal_error with
5666 gdb_assert.
5667 * remote-vxsparc.c (vx_read_register): Delete reference to
5668 FRAME_FIND_SAVED_REGS.
5669 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
5670 * gdbarch.h: Regenerate.
5671 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
5672 (deprecated_get_frame_saved_regs): Delete declaration.
5673 (struct frame_saved_regs): Delete definition.
5674 * frame.c (deprecated_get_frame_saved_regs): Delete function.
5675 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
5676 (hppa_frame_find_saved_regs): Delete declaration.
5677 (FRAME_FIND_SAVED_REGS): Delete macro.
5678 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
5679 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
5680 FRAME_FIND_SAVED_REGS in comment.
5681
56822003-04-05 Andrew Cagney <[email protected]>
5683
5684 * frame.c (frame_func_unwind, get_frame_func): New functions.
5685 * frame.h (get_frame_func, frame_func_unwind): Declare.
5686 (struct frame_info): Add field "prev_func" for caching the
5687 previous frame's function address.
5688 * arm-tdep.c (arm_frameless_function_invocation): Combine
5689 get_pc_function_start and get_frame_pc into get_frame_func.
5690 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
5691 (sh64_nofp_frame_init_saved_regs): Ditto.
5692 * s390-tdep.c (s390_function_start): Ditto.
5693 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
5694 (rs6000_frameless_function_invocation): Ditto.
5695 (rs6000_frame_saved_pc): Ditto.
5696 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
5697 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
5698 * i386-tdep.c (i386_frameless_signal_p): Ditto.
5699 (i386_frame_init_saved_regs): Ditto.
5700 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
5701 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
5702 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
5703 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5704 * blockframe.c (frameless_look_for_prologue): Ditto.
5705
57062003-04-05 Andrew Cagney <[email protected]>
5707
5708 * frame.c (legacy_get_prev_frame): Link prev to next at the
5709 function start. Update comments.
5710
57112003-04-05 Andrew Cagney <[email protected]>
5712
5713 * frame.c (get_frame_id): Update comment.
5714 (legacy_get_prev_frame): Update comment.
5715 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
5716 * gdbarch.h: Regenerate.
5717 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
5718 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
5719
57202003-04-05 Andrew Cagney <[email protected]>
5721
5722 * stack.c (print_frame_info): Use get_frame_pc.
5723
57242003-04-04 Andrew Cagney <[email protected]>
5725
5726 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
5727 the frame's type from the unwinder.
5728 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
5729 (create_new_frame, legacy_get_prev_frame): When the unwinder's
5730 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
5731 (get_frame_base_address): Use get_frame_type.
5732 (get_frame_locals_address, get_frame_args_address): Ditto.
5733 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
5734 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
5735 (struct frame_info): Add comment explaining why the frame contains
5736 a "type" field.
5737 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
5738 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
5739 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
5740 NORMAL_FRAME.
5741 * frame-unwind.h: Include "frame.h".
5742 (struct frame_unwind): Add "type" field.
5743 * Makefile.in (frame_unwind_h): Add $(frame_h).
5744
57452003-04-04 Andrew Cagney <[email protected]>
5746
5747 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
5748 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
5749 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
5750 get_frame_base.
5751 (d10v_unwind_dummy_id): Use frame_id_build.
5752 * frame.c (find_frame_sal): Use get_frame_pc.
5753 (create_new_frame): Use deprecated_update_frame_pc_hack and
5754 deprecated_update_frame_base_hack.
5755 (create_sentinel_frame): Add comment about ->pc going away.
5756 (get_prev_frame): Add comment about ->pc going away.
5757 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
5758 frame_id_build, deprecated_update_frame_pc_hack and
5759 deprecated_update_frame_base_hack.
5760 (select_frame): Use get_frame_pc.
5761 (legacy_saved_regs_this_id): Use frame_id_build.
5762
57632003-04-04 Elena Zannoni <[email protected]>
5764
5765 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
5766 signed integer case.
5767 (classify_argument): Handle enumerations and references.
5768
57692003-04-04 Andrew Cagney <[email protected]>
5770
5771 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
5772 ID to NULL.
5773
57742003-04-01 Adam Fedor <[email protected]>
5775
5776 * gdb/objc-lang.c (selectors_info): Replace calls to
5777 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
5778 SYMBOL_NATURAL_NAME.
5779 (classes_info, find_methods): Likewise.
5780
57812003-04-03 Kevin Buettner <[email protected]>
5782
5783 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
5784 ``mach'' to the value determined by bfd_default_set_arch_mach().
5785
57862003-04-02 Bob Rossi <[email protected]>
5787
5788 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
5789 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
5790 (mi-cmd-file.o): Update dependencies.
5791
57922003-04-01 Kevin Buettner <[email protected]>
5793
5794 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
5795 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
5796
57972003-04-01 Adam Fedor <[email protected]>
5798
5799 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
5800 * language.h (struct language_defn): Add la_demangle.
5801 (language_demangle): Declare.
5802 * language.c (language_demangle): New function.
5803 (unk_lang_demangle): Likewise.
5804 (unknown_language_defn, auto_language_defn, local_language_defn):
5805 Add ukn_lang_demangle.
5806 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
5807 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
5808 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
5809 (cplus_language_defn): Add cplus_demangle for la_demangle element.
5810 * jv-lang.c (java_demangle): New function
5811 (java_language_defn): Use it for la_demangle element.
5812 * objc-lang.c (objc_demangle): Add options argument
5813 (objc_language_defn): Use objc_demangle for la_demangle element.
5814 * maint.c (maintenance_demangle): Replace switch with
5815 call to language_demangle.
5816 * utils.c (fprintf_symbol_filtered): Likewise.
5817
58182003-04-01 Andrew Cagney <[email protected]>
5819
5820 * printcmd.c (print_frame_nameless_args): Delete #ifdef
5821 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
5822 PRINT_TYPELESS_INTEGER.
5823 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
5824 PUSH_RETURN_ADDRESS.
5825
58262003-04-01 Andrew Cagney <[email protected]>
5827
5828 * Makefile.in (d10v-tdep.o): Update dependencies.
5829 * d10v-tdep.c: Include "frame-base.h".
5830 (d10v_frame_unwind): Make constant.
5831 (d10v_frame_base_address): New function.
5832 (d10v_frame_base): New variable.
5833 (d10v_gdbarch_init): Set frame_base default.
5834 (struct d10v_unwind_cache): Add the field "prev_sp". Update
5835 comment for base.
5836 (d10v_frame_unwind_cache): Set and use "prev_sp".
5837 (d10v_frame_this_id): Use the previous frame's inner most stack
5838 address and this frame's func address for the frame ID. Use
5839 frame_id_build. Don't analyze beyond the current instruction.
5840
58412003-04-01 Andrew Cagney <[email protected]>
5842
5843 * frame.h (get_frame_locals_address, get_frame_args_address):
5844 Refer to the base address, instead of the address of the first
5845 local or parameter.
5846
58472003-04-01 Andrew Cagney <[email protected]>
5848
5849 Add frame debug info addresses:
5850 * frame-base.c: New file.
5851 * frame-base.h: New file.
5852 * frame.h (struct frame_base): Add opaque declaration.
5853 (get_frame_base): Update comment.
5854 (get_frame_base_address): Declare.
5855 (get_frame_locals_address): Declare.
5856 (get_frame_args_address): Declare.
5857 (struct frame_info): Add "base" and "base_cache". Update
5858 comments on the unwinder.
5859 * frame.c: Include "frame-base.h".
5860 (get_frame_locals_address): New function.
5861 (get_frame_base_address): New function.
5862 (get_frame_args_address): New function.
5863 * findvar.c (read_var_value): Use get_frame_locals_address and
5864 get_frame_args_address.
5865 * stack.c (frame_info): Use get_frame_locals_address and
5866 get_frame_args_address.
5867 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
5868 moved to "frame-base.c".
5869 * printcmd.c (print_frame_nameless_args): Ditto.
5870 * symtab.h (address_class): Update comments.
5871 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
5872 get_frame_base_address.
5873 * dwarf2expr.c (execute_stack_op): Ditto.
5874 * Makefile.in (frame_base_h): Define.
5875 (frame.o): Update dependencies.
5876 (frame-base.o): Add dependencies.
5877 (SFILES): Add frame-base.c.
5878 (COMMON_OBS): Add frame-base.o.
5879
58802003-04-01 Andrew Cagney <[email protected]>
5881
5882 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
5883 CALL_DUMMY_LENGTH): Ditto.
5884 * gdbarch.c: Re-generate.
5885 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
5886 (CALL_DUMMY_LENGTH): Delete macro.
5887 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
5888 * arm-tdep.c (arm_gdbarch_init): Ditto.
5889 * avr-tdep.c (avr_gdbarch_init): Ditto.
5890 * cris-tdep.c (cris_gdbarch_init): Ditto.
5891 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5892 * frv-tdep.c (frv_gdbarch_init): Ditto.
5893 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5894 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5895 * i386-tdep.c (i386_gdbarch_init): Ditto.
5896 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5897 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5898 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5899 * mips-tdep.c (mips_gdbarch_init): Ditto.
5900 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5901 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5902 * s390-tdep.c (s390_gdbarch_init): Ditto.
5903 * sh-tdep.c (sh_gdbarch_init): Ditto.
5904 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5905 * v850-tdep.c (v850_gdbarch_init): Ditto.
5906 * vax-tdep.c (vax_gdbarch_init): Ditto.
5907 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5908
59092003-04-01 Corinna Vinschen <[email protected]>
5910
5911 * frame.c (get_prev_frame): Disable call to inside_entry_file().
5912
59132003-04-01 Andrew Cagney <[email protected]>
5914
5915 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
5916 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5917 * gdbarch.h, gdbarch.c: Re-generate.
5918 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5919 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5920 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5921 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5922 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
5923 * infcmd.c (run_stack_dummy): Simplify assuming
5924 CALL_DUMMY_BREAKPOINT_OFFSET_P.
5925 * infrun.c (handle_inferior_event): Ditto.
5926 * alpha-tdep.c (alpha_gdbarch_init): Do not set
5927 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
5928 * arm-tdep.c (arm_gdbarch_init): Ditto.
5929 * avr-tdep.c (avr_gdbarch_init): Ditto.
5930 * cris-tdep.c (cris_gdbarch_init): Ditto.
5931 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5932 * frv-tdep.c (frv_gdbarch_init): Ditto.
5933 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5934 * i386-tdep.c (i386_gdbarch_init): Ditto.
5935 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5936 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5937 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5938 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5939 * mips-tdep.c (mips_gdbarch_init): Ditto.
5940 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5941 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5942 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5943 * s390-tdep.c (s390_gdbarch_init): Ditto.
5944 * sh-tdep.c (sh_gdbarch_init): Ditto.
5945 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5946 * v850-tdep.c (v850_gdbarch_init): Ditto.
5947 * vax-tdep.c (vax_gdbarch_init): Ditto.
5948 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5949
59502003-04-01 Daniel Jacobowitz <[email protected]>
5951
5952 * symfile.c (symfile_relocate_debug_section): Update call to
5953 bfd_simple_get_relocated_section_contents.
5954
59552003-03-31 Andrew Cagney <[email protected]>
5956
5957 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
5958 * gdbarch.h, gdbarch.c: Regenerate.
5959 * inferior.h (FIX_CALL_DUMMY): Delete macro.
5960 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
5961 available.
5962 * frame.h (generic_fix_call_dummy): Delete declaration.
5963 * dummy-frame.h: Update comment.
5964 * dummy-frame.c (generic_fix_call_dummy): Delete function.
5965 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5966 fix_call_dummy.
5967 * sh-tdep.c (sh_gdbarch_init): Ditto.
5968 * s390-tdep.c (s390_gdbarch_init): Ditto.
5969 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5970 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5971 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5972 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5973 * i386-tdep.c (i386_gdbarch_init): Ditto.
5974 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5975 * frv-tdep.c (frv_gdbarch_init): Ditto.
5976 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5977 * cris-tdep.c (cris_gdbarch_init): Ditto.
5978 * avr-tdep.c (avr_gdbarch_init): Ditto.
5979 * arm-tdep.c (arm_gdbarch_init): Ditto.
5980
59812003-03-31 J. Brobecker <[email protected]>
5982
5983 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
5984 (INIT_FRAME_AP): Likewise.
5985 (EXTRA_FRAME_INFO): Likewise.
5986
59872003-03-31 Andrew Cagney <[email protected]>
5988
5989 * gdbarch.sh: Include "symfile.h".
5990 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
5991 * gdbarch.h, gdbarch.c: Re-generate.
5992 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
5993 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5994 call_dummy_address, the default is at entry_point_address.
5995 * v850-tdep.c (v850_gdbarch_init): Ditto.
5996 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5997 * sh-tdep.c (sh_gdbarch_init): Ditto.
5998 * s390-tdep.c (s390_gdbarch_init): Ditto.
5999 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6000 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6001 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6002 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6003 * i386-tdep.c (i386_gdbarch_init): Ditto.
6004 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6005 * frv-tdep.c (frv_gdbarch_init): Ditto.
6006 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6007 * cris-tdep.c (cris_gdbarch_init): Ditto.
6008 * arm-tdep.c (arm_gdbarch_init): Ditto.
6009
60102003-03-31 Andrew Cagney <[email protected]>
6011
6012 * gdbarch.sh (CALL_DUMMY_P): Delete.
6013 * gdbarch.h, gdbarch.c: Re-generate.
6014 * inferior.h (CALL_DUMMY_P): Delete macro.
6015 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6016 * vax-tdep.c (vax_gdbarch_init): Update.
6017 * v850-tdep.c (v850_gdbarch_init): Update.
6018 * sparc-tdep.c (sparc_gdbarch_init): Update.
6019 * sh-tdep.c (sh_gdbarch_init): Update.
6020 * s390-tdep.c (s390_gdbarch_init): Update.
6021 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6022 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6023 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6024 * mips-tdep.c (mips_gdbarch_init): Update.
6025 * mcore-tdep.c (mcore_gdbarch_init): Update.
6026 * m68k-tdep.c (m68k_gdbarch_init): Update.
6027 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6028 * ia64-tdep.c (ia64_gdbarch_init): Update.
6029 * i386-tdep.c (i386_gdbarch_init): Update.
6030 * h8300-tdep.c (h8300_gdbarch_init): Update.
6031 * frv-tdep.c (frv_gdbarch_init): Update.
6032 * d10v-tdep.c (d10v_gdbarch_init): Update.
6033 * cris-tdep.c (cris_gdbarch_init): Update.
6034 * breakpoint.c (deprecated_frame_in_dummy): Update.
6035 * avr-tdep.c (avr_gdbarch_init): Update.
6036 * alpha-tdep.c (alpha_gdbarch_init): Update.
6037 * arm-tdep.c (arm_gdbarch_init): Update.
6038 * dummy-frame.c (dummy_frame_this_id): Update comments.
6039 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6040 * frame.c (legacy_get_prev_frame): Ditto.
6041 * valops.c (call_function_by_hand): Delete function.
6042 (hand_function_call): Rename to call_function_by_hand
6043
60442003-03-30 Andrew Cagney <[email protected]>
6045
6046 2002-11-10 Klee Dienes <[email protected]>
6047 * value.h (struct value): Update comment.
6048
60492003-03-30 Andrew Cagney <[email protected]>
6050
6051 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6052 D10V_FP_REGNUM.
6053 (d10v_gdbarch_init): Do not set fp_regnum.
6054
6055 * frame.c (get_frame_base): Force ID initialization.
6056 (get_prev_frame): Move computation of the frame ID from here ...
6057 (get_frame_id): ... to here.
6058 (legacy_get_prev_frame): Mark the frame ID as valid.
6059 * frame.h (struct frame_info): Add field "id_p".
6060
60612003-03-30 Mark Kettenis <[email protected]>
6062
6063 * i386-tdep.c (i386_store_struct_return): Removed.
6064 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6065
60662003-03-30 Andrew Cagney <[email protected]>
6067
6068 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6069 * gdbarch.h, gdbarch.c: Regenerate.
6070 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6071 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6072 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6073 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6074 * i386-tdep.c (i386_gdbarch_init): Ditto.
6075 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6076 * cris-tdep.c (cris_gdbarch_init): Ditto.
6077 * vax-tdep.c (vax_gdbarch_init): Ditto.
6078 * s390-tdep.c (s390_gdbarch_init): Ditto.
6079 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6080 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6081 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6082 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6083 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6084 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6085 * sparc-tdep.c (sparc_gdbarch_init): Update.
6086 * sh-tdep.c (sh_gdbarch_init): Update.
6087 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6088 * mips-tdep.c (mips_gdbarch_init): Update.
6089 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6090 * ia64-tdep.c (ia64_gdbarch_init): Update.
6091 * frv-tdep.c (frv_gdbarch_init): Update.
6092 * avr-tdep.c (avr_gdbarch_init): Update.
6093 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
6094 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
6095 instead of when push_dummy_call is not available.
6096
60972003-03-30 Andrew Cagney <[email protected]>
6098
6099 * infttrace.c: Include "gdbthread.h".
6100 (parent_attach_all): Fix function signature.
6101 (call_ptrace): Update call.
6102 * Makefile.in (infttrace.o): Update dependencies.
6103
61042003-03-30 Andrew Cagney <[email protected]>
6105
6106 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
6107 PUSH_RETURN_ADDRESS.
6108 * gdbarch.h, gdbarch.c: Regenerate.
6109 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6110 * x86-64-tdep.c (x86_64_init_abi): Update.
6111 * v850-tdep.c (v850_gdbarch_init): Update.
6112 * sparc-tdep.c (sparc_gdbarch_init): Update.
6113 * sh-tdep.c (sh_gdbarch_init): Update.
6114 * s390-tdep.c (s390_gdbarch_init): Update.
6115 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6116 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6117 * mips-tdep.c (mips_gdbarch_init): Update.
6118 * mcore-tdep.c (mcore_gdbarch_init): Update.
6119 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6120 * ia64-tdep.c (ia64_gdbarch_init): Update.
6121 * i386-tdep.c (i386_gdbarch_init): Update.
6122 * h8300-tdep.c (h8300_gdbarch_init): Update.
6123 * frv-tdep.c (frv_gdbarch_init): Update.
6124 * cris-tdep.c (cris_gdbarch_init): Update.
6125 * avr-tdep.c (avr_gdbarch_init): Update.
6126 * arm-tdep.c (arm_gdbarch_init): Update.
6127 * valops.c (hand_function_call): Update.
6128
61292003-03-29 Andrew Cagney <[email protected]>
6130
6131 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
6132 sizeof_call_dummy_words.
6133 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
6134 define.
6135 * gdbarch.h: Regenerate.
6136
61372003-03-29 Andrew Cagney <[email protected]>
6138
6139 * infttrace.h: New file.
6140 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
6141 (hpread_get_textlow): Detect an uninitialized dn_bufp.
6142 (hpread_read_doc_function_type): Detect an initialized type1.
6143 (hpread_quick_traverse): Initialize mod_name_string.
6144 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
6145 (som_solib_get_solib_by_pc): Declare.
6146 (so_lib_thread_start_addr): Declare.
6147 (no_shared_libraries): Declare.
6148 * somread.c (init_import_symbols): Make static. Add forward
6149 declaration.
6150 * config/pa/nm-hppah.h: Include "infttrace.h" for
6151 parent_attach_all.
6152 (hppa_insert_hw_watchpoint): Declare.
6153 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
6154 * hppah-nat.c: Include "gdb_string.h".
6155 (parent_attach_all): Delete extern declaration, moved to
6156 "infttrace.h".
6157 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
6158 int.
6159 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
6160 * Makefile.in (infttrace_h): Define.
6161 (hpread.o): Update dependencies.
6162 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
6163 * hppa-hpux-tdep.c: Include "gdb_string.h".
6164 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
6165 * infrun.c (handle_inferior_event): Always initialize
6166 stepped_after_stopped_by_watchpoint. Add default and remove
6167 fallthrough in switch statement.
6168 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
6169 parameter to int.
6170 (hppa_remove_hw_watchpoint): Ditto.
6171
61722003-03-29 Andrew Cagney <[email protected]>
6173
6174 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
6175 offset.
6176
61772003-03-29 Richard Earnshaw <[email protected]>
6178
6179 * arm-tdep.c (arm_push_arguments): Delete.
6180 (struct stack_item): New type.
6181 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
6182 (arm_store_struct_return): Delte.
6183 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
6184 arm_push_arguments or arm_store_struct_return.
6185
61862003-03-28 Andrew Cagney <[email protected]>
6187
6188 * Makefile.in (d10v-tdep.o): Update dependencies.
6189 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
6190 * d10v-tdep.c: Include "remote.h".
6191 (target_resume_hook): Delete extern declaration.
6192 (target_wait_loop_hook): Ditto.
6193 (tdisassemble_command): Eliminate assignment in "if" conditional.
6194 (d10v_ts2_register_sim_regno): Eliminate call to
6195 legacy_register_sim_regno.
6196 (d10v_ts3_register_sim_regno): Ditto.
6197
61982003-03-28 Jeff Johnston <[email protected]>
6199
6200 * thread.c: Reindented.
6201 * lin-lwp.c: Ditto.
6202 * linux-proc.c: Ditto.
6203
62042003-03-28 Bob Rossi <[email protected]>
6205
6206 * MAINTAINERS (write after approval): Add myself.
6207
62082003-03-27 Theodore A. Roth <[email protected]>
6209
6210 * objc-exp.y: Add missing semi-colons.
6211
62122003-03-27 Andrew Cagney <[email protected]>
6213
6214 * regcache.c (write_sp): Delete function and references.
6215 * inferior.h (write_sp): Delete declaration.
6216 * valops.c (hand_function_call): Replace write_sp with
6217 TARGET_WRITE_SP.
6218 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
6219 (sparc_pop_frame): Ditto.
6220
62212003-03-27 Andrew Cagney <[email protected]>
6222
6223 * NEWS: Mention removal of support for hppa*-*-bsd* and
6224 hppa*-*-osf* natives, and hppa*-*-pro* target.
6225 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
6226 * config/pa/xm-pa.h: Obsolete file.
6227 * config/pa/xm-hppab.h: Obsolete file.
6228 * config/pa/nm-hppab.h: Obsolete file.
6229 * config/pa/tm-hppab.h: Obsolete file.
6230 * config/pa/tm-hppao.h: Obsolete file.
6231 * config/pa/nm-hppao.h: Obsolete file.
6232 * config/pa/tm-pro.h: Obsolete file.
6233 * config/pa/hppaosf.mt: Obsolete file.
6234 * config/pa/hppaosf.mh: Obsolete file.
6235 * config/pa/hppapro.mt: Obsolete file.
6236 * config/pa/hppabsd.mt: Obsolete file.
6237 * config/pa/hppabsd.mh: Obsolete file.
6238 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
6239 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
6240 hppa*-*-osf*.
6241
62422003-03-27 Andrew Cagney <[email protected]>
6243
6244 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
6245 push_arguments. Don't set push_return_address or write_sp.
6246 (d10v_push_dummy_call): Replace d10v_push_arguments.
6247 (d10v_push_return_address, d10v_write_sp): Delete function,
6248 handled by push_dummy_call.
6249
62502003-03-26 Andrew Cagney <[email protected]>
6251
6252 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
6253 (push_dummy_call): New pure multi-arch replacement with gdbarch,
6254 regcache and dummy_addr parameters.
6255 * gdbarch.h, gdbarch.c: Re-generate.
6256 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
6257 available; assume it will handle stack alignment and return
6258 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
6259 legacy_push_arguments.
6260 (legacy_push_arguments): Rename default_push_arguments.
6261 * value.h (legacy_push_arguments): Rename default_push_arguments.
6262 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
6263 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6264 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6265 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6266 * config/i386/tm-symmetry.h: Update.
6267 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6268 * x86-64-tdep.c (x86_64_init_abi): Update.
6269 * v850-tdep.c (v850_gdbarch_init): Update.
6270 * sparc-tdep.c (sparc_gdbarch_init): Update.
6271 * sh-tdep.c (sh_gdbarch_init): Update.
6272 * s390-tdep.c (s390_gdbarch_init): Update.
6273 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6274 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6275 * mips-tdep.c (mips_gdbarch_init): Update.
6276 * mcore-tdep.c (mcore_gdbarch_init): Update.
6277 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6278 * ia64-tdep.c (ia64_gdbarch_init): Update.
6279 * i386-tdep.c (i386_gdbarch_init): Update.
6280 * hppa-tdep.c (hppa_gdbarch_init): Update.
6281 * h8300-tdep.c (h8300_gdbarch_init): Update.
6282 * frv-tdep.c (frv_gdbarch_init): Update.
6283 * d10v-tdep.c (d10v_gdbarch_init): Update.
6284 * cris-tdep.c (cris_gdbarch_init): Update.
6285 * avr-tdep.c (avr_gdbarch_init): Update.
6286 * arm-tdep.c (arm_gdbarch_init): Update.
6287 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6288 * alpha-tdep.c (alpha_gdbarch_init): Update.
6289
62902003-03-26 Daniel Jacobowitz <[email protected]>
6291
6292 * signals/signals.c (do_target_signal_to_host): Correct realtime
6293 signal range test.
6294
62952003-03-26 Daniel Jacobowitz <[email protected]>
6296
6297 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
6298 (struct sal_chain, map_catch_names): Remove.
6299 (catch_exception_command_1): Don't call
6300 handle_gnu_4_16_catch_command.
6301
63022003-03-26 Daniel Jacobowitz <[email protected]>
6303
6304 From Mark Dettinger <[email protected]>:
6305 * dwarf2cfi.c (read_2u): Increment pointer by two.
6306
63072003-03-26 Daniel Jacobowitz <[email protected]>
6308
6309 * signals/signals.c: Fix typos in last change.
6310
63112003-03-26 Daniel Jacobowitz <[email protected]>
6312
6313 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
6314 not already defined. Use __SIGRTMIN if available.
6315 (target_signal_from_host): Remove SIGRTMIN block.
6316 (do_target_signal_to_host): Remove SIGRTMIN block; check that
6317 the signal is within the realtime range.
6318
63192003-03-25 Adam Fedor <[email protected]>
6320
6321 * Makefile.in (infrun.o): Add $(language_h)
6322 * infrun.c (handle_inferior_event): Use skip_language_trampoline
6323 for language specific trampolines.
6324 * language.h (struct language_defn): Add skip_trampoline.
6325 (skip_language_trampoline): Declare.
6326 * language.c (unk_lang_trampoline, skip_language_trampoline):
6327 New functions.
6328 (unknown_language_defn, auto_language_defn, local_language_defn):
6329 Add ukn_lang_trampoline.
6330 * ada-lang.c (ada_language_defn): Add NULL for language
6331 specific skip_trampoline.
6332 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
6333 scm-lang.c: Likewise.
6334 * objc-lang.c (objc_skip_trampoline): New function.
6335 (objc_language_defn): Add objc_skip_trampoline.
6336
63372003-03-25 Andrew Cagney <[email protected]>
6338
6339 * frame.c (get_prev_frame): Delay validating a frame's ID -
6340 non-NULL, didn't go backwards - until an attempt to unwind it to
6341 the previous frame.
6342
63432003-03-25 Andrew Cagney <[email protected]>
6344
6345 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
6346 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
6347 * gdbarch.h, gdbarch.c: Re-generate.
6348 * config/sparc/tm-sparc.h
6349 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
6350 * sparc-tdep.c (sparc_gdbarch_init): Set
6351 deprecated_extra_stack_alignment_needed.
6352 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
6353 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
6354 extra_stack_alignment_needed.
6355 * v850-tdep.c (v850_gdbarch_init): Ditto.
6356 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6357 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6358 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6359 * cris-tdep.c (cris_gdbarch_init): Ditto.
6360 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6361 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6362
63632003-03-25 Andrew Cagney <[email protected]>
6364
6365 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
6366 STORE_STRUCT_RETURN.
6367 * gdbarch.h, gdbarch.c: Regenerate.
6368 * d10v-tdep.c (d10v_store_struct_return): Delete function.
6369 (d10v_push_arguments): Set the struct return register.
6370 (d10v_gdbarch_init): Update.
6371 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6372 * x86-64-tdep.c (x86_64_init_abi): Update.
6373 * vax-tdep.c (vax_gdbarch_init): Update.
6374 * v850-tdep.c (v850_gdbarch_init): Update.
6375 * sparc-tdep.c (sparc_gdbarch_init): Update.
6376 * sh-tdep.c (sh_gdbarch_init): Update.
6377 * s390-tdep.c (s390_gdbarch_init): Update.
6378 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6379 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6380 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6381 * mips-tdep.c (mips_gdbarch_init): Update.
6382 * mcore-tdep.c (mcore_gdbarch_init): Update.
6383 * m68k-tdep.c (m68k_gdbarch_init): Update.
6384 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6385 * ia64-tdep.c (ia64_gdbarch_init): Update.
6386 * i386-tdep.c (i386_gdbarch_init): Update.
6387 * hppa-tdep.c (hppa_gdbarch_init): Update.
6388 * h8300-tdep.c (h8300_gdbarch_init): Update.
6389 * frv-tdep.c (frv_gdbarch_init): Update.
6390 * cris-tdep.c (cris_gdbarch_init): Update.
6391 * avr-tdep.c (avr_gdbarch_init): Update.
6392 * arm-tdep.c (arm_gdbarch_init): Update.
6393 * alpha-tdep.c (alpha_gdbarch_init): Update.
6394
63952003-03-25 Andrew Cagney <[email protected]>
6396
6397 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
6398 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
6399 CALL_DUMMY_STACK_ADJUST with a predicate variable.
6400 * gdbarch.h, gdbarch.c: Regenerate.
6401 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6402 call_dummy_stack_adjust_p.
6403 * vax-tdep.c (vax_gdbarch_init): Ditto.
6404 * v850-tdep.c (v850_gdbarch_init): Ditto.
6405 * sh-tdep.c (sh_gdbarch_init): Ditto.
6406 * s390-tdep.c (s390_gdbarch_init): Ditto.
6407 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6408 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6409 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6410 * mips-tdep.c (mips_gdbarch_init): Ditto.
6411 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6412 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6413 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6414 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6415 * i386-tdep.c (i386_gdbarch_init): Ditto.
6416 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6417 * frv-tdep.c (frv_gdbarch_init): Ditto.
6418 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6419 * cris-tdep.c (cris_gdbarch_init): Ditto.
6420 * avr-tdep.c (avr_gdbarch_init): Ditto.
6421 * arm-tdep.c (arm_gdbarch_init): Ditto.
6422 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6423 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6424 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
6425 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6426 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
6427 call_dummy_stack_adjust_p.
6428 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
6429 (CALL_DUMMY_STACK_ADJUST): Delete macro.
6430 * sparc-tdep.c (sparc32_push_arguments): Update.
6431 * valops.c (hand_function_call): Update.
6432
64332003-03-25 Corinna Vinschen <[email protected]>
6434
6435 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
6436 set_gdbarch_char_signed.
6437
64382003-03-25 Richard Earnshaw <[email protected]>
6439
6440 PR cli/548
6441 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
6442
64432003-03-25 Richard Earnshaw <[email protected]>
6444
6445 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
6446 (_initialize_arm_tdep): Don't set tm_print_insn.
6447
64482003-03-24 Adam Fedor <[email protected]>
6449
6450 * Makefile.in (YYOBJ): Add objc-exp.tab.o
6451 * objc-lang.h: Add multiple inclusion protection.
6452 (start_msglist, add_msglist, end_msglist): Additional declarations.
6453
64542003-03-24 Richard Earnshaw <[email protected]>
6455
6456 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
6457 value was renamed to ARM_FLOAT_SOFT_FPA.
6458
64592003-03-23 Andrew Cagney <[email protected]>
6460
6461 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
6462 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
6463 * gdbarch.h, gdbarch.c: Regenerate.
6464 * valops.c (hand_function_call): Update.
6465 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6466 * frame.c (legacy_saved_regs_this_id): Update.
6467 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
6468 * dummy-frame.h: Update.
6469 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
6470 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6471 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
6472 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
6473 * config/m68k/tm-sun3.h: Update.
6474 * blockframe.c (inside_main_func, frame_chain_valid): Update.
6475 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6476 * x86-64-tdep.c (x86_64_init_abi): Update.
6477 * vax-tdep.c (vax_gdbarch_init): Update.
6478 * v850-tdep.c (v850_gdbarch_init): Update.
6479 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
6480 * sh-tdep.c (sh_gdbarch_init): Update.
6481 * s390-tdep.c (s390_gdbarch_init): Update.
6482 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
6483 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
6484 (frame_get_saved_regs): Update.
6485 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6486 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6487 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6488 * mips-tdep.c (mips_gdbarch_init): Update.
6489 * mcore-tdep.c (mcore_gdbarch_init): Update.
6490 * m68k-tdep.c (m68k_gdbarch_init): Update.
6491 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6492 * ia64-tdep.c (ia64_gdbarch_init): Update.
6493 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
6494 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6495 (i386_interix_back_one_frame): Update.
6496 * hppa-tdep.c (hppa_gdbarch_init): Update.
6497 (hppa_init_extra_frame_info): Update.
6498 * h8300-tdep.c (h8300_gdbarch_init): Update.
6499 * frv-tdep.c (frv_gdbarch_init): Update.
6500 * cris-tdep.c (cris_gdbarch_init): Update.
6501 * avr-tdep.c (avr_gdbarch_init): Update.
6502 * arm-tdep.c (arm_gdbarch_init): Update.
6503 * alpha-tdep.c (alpha_gdbarch_init): Update.
6504
65052003-03-22 Richard Earnshaw <[email protected]>
6506
6507 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
6508 (arm_get_fp_model): Declare.
6509 * arm-tdep.c (fp_model_strings): New string array.
6510 (arm_fp_model, current_fp_model): New variables.
6511 (arm_get_fp_model): New function.
6512 (arm_set_fp): New function.
6513 (set_fp_model_sfunc): New function.
6514 (show_fp_model): New function.
6515 (_initialize_arm_tdep): Add new command to set/show the FPU.
6516 (arm_extract_return_value): Use arm_get_fp_model.
6517 (arm_store_return_value): Likewise.
6518 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
6519 to initialize the floating-point data types.
6520 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
6521 model is FPA.
6522
65232003-03-22 Richard Earnshaw <[email protected]>
6524
6525 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
6526 the current setting of each value.
6527 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
6528 new_set and new_show. Use add_setshow_cmd_full and
6529 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
6530 commands and add new version as subcommands of "set/show arm".
6531
65322003-03-22 Richard Earnshaw <[email protected]>
6533
6534 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
6535 (set_arm_command, show_arm_command): New functions.
6536 (_initialize_arm_tdep): Add them.
6537 (num_disassembly_options): Renamed from num_flavor_options.
6538 (valid_disassembly_styles): Renamed from valid_flavors.
6539 (disassembly_style): Renamed from disassembly_flavor.
6540 (set_disassembly_style_sfunc): Renamed from
6541 set_disassembly_flavor_sfunc.
6542 (set_disassembly_style): Renamed from set_disassembly_flavor.
6543 (arm_othernames): Updated.
6544 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
6545 command. Add "set/show arm disassembly" commands. Deprecate
6546 "othernames" command.
6547
65482003-03-22 Richard Earnshaw <[email protected]>
6549
6550 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
6551 (arm-tdep.o): Depend on elf_arm_h.
6552
65532003-03-22 Richard Earnshaw <[email protected]>
6554
6555 * Makefile.in (coff_internal_h): Define.
6556 (arm-tdep.o): Update dependencies.
6557
65582003-03-22 Richard Earnshaw <[email protected]>
6559
6560 * arm-tdep.c (prologue_cache): Delete.
6561 (check_prologue_cache, save_prologue_cache): Delete.
6562 (arm_scan_prologue): Don't check or update the prologue_cache.
6563 (arm_gdb_arch_init): Don't initialize it.
6564 (_initialize_arm_tdep): Likewise.
6565
65662003-03-21 Stephane Carrez <[email protected]>
6567
6568 * MAINTAINERS (tui): Maintainer of tui code.
6569
65702003-03-21 Corinna Vinschen <[email protected]>
6571
6572 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
6573 (i386-cygwin-tdep.o): Add dependencies.
6574 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
6575 * i386-cygwin-tdep.c: New file.
6576 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
6577 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
6578
65792003-03-20 Andrew Cagney <[email protected]>
6580
6581 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
6582 (handle_inferior_event): Remove code calling
6583 DYNAMIC_TRAMPOLINE_NEXTPC.
6584
6585 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
6586 already has a full path.
6587
6588 * main.c (gdb_main): Return 1.
6589 (captured_main): Call error to report an invalid interpreter.
6590
6591 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6592 * alpha-osf1-tdep.c: Include "gdb_string.h".
6593
65942003-03-19 J. Brobecker <[email protected]>
6595
6596 Continuing work to convert the hppa targets to multiarch partial.
6597
6598 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
6599 method, now that hppa_push_dummy_frame has a conformant prototype.
6600 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
6601 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
6602 for the switch to multiarch partial.
6603
66042003-03-19 Kevin Buettner <[email protected]>
6605
6606 * mdebugread.c (parse_symbol): For stEnd, we're done counting
6607 when iss is issNull.
6608
66092003-03-18 Kevin Buettner <[email protected]>
6610
6611 * mips-tdep.c (mips_register_name): Fix fencepost error involving
6612 NUM_REGS bounds check.
6613
66142003-03-18 Kevin Buettner <[email protected]>
6615
6616 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
6617 * mips-tdep.c (gdb_assert.h): Include.
6618 (mips_generic_reg_names, mips_processor_reg_names): Make static.
6619 (mips_register_name): Handle integer registers explicitly. Add
6620 bounds checking.
6621 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
6622 (mips_lsi33k_reg_names): Don't list integer registers; they're
6623 handled by mips_register_name() now.
6624 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
6625 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
6626 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
6627 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
6628 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
6629
66302003-03-18 Andrew Cagney <[email protected]>
6631
6632 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
6633 a void pointer.
6634 * gdbtypes.h (print_scalar_formatted): Update declaration.
6635 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
6636
66372003-03-18 J. Brobecker <[email protected]>
6638
6639 * infrun.c (observer.h): Add #include.
6640 (normal_stop): Add call to observer_notify_normal_stop.
6641 * Makefile.in (infrun.o): Add dependency on observer.h.
6642
66432003-03-18 J. Brobecker <[email protected]>
6644
6645 Continuing work to convert the hppa targets to multiarch partial.
6646 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
6647 parameter. Reformat comment.
6648 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
6649 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
6650 to match new profile.
6651
66522003-03-18 J. Brobecker <[email protected]>
6653
6654 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
6655 appear to be working in any case.
6656
66572003-03-18 J. Brobecker <[email protected]>
6658
6659 * observer.c (observer_test_first_observer): New static variable.
6660 (observer_test_second_observer): Likewise.
6661 (observer_test_third_observer): Likewise.
6662 (observer_test_first_notification_function): New static function.
6663 (observer_test_second_notification_function): Likewise.
6664 (observer_test_third_notification_function): Likewise.
6665
66662003-03-17 J. Brobecker <[email protected]>
6667
6668 * hppa-tdep.c (gdb_assert.h): Add missing #include.
6669 * somsolib.c (gdb_assert.h): Likewise.
6670 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
6671 (somsolib.o): Likewise.
6672
66732003-03-17 Andrew Cagney <[email protected]>
6674
6675 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
6676 BFD. Simplify setting of di.endian.
6677
66782003-03-17 Andrew Cagney <[email protected]>
6679
6680 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
6681 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
6682
6683 From Elena Zannoni <[email protected]>
6684 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
6685 vector and floating-point parameters.
6686 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
6687 convention.
6688 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
6689
66902003-03-17 Fernando Nasser <[email protected]>
6691
6692 * MAINTAINERS: Remove my name from several maintainership roles.
6693
66942003-03-17 Andrew Cagney <[email protected]>
6695
6696 Fix frame off-by-one bug.
6697 * frame-unwind.h (frame_this_id_ftype): Replace
6698 frame_unwind_id_ftype.
6699 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
6700 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
6701 with "prev_register".
6702 * frame-unwind.c (frame_unwind_find_by_pc): Return
6703 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
6704 comment.
6705 * dummy-frame.c (cached_find_dummy_frame): Delete function.
6706 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
6707 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
6708 (dummy_frame_unwind): Update.
6709 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6710 sentinel_frame_register_unwind.
6711 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
6712 (sentinel_frame_unwinder): Update.
6713 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
6714 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
6715 * frame.c (create_sentinel_frame): Update. Initialize
6716 "prologue_cache" instead of "unwind_cache".
6717 (frame_register_unwind): Call this frame's prev_register with the
6718 next frame and this frame's prologue cache.
6719 (get_prev_frame): Simplify. Always call prev frame's this_id with
6720 this frame and prev frame's prologue cache. Document that this
6721 call is shifted one to the left when compared to the
6722 frame_register_unwind call.
6723 (legacy_saved_regs_prev_register): Replace
6724 frame_saved_regs_register_unwind.
6725 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
6726 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
6727 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
6728 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
6729 (d10v_frame_unwind): Update.
6730 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
6731 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
6732 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
6733 "saved_regs" with "this_saved_regs".
6734
67352003-03-16 Andrew Cagney <[email protected]>
6736
6737 * frame.c (frame_pop): Don't call target_store_registers. Fix
6738 problem reported by Mark Kettenis.
6739
67402003-03-16 Mark Kettenis <[email protected]>
6741
6742 * i386-tdep.c (i386_register_type): Renamed from
6743 i386_register_virtual_type. Adjust function signature.
6744 (i386_gdbarch_init): Set register_type instead of
6745 deprecated_max_register_raw_size,
6746 deprecated_max_register_virtual_size and register_virtual_type.
6747
67482003-03-14 Andrew Cagney <[email protected]>
6749
6750 * frame.c (get_prev_frame): When a legacy frame, always call
6751 legacy_get_prev_frame. Simplify unwind code using assumption that
6752 the unwinder is new.
6753 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
6754 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
6755 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
6756
67572003-03-14 Andrew Cagney <[email protected]>
6758
6759 * frame.c (get_saved_register): Delete function.
6760 * frame.h (get_saved_register): Delete declaration.
6761 * xstormy16-tdep.c: Update comment.
6762 * regcache.h: Update comments.
6763 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
6764 get_saved_register and extract_address, use
6765 frame_read_unsigned_register.
6766 (sparc_frame_saved_pc): Ditto.
6767 (sparc_get_saved_register): Instead of get_saved_register, use
6768 frame_register.
6769 (sparc_pop_frame): Ditto.
6770 * findvar.c: Update comments.
6771 (value_of_register): Call frame_register instead of
6772 get_saved_register.
6773 (value_from_register): Ditto.
6774 * config/sparc/tm-sparc.h: Update comment.
6775 * breakpoint.c: Update comment.
6776
67772003-03-14 Andrew Cagney <[email protected]>
6778
6779 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
6780 GET_SAVED_REGISTER.
6781 * gdbarch.h, gdbarch.c: Re-generate.
6782 * frame.h: Update comments.
6783 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6784 * x86-64-tdep.c (x86_64_init_abi): Update.
6785 * sparc-tdep.c (sparc_gdbarch_init): Update.
6786 * sh-tdep.c (sh_gdbarch_init): Update.
6787 * mips-tdep.c (mips_gdbarch_init): Update.
6788 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6789 * cris-tdep.c (cris_gdbarch_init): Update.
6790 * ia64-tdep.c (ia64_gdbarch_init): Update.
6791 * frame.c (frame_register): Update.
6792 (get_saved_register): Update.
6793 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
6794
67952003-03-13 Andrew Cagney <[email protected]>
6796
6797 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
6798 * gdbarch.h, gdbarch.c: Regenerate.
6799 * valops.c (hand_function_call): Update comment.
6800 * stack.c (return_command): Update comment.
6801 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
6802 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
6803 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6804 * x86-64-tdep.c (x86_64_init_abi): Update.
6805 * vax-tdep.c (vax_gdbarch_init): Update.
6806 * v850-tdep.c (v850_gdbarch_init): Update.
6807 * sparc-tdep.c (sparc_gdbarch_init): Update.
6808 * sh-tdep.c (sh_gdbarch_init): Update.
6809 * s390-tdep.c (s390_gdbarch_init): Update.
6810 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6811 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6812 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6813 * mips-tdep.c (mips_gdbarch_init): Update.
6814 * mcore-tdep.c (mcore_gdbarch_init): Update.
6815 * m68k-tdep.c (m68k_gdbarch_init): Update.
6816 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6817 * ia64-tdep.c (ia64_gdbarch_init): Update.
6818 * i386-tdep.c (i386_gdbarch_init): Update.
6819 * hppa-tdep.c (hppa_gdbarch_init): Update.
6820 * h8300-tdep.c (h8300_gdbarch_init): Update.
6821 * frv-tdep.c (frv_gdbarch_init): Update.
6822 * cris-tdep.c (cris_gdbarch_init): Update.
6823 * avr-tdep.c (avr_gdbarch_init): Update.
6824 * arm-tdep.c (arm_gdbarch_init): Update.
6825 * alpha-tdep.c (alpha_gdbarch_init): Update.
6826
68272003-03-13 Andrew Cagney <[email protected]>
6828
6829 * frame.c (legacy_frame_p): New function.
6830 (get_prev_frame): Use legacy_frame_p.
6831 * frame.h (legacy_frame_p): Declare.
6832
68332003-03-13 D. Venkatasubramanian <[email protected]>
6834
6835 * MAINTAINERS (write after approval): Alphabetically
6836 listing corrected.
6837
68382003-03-13 D. Venkatasubramanian <[email protected]>
6839
6840 * MAINTAINERS (write after approval): Add myself.
6841
68422003-03-12 Andrew Cagney <[email protected]>
6843
6844 * frame.c (get_prev_frame): Rename the frame parameter to
6845 "this_frame".
6846 (get_next_frame, legacy_get_prev_frame): Ditto.
6847
68482003-03-12 Andrew Cagney <[email protected]>
6849
6850 * frame.c (get_current_frame): Check target_has_registers before
6851 checking target_has_stack.
6852 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
6853 instead of deprecated_selected_frame.
6854 * findvar.c (value_of_register): Pass "frame", not
6855 deprecated_selected_frame, to value_of_builtin_reg.
6856
68572003-03-12 Andrew Cagney <[email protected]>
6858
6859 * regcache.c (regcache_cooked_write_signed): New function.
6860 (regcache_cooked_write_unsigned): New function.
6861 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
6862 (regcache_cooked_read_signed): Fix regnum in range assertion.
6863 * regcache.h (regcache_cooked_write_signed): Declare.
6864 (regcache_cooked_write_unsigned): Declare.
6865
68662003-03-12 Andrew Cagney <[email protected]>
6867
6868 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
6869 * gdbarch.h, gdbarch.c: Re-generate.
6870 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6871 * x86-64-tdep.h: Update.
6872 * x86-64-tdep.c (x86_64_init_abi): Update.
6873 * v850-tdep.c (v850_gdbarch_init): Update.
6874 * sparc-tdep.c (sparc_gdbarch_init): Update.
6875 * sh-tdep.c (sh_gdbarch_init): Update.
6876 * s390-tdep.c (s390_gdbarch_init): Update.
6877 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6878 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6879 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6880 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6881 * mips-tdep.c (mips_gdbarch_init): Update.
6882 * mcore-tdep.c (mcore_gdbarch_init): Update.
6883 * m68k-tdep.c (m68k_gdbarch_init): Update.
6884 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6885 * ia64-tdep.c (ia64_gdbarch_init): Update.
6886 * i386-tdep.c (i386_gdbarch_init): Update.
6887 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6888 * hppa-tdep.c (hppa_gdbarch_init): Update.
6889 * h8300-tdep.c (h8300_gdbarch_init): Update.
6890 * frv-tdep.c (frv_gdbarch_init): Update.
6891 * cris-tdep.c (cris_gdbarch_init): Update.
6892 * avr-tdep.c (avr_gdbarch_init): Update.
6893 * arm-tdep.c (arm_gdbarch_init): Update.
6894 * alpha-tdep.c (alpha_gdbarch_init): Update.
6895 * sh-tdep.c (sh_init_extra_frame_info): Update.
6896 (sh64_init_extra_frame_info): Update.
6897 * ns32knbsd-nat.c (frame_num_args): Update.
6898 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
6899 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
6900 (xstormy16_frame_chain_valid): Update.
6901 * vax-tdep.c (vax_saved_pc_after_call): Update.
6902 * v850-tdep.c (v850_frame_chain): Update.
6903 (v850_pop_frame): Update.
6904 (v850_init_extra_frame_info): Update.
6905 * sparc-tdep.c (setup_arbitrary_frame): Update.
6906 * ns32k-tdep.c (umax_frame_num_args): Update.
6907 * s390-tdep.c (s390_pop_frame_regular): Update.
6908 * mn10300-tdep.c (mn10300_frame_chain): Update.
6909 (mn10300_pop_frame_regular): Update.
6910 (mn10300_init_extra_frame_info): Update.
6911 * mips-tdep.c (mips_init_frame_pc_first): Update.
6912 (mips_frame_chain): Update.
6913 (mips_pop_frame): Update.
6914 * mcore-tdep.c (mcore_frame_chain): Update.
6915 (mcore_pop_frame): Update.
6916 (mcore_init_extra_frame_info): Update.
6917 * arch-utils.c (init_frame_pc_default): Update.
6918 * m68k-tdep.c (isi_frame_num_args): Update.
6919 (delta68_frame_num_args): Update.
6920 (news_frame_num_args): Update.
6921 * ia64-tdep.c (ia64_pop_frame_regular): Update.
6922 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6923 (alpha_frame_chain): Update.
6924 (alpha_pop_frame): Update.
6925 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
6926 (hppa_init_extra_frame_info): Update.
6927 (hppa_frame_chain): Update.
6928 (hppa_frame_chain_valid): Update.
6929 * cris-tdep.c (cris_init_extra_frame_info): Update.
6930 * avr-tdep.c (avr_init_extra_frame_info): Update.
6931 * arm-tdep.c (arm_frame_chain_valid): Update.
6932 (arm_init_extra_frame_info): Update.
6933 (arm_pop_frame): Update.
6934 * frame.c (frame_pc_unwind): Update.
6935 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
6936 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6937 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6938 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
6939 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
6940 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
6941
69422003-03-12 Andrew Cagney <[email protected]>
6943
6944 Eliminate the need for POP_FRAME.
6945 * frame.c (do_frame_unwind_register): New function.
6946 (frame_pop): When no POP_FRAME, pop the frame using register
6947 unwind and a scratch regcache.
6948 (frame_saved_regs_pop): Delete function.
6949 (trad_frame_unwinder): Update.
6950 * d10v-tdep.c (d10v_frame_pop): Delete function.
6951 (d10v_frame_unwind): Update.
6952 * sentinel-frame.c (sentinel_frame_pop): Delete function.
6953 (sentinel_frame_unwinder): Update.
6954 * dummy-frame.c (dummy_frame_pop): Delete function.
6955 (dummy_frame_unwind): Update.
6956 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
6957 (struct frame_unwind): Update.
6958
69592003-03-11 Kevin Buettner <[email protected]>
6960
6961 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
6962 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
6963 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
6964 Do range checks on register number obtained from debugging info.
6965 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
6966 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
6967 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
6968 mapping function.
6969 (do_fp_register_row): Fix typo which caused double type to be
6970 used when attempting to unpack a float.
6971
69722003-03-11 J. Brobecker <[email protected]>
6973
6974 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
6975
69762003-03-11 Andrew Cagney <[email protected]>
6977
6978 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
6979 frame. Problem found by Corinna Vinschen.
6980
69812003-03-11 Pierre Muller <[email protected]>
6982
6983 * doublest.c (floatformat_from_length): Accept also
6984 the real size of 'long double' type.
6985
69862003-03-10 Daniel Jacobowitz <[email protected]>
6987
6988 From Klee Dienes <[email protected]>:
6989 * breakpoint.c (bpstat_copy): Copy the command lines as well
6990 as the old value, to match what is freed in bpstat_clear.
6991
69922003-03-10 David Carlton <[email protected]>
6993
6994 * minsyms.c (add_minsym_to_hash_table): Replace
6995 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6996 (compare_minimal_symbols, compact_minimal_symbols)
6997 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
6998 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
6999 of DEPRECATED_SYMBOL_MATCHES_NAME.
7000 (lookup_minimal_symbol_solib_trampoline): Ditto.
7001
70022003-03-10 Andrew Cagney <[email protected]>
7003
7004 * regcache.h (regcache_cooked_read_ftype): Define.
7005 (regcache_save, regcache_restore): Add a cooked_read parameter.
7006 * regcache.c (regcache_save, regcache_restore): Update.
7007 (do_cooked_read): New function.
7008 (regcache_cpy): Pass do_cooked_read to regcache_save and
7009 regcache_restore.
7010
70112003-03-10 Andrew Cagney <[email protected]>
7012
7013 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7014 * gdbarch.h, gdbarch.c: Re-generate.
7015 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7016 * x86-64-tdep.h: Update.
7017 * x86-64-tdep.c (x86_64_init_abi): Update.
7018 * v850-tdep.c (v850_gdbarch_init): Update.
7019 * sparc-tdep.c (sparc_gdbarch_init): Update.
7020 * sh-tdep.c (sh_gdbarch_init): Update.
7021 * s390-tdep.c (s390_gdbarch_init): Update.
7022 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7023 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7024 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7025 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7026 * mips-tdep.c (mips_gdbarch_init): Update.
7027 * mcore-tdep.c (mcore_gdbarch_init): Update.
7028 * m68k-tdep.c (m68k_gdbarch_init): Update.
7029 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7030 * ia64-tdep.c (ia64_gdbarch_init): Update.
7031 * i386-tdep.c (i386_gdbarch_init): Update.
7032 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7033 * hppa-tdep.c (hppa_gdbarch_init): Update.
7034 * h8300-tdep.c (h8300_gdbarch_init): Update.
7035 * frv-tdep.c (frv_gdbarch_init): Update.
7036 * cris-tdep.c (cris_gdbarch_init): Update.
7037 * avr-tdep.c (avr_gdbarch_init): Update.
7038 * arm-tdep.c (arm_gdbarch_init): Update.
7039 * alpha-tdep.c (alpha_gdbarch_init): Update.
7040 * sh-tdep.c (sh_init_extra_frame_info): Update.
7041 (sh64_init_extra_frame_info): Update.
7042 * ns32knbsd-nat.c (frame_num_args): Update.
7043 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7044 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7045 (xstormy16_frame_chain_valid): Update.
7046 * vax-tdep.c (vax_saved_pc_after_call): Update.
7047 * v850-tdep.c (v850_frame_chain): Update.
7048 (v850_pop_frame): Update.
7049 (v850_init_extra_frame_info): Update.
7050 * sparc-tdep.c (setup_arbitrary_frame): Update.
7051 * ns32k-tdep.c (umax_frame_num_args): Update.
7052 * s390-tdep.c (s390_pop_frame_regular): Update.
7053 * mn10300-tdep.c (mn10300_frame_chain): Update.
7054 (mn10300_pop_frame_regular): Update.
7055 (mn10300_init_extra_frame_info): Update.
7056 * mips-tdep.c (mips_init_frame_pc_first): Update.
7057 (mips_frame_chain): Update.
7058 (mips_pop_frame): Update.
7059 * mcore-tdep.c (mcore_frame_chain): Update.
7060 (mcore_pop_frame): Update.
7061 (mcore_init_extra_frame_info): Update.
7062 * arch-utils.c (init_frame_pc_default): Update.
7063 * m68k-tdep.c (isi_frame_num_args): Update.
7064 (delta68_frame_num_args): Update.
7065 (news_frame_num_args): Update.
7066 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7067 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7068 (alpha_frame_chain): Update.
7069 (alpha_pop_frame): Update.
7070 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7071 (hppa_init_extra_frame_info): Update.
7072 (hppa_frame_chain): Update.
7073 (hppa_frame_chain_valid): Update.
7074 * cris-tdep.c (cris_init_extra_frame_info): Update.
7075 * avr-tdep.c (avr_init_extra_frame_info): Update.
7076 * arm-tdep.c (arm_frame_chain_valid): Update.
7077 (arm_init_extra_frame_info): Update.
7078 (arm_pop_frame): Update.
7079 * frame.c (frame_pc_unwind): Update.
7080 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7081 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7082 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7083 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7084 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7085 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7086
70872003-03-10 Andrew Cagney <[email protected]>
7088
7089 * gdbarch.sh (gdbarch_unwind_pc): New method.
7090 * gdbarch.h, gdbarch.c: Regenerate.
7091 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
7092 but use read_pc and FRAME_SAVED_PC as fall backs.
7093 (frame_saved_regs_pc_unwind): Delete function.
7094 (trad_frame_unwinder): Update.
7095 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
7096 (struct frame_unwind): Update.
7097 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
7098 (dummy_frame_unwind): Update.
7099 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
7100 (sentinel_frame_unwinder): Update.
7101 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
7102 (d10v_frame_unwind): Update.
7103 (d10v_unwind_pc): New function.
7104 (d10v_gdbarch_init): Set unwind_pc.
7105
71062003-03-10 Andrew Cagney <[email protected]>
7107
7108 * gdbarch.h: Re-generate.
7109
7110 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
7111 PC.
7112 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
7113 the PC register.
7114
71152003-03-08 Mark Kettenis <[email protected]>
7116
7117 * gdbarch.sh (save_dummy_frame_tos): Add comment.
7118
71192003-03-08 Andrew Cagney <[email protected]>
7120
7121 * cli-out.c: Update copyright.
7122 (cli_out_data): Define typedef. Use instead of ui_out_data.
7123
71242003-03-08 Andrew Cagney <[email protected]>
7125
7126 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
7127 the result.
7128
71292003-03-07 Andrew Cagney <[email protected]>
7130
7131 * gdbarch.sh: Don't generate two macro definitions when an
7132 undefined macro taking no arguments.
7133 * gdbarch.h: Regenerate.
7134
71352002-03-07 Michal Ludvig <[email protected]>
7136
7137 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
7138 (x86_64_unwind_dummy_id): New functions.
7139 (x86_64_init_abi): Register these two new functions.
7140
71412003-03-07 Michal Ludvig <[email protected]>
7142
7143 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
7144 (x86_64_skip_prologue): Move prologue detection to
7145 separate function.
7146 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
7147
71482003-03-05 Andrew Cagney <[email protected]>
7149
7150 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
7151 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
7152 * frame.c (get_prev_frame): Restructure the frame ID unwind code
7153 to use unwind_dummy_id when a dummy frame.
7154 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
7155 predicate.
7156 * gdbarch.h, gdbarch.c: Regneerate.
7157
71582003-03-05 Andrew Cagney <[email protected]>
7159
7160 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
7161 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
7162 Do not use d10v_read_sp or d10v_read_fp when obtaining register
7163 values.
7164
71652003-03-05 Andrew Cagney <[email protected]>
7166
7167 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
7168 (struct d10v_unwind_cache): Delete field "frameless". Replace
7169 "next_addr" with "sp_offset". Add "r11_offset".
7170 (d10v_frame_unwind_cache): Update.
7171 (prologue_find_regs): Update. When "mv r11, sp", save the
7172 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
7173 RN was saved in r11_offset.
7174
71752003-03-05 Andrew Cagney <[email protected]>
7176
7177 * frame.c (deprecated_update_frame_pc_hack): Also update the the
7178 cached PC value in the next frame.
7179
71802003-03-05 Andrew Cagney <[email protected]>
7181
7182 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
7183 "id_unwind_cache" with "id".
7184 (frame_id_unwind): Delete declaration.
7185 * frame.c (frame_id_unwind): Delete function.
7186 (get_prev_frame): Call the frame id unwind method directly. Store
7187 the returned next frame's ID value in NEXT_FRAME. Note that there
7188 is a problem with the wrong unwind ID being called with the wrong
7189 unwind cache.
7190
71912003-03-05 Daniel Jacobowitz <[email protected]>
7192
7193 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
7194
71952003-03-05 James Ingham <[email protected]>
7196 Daniel Jacobowitz <[email protected]>
7197
7198 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
7199 (auto_cp_abi): New variable.
7200 (current_cp_abi, num_cp_abis): Make static.
7201 (CP_ABI_MAX): Define.
7202 (cp_abis): Turn into an array.
7203 (value_virtual_fn_field): Fix formatting.
7204 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
7205 takes a pointer.
7206 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
7207 (list_cp_abis, _initialize_cp_abi): New functions.
7208 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
7209 declarations for cp_abis, num_cp_abis, current_cp_abi, and
7210 switch_to_cp_abi. Update prototype for register_cp_abi.
7211 * Makefile.in (cp-abi.o): Update dependencies.
7212 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
7213 instead of switch_to_cp_abi.
7214 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
7215 register_cp_abi.
7216 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
7217 register_cp_abi.
7218 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
7219
72202003-03-05 Daniel Jacobowitz <[email protected]>
7221
7222 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
7223 * dwarf2loc.c: Include "regcache.h".
7224 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
7225 register_size.
7226 * Makefile.in (dwarf2loc.o): Update dependencies.
7227
72282003-03-04 Theodore A. Roth <[email protected]>
7229
7230 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
7231 number of io registers reported by remote target is not a multiple of
7232 step.
7233
72342003-03-04 David Carlton <[email protected]>
7235
7236 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
7237 (lookup_symbol_aux_psymtabs): Update call to
7238 lookup_partial_symbol.
7239 (lookup_transparent_type, find_main_psymtab)
7240 (make_symbol_overload_list): Ditto.
7241
72422003-03-04 Kazu Hirata <[email protected]>
7243
7244 * MAINTAINERS (Write after approval): Update my email address.
7245
72462003-03-03 Andrew Cagney <[email protected]>
7247
7248 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
7249 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
7250 predicate. Replace MAX_REGISTER_RAW_SIZE.
7251 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
7252 MAX_REGISTER_VIRTUAL_SIZE.
7253 * regcache.c (legacy_max_register_raw_size): New function.
7254 (legacy_max_register_virtual_size): New function.
7255 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
7256 (MAX_REGISTER_RAW_SIZE): Define.
7257 (legacy_max_register_raw_size): Declare.
7258 (legacy_max_register_virtual_size): Declare.
7259 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7260 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
7261 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7262 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7263 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7264 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7265 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7266 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7267 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7268 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7269 * vax-tdep.c (vax_gdbarch_init): Update.
7270 * v850-tdep.c (v850_gdbarch_init): Update.
7271 * sparc-tdep.c (sparc_gdbarch_init): Update.
7272 * sh-tdep.c (sh_gdbarch_init): Update.
7273 * s390-tdep.c (s390_gdbarch_init): Update.
7274 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7275 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7276 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7277 * mips-tdep.c (mips_gdbarch_init): Update.
7278 * mcore-tdep.c (mcore_gdbarch_init): Update.
7279 * m68k-tdep.c (m68k_gdbarch_init): Update.
7280 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7281 * ia64-tdep.c (ia64_gdbarch_init): Update.
7282 * i386-tdep.c (i386_gdbarch_init): Update.
7283 * hppa-tdep.c (hppa_gdbarch_init): Update.
7284 * h8300-tdep.c (h8300_gdbarch_init): Update.
7285 * frv-tdep.c (frv_gdbarch_init): Update.
7286 * cris-tdep.c (cris_gdbarch_init): Update.
7287 * avr-tdep.c (avr_gdbarch_init): Update.
7288 * arm-tdep.c (arm_gdbarch_init): Update.
7289 * alpha-tdep.c (alpha_gdbarch_init): Update.
7290 * d10v-tdep.c (d10v_gdbarch_init): Do not set
7291 max_register_raw_size or max_register_virtual_size.
7292
72932003-03-03 David Carlton <[email protected]>
7294
7295 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
7296 SYMBOL_MATCHES_NAME, add comment.
7297 (SYMBOL_MATCHES_NATURAL_NAME): New.
7298 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
7299 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
7300 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
7301 * symtab.c (lookup_partial_symbol): Use
7302 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
7303 unhelpful comment.
7304 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
7305 SYMBOL_MATCHES_NAME.
7306 Fix for PR c++/33.
7307
73082003-03-03 David Carlton <[email protected]>
7309
7310 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
7311 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
7312 by regexp matching against SYMBOL_NATURAL_NAME.
7313
73142003-03-03 David Carlton <[email protected]>
7315
7316 * linespec.c (find_method): Extract code into collect_methods.
7317 (collect_methods): New.
7318
73192003-03-02 Mark Kettenis <[email protected]>
7320
7321 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
7322 get_frame_base.
7323
7324 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
7325 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7326
73272003-03-02 Stephane Carrez <[email protected]>
7328
7329 * arch-utils.c (generic_register_byte): Fix to use the loop index
7330 and not regnum when summing the size of all registers up to regnum.
7331
73322003-03-01 Andrew Cagney <[email protected]>
7333
7334 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
7335 FRAME_INIT_SAVED_REGS.
7336 * gdbarch.h, gdbarch.c: Regenerate.
7337 * stack.c (frame_info): Update.
7338 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
7339 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
7340 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
7341 * ns32k-tdep.c (ns32k_pop_frame): Update.
7342 * mips-tdep.c (mips_pop_frame): Update.
7343 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
7344 * ia64-tdep.c (ia64_frame_chain): Update.
7345 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
7346 (ia64_frameless_function_invocation): Update.
7347 (ia64_init_extra_frame_info): Update.
7348 (ia64_pop_frame_regular): Update.
7349 * frame.h (struct frame_info): Update comment.
7350 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
7351 * frame.c (frame_saved_regs_register_unwind): Update.
7352 (frame_saved_regs_register_unwind): Update.
7353 (deprecated_generic_get_saved_register): Update.
7354 * cris-tdep.c: Update comment.
7355 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
7356 Rename macro.
7357 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7358 * x86-64-tdep.c (x86_64_init_abi): Update.
7359 * vax-tdep.c (vax_gdbarch_init): Update.
7360 * v850-tdep.c (v850_gdbarch_init): Update.
7361 * sparc-tdep.c (sparc_gdbarch_init): Update.
7362 * sh-tdep.c (sh_gdbarch_init): Update.
7363 * s390-tdep.c (s390_gdbarch_init): Update.
7364 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7365 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7366 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7367 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7368 * mips-tdep.c (mips_gdbarch_init): Update.
7369 * mcore-tdep.c (mcore_gdbarch_init): Update.
7370 * m68k-tdep.c (m68k_gdbarch_init): Update.
7371 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7372 * ia64-tdep.c (ia64_gdbarch_init): Update.
7373 * i386-tdep.c (i386_gdbarch_init): Update.
7374 * frv-tdep.c (frv_gdbarch_init): Update.
7375 * avr-tdep.c (avr_gdbarch_init): Update.
7376 * arm-tdep.c (arm_gdbarch_init): Update.
7377 * alpha-tdep.c (alpha_gdbarch_init): Update.
7378
73792003-03-01 Andrew Cagney <[email protected]>
7380
7381 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
7382 option enum and switch. When no windows, set the interpreter to
7383 INTERP_CONSOLE.
7384
73852003-03-01 Andrew Cagney <[email protected]>
7386
7387 * main.c (captured_main): Replace magic option characters with an
7388 enum.
7389
73902003-03-01 Andrew Cagney <[email protected]>
7391
7392 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
7393 INIT_EXTRA_FRAME_INFO.
7394 * gdbarch.h, gdbarch.c: Regenerate.
7395 * arm-tdep.c: Update comments.
7396 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
7397 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
7398 * frame.h, avr-tdep.c: Ditto.
7399 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
7400 (create_new_frame, legacy_get_prev_frame): Ditto.
7401 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7402 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7403 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
7404 deprecated_init_extra_frame_info instead of init_extra_frame_info.
7405 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7406 * v850-tdep.c (v850_gdbarch_init): Ditto.
7407 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7408 * sh-tdep.c (sh_gdbarch_init): Ditto.
7409 * s390-tdep.c (s390_gdbarch_init): Ditto.
7410 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
7411 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7412 * mips-tdep.c (mips_gdbarch_init): Ditto.
7413 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7414 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7415 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7416 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
7417 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7418 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7419 * frv-tdep.c (frv_gdbarch_init): Ditto.
7420 * cris-tdep.c (cris_gdbarch_init): Ditto.
7421 * avr-tdep.c (avr_gdbarch_init): Ditto.
7422 * arm-tdep.c (arm_gdbarch_init): Ditto.
7423 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7424 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7425
74262003-03-01 Andrew Cagney <[email protected]>
7427
7428 * gdbarch.sh (register_type): New function with predicate.
7429 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
7430 * gdbarch.h, gdbarch.c: Re-generate.
7431 * arch-utils.c (generic_register_byte): Use generic_register_size.
7432 (generic_register_size): When available, use
7433 gdbarch_register_type.
7434 * regcache.c (init_regcache_descr): When available, initialize the
7435 register type array using gdbarch_register_type. If the
7436 architecture supplies gdbarch_register_type, do not use the legacy
7437 regcache layout.
7438 * d10v-tdep.c (d10v_register_type): Replace
7439 d10v_register_virtual_type.
7440 (d10v_gdbarch_init): Set register_type instead of
7441 register_virtual_type.
7442
74432003-03-01 Andrew Cagney <[email protected]>
7444
7445 * Makefile.in (ax-gdb.o): Update dependencies.
7446 * ax-gdb.c: Include "regcache.h".
7447 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
7448 * findvar.c (value_of_register): Ditto.
7449 * infcmd.c (default_print_registers_info): Ditto.
7450
74512003-03-01 Mark Kettenis <[email protected]>
7452
7453 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
7454 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7455
74562003-03-01 Mark Kettenis <[email protected]>
7457
7458 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
7459 of STREQ.
7460
74612003-02-28 Daniel Jacobowitz <[email protected]>
7462
7463 * Makefile.in (dwarf2loc.o): Update dependencies.
7464 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
7465 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
7466 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
7467 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
7468 (locexpr_tracepoint_var_ref): New function.
7469 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
7470
74712003-02-28 Andrew Cagney <[email protected]>
7472
7473 * regcache.c (register_size): New function.
7474 * regcache.h (register_size): Declare
7475 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
7476 max_register_size instead of MAX_REGISTER_RAW_SIZE.
7477
74782003-02-28 David Carlton <[email protected]>
7479
7480 * linespec.c (decode_compound): Extract code into find_method.
7481 (find_method): New.
7482
74832003-02-28 J. Brobecker <[email protected]>
7484
7485 * Makefile.in: Add rules to build and link in observer.o.
7486
74872003-02-27 J. Brobecker <[email protected]>
7488
7489 * observer.c: Minor comments edits.
7490
74912003-02-27 J. Brobecker <[email protected]>
7492
7493 * observer.h, observer.c: New file.
7494
74952003-02-27 Andrew Cagney <[email protected]>
7496
7497 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
7498
74992003-02-27 Stephane Carrez <[email protected]>
7500
7501 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
7502 (M6812_OP_STS_EXT): Likewise.
7503 (m6811_prologue): Use the above to recognize prologue.
7504 (m6812_prologue): Likewise.
7505
75062003-02-27 David Carlton <[email protected]>
7507
7508 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
7509 SYMBOL_PRINT_NAME.
7510 (compare_psymbols): Ditto.
7511 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
7512
75132003-02-27 Michael Snyder <[email protected]>
7514
7515 * f-lang.c (build_fortran_types): New function.
7516 (_initialize_f_language): Gdbarch-register built-in fortran types.
7517 * doublest.c (extract_floating): Fix warning text.
7518
75192003-02-27 Andrew Cagney <[email protected]>
7520
7521 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
7522 predicate. Replaces PUSH_DUMMY_FRAME.
7523 * gdbarch.h, gdbarch.c: Regnerate.
7524 * valops.c (hand_function_call): Update. Call
7525 generic_push_dummy_frame directly.
7526 * vax-tdep.c (vax_gdbarch_init): Update.
7527 * sparc-tdep.c (sparc_gdbarch_init): Update.
7528 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7529 * m68k-tdep.c (m68k_gdbarch_init): Update.
7530 * hppa-tdep.c (hppa_gdbarch_init): Update.
7531 * alpha-tdep.c (alpha_gdbarch_init): Update.
7532 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7533 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7534 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
7535 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
7536 push_dummy_frame to generic_push_dummy_frame.
7537 * v850-tdep.c (v850_gdbarch_init): Ditto.
7538 * sh-tdep.c (sh_gdbarch_init): Ditto.
7539 * s390-tdep.c (s390_gdbarch_init): Ditto.
7540 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7541 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7542 * mips-tdep.c (mips_gdbarch_init): Ditto.
7543 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7544 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7545 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7546 * i386-tdep.c (i386_gdbarch_init): Ditto.
7547 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7548 * frv-tdep.c (frv_gdbarch_init): Ditto.
7549 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7550 * cris-tdep.c (cris_gdbarch_init): Ditto.
7551 * avr-tdep.c (avr_gdbarch_init): Ditto.
7552 * arm-tdep.c (arm_gdbarch_init): Ditto.
7553
75542003-02-26 Kevin Buettner <[email protected]>
7555
7556 * mips-tdep.c (show_mips_abi): New function.
7557 (_initialize_mips_tdep): Use show_mips_abi() to implement the
7558 command ``show mips abi''.
7559
75602003-02-26 Jeff Johnston <[email protected]>
7561
7562 From Elena Zannoni <[email protected]>
7563 * dbxread.c (process_one_symbol): Only record line 0 if one or
7564 more sline entries have been seen for the function.
7565
75662003-02-26 Michael Chastain <[email protected]>
7567
7568 * configure: Regenerate with autoconf 000227.
7569
75702003-02-26 Michael Chastain <[email protected]>
7571
7572 Close PR build/660.
7573 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
7574 for old libc5/glibc.
7575 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
7576
75772003-02-26 Kris Warkentin <[email protected]>
7578
7579 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
7580 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
7581
75822003-02-26 Michael Chastain <[email protected]>
7583
7584 * configure.in: New variable HAVE_UINTPTR_T.
7585 * configure, config.in: Regenerated.
7586
75872003-02-26 Daniel Jacobowitz <[email protected]>
7588
7589 Fix PR build/1097.
7590 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
7591
75922003-02-25 Andrew Cagney <[email protected]>
7593
7594 * frame.c (get_prev_frame): Add comment on check for
7595 inside_entry_func. Only check for inside_entry_file when not a
7596 dummy and not a sentinel. Check that the new frame is not inner
7597 to the old frame.
7598
75992003-02-25 Andrew Cagney <[email protected]>
7600
7601 * frame.c (frame_debug): New variable.
7602 (_initialize_frame): Add "set/show debug frame" command.
7603 (get_prev_frame): When frame_debug, print reason why unwind
7604 failed.
7605
76062003-02-25 Michael Chastain <[email protected]>
7607
7608 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
7609 to avoid uintptr_t definition problems.
7610
76112003-02-25 David Carlton <[email protected]>
7612
7613 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
7614 (SYMBOL_LINKAGE_NAME): Ditto.
7615 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
7616 SYMBOL_LINKAGE_NAME.
7617 (struct general_symbol_info): Expand comment.
7618 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
7619 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
7620 (SYMBOL_MATCHES_REGEXP): Ditto.
7621 * symtab.c (symbol_natural_name): New function.
7622 * objfiles.h: Replace all uses of SYMBOL_NAME by
7623 DEPRECATED_SYMBOL_NAME.
7624 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
7625 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
7626 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
7627 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
7628 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
7629 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
7630 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
7631 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
7632 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
7633 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
7634 * ada-exp.y: Ditto.
7635 * ada-exp.y: Update copyright.
7636 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
7637 * cp-valprint.c: Ditto.
7638
76392003-02-25 Jeff Johnston <[email protected]>
7640
7641 * infptrace.c (detach): Do not flag error if ptrace detach fails
7642 and errno is set to ESRCH.
7643
76442003-02-24 Andrew Cagney <[email protected]>
7645
7646 * infptrace.c (udot_info): Change type of udot_off to long. Use
7647 paddr when printing udot_off's value.
7648
76492003-02-24 David Carlton <[email protected]>
7650
7651 * symtab.c (make_symbol_overload_list): Only read in partial
7652 symtabs containing a matching partial symbol.
7653
76542003-02-24 David Carlton <[email protected]>
7655
7656 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
7657 do the comparison, not strcmp.
7658 * symfile.c (compare_psymbols): Ditto.
7659 * defs.h: Declare strcmp_iw_ordered.
7660 * utils.c (strcmp_iw_ordered): New function.
7661
76622003-02-24 Jim Blandy <[email protected]>
7663
7664 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
7665 support, shared libs): Remove my name from here, to better reflect
7666 reality.
7667
76682003-02-24 Kris Warkentin <[email protected]>
7669
7670 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
7671 (target_ops): Add to_have_continuable_watchpoint.
7672 * target.c (update_current_target): Add INHERIT line for
7673 to_have_continuable_watchpoint.
7674 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
7675 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
7676 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
7677 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
7678
76792003-02-24 Elena Zannoni <[email protected]>
7680
7681 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
7682 maintainership.
7683
76842003-02-24 Kris Warkentin <[email protected]>
7685
7686 * solib.c (solib_open): Call target defined search function after
7687 failing with solib-search-path.
7688 * solist.h (target_so_ops): Add find_and_open_solib function hook and
7689 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
7690
76912003-02-24 Kris Warkentin <[email protected]>
7692
7693 * MAINTAINERS: Add myself to Write After section.
7694
76952003-02-23 Stephane Carrez <[email protected]>
7696
7697 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
7698
76992003-02-22 Stephane Carrez <[email protected]>
7700
7701 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
7702 (m68hc11_add_reggroups): New function.
7703 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
7704 (m68hc11_gdbarch_init): Install the reggroups.
7705 (_initialize_m68hc11_tdep): Initialize them.
7706
77072003-02-21 James E Wilson <[email protected]>
7708
7709 * MAINTAINERS: Update my email address.
7710
77112003-02-21 David Carlton <[email protected]>
7712
7713 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
7714
77152003-02-21 Daniel Jacobowitz <[email protected]>
7716
7717 Based on a patch from Daniel Berlin ([email protected]).
7718 * symtab.h: Add opaque declarations of struct axs_value and
7719 struct agent_expr.
7720 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
7721 (struct location_funcs): New type.
7722 (struct symbol): Add "loc" to aux_value.
7723 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
7724 * dwarf2read.c: Include "dwarf2expr.h".
7725 (dwarf2_symbol_mark_computed): New function.
7726 (read_func_scope): Use it.
7727 (var_decode_location): New function.
7728 (new_symbol): Use it.
7729 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
7730
7731 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
7732 (dwarf2expr_h, dwarf2loc_h): New variables.
7733 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
7734 (dwarf2expr.o, dwarf2loc.o): New rules.
7735 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
7736 * buildsym.c (finish_block): Handle LOC_COMPUTED and
7737 LOC_COMPUTED_ARG.
7738 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
7739 * m2-exp.y (yylex): Likewise.
7740 * printcmd.c (address_info, print_frame_args): Likewise.
7741 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
7742 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
7743 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
7744 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
7745 * symtab.c (lookup_block_symbol): Likewise.
7746
77472003-02-20 Adam Fedor <[email protected]>
7748
7749 * symtab.h: Remove objc_specific struct
7750 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
7751 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
7752 Have language_objc use cplus_specific struct.
7753
77542003-02-20 Tom Tromey <[email protected]>
7755
7756 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
7757 TYPE_NAME, when printing a String value. PR java/1075.
7758
77592003-02-20 Adam Fedor <[email protected]>
7760
7761 * objc-lang.h (find_methods): Remove declaration.
7762 * objc-lang.c (find_methods): Make static.
7763
77642003-02-20 Christopher Faylor <[email protected]>
7765
7766 * win32-nat.c (get_image_name): Check return value from
7767 ReadProcessMemory.
7768 (child_xfer_memory): Ditto.
7769
77702003-02-20 Alexandre Oliva <[email protected]>
7771
7772 * configure.in (TARGET_SYSTEM_ROOT): Set default to
7773 ${exec_prefix}/${target_alias}/sys-root. Match explicit
7774 '${exec_prefix}' (in addition to the expansion thereof) as
7775 relocatable.
7776 * configure: Rebuilt.
7777
77782003-02-20 David Carlton <[email protected]>
7779
7780 * symtab.c (search_symbols): Revert the search_symbols part of my
7781 2002-12-23 patch. Add comment.
7782
77832002-02-20 Daniel Jacobowitz <[email protected]>
7784
7785 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
7786 * dbxread.c (elfstab_build_psymtabs): Don't call
7787 install_minimal_symbols.
7788 (stabsect_build_psymtabs): Likewise.
7789 * elfread.c (elf_symfile_read): Call install_minimal_symbols
7790 earlier.
7791 * somread.c (som_symfile_read): Call install_minimal_symbols
7792 and do_cleanups earlier.
7793 * nlmread.c (nlm_symfile_read): Likewise.
7794 * mdebugread.c (elfmdebug_build_psymtabs): Call
7795 install_minimal_symbols and make appropriate cleanups.
7796
77972003-02-20 Kevin Buettner <[email protected]>
7798
7799 * solib.c (reload_shared_libraries): New function.
7800 (_initialize_solib): Add callbacks for ``set solib-search-path''
7801 and ``set solib-absolute-prefix''.
7802
78032003-02-20 David Carlton <[email protected]>
7804
7805 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
7806 expand comment.
7807 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
7808 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
7809 * ada-typeprint.c (ada_typedef_print): Ditto.
7810 * ax-gdb.c (gen_var_ref): Ditto.
7811 * breakpoint.c (print_one_breakpoint): Ditto.
7812 * buildsym.c (finish_block): Ditto.
7813 * c-valprint.c (c_val_print): Ditto.
7814 * expprint.c (print_subexp): Ditto.
7815 * findvar.c (locate_var_value): Ditto.
7816 * infcmd.c (jump_command): Ditto.
7817 * linespec.c (decode_line_2, decode_compound): Ditto.
7818 * maint.c (maintenance_translate_address): Ditto.
7819 * objc-lang.c (compare_selectors, compare_classes): Ditto.
7820 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
7821 Ditto.
7822 * p-valprint.c (pascal_val_print): Ditto.
7823 * stabsread.c (define_symbol): Ditto.
7824 * stack.c (print_frame, frame_info, print_block_frame_locals)
7825 (print_frame_arg_vars, return_command): Ditto.
7826 * symfile.c (compare_symbols, compare_psymbols): Ditto.
7827 * symmisc.c (print_symbol): Ditto.
7828 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
7829 (compare_search_syms, print_symbol_info, print_msymbol_info)
7830 (rbreak_command): Ditto.
7831 * tracepoint.c (tracepoints_info): Ditto.
7832 * typeprint.c (typedef_print): Ditto.
7833 * valops.c (value_of_variable, hand_function_call): Ditto.
7834 * cli/cli-cmds.c (edit_command, list_command): Ditto.
7835 * ada-typeprint.c: Update Copyright.
7836 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
7837 * tracepoint.c, cli/cli-cmds.c: Ditto.
7838
78392003-02-20 Kevin Buettner <[email protected]>
7840
7841 * frame.c (generic_unwind_get_saved_register): Make non-static.
7842 * frame.h (generic_unwind_get_saved_register): Declare.
7843 * mips-tdep.c (read_next_frame_reg): Fetch register from
7844 current regcache when frame is NULL.
7845 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
7846 that must be NULL.
7847 (mips_get_saved_register): Call generic_unwind_get_saved_register()
7848 instead of frame_register_unwind().
7849
78502003-02-20 Andrew Cagney <[email protected]>
7851
7852 * remote-sim.c (gdbsim_insert_breakpoint)
7853 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
7854 code.
7855
78562003-02-20 Andrew Cagney <[email protected]>
7857
7858 * remote.c (_initialize_remote): Add commands "set/show remote
7859 hardware-watchpoint-limit" and "set/show remote
7860 hardware-breakpoint-limit".
7861 (remote_hw_watchpoint_limit): Initialize to -1.
7862 (remote_hw_breakpoint_limit): Ditto.
7863 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
7864
78652003-02-19 Raoul Gough <[email protected]>
7866
7867 * coff-pe-read.c: New file - support reading of minimal symbols from a
7868 portable executable using the export table.
7869 * coff-pe-read.h: New file.
7870 * coffread.c: Include coff-pe-read.h.
7871 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
7872 debugging symbols found.
7873 * Makefile.in (SFILES): Add coff-pe-read.o.
7874 (coff_pe_read_h): Define.
7875 (COMMON_OBS): Add coff-pe-read.o.
7876 (coffread.o): Add coff_pe_read_h dependency.
7877 (coff-pe-read.o): New target.
7878
78792003-02-19 David Carlton <[email protected]>
7880
7881 * Makefile.in (SFILES): Add block.c.
7882 (block_h): New.
7883 (COMMON_OBS): Add block.o.
7884 (block.o): New.
7885 (x86-64-tdep.o): Add $(block_h).
7886 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
7887 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
7888 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
7889 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
7890 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
7891 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
7892 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
7893 * value.h: Add opaque declaration for struct block.
7894 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
7895 * ada-lang.h: Ditto.
7896 * x86-64-tdep.c: #include "block.h"
7897 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
7898 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
7899 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
7900 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
7901 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
7902 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
7903 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
7904 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
7905 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
7906 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
7907 * symtab.c (block_function): Ditto.
7908 (contained_in): Ditto.
7909 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
7910 block.h. Add opaque declaration for struct block.
7911 * symtab.h: Move block_function and contained_in declarations to
7912 block.h. Add opaque declarations for struct block, struct
7913 blockvector.
7914 (struct block): Move to block.h.
7915 (struct blockvector): Ditto.
7916 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
7917 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
7918 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
7919 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
7920 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
7921 Ditto.
7922 * block.c: New file.
7923 * block.h: New file.
7924
79252003-02-19 Theodore A. Roth <[email protected]>
7926
7927 * avr-tdep.c (avr_extract_return_value): Remove function.
7928 (avr_store_return_value): Remove function.
7929 (avr_extract_struct_value_address): Remove function.
7930 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
7931
79322003-02-19 Andrew Cagney <[email protected]>
7933
7934 * rs6000-tdep.c: Include "gdb_assert.h".
7935 (registers_e500): Add "acc" and "spefscr".
7936 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
7937 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
7938 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
7939 really is "r0".
7940 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
7941
79422003-02-18 Keith Seitz <[email protected]>
7943
7944 * Makefile.in: Add gdbtk-interps.c.
7945
79462003-02-18 Kevin Buettner <[email protected]>
7947
7948 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
7949 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
7950
79512003-02-18 Andrew Cagney <[email protected]>
7952
7953 * symtab.h (struct objfile): Add opaque declaration.
7954
79552003-02-18 Elena Zannoni <[email protected]>
7956
7957 From Jim Ingham <[email protected]>:
7958 * dbxread.c (process_one_symbol): Use last_function_start rather
7959 than function_start_offset to find the real beginning of the
7960 current function. The latter is just the text section offset on
7961 some systems, the former is always the real function start.
7962
79632003-02-17 Andrew Cagney <[email protected]>
7964
7965 * configure.in: Revert ${target} != ${host}.
7966
79672003-02-17 Andrew Cagney <[email protected]>
7968
7969 * configure.in (Makefile): Use the test ${target} != ${host},
7970 instead of the absence of the "nm.h" file, to determine of the
7971 configuration non-native.
7972 * configure: Regenerate.
7973
79742003-02-14 Elena Zannoni <[email protected]>
7975
7976 From Brian Ford <[email protected]>
7977
7978 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
7979 conditionalize tui_active test.
7980 (lookup_cmd_1): Ditto.
7981
79822003-02-14 Mark Kettenis <[email protected]>
7983
7984 * configure.in: Add check for _etext.
7985 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
7986 available.
7987 * config.in, configure: regenerated.
7988
79892003-02-14 Daniel Jacobowitz <[email protected]>
7990
7991 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
7992
79932003-02-14 Andrew Cagney <[email protected]>
7994
7995 * main.c (tui_version): Delete variable.
7996 (captured_main): When --tui, set interpreter_p to "tui" instead of
7997 enabling tui_version.
7998 * printcmd.c (display_command) [TUI]: Test tui_active instead of
7999 tui_version.
8000 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8001 * cli/cli-cmds.c (disassemble_command): Ditto.
8002 * defs.h (tui_version): Delete declaration.
8003 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8004 (tui-interp.o): Add rules.
8005 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8006
80072003-02-14 Christopher Faylor <[email protected]>
8008
8009 * win32-nat.c (register_loaded_dll): Correctly set address range for
8010 just-loaded dll.
8011
80122003-02-12 Jason Molenda ([email protected])
8013
8014 * symmisc.c (print_objfile_statistics): Include information about
8015 the number of psymtabs and symtabs in each object file.
8016
80172003-02-13 Keith R Seitz <[email protected]>
8018
8019 * main.h (struct captured_main_args): Add interpreter_p.
8020 * main.c (captured_main): Initialize interpreter_p from context.
8021 * gdb.c (main): Set interpreter_p argument.
8022 * Makefile.in (gdb.o): Add dependency for interps.h.
8023
80242003-02-12 Andrew Cagney <[email protected]>
8025
8026 * event-top.c (cli_command_loop): Delete declaration.
8027 (_initialize_event_loop): Delete function setting event_loop_hook.
8028 * event-top.h (cli_command_loop): Declare. Update copyright.
8029 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8030 * interps.c (current_interp_command_loop): When event_loop_p, call
8031 cli_command_loop.
8032
80332003-02-12 Andrew Cagney <[email protected]>
8034
8035 * interps.h (interp_command_loop_ftype): Change return type to
8036 void.
8037
80382003-02-12 Michal Ludvig <[email protected]>
8039
8040 * x86-64-tdep.c (x86_64_extract_return_value)
8041 (x86_64_store_return_value): Use regcache instead of regbuf.
8042 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8043 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8044
80452003-02-11 Andrew Cagney <[email protected]>
8046
8047 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8048 * aclocal.m4: Regenerate.
8049 * configure: Regenerate.
8050
8051 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8052 TCL_LD_SEARCH_FLAGS.
8053
80542003-02-10 Michal Ludvig <[email protected]>
8055
8056 * dwarf2cfi.c: Reindented.
8057
80582003-02-09 Andrew Cagney <[email protected]>
8059
8060 * interps.c (clear_interpreter_hooks): Convert function definition
8061 to ISO C.
8062
80632003-02-07 David Carlton <[email protected]>
8064
8065 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8066
80672003-02-07 Kevin Buettner <[email protected]>
8068
8069 * gdbtypes.h (struct main_type): Move ``length'' field from here...
8070 (struct type): ...to here.
8071 (TYPE_LENGTH): Adjust to reflect different location of ``length''
8072 field.
8073 * gdbtypes.c (make_qualified_type): Set length on newly created type.
8074 (replace_type): Set length on all type variants for a given type.
8075
80762003-02-07 Andrew Cagney <[email protected]>
8077
8078 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8079 <sys/stat.h>.
8080 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8081
80822003-02-06 Andrew Cagney <[email protected]>
8083
8084 * Makefile.in (symm-nat.o): Update dependencies.
8085 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8086 (lynx-nat.o, ia64-linux-nat.): Ditto.
8087 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
8088 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
8089 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
8090
8091 * Makefile.in (inflow_h): Define.
8092 (procfs.o, inflow.o, procfs.o): Update dependencies.
8093 * inftarg.c (child_stop): Delete extern declaration of
8094 inferior_process_group. Include "inflow.h".
8095 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
8096 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
8097 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
8098 (our_process_group, inferior_process_group): Extern declarations.
8099
8100 * procfs.c: Include "gdb_assert.h".
8101
8102 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8103 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
8104 * jv-typeprint.c (java_type_print_base): Ditto.
8105 * typeprint.c (typedef_print): Eliminate STREQ.
8106 * cli/cli-script.c (define_command, define_command): Ditto.
8107 * main.c (captured_main): Ditto.
8108 * values.c (lookup_internalvar): Ditto.
8109 * utils.c (safe_strerror, parse_escape): Eliminate assignment
8110 within `if' conditional.
8111 * linespec.c (decode_line_2): Ditto.
8112 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
8113 (bfd_openw_with_cleanup): Ditto.
8114
81152003-02-07 Mark Kettenis <[email protected]>
8116
8117 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
8118 legacy_extract_return_value and store_return_value to
8119 legacy_return_value.
8120
81212003-02-06 Raoul Gough <[email protected]>
8122
8123 * win32-nat.c (get_relocated_section_addrs): New function. Find
8124 section load addresses for symbol handling in relocated DLLs.
8125 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
8126
81272003-02-05 Fred Fish <[email protected]>
8128
8129 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
8130 '=' and '!='.
8131 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
8132 with '&' and '=='.
8133 (angel_RDI_info): Ditto.
8134 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
8135 with '&' and '!='.
8136 (threads_continue_all_with_signals): Ditto.
8137
81382003-02-05 Jim Ingham <[email protected]>
8139 Keith Seitz <[email protected]>
8140 Elena Zannoni <[email protected]>
8141 Andrew Cagney <[email protected]>
8142
8143 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
8144 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
8145 (SUBDIR_MI_OBS): Add "mi-interp.o".
8146 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
8147 (SFILES): Add "interps.c".
8148 (COMMON_OBS): Add "interps.o".
8149 (interps_h, mi_main_h): Define.
8150 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
8151 (mi-main.o, main.o, event-top.o): Update dependencies.
8152 * cli/cli-interp.c: New file.
8153 * interps.h, interps.c: New files.
8154 * top.c: (gdb_init): Don't install the default interpreter, handed
8155 by captured_main.
8156 * main.c: Include "interps.h".
8157 (interpreter_p): Note that it should malloc'ed.
8158 (captured_command_loop): Call current_interp_command_loop.
8159 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
8160 xfree and xstrdup when updating interpreter_p. Install the
8161 default interpreter. Add hack to stop mi1's copyright notice
8162 being encoded.
8163 * event-top.h (gdb_setup_readline): Declare.
8164 (gdb_disable_readline): Declare.
8165 * event-top.c: Include "interps.h".
8166 (display_gdb_prompt): Call current_interp_display_prompt_p.
8167 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
8168 gdb_stdlog, and gdb_stdtarg.
8169 (_initialize_event_loop): Don't call gdb_setup_readline.
8170 * cli-out.c (cli_out_set_stream): New function.
8171 * cli-out.h (cli_out_set_stream): Declare.
8172
81732003-02-06 Mark Kettenis <[email protected]>
8174
8175 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
8176 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
8177 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
8178 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
8179 config/i386/i386v42mp.mt: Removed.
8180
81812003-02-05 Mark Kettenis <[email protected]>
8182
8183 * configure.tgt (*-*-solaris*): Set gdb_osabi to
8184 GDB_OSABI_SOLARIS.
8185
81862003-02-05 Michael Chastain <[email protected]>
8187
8188 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
8189 2.12.1 and earlier versions.
8190
81912003-02-05 Andrew Cagney <[email protected]>
8192
8193 Remove orphaned hosts, targets and files.
8194 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
8195 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
8196 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
8197 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
8198 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
8199 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
8200 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
8201 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
8202 * config/sparc/tm-sp64sim.h: Delete.
8203 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
8204 hosts.
8205 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
8206 mips*-dec-mach3* targets.
8207
82082003-02-04 Michael Chastain <[email protected]>
8209
8210 * NEWS: Fix typo: sepcifying -> specifying.
8211
82122003-02-04 Michael Chastain <[email protected]>
8213
8214 * dwarfread.c: Add documentation on the state of dwarf-1,
8215 looking towards obsoletion.
8216
82172003-02-03 Michael Chastain <[email protected]>
8218
8219 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
8220 gdb/testsuite/gdb.c++/pr-1023.exp.
8221
82222003-02-04 Andrew Cagney <[email protected]>
8223
8224 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
8225 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
8226
8227 * utils.c (init_page_info): Delete reference to MPW in comments.
8228 * main.c (captured_main): Delete #ifdef MPW.
8229
82302003-02-04 Andrew Cagney <[email protected]>
8231
8232 * NEWS: Note that the m32r-*-elf* is obsolete.
8233 * monitor.c (monitor_expect): Obsolete reference to m32r.
8234 * configure.tgt: Mark m32r-*-elf* as obsolete.
8235 * MAINTAINERS: Mark m32k as obsolete.
8236 * m32r-rom.c: Obsolete file.
8237 * config/m32r/m32r.mt: Obsolete file.
8238 * config/m32r/tm-m32r.h: Obsolete file.
8239 * m32r-stub.c: Obsolete file.
8240 * m32r-tdep.c: Obsolete file.
8241
82422003-02-04 Andrew Cagney <[email protected]>
8243
8244 * NEWS: Mention that the z8k-zilog-none is obsolete.
8245 * MAINTAINERS: Mark z8k as obsolete.
8246 * configure.tgt: Obsolete the z8k-*-coff* target.
8247 * config/z8k/z8k.mt: Obsolete file.
8248 * config/z8k/tm-z8k.h: Obsolete file.
8249 * z8k-tdep.c: Obsolete file.
8250
82512003-02-04 Andrew Cagney <[email protected]>
8252
8253 * NEWS: Mention that the mn10200-elf is obsolete.
8254 * configure.tgt: Obsolete mn10200-*-* target.
8255 * breakpoint.c (update_breakpoints_after_exec): Update comment to
8256 mention that the mn10200 is obsolete.
8257 * breakpoint.h: Ditto.
8258 * MAINTAINERS: Mark the mn10200-elf as obsolete.
8259 * config/mn10200/mn10200.mt: Obsolete file.
8260 * config/mn10200/tm-mn10200.h: Obsolete file.
8261 * mn10200-tdep.c: Obsolete file.
8262
82632003-02-04 Andrew Cagney <[email protected]>
8264
8265 * MAINTAINERS: Mark h8500 as obsolete.
8266 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
8267 * findvar.c (value_from_register): Ditto.
8268 * h8500-tdep.c: Mark file as obsolete.
8269 * config/h8500/h8500.mt: Ditto.
8270 * config/h8500/tm-h8500.h: Ditto.
8271 * NEWS: Mention that h8500 is obsolete.
8272
82732003-02-04 David Carlton <[email protected]>
8274
8275 * objfiles.c (allocate_objfile): Always set name. Add comment at
8276 start of function.
8277 * jv-lang.c (get_dynamics_objfile): Add comment.
8278
82792003-02-04 David Carlton <[email protected]>
8280
8281 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
8282 * printcmd.c (build_address_symbolic): Replace uses of
8283 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
8284 SYMBOL_NAME, and asm_demangle.
8285 Update copyright.
8286
82872003-02-04 David Carlton <[email protected]>
8288
8289 * linespec.c (decode_compound): Extract code into
8290 lookup_prefix_sym.
8291 (lookup_prefix_sym): New function.
8292
82932003-02-04 David Carlton <[email protected]>
8294
8295 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
8296 FLOAT_COERCION_BADNESS.
8297 * gdbtypes.c (rank_one_type): Replace all uses of
8298 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
8299
83002003-02-04 Jim Blandy <[email protected]>
8301
8302 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
8303 section, let dwarf_macinfo_section point to it, not
8304 dwarf_loc_section.
8305
83062003-02-04 Daniel Jacobowitz <[email protected]>
8307
8308 Pointed out by Anton Blanchard <[email protected]>.
8309 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
8310 (ppc_linux_at_sigtramp_return_path): Use it.
8311
83122003-02-04 Daniel Jacobowitz <[email protected]>
8313
8314 * defs.h (streq): Add prototype.
8315 * utils.c (streq): New function.
8316
8317 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
8318 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
8319 * mdebugread.c (new_symbol): Likewise.
8320 * stabsread.c (define_symbol): Likewise.
8321 * coffread.c (process_coff_symbol): Likewise.
8322 * dwarfread.c (new_symbol): Likewise.
8323
8324 * minsyms.c (prim_record_minimal_symbol_and_info): Use
8325 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
8326 here.
8327 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
8328 SYMBOL_INIT_DEMANGLED_NAME.
8329 * objfiles.c: Include "hashtab.h".
8330 (allocate_objfile): Call htab_set_functions_ex for the
8331 demangled_names_hash.
8332 (free_objfile): Call htab_delete for the demangled_names_hash.
8333 * objfiles.h (struct htab): Add declaration.
8334 (struct objfile): Add demangled_names_hash.
8335 * symfile.c: Include "hashtab.h".
8336 (reread_symbols): Call htab_delete for the demangled_names_hash.
8337 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
8338 SYMBOL_NAME in the bcache.
8339 * symtab.c: Include "hashtab.h". Update comments.
8340 (create_demangled_names_hash, symbol_set_names): New functions.
8341 (symbol_find_demangled_name): New function, broken out from
8342 symbol_init_demangled_names.
8343 (symbol_init_demangled_names): Use it.
8344 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
8345 (SYMBOL_SET_NAMES): New macro.
8346 (symbol_set_names): Add prototype.
8347
83482003-02-03 Jim Blandy <[email protected]>
8349
8350 Use a single, consistent representation for an empty minimal
8351 symbol table in an objfile.
8352 * objfiles.c (terminate_minimal_symbol_table): New function.
8353 (allocate_objfile): Call it.
8354 * objfiles.h (terminate_minimal_symbol_table): New declaration.
8355 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8356 non-NULL.
8357 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
8358 objfile has minimal symbols, compare minimal_symbol_count to zero,
8359 instead of comparing msymbols with NULL.
8360 * objfiles.c (have_minimal_symbols): Same.
8361 * solib-sunos.c (solib_add_common_symbols): Call
8362 terminate_minimal_symbol_table.
8363 * symfile.c (reread_symbols): Same.
8364
83652003-02-03 Kevin Buettner <[email protected]>
8366
8367 * s390-tdep.c (s390_address_class_type_flags)
8368 (s390_address_class_type_flags_to_name)
8369 (s390_address_class_name_to_type_flags): New functions.
8370 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
8371 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
8372
83732003-02-03 Michael Snyder <[email protected]>
8374
8375 * arm-tdep.c: Fix spell-o in comment.
8376
83772003-02-03 Michal Ludvig <[email protected]>
8378
8379 * dwarf2cfi.c (pointer_encoding): Added new parameter.
8380 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8381 error messages to contain BFD filename.
8382
83832003-02-02 Elena Zannoni <[email protected]>
8384
8385 Fix PR gdb/742 gdb/743 gdb/877
8386 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
8387 (do_mixed_source_and_assembly): Use
8388 make_cleanup_ui_out_tuple_begin_end and
8389 make_cleanup_ui_out_tuple_begin_end.
8390 (do_mixed_source_and_assembly): Ditto.
8391 * thread.c (do_captured_list_thread_ids): Ditto.
8392 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
8393 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
8394 ui_out_tuple_end): Delete prototypes.
8395 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
8396 ui_out_list_end, ui_out_tuple_end): Delete.
8397
8398 From Kevin Buettner <[email protected]>:
8399 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
8400 * ui-out.c (make_cleanup_ui_out_table_begin_end)
8401 (do_cleanup_table_end): New functions.
8402 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
8403 Use cleanups to invoke_ui_out_tuple_end().
8404 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
8405 * cli/cli-setshow.c (cmd_show_list): Use
8406 make_cleanup_ui_out_tuple_begin_end.
8407
84082003-02-02 Andrew Cagney <[email protected]>
8409
8410 * frame.c (frame_unwind_register): New function.
8411 (frame_unwind_unsigned_register): Use.
8412 (frame_unwind_signed_register): Use.
8413 (frame_read_register): New function.
8414 * frame.h (frame_unwind_register): Declare.
8415 (frame_read_register): Declare.
8416
8417 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
8418 and frame_unwind_register instead of read_memory, write_register
8419 and deprecated_write_register_bytes.
8420
84212003-02-02 Andrew Cagney <[email protected]>
8422
8423 * frame.h: Note that namelen can be negative.
8424 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
8425 NAME's length.
8426
8427 * NEWS: Mention that the d10v's `regs' command is deprecated.
8428 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
8429 (d10v_print_registers_info): New function.
8430 (show_regs): Call d10v_print_registers_info.
8431 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
8432
84332003-02-02 Mark Kettenis <[email protected]>
8434
8435 * stack.c (print_frame_info): Restore call to annotate_frame_begin
8436 lost in the previous patch.
8437
84382003-02-01 Andrew Cagney <[email protected]>
8439
8440 From 2002-11-09 Jason Molenda ([email protected])
8441 * stack.c (print_frame_info_base): Output complete FRAME tuple
8442 for synthesized frames.
8443
84442003-02-02 Andrew Cagney <[email protected]>
8445
8446 * mips-nat.c (zerobuf): Delete.
8447 (fetch_inferior_registers): Alloc local zerobuf.
8448 (fetch_core_registers): Alloc local zerobuf.
8449 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
8450 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
8451 * thread-db.c (thread_db_store_registers): Ditto.
8452 * sh-tdep.c (sh_do_register): Ditto.
8453 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
8454 * remote-sim.c (gdbsim_store_register): Ditto.
8455 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8456 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8457 * monitor.c (monitor_supply_register): Ditto.
8458 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
8459 * mips-nat.c (fetch_inferior_registers): Ditto.
8460 * m68klinux-nat.c (fetch_register): Ditto.
8461 * lynx-nat.c (fetch_inferior_registers): Ditto.
8462 (fetch_inferior_registers): Ditto.
8463 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
8464 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8465 (hpux_thread_store_registers): Ditto.
8466 * hppah-nat.c (fetch_register): Ditto.
8467 * hppab-nat.c (fetch_register): Ditto.
8468 * hppa-tdep.c (pa_register_look_aside): Ditto.
8469 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
8470 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
8471
84722003-02-01 Andrew Cagney <[email protected]>
8473
8474 * gdbarch.sh: Explictly specify all method levels. When a
8475 variable with an empty level, provide a non-multi-arch default.
8476 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
8477 * gdbarch.h: Re-generate.
8478 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
8479 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
8480
84812003-02-01 Andrew Cagney <[email protected]>
8482
8483 * defs.h (host_pointer_to_address): Delete declaration.
8484 (address_to_host_pointer): Delete declaration.
8485 * utils.c (host_pointer_to_address): Delete function.
8486 (address_to_host_pointer): Delete function.
8487 * procfs.c (procfs_address_to_host_pointer): New function.
8488 * procfs.c (proc_set_watchpoint): Use.
8489 (procfs_can_use_hw_breakpoint): Update comments.
8490 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
8491 (som_solib_add): Use.
8492 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
8493 * hppa-tdep.c (unwind_command): Use.
8494
84952003-02-01 Andrew Cagney <[email protected]>
8496
8497 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
8498 strlen d_name.
8499
8500 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
8501 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
8502 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
8503 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
8504 (define_symbol): Update.
8505 * symfile.c (generic_load): Remove references to nindy.
8506 * symtab.c: Remove references to nindy.
8507
85082003-02-01 Andrew Cagney <[email protected]>
8509
8510 * infcmd.c (print_float_info): Delete code conditional on
8511 FLOAT_INFO.
8512 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
8513 * config/m68k/nm-apollo68b.h: Ditto.
8514 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
8515 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
8516 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
8517
85182003-02-01 Mark Kettenis <[email protected]>
8519
8520 * config/i386/tm-i386os9k.h: Removed.
8521
8522 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
8523 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
8524 they're identical to i[3456]86-*-sysv* now.
8525 * config/i386/i386v32.mh: Removed.
8526 * config/i386/xm-i386v32.h: Removed.
8527 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
8528
8529 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
8530
8531 * config/i386/i386dgux.mh: Removed.
8532 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
8533
8534 * configure.in: Fix typo.
8535 * configure: Regenerated.
8536
85372003-01-31 David Carlton <[email protected]>
8538
8539 * dwarf2read.c (dwarf2_locate_sections): Set
8540 dwarf_ranges_section.
8541
85422003-01-31 Andrew Cagney <[email protected]>
8543
8544 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
8545 * utils.c: Update comments documenting legitimate uses of PTR.
8546
8547 * utils.c: Re-indent.
8548
8549 * config/djgpp/fnchange.lst: Delete nindy files.
8550 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
8551 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
8552 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
8553 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
8554 * nindy-share/README, nindy-share/Onindy.c: Delete files.
8555 * nindy-tdep.c, nindy-share/Makefile: Delete files.
8556 * Makefile.in (init.c): Remove nindy references.
8557 (saber_gdb): Delete rule.
8558 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
8559 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
8560 and a68v-nat.c.
8561 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
8562 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
8563 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
8564 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
8565 nindy-share/stop.h.
8566 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
8567 * saber.suppress: Delete file.
8568
85692003-01-31 Daniel Jacobowitz <[email protected]>
8570
8571 * dbxread.c (stabs_data): New static variable.
8572 (fill_symbuf): Support an in-memory buffer for stabs data.
8573 (stabs_seek): New function.
8574 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
8575 (read_ofile_symtab): Use stabs_seek.
8576 (elfstab_build_psymtabs): Take an asection* instead of
8577 an offset and size. Relocate the stabs data if necessary.
8578 Save the section* for dbx_psymtab_to_symtab.
8579 * dwarf2read.c: Add section variables for each debug section.
8580 (dwarf2_locate_sections): Fill them in.
8581 (dwarf2_read_section): Take an asection* argument.
8582 Relocate the section contents if necessary.
8583 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
8584 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
8585 it to dwarf2_read_section.
8586 (dwarf2_build_frame_info): Update callers.
8587 * elfread.c (elf_symfile_read): Update call to
8588 elfstab_build_psymtabs.
8589 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
8590 (DBX_STAB_SECTION): New macro.
8591 * stabsread.h (elfstab_build_psymtabs): Update prototype.
8592 * symfile.c (symfile_dummy_outputs): New function.
8593 (symfile_relocate_debug_section): New function.
8594 * symfile.h (symfile_relocate_debug_section): Add prototype.
8595
85962003-01-31 Richard Henderson <[email protected]>
8597
8598 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
8599 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
8600 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
8601 * alpha-tdep.c (alpha_register_name): Add "unique".
8602 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
8603 (ALPHA_UNIQUE_REGNUM): New.
8604 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
8605
86062003-01-31 Andrew Cagney <[email protected]>
8607
8608 * README: Remove reference to Ericsson 1800 monitor.
8609 * Makefile.in (remote-es.o): Delete rule.
8610 (ALLDEPFILES): Delete remote-es.c.
8611 * remote-es.c: Delete file.
8612 * config/m68k/es1800.mt: Delete file.
8613 * config/djgpp/fnchange.lst: Update.
8614 * configure.tgt: Delete m68*-ericsson-* target.
8615
86162003-01-31 Adam Fedor <[email protected]>
8617
8618 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
8619 Remove duplicate/shadowing variable of same name.
8620
86212003-01-30 Jim Blandy <[email protected]>
8622
8623 * symfile.c (find_separate_debug_file): Assert that the objfile's
8624 directory name we compute ends with a slash, and then assume that
8625 that's so everywhere we use it.
8626
86272003-01-30 Daniel Jacobowitz <[email protected]>
8628
8629 * valops.c (value_assign): Flush frame cache after stores to memory
8630 also.
8631
86322003-01-30 Andrew Cagney <[email protected]>
8633
8634 * Makefile.in (mon960-rom.o): Delete rule.
8635 * mon960-rom.c: Delete file.
8636
86372003-01-30 Andrew Cagney <[email protected]>
8638
8639 * d10v-tdep.c: Include "frame-unwind.h".
8640 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
8641 list.
8642 (next_addr, uses_frame): Delete.
8643 (struct d10v_unwind_cache): Define.
8644 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
8645 Use info instead of next_addr and uses_frame globals.
8646 (d10v_frame_init_saved_regs): Delete function.
8647 (d10v_init_extra_frame_info): Delete function.
8648 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
8649 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
8650 init_frame_pc or frame_saved_pc.
8651 (d10v_pop_frame): Delete function.
8652 (do_d10v_pop_frame): Delete function.
8653 (d10v_frame_chain): Delete function.
8654 (d10v_frame_chain_valid): Delete function.
8655 (d10v_frame_pc_unwind): New function.
8656 (d10v_frame_id_unwind): New function.
8657 (saved_regs_unwinder): New function.
8658 (d10v_frame_register_unwind): New function.
8659 (d10v_frame_pop): New function.
8660 (d10v_frame_unwind): New variable.
8661 (d10v_frame_p): New function.
8662 (d10v_frame_saved_pc): Delete function.
8663 * Makefile.in (d10v-tdep.o): Update dependencies.
8664
86652003-01-30 J. Brobecker <[email protected]>
8666
8667 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
8668 causing some regressions due to a change in the default value
8669 for this macro.
8670
86712003-01-29 Richard Henderson <[email protected]>
8672 Elena Zannoni <[email protected]>
8673 Daniel Jacobowitz <[email protected]>
8674
8675 Fix PR gdb/961.
8676 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
8677 variables.
8678 (RANGES_SECTION): New.
8679 (dwarf_ranges_buffer): New variable.
8680 (struct comp_unit_head): Add member "die".
8681 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
8682 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
8683 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
8684 (dwarf2_locate_sections): Likewise.
8685 (dwarf2_build_psymtabs): Read .debug_ranges.
8686 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
8687 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
8688 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
8689 Look for DW_AT_ranges and return the bounding box.
8690
86912003-01-29 Brian Ford <[email protected]>
8692
8693 * win32-nat.c (cygwin_pid): Removed as unused.
8694 (child_attach): Try fall back to Cygwin pid.
8695
86962003-01-29 Jim Blandy <[email protected]>
8697
8698 * objfiles.h (struct objfile): Doc fix.
8699
87002003-01-29 Andrew Cagney <[email protected]>
8701
8702 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
8703 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
8704 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
8705 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
8706 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
8707 (FRAME_SAVED_PC): Change to a function with predicate.
8708 * gdbarch.h, gdbarch.c: Re-generate.
8709
87102003-01-28 Andrew Cagney <[email protected]>
8711
8712 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
8713
8714 * complaints.c (complain): Delete function.
8715 * complaints.h (struct deprecated_complaint): Delete definition.
8716 (complain): Delete declaration.
8717
87182003-01-28 Kevin Buettner <[email protected]>
8719
8720 * mips-tdep.c (mips_init_extra_frame_info): Return early for
8721 dummy frames.
8722
87232003-01-27 Andrew Cagney <[email protected]>
8724
8725 * sentinel-frame.h, sentinel-frame.c: New files.
8726 * Makefile.in (frame.o): Update dependencies.
8727 (SFILES): Add sentinel-frame.c.
8728 (sentinel_frame_h): Define.
8729 (COMMON_OBS): Add sentinel-frame.o.
8730 (sentinel-frame.o): Specify dependencies.
8731 * frame.c: Include "sentinel-frame.h".
8732 (frame_register_unwind): Rewrite assuming that there is always a a
8733 ->next frame.
8734 (frame_register, generic_unwind_get_saved_register): Ditto.
8735 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
8736 (create_sentinel_frame, unwind_to_current_frame): New functions.
8737 (get_current_frame): Rewrite using create_sentinel_frame and
8738 unwind_to_current_frame. When possible, always create a frame.
8739 (create_new_frame): Set next to the sentinel frame.
8740 (get_next_frame): Rewrite. Don't go below the level 0 frame.
8741 (deprecated_update_frame_pc_hack): Update the next frame's PC and
8742 ID cache when necessary.
8743 (frame_saved_regs_id_unwind): Use frame_relative_level.
8744 (deprecated_generic_get_saved_register): Use frame_relative_level,
8745 get_frame_saved_regs, get_frame_pc, get_frame_base and
8746 get_next_frame.
8747 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
8748 frame_register.
8749
87502003-01-27 Daniel Jacobowitz <[email protected]>
8751
8752 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
8753
87542003-01-27 Daniel Jacobowitz <[email protected]>
8755
8756 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
8757 (maintenance_set_profile_cmd): Use error () instead of warning ().
8758
87592003-01-27 Daniel Jacobowitz <[email protected]>
8760
8761 * configure.in: Check that -pg works if using --enable-profiling.
8762 Check for monstartup and _mcleanup regardless of --enable-profiling.
8763 * maint.c: Check for monstartup and _mcleanup before using them.
8764 * config.in: Regenerated.
8765 * configure: Regenerated.
8766
87672003-01-24 Nick Clifton <[email protected]>
8768
8769 * Add sh2e support:
8770
8771 2002-04-02 Elena Zannoni <[email protected]>
8772
8773 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
8774 (sh2e_show_regs): New.
8775 (sh_gdbarch_init): Handle bfd_mach_sh2e.
8776 * config/sh/tm-sh.h: Added sh2e to comments.
8777
87782003-01-23 Jim Blandy <[email protected]>
8779
8780 * symfile.c (syms_from_objfile): Don't print the "(no debugging
8781 symbols found)" message here; we haven't checked for a separate
8782 debug info file yet, so we don't know yet.
8783 (symbol_file_add_with_addrs_or_offsets): Print it here, after
8784 we've looked everywhere. Also, there's no need to print a special
8785 message when we're loading the separate debug info file: the one
8786 symbol_file_add prints is fine.
8787
87882003-01-23 Alexander Larsson <[email protected]>
8789 Jim Blandy <[email protected]>
8790
8791 Add support for executables whose debug info has been separated
8792 out into a separate file, leaving only a link behind.
8793 * objfiles.h (struct objfile): New fields: separate_debug_objfile
8794 and separate_debug_objfile_backlink.
8795 (put_objfile_before): New declaration.
8796 * symfile.c: #include "filenames.h".
8797 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
8798 debug info in a separate file, read that, too. Save the addrs
8799 argument, so we can use it again to read the separated debug info;
8800 syms_from_objfile modifies the table we pass it.
8801 (reread_symbols): After re-reading an objfile, call
8802 reread_separate_symbols to refresh its separate debug info
8803 objfile, if it has one.
8804 (reread_separate_symbols, find_separate_debug_file,
8805 get_debug_link_info, separate_debug_file_exists): New functions.
8806 (debug_file_directory): New global var.
8807 (_initialize_symfile): Initialize debug_file_directory, and
8808 provide the new `set debug-file-directory' command to let the user
8809 change it.
8810 * objfiles.c (free_objfile): If this objfile has its debug info in
8811 a separate objfile, free that one too. If this is itself a
8812 separate debug info objfile, clear our parent's backlink.
8813 (put_objfile_before): New function.
8814 * utils.c (gnu_debuglink_crc32): New function.
8815 * defs.h (gnu_debuglink_crc32): New declaration.
8816 * Makefile.in (symfile.o): Note dependency on "filenames.h".
8817 * configure.in: Handle --with-separate-debug-dir config option.
8818 * acinclude.m4 (AC_DEFINE_DIR): New macro.
8819 * acconfig.h (DEBUGDIR): New macro.
8820 * configure, aclocal.m4, config.in: Regenerated.
8821
88222003-01-22 Jim Blandy <[email protected]>
8823
8824 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
8825 like the old symbol_file_add, but taking new arguments: you can
8826 now pass in either a `struct section_addr_info' list to say where
8827 each section is loaded, or a `struct section_offsets' table. Pass
8828 these new arguments through to syms_from_objfile as appropriate.
8829 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
8830 with the appropriate quiescent values for the new arguments.
8831
8832 * symfile.c: #include "gdb_assert.h".
8833 (syms_from_objfile): Add the ability to pass in a section offset
8834 table directly, as an alternative to the section_addr_info table.
8835 Document arguments better.
8836 (symbol_file_add): Pass extra arguments to syms_from_objfile.
8837 * symfile.h (syms_from_objfile): Update declaration.
8838 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
8839 syms_from_objfile.
8840 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
8841
88422003-01-22 Daniel Jacobowitz <[email protected]>
8843
8844 Original patch by Tom Tromey <[email protected]> and
8845 Jason Molenda <[email protected]>.
8846 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
8847 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
8848 * NEWS: Mention profiling.
8849 * configure.in (--enable-gdbtk): Fix typo.
8850 (--enable-profiling): New. Set PROFILE_CFLAGS.
8851 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
8852 Fill in function.
8853 (profiling_state): New variable.
8854 (mcleanup_wrapper): New function.
8855 (_initialize_maint): Remove NOTYET, fix call to
8856 add_setshow_boolean_cmd for "maint set profile".
8857 * configure: Regenerated.
8858
88592003-01-21 Martin M. Hunt <[email protected]>
8860
8861 * Makefile.in (install-gdbtk): Install PNG images too.
8862
88632003-01-21 Andrew Cagney <[email protected]>
8864
8865 * exec.c (text_start): Delete global variable.
8866 (exec_file_attach): Make text_start local to the function.
8867 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
8868 * valops.c (hand_function_call): Delete code that handles
8869 BEFORE_TEXT_END and AFTER_TEXT_END.
8870 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
8871 of CALL_DUMMY_LOCATION.
8872 * gdbarch.c: Regenerate.
8873 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
8874 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
8875 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
8876 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
8877 (text_end): Delete extern declaration.
8878
88792003-01-21 Andrew Cagney <[email protected]>
8880
8881 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
8882 * blockframe.c (backtrace_below_main): Move to "frame.c".
8883 (frame_chain_valid): Delete check for backtrace_below_main.
8884 (_initialize_blockframe): Delete initialization, move ``set
8885 backtrace-below-main'' command to "frame.c".
8886 (do_flush_frames_sfunc): Delete function.
8887 * frame.c: Include "command.h" and "gdbcmd.h".
8888 (frame_type_from_pc): New function.
8889 (create_new_frame): Use frame_type_from_pc.
8890 (legacy_get_prev_frame): New function.
8891 (get_prev_frame): Rewrite. When an old style frame, call
8892 legacy_get_prev_frame. Otherwize, unwind the PC first.
8893 (_initialize_frame): Add ``set backtrace-below-main'' command.
8894 * Makefile.in (frame.o): Update dependencies.
8895
88962003-01-19 Andrew Cagney <[email protected]>
8897
8898 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
8899 DEPRECATED_REGISTERS_INFO.
8900
89012003-01-19 Andrew Cagney <[email protected]>
8902
8903 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
8904 Maintainers'. Update `Various Maintainers'.
8905
89062003-01-19 Andrew Cagney <[email protected]>
8907
8908 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
8909 * gdbarch.sh (POP_FRAME): Change to function with predicate.
8910 Suppress actual parameters when `-'.
8911 * gdbarch.h, gdbarch.c: Regenerate.
8912
89132003-01-19 Andrew Cagney <[email protected]>
8914
8915 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
8916 code handling dummy frames.
8917
89182003-01-19 Andrew Cagney <[email protected]>
8919
8920 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
8921 (struct frame_unwind): Add field pop.
8922 * frame.h (frame_pop): Declare.
8923 * frame.c (frame_saved_regs_pop): New function.
8924 (trad_frame_unwinder): Add frame_saved_regs_pop.
8925 (frame_pop): New function.
8926 * dummy-frame.c (dummy_frame_pop): New function.
8927 (discard_innermost_dummy): New function.
8928 (generic_pop_dummy_frame): Use discard_innermost_dummy.
8929 (dummy_frame_unwind): Add dummy_frame_pop.
8930 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
8931 * valops.c (hand_function_call): Ditto.
8932 * stack.c (return_command): Ditto.
8933
89342003-01-18 Andrew Cagney <[email protected]>
8935
8936 * cris-tdep.c: Fix function declaration indentation.
8937 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
8938 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
8939 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
8940 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
8941 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
8942 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
8943
89442003-01-18 Michael Chastain <[email protected]>
8945
8946 * README (Unpacking and Installation -- quick overview):
8947 Warn against ".../gdb-5.3/gdb/configure".
8948
89492003-01-18 Andrew Cagney <[email protected]>
8950
8951 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
8952 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
8953 (struct frame_unwind): Declare opaque.
8954 (dummy_frame_p): Declare function.
8955 * dummy-frame.c (dummy_frame_id_unwind): Make static.
8956 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
8957 * dummy-frame.c: Include "frame-unwind.h".
8958 (dummy_frame_p): New function.
8959 (dummy_frame_unwind): New variable.
8960 * frame.c: Include "frame-unwind.h".
8961 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
8962 to use the new unwind field.
8963 (set_unwind_by_pc): Delete function.
8964 (create_new_frame, get_prev_frame): Set unwind field using
8965 frame_unwind_find_by_pc.
8966 (trad_frame_unwind, trad_frame_unwinder): New variables.
8967 * frame.h (trad_frame_unwind): Declare variable.
8968 (frame_id_unwind_ftype): Delete declaration.
8969 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
8970 (struct frame_unwind): Declare opaque.
8971 (struct frame_info): Replace the fields id_unwind, pc_unwind and
8972 register_unwind with a single unwind pointer.
8973 * frame-unwind.h, frame-unwind.c: New files.
8974 * Makefile.in (SFILES): Add frame-unwind.c.
8975 (frame_unwind_h): Define.
8976 (COMMON_OBS): Add frame-unwind.o.
8977 (frame-unwind.o): Specify dependencies.
8978 (frame.o, dummy-frame.o): Update dependencies.
8979
89802003-01-18 Andrew Cagney <[email protected]>
8981
8982 * ada-valprint.c: Eliminate PTR.
8983 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
8984 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
8985 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
8986 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
8987 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
8988 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
8989 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8990
89912003-01-17 Andrew Cagney <[email protected]>
8992
8993 * main.c (captured_main): Don't use PTR.
8994 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
8995 * gdbtypes.c (lookup_primitive_typename): Ditto.
8996 (lookup_struct_elt_type): Ditto.
8997 * f-valprint.c (info_common_command): Ditto.
8998 (list_all_visible_commons): Ditto.
8999 * jv-typeprint.c (java_type_print_base): Ditto.
9000
9001 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9002 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9003 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9004 i386-interix-nat.c and i386-interix-tdep.c. Rename
9005 m68klinux-nat.c and m68klinux-tdep.c. Rename
9006 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9007 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9008 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9009 * main.c (captured_main): Use xfree, not free.
9010
90112003-01-16 Andrew Cagney <[email protected]>
9012
9013 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9014 ID back using a parameter.
9015 * frame.c (frame_id_unwind): Update call.
9016 (frame_saved_regs_id_unwind): Update.
9017 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9018 * dummy-frame.h (struct frame_id): Add opaque declaration.
9019 (dummy_frame_id_unwind): Update declaration.
9020
90212003-01-15 Andrew Cagney <[email protected]>
9022
9023 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9024
90252003-01-15 Stephen P. Smith <[email protected]>
9026
9027 * MAINTAINERS (Stephen P. Smith): Updated email address.
9028
90292003-01-14 Elena Zannoni <[email protected]>
9030
9031 Fix PR gdb/898
9032 * breakpoint.c (until_break_command): Add new argument. Use it to
9033 decide whether to stop only at the current frame or not.
9034 * breakpoint.h (until_break_command): Update prototype.
9035 * infcmd.c (until_command): Add new argument to until_break_command
9036 call.
9037 (advance_command): New function.
9038 (_initialize_infcmd): Update help string for 'until' command.
9039 Add new 'advance' command.
9040
90412003-01-14 David Carlton <[email protected]>
9042
9043 * linespec.c (decode_line_1): Normalize comments.
9044 (set_flags): Ditto.
9045 (locate_first_half): Ditto.
9046 (decode_compound): Ditto.
9047 (symtab_from_filename): Ditto.
9048 (decode_all_digits): Ditto.
9049 (decode_dollar): Ditto.
9050 (find_methods): Ditto.
9051 (find_toplevel_char): Ditto.
9052
90532003-01-13 Andrew Cagney <[email protected]>
9054
9055 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9056 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9057 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9058 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9059 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9060 * language.c, language.h, m32r-tdep.c: Update copyright.
9061 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9062 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9063 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9064 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9065 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9066 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9067
90682003-01-13 Elena Zannoni <[email protected]>
9069
9070 * stabsread.h (process_later, resolve_cfront_continuation):
9071 Obsolete.
9072 Update copyright years.
9073 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9074 Update copyright year.
9075 * dbxread.c(struct cont_elem): Obsolete.
9076 (process_later, process_now): Obsolete functions.
9077 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9078 Update copyright year.
9079 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9080 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9081 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9082 (parse_partial_symbols): Obsolete cfront support.
9083 * stabsread.c
9084 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9085 macros.
9086 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9087 read_cfront_baseclasses, read_cfront_member_functions,
9088 resolve_cfront_continuation,read_cfront_static_fields,
9089 copy_cfront_struct_fields): Obsolete functions.
9090 (define_symbol, read_one_struct_field): Obsolete cfront support.
9091 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
9092 Update Copyright year.
9093
90942003-01-13 Elena Zannoni <[email protected]>
9095
9096 * stack.c (print_frame_info, print_stack_frame_base_stub,
9097 print_stack_frame_base, show_and_print_stack_frame_stub,
9098 show_and_print_stack_frame, print_only_stack_frame_stub,
9099 print_only_stack_frame): Delete functions.
9100 (print_stack_frame_stub): Call print_frame_info instead of
9101 print_frame_info_base.
9102 (print_frame_info_base): Rename to print_frame_info.
9103 (backtrace_command_1): Call print_frame_info, instead of
9104 print_frame_info_base.
9105 (current_frame_command): Call print_stack_frame, instead of
9106 print_only_stack_frame.
9107 (frame_command): Call print_stack_frame, instead of
9108 show_and_print_stack_frame.
9109 (up_command): Ditto.
9110 (down_command): Ditto.
9111 * frame.h (print_only_stack_frame): Delete prototype.
9112 * infrun.c (normal_stop): Call print_stack_frame, instead of
9113 show_and_print_stack_frame.
9114 * thread.c (info_threads_command): Call print_stack_frame, instead
9115 of print_only_stack_frame.
9116
91172003-01-13 Andrew Cagney <[email protected]>
9118
9119 * README (Graphical interface to GDB): Update URL. Point at
9120 gdb/links/.
9121
9122 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
9123 version match.
9124
91252003-01-13 Daniel Jacobowitz <[email protected]>
9126
9127 * symtab.c (find_pc_sect_line): Don't consider end-of-function
9128 lines.
9129
91302003-01-13 Daniel Jacobowitz <[email protected]>
9131
9132 * thread-db.c (attach_thread): Prototype.
9133 (struct private_thread_info): Remove lwpid. Add thread handle (th),
9134 thread information (ti), and valid flags (th_valid, ti_valid).
9135 (attach_thread): Move target_pid_to_str call to after the thread
9136 is added to GDB's list. Initialize the cache.
9137 (thread_get_info_callback, thread_db_map_id2thr)
9138 (thread_db_get_info): New functions.
9139 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
9140 (thread_db_store_registers, thread_db_thread_alive)
9141 (thread_db_get_thread_local_address): Use them.
9142 (thread_db_pid_to_str): Likewise. Return "Missing" instead
9143 of calling error() for threads in unknown state.
9144
9145 (clear_lwpid_callback): New function.
9146 (thread_db_resume): Use it to clear the cache.
9147
91482003-01-13 Daniel Jacobowitz <[email protected]>
9149
9150 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
9151 (resume_callback): Remove dead code.
9152
91532003-01-13 Andrew Cagney <[email protected]>
9154
9155 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
9156 predicate.
9157 * gdbarch.h, gdbarch.c: Regenerate.
9158 * stack.c (frame_info): Only initialize the saved registers when
9159 FRAME_INIT_SAVED_REGS_P.
9160 * frame.c (frame_saved_regs_register_unwind): Assert
9161 FRAME_INIT_SAVED_REGS_P.
9162 (deprecated_generic_get_saved_register): Ditto.
9163
91642003-01-13 Daniel Jacobowitz <[email protected]>
9165
9166 * source.c (openp): Squelch warning about "filename".
9167
91682003-01-13 Daniel Jacobowitz <[email protected]>
9169
9170 * source.c (openp): If the file does not exist don't necessarily
9171 search the path.
9172
91732003-01-13 Daniel Jacobowitz <[email protected]>
9174
9175 Fix PR gdb/872.
9176 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
9177 (integer_types_same_name_p): New function.
9178 (rank_one_type): Use it.
9179 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
9180
91812003-01-13 Daniel Jacobowitz <[email protected]>
9182
9183 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
9184 variables.
9185 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
9186 * configure.in: Add --with-sysroot.
9187 * configure: Regenerated.
9188 * main.c (gdb_sysroot): New variable.
9189 (captured_main): Initialize gdb_sysroot.
9190 * defs.h (gdb_sysroot): New extern declaration.
9191 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
9192
91932003-01-12 Michael Chastain <[email protected]>
9194
9195 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
9196
91972003-01-12 Michael Chastain <[email protected]>
9198
9199 * top.c (print_gdb_version): Bump copyright year to 2003.
9200
92012003-01-12 David Carlton <[email protected]>
9202
9203 * linespec.c (symtab_from_filename): Rename variable 's' to
9204 'file_symtab'.
9205
92062003-01-12 Andrew Cagney <[email protected]>
9207
9208 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
9209 dummy frame.
9210 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
9211
92122003-01-12 Andrew Cagney <[email protected]>
9213
9214 * d10v-tdep.c: Include "gdb_assert.h".
9215 (d10v_store_return_value): Rewrite to match current interface.
9216 (d10v_extract_struct_value_address): Ditto.
9217 (d10v_extract_return_value): Ditto.
9218 (d10v_gdbarch_init): Set store_restore_value,
9219 extract_struct_value_address and extract_return_value.
9220
92212003-01-12 J. Brobecker <[email protected]>
9222
9223 * hpread.c (set_namestring): New procedure replacing the
9224 SET_NAMESTRING macro.
9225 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
9226 by calls to set_namestring.
9227
92282003-01-11 J. Brobecker <[email protected]>
9229
9230 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
9231 a compilation warning.
9232 (hpread_process_one_debug_symbol): Likewise.
9233
92342003-01-10 David Carlton <[email protected]>
9235
9236 * linespec.c (decode_line_1): Rename variable 's' to
9237 'file_symtab'.
9238 (decode_all_digits): Rename argument 's' to 'file_symtab'.
9239 (decode_dollar): Ditto.
9240 (decode_variable): Ditto.
9241 (symbol_found): Ditto.
9242
92432003-01-09 Michael Chastain <[email protected]>
9244
9245 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
9246
92472003-01-07 Corinna Vinschen <[email protected]>
9248
9249 * win32-nat.c (set_process_privilege): New function.
9250 (child_attach): Call set_process_privilege() to enable the
9251 SE_DEBUG_NAME user privilege if available in process token.
9252
92532003-01-10 J. Brobecker <[email protected]>
9254
9255 * hpread.c (hpread_process_one_debug_symbol): Fix a small
9256 compilation error in the previous revision.
9257
92582003-01-09 David Carlton <[email protected]>
9259
9260 * linespec.c: Update copyright.
9261
92622003-01-09 Daniel Jacobowitz <[email protected]>
9263
9264 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
9265 than inferior_ptid.
9266 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
9267
92682003-01-09 Andrew Cagney <[email protected]>
9269
9270 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
9271 Update comments.
9272 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
9273 (frame_saved_regs_zalloc): Update.
9274 (frame_saved_regs_register_unwind): Update.
9275 (create_new_frame): Update.
9276 (get_prev_frame): Update.
9277 (frame_extra_info_zalloc): Update.
9278 (deprecated_get_frame_saved_regs): Update.
9279 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
9280 * cris-tdep.c: Update comment.
9281
9282 * somsolib.h: Fix function indentation.
9283 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
9284 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
9285 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
9286 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
9287 * somsolib.c, inftarg.c: Remove assignment in if conditional.
9288
9289 * infrun.c (follow_fork): Use ISO C definition.
9290 * expprint.c (print_subexp): Use xfree instead of free.
9291 * charset.c: Include "gdb_string.h" instead of <string.h>.
9292 (register_iconv_charsets): Use ISO C definition.
9293 (host_charset, target_charset): Ditto.
9294 * Makefile.in (charset.o): Update dependencies.
9295 (mi-cmd-env.o): Update dependencies.
9296
92972003-01-08 Andrew Cagney <[email protected]>
9298
9299 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
9300 get_frame_base.
9301
93022003-01-08 Andrew Cagney <[email protected]>
9303
9304 * gdb_mbuild.sh: Add --keep option. When specified, keep the
9305 build directories. Save edited gdb output in Mbuild.log. If a
9306 build fails, remove any final GDB executable.
9307
93082003-01-08 Andrew Cagney <[email protected]>
9309
9310 * gdb_mbuild.sh: Edit the output of `maint print architecture'
9311 replacing hex constants with function names and stripping leading
9312 file name directory prefixes.
9313
93142003-01-08 Andrew Cagney <[email protected]>
9315
9316 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
9317 get_frame_base.
9318
93192003-01-08 David Carlton <[email protected]>
9320
9321 * linespec.c (decode_line_1): Move code into decode_variable.
9322 (decode_variable): New function.
9323
93242003-01-08 Andrew Cagney <[email protected]>
9325
9326 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
9327
93282003-01-08 Andrew Cagney <[email protected]>
9329
9330 * cris-tdep.c (cris_frame_init_saved_regs): Use
9331 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
9332 saved_regs buffer.
9333 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9334 (sh64_nofp_frame_init_saved_regs): Ditto.
9335 (sh_fp_frame_init_saved_regs): Ditto.
9336 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
9337 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9338 * mcore-tdep.c (analyze_dummy_frame): Ditto.
9339 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9340
93412003-01-08 Daniel Jacobowitz <[email protected]>
9342
9343 * minsyms.c (lookup_minimal_symbol): Update comment.
9344 (lookup_minimal_symbol_text): Update comment. Use the hash table.
9345 (lookup_minimal_symbol_solib_trampoline): Likewise.
9346
93472003-01-08 Andrew Cagney <[email protected]>
9348
9349 * d10v-tdep.c (d10v_init_extra_frame_info): Use
9350 frame_relative_level.
9351
9352 * alpha-tdep.c: Use get_frame_extra_info.
9353 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9354 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
9355 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9356 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
9357
9358 * alpha-tdep.c: Use get_next_frame.
9359 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9360 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
9361 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
9362 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
9363 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
9364 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
9365 * xstormy16-tdep.c: Ditto.
9366
93672003-01-07 Andrew Cagney <[email protected]>
9368
9369 * alpha-tdep.c: Use get_frame_base.
9370 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9371 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
9372 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
9373 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9374 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
9375 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
9376 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
9377 * config/sparc/tm-sparc.h: Ditto.
9378
93792003-01-07 Andrew Cagney <[email protected]>
9380
9381 * frame.c (deprecated_get_frame_context): New function.
9382 (deprecated_set_frame_context): New function.
9383 * frame.h (deprecated_get_frame_context): Declare.
9384 (deprecated_set_frame_context): Declare.
9385 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
9386 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
9387
93882003-01-07 Andrew Cagney <[email protected]>
9389
9390 * frame.c (deprecated_set_frame_next_hack): New function.
9391 (deprecated_set_frame_prev_hack): New function.
9392 * frame.h (deprecated_set_frame_next_hack): Declare.
9393 (deprecated_set_frame_prev_hack): Declare.
9394 * mcore-tdep.c (analyze_dummy_frame): Use
9395 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
9396 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9397
93982003-01-07 David Carlton <[email protected]>
9399
9400 * linespec.c (decode_line_1): Move code into decode_dollar.
9401 (decode_dollar): New function.
9402
94032003-01-07 Andrew Cagney <[email protected]>
9404
9405 * arm-tdep.c (arm_init_extra_frame_info): Use
9406 deprecated_update_frame_base_hack.
9407 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
9408 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9409 (fix_frame_pointer): Ditto.
9410 (mn10300_analyze_prologue): Ditto.
9411
94122003-01-07 Andrew Cagney <[email protected]>
9413
9414 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
9415 extra_info using frame_extra_info_zalloc.
9416 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9417 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
9418 (sh64_init_extra_frame_info): Ditto.
9419 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
9420 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
9421 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9422 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
9423 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
9424 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
9425 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
9426 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
9427 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
9428 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
9429 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9430 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
9431
9432 * mn10300-tdep.c (analyze_dummy_frame): Use
9433 deprecated_set_frame_extra_info_hack.
9434 * mcore-tdep.c (analyze_dummy_frame): Ditto.
9435
94362003-01-07 J. Brobecker <[email protected]>
9437
9438 * mdebugread.c (parse_symbol): Skip stProc entries which storage
9439 class is not scText. These do not define "real" procedures.
9440 (parse_partial_symbols): Likewise.
9441
94422003-01-06 Michael Snyder <[email protected]>
9443
9444 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
9445
94462003-01-06 Andrew Cagney <[email protected]>
9447
9448 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
9449 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
9450 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
9451 deprecated_frame_xmalloc_with_cleanup.
9452 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
9453 deprecated_frame_xmalloc.
9454 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
9455 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
9456
94572003-01-06 Andrew Cagney <[email protected]>
9458
9459 * x86-64-linux-tdep.c: Include "osabi.h".
9460 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
9461
9462 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
9463
94642003-01-06 Andrew Cagney <[email protected]>
9465
9466 * MAINTAINERS (Target Instruction Set Architectures): Update
9467 arm-elf. Can be built with -Werror, has been multiarched.
9468
9469 * value.h (unpack_long): Make buffer parameter constant.
9470 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
9471 * scm-lang.h (scm_parse): Ditto.
9472 * defs.h (extract_typed_address, extract_address): Ditto.
9473 (extract_long_unsigned_integer): Ditto.
9474 * inferior.h (unsigned_pointer_to_address): Ditto.
9475 (signed_pointer_to_address): Ditto.
9476 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
9477 * gdbarch.h, gdbarch.c: Regenerate.
9478 * findvar.c (extract_long_unsigned_integer): Update.
9479 (extract_address): Update.
9480 (extract_typed_address): Update.
9481 (unsigned_pointer_to_address): Update.
9482 * values.c (unpack_long): Update.
9483 (unpack_double): Update.
9484 (unpack_pointer): Update.
9485 (unpack_field_as_long): Update.
9486 * d10v-tdep.c (d10v_pointer_to_address): Update.
9487 * avr-tdep.c (avr_pointer_to_address): Update.
9488 * scm-lang.c (scm_unpack): Update.
9489 * findvar.c (signed_pointer_to_address): Update.
9490
94912003-01-06 Michal Ludvig <[email protected]>
9492
9493 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
9494 since it is in i386-tdep.c.
9495
94962003-01-06 J. Brobecker <[email protected]>
9497
9498 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
9499 failure introduced in the previous change.
9500
95012003-01-05 Michael Chastain <[email protected]>
9502
9503 * README: Remove references to deleted remote-*.c files:
9504 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
9505 remote-nrom.c, remote-os9k.c, remote-udi.c.
9506
95072003-01-05 Mark Kettenis <[email protected]>
9508
9509 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
9510 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
9511 i386_get_longjmp_target.
9512
95132003-01-05 Andrew Cagney <[email protected]>
9514
9515 * arm-tdep.c (prologue_cache): Change to a pointer.
9516 (_initialize_arm_tdep): Allocate prologue_cache.
9517 (check_prologue_cache): Update.
9518 (save_prologue_cache): Update.
9519 (arm_gdbarch_init): Update.
9520
95212003-01-04 Daniel Jacobowitz <[email protected]>
9522
9523 * stabsread.c (update_method_name_from_physname): Call complaint()
9524 instead of error.
9525
95262003-01-04 Daniel Jacobowitz <[email protected]>
9527
9528 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
9529 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
9530 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
9531
9532 * blockframe.c: Include "gdbcmd.h" and "command.h".
9533 (backtrace_below_main): New variable.
9534 (file_frame_chain_valid, func_frame_chain_valid)
9535 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
9536 (generic_func_frame_chain_valid): Remove functions.
9537 (frame_chain_valid, do_flush_frames_sfunc): New functions.
9538 (_initialize_blockframe): New function.
9539 * Makefile.in (blockframe.o): Update dependencies.
9540 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
9541 comment. Call frame_chain_valid ().
9542 * frame.h: Remove old prototypes. Add prototype for
9543 frame_chain_valid and update comments to match.
9544 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
9545 Remove old comment.
9546 * gdbarch.h: Regenerated.
9547 * gdbarch.c: Regenerated.
9548
9549 * alpha-tdep.c (alpha_gdbarch_init): Don't call
9550 set_gdbarch_frame_chain_valid.
9551 * avr-tdep.c (avr_gdbarch_init): Likewise.
9552 * cris-tdep.c (cris_gdbarch_init): Likewise.
9553 * frv-tdep.c (frv_gdbarch_init): Likewise.
9554 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
9555 * i386-tdep.c (i386_svr4_init_abi): Likewise.
9556 (i386_nw_init_abi): Likewise.
9557 (i386_gdbarch_init): Likewise.
9558 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
9559 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
9560 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
9561 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
9562 * mips-tdep.c (mips_gdbarch_init): Likewise.
9563 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9564 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
9565 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9566 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9567 * s390-tdep.c (s390_gdbarch_init): Likewise.
9568 * sh-tdep.c (sh_gdbarch_init): Likewise.
9569 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
9570 * v850-tdep.c (v850_gdbarch_init): Likewise.
9571 * vax-tdep.c (vax_gdbarch_init): Likewise.
9572 * x86-64-tdep.c (x86_64_init_abi): Likewise.
9573
9574 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
9575 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
9576 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
9577 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
9578 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
9579 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
9580 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
9581 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
9582
95832002-01-04 Daniel Jacobowitz <[email protected]>
9584
9585 * Makefile.in (acconfig_h): Remove incorrect macro.
9586 (config_h): Define.
9587 (osabi.o): Update dependencies.
9588 * configure.tgt: Set gdb_osabi based on target triplet.
9589 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
9590 * configure: Regenerated.
9591 * config.in: Regenerated.
9592 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
9593 (GDB_OSABI_DEFAULT): Define if not already defined.
9594 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
9595 (set_osabi_string): New variables.
9596 (gdbarch_register_osabi): Add new OS ABI to
9597 gdb_osabi_available_names.
9598 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
9599 (set_osabi, show_osabi): New functions.
9600 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
9601
96022003-01-04 Daniel Jacobowitz <[email protected]>
9603
9604 * arch-utils.c (gdbarch_info_init): Set osabi to
9605 GDB_OSABI_UNINITIALIZED.
9606 * gdbarch.sh: Add osabi to struct gdbarch and to struct
9607 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
9608 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
9609 * gdbarch.c: Regenerated.
9610 * gdbarch.h: Regenerated.
9611 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
9612 there's no BFD.
9613 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
9614 * osabi.h (enum gdb_osabi): Move to defs.h.
9615 (gdbarch_init_osabi): Update prototype.
9616 * defs.h (enum gdb_osabi): Moved here.
9617 * Makefile.in: Update dependencies.
9618
9619 * alpha-tdep.h: Don't include "osabi.h".
9620 (struct gdbarch_tdep): Remove osabi member.
9621 * alpha-tdep.c: Include "osabi.h".
9622 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9623 iterate over arches. Update call to gdbarch_init_osabi.
9624 (alpha_dump_tdep): Don't dump osabi.
9625 * alpha-linux-tdep.c: Include "osabi.h".
9626 * alpha-osf1-tdep.c: Include "osabi.h".
9627 * alphafbsd-tdep.c: Include "osabi.h".
9628 * alphanbsd-tdep.c: Include "osabi.h".
9629
9630 * arm-tdep.h: Don't include "osabi.h".
9631 (struct gdbarch_tdep): Remove osabi member.
9632 * arm-tdep.c: Include "osabi.h".
9633 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9634 iterate over arches. Update call to gdbarch_init_osabi.
9635 (arm_dump_tdep): Don't dump osabi.
9636 * arm-linux-tdep.c: Include "osabi.h".
9637 * armnbsd-tdep.c: Include "osabi.h".
9638
9639 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
9640 Update call to gdbarch_init_osabi.
9641
9642 * i386-tdep.h: Don't include "osabi.h".
9643 (struct gdbarch_tdep): Remove osabi member.
9644 * i386-tdep.c: Include "osabi.h".
9645 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9646 iterate over arches. Update call to gdbarch_init_osabi.
9647 (i386_dump_tdep): Don't dump osabi.
9648 * i386-linux-tdep.c: Include "osabi.h".
9649 * i386-sol2-tdep.c: Include "osabi.h".
9650 * i386bsd-tdep.c: Include "osabi.h".
9651 * i386gnu-tdep.c: Include "osabi.h".
9652 * i386ly-tdep.c: Include "osabi.h".
9653 * i386nbsd-tdep.c: Include "osabi.h".
9654 * i386obsd-tdep.c: Include "osabi.h".
9655
9656 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
9657 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9658 check osabi when iterating over arches. Update call to
9659 gdbarch_init_osabi.
9660 (mips_dump_tdep): Don't dump osabi.
9661
9662 * ns32k-tdep.h: Don't include "osabi.h".
9663 (struct gdbarch_tdep): Remove.
9664 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
9665 gdbarch_lookup_osabi. Don't iterate over arches. Don't
9666 allocate tdep. Update call to gdbarch_init_osabi.
9667 (ns32k_dump_tdep): Remove.
9668 (_initialize_ns32k_tdep): Update call to gdbarch_register.
9669 * ns32knbsd-tdep.c: Include "osabi.h".
9670
9671 * ppc-tdep.h: Don't include "osabi.h".
9672 (struct gdbarch_tdep): Remove osabi member.
9673 * rs6000-tdep.c: Include "osabi.h".
9674 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
9675 osabi when iterating over arches. Update call to
9676 gdbarch_init_osabi.
9677 (rs6000_dump_tdep): Don't dump osabi.
9678 * ppc-linux-tdep.c: Include "osabi.h".
9679 * ppcnbsd-tdep.c: Include "osabi.h".
9680
9681 * sh-tdep.h: Don't include "osabi.h".
9682 (struct gdbarch_tdep): Remove osabi member.
9683 * sh-tdep.c: Include "osabi.h".
9684 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9685 iterate over arches. Update call to gdbarch_init_osabi.
9686 (sh_dump_tdep): Don't dump osabi.
9687 * shnbsd-tdep.c: Include "osabi.h".
9688
9689 * sparc-tdep.c: Include "osabi.h".
9690 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9691 iterate over arches. Update call to gdbarch_init_osabi.
9692 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
9693 tdep structure.
9694
9695 * vax-tdep.h: Don't include "osabi.h".
9696 (struct gdbarch_tdep): Remove.
9697 * vax-tdep.c: Include "osabi.h".
9698 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9699 iterate over arches. Don't allocate tdep. Update call
9700 to gdbarch_init_osabi.
9701 (vax_dump_tdep): Remove.
9702 (_initialize_vax_tdep): Update call to gdbarch_register.
9703
97042003-01-04 Daniel Jacobowitz <[email protected]>
9705
9706 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
9707 entirely.
9708 (breakpoint_re_set_one): Don't fetch the value for a disabled
9709 watchpoint.
9710
97112003-01-04 Daniel Jacobowitz <[email protected]>
9712
9713 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
9714 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
9715 (COERCE_FLOAT_TO_DOUBLE): Remove.
9716 * gdbarch.c: Regenerate.
9717 * gdbarch.h: Regenerate.
9718 * Makefile.in: Remove value_h from gdbarch_h.
9719 * valops.c (coerce_float_to_double): New variable.
9720 (default_coerce_float_to_double): Remove.
9721 (standard_coerce_float_to_double): Remove.
9722 (value_arg_coerce): Use coerce_float_to_double.
9723 (_initialize_valops): Add "set coerce-float-to-double".
9724 * value.h (default_coerce_float_to_double): Remove prototype.
9725 (standard_coerce_float_to_double): Remove prototype.
9726
9727 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
9728 prototyped.
9729 * mdebugread.c (parse_symbol): Likewise.
9730 * stabsread.c (define_symbol): Mark all functions as prototyped.
9731
9732 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
9733 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
9734 set_gdbarch_coerce_float_to_double.
9735 * arm-tdep.c (arm_gdbarch_init): Likewise.
9736 * frv-tdep.c (frv_gdbarch_init): Likewise.
9737 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
9738 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
9739 * mips-tdep.c (mips_gdbarch_init): Likewise.
9740 (mips_coerce_float_to_double): Remove.
9741 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9742 (rs6000_coerce_float_to_double): Remove.
9743 * s390-tdep.c (s390_gdbarch_init): Likewise.
9744 * sh-tdep.c (sh_gdbarch_init): Likewise.
9745 (sh_coerce_float_to_double): Remove.
9746 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
9747 (sparc_coerce_float_to_double): Remove.
9748 * v850-tdep.c (v850_gdbarch_init): Likewise.
9749 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
9750 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9751 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
9752 (hppa_coerce_float_to_double): Remove prototype.
9753 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9754
97552003-01-04 Daniel Jacobowitz <[email protected]>
9756
9757 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
9758
97592003-01-04 Daniel Jacobowitz <[email protected]>
9760
9761 Suggested by Stewart Brown <[email protected]>:
9762 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
9763 in recursive calls. Handle TYPE_CODE_TYPEDEF.
9764 (c_type_print_varspec_suffix): Likewise.
9765
97662003-01-04 Mark Kettenis <[email protected]>
9767
9768 * configure.in: Don't set and AC_SUBST SUBDIRS.
9769 * configure: Regenerated.
9770
9771 * configure.in: Remove code dealing with shared libraries.
9772 * Makefile.in: Remove HLDFLAGS and HLDENV.
9773 * configure: Regenerated.
9774
97752003-01-04 Andrew Cagney <[email protected]>
9776
9777 * frame.c (deprecated_frame_xmalloc): New function.
9778 (deprecated_set_frame_saved_regs_hack): New function.
9779 (deprecated_set_frame_extra_info_hack): New function.
9780 * frame.h (deprecated_frame_xmalloc): Declare.
9781 (deprecated_set_frame_saved_regs_hack): Declare.
9782 (deprecated_set_frame_extra_info_hack): Declare.
9783
97842003-01-04 Mark Kettenis <[email protected]>
9785
9786 * configure.in: Move code that provides the --enable-gdbtk option
9787 right after the code that handles the --enable-tui option, and
9788 polish it somewhat.
9789 * configure: Regenerated.
9790
9791 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
9792 AC_CHECK_FUNCS and remove the old check for pread64.
9793 * acinclude.m4 (AC_GNU_SOURCE): New macro.
9794 * acconfig.h (_GNU_SOURCE): Add.
9795 (HAVE_PREAD64): Remove.
9796 * configure, aclocal.m4, config.in: Regenerated.
9797
97982003-01-03 Andrew Cagney <[email protected]>
9799
9800 * alpha-tdep.c: Use get_frame_saved_regs.
9801 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9802 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
9803 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
9804 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
9805 * vax-tdep.c, xstormy16-tdep.c: Ditto.
9806
98072003-01-03 Mark Kettenis <[email protected]>
9808
9809 * configure.in: Remove all use of the SUBDIRS variable; add
9810 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
9811 code providing the --enable-multi-ice option, and move it right in
9812 front of the code that checks whether gdbserver is supported.
9813 Polish that too.
9814 * configure: Regenerated.
9815 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
9816 @SUBDIRS@.
9817
98182003-01-03 Andrew Cagney <[email protected]>
9819
9820 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
9821 * avr-tdep.c, cris-tdep.c: Ditto.
9822 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
9823 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
9824
98252003-01-03 Mark Kettenis <[email protected]>
9826
9827 * configure.in: Remove --enable-netrom option.
9828 * configure: Regenerated.
9829
98302003-01-03 Mark Kettenis <[email protected]>
9831
9832 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
9833 declaration for `struct re_pattern_buffer' instead.
9834 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
9835
98362003-01-03 J. Brobecker <[email protected]>
9837
9838 * mdebugread.c (parse_symbol): Count until the stEnd matching
9839 the structure name.
9840
98412003-01-02 Mark Kettenis <[email protected]>
9842
9843 * configure.in: Remove --with-cpu option.
9844 subscripts. Remove evil changequotes here.
9845 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
9846 * config.in, configure: Regenerated.
9847
9848 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
9849 * configure.in: Cleanup section that sources GDB and BFD configure
9850 subscripts. Remove evil changequotes here.
9851 * config.in, configure: Regenerated.
9852
98532003-01-02 Andrew Cagney <[email protected]>
9854
9855 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
9856 frame accessor methods.
9857 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9858 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
9859 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
9860 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
9861 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
9862 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
9863 * z8k-tdep.c: Ditto.
9864
98652003-01-02 Mark Kettenis <[email protected]>
9866
9867 * configure.in: Remove UI_OUT configuration code.
9868 * ada-lang.c: Update assuming UI_OUT is always true.
9869 * Makefile.in (UIOUT_CFLAGS): Remove.
9870 * configure: Regenerated.
9871 * TODO: Remove blurb about elimination of -DUI_OUT.
9872
9873 * configure.in: Move code that provides the --enable-gdbcli,
9874 --enable-gdbmi options right before the code that handles the
9875 --enable-tui option. Polish a bit.
9876 * configure: Regenerated.
9877
9878 * configure.in: Rewrite check for GNU regex and the
9879 --without-included regex option, and move it into the "Checks for
9880 library functions" section. This makes us use the system regex
9881 again by default on systems with version 2 of the GNU C library.
9882 This was apparently broken.
9883 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
9884 * acconfig.h (USE_INCLUDED_REGEX): Remove.
9885 * config.in, configure: Regenerated.
9886
9887 * configure.in: Move code that provides the --enable-tui option
9888 before the "Checks for libraries" section. Polish the code
9889 somewhat and set need_curses to yes if we build the TUI. Rewrite
9890 code that looks for a library providing termcap functionality to
9891 match more closely what's done in the Readline library, and move
9892 it into to the "Checks for libraries" section.
9893 * configure: Regenerated.
9894 * Makefile.in (TERMCAP): Remove variable.
9895 * config/i386/go32.mh (TERMCAP): Remove variable.
9896
98972003-01-02 Andrew Cagney <[email protected]>
9898
9899 * MAINTAINERS: Mention gdb_mbuild.sh.
9900 * gdb_mbuild.sh: Rewrite.
9901
99022003-01-02 Mark Kettenis <[email protected]>
9903
9904 * configure.in: Fix typo in last change.
9905 * config.in, configure: Regenerated.
9906
99072003-01-02 Andrew Cagney <[email protected]>
9908
9909 * valarith.c (value_binop): Delete obsolete code and comments.
9910 * configure.host: Ditto.
9911 * buildsym.h (make_blockvector): Ditto.
9912 * buildsym.c (make_blockvector): Ditto.
9913 * defs.h (enum language): Ditto.
9914 (chill_demangle): Ditto.
9915 * elfread.c (elf_symtab_read): Ditto.
9916 * dwarfread.c (CHILL_PRODUCER): Ditto.
9917 (set_cu_language): Ditto.
9918 (handle_producer): Ditto.
9919 * expprint.c (print_subexp): Ditto.
9920 * gdbtypes.c (chill_varying_type): Ditto.
9921 * gdbtypes.h (builtin_type_chill_bool): Ditto.
9922 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
9923 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
9924 (chill_varying_type): Ditto.
9925 * language.h (_LANG_chill): Ditto.
9926 * language.c (binop_result_type, integral_type): Ditto.
9927 (character_type, string_type, structured_type): Ditto.
9928 (lang_bool_type, binop_type_check): Ditto.
9929 * stabsread.h (os9k_stabs): Ditto.
9930 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
9931 (define_symbol, read_type, read_struct_fields): Ditto.
9932 (read_array_type, read_enum_type, read_huge_number): Ditto.
9933 (read_range_type, start_stabs): Ditto.
9934 * symfile.c (init_filename_language_table): Ditto.
9935 (add_psymbol_with_dem_name_to_list): Ditto.
9936 * symtab.c (symbol_init_language_specific): Ditto.
9937 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
9938 * symtab.h (struct general_symbol_info): Ditto.
9939 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
9940 * typeprint.c (typedef_print): Ditto.
9941 * utils.c (fprintf_symbol_filtered): Ditto.
9942 * valops.c (value_cast, search_struct_field, value_slice): Delete
9943 obsolete code.
9944 (varying_to_slice): Delete function.
9945 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
9946 (varying_to_slice): Delete declaration.
9947 * MAINTAINERS: Update.
9948
99492003-01-02 Mark Kettenis <[email protected]>
9950
9951 * configure.in: Reorganize "Checks for library functions section"
9952 a bit. Remove check for `btowc' and `isascii' functions.
9953 * configure: Regenerated.
9954
9955 * acconfig.h (_MSE_INT_H): Remove.
9956 * configure.in: Create "Checks for header files" section, and move
9957 appropriate tests there. Don't check for objlist.h, wchar.h,
9958 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
9959 misdetection fix. Also add "Checks for types", "Checks for
9960 compiler characteristics" and "Checks for library functions"
9961 sections.
9962 * config.in, configure: Regenerated.
9963
9964 * configure.in: Create "Checks for programs" section, and move
9965 appropriate tests there.
9966
99672003-01-01 Mark Kettenis <[email protected]>
9968
9969 * configure.in: Create "Checks for libraries" section, and move
9970 appropriate tests there. Cleanup check for wctype in libw. Use
9971 AC_SEARCH_LIBS to see whether we need libsocket.
9972 * configure: Regenerated.
9973
9974For older changes see ChangeLog-2002
9975\f
9976Local Variables:
9977mode: change-log
9978left-margin: 8
9979fill-column: 74
9980version-control: never
9981End:
This page took 0.15875 seconds and 4 git commands to generate.