]> Git Repo - binutils.git/blame - gdb/ChangeLog
2003-08-04 Andrew Cagney <[email protected]>
[binutils.git] / gdb / ChangeLog
CommitLineData
e5e78edc
AC
12003-08-04 Andrew Cagney <[email protected]>
2
3 * remote.c (free_remote_state): Delete function.
4 (_initialize_remote): Update register_gdbarch_data.
5 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
6 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
7
6c7d17ba
AC
82003-08-04 Andrew Cagney <[email protected]>
9
10 * reggroups.c (struct reggroup_el): Define.
11 (struct reggroups): Delete field "nr_group". Replace array
12 "group" with a "first" to "last" linked list.
13 (reggroups_init): Update. Allocate using gdbarch's obstack.
14 (reggroups_free): Delete function.
15 (add_group): Update. Add "el" parameter.
16 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
17 (default_groups): Update.
18 (reggroup_next): Replace reggroups.
19 (reggroups_dump): Update.
20 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
21 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
22 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
23
89b7795b
DJ
242003-08-04 Daniel Jacobowitz <[email protected]>
25
26 * Makefile.in (tui-interp.o): Update dependencies.
27
306d9ac5
DC
282003-08-04 David Carlton <[email protected]>
29
30 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
31 to internal_error call.
32 * source.c (forward_search_command): Add "%s" format argument.
33 (reverse_search_command): Ditto.
34 * top.c (quit_confirm): Ditto.
35 * cli/cli-setshow.c (do_setshow_command): Ditto.
36 * cp-valprint.c (cp_print_class_method): Replace
37 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
38 (cp_print_class_member): Ditto.
39 * event-top.c (command_line_handler): Ditto.
40 * linux-proc.c (linux_info_proc_cmd): Ditto.
41 * p-typeprint.c (pascal_type_print_base): Ditto.
42 * p-valprint.c (pascal_object_print_class_method): Ditto.
43 (pascal_object_print_class_member): Ditto.
44 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
45 * remote.c (remote_cisco_section_offsets): Ditto.
46 * top.c (command_line_input): Ditto.
47 * utils.c (vwarning,error_stream,quit): Ditto.
48 * valprint.c (print_floating,print_binary_chars)
49 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
50
57bfe177
AC
512003-08-04 Andrew Cagney <[email protected]>
52
53 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
54
e546b999
AC
552003-08-02 Andrew Cagney <[email protected]>
56
57 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
58 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
59 amd64fbsd-nat.c.
60
91092ee5
AC
612003-08-02 Andrew Cagney <[email protected]>
62
63 * Makefile.in: Update all dependencies and definitions.
64
889f28e2
AF
652003-08-02 Adam Fedor <[email protected]>
66
67 * linespec.c (is_objc_method_format): New function
68 (decode_line_1, locate_first_half): Use it.
69 Fixes PR objc/1298
70
880bc914
AC
712003-08-01 Andrew Cagney <[email protected]>
72
73 * NEWS: Mention that m32r is multi-arch.
74 From 2003-07-28 Kei Sakamoto <[email protected]>:
75 * configure.tgt: Recognize m32r-*-*.
76 * config/m32r/tm-m32r.h: Delete file.
77 * config/m32r/m32r.mt: New file.
78 * m32r-rom.c (m32r_upload_command): Use hostent only when
79 gethostname succeeds, in order to avoid a compilation
80 warning.
81 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
82 compiler warning.
83
19f59343
MS
842003-08-01 Michael Snyder <[email protected]>
85
86 * sh-tdep.c (sh_frame_align): New gdbarch method.
87 (sh_gdbarch_init): Set up frame_align method.
88
4e7d7511
MS
892003-07-31 Michael Snyder <[email protected]>
90
91 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
92 which is already covered by the new frames infrastructure.
93
63022984
AC
942003-07-31 Andrew Cagney <[email protected]>
95
96 * user-regs.c (struct user_reg): Add "next" link.
97 (struct user_regs): Replace "user" with "first" and "last" links.
98 (append_user_reg): Add pre-allocated "reg" parameter.
99 (builtin_user_regs): Provide initial value for "last".
100 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
101 (user_regs_init): Allocate memory from the gdbarch obstack.
102 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
103 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
104 linked list.
105 (usernum_to_user_reg): New function.
106 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
107 (value_of_user_reg): Use usernum_to_user_reg.
108 (user_regs_free): Delete function.
109 (_initialize_user_regs): Update register_gdbarch_data call.
110
7cf6e574
DJ
1112003-07-31 Daniel Jacobowitz <[email protected]>
112
113 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
114
c48a845b
MS
1152003-07-30 Michael Snyder <[email protected]>
116
4e7d7511 117 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
118 * infcall.c (call_function_by_hand): Pass struct_addr to
119 value_being_returned.
120 * infcmd.c (print_return_value): Pass zero as struct_addr.
121 * values.c (value_being_returned): If struct_addr is passed,
122 use it instead of trying to recover it from the inferior.
123
f0d8db19
KB
1242003-07-30 Kevin Buettner <[email protected]>
125
126 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
127 the prologue analyzer won't need to attempt to extract the pc
128 value from the woefully incomplete dummy frame.
129 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
130 possible. Disable code which modifies the frame.
131
e5c113a1
AC
1322003-07-28 Andrew Cagney <[email protected]>
133
134 * annotate.c (annotate_breakpoints_headers): Restrict annotation
135 to level 2.
136 (annotate_breakpoints_table, annotate_record): Ditto.
137 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
138 (annotate_field_name_end, annotate_field_value): Ditto.
139 (annotate_field_end, annotate_frame_source_begin): Ditto.
140 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
141 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
142 (annotate_frame_begin, annotate_frame_function_name): Ditto.
143 (annotate_frame_address_end, annotate_frame_address): Ditto.
144 (annotate_frame_args, annotate_frame_end): Ditto.
145 (annotate_frame_where, annotate_arg_begin): Ditto.
146 (annotate_arg_name_end, annotate_arg_value): Ditto.
147 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
148 (annotate_function_call, annotate_signal_name): Ditto.
149 (annotate_signal_string, annotate_signal_name_end): Ditto.
150 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
151 (annotate_value_begin, annotate_value_history_value): Ditto.
152 (annotate_value_history_end, annotate_value_end): Ditto.
153 (annotate_display_begin, annotate_display_number_end): Ditto.
154 (annotate_display_format, annotate_display_expression): Ditto.
155 (annotate_display_expression_end, annotate_display_value): Ditto.
156 (annotate_display_end, annotate_array_section_begin): Ditto.
157 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
158 (annotate_elt, annotate_array_section_end): Ditto.
159
bb1db049
AC
1602003-07-28 Andrew Cagney <[email protected]>
161
162 * regcache.c (struct regcache_descr): Update comments on
163 nr_raw_registers.
164 (init_legacy_regcache_descr): Don't set nr_raw_registers or
165 sizeof_raw_register_valid_p.
166 (init_regcache_descr): Set nr_raw_registers and
167 sizeof_raw_register_valid_p before calling
168 init_legacy_regcache_descr.
169
20e6603c
AC
1702003-07-28 Andrew Cagney <[email protected]>
171
172 * mips-tdep.c (print_gp_register_row): Print the GPR's register
173 MOD NUM_REGS.
174
db742940
DJ
1752003-07-28 Daniel Jacobowitz <[email protected]>
176
177 * thread.c (info_threads_command): Use get_selected_frame ().
178 Check that there is at least one non-sentinel frame.
179
ce7f4371
SC
1802003-07-27 Stephane Carrez <[email protected]>
181
182 * m68hc11-tdep.c (struct frame_extra_info): Remove.
183 (m68hc11_pop_frame): Remove.
184 (m68hc11_frame_saved_pc): Remove.
185 (m68hc11_frame_chain): Remove.
186 (m68hc11_frame_init_saved_regs): Remove.
187 (m68hc11_init_extra_frame_info): Remove.
188 (m68hc11_store_struct_return): Remove.
189 (m68hc11_saved_pc_after_call): Remove.
190
1ea653ae
SC
1912003-07-27 Stephane Carrez <[email protected]>
192
193 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
194 frame unwind information.
195 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
196 and adapted for frame unwinding.
197 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
198 (m68hc11_unwind_pc): New function.
199 (m68hc11_frame_unwind_cache): New function to analyze frames.
200 (m68hc11_frame_this_id): New function to create new frame struct.
201 (m68hc11_frame_prev_register): New function to unwind a register from
202 the frame.
203 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
204 (m68hc11_frame_p): New function for the above.
205 (m68hc11_frame_base_address): New function to return fp of frame.
206 (m68hc11_frame_args_address): Update for frame.
207 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
208 (m68hc11_unwind_sp): New function.
209 (m68hc11_unwind_dummy_id): New function.
210 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
211 calls.
212
c8a7f6ac
SC
2132003-07-27 Stephane Carrez <[email protected]>
214
215 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
216 (m68hc11_guess_from_prologue): Advance the pc and frame size only
217 when we are beyond the current pc.
218
3dc990bf
SC
2192003-07-27 Stephane Carrez <[email protected]>
220
221 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
222 from m68hc11_push_arguments.
223 (m68hc11_push_arguments): Remove.
224 (m68hc11_push_return_address): Remove.
225 (m68hc11_gdbarch_init): Install the above; remove above deprecated
226 handlers; remove deprecated_extra_stack_alignment_needed.
227
222e5d1d
AC
2282003-07-27 Andrew Cagney <[email protected]>
229
230 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
231 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
232 REAL_PC and not the pointer.
233 * hppa-hpux-tdep.c: Include frame.h
234
a7e9a47e
AC
2352003-07-27 Andrew Cagney <[email protected]>
236
237 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
238 GDB_MULTI_ACH_PARTIAL.
239
7e3dd49e
AC
2402003-07-27 Andrew Cagney <[email protected]>
241
242 Patch from 2003-07-22 Kei Sakamoto <[email protected]>:
243 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
244 operator at start and not end of line.
245 (decode_prologue): Ditto.
246 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
247 frame_unwind_register_unsigned instead of
248 frame_unwind_unsigned_register.
249 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
250 read_register.
251 (m32r_push_dummy_call): Use register_size instead of
252 REGISTER_RAW_SIZE.
253 (m32r_frame_sniffer): Replace m32r_frame_p.
254 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
255 * m32r-rom.c (report_transfer_performance): Delete extern
256 declaration.
257 (m32r_load, m32r_upload_command): Use print_transfer_performance
258 instead of report_transfer_performance.
259 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
260 / add_show_from_set.
261
0880807f
AC
2622003-07-26 Andrew Cagney <[email protected]>
263
264 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
265 store_return_value and extract_struct_value_address.
266
64ae9269
DJ
2672003-07-26 Daniel Jacobowitz <[email protected]>
268
269 PR c++/1267
270 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
271 NULL, default to the section containing PC.
272
e286caf2
SC
2732003-07-24 Stephane Carrez <[email protected]>
274
275 * NEWS: Mention "regs" deprecated for m68hc11 too.
276
277 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
278 (m68hc11_print_register): New function to print out one register.
279 (m68hc11_print_registers_info): New function to print registers.
280 (show_regs): Deprecate and use the above.
281 (m68hc11_gdbarch_init): Install the print_registers_info.
282
705b278b
JJ
2832003-07-24 Jeff Johnston <[email protected]>
284
285 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
286 that we have a SIGTRAP before returning non-zero.
287
63cd4198
EZ
2882003-07-23 Michal Ludvig <[email protected]>
289 Elena Zannoni <[email protected]>
290
291 * linespec.c (decode_line_2): Avoid crash if
292 find_function_start_sal() returns empty record.
293
6926787d
AS
2942003-07-23 Andreas Schwab <[email protected]>
295
296 * ia64-tdep.c (ia64_print_insn): New function.
297 (ia64_gdbarch_init): Set print_insn to it.
298 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
299 deprecated_tm_print_insn_info.
300
708cc1b6
MS
3012003-07-22 Michael Snyder <[email protected]>
302
303 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
304 handle 8-bit returns (long long).
305 (h8300h_extract_return_value): Ditto.
306 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
307
aebd7893
AC
3082003-07-22 Andrew Cagney <[email protected]>
309
310 * gdbarch.c Include "gdb_obstack.h".
311 (struct gdbarch): Add an "obstack".
312 (alloc_gdbarch_data): Allocate the gdbarch data using
313 GDBARCH_OBSTACK_CALLOC.
314 (free_gdbarch_data): Delete function.
315 (gdbarch_obstack_zalloc): New function.
316 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
317 Assert that the architecture is not initialized.
318 (gdbarch_alloc): Allocate an obstack, allocate the architecture
319 vector from the obstack.
320 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
321 architecture obstack.
322 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
323 (set_gdbarch_data): Assert that the data is not initialized.
324 (struct gdbarch_data): Delete member "free".
325 (register_gdbarch_data): Do not initialize "free".
326 * gdbarch.h, gdbarch.c: Re-generate.
327
153721e6
AC
3282003-07-22 Andrew Cagney <[email protected]>
329
330 * configure.in (build_warnings): Add -Wformat-nonliteral.
331 * configure: Re-generate.
332
c193f044 3332003-07-22 Elena Zannoni <[email protected]>
32ffcbed
EZ
334
335 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 336
c3228f12
EZ
3372003-07-22 Elena Zannoni <[email protected]>
338
339 * findvar.c (read_var_value): Remove case for thread local storage
340 variables. It is now entirely handled by the dwarf2 location
341 expression code.
342 * printcmd.c (address_info): Ditto.
343 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
344 enumeration value.
345 (struct symbol): Remove objfile field, which was used by
346 LOC_THREAD_LOCAL_STATIC only.
347 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
348 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
349 usage of objfile pointer.
350 * dwarf2loc.c (locexpr_describe_location): Add case to handle
351 thread local variables.
352 Add include of objfiles.h.
353 * dwarf2expr.c (execute_stack_op): Add comments about thread local
354 storage variables.
355 * Makefile.in (dwarf2loc.o): Update dependencies.
356
aef9bcd2
AC
3572003-07-22 Andrew Cagney <[email protected]>
358
359 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
360 get_frame_base.
361 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
362 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
363 (struct value): Add opaque declaration.
364 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
365
d95a8903
AC
3662003-07-21 Andrew Cagney <[email protected]>
367
368 From 2003-07-04 Kei Sakamoto <[email protected]>:
369 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
370
4db73d49
SC
3712003-07-20 Stephane Carrez <[email protected]>
372
373 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
374 regcache_cooked_read_unsigned instead of read_register.
375 (m68hc11_saved_pc_after_call): Likewise.
376 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
377 instead of write_register.
378 (m68hc11_register_type): New function.
379 (m68hc11_register_virtual_type): Remove.
380 (m68hc11_store_return_value): Convert to use the regcache.
381 (m68hc11_extract_struct_value_address): Likewise.
382 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
383 m68hc11_register_type; undeprecate store_return_value and
384 extract_struct_value_address.
385
ef2b8fcd
SC
3862003-07-20 Stephane Carrez <[email protected]>
387
388 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
389 and translate to use regcache.
390 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
391
625b0b97
AC
3922003-07-18 Andrew Cagney <[email protected]>
393
394 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
395 * gdbarch.h, gdbarch.c: Re-generate.
396 * i386-tdep.c (i386_gdbarch_init): Do not set
397 DWARF2_BUILD_FRAME_INFO.
398 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
399 unconditionally.
400 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
401 DWARF2_BUILD_FRAME_INFO.
402
22b0d388
AC
4032003-07-18 Andrew Cagney <[email protected]>
404
405 From 2003-07-04 Kei Sakamoto <[email protected]>:
406 * disasm.c (gdb_disassemble_info): Initilize di.arch.
407
1ce5d6dd
AC
4082003-07-18 Andrew Cagney <[email protected]>
409
410 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
411 frame_unwind_address_in_block, instead of frame_pc_unwind.
412 (dwarf2_frame_cache): Ditto.
413
e6e5e94c
AC
4142003-07-18 Andrew Cagney <[email protected]>
415
416 * user-regs.h (struct gdbarch): Declare opaque.
417 * ui-out.h (struct ui_file): Declare opaque.
418 * dwarf2-frame.h (struct frame_info): Declare opaque.
419
5483d879
KW
4202003-07-18 Kris Warkentin <[email protected]>
421
422 * nto-procfs.c: Clean ARI hits. Change #include <..> to
423 #include "...".
424 (procfs_meminfo): Change strerror to safe_strerror.
425 (procfs_can_run): Remove K&R badness.
426
278a7cf7
MS
4272003-07-17 Michael Snyder <[email protected]>
428
429 * remote-sim.c: Comment typo fix.
430
606e3b82
AC
4312003-07-17 Andrew Cagney <[email protected]>
432
433 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
434 configure.
435 * sparc-tdep.c (sparc_intreg_size): Make non-static.
436 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
437 GDB_MULTI_ARCH_PARTIAL.
438
c43af07c
EZ
4392003-07-17 Elena Zannoni <[email protected]>
440
441 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
442 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
443 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
444
3b85b0f1
TR
4452003-07-16 Theodore A. Roth <[email protected]>
446
447 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
448 found.
449 (avr_frame_unwind_cache): Don't unwind FP for main.
450 Update a comment.
451 Save the computed prev_sp.
452 (avr_saved_regs_unwinder): Remove function.
453 (avr_frame_prev_register): Use PC unwind logic from
454 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
455
336d1bba
AC
4562003-07-16 Andrew Cagney <[email protected]>
457
458 * frame-base.h (frame_base_p_ftype): Delete definition.
459 (frame_base_append_predicate): Delete declaration.
460 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
461 (frame_unwind_append_predicate): Delete declaration.
462 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
463 (append_predicate): Delete parameter "p".
464 (frame_unwind_append_predicate): Delete function.
465 (frame_unwind_append_sniffer): Update call to append_predicate.
466 (frame_unwind_free): Delete function.
467 (_initialize_frame_unwind): Pass NULL as "free" to
468 register_gdbarch_data.
469 (frame_unwind_init): Append the dummy_frame_sniffer.
470 (frame_unwind_find_by_frame): Simplify.
471 * frame-base.c (struct frame_base_table): Delete field "p".
472 (append_predicate): Delete parameter "p".
473 (frame_base_append_predicate): Delete function.
474 (frame_base_append_sniffer): Update call to append_predicate.
475 (frame_base_free): Delete function.
476 (frame_base_find_by_frame): Simplify.
477 (_initialize_frame_base): Pass NULL as "free" to
478 register_gdbarch_data.
479 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
480 (x86_64_sigtramp_frame_sniffer): Replace
481 "x86_64_sigtramp_frame_p".
482 (x86_64_init_abi): Set the frame unwind sniffers.
483 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
484 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
485 (m68k_gdbarch_init): Set the frame unwind sniffers.
486 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
487 "i386_sigtramp_frame_p".
488 (i386_frame_sniffer): Replace "i386_frame_p".
489 (i386_gdbarch_init): Set the frame unwind sniffers.
490 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
491 (avr_gdbarch_init): Set the frame unwind sniffers.
492 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
493 "alpha_sigtramp_frame_p"
494 (alpha_heuristic_frame_sniffer): Replace
495 "alpha_heuristic_frame_p".
496 (alpha_gdbarch_init): Set the frame unwind sniffers.
497 (alpha_dwarf2_init_abi): Ditto.
498 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
499 "alpha_debug_frame_p".
500 (alpha_mdebug_frame_base_sniffer): Replace
501 "alpha_mdebug_frame_base_p".
502 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
503 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
504 (d10v_gdbarch_init): Set the frame unwind sniffer.
505 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
506 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
507 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
508 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
509 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
510 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
511
48db5a3c
CV
5122003-07-16 Michael Snyder <[email protected]>
513
514 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
515 should go thru sh_dsp_register_sim_regno, else the dsp regs
516 will not get the right values.
517
5182003-07-16 Corinna Vinschen <[email protected]>
519
520 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
521 deprecated_store_floating by call to store_typed_floating.
522 (sh_sh4_register_convert_to_raw): Substitute call to
523 deprecated_extract_floating by call to extract_typed_floating.
524
5252003-07-16 Corinna Vinschen <[email protected]>
526
527 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
528
5292003-07-16 Corinna Vinschen <[email protected]>
530
531 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
532 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
533 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
534 as possible.
535 (do_pseudo_register): Remove.
536 (sh_push_dummy_code): New function.
537 (sh64_store_struct_return): Rename from sh_store_struct_return.
538 Only called for sh64 now.
539 (sh_extract_struct_value_address): Regcache'ify.
540 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
541 and accomodate new tasks.
542 (sh64_push_return_address): Rename from sh_push_return_address.
543 Only called for sh64 now.
544 (sh_default_extract_return_value): Rename from sh_extract_return_value.
545 Regcache'ify.
546 (sh3e_sh4_extract_return_value): Regcache'ify.
547 (sh_default_store_return_value): Ditto.
548 (sh3e_sh4_store_return_value): Ditto.
549 (sh_default_register_byte): Remove.
550 (sh_sh4_register_byte): Remove.
551 (sh_default_register_raw_size): Remove.
552 (sh_sh4_register_raw_size): Remove.
553 (sh_register_virtual_size): Remove.
554 (sh_sh3e_register_virtual_type): Remove.
555 (sh_sh3e_register_type): New function.
556 (sh_sh4_register_virtual_type): Remove.
557 (sh_sh4_register_type): New function.
558 (sh_default_register_virtual_type): Remove.
559 (sh_default_register_type): New function.
560 (do_fv_register_info): Add parameters to accomodate call from
561 sh_print_registers_info.
562 (do_dr_register_info): Ditto.
563 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
564 Add parameters to accomodate call from sh_print_registers_info.
565 (sh_do_fp_register): Ditto.
566 (sh64_do_pseudo_register): Call do_dr_register_info,
567 do_fv_register_info and sh_do_fp_register with default parameters.
568 (sh_do_register): Add parameters to accomodate call from
569 sh_print_registers_info.
570 (sh_print_register): Ditto.
571 (sh_print_registers_info): Rename from sh_do_registers_info.
572 Add parameters to be used as gdbarch_print_registers_info
573 implementation. Accomodate removed do_pseudo_register function
574 pointer.
575 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
576 function pointer. Call sh_print_register with default parameters.
577 (sh64_do_registers_info): Call sh_print_registers_info instead of
578 sh_do_registers_info.
579 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
580 detection of deprecated vs. non-deprecated functionality.
581 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
582 function pointer assignments by direct function calls.
583
e8a89fe2
AC
5842003-07-15 Andrew Cagney <[email protected]>
585
586 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
587 (frame_register_unwind, create_new_frame): Ditto.
588 (legacy_get_prev_frame, get_frame_type): Ditto.
589 (get_frame_base_address): Use frame_base_find_by_frame.
590 (get_frame_locals_address): Use frame_base_find_by_frame.
591 (get_frame_args_address): Use frame_base_find_by_frame.
592 * frame-base.h (frame_base_sniffer_ftype): Declare.
593 (frame_base_append_sniffer): Declare.
594 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
595 * frame-base.c (append_predicate): Add a "sniffer" parameter.
596 (frame_base_append_sniffer): New function.
597 (frame_base_append_predicate): Add a NULL sniffer.
598 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
599 (struct frame_base_table): Add "sniffer".
600 (frame_base_free): Free the "sniffer" table.
601 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
602 (frame_unwind_append_sniffer): Declare.
603 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
604 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
605 (struct frame_unwind_table): Add "sniffer", delete "middle".
606 (append_predicate): Add "sniffer" parameter, append the sniffer.
607 (frame_unwind_init): Update append_predicate call.
608 (frame_unwind_append_sniffer): New function.
609 (frame_unwind_append_predicate): Update append_predicate call.
610 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
611
0714963c
AC
6122003-07-15 Andrew Cagney <[email protected]>
613
614 * frame.c (get_prev_frame): Move disabled inside_entry_func to
615 before code inhibiting repeated unwind attempts. Add to
616 commentary on that test's problems.
617 * blockframe.c (inside_main_func): Look for "main" in the minimal
618 symbol table.
619 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
620 identical.
621
d9170e22
AC
6222003-07-15 Andrew Cagney <[email protected]>
623
624 * complaints.c (struct explanation): Define.
625 (struct complaints): Change type of "explanation" to "struct
626 explanation".
627 (symfile_explanations): Convert to a "struct explanation" table.
628 (vcomplaint): Update.
629
eba29c8c
ML
6302003-07-15 Michal Ludvig <[email protected]>
631
632 * x86-64-linux-nat.c (regmap): Removed.
633 (supply_gregset, fill_gregset): Call
634 x86_64_linux_(fill,supply)_gregset functions.
635 * x86-64-linux-tdep.c (USER_*): New defines.
636 (user_to_gdb_regmap, x86_64_core_fns): New structure.
637 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
638 New functions.
639 (fetch_core_registers): Ditto.
640 (_initialize_x86_64_linux_tdep): Call add_core_fns().
641 * x86-64-linux-tdep.h: New file.
642 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
643 and core-regset.o.
644 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
645
68cc0bfb
MK
6462003-07-13 Mark Kettenis <[email protected]>
647
88a115f7
MK
648 * x86-64-tdep.c (x86_64_store_return_value): Use
649 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 650
68cc0bfb
MK
651 * configure.host: Add x86_64-*-freebsd*.
652 * configure.tgt: Add x86_64-*-freebsd*.
653 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
654 * amd64fbsd-nat.c: New file.
655 * amd64fbsd-tdep.c: New file.
656 * config/i386/nm-fbsd64.h: New file.
657 * config/i386/fbsd64.mh: New file.
658 * config/i386/fbsd64.mt: New file.
659
138e7be5
MK
6602003-07-11 Mark Kettenis <[email protected]>
661
662 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
663 `sc_regs_offset' and `sc_fpregs_offset'.
664 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
665 SIGFRAME_FPREGSAVE_OFF): Remove defines.
666 (alpha_sigtramp_register_address): Rewrite to use new members of
667 `struct gdbarch_tdep'.
668 (alpha_gdbarch_init): Initialize new members of struct
669 gdbarch_tdep'.
670 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
671 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
672 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
673 (alphafbsd_pc_in_sigtramp): Implement.
674 (alphafbsd_sigtramp_offset): New function.
675 (alphafbsd_sigcontext_addr): New function.
676 (alphafbsd_init_abi): Initialize signal trampoline related members
677 of `struct gdbarch_tdep'.
678 (_initialize_alphafbsd_tdep): Add prototype.
679
95303a68
TR
6802003-07-11 Theodore A. Roth <[email protected]>
681
ba292e4c
TR
682 * Makefile.in (install-only): Quote sed expression when generating
683 transformed_name.
95303a68 684
6896c0c7
RH
6852003-07-11 Richard Henderson <[email protected]>
686
687 * Makefile.in (dwarf2-frame.o): Add complaints_h.
688 * dwarf2-frame.c: Include complaints.h.
689 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
690 variable initialization; return NULL on error.
691 (decode_frame_entry): New.
692
8edd5d01
AC
6932003-07-11 Andrew Cagney <[email protected]>
694
c4a09524
AC
695 * frame.h (frame_address_in_block): Delete declaration.
696 * blockframe.c (frame_address_in_block): Delete function.
697 (get_frame_block): Use get_frame_address_in_block.
698 (block_innermost_frame): Ditto.
699 * stack.c (print_frame, backtrace_command_1): Ditto.
700
8edd5d01
AC
701 * frame.h (get_frame_address_in_block): Declare.
702 (frame_unwind_address_in_block): Declare.
703 * frame.c (frame_unwind_address_in_block): New function.
704 (get_frame_address_in_block): New function.
705
f7968451
AC
7062003-07-10 Andrew Cagney <[email protected]>
707
708 * gdbarch.sh: Simplify predicate methods. Remove need to provide
709 pre-default. Note: re-generate has no effect.
710
ae99b398
AC
7112003-07-10 Andrew Cagney <[email protected]>
712
713 * gdbarch.sh: When a variable, but not a function, compare against
714 0. Fix problem in previous patch.
715 * gdbarch.c: Re-generate.
716
956ac328
AC
7172003-07-10 Andrew Cagney <[email protected]>
718
719 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
720 functions against NULL, not 0.
721 * gdbarch.c: Re-generate.
722
287c3240
FF
7232003-07-10 Fred Fish <[email protected]>
724
725 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
726 null string instead of a null pointer.
727 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
728
32f63c4b
MS
7292003-07-09 Michael Snyder <[email protected]>
730
731 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
732
402ecd56
MK
7332003-07-09 Mark Kettenis <[email protected]>
734
735 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
736 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
737 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
738 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
739 * x86-64-tdep.c: ... from here.
740
c481dac7
AS
7412003-07-09 Andreas Schwab <[email protected]>
742
743 * m68k-tdep.h (enum struct_return): Define.
744 (struct gdbarch_tdep): Add struct_return.
745 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
746 bytes are padded to the right, not to the left. Pass struct value
747 address in register %a1, not on stack.
748 (m68k_use_struct_convention): New function.
749 (m68k_gdbarch_init): Set use_struct_convention. Initialize
750 struct_return in tdep to pcc_struct_return.
751 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
752 reg_struct_return.
753
64176fa3
JB
7542003-07-09 Joel Brobecker <[email protected]>
755
756 * somread.c (som_symfile_offsets): Fix compilation error.
757
96a4ee76
AC
7582003-07-09 Andrew Cagney <[email protected]>
759
760 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
761 Add comments about the checks.
762
1517c6d1
AC
7632003-07-08 Andrew Cagney <[email protected]>
764
765 * Makefile.in: Make dependency section headers consistent.
766 (config_h): Move to $BUILD headers section.
767 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
768 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
769 (ada-exp.tab.c): Move to YACC/LEX section.
770 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
771 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
772
dc5dd1eb
KW
7732003-07-08 Kris Warkentin <[email protected]>
774
775 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
776 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
777 of strerror with safe_strerror, use ISO C function definitions,
778 and replace instances of sprintf with snprintf.
dc5dd1eb 779
612dde91
AC
7802003-07-07 Andrew Cagney <[email protected]>
781
782 * frame.c (get_prev_frame): Enable check for identical frames.
783 Update comments. Update error messages.
784
492c11d3
JB
7852003-07-07 Joel Brobecker <[email protected]>
786
787 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
788
376a5a49
JB
7892003-07-07 Joel Brobecker <[email protected]>
790
791 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
792 sort_symtab_syms, no longer necessary.
793
22b4a9ad
JB
7942003-07-07 Joel Brobecker <[email protected]>
795
796 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
797
5bbcb741
JB
7982003-07-07 Joel Brobecker <[email protected]>
799
800 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
801 (mips_register_byte): Likewise.
802
c139e7d9
DJ
8032003-07-07 Daniel Jacobowitz <[email protected]>
804
805 * Makefile.in (sparc_tdep_h): New.
806 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
807 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
808 * sparc-linux-nat.c: Include "sparc-tdep.h".
809 * sparc-nat.c: Likewise.
810 * sparc-tdep.c: Likewise.
811 * sparc64nbsd-nat.c: Likewise.
812 * sparcnbsd-nat.c: Likewise.
813 * sparcnbsd-tdep.c: Likewise.
814 * sparc-tdep.h: New file.
815 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
816 and sparc_npc_regnum.
817
fd8f87c5
DJ
8182003-07-07 Daniel Jacobowitz <[email protected]>
819
820 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
821 (mips_linux_cannot_store_register): List supported instead of
822 unsupported registers.
823
13adf674
DJ
8242003-07-07 Daniel Jacobowitz <[email protected]>
825
826 * disasm.c (dump_insns): Separate instructions from addresses.
827
8de307e0
AS
8282003-07-07 Andreas Schwab <[email protected]>
829
830 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
831 dependencies.
832 * m68k-tdep.c (NUM_FREGS): Delete.
833 (SIG_PC_FP_OFFSET): Delete.
834 (TARGET_M68K): Delete.
835 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
836 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
837 P_MOVEL_SP, P_MOVEML_SP): Define.
838 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
839 P_TRAP): Delete.
840 (m68k_register_raw_size): Delete.
841 (m68k_register_virtual_size): Delete.
842 (m68k_register_type): Renamed from m68k_register_virtual_type and
843 add gdbarch argument.
844 (m68k_store_struct_return): Delete.
845 (m68k_deprecated_extract_return_value): Delete.
846 (m68k_deprecated_extract_struct_value_address): Delete.
847 (m68k_frame_chain): Delete.
848 (m68k_frame_saved_pc): Delete.
849 (m68k_fix_call_dummy): Delete.
850 (m68k_push_dummy_frame): Delete.
851 (m68k_pop_frame): Delete.
852 (m68k_extract_return_value): New function.
853 (m68k_store_return_value): Rewrite using regcache.
854 (m68k_extract_struct_value_address): Rewrite using regcache.
855 (m68k_push_dummy_call): New function.
856 (struct m68k_frame_cache): Define.
857 (m68k_alloc_frame_cache): New function.
858 (m68k_analyze_frame_setup): New function.
859 (m68k_analyze_register_saves): New function.
860 (m68k_analyze_prologue): New function.
861 (m68k_skip_prologue): Rewrite using above functions.
862 (m68k_unwind_pc): New function.
863 (m68k_frame_cache): New function.
864 (m68k_frame_this_id): New function.
865 (m68k_frame_prev_register): New function.
866 (m68k_frame_unwind): New variable.
867 (m68k_frame_p): New function.
868 (m68k_sigtramp_frame_cache): New function.
869 (m68k_sigtramp_frame_this_id): New function.
870 (m68k_sigtramp_frame_prev_register): New function.
871 (m68k_sigtramp_frame_unwind): New variable.
872 (m68k_sigtramp_frame_p): New function.
873 (m68k_frame_base_address): New function.
874 (m68k_frame_base): New function.
875 (m68k_unwind_dummy_id): New function.
876 (fill_gregset): Use regcache_collect.
877 (fill_fpregset): Likewise.
878 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
879 defined.
880 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
881 deprecated_init_frame_pc, deprecated_store_struct_return,
882 deprecated_extract_return_value, deprecated_store_return_value,
883 deprecated_frame_chain, deprecated_frame_saved_pc,
884 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
885 deprecated_register_virtual_size,
886 deprecated_max_register_raw_size,
887 deprecated_max_register_virtual_size,
888 deprecated_register_virtual_type, deprecated_register_size,
889 deprecated_register_byte, deprecated_register_bytes,
890 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
891 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
892 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
893 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
894 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
895 deprecated_push_dummy_frame, deprecated_pop_frame,
896 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
897 only if SYSCALL_TRAP is defined. Set extract_return_value,
898 store_return_value, extract_struct_value_address, register_type,
899 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
900 predicates.
901 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
902 M68K_MAX_REGISTER_SIZE): Define.
903 (struct m68k_sigtramp_info): Define.
904 (struct gdbarch_tdep): Add get_sigtramp_info.
905 * m68klinux-nat.c (fetch_register): Use register_size instead of
906 REGISTER_RAW_SIZE. Don't put assignment in if.
907 (store_register): Likewise.
908 (fetch_inferior_registers): Likewise.
909 (store_inferior_registers): Likewise.
910 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
911 (m68k_linux_frame_saved_pc): Delete.
912 (m68k_linux_sigcontext_reg_offset,
913 m68k_linux_ucontext_reg_offset): Define.
914 (m68k_linux_get_sigtramp_info): New function.
915 (m68k_linux_extract_return_value): Rewrite using regcache.
916 (m68k_linux_store_return_value): Likewise.
917 (m68k_linux_extract_struct_value_address): Likewise.
918 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
919 Don't set deprecated_frame_saved_pc,
920 deprecated_extract_return_value, deprecated_store_return_value,
921 deprecated_extract_struct_value_address. Set
922 extract_return_value, store_return_value,
923 extract_struct_value_address.
924
eb8bc282
AC
9252003-07-07 Andrew Cagney <[email protected]>
926
927 * expprint.c: Include "user-regs.h" instead of "frame.h".
928 (print_subexp): Use user_reg_map_regnum_to_name, instead of
929 frame_map_regnum_to_name.
930 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
931 (frame_map_name_to_regnum): Simplify, call
932 user_reg_map_name_to_regnum.
933 (frame_map_regnum_to_name): Simplify, call
934 user_reg_map_regnum_to_name.
935 (frame_register_unwind): Update.
936 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
937 (_initialize_frame_reg): Call user_reg_add_builtin.
938 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
939 (value_of_register): Use value_of_user_reg.
940 * eval.c (evaluate_subexp_standard): Update.
941 * parse.c (write_dollar_variable): Update.
942 * d10v-tdep.c (d10v_print_registers_info): Update.
943 * infcmd.c (registers_info): Update.
944 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
945 (builtin_regs_h): Delete macro.
946 (user_regs_h): Define.
947 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
948 (builtin-regs.o): Delete target.
949 (user-regs.o): Specify dependencies.
950 (expprint.o): Update dependencies.
951 (findvar.o): Update dependencies.
952 (frame.o): Update dependencies.
953 (std-regs.o): Update dependencies.
954
9f476a01
CF
9552003-07-06 Christopher Faylor <[email protected]>
956
957 * win32-nat.c (solib_symbols_add): Use one variable for all section
958 address stuff. Pass variable rather than address of variable to
959 safe_symbol_file_add.
960
a731b831
AS
9612003-07-06 Andreas Schwab <[email protected]>
962
963 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
964
9f83329d
JB
9652003-07-04 Joel Brobecker <[email protected]>
966
967 * rs6000-nat.c (vmap_symtab): Fix compilation error.
968
27e28cc5
KW
9692003-07-04 Kris Warkentin <[email protected]>
970
971 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
972
9732003-07-04 Kris Warkentin <[email protected]>
974
975 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
976 * config/i386/nto.mh: New file.
977 * config/i386/nm-nto.h: New file.
978 * configure.host: Add i[3456]86-*-nto*.
979
100f2e98
JB
9802003-07-03 Joel Brobecker <[email protected]>
981
982 * remote-vx.c (vx_add_symbols): Fix compilation error.
983
e23457df
AC
9842003-07-03 Andrew Cagney <[email protected]>
985
986 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
987 * gdbarch.h, gdbarch.c: Re-generate.
988 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
989 (legacy_register_name): Declare.
990 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
991 (REGISTER_NAME): Define.
992 * sparc-tdep.c (legacy_register_name): New function.
993 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
994 (REGISTER_NAME): Define.
995 (hppa64_register_name): Declare.
996 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
997 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
998 (hppa64_register_name): New function.
999 (hppa_register_name): New function.
1000 * arch-utils.c (legacy_register_name): Delete.
1001 * arch-utils.h (legacy_register_name): Delete.
1002
38caaeec
DJ
10032003-07-03 Daniel Jacobowitz <[email protected]>
1004
1005 * cli/cli-interp.c (cli_interpreter_resume): Update the
1006 cli_uiout's stream to gdb_stdout.
1007
dadd712e
AC
10082003-07-03 Andrew Cagney <[email protected]>
1009
1010 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1011 predicate.
1012 * gdbarch.h, gdbarch.c: Re-generate.
1013 * regcache.c (init_regcache_descr): Use legacy code when either
1014 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1015
c7f1390e
DJ
10162003-07-02 Daniel Jacobowitz <[email protected]>
1017
1018 * NEWS: Move "set logging" entry into GDB 6.0 section.
1019
4bc8c588
JB
10202003-07-02 Jim Blandy <[email protected]>
1021
a9dd42f1
JB
1022 * s390-tdep.c (struct frame_extra_info): new member:
1023 'stack_bought_valid'.
1024 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1025 initialize fextra_info->stack_bought.
1026 (s390_frameless_function_invocation): Don't trust the value of
1027 fextra_info_ptr->stack_bought unless
1028 fextra_info->stack_bought_valid is set.
1029
4bc8c588
JB
1030 New S390 prologue analyzer.
1031 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1032 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1033 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1034 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1035 compute_x_addr, s390_on_stack, s390_store,
1036 s390_get_signal_frame_info): New functions.
1037 (S390_NUM_SPILL_SLOTS): New macro.
1038 (s390_get_frame_info): Rewritten.
1039 (is_arg_reg): Deleted.
1040
1041 Break out the decoding of S/390 instructions into separate
1042 functions, to make it more legible, and easier to check
1043 against the spec.
1044 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1045 is_rx, is_rxe): New functions.
1046 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1047 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1048 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1049 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1050 enums for opcode values. (Is this an improvement?)
1051
fd13a04a
AC
10522003-07-02 Andrew Cagney <[email protected]>
1053
1054 * i386-tdep.c: Revert change committed as part of trad-frame code
1055 below.
1056
3f8091c1
DJ
10572003-07-02 Daniel Jacobowitz <[email protected]>
1058
1059 * breakpoint.c (insert_catchpoint): Make static.
1060
8dd5115e
AS
10612003-07-02 Andreas Schwab <[email protected]>
1062
1063 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1064 former ia64_push_arguments and ia64_push_return_address, and use
1065 regcache functions instead of read/write_register.
1066 (ia64_gdbarch_init): Set push_dummy_call instead of
1067 deprecated_push_arguments and deprecated_push_return_address.
1068
a2229c23
AJ
10692003-07-01 Andreas Jaeger <[email protected]>
1070
1071 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1072 before the call.
1073 Set %rax only to number of SSE registers used.
1074
3b3850e8
AC
10752003-07-01 Andrew Cagney <[email protected]>
1076
1077 * trad-frame.h: Update comments, a -1 .addr is reserved.
1078 (trad_frame_value_p, trad_frame_addr_p): Declare.
1079 (trad_frame_reg_p): Declare.
1080 (trad_frame_set_value): Rename trad_frame_register_value.
1081 (trad_frame_set_unknown): Declare.
1082 * trad-frame.c (trad_frame_realreg_p): New function.
1083 (trad_frame_addr_p, trad_frame_value_p): New function.
1084 (trad_frame_set_unknown): New function.
1085 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1086 (trad_frame_prev_register): Use trad_frame_realreg_p,
1087 trad_frame_addr_p and trad_frame_value_p.
1088 (trad_frame_set_value): Rename trad_frame_register_value.
1089 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1090 and trad_frame_set_value.
a2229c23 1091
4d819d0e
JB
10922003-06-30 Jim Blandy <[email protected]>
1093
1094 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1095 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1096 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1097 for 16 registers, and then 32 more bytes.
1098 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1099 New macros.
1100 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1101 Move up in the file, since it's now used by is_simple_arg.
1102 (is_simple_arg): Don't assume registers are four bytes long.
1103 Exclude all double arguments. Extended floats are not simple
1104 args.
1105 (is_power_of_two): New function.
1106 (pass_by_copy_ref): Call is_power_of_two, and check that the
1107 length fits in a register, rather than listing all the acceptable
1108 sizes. Extended floats are not passed by reference.
1109 (s390_push_arguments): Don't assume registers are four bytes long.
1110 Reserve an argument register to point to the buffer for structures
1111 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1112 S390_STACK_FRAME_OVERHEAD.
1113
1ad828f1
AS
11142003-06-30 Andreas Schwab <[email protected]>
1115
1116 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1117 format error message.
1118
39b00981
JB
11192003-06-30 Joel Brobecker <[email protected]>
1120
1121 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1122
b2a7f303
DC
11232003-06-30 David Carlton <[email protected]>
1124
1125 Band-aid for PR c++/1245.
1126 * Makefile.in (cp-support.o): Depend on complaints_h.
1127 * cp-support.c: Include complaints.h. Add declaration for
1128 find_last_component.
1129 (cp_find_first_component): Separate code into
1130 cp_find_first_component_aux.
1131 (cp_find_first_component_aux): Call demangled_name_complaint.
1132 (demangled_name_complaint): New.
1133
a257b5bb
AC
11342003-06-30 Andrew Cagney <[email protected]>
1135
1136 * remote.c (remote_write_bytes): Explicitly compute and then use
1137 the payload size. Update comments to reflect. Fixes problem of
1138 GDB not sending small packets as found by Fred Fish.
1139
0a2cfde4
AC
11402003-06-30 Andrew Cagney <[email protected]>
1141
1142 * remote.c (remote_async_wait): Fix -Wformat problem.
1143
3fcb8548
AC
11442003-06-29 Andrew Cagney <[email protected]>
1145
1146 * remote.c (remote_wait): Call error, and not warning, when the
1147 packet is corrupt.
1148 (remote_async_wait): Ditto.
1149
9f9970a3
DJ
11502003-06-29 Daniel Jacobowitz <[email protected]>
1151
1152 * sparc-tdep.c (sparc_y_regnum): Make external again.
1153
83a8ccca
DJ
11542003-06-29 Daniel Jacobowitz <[email protected]>
1155
1156 * cli/cli-logging.c (pop_output_files): Add void to function
1157 definition.
1158
d2cf594a
AC
11592003-06-29 Andrew Cagney <[email protected]>
1160
1161 * frame.c (frame_register_unwind): Use unsigned char when dumping
1162 the buffer contents.
1163
0fac0b41
DJ
11642003-06-28 Daniel Jacobowitz <[email protected]>
1165
1166 * cli/cli-logging.c: New file.
1167 * cli-out.c (struct ui_out_data): Add original_stream.
1168 (cli_redirect): New function.
1169 (cli_ui_out_impl): Add cli_redirect.
1170 (cli_out_new): Initialize original_stream.
1171 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1172 (uo_redirect, ui_out_redirect): New.
1173 * ui-out.h (struct ui_out_impl): Add redirect member.
1174 (redirect_ftype): New.
1175 (ui_out_redirect): Add prototype.
1176 * Makefile.in: Add rules for cli-logging.c.
1177 * NEWS: Mention "set logging".
1178
88a07d7c
EZ
11792003-06-27 Elena Zannoni <[email protected]>
1180
1181 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1182
4eb58876
AC
11832003-06-27 Andrew Cagney <[email protected]>
1184
1185 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1186 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1187 * avr-tdep.c (avr_call_dummy_address): Delete function.
1188 (avr_gdbarch_init): Do not set call_dummy_address.
1189
1549f619
EZ
11902003-06-27 Elena Zannoni <[email protected]>
1191
1192 * symfile.c (syms_from_objfile): Move variables to inner block.
1193 Move the checks for the non-mainline case a bit earlier to avoid
1194 doing some useless computations.
1195
3cb3398d
EZ
11962003-06-27 Elena Zannoni <[email protected]>
1197
1198 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1199
3799ccc6
EZ
12002003-06-26 Elena Zannoni <[email protected]>
1201
1202 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1203 sections.
1204
ce1f6491
MC
12052003-06-26 Michael Chastain <[email protected]>
1206
1207 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1208 gdb/testsuite/gdb.c++/pr-1210.exp.
1209
d958dfd0
AC
12102003-06-26 Andrew Cagney <[email protected]>
1211
1212 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1213 altivec_expression.h and altivec_registers.h.
1214
d31431ed
AC
12152003-06-26 Andrew Cagney <[email protected]>
1216
1217 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1218 info->mach when MIPS16. Patch suggested by Fred Fish.
1219
714b1282
AC
12202003-06-26 Andrew Cagney <[email protected]>
1221
1222 * utils.c (internal_vproblem): Print the problem to a reason
1223 buffer and then pass to query. Make the msg variable more local.
1224
42efa47a
AC
12252003-06-26 Andrew Cagney <[email protected]>
1226
1227 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1228 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1229 * gdbarch.h, gdbarch.c: Re-generate.
1230 * frame-base.c (default_frame_args_address): Update. Use
1231 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1232 not available.
1233 (default_frame_locals_address): Ditto for
1234 DEPRECATED_FRAME_LOCALS_ADDRESS.
1235 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1236 (vax_frame_num_args): Update.
1237 (vax_gdbarch_init): Update.
1238 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1239 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1240 * mcore-tdep.c (mcore_gdbarch_init): Update.
1241 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1242 * ia64-tdep.c (ia64_gdbarch_init): Update.
1243 * symtab.h (address_class): Update comments.
1244 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1245 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1246 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1247 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1248 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1249 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1250 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1251 * alpha-mdebug-tdep.c: Update.
1252 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1253
8ffd9b1b
AJ
12542003-06-26 Andreas Jaeger <[email protected]>
1255
1256 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1257 of SSE registers so that varargs functions work. Rework handling
1258 of passing arguments on the stack.
1259 (x86_64_store_return_value): Return double and float values in SSE
1260 register.
1261
e8ac10a6
MC
12622003-06-24 Michael Chastain <[email protected]>
1263
1264 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1265 the "constructor breakpoints ignored" bug.
1266
986af8e6
DC
12672003-06-25 David Carlton <[email protected]>
1268
1269 * MAINTAINERS: Update e-mail address.
1270
d64558a5
JB
12712003-06-24 Jim Blandy <[email protected]>
1272
e538d2d7
JB
1273 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1274
02631ec0
JB
1275 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1276 function.
1277 (ppc_linux_init_abi): Register it as the
1278 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1279
e716d87a
JB
1280 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1281 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1282 method.
1283
d64558a5
JB
1284 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1285 (ppc64_standard_linkage_target): Use it.
1286
449a5da4
AC
12872003-06-23 Andrew Cagney <[email protected]>
1288
1289 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1290 for 0 "int0" and 4 "int32" sized registers.
1291 * gdbtypes.c (builtin_type_int0): Define.
1292 (build_gdbtypes): Initialize builtin_type_int0.
1293 * gdbtypes.h (builtin_type_int0): Declare.
1294
b2a02dda
SC
12952003-06-23 Stephane Carrez <[email protected]>
1296
1297 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1298 as characters are unsigned.
1299
fba3138e
DJ
13002003-06-22 Daniel Jacobowitz <[email protected]>
1301
1302 PR gdb/1179
1303 * dwarfread.c (struct_type): Skip static fields without crashing.
1304
f6c8180b
AC
13052003-06-22 Andrew Cagney <[email protected]>
1306
1307 GDB 6.0 branch created.
f2c06f52
AC
1308 * README: Update.
1309 * PROBLEMS: Update. Empty.
1310 * NEWS: Update.
f6c8180b 1311
ae822768
DJ
13122003-06-22 Daniel Jacobowitz <[email protected]>
1313
1314 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1315 Suggested by Nick Hibma <[email protected]>.
1316
261de166
AC
13172003-06-22 Andrew Cagney <[email protected]>
1318
1319 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1320 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1321 Velikov.
1322
30e94205
DJ
13232003-06-22 Daniel Jacobowitz <[email protected]>
1324
1325 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1326 compilers.
1327
9e14d721
DJ
13282003-06-21 Daniel Jacobowitz <[email protected]>
1329
1330 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1331 argument of val_print.
1332 * cp-valprint.c (cp_print_value): Don't add the offset parameter
1333 to the address argument of baseclass_offset or target_read_memory.
1334 Do add it to the argument of cp_print_value_fields.
1335
a4b8ebc8
AC
13362003-06-21 Andrew Cagney <[email protected]>
1337
1338 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1339 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1340 instead of 0..NUM_REGS.
1341 (mips_register_reggroup_p): New function.
1342 (mips_pseudo_register_write): New function.
1343 (mips_pseudo_register_read): New function.
1344 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1345 based on the register's type.
1346 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
1347 cooked.
1348 (mips_get_saved_register): Simplify. Assert that REGNO is a
1349 pseudo / cooked.
1350 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
1351 (mips_register_type): Replace mips_register_virtual_type. Map
1352 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
1353 when available.
1354 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
1355 that the register is cooked / virtual.
1356 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
1357 Only get the extra info when needed.
1358 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
1359 (mips32_heuristic_proc_desc): Fetch the cooked register.
1360 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
1361 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
1362 (mips_print_register): Use gdbarch_register_type, instead of
1363 REGISTER_VIRTUAL_TYPE.
1364 (print_gp_register_row): Use gdbarch_register_type, instead of
1365 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
1366 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1367 Print the pseudo / cooked registers.
1368 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1369 Print the pseudo / cooked registers.
1370 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
1371 REG_NUM is pseudo / cooked.
1372 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
1373 (mips_n32n64_xfer_return_value): Ditto.
1374 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
1375 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1376 (mips_register_sim_regno): New function.
1377 (mips_gdbarch_init): Set deprecated_register_byte,
1378 register_group_p, pseudo_register_write, pseudo_register_read,
1379 register_sim_regno, and num_pseudo_regs. Set register_type,
1380 instead of register_virtual_type.
1381 * Makefile.in (mips-tdep.o): Update dependencies.
1382 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
1383 REGISTER_VIRTUAL_TYPE.
1384 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
1385 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
1386 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
1387 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
1388 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
1389
325ed089
DJ
13902003-06-21 Daniel Jacobowitz <[email protected]>
1391
1392 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
1393 * cli/cli-cmds.c: Include "gdb_vfork.h".
1394 (shell_escape): Use vfork.
1395
f0e7d0e8
AC
13962003-06-21 Andrew Cagney <[email protected]>
1397
c57bb9fa
AC
1398 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
1399 32 bit floating-point register saves.
1400
6e51443a
AC
1401 * frame.h (deprecated_unwind_get_saved_register): Delete.
1402 * frame.c (deprecated_unwind_get_saved_register): Delete function.
1403 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
1404 and deprecated_get_next_frame_hack instead of
1405 deprecated_unwind_get_saved_register.
1406
ed183c7c
AC
1407 * mips-tdep.c (mips_dump_tdep): Do not print
1408 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
1409
f0e7d0e8
AC
1410 * frame.c (get_frame_register): New function.
1411 (frame_unwind_register_signed): New function.
1412 (get_frame_register_signed): New function.
1413 (frame_unwind_register_unsigned): New function.
1414 (get_frame_register_unsigned): New function.
1415 * frame.h: Add comments on naming schema.
1416 (get_frame_register, frame_unwind_register_signed): Declare.
1417 (get_frame_register_signed, get_frame_register_signed): Declare.
1418 (frame_unwind_register_unsigned): Declare.
1419 (get_frame_register_unsigned): Declare.
1420
2224d941
TR
14212003-06-20 Theodore A. Roth <[email protected]>
1422
1423 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
1424
8619218d
TR
14252003-06-20 Theodore A. Roth <[email protected]>
1426
1427 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
1428 (avr_read_sp): Ditto.
1429
0b1b50c0
DJ
14302003-06-20 Daniel Jacobowitz <[email protected]>
1431
1432 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
1433 * config/arm/nm-linux.h: Likewise.
1434 * config/arm/tm-linux.h: Likewise.
1435 * config/ia64/nm-linux.h: Likewise.
1436 * config/ia64/tm-ia64.h: Likewise.
1437 * config/s390/tm-linux.h: Likewise.
1438 * config/s390/tm-s390.h: Likewise.
1439 * s390-nat.c: Likewise.
1440 * s390-tdep.c: Likewise.
1441
1442 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
1443 * config/ia64/linux.mt: Likewise.
1444 * config/m68k/linux.mh: Likewise.
1445 * config/mips/linux.mt: Likewise.
1446 * config/powerpc/linux.mh: Likewise.
1447 * config/sh/linux.mt: Likewise.
1448
c8c18e65
KW
14492003-06-19 Kris Warkentin <[email protected]>
1450
1451 * solib.c (solib_open): Change tests for whether to search
1452 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
1453 comments.
1454
dcccef2e
TR
14552003-06-19 Theodore A. Roth <[email protected]>
1456
1457 * avr-tdep.c (avr_frame_address): Delete function.
1458 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
1459 set_gdbarch_frame_args_address.
1460
5861a190
AC
14612003-06-19 Andrew Cagney <[email protected]>
1462
1463 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
1464 (REGISTER_CONVERT_FROM_TYPE): Delete.
1465 (mips_register_convert_to_type): Delete declaration.
1466 (mips_register_convert_from_type): Delete declaration.
1467 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
1468 kernel/.
1469
0274a8ce
MS
14702003-06-19 Michael Snyder <[email protected]>
1471
1472 * linux-nat.h: New file.
1473 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 1474 * lin-lwp.c: Include linux-nat.h.
0274a8ce 1475 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 1476 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
1477 (linux_make_note_section): Iterate over lwps instead of threads.
1478 (linux_do_thread_registers): Use lwp instead of merged pid.
1479 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 1480 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
1481 Add dependency on linux_nat_h.
1482
adf5f719
TR
14832003-06-19 Theodore A. Roth <[email protected]>
1484
1485 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
1486
6766a268
DJ
14872003-06-19 Daniel Jacobowitz <[email protected]>
1488
1489 * varobj.c (get_type, get_target_type): Use check_typedef.
1490
1171114a
DJ
14912003-06-19 Daniel Jacobowitz <[email protected]>
1492
1493 * breakpoint.c (insert_catchpoint): Call internal_error.
1494
adcf68a2
TR
14952003-06-19 Theodore A. Roth <[email protected]>
1496
1497 * avr-tdep.c (avr_push_dummy_code): Delete function.
1498 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
1499
ea67f13b
DJ
15002003-06-19 Daniel Jacobowitz <[email protected]>
1501
1502 * arch-utils.c (default_prepare_to_proceed): Remove.
1503 (generic_prepare_to_proceed): Remove.
1504 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
1505 (generic_prepare_to_proceed): Remove prototype.
1506 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
1507 * gdbarch.c: Regenerate.
1508 * gdbarch.h: Regenerate.
1509 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
1510 * hppah-nat.c (hppa_switched_threads): Remove.
1511 * infrun.c (prepare_to_proceed): New static function, copied from
1512 generic_prepare_to_proceed. Remove select_it argument.
1513 (proceed): Call prepare_to_proceed.
1514 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
1515 variables.
1516 (ptrace_wait): Don't set the removed variables.
1517 (hppa_switched_threads): Remove.
1518 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
1519 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
1520 (lin_lwp_prepare_to_proceed): Remove prototype.
1521 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
1522 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
1523
4add8633
TR
15242003-06-18 Theodore A. Roth <[email protected]>
1525
1526 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
1527 trad-frame.h.
1528 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
1529 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
1530 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
1531 (AVR_PROLOGUE_*): Enumerate prologue types.
1532 (struct frame_extra_info): Remove.
1533 (struct avr_unwind_cache): Define.
1534 (avr_write_sp): Delete function.
1535 (avr_read_fp): Ditto.
1536 (avr_init_extra_frame_info): Ditto.
1537 (avr_pop_frame): Ditto.
1538 (avr_frame_saved_pc): Ditto.
1539 (avr_saved_pc_after_call): Ditto.
1540 (avr_push_return_address): Ditto.
1541 (avr_frame_chain): Ditto.
1542 (avr_store_struct_return): Ditto.
1543 (avr_push_arguments): Ditto.
1544 (avr_scan_prologue): Update comments. Changed to set up the info for
1545 cache unwinding. Now returns end of prologue PC.
1546 (avr_skip_prologue): Better handling of functions lacking a prologue
1547 by using avr_scan_prologue.
1548 (avr_scan_arg_moves): New function.
1549 (avr_saved_regs_unwinder): Ditto.
1550 (avr_frame_unwind_cache): Ditto.
1551 (avr_unwind_pc): Ditto.
1552 (avr_frame_this_id): Ditto.
1553 (avr_frame_prev_register): Ditto.
1554 (avr_frame_p): Ditto.
1555 (avr_frame_base_address ): Ditto.
1556 (avr_unwind_dummy_id): Ditto.
1557 (avr_push_dummy_code): Ditto.
1558 (push_stack_item): Ditto.
1559 (pop_stack_item): Ditto.
1560 (avr_push_dummy_call): Ditto.
1561 (struct stack_item): Define.
1562 (avr_frame_unwind): Declare structure.
1563 (avr_frame_base): Ditto.
1564 (avr_gdbarch_init): Remove calls to
1565 set_gdbarch_deprecated_init_frame_pc,
1566 set_gdbarch_deprecated_target_read_fp,
1567 set_gdbarch_deprecated_dummy_write_sp,
1568 set_gdbarch_deprecated_fp_regnum,
1569 set_gdbarch_deprecated_push_arguments,
1570 set_gdbarch_deprecated_push_return_address,
1571 set_gdbarch_deprecated_pop_frame,
1572 set_gdbarch_deprecated_store_struct_return,
1573 set_gdbarch_deprecated_frame_init_saved_regs,
1574 set_gdbarch_deprecated_init_extra_frame_info,
1575 set_gdbarch_deprecated_frame_chain,
1576 set_gdbarch_deprecated_frame_saved_pc,
1577 set_gdbarch_deprecated_saved_pc_after_call.
1578 Add calls to set_gdbarch_push_dummy_call,
1579 set_gdbarch_push_dummy_code,
1580 frame_unwind_append_predicate,
1581 frame_base_set_default,
1582 set_gdbarch_unwind_dummy_id,
1583 set_gdbarch_unwind_pc.
1584 Wrap a long line.
1585
7be04a68
MS
15862003-06-18 Corinna Vinschen <[email protected]>
1587
1588 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
1589 registers for H8/300S.
1590 (h8300_print_registers_info): Ditto.
8ffd9b1b 1591 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 1592
ae087d01
DJ
15932003-06-18 Daniel Jacobowitz <[email protected]>
1594
1595 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
1596 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1597 (lin_lwp_wait): Likewise. Update comments.
1598 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
1599 (pull_pid_from_list, linux_record_stopped_pid): New.
1600
07d8f827
SC
16012003-06-17 Stephane Carrez <[email protected]>
1602
1603 * ada-lang.c (scan_discrim_bound): Name first argument.
1604 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
1605 declared by ALL_BLOCK_SYMBOLS.
1606
7cb47b14
SC
16072003-06-17 Stephane Carrez <[email protected]>
1608
1609 * ada-tasks.c (find_function_in_inferior): Don't declare it.
1610 ("regcache.h"): Include it.
1611 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
1612
6ad8ae5c
DJ
16132003-06-17 Daniel Jacobowitz <[email protected]>
1614
1615 * NEWS: Mention gdbserver detach change and "disconnect" command.
1616 * infcmd.c (disconnect_command): New function.
1617 (_initialize_infcmd): Add ``disconnect'' command.
1618 * remote.c (remote_async_detach): Delete.
1619 (remote_detach): Merge remote_async_detach.
1620 (remote_disconnect): New.
1621 (init_remote_ops): Set to_disconnect.
1622 (init_remote_cisco_ops): Likewise.
1623 (init_remote_async_ops): Likewise. Use remote_detach.
1624 * target.c (cleanup_target): Default to_disconnect.
1625 (update_current_target): Inherit to_disconnect.
1626 (target_disconnect, debug_to_disconnect): New functions.
1627 (setup_target_debug): Set to_disconnect.
1628 * target.h (struct target_ops): Add to_disconnect.
1629 (target_disconnect): Add prototype.
1630
687595f9
DJ
16312003-06-17 Daniel Jacobowitz <[email protected]>
1632
1633 * breakpoint.c (insert_catchpoint): New function.
1634 (insert_breakpoints): Use catch_exceptions to call
1635 insert_catchpoint. Disable catchpoints if they fail to insert.
1636
29239a8f
DJ
16372003-06-17 Daniel Jacobowitz <[email protected]>
1638
1639 * symfile.c (reread_symbols): Clear sym_private.
1640
2cdf3c63
AC
16412003-06-17 Andrew Cagney <[email protected]>
1642
1643 * trad-frame.h (struct frame_info): Add opaque declaration.
1644 * remote-fileio.h (struct cmd_list_element): Add opaque
1645 declaration.
1646 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
1647 comments.
1648
cf0e1e0d
DJ
16492003-06-17 Daniel Jacobowitz <[email protected]>
1650
1651 * remote.c (remote_prepare_to_store): Replace call to
1652 deprecated_read_register_bytes with multiple regcache_raw_read
1653 calls.
1654
192cdb19
KW
16552003-06-17 Kris Warkentin <[email protected]>
1656
1657 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
1658 (nto_find_and_open_solib): Likewise.
1659 (nto_init_solib_absolute_prefix): Likewise.
1660 (_initialize_nto_tdep): Fix indentation.
1661
89929b45
KW
16622003-06-17 Kris Warkentin <[email protected]>
1663
1664 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
1665
46019f27
KW
16662003-06-17 Kris Warkentin <[email protected]>
1667
1668 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
1669
1a38736e
JB
16702003-06-17 Jim Blandy <[email protected]>
1671
1672 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
1673
3605c34a
TR
16742003-06-16 Theodore A. Roth <[email protected]>
1675
1676 * avr-tdep.c (avr_extract_return_value): New function.
1677 (avr_gdbarch_init): Set extract_return_value method.
1678
870b3035
AC
16792003-06-16 Andrew Cagney <[email protected]>
1680
1681 * frame.h (deprecated_get_next_frame_hack): Declare.
1682 * frame.c (legacy_saved_regs_prev_register): Only require
1683 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
1684 there are always saved regs.
1685 (deprecated_generic_get_saved_register): Do not require
1686 DEPRECATED_FRAME_INIT_SAVED_REGS.
1687 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
1688 use frame ID unwind instead.
1689 (deprecated_get_next_frame_hack): New function.
1690
63d47a7d
CV
16912003-06-16 Corinna Vinschen <[email protected]>
1692
1693 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
1694 (h8300_push_dummy_call): ...this function. Some minor optimization.
1695 (h8300_push_return_address): Remove.
1696 (h8300_gdbarch_init): Remove calls to
1697 set_gdbarch_deprecated_dummy_write_sp,
1698 set_gdbarch_deprecated_push_arguments and
1699 set_gdbarch_deprecated_push_return_address.
1700 Add call to set_gdbarch_push_dummy_call.
1701
4bb1dc5e
CV
17022003-06-16 Corinna Vinschen <[email protected]>
1703
1704 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
1705 (E_PSEUDO_EXR_REGNUM): Ditto.
1706 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 1707 registers into safe registers.
4bb1dc5e
CV
1708 (h8300_skip_prologue): Check for stm instruction to push registers
1709 used for register variables onto stack.
1710 (gdb_print_insn_h8300): Remove.
1711 (h8300_examine_prologue): Add a comment.
1712 (h8300_register_name): Take pseudo registers into account.
1713 (h8300s_register_name): Ditto.
1714 (h8300sx_register_name): Ditto.
1715 (h8300_print_register): Ditto.
1716 (h8300_print_registers_info): Define "nice" printing order.
1717 (h8300_saved_pc_after_call): Take pseudo registers into account.
1718 (h8300_register_type): Ditto. Return type used for remote connection
1719 when requesting real CCR or EXR register, return actual type when
1720 requesting pseudo CCR or EXR.
1721 (h8300_pseudo_register_read): New function.
1722 (h8300_pseudo_register_write): Ditto.
1723 (h8300_dbg_reg_to_regnum): Ditto.
1724 (h8300s_dbg_reg_to_regnum): Ditto.
1725 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
1726 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
1727 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
1728 set_gdbarch_print_insn architecture dependent.
1729 Call set_gdbarch_pseudo_register_read and
1730 set_gdbarch_pseudo_register_write.
1731 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
1732
a59fe496
AC
17332003-06-16 Andrew Cagney <[email protected]>
1734
1735 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
1736 * gdbarch.h, gdbarch.c: Re-generate.
1737 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1738 * s390-tdep.c (s390_gdbarch_init): Update.
1739 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1740 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1741 * mips-tdep.c (mips_gdbarch_init): Update.
1742 * mcore-tdep.c (mcore_gdbarch_init): Update.
1743 * cris-tdep.c (cris_gdbarch_init): Update.
1744 * infcall.c (call_function_by_hand): Update.
1745 * ia64-tdep.c (ia64_push_arguments): Update comment.
1746 * frame.c (legacy_get_prev_frame): Do not assume
1747 SAVE_DUMMY_FRAME_TOS_P.
1748 * dummy-frame.c (find_dummy_frame): Update comment.
1749
6f4e5a41
AC
17502003-06-16 Andrew Cagney <[email protected]>
1751
1752 * regcache.c (do_cooked_read): Do not use register_valid_p.
1753
72fab697
TR
17542003-06-15 Theodore A. Roth <[email protected]>
1755
1756 * avr-tdep.c (avr_register_type): Remove a blank line.
1757 (avr_scan_prologue): Correct some comments.
1758
e3d8b004
TR
17592003-06-15 Theodore A. Roth <[email protected]>
1760
1761 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
1762 prologue types.
8ffd9b1b 1763 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
1764 option.
1765 Add code to scan -mcall-prologues for mega devices.
1766
866b76ea
TR
17672003-06-15 Theodore A. Roth <[email protected]>
1768
1769 * avr-tdep.c (avr_register_byte): Delete function.
1770 (avr_register_raw_size): Delete function.
1771 (avr_register_virtual_size): Delete function.
1772 (avr_register_virtual_type): Delete function.
1773 (avr_register_type): New function.
1774 (avr_address_to_pointer): Remove unused code.
1775 (avr_read_fp): Need to read FP as two separate bytes due to change to
1776 avr_register_type() usage.
1777 (avr_gdbarch_init): Don't set deprecated_register_size.
1778 Don't set deprecated_register_bytes.
1779 Don't set deprecated_register_byte.
1780 Don't set deprecated_register_raw_size.
1781 Don't set deprecated_max_register_raw_size.
1782 Don't set deprecated_register_virtual_size.
1783 Don't set deprecated_max_register_virtual_size.
1784 Don't set deprecated_register_virtual_type.
1785 Set register_type method.
1786
3993f6b1
DJ
17872003-06-15 Daniel Jacobowitz <[email protected]>
1788
1789 * Makefile.in (linux-nat.o): Add rule.
1790 * linux-nat.c: New file.
1791 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
1792 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
1793 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
1794 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
1795 * config/arm/linux.mh (NATDEPFILES): Likewise.
1796 * config/i386/linux.mh (NATDEPFILES): Likewise.
1797 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
1798 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1799 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1800 * config/mips/linux.mh (NATDEPFILES): Likewise.
1801 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
1802 * config/s390/s390.mh (NATDEPFILES): Likewise.
1803 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1804
786a90bb
MK
18052003-06-15 Mark Kettenis <[email protected]>
1806
1807 * i387-tdep.c: Reorder includes, fix some whitespace issues and
1808 replace out-of-date comment.
1809
3bd3f01e
AC
18102003-06-15 Andrew Cagney <[email protected]>
1811
1812 * rdi-share/host.h (Fail): Change to a varargs function.
1813 * remote-rdi.c (Fail): Update.
8ffd9b1b 1814
de5b9bb9
MK
18152003-06-15 Mark Kettenis <[email protected]>
1816
1817 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
1818 (i386_convert_register_p, i386_register_to_value,
1819 i386_register_from_value): Handle types longer than 8 bytes.
1820
d532c08f
MK
18212003-06-15 Mark Kettenis <[email protected]>
1822
1823 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
1824 Move floating-point code to new function in i387-tdep.c.
1825 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
1826 New functions containing code moved here from i386-tdep.c.
1827 * i387-tdep.h: Add opaque declaration for `struct type'.
1828 (i387_register_to_value, i387_value_to_register): New prototypes.
1829 * x86-64-tdep.c (x86_64_convert_register_p): New function.
1830 (x86_64_init_abi): Set convert_register_p, register_to_value and
1831 value_to_register here.
8ffd9b1b 1832
42c466d7
AC
18332003-06-14 Andrew Cagney <[email protected]>
1834
1835 * mips-tdep.c (mips_register_to_value): Make static.
1836 (mips_value_to_register): Make static.
1837 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
1838 * ia64-tdep.c (ia64_register_raw_size): Make static.
1839 (ia64_register_virtual_size): Make static.
1840 (ia64_register_byte): Make static.
1841 * i387-tdep.c: Include "i387-tdep.h".
1842 (print_387_control_word): Delete function.
1843 (print_387_status_word): Delete function.
1844 (print_387_status_bits): Delete function.
1845 (print_387_control_bits): Delete function.
1846 * Makefile.in (i387-tdep.o): Update dependencies.
1847 * rdi-share/host.h (Fail): Declare.
1848 * remote-rdi.c (Fail): Update to match declaration.
1849
2a9cda49
AC
18502003-06-14 Andrew Cagney <[email protected]>
1851
1852 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
1853 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
1854 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
1855 * config/djgpp/fnchange.lst: Delete "remote-array.c".
1856 * README: Delete reference to remote-array.
1857 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
1858 (remote-array.o): Delete target.
1859 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
1860 * remote-array.c: Delete file.
1861
ff2e87ac
AC
18622003-06-14 Andrew Cagney <[email protected]>
1863 Mark Kettenis <[email protected]>
1864
1865 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
1866 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
1867 parameter with "frame".
1868 * gdbarch.h, gdbarch.c: Re-generate.
1869 * frame.h (put_frame_register): Declare.
1870 * frame.c (put_frame_register): New function.
1871 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
1872 (legacy_register_to_value): Rewrite, use "frame" to get the
1873 register value.
1874 (legacy_value_to_register): Rewrite, use "frame" to find the
1875 register's location before storing.
1876 * arch-utils.h (legacy_convert_register_p): Update.
1877 (legacy_register_to_value, legacy_value_to_register): Update.
1878 * findvar.c (value_from_register): Rewrite, eliminate use of
1879 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
1880 "frame" to REGISTER_TO_VALUE.
1881 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
1882 lval_reg_frame_relative + lval_register branch of the switch. Do
1883 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
1884 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1885 I386_EDI_REGNUM): New defines.
1886 (i386_next_regnum, i386_convert_register_p,
1887 i386_register_to_value, i386_value_to_register): New functions.
1888 (i386_register_convertible, i386_register_convert_to_virtual,
1889 i386_convert_to_raw): Remove functions.
1890 (i386_gdbarch_init): Set convert_register_p, register_to_value and
1891 value_to_register instead of register_convertible,
1892 register_convert_to_virtual and register_convert_to_raw.
1893 * mips-tdep.c (mips_convert_register_p): New function.
1894 (mips_value_to_register): Replace mips_register_convert_from_type.
1895 (mips_register_to_value): Replace mips_register_convert_to_type.
1896 (mips_gdbarch_init): Set conver_register_p, value_to_register and
1897 register_to_value.
1898 * alpha-tdep.c (alpha_convert_register_p): Update.
1899 (alpha_value_to_register): Update, store the register.
1900 (alpha_register_to_value): Update, fetch the register.
1901
98be1e77
TR
19022003-06-14 Theodore A. Roth <[email protected]>
1903
1904 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
1905 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
1906 Don't set deprecated_call_dummy_words.
1907 Remove commented out set_gdbarch_believe_pcc_promotion() call.
1908 Don't set remote_translate_xfer_address.
1909 (avr_io_reg_read_command): Remove commented out debug printf.
1910 Wrap a long line.
1911
57bc6122
TR
19122003-06-14 Theodore A. Roth <[email protected]>
1913
1914 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
1915 causes gdb to seg fault.
1916
eb01fc62
DJ
19172003-06-14 Daniel Jacobowitz <[email protected]>
1918
1919 * sparc-nat.c (fetch_inferior_registers): Correct
1920 a reference to "registers".
1921
3b3e6bee
DJ
19222003-06-14 Jeroen Dekkers <[email protected]>
1923
1924 * Makefile.in (exc_request_U_h): Define
1925 (exc_request_S_h): Likewise.
1926 (msg_reply_S_h): Likewise.
1927 (msg_U_h): Likewise.
1928 (notify_S_h): Likewise.
1929 (process_reply_S_h): Likewise.
1930 (gnu-nat.o): Depend on gdb_obstack_h
1931 * gnu-nat.c: Include "gdb_obstack.h".
1932
b8de8283
AC
19332003-06-13 Andrew Cagney <[email protected]>
1934
1935 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
1936 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 1937
f3be58bc
AC
19382003-06-13 Andrew Cagney <[email protected]>
1939
1940 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
1941 when deprecated REGISTER macros can be deleted.
1942 * gdbarch.h, gdbarch.c: Re-generate.
1943
4c0122c8
JB
19442003-06-13 Jim Blandy <[email protected]>
1945
1946 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
1947 Linux entry point symbols for _dl_debug_state, too.
1948
3e210248
AC
19492003-06-13 Andrew Cagney <[email protected]>
1950
1951 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
1952 available, do not use the FP register, and always save the TOS.
1953 * dummy-frame.c (dummy_frame_this_id): Do not assert
1954 SAVE_DUMMY_FRAME_TOS.
1955 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
1956 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
1957 (i386_push_dummy_call): Add 8 to the returned SP.
1958 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
1959 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
1960 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
1961 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
1962 (x86_64_push_dummy_call): Return "sp + 16".
1963 (x86_64_init_abi): Do not set save_dummy_frame_tos.
1964 * alpha-tdep.c (alpha_gdbarch_init): Do not set
1965 save_dummy_frame_tos.
1966
0b65af49
JB
19672003-06-13 Jim Blandy <[email protected]>
1968
1969 * frv-tdep.c (frv_use_struct_convention): Delete static
1970 declaration for function deleted in my change of 2003-06-12.
1971
4ea2465e
TR
19722003-06-13 Theodore A. Roth <[email protected]>
1973
1974 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
1975 (avr_pointer_to_address): Shift code addrs left 1 bit.
1976 (avr_convert_from_func_ptr_addr): Delete function since operation is
1977 better handled by avr_address_to_pointer and avr_pointer_to_address.
1978 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
1979
1581182a
MK
19802003-06-13 Mark Kettenis <[email protected]>
1981
1982 From Kelley Cook <[email protected]>:
1983 * configure.host: Accept i[34567]86 variants.
1984 * configure.tgt: Likewise.
1985 * nlm/configure.in: Likewise.
1986 * nlm/configure: Regenerated.
1987
7aa1783e
RE
19882003-06-13 Richard Earnshaw <[email protected]>
1989
1990 * arm-tdep.c (solib-svr4.h): Dont' include it.
1991 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
1992 * arm-linux-tdep.c: ... here. Make static.
1993 (arm_linux_init_abi): Register it.
1994 (solib-svr4.h): Include it.
1995 * Makefile.in: Update dependencies.
1996 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
1997 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
1998
0261a0d0
CV
19992003-06-13 Corinna Vinschen <[email protected]>
2000
2001 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2002 indicate registers used for return values.
2003 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2004 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2005 members.
2006 (h8300_init_extra_frame_info): Ditto.
2007 (h8300_frame_locals_address): Removed.
2008 (h8300_frame_args_address): Removed.
2009 (h8300_extract_return_value): Use new regcache structure. Only care
2010 for 16 bit CPUs.
2011 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2012 (h8300_store_return_value): Use new regcache structure. Only care
2013 for 16 bit CPUs.
2014 (h8300h_store_return_value): Same function for 32 bit CPUs.
2015 (h8300_store_struct_return): Removed.
2016 (h8300_extract_struct_value_address): Use new regcache structure.
2017 (h8300h_extract_struct_value_address): Removed.
2018 (h8300_push_dummy_code): New function.
2019 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2020 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2021 set_gdbarch_store_return_value architecture dependent.
2022 Call set_gdbarch_push_dummy_code and
2023 set_gdbarch_extract_struct_value_address.
2024 Remove calls to set_gdbarch_frame_args_address,
2025 set_gdbarch_frame_locals_address,
2026 set_gdbarch_deprecated_store_struct_return,
2027 set_gdbarch_deprecated_extract_return_value,
2028 set_gdbarch_deprecated_extract_struct_value_address,
2029 set_gdbarch_deprecated_call_dummy_words and
2030 set_gdbarch_deprecated_sizeof_call_dummy_words.
2031
055c394a
CV
20322003-06-13 Corinna Vinschen <[email protected]>
2033
2034 * h8300-tdep.c (h8300_register_byte): Remove.
2035 (h8300h_register_byte): Remove.
2036 (h8300_register_virtual_type): Remove. Substitute by...
2037 (h8300_register_type): New function.
2038 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2039 (h8300h_extract_struct_value_address): Ditto.
2040 (h8300_gdbarch_init): Drop calls to
2041 set_gdbarch_deprecated_register_byte and
2042 set_gdbarch_deprecated_register_virtual_type.
2043 Add call to set_gdbarch_register_type.
2044
9c04cab7
AC
20452003-06-13 Andrew Cagney <[email protected]>
2046
2047 * gdbarch.sh: Update comments on registers.
2048 (deprecated_register_byte): Rename register_byte.
2049 (deprecated_register_raw_size): Rename register_raw_size.
2050 (deprecated_register_virtual_size): Rename register_virtual_size.
2051 (deprecated_register_virtual_type): Rename register_virtual_type.
2052 * gdbarch.h, gdbarch.c: Re-generate.
2053 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2054 * vax-tdep.c (vax_gdbarch_init): Update.
2055 * v850-tdep.c (v850_gdbarch_init): Update.
2056 * sparc-tdep.c (sparc_gdbarch_init): Update.
2057 * sh-tdep.c (sh_gdbarch_init): Update.
2058 * s390-tdep.c (s390_gdbarch_init): Update.
2059 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2060 * ns32k-tdep.c: Update.
2061 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2062 * mips-tdep.c (mips_gdbarch_init): Update.
2063 * mcore-tdep.c (mcore_gdbarch_init): Update.
2064 * m68k-tdep.c (m68k_gdbarch_init): Update.
2065 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2066 * ia64-tdep.c (ia64_gdbarch_init): Update.
2067 * hppa-tdep.c (hppa_gdbarch_init): Update.
2068 * h8300-tdep.c (h8300_gdbarch_init): Update.
2069 * frv-tdep.c (frv_gdbarch_init): Update.
2070 * cris-tdep.c (cris_gdbarch_init): Update.
2071 * avr-tdep.c (avr_gdbarch_init): Update.
2072 * alpha-tdep.c (alpha_gdbarch_init): Update.
2073 * arm-tdep.c (arm_gdbarch_init): Update.
2074
b060cbea
AC
20752003-06-13 Andrew Cagney <[email protected]>
2076
2077 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2078 mips_o32_use_struct_convention with always_use_struct_convention.
2079
0fc9922a
DC
20802003-06-12 David Carlton <[email protected]>
2081
2082 * cp-namespace.c (cp_set_block_scope): Comment out
2083 processing_has_namespace_info branch.
2084
1fd35568
JB
20852003-06-12 Jim Blandy <[email protected]>
2086
f470a70a
JB
2087 Recognize and skip 64-bit PowerPC Linux linkage functions.
2088 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2089 insn_pattern, insns_match_pattern, d_field, ds_field): New
2090 functions, macros, and types for working with PPC instructions.
2091 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2092 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2093 ppc64_skip_trampoline_code): New functions, variables, and macros
2094 for recognizing and skipping linkage functions.
2095 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2096 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2097
49ff75ad
JB
2098 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2099 register offsets for both the 32- and 64-bit interfaces.
2100
bd918c83
JB
2101 Actually finish the job started by my change of 2003-05-29.
2102 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2103 other #definition of this.
2104 (ppc_linux_skip_trampoline_code): Remove declaration.
2105 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2106 static.
2107 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2108 method for GDBARCH.
2109
2110 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2111 'long' on ppc64-*-linux*.
2112
f8c59253
JB
2113 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2114 isn't #defined, assume the register doesn't exist: act as if
2115 tdep->ppc_mq_regnum were -1.
2116
8fbb30b1
JB
2117 * configure.host, configure.tgt: Add entries for
2118 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2119 powerpc/linux.mt.
2120 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2121 New files.
2122
1fd35568
JB
2123 * arch-utils.c (always_use_struct_convention): New function.
2124 * arch-utils.h (always_use_struct_convention): New prototype.
2125 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2126 (alpha_gdbarch_init): Register always_use_struct_convention,
2127 instead of alpha_use_struct_convention.
2128 * cris-tdep.c (cris_use_struct_convention): Delete.
2129 (cris_gdbarch_init): Register always_use_struct_convention,
2130 instead of cris_use_struct_convention.
2131 * frv-tdep.c (frv_use_struct_convention): Delete.
2132 (frv_gdbarch_init): Register always_use_struct_convention,
2133 instead of frv_use_struct_convention.
2134 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2135 (h8300_gdbarch_init): Register always_use_struct_convention,
2136 instead of h8300_use_struct_convention.
e3305dd9 2137 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
2138 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2139 instead of mips_o32_use_struct_convention.
2140
e14e6e9c
AC
21412003-06-12 Andrew Cagney <[email protected]>
2142
2143 * wince.c: Include "mips-tdep.h".
2144 * mips-tdep.h (mips_next_pc): Declare.
2145 * mcore-tdep.c: Make more local functions static.
2146 * Makefile.in (wince.o): Update dependencies.
2147
2335f48e
DC
21482003-06-12 David Carlton <[email protected]>
2149
2150 * symtab.c (lookup_symbol_aux_minsyms): Replace
2151 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2152 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2153 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2154 SYMBOL_NATURAL_NAME.
2155
f70a7d61
AS
21562003-06-12 Andreas Schwab <[email protected]>
2157
2158 * Makefile.in (tuiDisassem.o): Update dependencies.
2159
b6429628
DC
21602003-06-12 David Carlton <[email protected]>
2161
2162 * symtab.h: Delete declaration of make_symbol_overload_list.
2163 Add declaration of lookup_partial_symbol.
2164 * symtab.c (remove_params): Move to cp-support.c.
2165 (overload_list_add_symbol, make_symbol_overload_list)
2166 (sym_return_val_size, sym_return_val_index): Ditto.
2167 (lookup_partial_symbol): Make extern.
2168 * cp-support.h: Add declaration of make_symbol_overload_list.
2169 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2170 symtab.h, and block.h.
2171 (remove_params): Move here from symtab.c.
2172 (overload_list_add_symbol, make_symbol_overload_list)
2173 (sym_return_val_size, sym_return_val_index): Ditto.
2174 * valops.c: Include cp-support.h.
2175 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2176 frame_h, and block_h.
2177 (valops.o): Depend on cp_support_h.
2178
084edea5
CV
21792003-06-12 Corinna Vinschen <[email protected]>
2180
2181 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2182 substitute by NUM_REGS throughout.
2183 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2184 (h8300s_register_name): New function for H8S registers.
2185 (h8300sx_register_name): Ditto for H8SX registers.
2186 (h8300_print_register): Revise register printing, avoid depending
2187 on 32 bit long.
0261a0d0 2188 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
2189 (h8300h_register_byte): New function for any other architecture.
2190 (h8300_register_raw_size): Remove.
2191 (h8300_register_virtual_type): Revise to return actually useful
2192 type.
2193 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2194 (h8300h_extract_struct_value_address): New function for any other
2195 architecture.
2196 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2197 set_gdbarch_register_name, set_gdbarch_register_byte,
2198 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2199 Remove calls to set_gdbarch_deprecated_register_size,
2200 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2201 set_gdbarch_deprecated_max_register_raw_size,
2202 set_gdbarch_register_virtual_size and
2203 set_gdbarch_deprecated_max_register_virtual_size entirely.
2204 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2205 set_gdbarch_long_double_bit.
2206
06194148
JJ
22072003-06-11 Jeff Johnston <[email protected]>
2208
8ffd9b1b
AJ
2209 * doublest.c (convert_doublest_to_floatformat): When dealing
2210 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
2211 processing a full 32 bits of mantissa.
2212
de4f826b
DC
22132003-06-11 David Carlton <[email protected]>
2214
2215 * dictionary.h: New.
2216 * dictionary.c: New.
2217 * block.h: Add opaque declaration for struct dictionary.
2218 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2219 'sym' members.
2220 (BLOCK_DICT): New macro.
2221 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2222 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2223 BLOCK_SHOULD_SORT.
2224 (ALL_BLOCK_SYMBOLS): Update definition.
2225 * Makefile.in (SFILES): Add dictionary.c.
2226 (dictionary_h): New.
2227 (COMMON_OBS): Add dictionary.o.
2228 (dictionary.o): New.
2229 (ada-lang.o): Depend on dictionary_h.
2230 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2231 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2232 (mi-cmd-stack.o): Ditto.
2233 (gdbtk-cmds.o): Update dependencies.
2234 (gdbtk-stack.o): Ditto.
2235 * ada-lang.c: Include dictionary.h.
2236 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2237 (fill_in_ada_prototype, debug_print_block): Ditto.
2238 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2239 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
2240 'is_sorted'.
2241 * mdebugread.c: Include dictionary.h.
2242 (struct parse_stack): Delete 'maxsyms' member.
2243 (parse_symbol): Update calls to new_block. Delete calls to
2244 shrink_block. Use dictionary methods.
2245 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2246 Update calls to new_symtab. Don't maintain maxsyms data.
2247 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2248 (add_symbol): Just call dict_add_symbol.
2249 (new_symtab): Delete 'maxsyms' argument.
2250 (new_symtab): Update calls to new_block.
2251 (new_block): Delete 'maxsyms' argument; add 'function' argument.
2252 (shrink_block): Delete function.
2253 (fixup_sigtramp): Update call to new_block. Add symbol via
2254 dict_add_symbol.
2255 * jv-lang.c: Include dictionary.h.
2256 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2257 appropriately. Set class_symtab->free_func. Make sure the
2258 blockvector is big enough to hold two blocks.
2259 (add_class_symtab_symbol): Use dictionary methods.
2260 (free_class_block): New function.
2261 (type_from_class): Replace explicit iteration by
2262 ALL_BLOCK_SYMBOLS.
2263 * symtab.h (struct symtab): Replace 'free_ptr' method by
2264 'free_func'.
2265 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2266 sort_symtab_syms.
2267 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2268 sort_symtab_syms.
2269 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2270 Include dictionary.h.
2271 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2272 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2273 sort_symtab_syms.
2274 * objfiles.c: Include dictionary.h.
2275 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2276 * buildsym.c: Include dictionary.h.
2277 (finish_block): Use dictionary methods.
2278 (end_symtab): Set free_func to NULL, not free_ptr.
2279 * tracepoint.c: Include dictionary.h.
2280 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2281 (scope_info): Ditto.
2282 * stack.c: Include dictionary.h.
2283 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2284 (print_block_frame_labels, print_frame_arg_vars)
2285 (print_frame_args): Ditto.
2286 * symmisc.c (free_symtab_block): Use dictionary methods.
2287 (dump_symtab): Ditto.
2288 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2289 Include dictionary.h.
2290 * symfile.h: Delete declarations of sort_block_syms,
2291 sort_symtab_syms.
2292 * symfile.c (sort_block_syms): Delete.
2293 (sort_symtab_syms): Delete.
2294 * symtab.c: Include dictionary.h.
2295 (lookup_block_symbol): Use dictionary iterators.
2296 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2297 (search_symbols, make_symbol_completion_list): Ditto.
2298 (make_symbol_overload_list): Ditto.
2299 * valops.c (value_of_local): Use dict_empty.
2300 Include dictionary.h.
2301
a31f978c
JB
23022003-06-11 J. Brobecker <[email protected]>
2303
2304 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2305
526e70c0
DC
23062003-06-11 David Carlton <[email protected]>
2307
2308 * block.h (BLOCK_SHOULD_SORT): Delete.
2309 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2310 blocks.
2311 * ada-lang.c (ada_add_block_symbols): Ditto.
2312 * symfile.c (sort_block_syms): Delete.
2313 (sort_symtab_syms): Ditto.
2314 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2315 declarations.
2316 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2317 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2318 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2319 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2320 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2321 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2322 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2323
33c08150
JJ
23242003-06-11 Jeff Johnston <[email protected]>
2325
8ffd9b1b 2326 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
2327 bits to 128.
2328
781a750d
AC
23292003-06-11 Andrew Cagney <[email protected]>
2330
2331 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2332 REGISTER_CONVERTIBLE.
2333 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2334 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2335 * gdbarch.h, gdbarch.c: Re-generate.
2336 * arch-utils.h (deprecated_register_convertible_not): Rename
2337 generic_register_convertible_not.
2338 * arch-utils.c (deprecated_register_convertible_not): Rename
2339 generic_register_convertible.
2340 (legacy_convert_register_p, legacy_register_to_value): Update.
2341 * sh-tdep.c (sh64_push_arguments): Update.
2342 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2343 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2344 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2345 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2346 * arch-utils.c (legacy_value_to_register): Update.
2347 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2348 (rs6000_register_convert_to_raw): Make parameter "from" const.
2349 * mips-tdep.c (mips_gdbarch_init): Update.
2350 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
2351 * infcmd.c (default_print_registers_info): Update.
2352 * ia64-tdep.c (ia64_gdbarch_init): Update.
2353 (ia64_register_convert_to_raw): Make parameter "from" const.
2354 * i386-tdep.c (i386_gdbarch_init): Update.
2355 (i386_register_convert_to_raw): Update.
2356
cd90e54f
AC
23572003-06-11 Andrew Cagney <[email protected]>
2358
2359 * remote-fileio.c: Include "remote-fileio.h".
2360 * Makefile.in (remote-fileio.o): Update dependencies.
2361 (remote_fileio_h): Fix typo.
2362
a78f21af
AC
23632003-06-11 Andrew Cagney <[email protected]>
2364
2365 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
2366 (xstormy16_save_dummy_frame_tos): Make static.
2367 (_initialize_xstormy16_tdep): Add declaration.
2368 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2369 * v850-tdep.c: Make local functions static.
2370 (_initialize_v850_tdep): Add declaration.
2371 * sparc-tdep.c: Make local functions static.
2372 (_initialize_sparc_tdep): Add declaration.
2373 * sh-tdep.c: Make local functions static.
2374 (_initialize_sh_tdep): Add declaration.
2375 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
2376 * s390-tdep.c: Make local functions static.
2377 (_initialize_s390_tdep): Add declaration.
2378 * dbxread.c (find_stab_function_addr): Make static.
2379 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
2380 * ocd.c (_initialize_remote_ocd): Add declaration.
2381 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
2382 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
2383 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
2384 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
2385 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2386 * remote-array.c (_initialize_array): Add declaration.
2387 (_initialize_remote_monitors): Add declaration.
2388 * remote-mips.c: Make local functions static.
2389 (_initialize_remote_mips): Add declaration.
2390 * mcore-tdep.c: Make all local functions static.
2391 (_initialize_mcore_tdep): Add declaration.
2392 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
2393 * abug-rom.c (_initialize_abug_rom): Add declaration.
2394 * rom68k-rom.c (_initialize_rom68k): Add declaration.
2395 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
2396 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2397 * remote-est.c (_initialize_est): Add declaration.
2398 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2399 (m68hc11_call_dummy_address): Make static.
2400 * ia64-tdep.c: Make local functions static.
2401 (_initialize_ia64_tdep): Add declaration.
2402 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
2403 * monitor.c (monitor_wait_filter): Make static.
2404 (_initialize_remote_monitors): Add declaration.
2405 * remote-hms.c (_initialize_remote_hms): Add declaration.
2406 * remote-e7000.c (fetch_regs_from_dump): Make static.
2407 (expect_n): Make static.
2408 (_initialize_remote_e7000): Add declaration.
2409 * ser-e7kpc.c: Always include "defs.h".
2410 (_initialize_ser_e7000pc): Add declaration.
2411 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
2412 * cris-tdep.c: Make all but one function static.
2413 (_initialize_cris_tdep): Add declaration.
2414 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
2415 * solib.c (update_solib_list): Make static.
2416 (_initialize_solib): Add declaration.
2417 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
2418 (_initialize_avr_tdep): Add declaration.
2419 * remote-rdi.c (voiddummy): Make static.
2420 (_initialize_remote_rdi): Add declaration.
2421 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
2422 * remote-rdp.c (send_rdp): Make static.
2423 (_initialize_remote_rdp): Add declaration.
2424 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
2425
cbcdb1f5
CV
24262003-06-11 Corinna Vinschen <[email protected]>
2427
2428 * remote-fileio.c: Make ari happy.
2429
a191ea8d
JB
24302003-06-10 J. Brobecker <[email protected]>
2431
2432 * rs6000-nat.c (child_xfer_memory): Compute the right address when
2433 fetching the trailing bytes of the buffer we are about to write.
2434
0ef75e11
AC
24352003-06-10 Andrew Cagney <[email protected]>
2436
2437 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
2438 * Makefile.in (remote-fileio.o): Update dependencies.
2439 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
2440 include <setjmp.h>, or <sys/types.h> conditional on USG.
2441 (remote_fio_jmp_buf): Delete global variable.
2442
449092f6 24432003-06-10 Corinna Vinschen <[email protected]>
559fa028 2444 Martin M. Hunt <[email protected]>
449092f6 2445
559fa028
AC
2446 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
2447 (SFILES): Add remote-fileio.c.
2448 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
2449 dependencies for building remote.o.
449092f6
CV
2450 * remote-fileio.c: New file implementing the remote File-I/O protocol.
2451 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 2452 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
2453 static storage class.
2454 (remote_wait, remote_async_wait): Call remote_fileio_request() on
2455 'F' packet.
2456 (_initialize_remote): Call initialize_remote_fileio().
2457 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
2458 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2459 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2460 (captured_main): Initialize new ui_files.
2461 * ui-file.c: Add read and fgets input functions.
2462 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
2463 (null_file_read): New function.
2464 (ui_file_read): New function.
2465 (set_ui_file_read): New function.
2466 (stdio_file_read): New function.
2467 * ui-file.h: New type ui_file_read_ftype.
2468 (set_ui_file_read): Declare.
2469 (ui_file_read): Declare.
2470
248de703
AC
24712003-06-09 Andrew Cagney <[email protected]>
2472
2473 * frame.h (deprecated_unwind_get_saved_register): Rename
2474 generic_unwind_get_saved_register, update comments.
2475 * mips-tdep.c (mips_get_saved_register): Update.
2476 * frame.c (deprecated_unwind_get_saved_register): Update.
2477
0ed8aa57
AC
24782003-06-09 Andrew Cagney <[email protected]>
2479
2480 * vax-tdep.c (vax_frame_locals_address): Delete function.
2481 (vax_gdbarch_init): Do not set frame_locals_address.
2482 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
2483 (m68hc11_gdbarch_init): Do not set frame_locals_address.
2484 * s390-tdep.c (s390_frame_args_address): Delete function.
2485 (s390_gdbarch_init): Do not set frame_args_address or
2486 frame_locals_address.
2487 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
2488 (ns32k_gdbarch_init): Do not set frame_locals_address.
2489 * hppa-tdep.c (hppa_frame_args_address): Delete function.
2490 (hppa_frame_locals_address): Delete function.
2491 (hppa_gdbarch_init): Do not set frame_args_address, or
2492 frame_locals_address.
2493 * arm-tdep.c (arm_frame_args_address): Delete.
2494 (arm_frame_locals_address): Delete.
2495 (arm_gdbarch_init): Do not set frame_args_address, or
2496 frame_locals_address.
2497
983a287a
AC
24982003-06-09 Andrew Cagney <[email protected]>
2499
2500 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
2501 * gdbarch.h, gdbarch.c: Re-generate.
2502 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
2503 * arch-utils.c (frame_num_args_unknown): Delete function.
2504 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
2505 (frame_info): Use FRAME_NUM_ARGS_P.
2506 * arm-tdep.c (arm_frame_num_args): Delete function.
2507 (arm_gdbarch_init): Do not set frame_num_args.
2508 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
2509 * hppa-tdep.c (hppa_frame_num_args): Delete function.
2510 (hppa_gdbarch_init): Do not set frame_num_args.
2511 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
2512 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2513 frame_num_args to default frame_num_args_unknown.
2514 * v850-tdep.c (v850_gdbarch_init): Ditto.
2515 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2516 * sh-tdep.c (sh_gdbarch_init): Ditto.
2517 * s390-tdep.c (s390_gdbarch_init): Ditto.
2518 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2519 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2520 * mips-tdep.c (mips_gdbarch_init): Ditto.
2521 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2522 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2523 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2524 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2525 * i386-tdep.c (i386_gdbarch_init): Ditto.
2526 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2527 * frv-tdep.c (frv_gdbarch_init): Ditto.
2528 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2529 * cris-tdep.c (cris_gdbarch_init): Ditto.
2530 * avr-tdep.c (avr_gdbarch_init): Ditto.
2531 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2532
8d3b0994
AC
25332003-06-09 Andrew Cagney <[email protected]>
2534
2535 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
2536 (print_frame_args): Moved to "stack.c".
2537 * stack.c: Include "gdb_assert.h".
2538 (print_frame_nameless_args): Moved from "printcmd.c", made static.
2539 (print_frame_args): Moved from "printcmd.c".
2540 * frame.h (print_frame_args): Delete declaration.
2541 * Makefile.in (stack.o): Update dependencies.
2542
25e3a86b
AC
25432003-06-08 Andrew Cagney <[email protected]>
2544
2545 * frame.c (get_prev_frame): Remove reference to
2546 frame_args_address_correct in comments.
2547 * frame-base.c (default_frame_args_address): Delete code
2548 conditional on FRAME_ARGS_ADDRESS_CORRECT.
2549 * vax-tdep.c (vax_frame_args_address_correct): Delete.
2550 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
2551 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
2552 (vax_frame_args_address_correct): Delete declaration.
2553
a9e5fdc2
AC
25542003-06-08 Andrew Cagney <[email protected]>
2555
2556 * gdbarch.sh (UNWIND_SP): Add.
2557 * gdbarch.h, gdbarch.c: Re-generate.
2558 * frame.c (frame_sp_unwind): New function.
2559 (get_frame_sp): New function.
2560 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
2561 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
2562 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
2563 value.
2564 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
2565 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
2566
8983bd83
AC
25672003-06-08 Andrew Cagney <[email protected]>
2568
7fec2c59
AC
2569 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
2570 REMOTE_BREAKPOINT.
2571 * remote.c: Update.
2572 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
2573 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
2574 * config/m68k/tm-sun3.h: Update.
2575 * config/m68k/tm-m68klynx.h: Update.
2576 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
2577
8983bd83
AC
2578 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
2579 trad_frame". Update comments.
2580 * d10v-tdep.c (struct d10v_unwind_cache): Update.
2581 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
2582 (trad_frame_register_value, trad_frame_prev_register): Update.
2583
b9362cc7
AC
25842003-06-08 Andrew Cagney <[email protected]>
2585
2586 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
2587 from GCC's acinclude.m4.
2588 * configure.in: Check for getopt's delcaration.
8ffd9b1b 2589 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
2590 * main.c (error_init): Delete declaration.
2591 * defs.h (error_init): Declare.
2592 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
2593 (rs6000_convert_from_func_ptr_addr): Make static.
2594 (_initialize_rs6000_tdep): Add declaration.
2595 * cli/cli-cmds.c (dont_repeat): Delete declaration.
2596 (show_commands, set_verbose, show_history): Delete declaration.
2597 * top.h (set_verbose): Add declaration.
2598 (show_history, set_history, show_commands): Add declaration.
2599 (do_restore_instream_cleanup): Add declaration.
2600 * objc-lang.c (specialcmp): Make static.
2601 (print_object_command): Make static.
2602 (find_objc_msgsend): Make static.
2603 (find_objc_msgcall_submethod_helper): Make static.
2604 (find_objc_msgcall_submethod): Make static.
2605 (_initialize_objc_language): Add declaration.
2606 (find_implementation_from_class): Make static.
2607 (find_implementation): Make static.
2608 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
2609 * objc-lang.h (lookup_struct_typedef): Add declaration.
2610 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
2611 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
2612 (do_restore_user_call_depth): Make static.
2613 (do_restore_instream_cleanup): Delete declaration.
2614 (dont_repeat): Delete declaration.
2615 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
2616 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
2617 * reggroups.c (_initialize_reggroup): Add declaration.
2618 * cp-support.c (_initialize_cp_support): Add declaration.
2619 * cp-abi.c (_initialize_cp_abi): Add declaration.
2620 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
2621 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
2622 (_initialize_gnu_v3_abi): Add declaration.
2623 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
2624 (_initialize_gnu_v2_abi): Add declaration.
2625 * frame-base.c (_initialize_frame_base): Add declaration.
2626 * doublest.c (floatformat_from_length): Make static.
2627 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
2628 * frame.c (create_sentinel_frame): Make static.
2629 (_initialize_frame): Add declaration.
2630 * top.c (do_catch_errors): Make static.
2631 (gdb_rl_operate_and_get_next_completion): Make static.
2632 * typeprint.c: Include "typeprint.h".
2633 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
2634 (sentinel_frame_this_id): Make static.
2635 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
2636 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
2637 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
2638 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
2639 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
2640 * maint.c (maintenance_print_architecture): Make static.
2641 * signals/signals.c (_initialize_signals): Add declaration.
2642 * std-regs.c (_initialize_frame_reg): Add declaration.
2643 * jv-exp.y (push_variable): ISO C definition.
2644 (push_qualified_expression_name): Ditto.
2645 * memattr.c (_initialize_mem): Add declaration.
2646 * remote.c (remote_check_watch_resources): Make static.
2647 (remote_stopped_by_watchpoint): Make static.
2648 (remote_stopped_data_address): Make static.
2649 * d10v-tdep.c (nr_dmap_regs): Make static.
2650 (a0_regnum): Make static.
2651 (d10v_frame_unwind_cache): Make static.
2652 (d10v_frame_p): Make static.
2653 * osabi.c (show_osabi): Make static.
2654 (_initialize_gdb_osabi): Add extern declaration.
2655 * gdbtypes.c (make_qualified_type): Make static.
2656 (safe_parse_type): Make static.
2657 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
2658 * macrotab.c (macro_bcache_free): Make static.
2659 * interps.c (interp_set_quiet): Make static.
2660 (interpreter_exec_cmd): Make static.
2661 * stack.h (select_frame_command): New file.
2662 * stack.c: Include "stack.h".
2663 (select_frame_command_wrapper): Delete function.
2664 (select_frame_command): Make global.
2665 * infcall.c: Include "infcall.h".
2666 * linespec.c: Include "linespec.h".
2667 * symfile.c (sections_overlap): Make static.
2668 * cp-support.h (cp_initialize_namespace): ISO C declaration.
2669 * charset.c (_initialize_charset): Add missing prototype.
2670 * regcache.c (init_legacy_regcache_descr): Make static.
2671 (do_regcache_xfree): Make static.
2672 (regcache_xfer_part): Make static.
2673 (_initialize_regcache): Add missing prototype.
2674 * breakpoint.c (parse_breakpoint_sals): Make static.
2675 (breakpoint_sals_to_pc): Make static.
2676 * interps.h (clear_interpreter_hooks): ISO C declaration.
2677 * Makefile.in (stack_h): Define.
2678 (stack.o, typeprint.o, mi-main.o): Update dependencies.
2679 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
2680
a0f267c7
AC
26812003-06-08 Andrew Cagney <[email protected]>
2682
2683 * Makefile.in (d10v-tdep.o): Update dependencies.
2684 (SFILES): Add trad-frame.c.
2685 (trad_frame_h): Define.
2686 (COMMON_OBS): Add trad-frame.o.
2687 (trad-frame.o): Specify dependencies.
2688 * d10v-tdep.c: Include "trad-frame.h".
2689 (saved_regs_unwinder): Delete function.
2690 (d10v_frame_prev_register): Use trad_frame_prev_register.
2691 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
2692 trad_frame", delete "regs" and "prev_sp".
2693 (prologue_find_regs): Use trad-frame.
2694 * trad-frame.h, trad-frame.c: New files.
2695
4538b4f4
MK
26962003-06-08 Mark Kettenis <[email protected]>
2697
2698 * dwarf2cfi.c, dwarf2cfi.h: Remove.
2699
a0273b2f
AF
27002003-06-07 Adam Fedor <[email protected]>
2701
2702 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
2703 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
2704 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
2705 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 2706 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
2707 Use it.
2708
3a6c3343
AC
27092003-06-07 Andrew Cagney <[email protected]>
2710
2711 * symfile.h: Re-indent, clean up comments.
2712
b46e02f6
AC
27132003-06-07 Andrew Cagney <[email protected]>
2714
2715 * inferior.h (deprecated_write_sp): Replace
2716 generic_target_write_sp.
2717 * regcache.c (deprecated_write_sp): Replace
2718 generic_target_write_sp.
2719 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2720 * vax-tdep.c (vax_gdbarch_init): Update.
2721 * v850-tdep.c (v850_gdbarch_init): Update.
2722 * sparc-tdep.c (sparc_gdbarch_init): Update.
2723 * sh-tdep.c (sh_gdbarch_init): Update.
2724 * s390-tdep.c (s390_gdbarch_init): Update.
2725 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2726 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2727 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2728 * mcore-tdep.c (mcore_gdbarch_init): Update.
2729 * m68k-tdep.c (m68k_gdbarch_init): Update.
2730 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2731 * ia64-tdep.c (ia64_gdbarch_init): Update.
2732 * h8300-tdep.c (h8300_gdbarch_init): Update.
2733 * frv-tdep.c (frv_gdbarch_init): Update.
2734 * cris-tdep.c (cris_gdbarch_init): Update.
2735 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
2736
a42e117c
AC
27372003-06-07 Andrew Cagney <[email protected]>
2738
2739 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
2740 Assert that PC_REGNUM is valid.
2741 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
2742
bd1ce8ba
AC
27432003-06-07 Andrew Cagney <[email protected]>
2744
2745 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
2746 * gdbarch.h, gdbarch.c: Regenerate.
2747 * mn10300-tdep.c: Include "gdb_assert.h".
2748 (mn10300_read_fp): New function.
2749 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
2750 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
2751 * ia64-tdep.c: Include "gdb_assert.h".
2752 (ia64_read_fp): New function.
2753 (ia64_gdbarch_init): Set deprecated_target_read_fp to
2754 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
2755 * regcache.c (generic_target_read_sp): Delete function.
2756 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
2757 * inferior.h (generic_target_read_sp): Delete declaration.
2758 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
2759 generic_target_read_sp.
2760 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2761 * sparc-tdep.c (sparc_gdbarch_init): Ditto
2762 * sh-tdep.c (sh_gdbarch_init): Ditto.
2763 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2764 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
2765
ec5cbaec
AC
27662003-06-07 Andrew Cagney <[email protected]>
2767
2768 * gdbarch.sh: Comment each field of startup_gdbarch.
2769 * gdbarch.h, gdbarch.c: Re-generate.
2770
cde9ea48
AC
27712003-06-07 Andrew Cagney <[email protected]>
2772
2773 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
2774 * gdbarch.h, gdbarch.c: Re-generate.
2775 * regcache.c: Update comments on read_pc et.al.
2776 (generic_target_read_pc): Delete function.
2777 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
2778 * inferior.h (generic_target_read_pc): Delete declaration.
2779 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
2780 generic_target_read_pc.
2781 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2782 * sh-tdep.c (sh_gdbarch_init): Ditto.
2783 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2784 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 2785
9a90a780
AC
27862003-06-07 Andrew Cagney <[email protected]>
2787
2788 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
2789 "index" with "special_local_sect". Use strcmp instead of STREQ.
2790 Append period to coments.
2791
a39a16c4
MM
27922003-06-06 Mark Mitchell <[email protected]>
2793
2794 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
2795 (elfstab_offset_sections): Likewise.
2796 * gdb-stabs.h (stab_section_info): Likewise.
2797 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
2798 * objfiles.c (objfile_relocate): Likewise.
2799 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
2800 * remote.c (get_offsets): Likewise.
2801 (remote_cisco_objfile_relocate): Likewise.
2802 * somread.c (som_symfile_offsets): Likewise.
2803 * symfile.c (alloc_section_addr_info): New function.
2804 (build_section_addr_info_from_section_tab): Use it.
2805 (free_section_addr_info): Adjust.
2806 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
2807 (syms_from_objfile): Allocate local_addr dynamically.
2808 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
2809 dynamically.
2810 (add_symbol_file_command): Allocate sect_opts dynamically.
2811 (reread_symbols): Avoid use of SECT_OFF_MAX.
2812 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
2813 (alloc_section_addr_info): Declare it.
2814 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
2815 * win32-nat.c (solib_symbols_add): Allocate section_addrs
2816 dynamically.
2817 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 2818
20c6c2f8
AC
28192003-06-06 Andrew Cagney <[email protected]>
2820
2821 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
2822 (d10v_frame_unwind_cache): Do not set "return_pc".
2823
884a26c8
MS
28242003-06-06 Michael Snyder <[email protected]>
2825
2826 * h8300-tdep.c: Make tidy (long lines).
2827
088ce440
ML
28282003-06-06 Michal Ludvig <[email protected]>
2829
8ffd9b1b 2830 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
2831 to regcache_collect().
2832
7d773d96
JB
28332003-06-05 J. Brobecker <[email protected]>
2834
2835 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
2836 pc_in_sigtramp multiarch method.
2837 (hppa_hpux_som_init_abi): Use it.
2838 (hppa_hpux_elf_init_abi): Likewise.
2839 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
2840 macro has been multiarched.
2841 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
2842 macro here, as hppa64 isn't multiarched yet.
2843
1df6926e
AC
28442003-06-05 Andrew Cagney <[email protected]>
2845
2846 * Makefile.in (value_h): Add $(frame_h).
2847 * value.h: Include "frame.h".
2848 (struct value): Replace "frame_addr" with "frame_id".
2849 (VALUE_FRAME_ID): Replace VALUE_FRAME.
2850 * values.c (allocate_value): Use VALUE_FRAME_ID.
2851 (value_copy): Use VALUE_FRAME_ID.
2852 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
2853 * valops.c (value_assign): Update. Use frame_find_by_id.
2854
6b53acc6
ML
28552003-06-05 Michal Ludvig <[email protected]>
2856
2857 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
2858 in each pass.
2859
4d9850d3
JJ
28602003-06-05 Jeff Johnston <[email protected]>
2861
2862 * thread-db.c (check_event): For create/death event breakpoints,
2863 loop through all messages to ensure that we read the message
2864 corresponding to the breakpoint we are at.
2865
8efca6ba
MS
28662003-06-04 Michael Snyder <[email protected]>
2867
2868 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
2869
0912c7f2
MK
28702003-06-04 Mark Kettenis <[email protected]>
2871
2872 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
2873 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
2874 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
2875 when handling .eh_frame sections.
2876
4e370325
JB
28772003-06-04 J. Brobecker <[email protected]>
2878
2879 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
2880 prepare_to_proceed procedure instead of the hppa-specific one.
2881 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
2882
b757528f 28832003-06-04 Jeff Johnston <[email protected]>
8ffd9b1b 2884
b757528f
JJ
2885 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
2886 * config.in: Regenerated.
2887 * configure.in: Add test for syscall function and check for
2888 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
2889 * configure: Regenerated.
2890 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
2891 <sys/syscall.h>.
2892 (kill_lwp): New function that uses tkill syscall or
2893 uses kill, depending on whether threading model is nptl or not.
2894 All callers of kill() changed to use kill_lwp().
2895 (lin_lwp_wait): Make special check when WIFEXITED occurs to
2896 see if all threads have already exited in the nptl model.
2897 (stop_and_resume_callback): New callback function used by the
2898 lin_lwp_wait thread exit handling code.
2899 (stop_wait_callback): Check for threads already having exited and
2900 delete such threads fromt the lwp list when discovered.
2901 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 2902
b757528f
JJ
2903 Roland McGrath <[email protected]>
2904 * i386-linux-nat.c (ps_get_thread_area): New function needed by
2905 nptl libthread_db.
2906
087779b1
RH
29072003-06-03 Richard Henderson <[email protected]>
2908
b21fd293
RH
2909 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
2910 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
2911 (alpha_sigtramp_frame_prev_register): Likewise.
2912 (alpha_heuristic_frame_prev_register): Likewise.
2913 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
2914
8ffd9b1b 2915 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
2916 alpha-specific register id names.
2917 (alpha_mdebug_frame_unwind_cache): Likewise.
2918 (alpha_mdebug_frame_prev_register): Likewise.
2919
baa490c4
RH
29202003-06-03 Richard Henderson <[email protected]>
2921
2922 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
2923 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
2924 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
2925 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
2926 unwind routines.
2927 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
2928 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
2929 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
2930
2931 * alpha-linux-tdep.c: Remove unnecessary includes.
2932 * Makefile.in (alpha-linux-tdep.o): Update.
2933
29342003-06-03 Richard Henderson <[email protected]>
2935
2936 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
2937 (alphabsd_fill_fpreg): Likewise.
2938
f534e522
JB
29392003-06-03 J. Brobecker <[email protected]>
2940
2941 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
2942 references to struct frame_info fields by calls to the equivalent
2943 accessors. Necessary now that frame_info is opaque.
2944
4035536b
JB
29452003-06-03 J. Brobecker <[email protected]>
2946
2947 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
2948 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
2949 structure, field no longer exists.
2950
0bd79c5c
JB
29512003-06-03 J. Brobecker <[email protected]>
2952
2953 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
2954 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
2955
37bb6d9f
JB
29562003-06-03 J. Brobecker <[email protected]>
2957
2958 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
2959 references to struct frame_info fields by calls to the equivalent
2960 accessors. Necessary now that frame_info is opaque.
2961
852ee05c
JB
29622003-06-03 J. Brobecker <[email protected]>
2963
2964 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
2965 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
2966 structure, field no longer exists.
2967
7d58c67d
TR
29682003-06-03 Theodore A. Roth <[email protected]>
2969
8ffd9b1b 2970 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
2971 accumulation of the size of all registers instead of blindly using
2972 DEPRECATED_REGISTER_BYTES.
2973
0a48e7e8
MS
29742003-06-03 Michael Snyder <[email protected]>
2975
2976 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
2977 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
2978 for h8300sx.
2979
9798ab0d
JB
29802003-06-03 J. Brobecker <[email protected]>
2981
2982 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
2983 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
2984
00b037e2
AC
29852003-06-03 Andrew Cagney <[email protected]>
2986
2987 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
2988 (sparc_convert_to_raw): Delete function.
2989 (sparc_gdbarch_init): Do not set register_convert_to_raw or
2990 register_convert_to_virtual.
2991
043b2f77
JJ
29922003-06-03 Jeff Johnston <[email protected]>
2993
2994 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
2995 layer if not dealing with a statically-linked threaded program.
2996
f43caff8
KW
29972003-06-03 Kris Warkentin <[email protected]>
2998
2999 * solib.c (solib_open): Update comment to reflect actual search order.
3000
ae1e7417
AC
30012003-06-03 Andrew Cagney <[email protected]>
3002
3003 * frame.c (get_frame_memory_signed): New function.
3004 (get_frame_memory, get_frame_memory_unsigned): New function.
3005 (get_frame_arch): New function.
3006 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3007 (get_frame_memory, get_frame_unsigned_memory): Declare.
3008 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3009 get_frame_memory_unsigned and get_frame_arch.
3010 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3011
cb123844
RG
30122003-06-03 Raoul Gough <[email protected]>
3013
3014 * MAINTAINERS (write after approval): Add myself.
3015
1bb792e9
JB
30162003-06-03 Jim Blandy <[email protected]>
3017
3018 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3019 elements of gregset_t are 64 bits each, but access registers
3020 are still 32 bits, so they're packed two per gregset_t
3021 element. Unpack/pack them properly.
3022
aee8d8ba
DC
30232003-06-02 David Carlton <[email protected]>
3024
3025 * linespec.c (find_methods): Break out code into
3026 add_matching_methods and add_constructors.
3027 (add_matching_methods): New.
3028 (add_constructors): Ditto.
3029
bf7488d2
AC
30302003-06-02 Andrew Cagney <[email protected]>
3031
bf7488d2
AC
3032 * sparc-tdep.c (sparc_print_registers): Delete call to
3033 REGISTER_CONVERTIBLE.
3034 (sparc_gdbarch_init): Do not set register_convertible.
3035 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3036 * frv-tdep.c (frv_gdbarch_init): Ditto.
3037 * cris-tdep.c (cris_gdbarch_init): Ditto.
3038
adedef68
EZ
30392003-06-02 Elena Zannoni <[email protected]>
3040
8ffd9b1b 3041 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
3042 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3043 (syms_from_objfile): Ditto.
3044
650fcc91
AS
30452003-06-03 Andreas Schwab <[email protected]>
3046
3047 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3048 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3049
df4a182b
RH
30502003-06-02 Richard Henderson <[email protected]>
3051
3052 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3053 a member of all_reggroup.
3054
c483c494
RH
30552003-06-02 Richard Henderson <[email protected]>
3056
3057 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3058 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3059 (alpha_lds, alpha_sts): New.
3060 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 3061 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
3062 restructure and fail for type sizes other than 4 or 8.
3063 (alpha_value_to_register): Similarly.
3064 (alpha_extract_return_value): Use alpha_sts.
3065 (alpha_store_return_value): Use alpha_lds.
3066 (alpha_gdbarch_init): Update hooks.
3067
b38b6be2
RH
30682003-06-02 Richard Henderson <[email protected]>
3069
3070 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3071 regnum identifiers.
3072 (alpha_sigtramp_register_address): Likewise.
3073
98a8e1e5
RH
30742003-06-02 Richard Henderson <[email protected]>
3075
3076 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3077 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3078 * alpha-tdep.h: Declare them.
3079
3080 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3081 Remove zerobuf. Don't error on UNIQUE.
3082 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3083 (ALPHA_REGSET_UNIQUE): Provide default.
3084 (supply_gregset): Use alpha_supply_int_regs.
3085 (fill_gregset): Use alpha_fill_int_regs.
3086 (supply_fpregset): Use alpha_supply_fp_regs.
3087 (fill_fpregset): Use alpha_fill_fp_regs.
3088 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3089 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3090 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3091 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3092 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3093 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3094
67dfac52
RH
30952003-06-02 Richard Henderson <[email protected]>
3096
f75d70cc
RH
3097 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3098
67dfac52
RH
3099 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3100 (alpha_store_return_value): Likewise.
3101
0cf566ec
DC
31022003-06-02 David Carlton <[email protected]>
3103
3104 * block.c (contained_in): Add 'const' to arguments.
3105 (block_function): Ditto.
3106 * block.h: Update declarations for block_function and
3107 contained_in.
3108
cdef89d0
DC
31092003-06-02 David Carlton <[email protected]>
3110
3111 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3112 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3113 * p-valprint.c (pascal_val_print): Ditto.
3114 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3115
72667056
RH
31162003-06-02 Richard Henderson <[email protected]>
3117
98a8e1e5
RH
3118 * alpha-tdep.c (alpha_push_dummy_call): Use
3119 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 3120
8ffd9b1b 3121 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
3122 sign-extension of 32-bit values.
3123 (alpha_store_return_value): Similarly.
0ede8eca 3124
98a8e1e5
RH
3125 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3126 (alpha_extract_return_value): Likewise.
3127 (alpha_store_return_value): Likewise.
7b5e1cb3 3128
98a8e1e5
RH
3129 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3130 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 3131
98a8e1e5
RH
3132 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3133 (alpha_extract_struct_value_address): Likewise.
3134 (alpha_store_return_value): Likewise.
3135 (alpha_store_struct_return): Remove.
3136 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 3137
98a8e1e5
RH
3138 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3139 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3140 macros where appropriate.
3141 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3142 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 3143
98a8e1e5
RH
3144 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3145 for SP, GP; void_func_ptr for PC; non-language-specific types
3146 for all others.
3147 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 3148
6dd77b81
RH
31492003-06-02 Richard Henderson <[email protected]>
3150
3151 * top.h (lim_at_start): Declare.
3152 * main.c (captured_main): Set it.
3153 * top.c (lim_at_start): Define.
3154 (command_loop): Use it instead of &environ.
3155 * event-top.c (command_handler): Likewise.
3156
f4dbdb54
JT
31572003-06-01 Jason Thorpe <[email protected]>
3158
3159 * mipsnbsd-tdep.c: Update copyright years.
3160 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3161
8f285956
RH
31622003-06-01 Richard Henderson <[email protected]>
3163
98a8e1e5
RH
3164 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3165 (alpha-linux-tdep.o): Update dependencies.
3166 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3167 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 3168
615967cb
RH
31692003-06-01 Richard Henderson <[email protected]>
3170
98a8e1e5
RH
3171 * alpha-tdep.c (alpha_register_reggroup_p): New.
3172 (alpha_gdbarch_init): Register it.
615967cb 3173
b59661bd
AC
31742003-06-02 Andrew Cagney <[email protected]>
3175
3176 * dwarfread.c: Eliminate "register"
3177 (decode_die_type): Eliminate assignment within "if".
3178 (struct_type, decode_array_element_type): Ditto.
3179 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3180 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3181 (decode_modified_type, completedieinfo): Ditto.
3182 * block.c: Eliminate "register".
3183 (blockvector_for_pc_sect): Eliminate assignment within "if".
3184 * cp-support.h (struct symbol): Opaque declaration.
3185 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3186
5ef165c2
RH
31872003-06-01 Richard Henderson <[email protected]>
3188
98a8e1e5
RH
3189 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3190 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 3191
143985b7
AF
31922003-06-01 Adam Fedor <[email protected]>
3193
3194 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3195 * gdbarch.[ch]: Regenerate.
3196 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3197 (hppa_gdbarch_init): Set it in the gdbarch vector.
3198 * i386-tdep.c (i386_fetch_pointer_argument): New
3199 (i386_gdbarch_init): Set it into gdbarch.
3200 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3201 (rs6000_gdbarch_init): Set it in gdbarch.
3202 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3203 (sparc_gdbarch_init): Set it in gdbarch.
3204
ae0167b9
AC
32052003-06-01 Andrew Cagney <[email protected]>
3206
7c0b4a20
AC
3207 * defs.h (extract_address): Delete declaration.
3208 * findvar.c (extract_address): Delete function.
3209 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3210 extract_address with the inline equivalent,
3211 extract_unsigned_integer.
3212 (xstormy16_extract_struct_value_address): Ditto.
3213 (xstormy16_pointer_to_address): Ditto.
3214 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3215 * v850-tdep.c (v850_push_arguments): Ditto.
3216 (v850_extract_return_value): Ditto.
3217 (v850_extract_struct_value_address): Ditto.
3218 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3219 (sparcnbsd_get_longjmp_target_64): Ditto.
3220 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3221 (get_longjmp_target): Ditto.
3222 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3223 (sh64_extract_struct_value_address): Ditto.
3224 (sh_push_arguments): Ditto.
3225 (sh64_push_arguments): Ditto.
3226 * remote-vxsparc.c (vx_read_register): Ditto.
3227 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3228 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3229 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3230 * mipsv4-nat.c (get_longjmp_target): Ditto.
3231 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3232 * mips-nat.c (get_longjmp_target): Ditto.
3233 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3234 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3235 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3236 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3237 * irix5-nat.c (get_longjmp_target): Ditto.
3238 * irix4-nat.c (get_longjmp_target): Ditto.
3239 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3240 (ia64_push_arguments): Ditto.
3241 * hpux-thread.c (hpux_thread_store_registers): Ditto.
3242 * h8300-tdep.c (h8300_push_arguments): Ditto.
3243 (h8300_store_return_value): Ditto.
3244 (h8300_extract_struct_value_address): Ditto.
3245 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3246 (frv_push_arguments): Ditto.
3247 * avr-tdep.c (avr_pointer_to_address): Ditto.
3248 (avr_push_arguments): Ditto.
3249 * arm-tdep.c (arm_push_dummy_call): Ditto.
3250 (arm_get_longjmp_target): Ditto.
3251 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3252 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3253 (alpha_get_longjmp_target): Ditto.
3254
ae0167b9
AC
3255 * solib-irix.c (extract_mips_address): Inline extract_address,
3256 replacing it with extract_signed_integer.
3257 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3258 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3259 (first_link_map_member, open_symbol_file_object): Ditto.
3260 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3261 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3262 (LM_NEXT, LM_NAME): Ditto.
3263
44d88583
RH
32642003-06-01 Richard Henderson <[email protected]>
3265
98a8e1e5
RH
3266 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3267 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3268 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3269 (alpha_cannot_store_register): Likewise.
3270 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3271 * alpha-nat.c (supply_gregset): Likewise.
3272 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 3273
310e9b6a
AC
32742003-06-01 Andrew Cagney <[email protected]>
3275
3276 * infcall.c (call_function_by_hand): Update comment on
3277 DEPRECATED_DUMMY_WRITE_SP.
3278
3279 * mips-tdep.c (mips_gdbarch_init): Do not set
3280 deprecated_dummy_write_sp.
3281 (mips_eabi_push_dummy_call): Set the SP register.
3282 (mips_o64_push_dummy_call): Set the SP register.
3283 (mips_o32_push_dummy_call): Set the SP register.
3284 (mips_n32n64_push_dummy_call): Set the SP register.
3285
5ab84872
RH
32862003-06-01 Richard Henderson <[email protected]>
3287
98a8e1e5
RH
3288 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3289 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3290 (supply_gregset): Likewise.
3291 * alpha-tdep.c (alpha_store_return_value): Likewise.
3292 (alpha_get_longjmp_target): Likewise.
3293 (alpha_register_name): Constify array.
3294 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3295 deprecated_register_size, deprecated_register_bytes,
3296 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3297 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3298 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 3299
09cc52fd
RH
33002003-06-01 Richard Henderson <[email protected]>
3301
3302 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3303 from arg_reg_buffer to regcache to avoid double conversion.
3304
c7f16359
MK
33052003-06-01 Mark Kettenis <[email protected]>
3306
3307 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3308 SP_REGNUM.
3309 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3310 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3311
7131cb6e
RH
33122003-06-01 Richard Henderson <[email protected]>
3313
98a8e1e5
RH
3314 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3315 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 3316
f3e0f90b
RH
33172003-06-01 Richard Henderson <[email protected]>
3318
98a8e1e5
RH
3319 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3320 not overlapping PC_REGNUM.
f3e0f90b 3321
c88e30c0
RH
33222003-06-01 Richard Henderson <[email protected]>
3323
98a8e1e5
RH
3324 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3325 alpha_push_arguments. Don't dump argument register data to
3326 the target stack. Fix float and 128-bit long double semantics.
3327 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3328 (alpha_fix_call_dummy): Remove.
3329 (alpha_call_dummy_words): Remove.
3330 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 3331
f1a559ae
RH
33322003-06-01 Richard Henderson <[email protected]>
3333
3334 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3335
5e045346
AC
33362003-06-01 Andrew Cagney <[email protected]>
3337
95404a3e
AC
3338 * mips-tdep.c (is_mips16_addr): New function.
3339 (make_mips16_addr, unmake_mips16_addr): New functions.
3340 (pc_is_mips16, mips_fetch_instruction): Use.
3341 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3342 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3343 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3344 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3345 TARGET_MIPS.
3346 * config/mips/tm-mips.h: Update copyright.
3347 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3348 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3349 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3350 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3351 (TM_PRINT_INSN_MACH): Delete.
3352 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3353
5e045346
AC
3354 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
3355 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
3356 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
3357 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
3358 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
3359 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
3360 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
3361 mips*-*-riscos* and mips*-*-sysv* onto mips.
3362 * config/mips/mips64.mt: New file.
3363 * config/mips/mips.mt: New file.
3364 * config/mips/littlemips.mt: Delete file.
3365 * config/mips/decstation.mt: Delete file.
3366 * config/mips/vr4300el.mt: Delete file.
3367 * config/mips/vr5000el.mt: Delete file.
3368 * config/mips/vr5000.mt: Delete file.
3369 * config/mips/vr4100.mt: Delete file.
3370 * config/mips/vr4xxxel.mt: Delete file.
3371 * config/mips/vr4300.mt: Delete file.
3372 * config/mips/vr4xxx.mt: Delete file.
3373 * config/mips/bigmips.mt: Delete file.
3374 * config/mips/bigmips64.mt: Delete file.
3375 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
3376 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
3377 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
3378 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
3379 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
3380 "tm-bigmips.h".
3381 * config/mips/tm-irix3.h: Ditto.
3382 * config/mips/tm-mipsv4.h: Ditto.
3383 * config/mips/tm-embed.h: Ditto.
3384 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
3385 "tm-bigmips64.h".
3386 * config/mips/tm-vr5000el.h: Delete file.
3387 * config/mips/tm-tx39l.h: Delete file.
3388 * config/mips/tm-vr4300el.h: Delete file.
3389 * config/mips/tm-vr4xxxel.h: Delete file.
3390 * config/mips/tm-vr4300.h: Delete file.
3391 * config/mips/tm-vr4100.h: Delete file.
3392 * config/mips/tm-vr4xxx.h: Delete file.
3393 * config/mips/tm-vr5000.h: Delete file.
3394 * config/mips/tm-embedl64.h: Delete file.
3395 * config/mips/tm-embedl.h: Delete file.
3396 * config/mips/tm-embed64.h: Delete file.
3397 * config/mips/tm-bigmips64.h: Delete file.
3398 * config/mips/tm-bigmips.h: Delete file.
3399
2473a4a9
MK
34002003-06-01 Mark Kettenis <[email protected]>
3401
97a5b208
MK
3402 Fix gdb/1216.
3403 * shnbsd-nat.c: Include "sh-tdep.h".
3404
2473a4a9
MK
3405 From Richard Henderson <[email protected]>:
3406 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
3407
e0f7ec59
AC
34082003-05-31 Andrew Cagney <[email protected]>
3409
3410 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
3411 forward declaration.
3412 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3413 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3414 (mips_find_saved_regs): Use set_reg_offset.
3415 (mips_frame_init_saved_regs): Delete function.
3416 (mips_pop_frame): Call mips_find_saved_regs instead of
3417 DEPRECATED_FRAME_INIT_SAVED_REGS.
3418
68dcc709
AC
34192003-05-31 Andrew Cagney <[email protected]>
3420
3421 * mips-tdep.c (mips_gdbarch_init): Do not set
3422 deprecated_max_register_raw_size, register_virtual_size, and
3423 deprecated_max_register_virtual_size.
3424
cfc14b3a
MK
34252003-05-31 Mark Kettenis <[email protected]>
3426
6405b0a6
MK
3427 * i386-tdep.c: Include "dwarf2-frame.h".
3428 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
3429 * Makefile.in (i386-tdep.o): Update dependencies.
3430
cfc14b3a
MK
3431 * dwarf2-frame.c, dwarf2-frame.h: New files.
3432 * Makefile.in (SFILES): Add dwarf2-frame.c.
3433 (dwarf2_frame_h): Define.
3434 (COMMON_OBS): Add dwarf2-frame.o.
3435 (dwarf2-frame.o): Add dependencies.
3436
6a2751d2
AJ
34372003-05-31 Andreas Jaeger <[email protected]>
3438
3439 * x86-64-linux-nat.c: Fix comment.
3440
1c3545ae
MK
34412003-05-31 Mark Kettenis <[email protected]>
3442
10f93086
MK
3443 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
3444 function signature.
3445
1c3545ae
MK
3446 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
3447 have a sigcontext_addr handler.
3448 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
3449 sigcontext_addr handler.
3450
e11c53d2
AC
34512003-05-31 Andrew Cagney <[email protected]>
3452
3453 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
3454 (print_fp_register_row): Replace do_fp_register_row.
3455 (mips_print_fp_register): Add "file" and "frame" parameters.
3456 (mips_print_register): Add "file" and "frame" parameters.
3457 (mips_print_registers_info): Replace mips_do_registers_info.
3458 (mips_gdbarch_init): Set print_registers_info instead of
3459 deprecated_do_registers_info.
3460 (mips_read_fp_register_single): Add "frame" parameter.
3461 (mips_read_fp_register_double): Add "frame" parameter.
3462
a3386186
MK
34632003-05-31 Mark Kettenis <[email protected]>
3464
70913449
MK
3465 * i386-tdep.c (i386_register_name): Check for MMX registers first.
3466 Fixes a bug where GDB would print the wrong register names for
3467 targets without SSE.
3468
2b5e0749
MK
3469 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
3470 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3471 registers.
3472
3473 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
3474 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
3475 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3476 TDEP->sc_sp_offset.
3477
a3386186
MK
3478 From Michal Ludvig <[email protected]>:
3479 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
3480 and `sc_num_regs'.
3481 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3482 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3483 I386_ST0_REGNUM): Move here from...
3484 * i386-tdep.c: ... here.
3485 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
3486 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3487 registers if possible.
3488 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
3489 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
3490 Remove variables.
3491 (i386bsd_sc_reg_offset): New variable.
3492 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
3493 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3494 TDEP->sc_sp_offset.
3495 (i386fbsd_sc_reg_offset): New variable.
3496 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
3497 TDEP->sc_num_regs.
3498 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
3499 variables.
3500 (i386fbsd4_sc_reg_offset): New variable.
3501 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
3502 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3503 TDEP->sc_sp_offset.
3504 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
3505 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
3506 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
3507 Remove variables.
3508 (i386nbsd_sc_reg_offset): New variable.
3509 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
3510 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3511 TDEP->sc_sp_offset.
3512 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
3513 Remove variables.
3514 (i386obsd_sc_reg_offset): New variable.
3515 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
3516 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3517 TDEP->sc_sp_offset.
3518 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
3519 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
3520 for frame pointer offset in `struct sigcontext'.
3521
25ab4790
AC
35222003-05-31 Andrew Cagney <[email protected]>
3523
3524 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
3525 architecture methods call_dummy_words, sizeof_call_dummy_words,
3526 push_return_address, store_struct_return, and fix_call_dummy. Set
3527 push_dummy_call instead of deprecated_push_arguments.
3528 (mips_store_struct_return): Delete function.
3529 (mips_fix_call_dummy): Delete function.
3530 (mips_push_return_address): Delete function.
3531 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
3532 RA_REGNUM and T9_REGNUM.
3533 (mips_n32n64_push_dummy_call): Ditto for
3534 mips_n32n64_push_arguments.
3535 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
3536 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
3537
6a65450a
AC
35382003-05-31 Andrew Cagney <[email protected]>
3539
3540 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
3541 "dummy_addr" to "bp_addr".
3542 * infcall.c (call_function_by_hand): Pass "funaddr" to
3543 gdbarch_push_dummy_call.
3544 * gdbarch.h, gdbarch.c: Re-generate.
3545 * i386-tdep.c (i386_push_dummy_call): Update.
3546 * arm-tdep.c (arm_push_dummy_call): Update.
3547 * d10v-tdep.c (d10v_push_dummy_call): Update.
3548
c4f35dd8
MK
35492003-05-31 Mark Kettenis <[email protected]>
3550
3551 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
3552 variable declarations.
3553 (x86_64_register_number, x86_64_register_name): Remove prototypes.
3554 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
3555 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
3556 x86_64_init_frame_pc, x86_64_init_frame_pc,
3557 x86_64_function_has_prologue): Remove prototypes.
3558 (X86_64_NUM_GREGS): New define.
3559 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
3560 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
3561 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
3562 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
3563 XMM1_REGNUM): Remove defines.
3564 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
3565 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
3566 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
3567 X86_64_XMM1_REGNUM): New defines.
3568 (struct x86_64_register_info): Renamed from `struct
3569 register_info'. Remove `size' member.
3570 (x86_64_register_info_table): Remove variable.
3571 (x86_64_register_info): New variable.
3572 (X86_64_NUM_REGS): New define.
3573 (X86_64_NUM_GREGS): Remove define.
3574 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
3575 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
3576 Remove variables.
3577 (x86_54_dwarf2_reg_to_regnum): Remove function.
3578 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
3579 (x86_64_dwarf_reg_to_regnum): New function.
3580 (x86_64_register_name): Rewrite.
3581 (x86_64_register_raw_size): Remove function.
3582 (x86_64_register_byte_table): Remove variable.
3583 (x86_64_register_byte): Remove function.
3584 (x86_64_register_virtual_type): Remove function.
3585 (x86_64_register_type): New function.
3586 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
3587 x86_64_register_convert_to_raw): Remove functions.
3588 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
3589 (x86_64_use_struct_convention): Make static. Adjust for renamed
3590 defines.
3591 (x86_64_frame_init_saved_regs): Remove function.
3592 (x86_64_push_arguments): Make static. Change to accept a regcache
3593 as argument.
3594 (x86_64_store_return_value, x86_64_extract_return_value): Make
3595 static. Rewrite based on i386 counterparts.
3596 (x86_64_push_dummy_call): New function.
3597 (X86_64_NUM_SAVED_REGS): New define.
3598 (x86_64_register_number): Remove function.
3599 (x86_64_store_struct_return): Remove function.
3600 (x86_64_frameless_function_invocation,
3601 x86_64_function_has_prologue): Remove functions.
3602 (PROLOG_BUFSIZE): Remove define.
3603 (struct x86_64_frame_cache): New structure.
3604 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
3605 x86_64_frame_cache, x86_64_frame_this_id,
3606 x86_64_frame_prev_register, x86_64_frame_p,
3607 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
3608 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
3609 functions.
3610 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
3611 variables.
3612 (x86_64_skip_prologue): Rewrite in terms of
3613 x86_64_analyze_prologue.
3614 (x86_64_frame_base_address): New function.
3615 (x86_64_frame_base): New variable.
3616 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
3617 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
3618 set deprecated_fp_regnum, deprecated_register_size,
3619 deprecated_register_bytes, register_raw_size, register_byte,
3620 register_virtual_type, register_convertiable,
3621 register_convert_to_virtual, convert_to_raw,
3622 deprecated_get_saved_register, deprecated_target_read_fp,
3623 deprecated_push_arguments, deprecated_push_return_address,
3624 deprecated_pop_frame, deprecated_store_struct_return,
3625 deprecated_frame_init_saved_regs, deprecated_frame_chain,
3626 frameless_function_invocation, deprecated_frame_saved_pc,
3627 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
3628 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
3629 deprecated_init_frame_pc and virtual_frame_pointer. Call
3630 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
3631 and x86_64_frame_p. Call frame_base_set_default to register
3632 x86_64_frame_base.
3633 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
3634 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
3635 (_initialize_x86_64_tdep): Remove function.
3636 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
3637 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
3638 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
3639 define.
3640 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
3641 (x86_64_linux_sigcontext_addr): Rewrite.
3642 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
3643 x86_64_linux_frame_saved_pc): Remove functions.
3644 (x86_64_linux_pc_in_sigtramp): Renamed from
3645 x86_64_linux_in_sigtramp. Try harder to recognize a signal
3646 trampoline.
3647 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
3648 Remove_functions.
3649 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
3650 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3651 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
3652 (x86_64_regmap): Rename to regmap.
3653 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
3654 x86_64_num_gregs.
3655 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
3656 x86_64_regmap.
3657 (x86_64_fxsave_offset): Remove function.
3658 (supply_fpregset): Simply call x86_64_supply_fxsave.
3659 (fill_fpregset): Simply call x86_64_fill_fxsave.
3660 (fetch_inferior_registers, store_inferior_registers): Avoid
3661 asignment in if-statement.
3662 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
3663 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
3664 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
3665 (fetch_core_registers): Remove function.
3666 (linux_elf_core_fns): Remove.
3667 (offsetoff): Don't define.
3668 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
3669 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
3670 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
3671 add core-regset.o.
3672 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
3673 protection against multiple includes instead of NM_X86_64_h. Add
3674 various comments. Include "config/nm-linux.h". Don't include
3675 <signal.h>.
3676 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
3677 GET_THREAD_SIGNALS): Remove defines.
3678 (x86_64_register_u_addr, kernel_u_size,
3679 lin_thread_get_thread_signals): Remove prototypes.
3680 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
3681 [HAVE_LINK_H]: Don't include "solib.h".
3682 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
3683 * config/i386/tm-x86-64linux.h: Fix comments.
3684 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
3685 x86-64-tdep.o): Update dependencies.
3686
c25083af
AC
36872003-05-30 Andrew Cagney <[email protected]>
3688
c8f55a7b
AC
3689 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
3690 Change parameter type to a "struct regcache *".
3691
c25083af
AC
3692 * gdbarch.sh: Regardless of the multi-arch level, always define
3693 the macro when not already defined.
3694 * gdbarch.h, gdbarch.c: Re-generate.
3695
fbe586ae
RH
36962003-05-30 Richard Henderson <[email protected]>
3697
3698 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
3699 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
3700 (alpha_mdebug_frame_this_id): Likewise.
3701 (alpha_mdebug_frame_prev_register): Likewise.
3702 (alpha_mdebug_frame_base_address): Likewise.
3703 (alpha_mdebug_frame_locals_address): Likewise.
3704 (alpha_mdebug_frame_args_address): Likewise.
3705 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
3706 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
3707 (alpha_heuristic_frame_unwind_cache): Make static; add missing
3708 loop increment.
3709 (alpha_heuristic_frame_this_id): Make static.
3710 (alpha_heuristic_frame_prev_register): Likewise.
3711 (alpha_heuristic_frame_base_address): Likewise.
3712 * alpha-tdep.h: Update.
3713
acd5c798
MK
37142003-05-30 Mark Kettenis <[email protected]>
3715
3716 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
3717 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
3718 defenitions.
3719 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
3720 * i386-tdep.c: Mark functions that are 64-bit safe as such.
3721 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3722 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3723 I386_ST0_REGNUM): New defines.
3724 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
3725 codestream_get): Remove define.
3726 (codestream_next_addr, condestream_addr, condestream_buf,
3727 codestream_off, codestream_cnt): Remove variables.
3728 (codestream_fill, codestream_seek, codestream_read): Remove
3729 functions.
3730 (i386_follow_jump): Rewrite to avoid usage of removed codestream
3731 functionality.
3732 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
3733 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
3734 i386_frame_saved_pc, i386_saved_pc_after_call,
3735 i386_frame_num_args, i386_frame_init_saved_regs,
3736 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
3737 i386_push_arguments): Remove functions.
3738 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
3739 functionality. Use i386_analyze_prologue instead of
3740 i386_get_frame_setup.
3741 (I386_NUM_SAVED_REGS): New define.
3742 (struct i386_frame_cache): New structure.
3743 (i386_alloc_frame_cache, i386_analyze_struct_return,
3744 i386_skip_probe, i386_analyze_frame_setup,
3745 i386_analyze_register_saves, i386_analyze_prologue,
3746 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
3747 i386_frame_prev_register, i386_sigtramp_frame_cache,
3748 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
3749 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
3750 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
3751 New functions.
3752 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
3753 New variables.
3754 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
3755 I386_EAX_REGNUM and I386_EDX_REGNUM.
3756 (i386_extract_return_value, i386_store_return_value): Use
3757 I386_ST0_REGNUM where appropriate.
3758 (i386_extract_struct_value_address): Rewrite to use extract_address.
3759 (i386_svr4_pc_in_sigtramp): Add comment.
3760 (i386_svr4_sigcontext_addr): Rewrite.
3761 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
3762 TDEP->sc_sp_offset.
3763 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
3764 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
3765 of new defines. Set push_dummy_call, don't set
3766 deprecated_push_arguments, deprecated_push_return_address,
3767 deprecated_pop_frame. Don't set parm_boundary. Don't set
3768 deprecated_frame_chain, deprecated_frame_saved_pc,
3769 deprecated_saved_pc_after_call. Set unwind_dummy_id,
3770 save_dummy_frame_tos, unwind_pc. Call
3771 frame_unwind_append_predicate and frame_base_set_default. Don't
3772 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
3773 Don't set frameless_function_invocation. Don't set
3774 deprecated_register_bytes, deprecated_register_size,
3775 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
3776 * i386-linux-tdep.c: Fix formatting in some comments.
3777 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
3778 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
3779 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
3780 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
3781 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
3782 redundant parentheses.
3783 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
3784 (i386_linux_sigcontext_addr): Use it. Rewrite.
3785 (find_minsym_and_objfile): Change name of second argument.
3786 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
3787 changed. Use frame_pc_unwind instead of
3788 DEPRECATED_SAVED_PC_AFTER_CALL.
3789 (i386_linux_init_abi): Don't set deprecated_register_bytes.
3790 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
3791 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
3792 unwinder.
3793 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
3794 "dummy-frame.h".
3795 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
3796 (_initialize_i386_cygwin_tdep): New prototype.
3797 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
3798 deprecated_frame_chain_valid.
3799 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
3800 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3801 Rely on the SVR4 defaults.
3802 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
3803 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
3804
c89b70f1
AC
38052003-05-30 Andrew Cagney <[email protected]>
3806
3807 * infcall.c (call_function_by_hand): Always call
3808 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
3809
85b32d22
RH
38102003-05-30 Richard Henderson <[email protected]>
3811
c89b70f1
AC
3812 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
3813 increment.
85b32d22 3814
bfe51b1e
JB
38152003-05-29 Jim Blandy <[email protected]>
3816
3817 Use gdbarch methods for solib stuff on PowerPC Linux.
3818 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
3819 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
3820 show through.
3821 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3822 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
3823 giving the same effect as the #definitions above.
3824
1abf022c
AF
38252003-05-29 Adam Fedor <[email protected]>
3826
3827 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
3828 (find_implementation_from_class): Replace it with the standard
3829 case i.e. do nothing.
3830
d2427a71
RH
38312003-05-29 Richard Henderson <[email protected]>
3832
3833 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
3834 (alpha_linux_sigtramp_offset): Use it. Make static.
3835 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
3836 update for new frame model.
3837 * alpha-mdebug-tdep.c: New file.
3838 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
3839 (alpha_osf1_init_abi): Install it.
3840 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
3841 (linked_proc_desc_table): Remove.
3842 (alpha_frame_past_sigtramp_frame): Remove.
3843 (alpha_dynamic_sigtramp_offset): Remove.
3844 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
3845 (alpha_proc_desc_is_dyn_sigtramp): Remove.
3846 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
3847 (push_sigtramp_desc): Remove.
3848 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
3849 (alpha_cannot_store_register): Likewise.
3850 (alpha_sigcontext_addr): Remove.
3851 (alpha_find_saved_regs): Remove.
3852 (alpha_frame_init_saved_regs): Remove.
3853 (alpha_init_frame_pc_first): Remove.
3854 (read_next_frame_reg): Remove.
3855 (alpha_frame_saved_pc): Remove.
3856 (alpha_saved_pc_after_call): Remove.
3857 (temp_proc_desc, temp_saved_regs): Remove.
3858 (alpha_about_to_return): Remove.
3859 (cached_proc_desc): Remove.
3860 (alpha_frame_chain): Remove.
3861 (alpha_print_extra_frame_info): Remove.
3862 (alpha_init_extra_frame_info): Remove.
3863 (alpha_frame_locals_address): Remove.
3864 (alpha_frame_args_address): Remove.
3865 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
3866 (alpha_push_dummy_frame): Remove.
3867 (alpha_pop_frame): Remove.
3868 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
3869 (alpha_read_insn): New.
3870 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
3871 for different insn encodings.
3872 (alpha_in_lenient_prologue): Remove.
3873 (struct alpha_sigtramp_unwind_cache): New.
3874 (alpha_sigtramp_frame_unwind_cache): New.
3875 (alpha_sigtramp_register_address): New.
3876 (alpha_sigtramp_frame_this_id): New.
3877 (alpha_sigtramp_frame_prev_register): New.
3878 (alpha_sigtramp_frame_unwind): New.
3879 (alpha_sigtramp_frame_p): New.
3880 (struct alpha_heuristic_unwind_cache): New.
3881 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
3882 don't count nop insns that occur between functions.
3883 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
3884 heuristic_proc_desc, but without the mdebug wrapping.
3885 (alpha_heuristic_frame_this_id): New.
3886 (alpha_heuristic_frame_prev_register): New.
3887 (alpha_heuristic_frame_unwind): New.
3888 (alpha_heuristic_frame_p): New.
3889 (alpha_heuristic_frame_base_address): New.
3890 (alpha_heuristic_frame_base): New.
3891 (alpha_unwind_dummy_id): New.
3892 (alpha_unwind_pc): New.
3893 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
3894 frame related deprecated initializations; install replacements.
3895 (alpha_dump_tdep): Remove.
3896 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
3897 (alpha_read_insn, alpha_after_prologue,
3898 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
3899 alpha_heuristic_frame_prev_register,
3900 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
3901 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3902 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
3903 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
3904
93ec1121
AC
39052003-05-29 Andrew Cagney <[email protected]>
3906
3907 * gdb_assert.h (gdb_assert_fail): Provide different definitions
3908 dependant on the availability of ASSERT_FUNCTION.
3909 (ASSERT_FUNCTION): Do not define when there is no function name.
3910
98f08d3d
KB
39112003-05-29 Kevin Buettner <[email protected]>
3912
3913 From Jimi X <[email protected]>:
3914 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
3915
0897f59b
JB
39162003-05-28 Jim Blandy <[email protected]>
3917
3918 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
3919 argument to ptrace to int; the system headers should give it the
3920 right type, and pointers don't fit in ints on powerpc64-*-*.
3921
14898363
L
39222003-05-28 H.J. Lu <[email protected]>
3923
3924 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
3925 DW_TAG_catch_block.
3926
a7a48797
EZ
39272003-05-26 Elena Zannoni <[email protected]>
3928
3929 * stabsread.c (dbx_lookup_type): Make static.
3930 (read_type): Ditto.
3931 (add_undefined_type): Ditto.
3932 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
3933 not export.
3934
f5479e9c
EZ
39352003-05-26 Elena Zannoni <[email protected]>
3936
3937 * hpread.c (hpread_has_name): Make static.
3938 (hpread_psymtab_to_symtab): Ditto.
3939 (file_exists): Ditto.
3940 (hpread_call_pxdb): Ditto.
3941 (hpread_pxdb_needed): Ditto.
3942 (hpread_quick_traverse): Ditto.
3943 (hpread_get_header): Ditto.
3944 (hpread_get_lntt): Ditto.
3945 (hpread_get_slt): Ditto.
3946 (class_of): Ditto.
3947
eb2e12d7
AS
39482003-05-25 Andreas Schwab <[email protected]>
3949
78bf922a
AS
3950 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
3951 stack_align and deprecated_extra_stack_alignment_needed.
3952 (m68k_stack_align): Delete.
3953
eb2e12d7
AS
3954 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
3955 (m68k_register_virtual_size): Likewise.
3956 (altos_skip_prologue): Remove obsolete function.
3957 (isi_frame_num_args): Likewise.
3958 (news_frame_num_args): Likewise.
3959 (m68k_fix_call_dummy): Make static.
3960 (m68k_push_dummy_frame): Likewise.
3961 (m68k_pop_frame): Likewise.
3962 (m68k_skip_prologue): Likewise.
3963 (m68k_frame_init_saved_regs): Likewise.
3964 (m68k_saved_pc_after_call): Likewise.
3965 (m68k_get_longjmp_target): Make multi-arch.
3966 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
3967 structure. Register m68k_get_longjmp_target if enabled.
3968 * m68k-tdep.h (struct gdbarch_tdep): Define.
3969 * config/m68k/tm-m68k.h: Don't include "regcache.h".
3970
3971 * Makefile.in (config.status): Also depend on configure.tgt
3972 and configure.host.
3973 (m68klinux-tdep.o): Update dependencies.
3974 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
3975 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
3976 (M68K_LINUX_JB_PC): Define.
3977 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
3978 and take additional parameter.
3979 (m68k_linux_sigtramp_saved_pc): Update.
3980 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
3981 m68k_linux_pc_in_sigtramp, in_plt_section,
3982 find_solib_trampoline_target.
3983 * config/m68k/tm-linux.h: Don't include any tm headers.
3984 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
3985 (JB_ELEMENT_SIZE): Likewise.
3986 (JB_PC): Likewise.
3987 (GET_LONGJMP_TARGET): Likewise.
3988 (IN_SIGTRAMP): Likewise.
3989 (SVR4_SHARED_LIBS): Define this and include "solib.h".
3990
eb2c22dc
MK
39912003-05-25 Mark Kettenis <[email protected]>
3992
3993 * sparc-tdep.c (sparc32_do_push_arguments): New function.
3994 (sparc32_push_arguments): Re-implement by calling
3995 sparc32_do_push_arguments.
3996
44b7b84e
MK
39972003-05-25 Mark Kettenis <[email protected]>
3998
3999 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4000 SPARC_O1_REGNUM): New defines.
4001 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4002 (sparc32_store_return_value): New function.
4003 (sparc_extract_struct_value_address): Rewrite to operate on a
4004 regcache.
4005 (sparc_gdbarch_init): Don't set
4006 deprecated_extract_struct_value_address. Set
4007 extract_struct_value_address instead. Don't set
4008 deprecated_extract_return_value and deprecated_store_return_value
4009 for 32-bit targets. Set extract_return_value and
4010 store_return_value instead.
4011 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4012 DEPRECTAED_EXTRACT_RETURN_VALUE,
4013 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4014 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4015 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4016 (sparc_store_return_value): Remove prototype.
4017 (sparc32_store_return_value): New prototype.
4018 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4019 Adjust prototypes.
4020
f6ad61e3
MK
40212003-05-24 Mark Kettenis <[email protected]>
4022
4023 * sparcnbsd-tdep.c: Include "gdb_string.h".
4024
b276f1bb
AC
40252003-05-23 Andrew Cagney <[email protected]>
4026
4027 * p-valprint.c (pascal_val_print): Replace extract_address with
4028 the inline equivalent extract_unsigned_integer.
4029 * jv-valprint.c (java_value_print): Ditto.
4030 * ada-valprint.c (ada_val_print_1): Ditto.
4031 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4032
e76c5fcc
TR
40332003-05-23 Theodore A. Roth <[email protected]>
4034
4035 * blockframe.c (frameless_look_for_prologue): Remove unused
4036 after_prologue variable.
4037
2cdd89cb
MK
40382003-05-23 Mark Kettenis <[email protected]>
4039
4040 * blockframe.c (get_pc_function_start): Rewrite to avoid
4041 asignments in if-statements.
4042
182d43bc
EZ
40432003-05-23 Raoul Gough <[email protected]>
4044
4045 Committed by Elena Zannoni <[email protected]>.
8ffd9b1b 4046 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
4047 files, don't relocate absolute symbols (and do use mst_abs).
4048
e8f3fcdd
AC
40492003-05-23 Andrew Cagney <[email protected]>
4050
4051 * objc-lang.c: Include "gdb_assert.h".
4052 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4053 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4054 (gdb_check, gdb_check_fatal): Delete functions.
4055 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4056 gdb_assert.
4057 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4058 * Makefile.in (objc-lang.o): Update dependencies.
4059
3c23e6fb
ILT
40602003-05-22 Ian Lance Taylor <[email protected]>
4061
4062 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4063 with fprintf_filtered, not fprintf_unfiltered.
4064
af1342ab
AC
40652003-05-22 Andrew Cagney <[email protected]>
4066
4067 * stack.c (frame_info): Inline extract_address, replacing it with
4068 extract_unsigned_integer.
4069 * findvar.c (unsigned_pointer_to_address): Ditto.
4070 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4071 * dwarf2expr.c (dwarf2_read_address): Ditto.
4072 * frame.c (frame_pc_unwind): Update comment.
4073 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4074
47e242ec
JJ
40752003-05-22 Jeff Johnston <[email protected]>
4076
4077 * infptrace.c (detach): Call print_sys_errmsg rather than
4078 perror_with_name to issue warning message when errno is non-zero
4079 after calling ptrace detach.
4080
e2ac8128
JB
40812003-05-21 J. Brobecker <[email protected]>
4082
4083 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4084 macro definitions from here...
4085 * hppa-tdep.c: ...to there.
4086
92b3541e
KB
40872003-05-20 Kevin Buettner <[email protected]>
4088
4089 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4090 register_ptrace_addr(). Fix all callers.
4091
55809acb
AS
40922003-05-21 Andreas Schwab <[email protected]>
4093
4094 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4095 dependencies.
4096 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4097 end.
4098 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4099 (_initialize_m68k_linux_tdep): New function.
4100 (m68k_linux_frame_saved_pc): Make static.
4101 (m68k_linux_extract_return_value): Likewise.
4102 (m68k_linux_store_return_value): Likewise.
4103 (m68k_linux_extract_struct_value_address): Likewise.
4104 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4105 Remove.
4106 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4107 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4108 (DEPRECATED_FRAME_SAVED_PC): Remove.
4109
0fbc10f7
KW
41102003-05-20 Kris Warkentin <[email protected]>
4111
4112 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4113 regset numbering rather than our own.
4114
58da2eb2
DC
41152003-05-19 David Carlton <[email protected]>
4116
4117 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4118
1fcb5155
DC
41192003-05-19 David Carlton <[email protected]>
4120
4121 Partial fix for PR c++/827.
4122 * cp-support.h: Include symtab.h.
4123 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4124 * cp-namespace.c: Update contributors.
4125 (cp_lookup_symbol_nonlocal): New.
4126 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4127 (lookup_symbol_file): Ditto.
4128 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4129 * block.h: Declare block_scope, block_using, block_global_block.
4130 * block.c (block_scope): New.
4131 (block_using, block_global_block): Ditto.
4132 * Makefile.in (cp_support_h): Depend on symtab_h.
4133 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4134
5f9a71c3
DC
41352003-05-19 David Carlton <[email protected]>
4136
4137 * language.h (struct language_defn): Add 'la_value_of_this'
4138 and 'la_lookup_symbol_nonlocal' members.
4139 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4140 lookup_symbol_static, lookup_symbol_global,
4141 lookup_symbol_aux_block.
4142 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4143 if we should search fields of this and how to do static/global
4144 lookup.
4145 (lookup_symbol_aux_block): Make extern.
4146 (basic_lookup_symbol_nonlocal): New.
4147 (lookup_symbol_static, lookup_symbol_global): Ditto.
4148 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4149 'la_lookup_symbol_nonlocal' members.
4150 * c-lang.c (c_language_defn, cplus_language_defn)
4151 (asm_language_defn, minimal_language_defn): Ditto.
4152 * jv-lang.c (java_language_defn): Ditto.
4153 * language.c (unknown_language_defn, auto_language_defn)
4154 (local_language_defn): Ditto.
4155 * m2-lang.c (m2_language_defn): Ditto.
4156 * objc-lang.c (objc_language_defn): Ditto.
4157 * scm-lang.c (scm_language_defn): Ditto.
4158 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4159 * p-lang.c (pascal_language_defn): Ditto for both.
4160 * Makefile.in (f-lang.o): Depend on value_h.
4161 (p-lang.o): Ditto.
4162
89a9d1b1
DC
41632003-05-19 David Carlton <[email protected]>
4164
4165 * block.h: Declare block_static_block.
4166 * block.c (block_static_block): New.
4167 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4168 lookup_symbol_aux_local, calling block_static_block instead.
4169 (lookup_symbol_aux_local): Delete 'static_block' argument.
4170
eed3f8ab
DC
41712003-05-19 David Carlton <[email protected]>
4172
4173 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4174
a09d8bda
ML
41752003-05-19 Michal Ludvig <[email protected]>
4176
4177 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4178 register numbers mapping.
4179
69636828
AF
41802003-05-18 Adam Fedor <[email protected]>
4181
4182 * symtab.c (completion_list_objc_symbol): New function.
4183 (make_symbol_completion_list): Use it to add ObjC symbols
4184 when looking though the list.
4185 (language_search_unquoted_string): New function.
4186 (make_file_symbol_completion_list): Use it.
4187
55baeb84
AS
41882003-05-18 Andreas Schwab <[email protected]>
4189
d0b45d99
AS
4190 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4191 dependencies.
4192 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4193 as m68k_linux_extract_return_value.
4194 (DEPRECATED_STORE_RETURN_VALUE): Define as
4195 m68k_linux_store_return_value.
4196 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4197 m68k_linux_extract_struct_value_address.
4198 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4199 get_next_frame, get_frame_base, get_frame_pc.
4200 (m68k_linux_frame_saved_pc): Use get_frame_base.
4201 (m68k_linux_extract_return_value): New function.
4202 (m68k_linux_store_return_value): New function.
4203 (m68k_linux_extract_struct_value_address): New function.
4204 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4205
55baeb84
AS
4206 * c-exp.y (typebase): Remove duplicate occurence of
4207 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 4208 of lookup_signed_typename.
55baeb84 4209
b6b08ebf
MK
42102003-05-18 Mark Kettenis <[email protected]>
4211
4212 * dwarf2loc.c (find_location_expression): Change type of second
4213 argument to `size_t *'.
4214 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4215 for size variable.
4216
5ad1c190
DC
42172003-05-18 David Carlton <[email protected]>
4218
4219 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4220 'linkage_name'. Add comment.
4221 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4222 'linkage_name'.
4223 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4224 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4225 (lookup_block_symbol): Ditto.
4226
b8b527c5
AC
42272003-05-16 Andrew Cagney <[email protected]>
4228
4229 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4230 * gdbarch.h, gdbarch.c: Re-generate.
4231 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4232 * TODO (REGISTER_BYTES): Delete reference.
4233 * alpha-tdep.c (alpha_gdbarch_init): Update.
4234 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4235 * x86-64-tdep.c (x86_64_init_abi): Update.
4236 * vax-tdep.c (vax_gdbarch_init): Update.
4237 * v850-tdep.c (v850_gdbarch_init): Update.
4238 * sparc-tdep.c (sparc_gdbarch_init): Update.
4239 * sh-tdep.c (sh_gdbarch_init): Update.
4240 * s390-tdep.c (s390_gdbarch_init): Update.
4241 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4242 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4243 (ns32k_gdbarch_init_32382): Update.
4244 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4245 * mcore-tdep.c (mcore_gdbarch_init): Update.
4246 * m68k-tdep.c (m68k_gdbarch_init): Update.
4247 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4248 * ia64-tdep.c (ia64_gdbarch_init): Update.
4249 * i386-tdep.c (i386_gdbarch_init): Update.
4250 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4251 * hppa-tdep.c (hppa_gdbarch_init): Update.
4252 * h8300-tdep.c (h8300_gdbarch_init): Update.
4253 * frv-tdep.c (frv_gdbarch_init): Update.
4254 * cris-tdep.c (cris_gdbarch_init): Update.
4255 * avr-tdep.c (avr_gdbarch_init): Update.
4256 * arm-tdep.c (arm_gdbarch_init): Update.
4257 * sparc-tdep.c (sparc_pop_frame): Update.
4258 * rs6000-tdep.c (rs6000_pop_frame): Update.
4259 * remote.c (init_remote_state): Update.
4260 (remote_prepare_to_store): Update.
4261 * remote-vx.c (vx_prepare_to_store): Update.
4262 * remote-sds.c (sds_fetch_registers): Update.
4263 (sds_prepare_to_store): Update.
4264 * remote-array.c: Update.
4265 * regcache.c (init_legacy_regcache_descr): Update.
4266 (init_regcache_descr): Update.
4267 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4268 (mips_o64_extract_return_value): Update.
4269 * irix5-nat.c (fetch_core_registers): Update.
4270 * irix4-nat.c (fetch_core_registers): Update.
4271 * i386-tdep.h: Update.
4272 * hppa-tdep.c (pa_do_registers_info): Update.
4273 (pa_do_strcat_registers_info): Update.
4274 * cris-tdep.c (cris_register_bytes_ok): Update.
4275 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4276 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4277 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4278 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4279 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4280 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4281 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4282 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4283 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4284 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4285 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4286 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4287 (REGISTER_BYTES_OK): Update.
4288 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4289 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4290
ee2842e2
ILT
42912003-05-16 Ian Lance Taylor <[email protected]>
4292
4293 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4294 (vax_print_insn, print_insn_arg): Remove static functions.
4295 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4296 print_insn_vax from opcodes library.
4297 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4298
973177d3
AC
42992003-05-15 Andrew Cagney <[email protected]>
4300
aaab4dba
AC
4301 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4302 * target.h (memory_breakpoint_from_pc): Delete declaration.
4303 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4304 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4305 * monitor.c (monitor_insert_breakpoint): Use
4306 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4307 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4308 * gdbarch.h, gdbarch.c: Re-generate.
4309 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4310 (sparc_gdbarch_init): Set breakpoint_from_pc to
4311 sparc_breakpoint_from_pc.
4312 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4313 (BREAKPOINT_FROM_PC): Define.
4314 (sparc_breakpoint_from_pc): Declare.
4315 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4316 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4317 (BREAKPOINT_FROM_PC): Define.
4318 (BREAKPOINT): Delete macro.
4319 * target.h: Update comment.
4320 * s390-tdep.c (s390_gdbarch_init): Update comments.
4321 * remote.c: Update comments.
4322 * remote-mips.c: Update comments.
4323 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4324 * mem-break.c: Update comment.
4325 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4326 (ia64_memory_insert_breakpoint): Update.
4327 * config/sparc/tm-sparc.h: Update comment.
4328 * config/pa/tm-hppa64.h: Update comment.
4329 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4330 (rs6000_breakpoint_from_pc): Update.
4331 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4332 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4333 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4334 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4335 (mips_breakpoint_from_pc): Update.
4336 (mips_dump_tdep): Update.
4337
e06963ff
AC
4338 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4339 * minsyms.c (lookup_minimal_symbol): Inline
4340 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
4341
973177d3
AC
4342 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4343 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4344 * p-lang.c (pascal_printstr): Ditto.
4345 * objc-lang.c (objc_printstr): Ditto.
4346 * m2-lang.c (m2_printstr): Ditto.
4347 * jv-valprint.c (java_print_value_fields): Ditto.
4348 * f-lang.c (f_printstr): Ditto.
4349 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
4350 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4351 for repeat_count_threshold.
4352 * Makefile.in (cp-valprint.o): Update dependencies.
4353
5ea2bd7f 43542003-05-15 Jeff Johnston <[email protected]>
8ffd9b1b 4355
5ea2bd7f
JJ
4356 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
4357 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
4358 they start with mov r2,r12. Support skipping over indirect stores
4359 of the input registers. Upon hitting a non-nop branch instruction
4360 or predicated instruction, bail out by setting lim_pc to the current
4361 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
4362 beyond our calculated value and we have trust_limit set,
4363 use the lim_pc value.
4364
cc8c88f3
AC
43652003-05-15 Andrew Cagney <[email protected]>
4366
4367 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
4368 generic_find_dummy_frame.
4369 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
4370 (deprecated_generic_find_dummy_frame): Update.
4371 (deprecated_read_register_dummy): Update.
4372 * frame.c (deprecated_generic_get_saved_register): Update.
4373
909cd28e
TR
43742003-05-15 Theodore A. Roth <[email protected]>
4375
4376 * avr-tdep.c (avr_breakpoint_from_pc): New function.
4377 (avr_gdbarch_init): Set breakpoint_from_pc method.
4378
b923b08d
AC
43792003-05-15 Andrew Cagney <[email protected]>
4380
4381 * regcache.c (build_regcache): Set deprecated_register_valid
4382 directly.
4383 (deprecated_grub_regcache_for_register_valid): Delete function.
4384 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
4385 declaration.
4386
ae2f03ac 43872003-05-15 David Carlton <[email protected]>
8ffd9b1b
AJ
4388
4389 Committed by Elena Zannoni <[email protected]>
fbe586ae
RH
4390 * symtab.c (lookup_symbol_aux): Delete calls to
4391 lookup_symbol_aux_minsyms.
4392 (lookup_symbol_aux_minsyms): Comment out function and
4393 prototype. Delete lookup by mangled name.
ae2f03ac 4394
18ec9831
KB
43952003-05-14 Kevin Buettner <[email protected]>
4396
4397 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
4398 correctly indicate an empty stack and ``stack_allocated'' to the
4399 indicate the number of elements initially allocated.
4400 (dwarf_expr_grow_stack): Simplify method for computing new
4401 stack size. Don't loop infinitely if ``stack_len'' is zero.
4402 (execute_stack_op): Move ``ctx->in_reg'' initialization
4403 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
4404 be used in conjuction with DW_OP_piece. Revise error message
4405 accordingly.
4406
de18ac1f
TR
44072003-05-14 Theodore A. Roth <[email protected]>
4408
4409 * MAINTAINERS: Update my email address.
4410 * avr-tdep.c: Ditto.
4411
176620f1
EZ
44122003-05-14 Elena Zannoni <[email protected]>
4413
4414 * symtab.h (enum domain_enum): Rename from namespace_enum.
4415 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
4416 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
4417 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
4418 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
4419 TYPES_NAMESPACE, METHODS_NAMESPACE.
4420 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
4421 (struct symbol, struct partial_symbol): Rename field
4422 'namespace_enum namespace' to 'domain_enum domain'.
4423 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
4424 Delete old define kludge for namespace.
4425
4426 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
4427 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
4428 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
4429 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
4430 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
4431 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
4432 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
4433 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
4434 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
4435 occurrences of the above.
4436
b7f31508
ILT
44372003-05-14 Ian Lance Taylor <[email protected]>
4438
4439 * Makefile.in (install-only): Use $(SHELL) when running
4440 mkinstalldirs.
4441
2fdbdd39
ILT
44422003-05-13 Ian Lance Taylor <[email protected]>
4443
a208d82c
ILT
4444 * MAINTAINERS (write after approval): Add myself.
4445
2fdbdd39
ILT
4446 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
4447 second and third arguments.
4448 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4449 * ser-unix.c (_initialize_ser_hardwire): Likewise.
4450
fbd9dcd3
AC
44512003-05-13 Andrew Cagney <[email protected]>
4452
4453 * defs.h (store_address): Delete declaration.
4454 findvar.c (store_address): Delete function.
4455 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
4456 store_unsigned_integer.
4457 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
4458 * v850-tdep.c (v850_push_arguments): Ditto.
4459 * sparc-tdep.c (sparc_get_saved_register): Ditto.
4460 * sh-tdep.c (sh64_get_saved_register): Ditto.
4461 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
4462 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
4463 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
4464 (mips_get_saved_register): Ditto.
4465 * ia64-tdep.c (ia64_get_saved_register): Ditto.
4466 (find_func_descr, ia64_push_arguments): Ditto.
4467 * i386-tdep.c (i386_push_arguments): Ditto.
4468 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4469 * frv-tdep.c (frv_push_arguments): Ditto.
4470 * frame.c (legacy_saved_regs_prev_register): Ditto.
4471 (deprecated_generic_get_saved_register): Ditto.
4472 * findvar.c (unsigned_address_to_pointer): Ditto.
4473 * dwarf2read.c (dwarf2_const_value): Ditto.
4474 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4475 * alpha-tdep.c (alpha_push_arguments): Ditto.
4476
6760f9e6
JB
44772003-05-12 J. Brobecker <[email protected]>
4478
4479 * NEWS: Mention that the hppa-hpux port has been partially
4480 multiarched (32bit ABIT only, so far).
4481
30e221b4
AC
44822003-05-11 Andrew Cagney <[email protected]>
4483
4484 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
4485 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
4486 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
4487 sim/testsuite/sim/arm/misaligned2.ms, and
4488 sim/testsuite/sim/arm/misaligned3.ms.
4489 * disasm.h (struct ui_file): Add opaque struct declaration.
4490 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
4491 * frame.h (struct ui_file): Ditto.
4492
dea7f9ba
MK
44932003-05-11 Mark Kettenis <[email protected]>
4494
4495 * value.h: Pretty print.
4496
01986c48
MK
44972003-05-10 Mark Kettenis <[email protected]>
4498
4499 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
4500
123a958e
AC
45012003-05-08 Andrew Cagney <[email protected]>
4502
4503 * regcache.h (max_register_size): Delete declaration.
4504 * regcache.c (max_register_size): Delete function.
4505 (struct regcache_descr): Delete field "max_register_size".
4506 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
4507 registers fit in MAX_REGISTER_SIZE.
4508 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
4509 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
4510 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
4511 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
4512 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
4513 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
4514 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
4515 * dve3900-rom.c, hppa-tdep.c: Ditto.
4516
eb294659
DC
45172003-05-08 David Carlton <[email protected]>
4518
4519 * valops.c (push_word): Fix typo.
4520
d9d9c31f
AC
45212003-05-08 Andrew Cagney <[email protected]>
4522
4523 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
4524 * gdbarch.h: Re-generate.
4525 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
4526 (legacy_max_register_raw_size): Delete declaration.
4527 * regcache.c (legacy_max_register_raw_size): Delete function.
4528 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
4529 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
4530 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
4531 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
4532 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
4533 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
4534 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
4535 * findvar.c, dwarf2cfi.c: Ditto.
4536
22540ece
AC
45372003-05-08 Andrew Cagney <[email protected]>
4538
4539 * mips-tdep.c (read_signed_register): New function, moved to here
4540 from "regcache.c".
4541 (read_signed_register_pid): Ditto.
4542 * regcache.c (read_signed_register_pid): Delete function, moved to
4543 "mips-tdep.c".
4544 (read_signed_register): Ditto.
4545 * regcache.h (read_signed_register): Delete declaration.
4546 (read_signed_register_pid): Delete declaration.
4547
0c92afe8
AC
45482003-05-08 Andrew Cagney <[email protected]>
4549
4550 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
4551 * gdbarch.h: Re-generate.
4552 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
4553 (legacy_max_register_virtual_size): Delete declaration.
4554 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
4555 * d10v-tdep.c (d10v_print_registers_info): Ditto.
4556 * tracepoint.c (memrange_sortmerge): Ditto.
4557 * sparc-tdep.c (sparc_print_registers): Ditto.
4558 * regcache.c (legacy_max_register_virtual_size): Delete function.
4559
6037b830
JB
45602002-05-08 J. Brobecker <[email protected]>
4561
4562 * fork-child.c (escape_bang_in_quoted_argument): New function.
4563 (fork_inferior): Escape '!' characters in quoted arguments
4564 only when needed.
4565
5d62c8b1
JB
45662003-05-08 J. Brobecker <[email protected]>
4567
4568 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
4569 the language of the CU is not currently supported by GDB.
4570
20a0e81d
JB
45712003-05-08 J. Brobecker <[email protected]>
4572
4573 * defs.h (language): Add language_minimal enum value.
4574 * c-lang.c (minimal_language_defn): New language definition.
4575 (_initialize_c_language): Add the new minimal language to the list
4576 of languages known to GDB.
4577
710ee10a
KB
45782003-05-08 Kevin Buettner <[email protected]>
4579
4580 * frame.c (get_frame_type): Don't attempt to lazily initialize
4581 frame's unwinder for legacy frames.
4582
1750fa04
AC
45832003-05-07 Andrew Cagney <[email protected]>
4584
4585 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
4586 and "regcache" parameters.
4587 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
4588
ddf9f258 45892003-05-07 Jeff Johnston <[email protected]>
8ffd9b1b
AJ
4590
4591 * dwarf2read.c (dwarf_decode_lines): Only use output of
4592 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
4593 the current address.
4594
87767c29
AC
45952003-05-07 Andrew Cagney <[email protected]>
4596
4597 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
4598 code.
4599
5e7b2f39
JB
46002003-05-07 Jim Blandy <[email protected]>
4601
4602 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
4603 'maint info symtabs' and 'maint info psymtabs'.
4604 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
4605 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
4606 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
4607 Declarations updated.
4608 * maint.c (maintenance_list_command): Delete.
4609 (_initialize_maint_cmds): Update calls to add_cmd.
4610 * gdbcmd.h (maintenancelistlist): Delete declaration.
4611 * cli/cli-cmds.c (maintenancelistlist): Delete.
4612 (init_cmd_lists): Don't initialize it.
4613 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
4614
f6684c31
AC
46152003-05-07 Andrew Cagney <[email protected]>
4616
4617 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
4618 "regcache".
4619 (d10v_print_registers_info): Update.
4620 (d10v_dmap_register, d10v_imap_register): Delete functions.
4621 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
4622 and "imap_register".
4623 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
4624 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
4625 * arch-utils.c (generic_remote_translate_xfer_address): Add
4626 "regcache" and "gdbarch" parameters.
4627 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
4628 parameter. Change class to multi-arch.
4629 * gdbarch.h, gdbarch.c: Re-generate.
4630 * remote.c (remote_xfer_memory): Use
4631 gdbarch_remote_translate_xfer_address.
8ffd9b1b 4632
e4846b08
JJ
46332003-05-07 Jeff Johnston <[email protected]>
4634
4635 * infrun.c (prev_pc): Move declaration ahead of proceed().
4636 (proceed): Refresh prev_pc value before resuming.
4637 (stop_stepping): Remove code to refresh prev_pc.
4638
6b71b8ac
KW
46392003-05-06 Kris Warkentin <[email protected]>
4640
4641 * nto-tdep.c: Removed stray comment.
4642
47979a4b
KW
46432003-05-06 Kris Warkentin <[email protected]>
4644
4645 * i386-nto-tdep.c: Fix old K&R function definitions.
4646 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
4647 Also change add_show_from_set() call to add_setshow_cmd().
4648 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
4649
00905d52
AC
46502003-05-05 Andrew Cagney <[email protected]>
4651
4652 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
4653 (fprint_dummy_frames): New function.
4654 (maintenance_print_dummy_frames): New function.
4655 (_initialize_dummy_frame): Add command "maint print dummy-frames".
4656 * frame.c (fprint_frame_id): Make global.
4657 * frame.h (fprint_frame_id): Declare.
4658 * Makefile.in (dummy-frame.o): Update dependencies.
4659
b1e29e33
AC
46602003-05-05 Andrew Cagney <[email protected]>
4661
4662 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
4663 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
4664 SIZEOF_CALL_DUMMY_WORDS.
4665 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
4666 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
4667 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
4668 CALL_DUMMY_BREAKPOINT_OFFSET.
4669 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
4670 CALL_DUMMY_START_OFFSET.
4671 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
4672 * gdbarch.h, gdbarch.c: Re-generate.
4673 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
4674 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
4675 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
4676 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
4677 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
4678 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
4679 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
4680 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
4681 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
4682 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
4683 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
4684 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
4685 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
4686 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
4687 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
4688
46892003-05-05 Kris Warkentin <[email protected]>
4690
4691 * configure.tgt: Add i[3456]86-*-nto*.
4692 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
4693 * nto-tdep.c: New file. Neutrino target support routines.
4694 * nto-tdep.h: New file. Neutrino target header.
4695 * config/tm-qnxnto.h: New file.
4696 * config/i386/i386nto.mt: New file.
4697 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 4698
0ce3d317
AC
46992003-05-04 Andrew Cagney <[email protected]>
4700
4701 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
4702 (load_infrun_state): Ditto.
4703 (struct thread_info): Drop "prev_func_name" field.
4704 * thread.c (load_infrun_state): Update.
4705 (save_infrun_state): Update.
4706 * infrun.c (prev_func_name): Delete variable.
4707 (init_wait_for_inferior): Do not clear prev_func_name.
4708 (stop_stepping, keep_going, context_switch): Do not swap
4709 prev_func_name.
4710 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
4711 instead of PC_IN_SIGTRAMP.
4712
46654a5b
AC
47132003-05-04 Andrew Cagney <[email protected]>
4714
4715 * sentinel-frame.c (sentinel_frame_prev_register): Replace
4716 REGISTER_BYTE with register_offset_hack.
4717 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
4718 that REGISTER_BYTE is consistent with the regcache.
4719 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
4720 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 4721
14b08c1b
MK
47222003-05-04 Mark Kettenis <[email protected]>
4723
04c8243f
MK
4724 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
4725 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
4726
14b08c1b
MK
4727 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
4728
c7a11e01
JB
47292003-05-03 J. Brobecker <[email protected]>
4730
4731 From Thierry Schneider <[email protected]>
4732 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
4733 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
4734 (mi-cmd-symbol.o): Add rule.
4735
7043d8dc
AC
47362003-05-03 Andrew Cagney <[email protected]>
4737
4738 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
4739 comments noteing that it replaces the old FIX_CALL_DUMMY code.
4740 * gdbarch.h, gdbarch.c: Re-generate.
4741 * d10v-tdep.c (d10v_push_dummy_code): New function.
4742 (d10v_gdbarch_init): Set push_dummy_code.
4743 * infcall.c (legacy_push_dummy_code): New function.
4744 (generic_push_dummy_code): New function.
4745 (push_dummy_code): New function.
4746 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
4747 instead of dummy_addr, to push_dummy_call. Move call to
4748 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
4749 switch.
4750 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
4751
92bf2b80
AC
47522003-05-03 Andrew Cagney <[email protected]>
4753
4754 * disasm.h (print_insn): Declare.
4755 * disasm.c (init_gdb_disassemble_info): New function.
4756 (gdb_disassembly): Call init_gdb_disassemble_info.
4757 (gdb_print_insn): New function.
4758 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
4759 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
4760 * mcore-tdep.c: Include "disasm.h"
4761 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
4762 * d10v-tdep.c: Include "disasm.h".
4763 (display_trace): Call gdb_print_insn, instead of print_insn.
4764 (print_insn): Delete function.
4765 * printcmd.c: Include "disasm.h".
4766 (print_insn): Delete function.
4767 (print_formatted): Call gdb_print_insn, instead of print_insn.
4768 * Makefile.in (printcmd.o): Update dependencies.
4769 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 4770
27d94c49
AC
47712003-05-02 Andrew Cagney <[email protected]>
4772
82de1e5b
AC
4773 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
4774 PC_REGNUM, re-indent.
4775 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
4776 PC_REGNUM isn't set.
4777
27d94c49
AC
4778 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
4779 * gdbarch.h, gdbarch.c: Re-generate.
4780 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
4781 register_virtual_size, pc_regnum, or register_bytes.
4782 (D10V_PC_REGNUM): Rename _PC_REGNUM.
4783 (d10v_register_type): Use D10V_PC_REGNUM.
4784 (d10v_print_registers_info, d10v_read_pc): Ditto.
4785 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
4786 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
4787
a9c0dc7f
DC
47882003-05-02 David Carlton <[email protected]>
4789
4790 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
4791 the name with mstrsave.
4792
e33d66ec
EZ
47932003-05-02 Elena Zannoni <[email protected]>
4794
4795 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
4796 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
4797 (host_charset_name, target_charset_name): New vars for use by
4798 set/show commands.
4799 (host_charset_enum, target_charset_enum): New enums for set/show
4800 commands.
4801 (set_charset_sfunc, set_host_charset_sfunc,
4802 set_target_charset_sfunc): New functions.
4803 (set_host_charset, set_target_charset): Make static.
4804 (list_charsets, set_host_charset_command,
4805 set_target_charset_command): Delete functions.
4806 (show_charset_command): Rewrite as....
4807 (show_charset): Hook this up with the set/show command mechanism.
4808 (_initialize_charset): Change names of charsets to match the
4809 set/show enums. Use host_charset_name and target_charset_name.
4810 Use set/show mechanism for charset, host-charset, target-charset
4811 commands. Do not make 'show host-charset' and 'show
4812 target-charset' be aliases of 'show charset'.
4813
4814 * charset.h (set_host_charset, set_target_charset): Don't export,
4815 they are not used outside the file.
4816
2b6fd0d8
AC
48172003-05-01 Andrew Cagney <[email protected]>
4818
4819 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
4820 (gdb_disassembly): Make "di" non static, always initialize and
4821 cleanup. Always use dis_asm_read_memory.
4822 (gdb_dis_asm_read_memory): Delete function.
4823
6ae2f580
AC
48242003-05-01 Andrew Cagney <[email protected]>
4825
4826 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
4827 (d10v_gdbarch_init): Set frame_align instead of stack_align.
4828
810ecf9f
AC
48292003-04-30 Andrew Cagney <[email protected]>
4830
4831 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
4832 "tm_print_insn_info".
4833 (TARGET_PRINT_INSN_INFO): Delete macro.
4834 (dis_asm_read_memory): Delete function declaration.
4835 (dis_asm_memory_error, dis_asm_print_address): Ditto.
4836 (tm_print_insn_info): Delete variable definition.
4837 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
4838 * gdbarch.h, gdbarch.c: Re-generate.
4839 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
4840 "deprecated_tm_print_insn_info".
4841 * mcore-tdep.c (mcore_dump_insn): Ditto.
4842 * mips-tdep.c (mips_gdbarch_init): Ditto.
4843 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
4844 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
4845 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
4846 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
4847 instead of TARGET_PRINT_INSN_INFO, add comment.
4848 * s390-tdep.c (s390_get_frame_info): Instead of
4849 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
4850 (s390_check_function_end, s390_is_sigreturn): Ditto.
4851 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
4852 (dis_asm_memory_error, dis_asm_print_address): Ditto.
4853 * disasm.c: Include "gdbcore.h".
4854 (_initialize_disasm): New function, initialize
4855 "deprecated_tm_print_insn_info".
4856 (deprecated_tm_print_insn_info): New variable.
4857 (dis_asm_read_memory): Moved from "corefile.c", made static.
4858 (dis_asm_print_address, dis_asm_memory_error): Ditto.
4859 * Makefile.in (disasm.o): Update dependencies.
4860
07020390
AC
48612003-04-30 Andrew Cagney <[email protected]>
4862
4863 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
4864
a9fa03de
AF
48652003-04-29 Adam Fedor <[email protected]>
4866
4867 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
4868 * infcall.c (find_function_addr): Make non-static.
4869 * infcall.h (find_function_addr): Declare.
4870 * Makefile.in (eval.o): Update dependencies.
4871
1bae87b9
AF
48722003-04-28 Adam Fedor <[email protected]>
4873
4874 * symtab.c (symbol_find_demangled_name): Check for and demangle
4875 ObjC symbols.
4876 (symbol_init_demangled_name): Init for language_objc as well.
4877
0ba6dca9
AC
48782003-04-28 Andrew Cagney <[email protected]>
4879
4880 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
4881 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
4882 * gdbarch.h, gdbarch.c: Re-generate.
4883 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
4884 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
4885 * inferior.h (deprecated_read_fp): Rename read_fp.
4886 (generic_target_read_fp): Delete declaration.
4887 * regcache.c (generic_target_read_fp): Delete function.
4888 (deprecated_read_fp): Replace read_fp, use
4889 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
4890 * d10v-tdep.c (d10v_read_fp): Delete function.
4891 (d10v_gdbarch_init): Do not set deprecated_read_fp.
4892
4893 * sparc-tdep.c (sparc_gdbarch_init): Do not set
4894 deprecated_target_read_fp to generic_target_read_fp.
4895 * sh-tdep.c (sh_gdbarch_init): Ditto.
4896 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4897 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4898 * frv-tdep.c (frv_gdbarch_init): Ditto.
4899
4900 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
4901 deprecated_fp_regnum.
4902 * x86-64-tdep.c (x86_64_init_abi): Ditto.
4903 * vax-tdep.c (vax_gdbarch_init): Ditto.
4904 * v850-tdep.c (v850_gdbarch_init): Ditto.
4905 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4906 * sh-tdep.c (sh_gdbarch_init): Ditto.
4907 * s390-tdep.c (s390_gdbarch_init): Ditto.
4908 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4909 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4910 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4911 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4912 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4913 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4914 * i386-tdep.c (i386_gdbarch_init): Ditto.
4915 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4916 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4917 * frv-tdep.c (frv_gdbarch_init): Ditto.
4918 * cris-tdep.c (cris_gdbarch_init): Ditto.
4919 * avr-tdep.c (avr_gdbarch_init): Ditto.
4920 * arm-tdep.c (arm_gdbarch_init): Ditto.
4921 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4922
4923 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
4924 * v850-tdep.c (v850_gdbarch_init): Ditto.
4925 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4926 * sh-tdep.c (sh_gdbarch_init): Ditto.
4927 * s390-tdep.c (s390_gdbarch_init): Ditto.
4928 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4929 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4930 * mips-tdep.c (mips_gdbarch_init): Ditto.
4931 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4932 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4933 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4934 * frv-tdep.c (frv_gdbarch_init): Ditto.
4935 * avr-tdep.c (avr_gdbarch_init): Ditto.
4936 * arm-tdep.c (arm_gdbarch_init): Ditto.
4937
4938 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
4939 DEPRECATED_FP_REGNUM.
4940 (vax_push_dummy_frame, vax_pop_frame): Ditto.
4941 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
4942 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
4943 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
4944 (sparc32_register_virtual_type): Ditto.
4945 * sh-tdep.c (sh64_frame_chain): Ditto.
4946 (sh64_get_saved_register, sh64_pop_frame): Ditto.
4947 (sh_nofp_frame_init_saved_regs): Ditto.
4948 (sh64_nofp_frame_init_saved_regs): Ditto.
4949 (sh_fp_frame_init_saved_regs): Ditto.
4950 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4951 * remote-e7000.c (fetch_regs_from_dump): Ditto.
4952 * procfs.c (procfs_fetch_registers): Ditto.
4953 (procfs_store_registers): Ditto.
4954 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
4955 (store_inferior_registers, fetch_core_registers): Ditto.
4956 (fetch_kcore_registers, clear_regs): Ditto.
4957 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
4958 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
4959 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
4960 * nlm/i386.c (do_status): Ditto.
4961 * mipsv4-nat.c (supply_gregset): Ditto.
4962 * mips-tdep.c: Ditto for comments.
4963 * mips-nat.c (fetch_inferior_registers): Ditto.
4964 (store_inferior_registers, fetch_core_registers): Ditto.
4965 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
4966 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
4967 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
4968 (i386_do_pop_frame, i386_register_type): Ditto.
4969 * hppa-tdep.c (hppa_frame_chain): Ditto.
4970 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
4971 (hppa_pop_frame, hppa_read_fp): Ditto.
4972 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
4973 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
4974 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
4975 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
4976 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
4977 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
4978 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
4979 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
4980 * blockframe.c: Ditto for comments.
4981 * arch-utils.h: Ditto for comments.
4982 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
4983 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
4984 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
4985 * alpha-tdep.h: Ditto for comments.
4986 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
4987 (alpha_cannot_store_register): Ditto.
4988 (alpha_push_dummy_frame): Ditto.
4989 * alpha-nat.c (supply_gregset): Ditto.
4990
4991 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
4992 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
4993 * config/sparc/tm-sparc.h: Update comment.
4994
4995 * hppa-tdep.c (hppa_init_extra_frame_info): Use
4996 deprecated_read_fp instead of TARGET_READ_FP.
4997 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
4998 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
4999 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5000 deprecated_read_fp instead of read_fp.
5001 * s390-tdep.c (s390_push_arguments): Ditto.
5002 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5003 * frame.h: Ditto in comments.
5004 * frame.c (legacy_get_prev_frame): Ditto.
5005 * dummy-frame.c (dummy_frame_this_id): Ditto.
5006 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5007
d7a27068
AC
50082003-04-28 Andrew Cagney <[email protected]>
5009
5010 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5011 * gdbarch.h, gdbarch.c: Re-generate.
5012 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5013 * vax-tdep.c (_initialize_vax_tdep): Update.
5014 * v850-tdep.c (_initialize_v850_tdep): Update.
5015 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5016 * s390-tdep.c (_initialize_s390_tdep): Update.
5017 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5018 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5019 * mips-tdep.c (_initialize_mips_tdep): Update.
5020 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5021 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5022 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5023 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5024 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5025 * frv-tdep.c (_initialize_frv_tdep): Update.
5026 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5027 (_initialize_cris_tdep): Update.
5028 * arch-utils.c (legacy_print_insn): Update.
5029 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5030
d2630e69
AF
50312003-04-26 Adam Fedor <[email protected]>
5032
5033 * linespec.c (decode_objc): New function to decode ObjC calls
5034 (decode_line_1): Check for ObjC calls (using decode_objc)
5035 * Makefile (linespec.o): Update dependencies.
5036
3086aeae
DJ
50372003-04-26 Daniel Jacobowitz <[email protected]>
5038
5039 * breakpoint.h (struct breakpoint_ops): New.
5040 (struct breakpoint): Add ops member.
5041
5042 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5043 (mention): Use new breakpoint ops member.
5044 (set_raw_breakpoint): Initialize ops field to NULL.
5045 (print_exception_catchpoint, print_one_exception_catchpoint)
5046 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5047 (gnu_v3_exception_catchpoint_ops): New.
5048 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5049
1fbec6c3
AF
50502003-04-25 Adam Fedor <[email protected]>
5051
5052 * Makefile.in (COMMON_OBS): Add objc-lang.o
5053
0ef21242
AC
50542003-04-25 Andrew Cagney <[email protected]>
5055
5056 * d10v-tdep.c (print_insn): Delete function.
5057 (display_trace): Use TARGET_PRINT_INSN.
5058 (_initialize_d10v_tdep): Do not set tm_print_insn.
5059 (d10v_gdbarch_init): Set print_insn.
5060
f75493ed
AC
50612003-04-25 Andrew Cagney <[email protected]>
5062
5063 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5064 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5065 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5066 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5067 (nr_dmap_regs, a0_regnum): ... new functions.
5068 (d10v_print_registers_info): Use a0_regnum, use register_size.
5069 (d10v_register_byte): Delete function.
5070 (d10v_register_raw_size): Delete function.
5071 (d10v_register_type): Use a0_regnum.
5072 (d10v_print_registers_info): Use a0_regnum.
5073 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5074 (d10v_gdbarch_init): Do not set register_byte or
5075 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5076 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5077 extract_address.
5078 (trace_command): Use XCALLOC.
5079 (print_insn): Delete reference to tm_print_insn.
5080 (saved_regs_unwinder): Use store_unsigned_integer instead of
5081 store_address.
5082 * frame.h (FRAME_OBSTACK_CALLOC): Define
5083
2202b100
DC
50842003-04-25 David Carlton <[email protected]>
5085
5086 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5087
4e45ca2e
AF
50882003-04-24 Adam Fedor <[email protected]>
5089
5090 * objc-lang.c: Include "valprint.h"
5091 * Makefile.in (objc-lang.o): Update dependencies.
5092
93de3e7f
AF
50932003-04-24 Adam Fedor <[email protected]>
5094
8ffd9b1b 5095 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
5096 architecture dependant compilation and mark as unimplemented
5097 (until they get put in the gdbarch vector).
5098
0f20eeea
DC
50992003-04-23 David Carlton <[email protected]>
5100
5101 * cp-support.c (cp_find_first_component): Accept 'operator' in
5102 more locations.
5103
74cfe982
AC
51042003-04-23 Andrew Cagney <[email protected]>
5105
5106 * infcall.c (call_function_by_hand): Eliminate redundant
5107 indentation. Move "saved_async" and "old_cleanups" to where they
5108 are needed.
8ffd9b1b 5109
52557533
AC
51102003-04-23 Andrew Cagney <[email protected]>
5111
5112 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5113 and "buffer". Move the "name" code to where it is needed.
5114
158775de
AC
51152003-04-23 Andrew Cagney <[email protected]>
5116
5117 * infcall.c (call_function_by_hand): Move variables "start_sp",
5118 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5119 code to ON_STACK switch branch.
8ffd9b1b 5120
ebc7896c
AC
51212003-04-23 Andrew Cagney <[email protected]>
5122
5123 * infcall.c (call_function_by_hand): Make declaration of "i",
5124 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5125 lint.
5126
d727590f
AC
51272003-04-23 Andrew Cagney <[email protected]>
5128
5129 * infcall.c (call_function_by_hand): Delete variable
5130 "n_method_args". Localize "param_type"'s declaration to the loop
5131 that it is used. Reinstate code assigning to said variable -
5132 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5133 Rationalize code using "param_type".
5134
d585e13a
AC
51352003-04-22 Andrew Cagney <[email protected]>
5136
5137 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5138 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5139 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5140 to DEPRECATED_PUSH_RETURN_ADDRESS.
5141
051caad9
KB
51422003-04-22 Kevin Buettner <[email protected]>
5143
5144 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5145 on the DWARF2 register number prior to fetching a register.
5146
77296879
JB
51472003-04-22 J. Brobecker <[email protected]>
5148
5149 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5150 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 5151 this macro was always set to 0.
77296879
JB
5152 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5153 considering the fact that this macro was always set to 0.
5154 * hppa-tdep.h (hppa_store_return_value): Likewise.
5155 (hppa_extract_return_value): Likewise.
5156
4252f1df
JB
51572003-04-22 J. Brobecker <[email protected]>
5158
5159 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5160 the hppa-pro target only.
5161
14604c6b
JB
51622003-04-21 J. Brobecker <[email protected]>
5163
5164 Ongoing multi-arch conversion effort for HP/UX:
5165 * config/pa/tm-hppa.h: Move all macro that are no longer
5166 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5167 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5168
77eb01d1
JB
51692003-04-21 J. Brobecker <[email protected]>
5170
5171 * config/pa/tm-hppa.h: Obsolete a section that was only used
5172 for hppa-pro.
5173
61995b3b
JB
51742003-04-21 J. Brobecker <[email protected]>
5175
5176 Ongoing multi-arch conversion for HP/UX.
5177 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5178 if already defined (allows hppa64 to stay non-multiarched for now).
5179 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5180
4aa79dcc
AC
51812003-04-21 Andrew Cagney <[email protected]>
5182
5183 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5184
0f751ff2
AC
51852003-04-21 Andrew Cagney <[email protected]>
5186
5187 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5188 "i386_num_mmx_regs".
5189
04714b91
AC
51902003-04-21 Andrew Cagney <[email protected]>
5191
5192 * infcall.c: New file.
5193 * infcall.h: New file.
5194 * valarith.c: Include "infcall.h".
5195 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5196 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5197 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5198 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5199 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5200 (SFILES): Add "infcall.c"
5201 (COMMON_OBS): Add "infcall.o".
5202 (infcall.o): Specify dependencies.
5203 * value.h (call_function_by_hand): Delete declaration.
5204 * inferior.h (run_stack_dummy): Delete declaration.
5205 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5206 (run_stack_dummy): Move to "infcall.c", merged into
5207 call_function_by_hand.
5208 * valops.c (call_function_by_hand): Moved to "infcall.c".
5209 (find_function_addr, value_arg_coerce): Ditto.
5210 (unwindonsignal_p, coerce_float_to_double): Ditto.
5211 (_initialize_valops): Move "set/show coerce-float-to-double", and
5212 "set/show unwindonsignal" commands to "infcall.c".
5213 * v850-tdep.c, target.h: Update comments.
5214 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5215 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5216 (sh64_init_extra_frame_info): Update comments.
5217 * mn10300-tdep.c: Update comments.
5218 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5219 * config/sparc/tm-sparc.h: Update comments.
5220 * breakpoint.h: Update comments.
5221 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5222 * arm-tdep.c: Update comment.
5223
f9d3c2a8
MK
52242003-04-19 Mark Kettenis <[email protected]>
5225
c40e1eab
MK
5226 * i386-tdep.c (i386_num_register_names): New variable.
5227 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5228 (MM0_REGNUM): Remove redundant parentheses in define.
5229 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5230 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5231 i386_mxcsr_regnum_p): Remove redundant parentheses.
5232 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 5233
94ea66b3
MK
5234 * i386-tdep.c (i386_extract_return_value,
5235 i386_store_return_value): Correct check for availability of
5236 floating-point registers.
5237
54299a1d
MK
5238 * i386-tdep.c (i386_frame_num_args): Remove function.
5239 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5240
c86c27af
MK
5241 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5242 mmx_regnum_to_fp_regnum. Adjust all callers.
5243
f9d3c2a8
MK
5244 * i386-tdep.c (i386_get_longjmp_target): Use
5245 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5246 and TARGET_CHAR_BIT. Use extract_typed_address instead of
5247 extract_address.
5248
94ba74a9
MK
52492003-04-19 Mark Kettenis <[email protected]>
5250
5251 * core-regset.c: Update comments to reflect reality. Re-order
5252 includes.
5253 (fetch_core_registers): Use switch instead of if. Remove
5254 redundant prototype.
5255
4074e13c
JB
52562003-04-18 Jim Blandy <[email protected]>
5257
5258 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 5259 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 5260
e3ab4aba
RH
52612003-04-17 Richard Henderson <[email protected]>
5262
5263 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5264
627bf7c1
EZ
52652003-04-17 Michael Snyder <[email protected]>
5266 Karen Bennet <[email protected]>
5267
5268 Committed by Elena Zannoni <[email protected]>
5269 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 5270
514621a9
EZ
52712003-04-17 Elena Zannoni <[email protected]>
5272
5273 * values.c (value_being_returned): Don't fetch the return
fbe586ae 5274 value if the return type is void.
514621a9 5275
b4acd559
JJ
52762003-04-17 Jeff Johnston <[email protected]>
5277
5278 * thread-db.c: Reindented.
8ffd9b1b 5279
530b167e 52802003-04-17 Jeff Johnston <[email protected]>
8ffd9b1b
AJ
5281
5282 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5283 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
5284 as types.
5285
0a48e7e8
MS
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
8ffd9b1b 5309
ab9fe00e
KB
53102003-04-16 Kevin Buettner <[email protected]>
5311
610a3745 5312 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
5313 the size of ``long double'' to 16, instead of 8.
5314
e64a344c
MK
53152003-04-16 Mark Kettenis <[email protected]>
5316
5317 * i386-linux-nat.c: Add some whitespace to make things more
5318 readable.
5319 (fetch_register, store_register, fetch_inferior_registers,
5320 store_inferior_registers): Get rid of assignment in if-statement.
5321 (store_register): Fix typo in error message.
5322
25d41031
AC
53232003-04-16 Andrew Cagney <[email protected]>
5324
5325 * utils.c (xmmalloc): Always allocate something, matches
5326 libiberty/xmalloc's semantics.
5327 (xmrealloc, xmcalloc): Ditto.
5328
c50901fd
AC
53292003-04-16 Andrew Cagney <[email protected]>
5330
5331 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5332 update comments.
5333 (get_frame_type): Initialize unwind and type when needed.
5334 (get_frame_id, frame_register_unwind): Ditto.
5335
f81824a9
AC
53362003-04-16 Andrew Cagney <[email protected]>
5337
5338 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5339 obsolete.
5340 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5341 * sparcl-stub.c: Obsolete file.
5342 * config/sparc/tm-sparclet.h: Obsolete file.
5343 * sparclet-stub.c: Obsolete file.
5344 * sparclet-rom.c: Obsolete file.
5345 * sparcl-tdep.c: Obsolete file.
5346 * config/sparc/tm-sparclite.h: Obsolete file.
5347 * config/sparc/sparclite.mt: Obsolete file.
5348 * config/sparc/sparclet.mt: Obsolete file.
5349 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5350 sparc86x-*-* obsolete.
5351
9219021c
DC
53522003-04-15 David Carlton <[email protected]>
5353
5354 * Makefile.in (SFILES): Add cp-namespace.c.
5355 (COMMON_OBS): Add cp-namespace.o.
5356 (block.o): Depend on gdb_obstack_h and cp_support_h.
5357 (buildsym.o): Depend on cp_support_h.
5358 (cp-namespace.o): New.
5359 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
5360 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
5361 (dwarf2read.o): Depend on cp_support_h.
5362 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
5363 * dwarf2read.c (process_die): Set processing_has_namespace_info,
5364 processing_current_namespace.
5365 (read_namespace): Update processing_current_namespace; check for
5366 anonymous namespaces.
5367 (dwarf2_name): New function.
5368 (dwarf2_extension): Ditto.
5369 * cp-support.h: Update copyright, contributors.
5370 Add inclusion guards.
5371 Add opaque declaration for structs obstack, block, symbol.
5372 (struct using_direct): New struct.
5373 Add declarations for cp_find_first_component,
5374 cp_entire_prefix_len, processing_has_namespace_info,
5375 processing_current_namespace, cp_is_anonymous,
5376 cp_add_using_directive, cp_initialize_namespace,
5377 cp_finalize_namespace, cp_set_block_scope,
5378 cp_scan_for_anonymous_namespaces.
5379 * cp-namespace.c: New file.
5380 * cp-support.c: Update copyright.
5381 Include ctype.h, gdb_assert.h, gdbcmd.h.
5382 New variable maint_cplus_cmd_list.
5383 (cp_find_first_component): New function.
5384 (cp_entire_prefix_len, maint_cplus_command)
5385 (first_component_command, _initialize_cp_support): Ditto.
5386 * buildsym.c: Include cp-support.h.
5387 New variable using_list.
5388 (add_symbol_to_list): Check for anonymous namespaces.
5389 (finish_block): Set block's scope.
5390 (start_symtab): Initialize C++ namespace support.
5391 (end_symtab): Finalize C++ namespace support.
5392 * block.h: Add opaque declarations for structs
5393 block_namespace_info, using_direct, and obstack.
5394 Add declarations for block_set_scope and block_set_using.
5395 (struct block): Add 'language_specific' member.
5396 (BLOCK_NAMESPACE): New macro.
5397 * block.c: Include gdb_obstack.h and cp-support.h.
5398 (struct block_namespace_info): New struct.
5399 (block_set_scope): New function.
5400 (block_set_using, block_initialize_namespace): Ditto.
5401
d5a921c9
KB
54022003-04-14 Kevin Buettner <[email protected]>
5403
5404 * solib-svr4.c (svr4_have_link_map_offsets): New function.
5405 (locate_base): Return early if there aren't any link map offsets.
5406 (svr4_solib_create_inferior_hook): Warn if shared library support
5407 is unavailable.
5408
d2a52b27
DC
54092003-04-14 David Carlton <[email protected]>
5410
5411 * symtab.c (symbol_set_names): Add prefix when storing Java names
5412 in hash table. Fix for PR java/1039.
5413
980cae7a
DC
54142003-04-14 David Carlton <[email protected]>
5415
5416 * symtab.c (symbol_set_names): Rename 'name' arg to
5417 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
5418 * symtab.h: Change 'name' argument in declaration of
5419 symbol_set_names to 'linkage_name'.
5420 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
5421
e227b13c
AC
54222003-04-14 Andrew Cagney <[email protected]>
5423
5424 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
5425 return the fully sign-extended register value.
5426 (get_frame_pointer): Ditto.
5427 (mips_pop_frame): Initialize "proc_desc" after checking for a
5428 dummy frame.
5429
36712a20
AC
54302003-04-14 Andrew Cagney <[email protected]>
5431
5432 * mips-tdep.c (mips_push_dummy_frame): Delete function.
5433 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
5434 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
5435 (mips_push_register): Delete function.
5436 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
5437 PUSH_FP_REGNUM.
5438
44ea7b70
JB
54392003-04-14 Jim Blandy <[email protected]>
5440
5441 * symmisc.c: #include "gdb_regex.h".
5442 (maintenance_list_symtabs, maintenance_list_psymtabs): New
5443 functions.
5444 * maint.c (maintenance_list_command): New function.
5445 (_initialize_maint_cmds): Register the above as commands.
5446 * symtab.h (maintenance_list_symtabs,
5447 maintenance_list_psymtabs): New declarations.
5448 * cli/cli-cmds.c (maintenancelistlist): New variable.
5449 (init_cmd_lists): Initialize it.
5450 * cli/cli-cmds.h (maintenancelistlist): New declaration.
5451 * gdbcmd.h (maintenancelistlist): New declaration.
5452 * Makefile.in (symmisc.o): Update dependencies.
5453
2d0c7962
EZ
54542003-04-14 Elena Zannoni <[email protected]>
5455
5456 * s390-nat.c: Include asm/types.h for addr_t.
5457
1947a811
CV
54582003-04-14 Corinna Vinschen <[email protected]>
5459
5460 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
5461 actually incoming type.
5462
adb616d7
AC
54632003-04-13 Andrew Cagney <[email protected]>
5464
5465 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
5466 get_next_frame and get_frame_saved_regs.
5467
9b5e151c
AC
54682003-04-13 Andrew Cagney <[email protected]>
5469
5470 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
5471 of gdbarch_num_regs.
5472
ef6e7e13
AC
54732003-04-13 Andrew Cagney <[email protected]>
5474
5475 * frame.h: Mention what replaced what in "struct frame_info".
5476 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
5477 deprecated_update_frame_base_hack and
5478 deprecated_update_frame_pc_hack.
5479 * hppa-tdep.c: Ditto.
5480
61fbb938
DJ
54812003-04-13 Daniel Jacobowitz <[email protected]>
5482
5483 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
5484 to read_reg and update its comment. Remove regnum member.
5485 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
5486 Don't call read_reg when setting in_reg. Call read_reg to get
5487 the frame base if it's in a register. Return the register number
5488 on the stack instead of in the context. Remove extra arguments
5489 to read_reg.
5490 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
5491 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
5492 the register number on the expression stack.
5493 (needs_frame_read_reg): Remove extra arguments.
5494
0d53c4c4
DJ
54952003-04-13 Daniel Jacobowitz <[email protected]>
5496
5497 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
5498 made non-static.
5499 (execute_stack_op): All callers updated.
5500 * dwarf2expr.h: Add prototype for dwarf2_read_address.
5501 * dwarf2loc.c (find_location_expression): New function.
5502 (dwarf_expr_frame_base): Call it.
5503 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
5504 (dwarf2_tracepoint_var_ref): New function, broken out from
5505 locexpr_tracepoint_var_ref.
5506 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
5507 Make static.
5508 (loclist_read_variable, loclist_read_needs_frame): New functions.
5509 (loclist_describe_location, loclist_tracepoint_var_ref): New
5510 functions.
5511 (dwarf2_loclist_funcs): New struct location_funcs.
5512 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
5513 (struct dwarf2_locexpr_baton): Add comments.
5514 (dwarf2_loclist_funcs): New extern.
5515 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
5516 base_address and base_known.
5517 (dwarf_loc_buffer): New variable.
5518 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
5519 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
5520 (dwarf2_has_info): Initialize dwarf_loc_offset.
5521 (dwarf2_build_psymtabs): Read in .debug_loc.
5522 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
5523 DWARF_LOC_SIZE.
5524 (psymtab_to_symtab_1): Likewise. Move base address calculation
5525 here, from...
5526 (dwarf2_get_pc_bounds): ... here. Use the base address from
5527 cu_header.
5528 (dwarf2_symbol_mark_computed): Handle location lists.
5529
6aca59a3
DJ
55302003-04-13 Daniel Jacobowitz <[email protected]>
5531
5532 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
5533 if the linkage name demangled successfully.
5534
aca1fcd0
MK
55352003-04-13 Mark Kettenis <[email protected]>
5536
97095916
MK
5537 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
5538 disassmbly_flavour): Removed.
5539
aca1fcd0
MK
5540 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
5541
562a961f
MK
55422003-04-13 Mark Kettenis <[email protected]>
5543
5544 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
5545
bd013d54
AC
55462003-04-12 Andrew Cagney <[email protected]>
5547
5548 * frame.h (struct frame_info): Move definition from here ...
5549 * frame.c (struct frame_info): ... to here.
5550
167ef8b1
AC
55512003-04-12 Andrew Cagney <[email protected]>
5552
5553 * gdbthread.h (save_infrun_state): Delete parameter
5554 "prev_func_start".
5555 (struct thread_info): Delete field "prev_func_start".
5556 (load_infrun_state): Ditto.
5557 * thread.c (load_infrun_state, save_infrun_state): Update.
5558 * infrun.c (prev_func_start): Delete variable.
5559 (context_switch, init_wait_for_inferior): Update.
5560 (stop_stepping, keep_going): Update.
5561
da3331ec
AC
55622003-04-12 Andrew Cagney <[email protected]>
5563
5564 * gdbarch.sh: Add missing opaque declarations.
5565 * gdbarch.h: Regnerate.
5566 * symtab.h: Add missing opaque declarations.
5567 * value.h, target.h, symfile.h, stabsread.h: Ditto.
5568 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
5569 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
5570 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
5571 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
5572 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
5573 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
5574 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
5575 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
5576 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
5577 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
5578 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
5579 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
5580
18adea3f
AC
55812003-04-11 Andrew Cagney <[email protected]>
5582
5583 * frame.c (get_frame_id): Return this frame's "id".
5584 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
5585 function start.
5586 (legacy_saved_regs_this_id): Replace function body with
5587 internal-error.
5588 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
5589 FRAME_OBSTACK_ZALLOC.
5590 (create_new_frame): Mark the frame ID as valid.
5591
2252e863
AO
55922003-04-11 Alexandre Oliva <[email protected]>
5593
5594 * Makefile.in (libbfd_h): Added missing setting.
5595 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
5596 according to the selected ABI.
5597
a8245ab8
JJ
55982003-04-11 Jeff Johnston <[email protected]>
5599
5600 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
5601
6913c89a
AC
56022003-04-11 Andrew Cagney <[email protected]>
5603
5604 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
5605 SAVED_PC_AFTER_CALL.
5606 * gdbarch.h, gdbarch.c: Regenerate.
5607 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5608 * x86-64-tdep.c (x86_64_init_abi): Update.
5609 * vax-tdep.c (vax_gdbarch_init): Update.
5610 * v850-tdep.c (v850_gdbarch_init): Update.
5611 * sparc-tdep.c (sparc_gdbarch_init): Update.
5612 * sh-tdep.c (sh_gdbarch_init): Update.
5613 * s390-tdep.c (s390_gdbarch_init): Update.
5614 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5615 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5616 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5617 * mips-tdep.c (mips_gdbarch_init): Update.
5618 * mcore-tdep.c (mcore_gdbarch_init): Update.
5619 * m68k-tdep.c (m68k_gdbarch_init): Update.
5620 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5621 * ia64-tdep.c (ia64_gdbarch_init): Update.
5622 (ia64_saved_pc_after_call): Update declaration.
5623 * i386ly-tdep.c (i386lynx_init_abi): Update.
5624 * i386-tdep.c (i386_gdbarch_init): Update.
5625 * hppa-tdep.c (hppa_gdbarch_init): Update.
5626 * h8300-tdep.c (h8300_gdbarch_init): Update.
5627 * frv-tdep.c (frv_gdbarch_init): Update.
5628 * cris-tdep.c (cris_gdbarch_init): Update.
5629 * avr-tdep.c (avr_gdbarch_init): Update.
5630 * arm-tdep.c (arm_gdbarch_init): Update.
5631 * alpha-tdep.c (alpha_gdbarch_init): Update.
5632 * ns32knbsd-nat.c (frame_num_args): Update.
5633 * ns32k-tdep.c (umax_frame_num_args): Update.
5634 * mips-tdep.c (mips_init_frame_pc_first): Update.
5635 * infrun.c (step_over_function): Update.
5636 * i386-linux-tdep.c (skip_hurd_resolver): Update.
5637 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
5638 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5639 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5640 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5641 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5642 * arm-linux-tdep.c (skip_hurd_resolver): Update.
5643 * arch-utils.c (init_frame_pc_default): Update.
5644 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
5645 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
5646 declaration.
8ffd9b1b 5647
38edeab8
AC
56482003-04-11 Andrew Cagney <[email protected]>
5649
5650 * i387-tdep.c: Update copyright.
5651 (i387_to_double): Delete function.
5652 (double_to_i387): Delete function.
5653
81f8a206
AC
56542003-04-10 Andrew Cagney <[email protected]>
5655
5656 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
5657 frame's function's address. Simplify.
5658 (d10v_frame_unwind_cache): Check that the frame's function is
5659 non-zero.
5660
6e691f7a
JB
56612003-04-10 Jim Blandy <[email protected]>
5662
5663 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
5664 call to set_gdbarch_deprecated_push_arguments.
5665
7f78e237
AC
56662003-04-10 Andrew Cagney <[email protected]>
5667
5668 * frame.c (fprint_frame_id): New function.
5669 (fprint_frame_type, fprint_frame): New function.
5670 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
5671 (create_sentinel_frame, get_frame_id): Ditto.
5672 (frame_id_p, frame_id_eq): Ditto.
5673 (frame_id_inner, create_new_frame): Ditto.
5674 (legacy_get_prev_frame, get_prev_frame): Ditto.
5675 (deprecated_update_frame_pc_hack): Ditto.
5676 (frame_register_unwind): Ditto.
5677 (deprecated_update_frame_base_hack): Ditto.
5678
f870b49b
CV
56792003-04-10 Corinna Vinschen <[email protected]>
5680
5681 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
5682 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
5683 frame_chain function.
5684 * Makefile.in: Add dependencies due to above change.
5685
7c86889b
CV
56862003-04-10 Corinna Vinschen <[email protected]>
5687
5688 * blockframe.c (legacy_frame_chain_valid): Move call to
5689 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
5690 inside_entry_file.
5691
d0a55772
AC
56922003-04-09 Andrew Cagney <[email protected]>
5693
5694 * frame.h (struct frame_id): Replace "pc" and "base" with
5695 "stack_addr" and "code_addr". Update comments.
5696 (frame_id_build): Update parameter names and comment.
5697 (struct frame_info): Replace "id_p" and "id" with "this_id".
5698 * dummy-frame.c (dummy_frame_this_id): Update.
5699 * breakpoint.c (print_one_breakpoint): Update.
5700 * frame.c (get_frame_id): Update.
5701 (get_frame_base, frame_id_build): Update.
5702 (create_sentinel_frame, legacy_get_prev_frame): Update.
5703 (deprecated_update_frame_base_hack): Update.
5704 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
5705 (frame_id_inner): Ditto.
5706
ac16bf07
AC
57072003-04-09 Andrew Cagney <[email protected]>
5708
5709 * defs.h (gdb_print_host_address): Make "addr" parameter a
5710 pointer constant.
5711 * utils.c (gdb_print_host_address): Update.
5712
366cfc9e
KB
57132003-04-09 Kevin Buettner <[email protected]>
5714
5715 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
5716 register number for R0 is 0.
5717
cd983b5c
JB
57182003-04-09 J. Brobecker <[email protected]>
5719
5720 * frame.h (struct gdbarch): Add opaque structure definition
5721 to avoid a compilation warning on LynxOS 4.0.
5722
d1340264
AC
57232003-04-09 Andrew Cagney <[email protected]>
5724
5725 * frame.h (struct frame_info): Delete field "pc". Replace
5726 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
5727 structure.
5728 * frame.c (frame_pc_unwind): Update.
5729 (create_sentinel_frame): Do not set "pc".
5730 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
5731 (get_frame_pc): Call frame_pc_unwind.
5732 (deprecated_update_frame_pc_hack): Update.
5733 (create_new_frame): Use "pc" not "->pc".
5734
90a6fffb
AC
57352003-04-09 Andrew Cagney <[email protected]>
5736
5737 * frame.c (get_frame_id): Eliminate code updating "frame".
5738 (legacy_get_prev_frame): Ditto.
5739 (get_frame_base): Return id.base directly.
5740 (deprecated_update_frame_base_hack): Update "id.base".
5741 * frame.h (struct frame_info): Delete field "frame".
5742
2fbce691
AC
57432003-04-09 Andrew Cagney <[email protected]>
5744
5745 * NEWS: Mention that the "Sequent family" is obsolete.
5746 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
5747 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5748 * configure.host: Obsolete i[3456]86-sequent-bsd*,
5749 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5750 * config/i386/tm-ptx4.h: Obsolete file.
5751 * config/i386/tm-ptx.h: Obsolete file.
5752 * symm-tdep.c: Obsolete file.
5753 * config/i386/symmetry.mt: Obsolete file.
5754 * config/i386/tm-symmetry.h: Obsolete file.
5755 * symm-nat.c: Obsolete file.
5756 * config/i386/nm-symmetry.h: Obsolete file.
5757 * config/i386/xm-symmetry.h: Obsolete file.
5758 * config/i386/symmetry.mh: Obsolete file.
5759 * config/i386/nm-ptx4.h: Obsolete file.
5760 * config/i386/ptx4.mh: Obsolete file.
5761 * config/i386/ptx.mt: Obsolete file.
5762 * config/i386/ptx.mh: Obsolete file.
5763 * config/i386/xm-ptx4.h: Obsolete file.
5764 * config/i386/xm-ptx.h: Obsolete file.
5765
78c43945
AC
57662003-04-09 Andrew Cagney <[email protected]>
5767
5768 Obsolete mips*-*-mach3*.
5769 * NEWS: Mention that mips*-*-mach3* is obsolete.
5770 * m3-nat.c: Obsolete file.
5771 * config/nm-m3.h: Obsolete file.
5772 * config/mips/tm-mipsm3.h: Obsolete file.
5773 * config/mips/mipsm3.mt: Obsolete file.
5774 * config/mips/mipsm3.mh: Obsolete file.
5775 * config/mips/xm-mipsm3.h: Obsolete file.
5776 * mipsm3-nat.c: Obsolete file.
5777 * configure.host: Obsolete mips-dec-mach3*.
5778 * configure.tgt: Obsolete mips*-*-mach3*.
5779
f1908289
AC
57802003-04-09 Andrew Cagney <[email protected]>
5781
5782 * doublest.h: Update copyright.
5783 (deprecated_store_floating, deprecated_extract_floating): Rename
5784 store_floating and extract_floating. Update comments.
5785 * doublest.c: Update copyright.
5786 (extract_floating_by_length): Replace extract_floating.
5787 (store_floating_by_length): Replace store_floating.
5788 (deprecated_extract_floating): New function.
5789 (deprecated_store_floating): New function.
5790 (extract_typed_floating): Call extract_floating_by_length.
5791 (store_typed_floating): Call store_floating_by_length.
5792 * x86-64-tdep.c (x86_64_store_return_value): Update.
5793 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
5794 (sh64_extract_return_value): Update.
5795 (sh_sh4_register_convert_to_virtual): Update.
5796 (sh_sh64_register_convert_to_virtual): Update.
5797 (sh_sh4_register_convert_to_raw): Update.
5798 (sh_sh64_register_convert_to_raw): Update.
5799 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
5800 (rs6000_register_convert_to_raw): Update.
5801 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
5802 (ia64_register_convert_to_raw): Update.
5803 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
5804 (REGISTER_CONVERT_TO_VIRTUAL): Update.
5805 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
5806 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
5807 (alpha_register_convert_to_raw): Update.
5808
4443bd83
AC
58092003-04-08 Andrew Cagney <[email protected]>
5810
5811 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
5812 * gdbarch.h, gdbarch.c: Re-generate.
5813 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
5814 (d10v_gdbarch_init): Do not set saved_pc_after_call.
5815 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
5816 conditionally, use frame_pc_unwind as an alternative. Add
5817 comments.
5818 * arch-utils.c (init_frame_pc_default): Only call
5819 SAVED_PC_AFTER_CALL when available.
5820
c0236d92
EZ
58212003-04-08 Elena Zannoni <[email protected]>
5822
fbe586ae 5823 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
5824 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
5825 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
5826 (start_remote): Ditto.
5827 (handle_inferior_event): Ditto.
5828 (save_inferior_status): Ditto.
5829 (restore_inferior_status): Ditto.
5830 * infcmd.c (attach_command): Ditto.
5831 * fork-child.c (startup_inferior): Ditto.
fbe586ae 5832 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
5833 * alpha-tdep.c (heuristic_proc_start): Ditto.
5834 * mips-tdep.c (heuristic_proc_start): Ditto.
5835 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
5836 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
5837 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
5838 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
5839 * remote-vx.c (vx_create_inferior): Ditto.
5840
58412003-04-08 Elena Zannoni <[email protected]>
5842
5843 * infrun.c (stop_soon_quietly): Make it an enum, to better
5844 override the default behavior of handle_inferior_event.
5845 (clear_proceed_status): Update uses of stop_soon_quietly to
5846 reflect that it is now an enum.
5847 (start_remote): Ditto.
5848 (handle_inferior_event): Change logic a bit if stop_soon_quietly
5849 is set to handle the new GNU/Linux kernel behavior for
5850 attach/sigstop. Update uses of stop_soon_quietly.
5851 * inferior.h (enum stop_kind): New enum.
5852 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
5853 Reset normal handle_inferior_event behavior, afterwards.
5854 * fork-child.c (startup_inferior): Update.
5855 * alpha-tdep.c (heuristic_proc_start): Update.
5856 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
5857 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
5858 * solib-osf.c (osf_solib_create_inferior_hook): Update.
5859 * solib-irix.c (irix_solib_create_inferior_hook): Update.
5860 * remote-vx.c (vx_create_inferior): Update.
5861 * mips-tdep.c (heuristic_proc_start): Update.
5862
1211bce3
EZ
58632003-04-07 Elena Zannoni <[email protected]>
5864
5865 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 5866 be freed more than once, causing wild memory corruptions.
1211bce3 5867 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 5868 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 5869 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 5870 with the "core" target.
1211bce3 5871
f0ef6b29
KB
58722003-04-07 Kevin Buettner <[email protected]>
5873
5874 * mips-tdep.c (mips_print_fp_register): New function, created from
5875 do_fp_register_row(). Registers are now (also) printed as hex.
5876 Only one register is printed per row.
5877 (mips_print_register, do_fp_register_row): Print floating point
5878 registers with mips_print_fp_register().
5879
8cf71652
AC
58802003-04-06 Andrew Cagney <[email protected]>
5881
5e488a7b
AC
5882 * valprint.h (inspect_it): Add extern declaration.
5883 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
5884 (selectors_info, classes_info): Ditto.
5885 (find_objc_msgcall): Fix indentation.
5886 (objc_printstr): Delete extern declarations.
5887
8cf71652
AC
5888 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
5889
e6ba3bc9
AC
58902003-04-06 Andrew Cagney <[email protected]>
5891
5892 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
5893 Update comment.
5894 * frame.c (legacy_saved_regs_this_id): Update.
5895 (legacy_get_prev_frame): Update.
5896 * xstormy16-tdep.c: Update comment.
5897 * sparc-tdep.c (sparc_frame_chain): Update comment.
5898 * blockframe.c (legacy_frame_chain_valid): Update.
5899
55e1d7e7
AC
59002003-04-06 Andrew Cagney <[email protected]>
5901
996179ee
AC
5902 * valprint.c (val_print_type_code_int): Delete #ifdef
5903 PRINT_TYPELESS_INTEGER code.
5904
55e1d7e7
AC
5905 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
5906 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
5907 multi-arch definition.
5908 * gdbarch.h: Re-generate.
5909
43bd9a9e
AC
59102003-04-05 Andrew Cagney <[email protected]>
5911
5912 Eliminate FRAME_FIND_SAVED_REGS.
5913 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
5914 Change FSR parameter to a pointer.
5915 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
5916 Assume FSR parameter is a pointer.
5917 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
5918 Make fsr a pointer.
5919 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
5920 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
5921 saved_regs a pointer.
5922 (hppa_frame_saved_pc): Ditto.
5923 (find_dummy_frame_regs): Make frame_saved_regs a pointer
5924 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
5925 pointer.
5926 (restore_pc_queue): Make fsr a pointer.
5927 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
5928 (hppa_frame_chain): Make saved_regs a pointer, call
5929 hppa_frame_init_saved_regs.
5930 * sparc-tdep.c: Include "gdb_assert.h".
5931 (sparc_frame_find_saved_regs): Replace internal_error with
5932 gdb_assert.
5933 * remote-vxsparc.c (vx_read_register): Delete reference to
5934 FRAME_FIND_SAVED_REGS.
5935 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
5936 * gdbarch.h: Regenerate.
5937 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
5938 (deprecated_get_frame_saved_regs): Delete declaration.
5939 (struct frame_saved_regs): Delete definition.
5940 * frame.c (deprecated_get_frame_saved_regs): Delete function.
5941 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
5942 (hppa_frame_find_saved_regs): Delete declaration.
5943 (FRAME_FIND_SAVED_REGS): Delete macro.
5944 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
5945 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
5946 FRAME_FIND_SAVED_REGS in comment.
5947
be41e9f4
AC
59482003-04-05 Andrew Cagney <[email protected]>
5949
5950 * frame.c (frame_func_unwind, get_frame_func): New functions.
5951 * frame.h (get_frame_func, frame_func_unwind): Declare.
5952 (struct frame_info): Add field "prev_func" for caching the
5953 previous frame's function address.
5954 * arm-tdep.c (arm_frameless_function_invocation): Combine
5955 get_pc_function_start and get_frame_pc into get_frame_func.
5956 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
5957 (sh64_nofp_frame_init_saved_regs): Ditto.
5958 * s390-tdep.c (s390_function_start): Ditto.
5959 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
5960 (rs6000_frameless_function_invocation): Ditto.
5961 (rs6000_frame_saved_pc): Ditto.
5962 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
5963 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
5964 * i386-tdep.c (i386_frameless_signal_p): Ditto.
5965 (i386_frame_init_saved_regs): Ditto.
5966 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
5967 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
5968 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
5969 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5970 * blockframe.c (frameless_look_for_prologue): Ditto.
5971
a01dd7cc
AC
59722003-04-05 Andrew Cagney <[email protected]>
5973
5974 * frame.c (legacy_get_prev_frame): Link prev to next at the
5975 function start. Update comments.
5976
5e5592e6
AC
59772003-04-05 Andrew Cagney <[email protected]>
5978
5979 * frame.c (get_frame_id): Update comment.
5980 (legacy_get_prev_frame): Update comment.
5981 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
5982 * gdbarch.h: Regenerate.
5983 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
5984 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
5985
6fba5002
AC
59862003-04-05 Andrew Cagney <[email protected]>
5987
5988 * stack.c (print_frame_info): Use get_frame_pc.
5989
7df05f2b
AC
59902003-04-04 Andrew Cagney <[email protected]>
5991
5992 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
5993 the frame's type from the unwinder.
5994 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
5995 (create_new_frame, legacy_get_prev_frame): When the unwinder's
5996 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
5997 (get_frame_base_address): Use get_frame_type.
5998 (get_frame_locals_address, get_frame_args_address): Ditto.
5999 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6000 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6001 (struct frame_info): Add comment explaining why the frame contains
6002 a "type" field.
6003 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6004 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6005 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6006 NORMAL_FRAME.
6007 * frame-unwind.h: Include "frame.h".
6008 (struct frame_unwind): Add "type" field.
6009 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 6010
11889732
AC
60112003-04-04 Andrew Cagney <[email protected]>
6012
6013 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6014 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6015 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6016 get_frame_base.
6017 (d10v_unwind_dummy_id): Use frame_id_build.
6018 * frame.c (find_frame_sal): Use get_frame_pc.
6019 (create_new_frame): Use deprecated_update_frame_pc_hack and
6020 deprecated_update_frame_base_hack.
6021 (create_sentinel_frame): Add comment about ->pc going away.
6022 (get_prev_frame): Add comment about ->pc going away.
6023 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6024 frame_id_build, deprecated_update_frame_pc_hack and
6025 deprecated_update_frame_base_hack.
6026 (select_frame): Use get_frame_pc.
6027 (legacy_saved_regs_this_id): Use frame_id_build.
6028
50c46a0d
EZ
60292003-04-04 Elena Zannoni <[email protected]>
6030
fbe586ae
RH
6031 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6032 signed integer case.
6033 (classify_argument): Handle enumerations and references.
50c46a0d 6034
50bbdbd9
AC
60352003-04-04 Andrew Cagney <[email protected]>
6036
6037 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6038 ID to NULL.
6039
36018d2e
AF
60402003-04-01 Adam Fedor <[email protected]>
6041
6042 * gdb/objc-lang.c (selectors_info): Replace calls to
6043 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6044 SYMBOL_NATURAL_NAME.
6045 (classes_info, find_methods): Likewise.
6046
35cec841
KB
60472003-04-03 Kevin Buettner <[email protected]>
6048
6049 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6050 ``mach'' to the value determined by bfd_default_set_arch_mach().
6051
43136899
BR
60522003-04-02 Bob Rossi <[email protected]>
6053
6054 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6055 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6056 (mi-cmd-file.o): Update dependencies.
6057
040b99fd
KB
60582003-04-01 Kevin Buettner <[email protected]>
6059
6060 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6061 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6062
9a3d7dfd
AF
60632003-04-01 Adam Fedor <[email protected]>
6064
6065 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6066 * language.h (struct language_defn): Add la_demangle.
6067 (language_demangle): Declare.
6068 * language.c (language_demangle): New function.
6069 (unk_lang_demangle): Likewise.
6070 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 6071 Add ukn_lang_demangle.
9a3d7dfd 6072 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 6073 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
6074 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6075 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6076 * jv-lang.c (java_demangle): New function
6077 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
6078 * objc-lang.c (objc_demangle): Add options argument
6079 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
6080 * maint.c (maintenance_demangle): Replace switch with
6081 call to language_demangle.
6082 * utils.c (fprintf_symbol_filtered): Likewise.
6083
5e074003
AC
60842003-04-01 Andrew Cagney <[email protected]>
6085
6086 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6087 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6088 PRINT_TYPELESS_INTEGER.
6089 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6090 PUSH_RETURN_ADDRESS.
6091
270cb5d6
AC
60922003-04-01 Andrew Cagney <[email protected]>
6093
6094 * Makefile.in (d10v-tdep.o): Update dependencies.
6095 * d10v-tdep.c: Include "frame-base.h".
6096 (d10v_frame_unwind): Make constant.
6097 (d10v_frame_base_address): New function.
6098 (d10v_frame_base): New variable.
6099 (d10v_gdbarch_init): Set frame_base default.
6100 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6101 comment for base.
6102 (d10v_frame_unwind_cache): Set and use "prev_sp".
6103 (d10v_frame_this_id): Use the previous frame's inner most stack
6104 address and this frame's func address for the frame ID. Use
6105 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 6106
6bfb3e36
AC
61072003-04-01 Andrew Cagney <[email protected]>
6108
6109 * frame.h (get_frame_locals_address, get_frame_args_address):
6110 Refer to the base address, instead of the address of the first
6111 local or parameter.
8ffd9b1b 6112
da62e633
AC
61132003-04-01 Andrew Cagney <[email protected]>
6114
6115 Add frame debug info addresses:
6116 * frame-base.c: New file.
6117 * frame-base.h: New file.
6118 * frame.h (struct frame_base): Add opaque declaration.
6119 (get_frame_base): Update comment.
6120 (get_frame_base_address): Declare.
6121 (get_frame_locals_address): Declare.
6122 (get_frame_args_address): Declare.
6123 (struct frame_info): Add "base" and "base_cache". Update
6124 comments on the unwinder.
6125 * frame.c: Include "frame-base.h".
6126 (get_frame_locals_address): New function.
6127 (get_frame_base_address): New function.
6128 (get_frame_args_address): New function.
6129 * findvar.c (read_var_value): Use get_frame_locals_address and
6130 get_frame_args_address.
6131 * stack.c (frame_info): Use get_frame_locals_address and
6132 get_frame_args_address.
6133 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6134 moved to "frame-base.c".
6135 * printcmd.c (print_frame_nameless_args): Ditto.
6136 * symtab.h (address_class): Update comments.
6137 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6138 get_frame_base_address.
6139 * dwarf2expr.c (execute_stack_op): Ditto.
6140 * Makefile.in (frame_base_h): Define.
6141 (frame.o): Update dependencies.
6142 (frame-base.o): Add dependencies.
6143 (SFILES): Add frame-base.c.
6144 (COMMON_OBS): Add frame-base.o.
6145
3d30e9c2
AC
61462003-04-01 Andrew Cagney <[email protected]>
6147
6148 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6149 CALL_DUMMY_LENGTH): Ditto.
6150 * gdbarch.c: Re-generate.
6151 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6152 (CALL_DUMMY_LENGTH): Delete macro.
6153 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6154 * arm-tdep.c (arm_gdbarch_init): Ditto.
6155 * avr-tdep.c (avr_gdbarch_init): Ditto.
6156 * cris-tdep.c (cris_gdbarch_init): Ditto.
6157 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6158 * frv-tdep.c (frv_gdbarch_init): Ditto.
6159 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6160 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6161 * i386-tdep.c (i386_gdbarch_init): Ditto.
6162 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6163 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6164 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6165 * mips-tdep.c (mips_gdbarch_init): Ditto.
6166 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6167 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6168 * s390-tdep.c (s390_gdbarch_init): Ditto.
6169 * sh-tdep.c (sh_gdbarch_init): Ditto.
6170 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6171 * v850-tdep.c (v850_gdbarch_init): Ditto.
6172 * vax-tdep.c (vax_gdbarch_init): Ditto.
6173 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6174
ce0c7262
CV
61752003-04-01 Corinna Vinschen <[email protected]>
6176
6177 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6178
73dd234f
AC
61792003-04-01 Andrew Cagney <[email protected]>
6180
6181 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6182 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6183 * gdbarch.h, gdbarch.c: Re-generate.
6184 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6185 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6186 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6187 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6188 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6189 * infcmd.c (run_stack_dummy): Simplify assuming
6190 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6191 * infrun.c (handle_inferior_event): Ditto.
6192 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6193 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6194 * arm-tdep.c (arm_gdbarch_init): Ditto.
6195 * avr-tdep.c (avr_gdbarch_init): Ditto.
6196 * cris-tdep.c (cris_gdbarch_init): Ditto.
6197 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6198 * frv-tdep.c (frv_gdbarch_init): Ditto.
6199 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6200 * i386-tdep.c (i386_gdbarch_init): Ditto.
6201 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6202 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6203 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6204 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6205 * mips-tdep.c (mips_gdbarch_init): Ditto.
6206 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6207 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6208 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6209 * s390-tdep.c (s390_gdbarch_init): Ditto.
6210 * sh-tdep.c (sh_gdbarch_init): Ditto.
6211 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6212 * v850-tdep.c (v850_gdbarch_init): Ditto.
6213 * vax-tdep.c (vax_gdbarch_init): Ditto.
6214 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6215
97606a13
DJ
62162003-04-01 Daniel Jacobowitz <[email protected]>
6217
6218 * symfile.c (symfile_relocate_debug_section): Update call to
6219 bfd_simple_get_relocated_section_contents.
6220
e8ab51f7
AC
62212003-03-31 Andrew Cagney <[email protected]>
6222
6223 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6224 * gdbarch.h, gdbarch.c: Regenerate.
6225 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6226 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6227 available.
6228 * frame.h (generic_fix_call_dummy): Delete declaration.
6229 * dummy-frame.h: Update comment.
6230 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6231 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6232 fix_call_dummy.
6233 * sh-tdep.c (sh_gdbarch_init): Ditto.
6234 * s390-tdep.c (s390_gdbarch_init): Ditto.
6235 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6236 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6237 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6238 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6239 * i386-tdep.c (i386_gdbarch_init): Ditto.
6240 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6241 * frv-tdep.c (frv_gdbarch_init): Ditto.
6242 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6243 * cris-tdep.c (cris_gdbarch_init): Ditto.
6244 * avr-tdep.c (avr_gdbarch_init): Ditto.
6245 * arm-tdep.c (arm_gdbarch_init): Ditto.
6246
018d1b48
JB
62472003-03-31 J. Brobecker <[email protected]>
6248
6249 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6250 (INIT_FRAME_AP): Likewise.
6251 (EXTRA_FRAME_INFO): Likewise.
6252
e9a2674e
AC
62532003-03-31 Andrew Cagney <[email protected]>
6254
6255 * gdbarch.sh: Include "symfile.h".
6256 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6257 * gdbarch.h, gdbarch.c: Re-generate.
6258 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6259 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6260 call_dummy_address, the default is at entry_point_address.
6261 * v850-tdep.c (v850_gdbarch_init): Ditto.
6262 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6263 * sh-tdep.c (sh_gdbarch_init): Ditto.
6264 * s390-tdep.c (s390_gdbarch_init): Ditto.
6265 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6266 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6267 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6268 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6269 * i386-tdep.c (i386_gdbarch_init): Ditto.
6270 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6271 * frv-tdep.c (frv_gdbarch_init): Ditto.
6272 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6273 * cris-tdep.c (cris_gdbarch_init): Ditto.
6274 * arm-tdep.c (arm_gdbarch_init): Ditto.
6275
e8a8712a
AC
62762003-03-31 Andrew Cagney <[email protected]>
6277
6278 * gdbarch.sh (CALL_DUMMY_P): Delete.
6279 * gdbarch.h, gdbarch.c: Re-generate.
6280 * inferior.h (CALL_DUMMY_P): Delete macro.
6281 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6282 * vax-tdep.c (vax_gdbarch_init): Update.
6283 * v850-tdep.c (v850_gdbarch_init): Update.
6284 * sparc-tdep.c (sparc_gdbarch_init): Update.
6285 * sh-tdep.c (sh_gdbarch_init): Update.
6286 * s390-tdep.c (s390_gdbarch_init): Update.
6287 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6288 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6289 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6290 * mips-tdep.c (mips_gdbarch_init): Update.
6291 * mcore-tdep.c (mcore_gdbarch_init): Update.
6292 * m68k-tdep.c (m68k_gdbarch_init): Update.
6293 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6294 * ia64-tdep.c (ia64_gdbarch_init): Update.
6295 * i386-tdep.c (i386_gdbarch_init): Update.
6296 * h8300-tdep.c (h8300_gdbarch_init): Update.
6297 * frv-tdep.c (frv_gdbarch_init): Update.
6298 * d10v-tdep.c (d10v_gdbarch_init): Update.
6299 * cris-tdep.c (cris_gdbarch_init): Update.
6300 * breakpoint.c (deprecated_frame_in_dummy): Update.
6301 * avr-tdep.c (avr_gdbarch_init): Update.
6302 * alpha-tdep.c (alpha_gdbarch_init): Update.
6303 * arm-tdep.c (arm_gdbarch_init): Update.
6304 * dummy-frame.c (dummy_frame_this_id): Update comments.
6305 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6306 * frame.c (legacy_get_prev_frame): Ditto.
6307 * valops.c (call_function_by_hand): Delete function.
6308 (hand_function_call): Rename to call_function_by_hand
6309
ed234cf8
AC
63102003-03-30 Andrew Cagney <[email protected]>
6311
6312 2002-11-10 Klee Dienes <[email protected]>
fbe586ae 6313 * value.h (struct value): Update comment.
ed234cf8 6314
06c77151
AC
63152003-03-30 Andrew Cagney <[email protected]>
6316
6c2b5168
AC
6317 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6318 D10V_FP_REGNUM.
6319 (d10v_gdbarch_init): Do not set fp_regnum.
6320
06c77151
AC
6321 * frame.c (get_frame_base): Force ID initialization.
6322 (get_prev_frame): Move computation of the frame ID from here ...
6323 (get_frame_id): ... to here.
6324 (legacy_get_prev_frame): Mark the frame ID as valid.
6325 * frame.h (struct frame_info): Add field "id_p".
6326
97a1a11c
MK
63272003-03-30 Mark Kettenis <[email protected]>
6328
6329 * i386-tdep.c (i386_store_struct_return): Removed.
6330 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6331
6c0e89ed
AC
63322003-03-30 Andrew Cagney <[email protected]>
6333
6334 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6335 * gdbarch.h, gdbarch.c: Regenerate.
6336 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6337 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6338 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6339 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6340 * i386-tdep.c (i386_gdbarch_init): Ditto.
6341 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6342 * cris-tdep.c (cris_gdbarch_init): Ditto.
6343 * vax-tdep.c (vax_gdbarch_init): Ditto.
6344 * s390-tdep.c (s390_gdbarch_init): Ditto.
6345 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6346 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6347 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6348 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6349 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6350 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6351 * sparc-tdep.c (sparc_gdbarch_init): Update.
6352 * sh-tdep.c (sh_gdbarch_init): Update.
6353 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6354 * mips-tdep.c (mips_gdbarch_init): Update.
6355 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6356 * ia64-tdep.c (ia64_gdbarch_init): Update.
6357 * frv-tdep.c (frv_gdbarch_init): Update.
6358 * avr-tdep.c (avr_gdbarch_init): Update.
6359 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
6360 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
6361 instead of when push_dummy_call is not available.
8ffd9b1b 6362
f7dd6af2
AC
63632003-03-30 Andrew Cagney <[email protected]>
6364
6365 * infttrace.c: Include "gdbthread.h".
6366 (parent_attach_all): Fix function signature.
6367 (call_ptrace): Update call.
6368 * Makefile.in (infttrace.o): Update dependencies.
6369
28f617b3
AC
63702003-03-30 Andrew Cagney <[email protected]>
6371
6372 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
6373 PUSH_RETURN_ADDRESS.
6374 * gdbarch.h, gdbarch.c: Regenerate.
6375 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6376 * x86-64-tdep.c (x86_64_init_abi): Update.
6377 * v850-tdep.c (v850_gdbarch_init): Update.
6378 * sparc-tdep.c (sparc_gdbarch_init): Update.
6379 * sh-tdep.c (sh_gdbarch_init): Update.
6380 * s390-tdep.c (s390_gdbarch_init): Update.
6381 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6382 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6383 * mips-tdep.c (mips_gdbarch_init): Update.
6384 * mcore-tdep.c (mcore_gdbarch_init): Update.
6385 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6386 * ia64-tdep.c (ia64_gdbarch_init): Update.
6387 * i386-tdep.c (i386_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 * valops.c (hand_function_call): Update.
6394
4d628cd7
AC
63952003-03-29 Andrew Cagney <[email protected]>
6396
6397 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
6398 sizeof_call_dummy_words.
6399 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
6400 define.
6401 * gdbarch.h: Regenerate.
8ffd9b1b 6402
65e82032
AC
64032003-03-29 Andrew Cagney <[email protected]>
6404
6405 * infttrace.h: New file.
6406 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
6407 (hpread_get_textlow): Detect an uninitialized dn_bufp.
6408 (hpread_read_doc_function_type): Detect an initialized type1.
6409 (hpread_quick_traverse): Initialize mod_name_string.
6410 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
6411 (som_solib_get_solib_by_pc): Declare.
6412 (so_lib_thread_start_addr): Declare.
6413 (no_shared_libraries): Declare.
6414 * somread.c (init_import_symbols): Make static. Add forward
6415 declaration.
6416 * config/pa/nm-hppah.h: Include "infttrace.h" for
6417 parent_attach_all.
6418 (hppa_insert_hw_watchpoint): Declare.
6419 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
6420 * hppah-nat.c: Include "gdb_string.h".
6421 (parent_attach_all): Delete extern declaration, moved to
6422 "infttrace.h".
6423 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
6424 int.
6425 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
6426 * Makefile.in (infttrace_h): Define.
6427 (hpread.o): Update dependencies.
6428 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
6429 * hppa-hpux-tdep.c: Include "gdb_string.h".
6430 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
6431 * infrun.c (handle_inferior_event): Always initialize
6432 stepped_after_stopped_by_watchpoint. Add default and remove
6433 fallthrough in switch statement.
6434 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
6435 parameter to int.
6436 (hppa_remove_hw_watchpoint): Ditto.
6437
2c3bbe77
AC
64382003-03-29 Andrew Cagney <[email protected]>
6439
6440 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
6441 offset.
6442
2dd604e7
RE
64432003-03-29 Richard Earnshaw <[email protected]>
6444
6445 * arm-tdep.c (arm_push_arguments): Delete.
6446 (struct stack_item): New type.
6447 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
6448 (arm_store_struct_return): Delte.
6449 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
6450 arm_push_arguments or arm_store_struct_return.
6451
e8933a55
AC
64522003-03-28 Andrew Cagney <[email protected]>
6453
6454 * Makefile.in (d10v-tdep.o): Update dependencies.
6455 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
6456 * d10v-tdep.c: Include "remote.h".
6457 (target_resume_hook): Delete extern declaration.
6458 (target_wait_loop_hook): Ditto.
6459 (tdisassemble_command): Eliminate assignment in "if" conditional.
6460 (d10v_ts2_register_sim_regno): Eliminate call to
6461 legacy_register_sim_regno.
6462 (d10v_ts3_register_sim_regno): Ditto.
6463
6949171e
JJ
64642003-03-28 Jeff Johnston <[email protected]>
6465
6466 * thread.c: Reindented.
6467 * lin-lwp.c: Ditto.
6468 * linux-proc.c: Ditto.
6469
98c7071f
BR
64702003-03-28 Bob Rossi <[email protected]>
6471
fbe586ae 6472 * MAINTAINERS (write after approval): Add myself.
98c7071f 6473
5edc9ca6
TR
64742003-03-27 Theodore A. Roth <[email protected]>
6475
6476 * objc-exp.y: Add missing semi-colons.
6477
378bfd1b
AC
64782003-03-27 Andrew Cagney <[email protected]>
6479
6480 * regcache.c (write_sp): Delete function and references.
6481 * inferior.h (write_sp): Delete declaration.
6482 * valops.c (hand_function_call): Replace write_sp with
6483 TARGET_WRITE_SP.
6484 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
6485 (sparc_pop_frame): Ditto.
8ffd9b1b 6486
56056df7
AC
64872003-03-27 Andrew Cagney <[email protected]>
6488
6489 * NEWS: Mention removal of support for hppa*-*-bsd* and
6490 hppa*-*-osf* natives, and hppa*-*-pro* target.
6491 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
6492 * config/pa/xm-pa.h: Obsolete file.
6493 * config/pa/xm-hppab.h: Obsolete file.
6494 * config/pa/nm-hppab.h: Obsolete file.
6495 * config/pa/tm-hppab.h: Obsolete file.
6496 * config/pa/tm-hppao.h: Obsolete file.
6497 * config/pa/nm-hppao.h: Obsolete file.
6498 * config/pa/tm-pro.h: Obsolete file.
6499 * config/pa/hppaosf.mt: Obsolete file.
6500 * config/pa/hppaosf.mh: Obsolete file.
6501 * config/pa/hppapro.mt: Obsolete file.
6502 * config/pa/hppabsd.mt: Obsolete file.
6503 * config/pa/hppabsd.mh: Obsolete file.
6504 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
6505 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
6506 hppa*-*-osf*.
6507
5873a88d
AC
65082003-03-27 Andrew Cagney <[email protected]>
6509
6510 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
6511 push_arguments. Don't set push_return_address or write_sp.
6512 (d10v_push_dummy_call): Replace d10v_push_arguments.
6513 (d10v_push_return_address, d10v_write_sp): Delete function,
6514 handled by push_dummy_call.
6515
b81774d8
AC
65162003-03-26 Andrew Cagney <[email protected]>
6517
6518 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
6519 (push_dummy_call): New pure multi-arch replacement with gdbarch,
6520 regcache and dummy_addr parameters.
6521 * gdbarch.h, gdbarch.c: Re-generate.
6522 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
6523 available; assume it will handle stack alignment and return
6524 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
6525 legacy_push_arguments.
6526 (legacy_push_arguments): Rename default_push_arguments.
6527 * value.h (legacy_push_arguments): Rename default_push_arguments.
6528 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
6529 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6530 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6531 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6532 * config/i386/tm-symmetry.h: Update.
6533 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6534 * x86-64-tdep.c (x86_64_init_abi): Update.
6535 * v850-tdep.c (v850_gdbarch_init): Update.
6536 * sparc-tdep.c (sparc_gdbarch_init): Update.
6537 * sh-tdep.c (sh_gdbarch_init): Update.
6538 * s390-tdep.c (s390_gdbarch_init): Update.
6539 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6540 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6541 * mips-tdep.c (mips_gdbarch_init): Update.
6542 * mcore-tdep.c (mcore_gdbarch_init): Update.
6543 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6544 * ia64-tdep.c (ia64_gdbarch_init): Update.
6545 * i386-tdep.c (i386_gdbarch_init): Update.
6546 * hppa-tdep.c (hppa_gdbarch_init): Update.
6547 * h8300-tdep.c (h8300_gdbarch_init): Update.
6548 * frv-tdep.c (frv_gdbarch_init): Update.
6549 * d10v-tdep.c (d10v_gdbarch_init): Update.
6550 * cris-tdep.c (cris_gdbarch_init): Update.
6551 * avr-tdep.c (avr_gdbarch_init): Update.
6552 * arm-tdep.c (arm_gdbarch_init): Update.
6553 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6554 * alpha-tdep.c (alpha_gdbarch_init): Update.
6555
f541410f
DJ
65562003-03-26 Daniel Jacobowitz <[email protected]>
6557
6558 * signals/signals.c (do_target_signal_to_host): Correct realtime
6559 signal range test.
6560
69f567ae
DJ
65612003-03-26 Daniel Jacobowitz <[email protected]>
6562
6563 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
6564 (struct sal_chain, map_catch_names): Remove.
6565 (catch_exception_command_1): Don't call
6566 handle_gnu_4_16_catch_command.
6567
d5d14a5a
DJ
65682003-03-26 Daniel Jacobowitz <[email protected]>
6569
6570 From Mark Dettinger <[email protected]>:
6571 * dwarf2cfi.c (read_2u): Increment pointer by two.
6572
bdd73e22
DJ
65732003-03-26 Daniel Jacobowitz <[email protected]>
6574
6575 * signals/signals.c: Fix typos in last change.
6576
960cb555
DJ
65772003-03-26 Daniel Jacobowitz <[email protected]>
6578
6579 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
6580 not already defined. Use __SIGRTMIN if available.
6581 (target_signal_from_host): Remove SIGRTMIN block.
6582 (do_target_signal_to_host): Remove SIGRTMIN block; check that
6583 the signal is within the realtime range.
6584
f636b87d
AF
65852003-03-25 Adam Fedor <[email protected]>
6586
6587 * Makefile.in (infrun.o): Add $(language_h)
6588 * infrun.c (handle_inferior_event): Use skip_language_trampoline
6589 for language specific trampolines.
6590 * language.h (struct language_defn): Add skip_trampoline.
6591 (skip_language_trampoline): Declare.
6592 * language.c (unk_lang_trampoline, skip_language_trampoline):
6593 New functions.
6594 (unknown_language_defn, auto_language_defn, local_language_defn):
6595 Add ukn_lang_trampoline.
6596 * ada-lang.c (ada_language_defn): Add NULL for language
6597 specific skip_trampoline.
6598 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
6599 scm-lang.c: Likewise.
6600 * objc-lang.c (objc_skip_trampoline): New function.
6601 (objc_language_defn): Add objc_skip_trampoline.
6602
28f617b3 66032003-03-25 Andrew Cagney <[email protected]>
270c3b1d
AC
6604
6605 * frame.c (get_prev_frame): Delay validating a frame's ID -
6606 non-NULL, didn't go backwards - until an attempt to unwind it to
6607 the previous frame.
6608
f933a9c5
AC
66092003-03-25 Andrew Cagney <[email protected]>
6610
6611 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
6612 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
6613 * gdbarch.h, gdbarch.c: Re-generate.
6614 * config/sparc/tm-sparc.h
6615 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
6616 * sparc-tdep.c (sparc_gdbarch_init): Set
6617 deprecated_extra_stack_alignment_needed.
6618 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
6619 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
6620 extra_stack_alignment_needed.
6621 * v850-tdep.c (v850_gdbarch_init): Ditto.
6622 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6623 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6624 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6625 * cris-tdep.c (cris_gdbarch_init): Ditto.
6626 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6627 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 6628
4183d812
AC
66292003-03-25 Andrew Cagney <[email protected]>
6630
6631 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
6632 STORE_STRUCT_RETURN.
6633 * gdbarch.h, gdbarch.c: Regenerate.
6634 * d10v-tdep.c (d10v_store_struct_return): Delete function.
6635 (d10v_push_arguments): Set the struct return register.
6636 (d10v_gdbarch_init): Update.
6637 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6638 * x86-64-tdep.c (x86_64_init_abi): Update.
6639 * vax-tdep.c (vax_gdbarch_init): Update.
6640 * v850-tdep.c (v850_gdbarch_init): Update.
6641 * sparc-tdep.c (sparc_gdbarch_init): Update.
6642 * sh-tdep.c (sh_gdbarch_init): Update.
6643 * s390-tdep.c (s390_gdbarch_init): Update.
6644 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6645 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6646 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6647 * mips-tdep.c (mips_gdbarch_init): Update.
6648 * mcore-tdep.c (mcore_gdbarch_init): Update.
6649 * m68k-tdep.c (m68k_gdbarch_init): Update.
6650 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6651 * ia64-tdep.c (ia64_gdbarch_init): Update.
6652 * i386-tdep.c (i386_gdbarch_init): Update.
6653 * hppa-tdep.c (hppa_gdbarch_init): Update.
6654 * h8300-tdep.c (h8300_gdbarch_init): Update.
6655 * frv-tdep.c (frv_gdbarch_init): Update.
6656 * cris-tdep.c (cris_gdbarch_init): Update.
6657 * avr-tdep.c (avr_gdbarch_init): Update.
6658 * arm-tdep.c (arm_gdbarch_init): Update.
6659 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 6660
1bf6d5cc
AC
66612003-03-25 Andrew Cagney <[email protected]>
6662
6663 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
6664 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
6665 CALL_DUMMY_STACK_ADJUST with a predicate variable.
6666 * gdbarch.h, gdbarch.c: Regenerate.
6667 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6668 call_dummy_stack_adjust_p.
6669 * vax-tdep.c (vax_gdbarch_init): Ditto.
6670 * v850-tdep.c (v850_gdbarch_init): Ditto.
6671 * sh-tdep.c (sh_gdbarch_init): Ditto.
6672 * s390-tdep.c (s390_gdbarch_init): Ditto.
6673 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6674 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6675 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6676 * mips-tdep.c (mips_gdbarch_init): Ditto.
6677 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6678 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6679 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6680 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6681 * i386-tdep.c (i386_gdbarch_init): Ditto.
6682 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6683 * frv-tdep.c (frv_gdbarch_init): Ditto.
6684 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6685 * cris-tdep.c (cris_gdbarch_init): Ditto.
6686 * avr-tdep.c (avr_gdbarch_init): Ditto.
6687 * arm-tdep.c (arm_gdbarch_init): Ditto.
6688 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6689 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6690 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
6691 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6692 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
6693 call_dummy_stack_adjust_p.
6694 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
6695 (CALL_DUMMY_STACK_ADJUST): Delete macro.
6696 * sparc-tdep.c (sparc32_push_arguments): Update.
6697 * valops.c (hand_function_call): Update.
6698
71c08af0
CV
66992003-03-25 Corinna Vinschen <[email protected]>
6700
6701 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
6702 set_gdbarch_char_signed.
6703
30757f90
RE
67042003-03-25 Richard Earnshaw <[email protected]>
6705
6706 PR cli/548
6707 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
6708
03d48a7d
RE
67092003-03-25 Richard Earnshaw <[email protected]>
6710
6711 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
6712 (_initialize_arm_tdep): Don't set tm_print_insn.
6713
2cf6873c
AF
67142003-03-24 Adam Fedor <[email protected]>
6715
6716 * Makefile.in (YYOBJ): Add objc-exp.tab.o
6717 * objc-lang.h: Add multiple inclusion protection.
6718 (start_msglist, add_msglist, end_msglist): Additional declarations.
6719
17c0759e
RE
67202003-03-24 Richard Earnshaw <[email protected]>
6721
6722 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
6723 value was renamed to ARM_FLOAT_SOFT_FPA.
6724
618ce49f
AC
67252003-03-23 Andrew Cagney <[email protected]>
6726
6727 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
6728 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
6729 * gdbarch.h, gdbarch.c: Regenerate.
6730 * valops.c (hand_function_call): Update.
6731 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6732 * frame.c (legacy_saved_regs_this_id): Update.
6733 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
6734 * dummy-frame.h: Update.
6735 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
6736 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6737 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
6738 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
6739 * config/m68k/tm-sun3.h: Update.
6740 * blockframe.c (inside_main_func, frame_chain_valid): Update.
6741 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6742 * x86-64-tdep.c (x86_64_init_abi): Update.
6743 * vax-tdep.c (vax_gdbarch_init): Update.
6744 * v850-tdep.c (v850_gdbarch_init): Update.
6745 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
6746 * sh-tdep.c (sh_gdbarch_init): Update.
6747 * s390-tdep.c (s390_gdbarch_init): Update.
6748 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
6749 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
6750 (frame_get_saved_regs): Update.
6751 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6752 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6753 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6754 * mips-tdep.c (mips_gdbarch_init): Update.
6755 * mcore-tdep.c (mcore_gdbarch_init): Update.
6756 * m68k-tdep.c (m68k_gdbarch_init): Update.
6757 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6758 * ia64-tdep.c (ia64_gdbarch_init): Update.
6759 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
6760 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6761 (i386_interix_back_one_frame): Update.
6762 * hppa-tdep.c (hppa_gdbarch_init): Update.
6763 (hppa_init_extra_frame_info): Update.
6764 * h8300-tdep.c (h8300_gdbarch_init): Update.
6765 * frv-tdep.c (frv_gdbarch_init): Update.
6766 * cris-tdep.c (cris_gdbarch_init): Update.
6767 * avr-tdep.c (avr_gdbarch_init): Update.
6768 * arm-tdep.c (arm_gdbarch_init): Update.
6769 * alpha-tdep.c (alpha_gdbarch_init): Update.
6770
fd50bc42
RE
67712003-03-22 Richard Earnshaw <[email protected]>
6772
6773 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
6774 (arm_get_fp_model): Declare.
6775 * arm-tdep.c (fp_model_strings): New string array.
6776 (arm_fp_model, current_fp_model): New variables.
6777 (arm_get_fp_model): New function.
6778 (arm_set_fp): New function.
6779 (set_fp_model_sfunc): New function.
6780 (show_fp_model): New function.
6781 (_initialize_arm_tdep): Add new command to set/show the FPU.
6782 (arm_extract_return_value): Use arm_get_fp_model.
6783 (arm_store_return_value): Likewise.
6784 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
6785 to initialize the floating-point data types.
6786 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
6787 model is FPA.
6788
26304000
RE
67892003-03-22 Richard Earnshaw <[email protected]>
6790
6791 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
6792 the current setting of each value.
6793 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 6794 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
6795 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
6796 commands and add new version as subcommands of "set/show arm".
6797
afd7eef0
RE
67982003-03-22 Richard Earnshaw <[email protected]>
6799
6800 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
6801 (set_arm_command, show_arm_command): New functions.
6802 (_initialize_arm_tdep): Add them.
6803 (num_disassembly_options): Renamed from num_flavor_options.
6804 (valid_disassembly_styles): Renamed from valid_flavors.
6805 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 6806 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
6807 set_disassembly_flavor_sfunc.
6808 (set_disassembly_style): Renamed from set_disassembly_flavor.
6809 (arm_othernames): Updated.
6810 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
6811 command. Add "set/show arm disassembly" commands. Deprecate
6812 "othernames" command.
6813
299a7944
RE
68142003-03-22 Richard Earnshaw <[email protected]>
6815
6816 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
6817 (arm-tdep.o): Depend on elf_arm_h.
6818
c1dac9e6
RE
68192003-03-22 Richard Earnshaw <[email protected]>
6820
6821 * Makefile.in (coff_internal_h): Define.
6822 (arm-tdep.o): Update dependencies.
6823
2702d96c
RE
68242003-03-22 Richard Earnshaw <[email protected]>
6825
6826 * arm-tdep.c (prologue_cache): Delete.
6827 (check_prologue_cache, save_prologue_cache): Delete.
6828 (arm_scan_prologue): Don't check or update the prologue_cache.
6829 (arm_gdb_arch_init): Don't initialize it.
6830 (_initialize_arm_tdep): Likewise.
6831
27d5d74b
SC
68322003-03-21 Stephane Carrez <[email protected]>
6833
6834 * MAINTAINERS (tui): Maintainer of tui code.
6835
1762d96d
CV
68362003-03-21 Corinna Vinschen <[email protected]>
6837
6838 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
6839 (i386-cygwin-tdep.o): Add dependencies.
6840 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
6841 * i386-cygwin-tdep.c: New file.
6842 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
6843 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
6844
4c2e2391
AC
68452003-03-20 Andrew Cagney <[email protected]>
6846
f20d38b7
AC
6847 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
6848 (handle_inferior_event): Remove code calling
6849 DYNAMIC_TRAMPOLINE_NEXTPC.
6850
0022b738
AC
6851 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
6852 already has a full path.
6853
864dbc90
AC
6854 * main.c (gdb_main): Return 1.
6855 (captured_main): Call error to report an invalid interpreter.
6856
4c2e2391
AC
6857 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6858 * alpha-osf1-tdep.c: Include "gdb_string.h".
6859
5ef7553b
JB
68602003-03-19 J. Brobecker <[email protected]>
6861
6862 Continuing work to convert the hppa targets to multiarch partial.
6863
6864 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
6865 method, now that hppa_push_dummy_frame has a conformant prototype.
6866 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
6867 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
6868 for the switch to multiarch partial.
6869
7bde8967
KB
68702003-03-19 Kevin Buettner <[email protected]>
6871
6872 * mdebugread.c (parse_symbol): For stEnd, we're done counting
6873 when iss is issNull.
6874
b006a9e9
KB
68752003-03-18 Kevin Buettner <[email protected]>
6876
6877 * mips-tdep.c (mips_register_name): Fix fencepost error involving
6878 NUM_REGS bounds check.
6879
5e2e9765
KB
68802003-03-18 Kevin Buettner <[email protected]>
6881
6882 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
6883 * mips-tdep.c (gdb_assert.h): Include.
6884 (mips_generic_reg_names, mips_processor_reg_names): Make static.
6885 (mips_register_name): Handle integer registers explicitly. Add
6886 bounds checking.
6887 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
6888 (mips_lsi33k_reg_names): Don't list integer registers; they're
6889 handled by mips_register_name() now.
6890 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
6891 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
6892 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
6893 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
6894 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
6895
a2867626
AC
68962003-03-18 Andrew Cagney <[email protected]>
6897
6898 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
6899 a void pointer.
6900 * gdbtypes.h (print_scalar_formatted): Update declaration.
6901 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
6902
06600e06
JB
69032003-03-18 J. Brobecker <[email protected]>
6904
6905 * infrun.c (observer.h): Add #include.
6906 (normal_stop): Add call to observer_notify_normal_stop.
6907 * Makefile.in (infrun.o): Add dependency on observer.h.
6908
7daf4f5b
JB
69092003-03-18 J. Brobecker <[email protected]>
6910
6911 Continuing work to convert the hppa targets to multiarch partial.
6912 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
6913 parameter. Reformat comment.
6914 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
6915 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
6916 to match new profile.
6917
3371ccc0
JB
69182003-03-18 J. Brobecker <[email protected]>
6919
6920 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
6921 appear to be working in any case.
6922
4fbe891e
JB
69232003-03-18 J. Brobecker <[email protected]>
6924
6925 * observer.c (observer_test_first_observer): New static variable.
6926 (observer_test_second_observer): Likewise.
6927 (observer_test_third_observer): Likewise.
6928 (observer_test_first_notification_function): New static function.
6929 (observer_test_second_notification_function): Likewise.
6930 (observer_test_third_notification_function): Likewise.
6931
a7ff40e7
JB
69322003-03-17 J. Brobecker <[email protected]>
6933
6934 * hppa-tdep.c (gdb_assert.h): Add missing #include.
6935 * somsolib.c (gdb_assert.h): Likewise.
6936 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
6937 (somsolib.o): Likewise.
6938
26ca4152
AC
69392003-03-17 Andrew Cagney <[email protected]>
6940
6941 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
6942 BFD. Simplify setting of di.endian.
6943
0a613259
AC
69442003-03-17 Andrew Cagney <[email protected]>
6945
6946 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
6947 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
6948
6949 From Elena Zannoni <[email protected]>
6950 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
6951 vector and floating-point parameters.
6952 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
6953 convention.
6954 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
6955
1132738f
FN
69562003-03-17 Fernando Nasser <[email protected]>
6957
6958 * MAINTAINERS: Remove my name from several maintainership roles.
6959
6dc42492
AC
69602003-03-17 Andrew Cagney <[email protected]>
6961
6962 Fix frame off-by-one bug.
6963 * frame-unwind.h (frame_this_id_ftype): Replace
6964 frame_unwind_id_ftype.
6965 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
6966 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
6967 with "prev_register".
6968 * frame-unwind.c (frame_unwind_find_by_pc): Return
6969 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
6970 comment.
6971 * dummy-frame.c (cached_find_dummy_frame): Delete function.
6972 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
6973 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
6974 (dummy_frame_unwind): Update.
6975 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6976 sentinel_frame_register_unwind.
6977 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
6978 (sentinel_frame_unwinder): Update.
6979 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
6980 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
6981 * frame.c (create_sentinel_frame): Update. Initialize
6982 "prologue_cache" instead of "unwind_cache".
6983 (frame_register_unwind): Call this frame's prev_register with the
6984 next frame and this frame's prologue cache.
6985 (get_prev_frame): Simplify. Always call prev frame's this_id with
6986 this frame and prev frame's prologue cache. Document that this
6987 call is shifted one to the left when compared to the
6988 frame_register_unwind call.
6989 (legacy_saved_regs_prev_register): Replace
6990 frame_saved_regs_register_unwind.
6991 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
6992 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
6993 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
6994 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
6995 (d10v_frame_unwind): Update.
6996 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
6997 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
6998 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
6999 "saved_regs" with "this_saved_regs".
7000
efd710d6
AC
70012003-03-16 Andrew Cagney <[email protected]>
7002
7003 * frame.c (frame_pop): Don't call target_store_registers. Fix
7004 problem reported by Mark Kettenis.
7005
4e259f09
MK
70062003-03-16 Mark Kettenis <[email protected]>
7007
7008 * i386-tdep.c (i386_register_type): Renamed from
7009 i386_register_virtual_type. Adjust function signature.
7010 (i386_gdbarch_init): Set register_type instead of
7011 deprecated_max_register_raw_size,
7012 deprecated_max_register_virtual_size and register_virtual_type.
7013
055bb976
AC
70142003-03-14 Andrew Cagney <[email protected]>
7015
7016 * frame.c (get_prev_frame): When a legacy frame, always call
7017 legacy_get_prev_frame. Simplify unwind code using assumption that
7018 the unwinder is new.
7019 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7020 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7021 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7022
ac2adee5
AC
70232003-03-14 Andrew Cagney <[email protected]>
7024
7025 * frame.c (get_saved_register): Delete function.
7026 * frame.h (get_saved_register): Delete declaration.
7027 * xstormy16-tdep.c: Update comment.
7028 * regcache.h: Update comments.
7029 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7030 get_saved_register and extract_address, use
7031 frame_read_unsigned_register.
7032 (sparc_frame_saved_pc): Ditto.
7033 (sparc_get_saved_register): Instead of get_saved_register, use
7034 frame_register.
7035 (sparc_pop_frame): Ditto.
7036 * findvar.c: Update comments.
7037 (value_of_register): Call frame_register instead of
7038 get_saved_register.
7039 (value_from_register): Ditto.
7040 * config/sparc/tm-sparc.h: Update comment.
7041 * breakpoint.c: Update comment.
7042
129c1cd6
AC
70432003-03-14 Andrew Cagney <[email protected]>
7044
7045 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7046 GET_SAVED_REGISTER.
7047 * gdbarch.h, gdbarch.c: Re-generate.
7048 * frame.h: Update comments.
7049 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7050 * x86-64-tdep.c (x86_64_init_abi): Update.
7051 * sparc-tdep.c (sparc_gdbarch_init): Update.
7052 * sh-tdep.c (sh_gdbarch_init): Update.
7053 * mips-tdep.c (mips_gdbarch_init): Update.
7054 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7055 * cris-tdep.c (cris_gdbarch_init): Update.
7056 * ia64-tdep.c (ia64_gdbarch_init): Update.
7057 * frame.c (frame_register): Update.
7058 (get_saved_register): Update.
7059 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 7060
749b82f6
AC
70612003-03-13 Andrew Cagney <[email protected]>
7062
7063 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7064 * gdbarch.h, gdbarch.c: Regenerate.
7065 * valops.c (hand_function_call): Update comment.
7066 * stack.c (return_command): Update comment.
7067 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7068 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7069 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7070 * x86-64-tdep.c (x86_64_init_abi): Update.
7071 * vax-tdep.c (vax_gdbarch_init): Update.
7072 * v850-tdep.c (v850_gdbarch_init): Update.
7073 * sparc-tdep.c (sparc_gdbarch_init): Update.
7074 * sh-tdep.c (sh_gdbarch_init): Update.
7075 * s390-tdep.c (s390_gdbarch_init): Update.
7076 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7077 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7078 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7079 * mips-tdep.c (mips_gdbarch_init): Update.
7080 * mcore-tdep.c (mcore_gdbarch_init): Update.
7081 * m68k-tdep.c (m68k_gdbarch_init): Update.
7082 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7083 * ia64-tdep.c (ia64_gdbarch_init): Update.
7084 * i386-tdep.c (i386_gdbarch_init): Update.
7085 * hppa-tdep.c (hppa_gdbarch_init): Update.
7086 * h8300-tdep.c (h8300_gdbarch_init): Update.
7087 * frv-tdep.c (frv_gdbarch_init): Update.
7088 * cris-tdep.c (cris_gdbarch_init): Update.
7089 * avr-tdep.c (avr_gdbarch_init): Update.
7090 * arm-tdep.c (arm_gdbarch_init): Update.
7091 * alpha-tdep.c (alpha_gdbarch_init): Update.
7092
1594fa56
AC
70932003-03-13 Andrew Cagney <[email protected]>
7094
7095 * frame.c (legacy_frame_p): New function.
7096 (get_prev_frame): Use legacy_frame_p.
7097 * frame.h (legacy_frame_p): Declare.
7098
7717fda3
V
70992003-03-13 D. Venkatasubramanian <[email protected]>
7100
fbe586ae 7101 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
7102 listing corrected.
7103
0c67cbe9
V
71042003-03-13 D. Venkatasubramanian <[email protected]>
7105
fbe586ae 7106 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 7107
03febf99
AC
71082003-03-12 Andrew Cagney <[email protected]>
7109
7110 * frame.c (get_prev_frame): Rename the frame parameter to
7111 "this_frame".
7112 (get_next_frame, legacy_get_prev_frame): Ditto.
7113
0a1e1ca1
AC
71142003-03-12 Andrew Cagney <[email protected]>
7115
7116 * frame.c (get_current_frame): Check target_has_registers before
7117 checking target_has_stack.
7118 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7119 instead of deprecated_selected_frame.
7120 * findvar.c (value_of_register): Pass "frame", not
7121 deprecated_selected_frame, to value_of_builtin_reg.
7122
a66a9c23
AC
71232003-03-12 Andrew Cagney <[email protected]>
7124
7125 * regcache.c (regcache_cooked_write_signed): New function.
7126 (regcache_cooked_write_unsigned): New function.
7127 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7128 (regcache_cooked_read_signed): Fix regnum in range assertion.
7129 * regcache.h (regcache_cooked_write_signed): Declare.
7130 (regcache_cooked_write_unsigned): Declare.
7131
8bedc050
AC
71322003-03-12 Andrew Cagney <[email protected]>
7133
7134 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7135 * gdbarch.h, gdbarch.c: Re-generate.
7136 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7137 * x86-64-tdep.h: Update.
7138 * x86-64-tdep.c (x86_64_init_abi): Update.
7139 * v850-tdep.c (v850_gdbarch_init): Update.
7140 * sparc-tdep.c (sparc_gdbarch_init): Update.
7141 * sh-tdep.c (sh_gdbarch_init): Update.
7142 * s390-tdep.c (s390_gdbarch_init): Update.
7143 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7144 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7145 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7146 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7147 * mips-tdep.c (mips_gdbarch_init): Update.
7148 * mcore-tdep.c (mcore_gdbarch_init): Update.
7149 * m68k-tdep.c (m68k_gdbarch_init): Update.
7150 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7151 * ia64-tdep.c (ia64_gdbarch_init): Update.
7152 * i386-tdep.c (i386_gdbarch_init): Update.
7153 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7154 * hppa-tdep.c (hppa_gdbarch_init): Update.
7155 * h8300-tdep.c (h8300_gdbarch_init): Update.
7156 * frv-tdep.c (frv_gdbarch_init): Update.
7157 * cris-tdep.c (cris_gdbarch_init): Update.
7158 * avr-tdep.c (avr_gdbarch_init): Update.
7159 * arm-tdep.c (arm_gdbarch_init): Update.
7160 * alpha-tdep.c (alpha_gdbarch_init): Update.
7161 * sh-tdep.c (sh_init_extra_frame_info): Update.
7162 (sh64_init_extra_frame_info): Update.
7163 * ns32knbsd-nat.c (frame_num_args): Update.
7164 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7165 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7166 (xstormy16_frame_chain_valid): Update.
7167 * vax-tdep.c (vax_saved_pc_after_call): Update.
7168 * v850-tdep.c (v850_frame_chain): Update.
7169 (v850_pop_frame): Update.
7170 (v850_init_extra_frame_info): Update.
7171 * sparc-tdep.c (setup_arbitrary_frame): Update.
7172 * ns32k-tdep.c (umax_frame_num_args): Update.
7173 * s390-tdep.c (s390_pop_frame_regular): Update.
7174 * mn10300-tdep.c (mn10300_frame_chain): Update.
7175 (mn10300_pop_frame_regular): Update.
7176 (mn10300_init_extra_frame_info): Update.
7177 * mips-tdep.c (mips_init_frame_pc_first): Update.
7178 (mips_frame_chain): Update.
7179 (mips_pop_frame): Update.
7180 * mcore-tdep.c (mcore_frame_chain): Update.
7181 (mcore_pop_frame): Update.
7182 (mcore_init_extra_frame_info): Update.
7183 * arch-utils.c (init_frame_pc_default): Update.
7184 * m68k-tdep.c (isi_frame_num_args): Update.
7185 (delta68_frame_num_args): Update.
7186 (news_frame_num_args): Update.
7187 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7188 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7189 (alpha_frame_chain): Update.
7190 (alpha_pop_frame): Update.
7191 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7192 (hppa_init_extra_frame_info): Update.
7193 (hppa_frame_chain): Update.
7194 (hppa_frame_chain_valid): Update.
7195 * cris-tdep.c (cris_init_extra_frame_info): Update.
7196 * avr-tdep.c (avr_init_extra_frame_info): Update.
7197 * arm-tdep.c (arm_frame_chain_valid): Update.
7198 (arm_init_extra_frame_info): Update.
7199 (arm_pop_frame): Update.
7200 * frame.c (frame_pc_unwind): Update.
7201 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7202 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7203 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7204 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7205 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7206 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 7207
7a25a7c1
AC
72082003-03-12 Andrew Cagney <[email protected]>
7209
7210 Eliminate the need for POP_FRAME.
7211 * frame.c (do_frame_unwind_register): New function.
7212 (frame_pop): When no POP_FRAME, pop the frame using register
7213 unwind and a scratch regcache.
7214 (frame_saved_regs_pop): Delete function.
7215 (trad_frame_unwinder): Update.
7216 * d10v-tdep.c (d10v_frame_pop): Delete function.
7217 (d10v_frame_unwind): Update.
7218 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7219 (sentinel_frame_unwinder): Update.
7220 * dummy-frame.c (dummy_frame_pop): Delete function.
7221 (dummy_frame_unwind): Update.
7222 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7223 (struct frame_unwind): Update.
7224
2f38ef89
KB
72252003-03-11 Kevin Buettner <[email protected]>
7226
7227 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7228 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7229 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7230 Do range checks on register number obtained from debugging info.
7231 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7232 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
7233 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7234 mapping function.
7235 (do_fp_register_row): Fix typo which caused double type to be
7236 used when attempting to unpack a float.
7237
552f4abf
JB
72382003-03-11 J. Brobecker <[email protected]>
7239
7240 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7241
e0d2ae16
AC
72422003-03-11 Andrew Cagney <[email protected]>
7243
7244 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7245 frame. Problem found by Corinna Vinschen.
7246
ddbfdd06
PM
72472003-03-11 Pierre Muller <[email protected]>
7248
7249 * doublest.c (floatformat_from_length): Accept also
7250 the real size of 'long double' type.
7251
088b2ddc 72522003-03-10 Daniel Jacobowitz <[email protected]>
31cc81e9 7253
088b2ddc 7254 From Klee Dienes <[email protected]>:
31cc81e9
DJ
7255 * breakpoint.c (bpstat_copy): Copy the command lines as well
7256 as the old value, to match what is freed in bpstat_clear.
7257
f56f77c1
DC
72582003-03-10 David Carlton <[email protected]>
7259
7260 * minsyms.c (add_minsym_to_hash_table): Replace
7261 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7262 (compare_minimal_symbols, compact_minimal_symbols)
7263 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7264 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7265 of DEPRECATED_SYMBOL_MATCHES_NAME.
7266 (lookup_minimal_symbol_solib_trampoline): Ditto.
7267
5602984a
AC
72682003-03-10 Andrew Cagney <[email protected]>
7269
7270 * regcache.h (regcache_cooked_read_ftype): Define.
7271 (regcache_save, regcache_restore): Add a cooked_read parameter.
7272 * regcache.c (regcache_save, regcache_restore): Update.
7273 (do_cooked_read): New function.
7274 (regcache_cpy): Pass do_cooked_read to regcache_save and
7275 regcache_restore.
7276
8bedc050
AC
72772003-03-10 Andrew Cagney <[email protected]>
7278
7279 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7280 * gdbarch.h, gdbarch.c: Re-generate.
7281 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7282 * x86-64-tdep.h: Update.
7283 * x86-64-tdep.c (x86_64_init_abi): Update.
7284 * v850-tdep.c (v850_gdbarch_init): Update.
7285 * sparc-tdep.c (sparc_gdbarch_init): Update.
7286 * sh-tdep.c (sh_gdbarch_init): Update.
7287 * s390-tdep.c (s390_gdbarch_init): Update.
7288 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7289 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7290 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7291 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7292 * mips-tdep.c (mips_gdbarch_init): Update.
7293 * mcore-tdep.c (mcore_gdbarch_init): Update.
7294 * m68k-tdep.c (m68k_gdbarch_init): Update.
7295 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7296 * ia64-tdep.c (ia64_gdbarch_init): Update.
7297 * i386-tdep.c (i386_gdbarch_init): Update.
7298 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7299 * hppa-tdep.c (hppa_gdbarch_init): Update.
7300 * h8300-tdep.c (h8300_gdbarch_init): Update.
7301 * frv-tdep.c (frv_gdbarch_init): Update.
7302 * cris-tdep.c (cris_gdbarch_init): Update.
7303 * avr-tdep.c (avr_gdbarch_init): Update.
7304 * arm-tdep.c (arm_gdbarch_init): Update.
7305 * alpha-tdep.c (alpha_gdbarch_init): Update.
7306 * sh-tdep.c (sh_init_extra_frame_info): Update.
7307 (sh64_init_extra_frame_info): Update.
7308 * ns32knbsd-nat.c (frame_num_args): Update.
7309 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7310 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7311 (xstormy16_frame_chain_valid): Update.
7312 * vax-tdep.c (vax_saved_pc_after_call): Update.
7313 * v850-tdep.c (v850_frame_chain): Update.
7314 (v850_pop_frame): Update.
7315 (v850_init_extra_frame_info): Update.
7316 * sparc-tdep.c (setup_arbitrary_frame): Update.
7317 * ns32k-tdep.c (umax_frame_num_args): Update.
7318 * s390-tdep.c (s390_pop_frame_regular): Update.
7319 * mn10300-tdep.c (mn10300_frame_chain): Update.
7320 (mn10300_pop_frame_regular): Update.
7321 (mn10300_init_extra_frame_info): Update.
7322 * mips-tdep.c (mips_init_frame_pc_first): Update.
7323 (mips_frame_chain): Update.
7324 (mips_pop_frame): Update.
7325 * mcore-tdep.c (mcore_frame_chain): Update.
7326 (mcore_pop_frame): Update.
7327 (mcore_init_extra_frame_info): Update.
7328 * arch-utils.c (init_frame_pc_default): Update.
7329 * m68k-tdep.c (isi_frame_num_args): Update.
7330 (delta68_frame_num_args): Update.
7331 (news_frame_num_args): Update.
7332 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7333 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7334 (alpha_frame_chain): Update.
7335 (alpha_pop_frame): Update.
7336 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7337 (hppa_init_extra_frame_info): Update.
7338 (hppa_frame_chain): Update.
7339 (hppa_frame_chain_valid): Update.
7340 * cris-tdep.c (cris_init_extra_frame_info): Update.
7341 * avr-tdep.c (avr_init_extra_frame_info): Update.
7342 * arm-tdep.c (arm_frame_chain_valid): Update.
7343 (arm_init_extra_frame_info): Update.
7344 (arm_pop_frame): Update.
7345 * frame.c (frame_pc_unwind): Update.
7346 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7347 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7348 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7349 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7350 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7351 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 7352
12cc2063
AC
73532003-03-10 Andrew Cagney <[email protected]>
7354
7355 * gdbarch.sh (gdbarch_unwind_pc): New method.
7356 * gdbarch.h, gdbarch.c: Regenerate.
7357 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
7358 but use read_pc and FRAME_SAVED_PC as fall backs.
7359 (frame_saved_regs_pc_unwind): Delete function.
7360 (trad_frame_unwinder): Update.
7361 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
7362 (struct frame_unwind): Update.
7363 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
7364 (dummy_frame_unwind): Update.
7365 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
7366 (sentinel_frame_unwinder): Update.
7367 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
7368 (d10v_frame_unwind): Update.
7369 (d10v_unwind_pc): New function.
7370 (d10v_gdbarch_init): Set unwind_pc.
7371
ef840a37
AC
73722003-03-10 Andrew Cagney <[email protected]>
7373
a2ce2e56
AC
7374 * gdbarch.h: Re-generate.
7375
ef840a37
AC
7376 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
7377 PC.
7378 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
7379 the PC register.
7380
08f3424b
MK
73812003-03-08 Mark Kettenis <[email protected]>
7382
7383 * gdbarch.sh (save_dummy_frame_tos): Add comment.
7384
1248ede2
AC
73852003-03-08 Andrew Cagney <[email protected]>
7386
7387 * cli-out.c: Update copyright.
7388 (cli_out_data): Define typedef. Use instead of ui_out_data.
7389
f49bacc8
AC
73902003-03-08 Andrew Cagney <[email protected]>
7391
7392 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
7393 the result.
7394
9b05f993
AC
73952003-03-07 Andrew Cagney <[email protected]>
7396
7397 * gdbarch.sh: Don't generate two macro definitions when an
7398 undefined macro taking no arguments.
7399 * gdbarch.h: Regenerate.
8ffd9b1b 7400
166f4c7b
ML
74012002-03-07 Michal Ludvig <[email protected]>
7402
7403 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
7404 (x86_64_unwind_dummy_id): New functions.
7405 (x86_64_init_abi): Register these two new functions.
7406
6d686a84
ML
74072003-03-07 Michal Ludvig <[email protected]>
7408
7409 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 7410 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
7411 separate function.
7412 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
7413
6314f104
AC
74142003-03-05 Andrew Cagney <[email protected]>
7415
7416 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
7417 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
7418 * frame.c (get_prev_frame): Restructure the frame ID unwind code
7419 to use unwind_dummy_id when a dummy frame.
7420 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
7421 predicate.
7422 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 7423
ceea5145
AC
74242003-03-05 Andrew Cagney <[email protected]>
7425
7426 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
7427 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
7428 Do not use d10v_read_sp or d10v_read_fp when obtaining register
7429 values.
7430
0d843116
AC
74312003-03-05 Andrew Cagney <[email protected]>
7432
7433 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
7434 (struct d10v_unwind_cache): Delete field "frameless". Replace
7435 "next_addr" with "sp_offset". Add "r11_offset".
7436 (d10v_frame_unwind_cache): Update.
7437 (prologue_find_regs): Update. When "mv r11, sp", save the
7438 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
7439 RN was saved in r11_offset.
7440
b2579786
AC
74412003-03-05 Andrew Cagney <[email protected]>
7442
7443 * frame.c (deprecated_update_frame_pc_hack): Also update the the
7444 cached PC value in the next frame.
7445
218e5956
AC
74462003-03-05 Andrew Cagney <[email protected]>
7447
7448 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
7449 "id_unwind_cache" with "id".
7450 (frame_id_unwind): Delete declaration.
7451 * frame.c (frame_id_unwind): Delete function.
7452 (get_prev_frame): Call the frame id unwind method directly. Store
7453 the returned next frame's ID value in NEXT_FRAME. Note that there
7454 is a problem with the wrong unwind ID being called with the wrong
7455 unwind cache.
7456
ed363b1b
DJ
74572003-03-05 Daniel Jacobowitz <[email protected]>
7458
7459 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
7460
fe1f4a5e
DJ
74612003-03-05 James Ingham <[email protected]>
7462 Daniel Jacobowitz <[email protected]>
7463
7464 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
7465 (auto_cp_abi): New variable.
7466 (current_cp_abi, num_cp_abis): Make static.
7467 (CP_ABI_MAX): Define.
7468 (cp_abis): Turn into an array.
7469 (value_virtual_fn_field): Fix formatting.
7470 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
7471 takes a pointer.
7472 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
7473 (list_cp_abis, _initialize_cp_abi): New functions.
7474 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
7475 declarations for cp_abis, num_cp_abis, current_cp_abi, and
7476 switch_to_cp_abi. Update prototype for register_cp_abi.
7477 * Makefile.in (cp-abi.o): Update dependencies.
7478 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
7479 instead of switch_to_cp_abi.
7480 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
7481 register_cp_abi.
7482 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
7483 register_cp_abi.
7484 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
7485
e4adbba9
DJ
74862003-03-05 Daniel Jacobowitz <[email protected]>
7487
7488 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
7489 * dwarf2loc.c: Include "regcache.h".
7490 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
7491 register_size.
7492 * Makefile.in (dwarf2loc.o): Update dependencies.
7493
91ccbfc1
TR
74942003-03-04 Theodore A. Roth <[email protected]>
7495
7496 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
7497 number of io registers reported by remote target is not a multiple of
7498 step.
7499
3d4e8fd2
DC
75002003-03-04 David Carlton <[email protected]>
7501
7502 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
7503 (lookup_symbol_aux_psymtabs): Update call to
7504 lookup_partial_symbol.
7505 (lookup_transparent_type, find_main_psymtab)
7506 (make_symbol_overload_list): Ditto.
7507
ed42d87b
KH
75082003-03-04 Kazu Hirata <[email protected]>
7509
7510 * MAINTAINERS (Write after approval): Update my email address.
7511
a0ed5532
AC
75122003-03-03 Andrew Cagney <[email protected]>
7513
7514 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
7515 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
7516 predicate. Replace MAX_REGISTER_RAW_SIZE.
7517 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
7518 MAX_REGISTER_VIRTUAL_SIZE.
7519 * regcache.c (legacy_max_register_raw_size): New function.
7520 (legacy_max_register_virtual_size): New function.
7521 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
7522 (MAX_REGISTER_RAW_SIZE): Define.
7523 (legacy_max_register_raw_size): Declare.
7524 (legacy_max_register_virtual_size): Declare.
7525 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7526 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
7527 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7528 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7529 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7530 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7531 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7532 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7533 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7534 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7535 * vax-tdep.c (vax_gdbarch_init): Update.
7536 * v850-tdep.c (v850_gdbarch_init): Update.
7537 * sparc-tdep.c (sparc_gdbarch_init): Update.
7538 * sh-tdep.c (sh_gdbarch_init): Update.
7539 * s390-tdep.c (s390_gdbarch_init): Update.
7540 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7541 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7542 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7543 * mips-tdep.c (mips_gdbarch_init): Update.
7544 * mcore-tdep.c (mcore_gdbarch_init): Update.
7545 * m68k-tdep.c (m68k_gdbarch_init): Update.
7546 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7547 * ia64-tdep.c (ia64_gdbarch_init): Update.
7548 * i386-tdep.c (i386_gdbarch_init): Update.
7549 * hppa-tdep.c (hppa_gdbarch_init): Update.
7550 * h8300-tdep.c (h8300_gdbarch_init): Update.
7551 * frv-tdep.c (frv_gdbarch_init): Update.
7552 * cris-tdep.c (cris_gdbarch_init): Update.
7553 * avr-tdep.c (avr_gdbarch_init): Update.
7554 * arm-tdep.c (arm_gdbarch_init): Update.
7555 * alpha-tdep.c (alpha_gdbarch_init): Update.
7556 * d10v-tdep.c (d10v_gdbarch_init): Do not set
7557 max_register_raw_size or max_register_virtual_size.
7558
8e437497
DC
75592003-03-03 David Carlton <[email protected]>
7560
7561 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
7562 SYMBOL_MATCHES_NAME, add comment.
7563 (SYMBOL_MATCHES_NATURAL_NAME): New.
7564 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
7565 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
7566 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
7567 * symtab.c (lookup_partial_symbol): Use
7568 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
7569 unhelpful comment.
7570 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
7571 SYMBOL_MATCHES_NAME.
7572 Fix for PR c++/33.
7573
25120b0d
DC
75742003-03-03 David Carlton <[email protected]>
7575
7576 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
7577 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
7578 by regexp matching against SYMBOL_NATURAL_NAME.
7579
78a11fb4
DC
75802003-03-03 David Carlton <[email protected]>
7581
7582 * linespec.c (find_method): Extract code into collect_methods.
7583 (collect_methods): New.
7584
645dd519
MK
75852003-03-02 Mark Kettenis <[email protected]>
7586
b4700d91
MK
7587 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
7588 get_frame_base.
7589
645dd519
MK
7590 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
7591 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7592
0aa7e1aa
SC
75932003-03-02 Stephane Carrez <[email protected]>
7594
8ffd9b1b 7595 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
7596 and not regnum when summing the size of all registers up to regnum.
7597
f30ee0bc
AC
75982003-03-01 Andrew Cagney <[email protected]>
7599
7600 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
7601 FRAME_INIT_SAVED_REGS.
7602 * gdbarch.h, gdbarch.c: Regenerate.
7603 * stack.c (frame_info): Update.
7604 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
7605 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
7606 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
7607 * ns32k-tdep.c (ns32k_pop_frame): Update.
7608 * mips-tdep.c (mips_pop_frame): Update.
7609 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
7610 * ia64-tdep.c (ia64_frame_chain): Update.
7611 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
7612 (ia64_frameless_function_invocation): Update.
7613 (ia64_init_extra_frame_info): Update.
7614 (ia64_pop_frame_regular): Update.
7615 * frame.h (struct frame_info): Update comment.
7616 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
7617 * frame.c (frame_saved_regs_register_unwind): Update.
7618 (frame_saved_regs_register_unwind): Update.
7619 (deprecated_generic_get_saved_register): Update.
7620 * cris-tdep.c: Update comment.
7621 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
7622 Rename macro.
7623 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7624 * x86-64-tdep.c (x86_64_init_abi): Update.
7625 * vax-tdep.c (vax_gdbarch_init): Update.
7626 * v850-tdep.c (v850_gdbarch_init): Update.
7627 * sparc-tdep.c (sparc_gdbarch_init): Update.
7628 * sh-tdep.c (sh_gdbarch_init): Update.
7629 * s390-tdep.c (s390_gdbarch_init): Update.
7630 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7631 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7632 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7633 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7634 * mips-tdep.c (mips_gdbarch_init): Update.
7635 * mcore-tdep.c (mcore_gdbarch_init): Update.
7636 * m68k-tdep.c (m68k_gdbarch_init): Update.
7637 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7638 * ia64-tdep.c (ia64_gdbarch_init): Update.
7639 * i386-tdep.c (i386_gdbarch_init): Update.
7640 * frv-tdep.c (frv_gdbarch_init): Update.
7641 * avr-tdep.c (avr_gdbarch_init): Update.
7642 * arm-tdep.c (arm_gdbarch_init): Update.
7643 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 7644
42fa7c0f
AC
76452003-03-01 Andrew Cagney <[email protected]>
7646
7647 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
7648 option enum and switch. When no windows, set the interpreter to
7649 INTERP_CONSOLE.
8ffd9b1b 7650
49c7e338
AC
76512003-03-01 Andrew Cagney <[email protected]>
7652
7653 * main.c (captured_main): Replace magic option characters with an
7654 enum.
7655
e9582e71
AC
76562003-03-01 Andrew Cagney <[email protected]>
7657
7658 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
7659 INIT_EXTRA_FRAME_INFO.
7660 * gdbarch.h, gdbarch.c: Regenerate.
7661 * arm-tdep.c: Update comments.
7662 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
7663 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
7664 * frame.h, avr-tdep.c: Ditto.
7665 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
7666 (create_new_frame, legacy_get_prev_frame): Ditto.
7667 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7668 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7669 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
7670 deprecated_init_extra_frame_info instead of init_extra_frame_info.
7671 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7672 * v850-tdep.c (v850_gdbarch_init): Ditto.
7673 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7674 * sh-tdep.c (sh_gdbarch_init): Ditto.
7675 * s390-tdep.c (s390_gdbarch_init): Ditto.
7676 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
7677 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7678 * mips-tdep.c (mips_gdbarch_init): Ditto.
7679 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7680 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7681 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7682 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
7683 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7684 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7685 * frv-tdep.c (frv_gdbarch_init): Ditto.
7686 * cris-tdep.c (cris_gdbarch_init): Ditto.
7687 * avr-tdep.c (avr_gdbarch_init): Ditto.
7688 * arm-tdep.c (arm_gdbarch_init): Ditto.
7689 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7690 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7691
35cac7cf
AC
76922003-03-01 Andrew Cagney <[email protected]>
7693
7694 * gdbarch.sh (register_type): New function with predicate.
7695 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
7696 * gdbarch.h, gdbarch.c: Re-generate.
7697 * arch-utils.c (generic_register_byte): Use generic_register_size.
7698 (generic_register_size): When available, use
7699 gdbarch_register_type.
7700 * regcache.c (init_regcache_descr): When available, initialize the
7701 register type array using gdbarch_register_type. If the
7702 architecture supplies gdbarch_register_type, do not use the legacy
7703 regcache layout.
7704 * d10v-tdep.c (d10v_register_type): Replace
7705 d10v_register_virtual_type.
7706 (d10v_gdbarch_init): Set register_type instead of
7707 register_virtual_type.
7708
7b83296f
AC
77092003-03-01 Andrew Cagney <[email protected]>
7710
7711 * Makefile.in (ax-gdb.o): Update dependencies.
7712 * ax-gdb.c: Include "regcache.h".
7713 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
7714 * findvar.c (value_of_register): Ditto.
7715 * infcmd.c (default_print_registers_info): Ditto.
7716
eadc1c87
MK
77172003-03-01 Mark Kettenis <[email protected]>
7718
7719 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
7720 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7721
14143612
MK
77222003-03-01 Mark Kettenis <[email protected]>
7723
7724 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
7725 of STREQ.
7726
a55cc764
DJ
77272003-02-28 Daniel Jacobowitz <[email protected]>
7728
7729 * Makefile.in (dwarf2loc.o): Update dependencies.
7730 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
7731 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
7732 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
7733 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
7734 (locexpr_tracepoint_var_ref): New function.
7735 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
7736
08a617da
AC
77372003-02-28 Andrew Cagney <[email protected]>
7738
7739 * regcache.c (register_size): New function.
7740 * regcache.h (register_size): Declare
7741 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
7742 max_register_size instead of MAX_REGISTER_RAW_SIZE.
7743
4224873a
DC
77442003-02-28 David Carlton <[email protected]>
7745
7746 * linespec.c (decode_compound): Extract code into find_method.
7747 (find_method): New.
7748
ccdc5d7f
JB
77492003-02-28 J. Brobecker <[email protected]>
7750
7751 * Makefile.in: Add rules to build and link in observer.o.
7752
974e8ced
JB
77532003-02-27 J. Brobecker <[email protected]>
7754
7755 * observer.c: Minor comments edits.
7756
7a28f973
JB
77572003-02-27 J. Brobecker <[email protected]>
7758
7759 * observer.h, observer.c: New file.
7760
27cddce2
AC
77612003-02-27 Andrew Cagney <[email protected]>
7762
7763 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
7764
b94a41a1
SC
77652003-02-27 Stephane Carrez <[email protected]>
7766
7767 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
7768 (M6812_OP_STS_EXT): Likewise.
7769 (m6811_prologue): Use the above to recognize prologue.
7770 (m6812_prologue): Likewise.
7771
c8be8951
DC
77722003-02-27 David Carlton <[email protected]>
7773
7774 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
7775 SYMBOL_PRINT_NAME.
7776 (compare_psymbols): Ditto.
7777 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
7778
d05bb1fc
MS
77792003-02-27 Michael Snyder <[email protected]>
7780
4e845cd3
MS
7781 * f-lang.c (build_fortran_types): New function.
7782 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
7783 * doublest.c (extract_floating): Fix warning text.
7784
f3824013
AC
77852003-02-27 Andrew Cagney <[email protected]>
7786
7787 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
7788 predicate. Replaces PUSH_DUMMY_FRAME.
7789 * gdbarch.h, gdbarch.c: Regnerate.
7790 * valops.c (hand_function_call): Update. Call
7791 generic_push_dummy_frame directly.
7792 * vax-tdep.c (vax_gdbarch_init): Update.
7793 * sparc-tdep.c (sparc_gdbarch_init): Update.
7794 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7795 * m68k-tdep.c (m68k_gdbarch_init): Update.
7796 * hppa-tdep.c (hppa_gdbarch_init): Update.
7797 * alpha-tdep.c (alpha_gdbarch_init): Update.
7798 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7799 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7800 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
7801 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
7802 push_dummy_frame to generic_push_dummy_frame.
7803 * v850-tdep.c (v850_gdbarch_init): Ditto.
7804 * sh-tdep.c (sh_gdbarch_init): Ditto.
7805 * s390-tdep.c (s390_gdbarch_init): Ditto.
7806 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7807 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7808 * mips-tdep.c (mips_gdbarch_init): Ditto.
7809 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7810 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7811 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7812 * i386-tdep.c (i386_gdbarch_init): Ditto.
7813 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7814 * frv-tdep.c (frv_gdbarch_init): Ditto.
7815 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7816 * cris-tdep.c (cris_gdbarch_init): Ditto.
7817 * avr-tdep.c (avr_gdbarch_init): Ditto.
7818 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 7819
ad188201
KB
78202003-02-26 Kevin Buettner <[email protected]>
7821
7822 * mips-tdep.c (show_mips_abi): New function.
7823 (_initialize_mips_tdep): Use show_mips_abi() to implement the
7824 command ``show mips abi''.
7825
6b37567a 78262003-02-26 Jeff Johnston <[email protected]>
8ffd9b1b 7827
6b37567a 7828 From Elena Zannoni <[email protected]>
8ffd9b1b 7829 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
7830 more sline entries have been seen for the function.
7831
d3e0a5bf
MC
78322003-02-26 Michael Chastain <[email protected]>
7833
7834 * configure: Regenerate with autoconf 000227.
7835
18972eea
MC
78362003-02-26 Michael Chastain <[email protected]>
7837
7838 Close PR build/660.
7839 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
7840 for old libc5/glibc.
7841 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
7842
0bbde931
KW
78432003-02-26 Kris Warkentin <[email protected]>
7844
7845 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
7846 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
7847
27ca5dad
MC
78482003-02-26 Michael Chastain <[email protected]>
7849
7850 * configure.in: New variable HAVE_UINTPTR_T.
7851 * configure, config.in: Regenerated.
7852
6f88d630
DJ
78532003-02-26 Daniel Jacobowitz <[email protected]>
7854
7855 Fix PR build/1097.
7856 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
7857
b14185ce
AC
78582003-02-25 Andrew Cagney <[email protected]>
7859
7860 * frame.c (get_prev_frame): Add comment on check for
7861 inside_entry_func. Only check for inside_entry_file when not a
7862 dummy and not a sentinel. Check that the new frame is not inner
7863 to the old frame.
7864
ac2bd0a9
AC
78652003-02-25 Andrew Cagney <[email protected]>
7866
7867 * frame.c (frame_debug): New variable.
7868 (_initialize_frame): Add "set/show debug frame" command.
7869 (get_prev_frame): When frame_debug, print reason why unwind
7870 failed.
7871
b18a0fd2
MC
78722003-02-25 Michael Chastain <[email protected]>
7873
7874 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
7875 to avoid uintptr_t definition problems.
7876
22abf04a
DC
78772003-02-25 David Carlton <[email protected]>
7878
7879 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
7880 (SYMBOL_LINKAGE_NAME): Ditto.
7881 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
7882 SYMBOL_LINKAGE_NAME.
7883 (struct general_symbol_info): Expand comment.
7884 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
7885 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
7886 (SYMBOL_MATCHES_REGEXP): Ditto.
7887 * symtab.c (symbol_natural_name): New function.
7888 * objfiles.h: Replace all uses of SYMBOL_NAME by
7889 DEPRECATED_SYMBOL_NAME.
7890 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
7891 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
7892 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
7893 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
7894 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
7895 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
7896 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
7897 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
7898 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
7899 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
7900 * ada-exp.y: Ditto.
7901 * ada-exp.y: Update copyright.
7902 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
7903 * cp-valprint.c: Ditto.
7904
1a5848f6
JJ
79052003-02-25 Jeff Johnston <[email protected]>
7906
7907 * infptrace.c (detach): Do not flag error if ptrace detach fails
7908 and errno is set to ESRCH.
7909
7343d46a
AC
79102003-02-24 Andrew Cagney <[email protected]>
7911
7912 * infptrace.c (udot_info): Change type of udot_off to long. Use
7913 paddr when printing udot_off's value.
7914
49fa1dc2
DC
79152003-02-24 David Carlton <[email protected]>
7916
7917 * symtab.c (make_symbol_overload_list): Only read in partial
7918 symtabs containing a matching partial symbol.
7919
0fe19209
DC
79202003-02-24 David Carlton <[email protected]>
7921
7922 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
7923 do the comparison, not strcmp.
7924 * symfile.c (compare_psymbols): Ditto.
7925 * defs.h: Declare strcmp_iw_ordered.
7926 * utils.c (strcmp_iw_ordered): New function.
7927
8e3ee7b5
JB
79282003-02-24 Jim Blandy <[email protected]>
7929
7930 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
7931 support, shared libs): Remove my name from here, to better reflect
7932 reality.
7933
7df1a324
KW
79342003-02-24 Kris Warkentin <[email protected]>
7935
7936 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
7937 (target_ops): Add to_have_continuable_watchpoint.
7938 * target.c (update_current_target): Add INHERIT line for
7939 to_have_continuable_watchpoint.
7940 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
7941 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
7942 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
7943 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
7944
d1c76907
EZ
79452003-02-24 Elena Zannoni <[email protected]>
7946
7947 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
7948 maintainership.
7949
2610b0bf
KW
79502003-02-24 Kris Warkentin <[email protected]>
7951
f46169db
KW
7952 * solib.c (solib_open): Call target defined search function after
7953 failing with solib-search-path.
7954 * solist.h (target_so_ops): Add find_and_open_solib function hook and
7955 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 7956
9a3c34fe
KW
79572003-02-24 Kris Warkentin <[email protected]>
7958
f46169db 7959 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 7960
2417dd25
SC
79612003-02-23 Stephane Carrez <[email protected]>
7962
7963 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
7964
b631436b
SC
79652003-02-22 Stephane Carrez <[email protected]>
7966
7967 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
7968 (m68hc11_add_reggroups): New function.
7969 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
7970 (m68hc11_gdbarch_init): Install the reggroups.
7971 (_initialize_m68hc11_tdep): Initialize them.
7972
0aa8c1e4
JW
79732003-02-21 James E Wilson <[email protected]>
7974
7975 * MAINTAINERS: Update my email address.
7976
50ceaba5
DC
79772003-02-21 David Carlton <[email protected]>
7978
7979 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
7980
4c2df51b
DJ
79812003-02-21 Daniel Jacobowitz <[email protected]>
7982
7983 Based on a patch from Daniel Berlin ([email protected]).
7984 * symtab.h: Add opaque declarations of struct axs_value and
7985 struct agent_expr.
7986 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
7987 (struct location_funcs): New type.
7988 (struct symbol): Add "loc" to aux_value.
7989 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
7990 * dwarf2read.c: Include "dwarf2expr.h".
7991 (dwarf2_symbol_mark_computed): New function.
7992 (read_func_scope): Use it.
7993 (var_decode_location): New function.
7994 (new_symbol): Use it.
7995 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
7996
7997 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
7998 (dwarf2expr_h, dwarf2loc_h): New variables.
7999 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8000 (dwarf2expr.o, dwarf2loc.o): New rules.
8001 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8002 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8003 LOC_COMPUTED_ARG.
8004 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8005 * m2-exp.y (yylex): Likewise.
8006 * printcmd.c (address_info, print_frame_args): Likewise.
8007 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8008 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8009 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8010 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8011 * symtab.c (lookup_block_symbol): Likewise.
8012
5784d15e
AF
80132003-02-20 Adam Fedor <[email protected]>
8014
8015 * symtab.h: Remove objc_specific struct
8016 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8017 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8018 Have language_objc use cplus_specific struct.
8019
d4cad8db
TT
80202003-02-20 Tom Tromey <[email protected]>
8021
8022 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8023 TYPE_NAME, when printing a String value. PR java/1075.
8024
2f9a90b4
AF
80252003-02-20 Adam Fedor <[email protected]>
8026
d38074a8 8027 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 8028 * objc-lang.c (find_methods): Make static.
2f9a90b4 8029
6f17862b
CF
80302003-02-20 Christopher Faylor <[email protected]>
8031
8032 * win32-nat.c (get_image_name): Check return value from
8033 ReadProcessMemory.
8034 (child_xfer_memory): Ditto.
8035
715d1656
AO
80362003-02-20 Alexandre Oliva <[email protected]>
8037
8038 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8039 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8040 '${exec_prefix}' (in addition to the expansion thereof) as
8041 relocatable.
8042 * configure: Rebuilt.
8043
b1262a02
DC
80442003-02-20 David Carlton <[email protected]>
8045
8046 * symtab.c (search_symbols): Revert the search_symbols part of my
8047 2002-12-23 patch. Add comment.
8048
7134143f
DJ
80492002-02-20 Daniel Jacobowitz <[email protected]>
8050
8051 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8052 * dbxread.c (elfstab_build_psymtabs): Don't call
8053 install_minimal_symbols.
8054 (stabsect_build_psymtabs): Likewise.
8055 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8056 earlier.
8057 * somread.c (som_symfile_read): Call install_minimal_symbols
8058 and do_cleanups earlier.
8059 * nlmread.c (nlm_symfile_read): Likewise.
8060 * mdebugread.c (elfmdebug_build_psymtabs): Call
8061 install_minimal_symbols and make appropriate cleanups.
8062
cf466558
KB
80632003-02-20 Kevin Buettner <[email protected]>
8064
8065 * solib.c (reload_shared_libraries): New function.
8066 (_initialize_solib): Add callbacks for ``set solib-search-path''
8067 and ``set solib-absolute-prefix''.
8068
de5ad195
DC
80692003-02-20 David Carlton <[email protected]>
8070
8071 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8072 expand comment.
8073 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8074 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8075 * ada-typeprint.c (ada_typedef_print): Ditto.
8076 * ax-gdb.c (gen_var_ref): Ditto.
8077 * breakpoint.c (print_one_breakpoint): Ditto.
8078 * buildsym.c (finish_block): Ditto.
8079 * c-valprint.c (c_val_print): Ditto.
8080 * expprint.c (print_subexp): Ditto.
8081 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
8082 * infcmd.c (jump_command): Ditto.
8083 * linespec.c (decode_line_2, decode_compound): Ditto.
8084 * maint.c (maintenance_translate_address): Ditto.
8085 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
8086 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8087 Ditto.
8ffd9b1b
AJ
8088 * p-valprint.c (pascal_val_print): Ditto.
8089 * stabsread.c (define_symbol): Ditto.
de5ad195 8090 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
8091 (print_frame_arg_vars, return_command): Ditto.
8092 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8093 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
8094 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8095 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
8096 (rbreak_command): Ditto.
8097 * tracepoint.c (tracepoints_info): Ditto.
8098 * typeprint.c (typedef_print): Ditto.
8099 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
8100 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8101 * ada-typeprint.c: Update Copyright.
8102 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8103 * tracepoint.c, cli/cli-cmds.c: Ditto.
8104
f796e4be
KB
81052003-02-20 Kevin Buettner <[email protected]>
8106
8107 * frame.c (generic_unwind_get_saved_register): Make non-static.
8108 * frame.h (generic_unwind_get_saved_register): Declare.
8109 * mips-tdep.c (read_next_frame_reg): Fetch register from
8110 current regcache when frame is NULL.
8111 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8112 that must be NULL.
8113 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8114 instead of frame_register_unwind().
8115
836cc9f4
AC
81162003-02-20 Andrew Cagney <[email protected]>
8117
8118 * remote-sim.c (gdbsim_insert_breakpoint)
8119 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8120 code.
8121
501eef12
AC
81222003-02-20 Andrew Cagney <[email protected]>
8123
8124 * remote.c (_initialize_remote): Add commands "set/show remote
8125 hardware-watchpoint-limit" and "set/show remote
8126 hardware-breakpoint-limit".
8127 (remote_hw_watchpoint_limit): Initialize to -1.
8128 (remote_hw_breakpoint_limit): Ditto.
8129 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8130
1b6bc7e0
CF
81312003-02-19 Raoul Gough <[email protected]>
8132
8133 * coff-pe-read.c: New file - support reading of minimal symbols from a
8134 portable executable using the export table.
8135 * coff-pe-read.h: New file.
8136 * coffread.c: Include coff-pe-read.h.
8137 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8138 debugging symbols found.
8139 * Makefile.in (SFILES): Add coff-pe-read.o.
8140 (coff_pe_read_h): Define.
8141 (COMMON_OBS): Add coff-pe-read.o.
8142 (coffread.o): Add coff_pe_read_h dependency.
8143 (coff-pe-read.o): New target.
8144
fe898f56
DC
81452003-02-19 David Carlton <[email protected]>
8146
8147 * Makefile.in (SFILES): Add block.c.
8148 (block_h): New.
8149 (COMMON_OBS): Add block.o.
8150 (block.o): New.
8151 (x86-64-tdep.o): Add $(block_h).
8152 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8153 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8154 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8155 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8156 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8157 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8158 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8159 * value.h: Add opaque declaration for struct block.
8160 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8161 * ada-lang.h: Ditto.
8162 * x86-64-tdep.c: #include "block.h"
8163 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8164 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8165 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8166 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8167 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8168 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8169 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8170 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8171 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8172 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8173 * symtab.c (block_function): Ditto.
8174 (contained_in): Ditto.
8175 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8176 block.h. Add opaque declaration for struct block.
8177 * symtab.h: Move block_function and contained_in declarations to
8178 block.h. Add opaque declarations for struct block, struct
8179 blockvector.
8180 (struct block): Move to block.h.
8181 (struct blockvector): Ditto.
8182 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8183 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8184 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8185 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8186 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8187 Ditto.
8188 * block.c: New file.
8189 * block.h: New file.
8190
173345b5
TR
81912003-02-19 Theodore A. Roth <[email protected]>
8192
8193 * avr-tdep.c (avr_extract_return_value): Remove function.
8194 (avr_store_return_value): Remove function.
8195 (avr_extract_struct_value_address): Remove function.
8196 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8197
338ef23d
AC
81982003-02-19 Andrew Cagney <[email protected]>
8199
8200 * rs6000-tdep.c: Include "gdb_assert.h".
8201 (registers_e500): Add "acc" and "spefscr".
8202 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8203 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8204 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8205 really is "r0".
8206 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8207
5412f5f3
KS
82082003-02-18 Keith Seitz <[email protected]>
8209
8210 * Makefile.in: Add gdbtk-interps.c.
8211
881324eb
KB
82122003-02-18 Kevin Buettner <[email protected]>
8213
8214 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8215 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8216
6a2f5abf
AC
82172003-02-18 Andrew Cagney <[email protected]>
8218
8219 * symtab.h (struct objfile): Add opaque declaration.
8220
54c7009d
EZ
82212003-02-18 Elena Zannoni <[email protected]>
8222
8223 From Jim Ingham <[email protected]>:
fbe586ae
RH
8224 * dbxread.c (process_one_symbol): Use last_function_start rather
8225 than function_start_offset to find the real beginning of the
8226 current function. The latter is just the text section offset on
8227 some systems, the former is always the real function start.
54c7009d 8228
7ee6d7eb
AC
82292003-02-17 Andrew Cagney <[email protected]>
8230
8231 * configure.in: Revert ${target} != ${host}.
8232
2846da9b
AC
82332003-02-17 Andrew Cagney <[email protected]>
8234
8235 * configure.in (Makefile): Use the test ${target} != ${host},
8236 instead of the absence of the "nm.h" file, to determine of the
8237 configuration non-native.
8238 * configure: Regenerate.
8ffd9b1b 8239
3b27aeea
EZ
82402003-02-14 Elena Zannoni <[email protected]>
8241
fbe586ae 8242 From Brian Ford <[email protected]>
3b27aeea
EZ
8243
8244 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8245 conditionalize tui_active test.
8246 (lookup_cmd_1): Ditto.
8247
b0b1c2c0
MK
82482003-02-14 Mark Kettenis <[email protected]>
8249
8250 * configure.in: Add check for _etext.
8251 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8252 available.
8253 * config.in, configure: regenerated.
8254
8f05cde5
DJ
82552003-02-14 Daniel Jacobowitz <[email protected]>
8256
8257 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8258
021e7609
AC
82592003-02-14 Andrew Cagney <[email protected]>
8260
8261 * main.c (tui_version): Delete variable.
8262 (captured_main): When --tui, set interpreter_p to "tui" instead of
8263 enabling tui_version.
8264 * printcmd.c (display_command) [TUI]: Test tui_active instead of
8265 tui_version.
8266 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8267 * cli/cli-cmds.c (disassemble_command): Ditto.
8268 * defs.h (tui_version): Delete declaration.
8269 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8270 (tui-interp.o): Add rules.
8271 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8272
e325dcec
CF
82732003-02-14 Christopher Faylor <[email protected]>
8274
36ffb041 8275 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
8276 just-loaded dll.
8277
c4f90d87
JM
82782003-02-12 Jason Molenda ([email protected])
8279
fbe586ae
RH
8280 * symmisc.c (print_objfile_statistics): Include information about
8281 the number of psymtabs and symtabs in each object file.
c4f90d87 8282
e46e5ccd
KS
82832003-02-13 Keith R Seitz <[email protected]>
8284
8285 * main.h (struct captured_main_args): Add interpreter_p.
8286 * main.c (captured_main): Initialize interpreter_p from context.
8287 * gdb.c (main): Set interpreter_p argument.
8288 * Makefile.in (gdb.o): Add dependency for interps.h.
8289
fe97fe9c
AC
82902003-02-12 Andrew Cagney <[email protected]>
8291
8292 * event-top.c (cli_command_loop): Delete declaration.
8293 (_initialize_event_loop): Delete function setting event_loop_hook.
8294 * event-top.h (cli_command_loop): Declare. Update copyright.
8295 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8296 * interps.c (current_interp_command_loop): When event_loop_p, call
8297 cli_command_loop.
8298
1cdac4ef
AC
82992003-02-12 Andrew Cagney <[email protected]>
8300
8301 * interps.h (interp_command_loop_ftype): Change return type to
8302 void.
8303
48037ead
ML
83042003-02-12 Michal Ludvig <[email protected]>
8305
8306 * x86-64-tdep.c (x86_64_extract_return_value)
8307 (x86_64_store_return_value): Use regcache instead of regbuf.
8308 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8309 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8310
033afc63
AC
83112003-02-11 Andrew Cagney <[email protected]>
8312
8313 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8314 * aclocal.m4: Regenerate.
8315 * configure: Regenerate.
8316
8317 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8318 TCL_LD_SEARCH_FLAGS.
8319
40d02bca
ML
83202003-02-10 Michal Ludvig <[email protected]>
8321
8322 * dwarf2cfi.c: Reindented.
8323
11308a41
AC
83242003-02-09 Andrew Cagney <[email protected]>
8325
8326 * interps.c (clear_interpreter_hooks): Convert function definition
8327 to ISO C.
8328
e1c1c0f6
DC
83292003-02-07 David Carlton <[email protected]>
8330
8331 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8332
ab5d3da6
KB
83332003-02-07 Kevin Buettner <[email protected]>
8334
8335 * gdbtypes.h (struct main_type): Move ``length'' field from here...
8336 (struct type): ...to here.
8337 (TYPE_LENGTH): Adjust to reflect different location of ``length''
8338 field.
8339 * gdbtypes.c (make_qualified_type): Set length on newly created type.
8340 (replace_type): Set length on all type variants for a given type.
8341
b8a92b82
AC
83422003-02-07 Andrew Cagney <[email protected]>
8343
8344 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8345 <sys/stat.h>.
8346 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 8347
5cb316ef
AC
83482003-02-06 Andrew Cagney <[email protected]>
8349
2555fe1a
AC
8350 * Makefile.in (symm-nat.o): Update dependencies.
8351 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8352 (lynx-nat.o, ia64-linux-nat.): Ditto.
8353 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
8354 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
8355 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
8356
44270758
AC
8357 * Makefile.in (inflow_h): Define.
8358 (procfs.o, inflow.o, procfs.o): Update dependencies.
8359 * inftarg.c (child_stop): Delete extern declaration of
8360 inferior_process_group. Include "inflow.h".
8361 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
8362 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
8363 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
8364 (our_process_group, inferior_process_group): Extern declarations.
8365
df8f7274
AC
8366 * procfs.c: Include "gdb_assert.h".
8367
5cb316ef
AC
8368 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8369 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
8370 * jv-typeprint.c (java_type_print_base): Ditto.
8371 * typeprint.c (typedef_print): Eliminate STREQ.
8372 * cli/cli-script.c (define_command, define_command): Ditto.
8373 * main.c (captured_main): Ditto.
8374 * values.c (lookup_internalvar): Ditto.
8375 * utils.c (safe_strerror, parse_escape): Eliminate assignment
8376 within `if' conditional.
8377 * linespec.c (decode_line_2): Ditto.
8378 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
8379 (bfd_openw_with_cleanup): Ditto.
8380
2a28ccea
MK
83812003-02-07 Mark Kettenis <[email protected]>
8382
8383 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
8384 legacy_extract_return_value and store_return_value to
8385 legacy_return_value.
8386
786b8124
CF
83872003-02-06 Raoul Gough <[email protected]>
8388
8389 * win32-nat.c (get_relocated_section_addrs): New function. Find
8390 section load addresses for symbol handling in relocated DLLs.
8391 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
8392
b871e4ec
FF
83932003-02-05 Fred Fish <[email protected]>
8394
8395 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
8396 '=' and '!='.
8397 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
8398 with '&' and '=='.
8399 (angel_RDI_info): Ditto.
8400 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
8401 with '&' and '!='.
8402 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 8403
4389a95a 84042003-02-05 Jim Ingham <[email protected]>
fbe586ae
RH
8405 Keith Seitz <[email protected]>
8406 Elena Zannoni <[email protected]>
8407 Andrew Cagney <[email protected]>
4389a95a
AC
8408
8409 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
8410 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
8411 (SUBDIR_MI_OBS): Add "mi-interp.o".
8412 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
8413 (SFILES): Add "interps.c".
8414 (COMMON_OBS): Add "interps.o".
8415 (interps_h, mi_main_h): Define.
8416 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
8417 (mi-main.o, main.o, event-top.o): Update dependencies.
8418 * cli/cli-interp.c: New file.
8419 * interps.h, interps.c: New files.
8420 * top.c: (gdb_init): Don't install the default interpreter, handed
8421 by captured_main.
8422 * main.c: Include "interps.h".
8423 (interpreter_p): Note that it should malloc'ed.
8424 (captured_command_loop): Call current_interp_command_loop.
8425 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
8426 xfree and xstrdup when updating interpreter_p. Install the
8427 default interpreter. Add hack to stop mi1's copyright notice
8428 being encoded.
8429 * event-top.h (gdb_setup_readline): Declare.
8430 (gdb_disable_readline): Declare.
8431 * event-top.c: Include "interps.h".
8432 (display_gdb_prompt): Call current_interp_display_prompt_p.
8433 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
8434 gdb_stdlog, and gdb_stdtarg.
8435 (_initialize_event_loop): Don't call gdb_setup_readline.
8436 * cli-out.c (cli_out_set_stream): New function.
8437 * cli-out.h (cli_out_set_stream): Declare.
8438
ff3b5810
MK
84392003-02-06 Mark Kettenis <[email protected]>
8440
8441 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
8442 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
8443 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
8444 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
8445 config/i386/i386v42mp.mt: Removed.
8446
5b729aa5
MK
84472003-02-05 Mark Kettenis <[email protected]>
8448
8449 * configure.tgt (*-*-solaris*): Set gdb_osabi to
8450 GDB_OSABI_SOLARIS.
8451
8cc15142
MC
84522003-02-05 Michael Chastain <[email protected]>
8453
8454 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
8455 2.12.1 and earlier versions.
8456
5aa5d4b9
AC
84572003-02-05 Andrew Cagney <[email protected]>
8458
8459 Remove orphaned hosts, targets and files.
8460 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
8461 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
8462 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
8463 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
8464 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
8465 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
8466 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
8467 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
8468 * config/sparc/tm-sp64sim.h: Delete.
8469 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
8470 hosts.
8471 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
8472 mips*-dec-mach3* targets.
8473
b68767c1
MC
84742003-02-04 Michael Chastain <[email protected]>
8475
8476 * NEWS: Fix typo: sepcifying -> specifying.
8477
5ae7ca1d
MC
84782003-02-04 Michael Chastain <[email protected]>
8479
8480 * dwarfread.c: Add documentation on the state of dwarf-1,
8481 looking towards obsoletion.
8482
d08a4280
MC
84832003-02-03 Michael Chastain <[email protected]>
8484
8485 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
8486 gdb/testsuite/gdb.c++/pr-1023.exp.
8487
e9be73e4
AC
84882003-02-04 Andrew Cagney <[email protected]>
8489
8490 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
8491 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
8492
8493 * utils.c (init_page_info): Delete reference to MPW in comments.
8494 * main.c (captured_main): Delete #ifdef MPW.
8495
05d57f6f
AC
84962003-02-04 Andrew Cagney <[email protected]>
8497
8ffd9b1b 8498 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
8499 * monitor.c (monitor_expect): Obsolete reference to m32r.
8500 * configure.tgt: Mark m32r-*-elf* as obsolete.
8501 * MAINTAINERS: Mark m32k as obsolete.
8502 * m32r-rom.c: Obsolete file.
8503 * config/m32r/m32r.mt: Obsolete file.
8504 * config/m32r/tm-m32r.h: Obsolete file.
8505 * m32r-stub.c: Obsolete file.
8506 * m32r-tdep.c: Obsolete file.
8507
8b0e5691
AC
85082003-02-04 Andrew Cagney <[email protected]>
8509
8510 * NEWS: Mention that the z8k-zilog-none is obsolete.
8511 * MAINTAINERS: Mark z8k as obsolete.
8512 * configure.tgt: Obsolete the z8k-*-coff* target.
8513 * config/z8k/z8k.mt: Obsolete file.
8514 * config/z8k/tm-z8k.h: Obsolete file.
8515 * z8k-tdep.c: Obsolete file.
8516
67f16606
AC
85172003-02-04 Andrew Cagney <[email protected]>
8518
8519 * NEWS: Mention that the mn10200-elf is obsolete.
8520 * configure.tgt: Obsolete mn10200-*-* target.
8521 * breakpoint.c (update_breakpoints_after_exec): Update comment to
8522 mention that the mn10200 is obsolete.
8523 * breakpoint.h: Ditto.
8524 * MAINTAINERS: Mark the mn10200-elf as obsolete.
8525 * config/mn10200/mn10200.mt: Obsolete file.
8526 * config/mn10200/tm-mn10200.h: Obsolete file.
8527 * mn10200-tdep.c: Obsolete file.
8528
fd2299bd
AC
85292003-02-04 Andrew Cagney <[email protected]>
8530
8531 * MAINTAINERS: Mark h8500 as obsolete.
8532 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
8533 * findvar.c (value_from_register): Ditto.
8534 * h8500-tdep.c: Mark file as obsolete.
8535 * config/h8500/h8500.mt: Ditto.
8536 * config/h8500/tm-h8500.h: Ditto.
8537 * NEWS: Mention that h8500 is obsolete.
8538
eb9a305d
DC
85392003-02-04 David Carlton <[email protected]>
8540
8541 * objfiles.c (allocate_objfile): Always set name. Add comment at
8542 start of function.
8543 * jv-lang.c (get_dynamics_objfile): Add comment.
8544
406fc7fb
DC
85452003-02-04 David Carlton <[email protected]>
8546
8547 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
8548 * printcmd.c (build_address_symbolic): Replace uses of
8549 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
8550 SYMBOL_NAME, and asm_demangle.
8551 Update copyright.
8552
93d91629
DC
85532003-02-04 David Carlton <[email protected]>
8554
8555 * linespec.c (decode_compound): Extract code into
8556 lookup_prefix_sym.
8557 (lookup_prefix_sym): New function.
8558
1c5cb38e
DC
85592003-02-04 David Carlton <[email protected]>
8560
8561 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
8562 FLOAT_COERCION_BADNESS.
8563 * gdbtypes.c (rank_one_type): Replace all uses of
8564 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
8565
0cf824c9
JB
85662003-02-04 Jim Blandy <[email protected]>
8567
8568 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
8569 section, let dwarf_macinfo_section point to it, not
8570 dwarf_loc_section.
8571
a2d356b0
DJ
85722003-02-04 Daniel Jacobowitz <[email protected]>
8573
8574 Pointed out by Anton Blanchard <[email protected]>.
8575 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
8576 (ppc_linux_at_sigtramp_return_path): Use it.
8577
2de7ced7
DJ
85782003-02-04 Daniel Jacobowitz <[email protected]>
8579
8580 * defs.h (streq): Add prototype.
8581 * utils.c (streq): New function.
8582
8583 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
8584 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
8585 * mdebugread.c (new_symbol): Likewise.
8586 * stabsread.c (define_symbol): Likewise.
8587 * coffread.c (process_coff_symbol): Likewise.
8588 * dwarfread.c (new_symbol): Likewise.
8589
8590 * minsyms.c (prim_record_minimal_symbol_and_info): Use
8591 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
8592 here.
8593 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
8594 SYMBOL_INIT_DEMANGLED_NAME.
8595 * objfiles.c: Include "hashtab.h".
8596 (allocate_objfile): Call htab_set_functions_ex for the
8597 demangled_names_hash.
8598 (free_objfile): Call htab_delete for the demangled_names_hash.
8599 * objfiles.h (struct htab): Add declaration.
8600 (struct objfile): Add demangled_names_hash.
8601 * symfile.c: Include "hashtab.h".
8602 (reread_symbols): Call htab_delete for the demangled_names_hash.
8603 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
8604 SYMBOL_NAME in the bcache.
8605 * symtab.c: Include "hashtab.h". Update comments.
8606 (create_demangled_names_hash, symbol_set_names): New functions.
8607 (symbol_find_demangled_name): New function, broken out from
8608 symbol_init_demangled_names.
8609 (symbol_init_demangled_names): Use it.
8610 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
8611 (SYMBOL_SET_NAMES): New macro.
8612 (symbol_set_names): Add prototype.
8613
15831452
JB
86142003-02-03 Jim Blandy <[email protected]>
8615
8616 Use a single, consistent representation for an empty minimal
8617 symbol table in an objfile.
8618 * objfiles.c (terminate_minimal_symbol_table): New function.
8619 (allocate_objfile): Call it.
8620 * objfiles.h (terminate_minimal_symbol_table): New declaration.
8621 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 8622 non-NULL.
15831452
JB
8623 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
8624 objfile has minimal symbols, compare minimal_symbol_count to zero,
8625 instead of comparing msymbols with NULL.
8626 * objfiles.c (have_minimal_symbols): Same.
8627 * solib-sunos.c (solib_add_common_symbols): Call
8628 terminate_minimal_symbol_table.
8629 * symfile.c (reread_symbols): Same.
8ffd9b1b 8630
ffc65945
KB
86312003-02-03 Kevin Buettner <[email protected]>
8632
8633 * s390-tdep.c (s390_address_class_type_flags)
8634 (s390_address_class_type_flags_to_name)
8635 (s390_address_class_name_to_type_flags): New functions.
8636 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
8637 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
8638
f211c6d4
MS
86392003-02-03 Michael Snyder <[email protected]>
8640
8641 * arm-tdep.c: Fix spell-o in comment.
8642
659b0389
ML
86432003-02-03 Michal Ludvig <[email protected]>
8644
8645 * dwarf2cfi.c (pointer_encoding): Added new parameter.
8646 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 8647 error messages to contain BFD filename.
659b0389 8648
3b31d625
EZ
86492003-02-02 Elena Zannoni <[email protected]>
8650
997b089a 8651 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
8652 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
8653 (do_mixed_source_and_assembly): Use
8654 make_cleanup_ui_out_tuple_begin_end and
8655 make_cleanup_ui_out_tuple_begin_end.
8656 (do_mixed_source_and_assembly): Ditto.
8657 * thread.c (do_captured_list_thread_ids): Ditto.
8658 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
8659 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
8660 ui_out_tuple_end): Delete prototypes.
8661 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
8662 ui_out_list_end, ui_out_tuple_end): Delete.
8663
8664 From Kevin Buettner <[email protected]>:
8665 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
8666 * ui-out.c (make_cleanup_ui_out_table_begin_end)
8667 (do_cleanup_table_end): New functions.
8668 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
8669 Use cleanups to invoke_ui_out_tuple_end().
8670 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
8671 * cli/cli-setshow.c (cmd_show_list): Use
8672 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 8673
5b181d62
AC
86742003-02-02 Andrew Cagney <[email protected]>
8675
8676 * frame.c (frame_unwind_register): New function.
8677 (frame_unwind_unsigned_register): Use.
8678 (frame_unwind_signed_register): Use.
8679 (frame_read_register): New function.
8680 * frame.h (frame_unwind_register): Declare.
8681 (frame_read_register): Declare.
8682
8683 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
8684 and frame_unwind_register instead of read_memory, write_register
8685 and deprecated_write_register_bytes.
8686
5f601589
AC
86872003-02-02 Andrew Cagney <[email protected]>
8688
8689 * frame.h: Note that namelen can be negative.
8690 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
8691 NAME's length.
8692
8693 * NEWS: Mention that the d10v's `regs' command is deprecated.
8694 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
8695 (d10v_print_registers_info): New function.
8696 (show_regs): Call d10v_print_registers_info.
8697 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
8698
6a3fe0a4
MK
86992003-02-02 Mark Kettenis <[email protected]>
8700
8701 * stack.c (print_frame_info): Restore call to annotate_frame_begin
8702 lost in the previous patch.
8703
075559bc
AC
87042003-02-01 Andrew Cagney <[email protected]>
8705
8706 From 2002-11-09 Jason Molenda ([email protected])
fbe586ae
RH
8707 * stack.c (print_frame_info_base): Output complete FRAME tuple
8708 for synthesized frames.
075559bc 8709
6789195b
AC
87102003-02-02 Andrew Cagney <[email protected]>
8711
8712 * mips-nat.c (zerobuf): Delete.
8713 (fetch_inferior_registers): Alloc local zerobuf.
8714 (fetch_core_registers): Alloc local zerobuf.
8715 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
8716 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
8717 * thread-db.c (thread_db_store_registers): Ditto.
8718 * sh-tdep.c (sh_do_register): Ditto.
8719 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
8720 * remote-sim.c (gdbsim_store_register): Ditto.
8721 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8722 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8723 * monitor.c (monitor_supply_register): Ditto.
8724 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
8725 * mips-nat.c (fetch_inferior_registers): Ditto.
8726 * m68klinux-nat.c (fetch_register): Ditto.
8727 * lynx-nat.c (fetch_inferior_registers): Ditto.
8728 (fetch_inferior_registers): Ditto.
8729 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
8730 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8731 (hpux_thread_store_registers): Ditto.
8732 * hppah-nat.c (fetch_register): Ditto.
8733 * hppab-nat.c (fetch_register): Ditto.
8734 * hppa-tdep.c (pa_register_look_aside): Ditto.
8735 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
8736 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
8737
e669114a
AC
87382003-02-01 Andrew Cagney <[email protected]>
8739
8740 * gdbarch.sh: Explictly specify all method levels. When a
8741 variable with an empty level, provide a non-multi-arch default.
8742 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
8743 * gdbarch.h: Re-generate.
8744 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
8745 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
8746
9a043c1d
AC
87472003-02-01 Andrew Cagney <[email protected]>
8748
8749 * defs.h (host_pointer_to_address): Delete declaration.
8750 (address_to_host_pointer): Delete declaration.
8751 * utils.c (host_pointer_to_address): Delete function.
8752 (address_to_host_pointer): Delete function.
8753 * procfs.c (procfs_address_to_host_pointer): New function.
8754 * procfs.c (proc_set_watchpoint): Use.
8755 (procfs_can_use_hw_breakpoint): Update comments.
8756 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
8757 (som_solib_add): Use.
8758 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
8759 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 8760
7ca9f392
AC
87612003-02-01 Andrew Cagney <[email protected]>
8762
94bbfd30
AC
8763 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
8764 strlen d_name.
8765
7ca9f392
AC
8766 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
8767 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
8768 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
8769 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
8770 (define_symbol): Update.
8771 * symfile.c (generic_load): Remove references to nindy.
8772 * symtab.c: Remove references to nindy.
8773
31a85ea2
AC
87742003-02-01 Andrew Cagney <[email protected]>
8775
8776 * infcmd.c (print_float_info): Delete code conditional on
8777 FLOAT_INFO.
8778 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
8779 * config/m68k/nm-apollo68b.h: Ditto.
8780 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
8781 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
8782 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
8783
f6e85fc8
MK
87842003-02-01 Mark Kettenis <[email protected]>
8785
6015b6a0
MK
8786 * config/i386/tm-i386os9k.h: Removed.
8787
f7a30bdf
MK
8788 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
8789 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
8790 they're identical to i[3456]86-*-sysv* now.
8791 * config/i386/i386v32.mh: Removed.
8792 * config/i386/xm-i386v32.h: Removed.
8793 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
8794
28d52111
MK
8795 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
8796
4d3f6bce
MK
8797 * config/i386/i386dgux.mh: Removed.
8798 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
8799
f6e85fc8
MK
8800 * configure.in: Fix typo.
8801 * configure: Regenerated.
8802
53955967
DC
88032003-01-31 David Carlton <[email protected]>
8804
8805 * dwarf2read.c (dwarf2_locate_sections): Set
8806 dwarf_ranges_section.
8807
b1364885
AC
88082003-01-31 Andrew Cagney <[email protected]>
8809
8dbb1c65
AC
8810 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
8811 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 8812
8731e58e
AC
8813 * utils.c: Re-indent.
8814
b1364885
AC
8815 * config/djgpp/fnchange.lst: Delete nindy files.
8816 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
8817 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
8818 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
8819 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
8820 * nindy-share/README, nindy-share/Onindy.c: Delete files.
8821 * nindy-tdep.c, nindy-share/Makefile: Delete files.
8822 * Makefile.in (init.c): Remove nindy references.
8823 (saber_gdb): Delete rule.
8824 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
8825 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
8826 and a68v-nat.c.
8827 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
8828 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
8829 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
8830 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
8831 nindy-share/stop.h.
8832 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
8833 * saber.suppress: Delete file.
8834
086df311
DJ
88352003-01-31 Daniel Jacobowitz <[email protected]>
8836
8837 * dbxread.c (stabs_data): New static variable.
8838 (fill_symbuf): Support an in-memory buffer for stabs data.
8839 (stabs_seek): New function.
8840 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
8841 (read_ofile_symtab): Use stabs_seek.
8842 (elfstab_build_psymtabs): Take an asection* instead of
8843 an offset and size. Relocate the stabs data if necessary.
8844 Save the section* for dbx_psymtab_to_symtab.
8845 * dwarf2read.c: Add section variables for each debug section.
8846 (dwarf2_locate_sections): Fill them in.
8847 (dwarf2_read_section): Take an asection* argument.
8848 Relocate the section contents if necessary.
8849 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
8850 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
8851 it to dwarf2_read_section.
8852 (dwarf2_build_frame_info): Update callers.
8853 * elfread.c (elf_symfile_read): Update call to
8854 elfstab_build_psymtabs.
8855 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
8856 (DBX_STAB_SECTION): New macro.
8ffd9b1b 8857 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
8858 * symfile.c (symfile_dummy_outputs): New function.
8859 (symfile_relocate_debug_section): New function.
8860 * symfile.h (symfile_relocate_debug_section): Add prototype.
8861
87d1b352
RH
88622003-01-31 Richard Henderson <[email protected]>
8863
8864 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
8865 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
8866 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
8867 * alpha-tdep.c (alpha_register_name): Add "unique".
8868 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
8869 (ALPHA_UNIQUE_REGNUM): New.
8870 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
8871
c48861fb
AC
88722003-01-31 Andrew Cagney <[email protected]>
8873
8874 * README: Remove reference to Ericsson 1800 monitor.
8875 * Makefile.in (remote-es.o): Delete rule.
8876 (ALLDEPFILES): Delete remote-es.c.
8877 * remote-es.c: Delete file.
8878 * config/m68k/es1800.mt: Delete file.
8879 * config/djgpp/fnchange.lst: Update.
8880 * configure.tgt: Delete m68*-ericsson-* target.
8881
d764a824
AF
88822003-01-31 Adam Fedor <[email protected]>
8883
8884 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
8885 Remove duplicate/shadowing variable of same name.
8886
fe36c4f4
JB
88872003-01-30 Jim Blandy <[email protected]>
8888
8889 * symfile.c (find_separate_debug_file): Assert that the objfile's
8890 directory name we compute ends with a slash, and then assume that
8891 that's so everywhere we use it.
8892
cb741690
DJ
88932003-01-30 Daniel Jacobowitz <[email protected]>
8894
8895 * valops.c (value_assign): Flush frame cache after stores to memory
8896 also.
8897
96ee5227
AC
88982003-01-30 Andrew Cagney <[email protected]>
8899
8900 * Makefile.in (mon960-rom.o): Delete rule.
8901 * mon960-rom.c: Delete file.
8902
7f6104a9
AC
89032003-01-30 Andrew Cagney <[email protected]>
8904
8905 * d10v-tdep.c: Include "frame-unwind.h".
8906 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
8907 list.
8908 (next_addr, uses_frame): Delete.
8909 (struct d10v_unwind_cache): Define.
8910 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
8911 Use info instead of next_addr and uses_frame globals.
8912 (d10v_frame_init_saved_regs): Delete function.
8913 (d10v_init_extra_frame_info): Delete function.
8914 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
8915 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
8916 init_frame_pc or frame_saved_pc.
8917 (d10v_pop_frame): Delete function.
8918 (do_d10v_pop_frame): Delete function.
8919 (d10v_frame_chain): Delete function.
8920 (d10v_frame_chain_valid): Delete function.
8921 (d10v_frame_pc_unwind): New function.
8922 (d10v_frame_id_unwind): New function.
8923 (saved_regs_unwinder): New function.
8924 (d10v_frame_register_unwind): New function.
8925 (d10v_frame_pop): New function.
8926 (d10v_frame_unwind): New variable.
8927 (d10v_frame_p): New function.
8928 (d10v_frame_saved_pc): Delete function.
8929 * Makefile.in (d10v-tdep.o): Update dependencies.
8930
cad2e848
JB
89312003-01-30 J. Brobecker <[email protected]>
8932
8933 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
8934 causing some regressions due to a change in the default value
8935 for this macro.
8936
af34e669
DJ
89372003-01-29 Richard Henderson <[email protected]>
8938 Elena Zannoni <[email protected]>
8939 Daniel Jacobowitz <[email protected]>
8940
8941 Fix PR gdb/961.
8ffd9b1b 8942 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
8943 variables.
8944 (RANGES_SECTION): New.
8945 (dwarf_ranges_buffer): New variable.
8946 (struct comp_unit_head): Add member "die".
8947 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
8948 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
8949 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
8950 (dwarf2_locate_sections): Likewise.
8951 (dwarf2_build_psymtabs): Read .debug_ranges.
8952 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
8953 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
8954 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
8955 Look for DW_AT_ranges and return the bounding box.
8956
baa93fa6
CF
89572003-01-29 Brian Ford <[email protected]>
8958
8959 * win32-nat.c (cygwin_pid): Removed as unused.
8960 (child_attach): Try fall back to Cygwin pid.
8961
c63f977f
JB
89622003-01-29 Jim Blandy <[email protected]>
8963
8964 * objfiles.h (struct objfile): Doc fix.
8965
d62d1979
AC
89662003-01-29 Andrew Cagney <[email protected]>
8967
8968 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
8969 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
8970 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
8971 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
8972 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
8973 (FRAME_SAVED_PC): Change to a function with predicate.
8974 * gdbarch.h, gdbarch.c: Re-generate.
8975
1ae18a04
AC
89762003-01-28 Andrew Cagney <[email protected]>
8977
52287340
AC
8978 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
8979
1ae18a04
AC
8980 * complaints.c (complain): Delete function.
8981 * complaints.h (struct deprecated_complaint): Delete definition.
8982 (complain): Delete declaration.
8983
f2c16bd6
KB
89842003-01-28 Kevin Buettner <[email protected]>
8985
8986 * mips-tdep.c (mips_init_extra_frame_info): Return early for
8987 dummy frames.
8988
a94dd1fd
AC
89892003-01-27 Andrew Cagney <[email protected]>
8990
8991 * sentinel-frame.h, sentinel-frame.c: New files.
8992 * Makefile.in (frame.o): Update dependencies.
8993 (SFILES): Add sentinel-frame.c.
8994 (sentinel_frame_h): Define.
8995 (COMMON_OBS): Add sentinel-frame.o.
8996 (sentinel-frame.o): Specify dependencies.
8997 * frame.c: Include "sentinel-frame.h".
8998 (frame_register_unwind): Rewrite assuming that there is always a a
8999 ->next frame.
9000 (frame_register, generic_unwind_get_saved_register): Ditto.
9001 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9002 (create_sentinel_frame, unwind_to_current_frame): New functions.
9003 (get_current_frame): Rewrite using create_sentinel_frame and
9004 unwind_to_current_frame. When possible, always create a frame.
9005 (create_new_frame): Set next to the sentinel frame.
9006 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9007 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9008 ID cache when necessary.
9009 (frame_saved_regs_id_unwind): Use frame_relative_level.
9010 (deprecated_generic_get_saved_register): Use frame_relative_level,
9011 get_frame_saved_regs, get_frame_pc, get_frame_base and
9012 get_next_frame.
9013 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9014 frame_register.
9015
5378adc4
DJ
90162003-01-27 Daniel Jacobowitz <[email protected]>
9017
9018 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9019
51ee2ddc
DJ
90202003-01-27 Daniel Jacobowitz <[email protected]>
9021
9022 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9023 (maintenance_set_profile_cmd): Use error () instead of warning ().
9024
d9feb4e7
DJ
90252003-01-27 Daniel Jacobowitz <[email protected]>
9026
9027 * configure.in: Check that -pg works if using --enable-profiling.
9028 Check for monstartup and _mcleanup regardless of --enable-profiling.
9029 * maint.c: Check for monstartup and _mcleanup before using them.
9030 * config.in: Regenerated.
9031 * configure: Regenerated.
9032
2d188dd3
NC
90332003-01-24 Nick Clifton <[email protected]>
9034
9035 * Add sh2e support:
9036
9037 2002-04-02 Elena Zannoni <[email protected]>
9038
9039 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9040 (sh2e_show_regs): New.
9041 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9042 * config/sh/tm-sh.h: Added sh2e to comments.
9043
cb3c37b2
JB
90442003-01-23 Jim Blandy <[email protected]>
9045
9046 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9047 symbols found)" message here; we haven't checked for a separate
9048 debug info file yet, so we don't know yet.
9049 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9050 we've looked everywhere. Also, there's no need to print a special
9051 message when we're loading the separate debug info file: the one
9052 symbol_file_add prints is fine.
9053
5b5d99cf
JB
90542003-01-23 Alexander Larsson <[email protected]>
9055 Jim Blandy <[email protected]>
9056
9057 Add support for executables whose debug info has been separated
9058 out into a separate file, leaving only a link behind.
9059 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9060 and separate_debug_objfile_backlink.
9061 (put_objfile_before): New declaration.
9062 * symfile.c: #include "filenames.h".
9063 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9064 debug info in a separate file, read that, too. Save the addrs
9065 argument, so we can use it again to read the separated debug info;
9066 syms_from_objfile modifies the table we pass it.
9067 (reread_symbols): After re-reading an objfile, call
9068 reread_separate_symbols to refresh its separate debug info
9069 objfile, if it has one.
9070 (reread_separate_symbols, find_separate_debug_file,
9071 get_debug_link_info, separate_debug_file_exists): New functions.
9072 (debug_file_directory): New global var.
9073 (_initialize_symfile): Initialize debug_file_directory, and
9074 provide the new `set debug-file-directory' command to let the user
9075 change it.
9076 * objfiles.c (free_objfile): If this objfile has its debug info in
9077 a separate objfile, free that one too. If this is itself a
9078 separate debug info objfile, clear our parent's backlink.
9079 (put_objfile_before): New function.
9080 * utils.c (gnu_debuglink_crc32): New function.
9081 * defs.h (gnu_debuglink_crc32): New declaration.
9082 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9083 * configure.in: Handle --with-separate-debug-dir config option.
9084 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9085 * acconfig.h (DEBUGDIR): New macro.
9086 * configure, aclocal.m4, config.in: Regenerated.
9087
7e8580c1
JB
90882003-01-22 Jim Blandy <[email protected]>
9089
7904e09f
JB
9090 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9091 like the old symbol_file_add, but taking new arguments: you can
9092 now pass in either a `struct section_addr_info' list to say where
9093 each section is loaded, or a `struct section_offsets' table. Pass
9094 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 9095 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
9096 with the appropriate quiescent values for the new arguments.
9097
7e8580c1
JB
9098 * symfile.c: #include "gdb_assert.h".
9099 (syms_from_objfile): Add the ability to pass in a section offset
9100 table directly, as an alternative to the section_addr_info table.
9101 Document arguments better.
9102 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9103 * symfile.h (syms_from_objfile): Update declaration.
9104 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9105 syms_from_objfile.
9106 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9107
d28f9cdf
DJ
91082003-01-22 Daniel Jacobowitz <[email protected]>
9109
9110 Original patch by Tom Tromey <[email protected]> and
9111 Jason Molenda <[email protected]>.
9112 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9113 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9114 * NEWS: Mention profiling.
9115 * configure.in (--enable-gdbtk): Fix typo.
9116 (--enable-profiling): New. Set PROFILE_CFLAGS.
9117 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9118 Fill in function.
9119 (profiling_state): New variable.
9120 (mcleanup_wrapper): New function.
9121 (_initialize_maint): Remove NOTYET, fix call to
9122 add_setshow_boolean_cmd for "maint set profile".
9123 * configure: Regenerated.
9124
df21e465
MH
91252003-01-21 Martin M. Hunt <[email protected]>
9126
9127 * Makefile.in (install-gdbtk): Install PNG images too.
9128
73c1f219
AC
91292003-01-21 Andrew Cagney <[email protected]>
9130
9131 * exec.c (text_start): Delete global variable.
9132 (exec_file_attach): Make text_start local to the function.
9133 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9134 * valops.c (hand_function_call): Delete code that handles
9135 BEFORE_TEXT_END and AFTER_TEXT_END.
9136 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9137 of CALL_DUMMY_LOCATION.
9138 * gdbarch.c: Regenerate.
9139 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9140 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9141 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9142 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9143 (text_end): Delete extern declaration.
9144
eb4f72c5
AC
91452003-01-21 Andrew Cagney <[email protected]>
9146
9147 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9148 * blockframe.c (backtrace_below_main): Move to "frame.c".
9149 (frame_chain_valid): Delete check for backtrace_below_main.
9150 (_initialize_blockframe): Delete initialization, move ``set
9151 backtrace-below-main'' command to "frame.c".
9152 (do_flush_frames_sfunc): Delete function.
9153 * frame.c: Include "command.h" and "gdbcmd.h".
9154 (frame_type_from_pc): New function.
9155 (create_new_frame): Use frame_type_from_pc.
9156 (legacy_get_prev_frame): New function.
9157 (get_prev_frame): Rewrite. When an old style frame, call
9158 legacy_get_prev_frame. Otherwize, unwind the PC first.
9159 (_initialize_frame): Add ``set backtrace-below-main'' command.
9160 * Makefile.in (frame.o): Update dependencies.
9161
778ce8cc
AC
91622003-01-19 Andrew Cagney <[email protected]>
9163
9164 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9165 DEPRECATED_REGISTERS_INFO.
9166
01c193c8
AC
91672003-01-19 Andrew Cagney <[email protected]>
9168
9169 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9170 Maintainers'. Update `Various Maintainers'.
9171
dedc2a2b
AC
91722003-01-19 Andrew Cagney <[email protected]>
9173
9174 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9175 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9176 Suppress actual parameters when `-'.
9177 * gdbarch.h, gdbarch.c: Regenerate.
9178
b7261c70
AC
91792003-01-19 Andrew Cagney <[email protected]>
9180
9181 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9182 code handling dummy frames.
9183
dbe9fe58
AC
91842003-01-19 Andrew Cagney <[email protected]>
9185
9186 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9187 (struct frame_unwind): Add field pop.
9188 * frame.h (frame_pop): Declare.
9189 * frame.c (frame_saved_regs_pop): New function.
9190 (trad_frame_unwinder): Add frame_saved_regs_pop.
9191 (frame_pop): New function.
9192 * dummy-frame.c (dummy_frame_pop): New function.
9193 (discard_innermost_dummy): New function.
9194 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9195 (dummy_frame_unwind): Add dummy_frame_pop.
9196 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9197 * valops.c (hand_function_call): Ditto.
9198 * stack.c (return_command): Ditto.
9199
570b8f7c
AC
92002003-01-18 Andrew Cagney <[email protected]>
9201
9202 * cris-tdep.c: Fix function declaration indentation.
9203 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9204 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9205 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9206 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9207 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9208 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9209
92102003-01-18 Michael Chastain <[email protected]>
eaec4d85
MC
9211
9212 * README (Unpacking and Installation -- quick overview):
9213 Warn against ".../gdb-5.3/gdb/configure".
9214
494cca16
AC
92152003-01-18 Andrew Cagney <[email protected]>
9216
9217 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9218 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9219 (struct frame_unwind): Declare opaque.
9220 (dummy_frame_p): Declare function.
9221 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9222 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9223 * dummy-frame.c: Include "frame-unwind.h".
9224 (dummy_frame_p): New function.
9225 (dummy_frame_unwind): New variable.
9226 * frame.c: Include "frame-unwind.h".
9227 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9228 to use the new unwind field.
9229 (set_unwind_by_pc): Delete function.
9230 (create_new_frame, get_prev_frame): Set unwind field using
9231 frame_unwind_find_by_pc.
9232 (trad_frame_unwind, trad_frame_unwinder): New variables.
9233 * frame.h (trad_frame_unwind): Declare variable.
9234 (frame_id_unwind_ftype): Delete declaration.
9235 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9236 (struct frame_unwind): Declare opaque.
9237 (struct frame_info): Replace the fields id_unwind, pc_unwind and
9238 register_unwind with a single unwind pointer.
9239 * frame-unwind.h, frame-unwind.c: New files.
9240 * Makefile.in (SFILES): Add frame-unwind.c.
9241 (frame_unwind_h): Define.
9242 (COMMON_OBS): Add frame-unwind.o.
9243 (frame-unwind.o): Specify dependencies.
9244 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 9245
4efb68b1
AC
92462003-01-18 Andrew Cagney <[email protected]>
9247
9248 * ada-valprint.c: Eliminate PTR.
9249 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9250 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9251 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9252 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9253 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9254 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9255 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 9256
a84d24ee
AC
92572003-01-17 Andrew Cagney <[email protected]>
9258
762f08a3
AC
9259 * main.c (captured_main): Don't use PTR.
9260 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9261 * gdbtypes.c (lookup_primitive_typename): Ditto.
9262 (lookup_struct_elt_type): Ditto.
9263 * f-valprint.c (info_common_command): Ditto.
9264 (list_all_visible_commons): Ditto.
9265 * jv-typeprint.c (java_type_print_base): Ditto.
9266
a84d24ee
AC
9267 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9268 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9269 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9270 i386-interix-nat.c and i386-interix-tdep.c. Rename
9271 m68klinux-nat.c and m68klinux-tdep.c. Rename
9272 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9273 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9274 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9275 * main.c (captured_main): Use xfree, not free.
9276
c170fb60
AC
92772003-01-16 Andrew Cagney <[email protected]>
9278
9279 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9280 ID back using a parameter.
9281 * frame.c (frame_id_unwind): Update call.
9282 (frame_saved_regs_id_unwind): Update.
9283 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9284 * dummy-frame.h (struct frame_id): Add opaque declaration.
9285 (dummy_frame_id_unwind): Update declaration.
9286
867f3898
AC
92872003-01-15 Andrew Cagney <[email protected]>
9288
9289 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9290
40622be8 92912003-01-15 Stephen P. Smith <[email protected]>
de3a8c23 9292
40622be8 9293 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 9294
ae66c1fc
EZ
92952003-01-14 Elena Zannoni <[email protected]>
9296
997b089a 9297 Fix PR gdb/898
ae66c1fc
EZ
9298 * breakpoint.c (until_break_command): Add new argument. Use it to
9299 decide whether to stop only at the current frame or not.
9300 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 9301 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
9302 call.
9303 (advance_command): New function.
9304 (_initialize_infcmd): Update help string for 'until' command.
9305 Add new 'advance' command.
9306
a04257e6
DC
93072003-01-14 David Carlton <[email protected]>
9308
9309 * linespec.c (decode_line_1): Normalize comments.
9310 (set_flags): Ditto.
9311 (locate_first_half): Ditto.
9312 (decode_compound): Ditto.
9313 (symtab_from_filename): Ditto.
9314 (decode_all_digits): Ditto.
9315 (decode_dollar): Ditto.
9316 (find_methods): Ditto.
9317 (find_toplevel_char): Ditto.
9318
1bac305b
AC
93192003-01-13 Andrew Cagney <[email protected]>
9320
9321 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9322 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9323 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9324 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9325 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9326 * language.c, language.h, m32r-tdep.c: Update copyright.
9327 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9328 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9329 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9330 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9331 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9332 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9333
25caa7a8
EZ
93342003-01-13 Elena Zannoni <[email protected]>
9335
9336 * stabsread.h (process_later, resolve_cfront_continuation):
9337 Obsolete.
9338 Update copyright years.
9339 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9340 Update copyright year.
9341 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 9342 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
9343 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9344 Update copyright year.
9345 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9346 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9347 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9348 (parse_partial_symbols): Obsolete cfront support.
9349 * stabsread.c
9350 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9351 macros.
9352 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9353 read_cfront_baseclasses, read_cfront_member_functions,
9354 resolve_cfront_continuation,read_cfront_static_fields,
9355 copy_cfront_struct_fields): Obsolete functions.
9356 (define_symbol, read_one_struct_field): Obsolete cfront support.
9357 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
9358 Update Copyright year.
9359
7789c6f5
EZ
93602003-01-13 Elena Zannoni <[email protected]>
9361
9362 * stack.c (print_frame_info, print_stack_frame_base_stub,
9363 print_stack_frame_base, show_and_print_stack_frame_stub,
9364 show_and_print_stack_frame, print_only_stack_frame_stub,
9365 print_only_stack_frame): Delete functions.
9366 (print_stack_frame_stub): Call print_frame_info instead of
9367 print_frame_info_base.
9368 (print_frame_info_base): Rename to print_frame_info.
9369 (backtrace_command_1): Call print_frame_info, instead of
9370 print_frame_info_base.
9371 (current_frame_command): Call print_stack_frame, instead of
9372 print_only_stack_frame.
9373 (frame_command): Call print_stack_frame, instead of
9374 show_and_print_stack_frame.
9375 (up_command): Ditto.
9376 (down_command): Ditto.
9377 * frame.h (print_only_stack_frame): Delete prototype.
9378 * infrun.c (normal_stop): Call print_stack_frame, instead of
9379 show_and_print_stack_frame.
9380 * thread.c (info_threads_command): Call print_stack_frame, instead
9381 of print_only_stack_frame.
9382
3f5a3016
AC
93832003-01-13 Andrew Cagney <[email protected]>
9384
d99ba314
AC
9385 * README (Graphical interface to GDB): Update URL. Point at
9386 gdb/links/.
9387
3f5a3016
AC
9388 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
9389 version match.
9390
083ae935
DJ
93912003-01-13 Daniel Jacobowitz <[email protected]>
9392
9393 * symtab.c (find_pc_sect_line): Don't consider end-of-function
9394 lines.
9395
5365276c
DJ
93962003-01-13 Daniel Jacobowitz <[email protected]>
9397
9398 * thread-db.c (attach_thread): Prototype.
9399 (struct private_thread_info): Remove lwpid. Add thread handle (th),
9400 thread information (ti), and valid flags (th_valid, ti_valid).
9401 (attach_thread): Move target_pid_to_str call to after the thread
9402 is added to GDB's list. Initialize the cache.
9403 (thread_get_info_callback, thread_db_map_id2thr)
9404 (thread_db_get_info): New functions.
9405 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
9406 (thread_db_store_registers, thread_db_thread_alive)
9407 (thread_db_get_thread_local_address): Use them.
9408 (thread_db_pid_to_str): Likewise. Return "Missing" instead
9409 of calling error() for threads in unknown state.
9410
9411 (clear_lwpid_callback): New function.
9412 (thread_db_resume): Use it to clear the cache.
9413
9fc30b6b
DJ
94142003-01-13 Daniel Jacobowitz <[email protected]>
9415
9416 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
9417 (resume_callback): Remove dead code.
9418
8f871025
AC
94192003-01-13 Andrew Cagney <[email protected]>
9420
9421 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
9422 predicate.
9423 * gdbarch.h, gdbarch.c: Regenerate.
9424 * stack.c (frame_info): Only initialize the saved registers when
9425 FRAME_INIT_SAVED_REGS_P.
9426 * frame.c (frame_saved_regs_register_unwind): Assert
9427 FRAME_INIT_SAVED_REGS_P.
9428 (deprecated_generic_get_saved_register): Ditto.
9429
3f565f1e
DJ
94302003-01-13 Daniel Jacobowitz <[email protected]>
9431
9432 * source.c (openp): Squelch warning about "filename".
9433
072b1022
DJ
94342003-01-13 Daniel Jacobowitz <[email protected]>
9435
9436 * source.c (openp): If the file does not exist don't necessarily
9437 search the path.
9438
973ccf8b
DJ
94392003-01-13 Daniel Jacobowitz <[email protected]>
9440
9441 Fix PR gdb/872.
9442 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
9443 (integer_types_same_name_p): New function.
9444 (rank_one_type): Use it.
9445 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
9446
030292b7
DJ
94472003-01-13 Daniel Jacobowitz <[email protected]>
9448
9449 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
9450 variables.
9451 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
9452 * configure.in: Add --with-sysroot.
9453 * configure: Regenerated.
9454 * main.c (gdb_sysroot): New variable.
9455 (captured_main): Initialize gdb_sysroot.
9456 * defs.h (gdb_sysroot): New extern declaration.
9457 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
9458
afb5d334
MC
94592003-01-12 Michael Chastain <[email protected]>
9460
9461 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
9462
751ceeb4
MC
94632003-01-12 Michael Chastain <[email protected]>
9464
9465 * top.c (print_gdb_version): Bump copyright year to 2003.
9466
94cd26f8
DC
94672003-01-12 David Carlton <[email protected]>
9468
9469 * linespec.c (symtab_from_filename): Rename variable 's' to
9470 'file_symtab'.
9471
1ce79225
AC
94722003-01-12 Andrew Cagney <[email protected]>
9473
9474 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
9475 dummy frame.
9476 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
9477
fa1fd571
AC
94782003-01-12 Andrew Cagney <[email protected]>
9479
9480 * d10v-tdep.c: Include "gdb_assert.h".
9481 (d10v_store_return_value): Rewrite to match current interface.
9482 (d10v_extract_struct_value_address): Ditto.
9483 (d10v_extract_return_value): Ditto.
9484 (d10v_gdbarch_init): Set store_restore_value,
9485 extract_struct_value_address and extract_return_value.
9486
68b8d23e
JB
94872003-01-12 J. Brobecker <[email protected]>
9488
9489 * hpread.c (set_namestring): New procedure replacing the
9490 SET_NAMESTRING macro.
9491 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
9492 by calls to set_namestring.
9493
94942003-01-11 J. Brobecker <[email protected]>
1fb309ea
JB
9495
9496 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
9497 a compilation warning.
9498 (hpread_process_one_debug_symbol): Likewise.
9499
88d262ca
DC
95002003-01-10 David Carlton <[email protected]>
9501
9502 * linespec.c (decode_line_1): Rename variable 's' to
9503 'file_symtab'.
9504 (decode_all_digits): Rename argument 's' to 'file_symtab'.
9505 (decode_dollar): Ditto.
9506 (decode_variable): Ditto.
9507 (symbol_found): Ditto.
9508
86669319
MC
95092003-01-09 Michael Chastain <[email protected]>
9510
9511 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
9512
616a9dc4
CV
95132003-01-07 Corinna Vinschen <[email protected]>
9514
9515 * win32-nat.c (set_process_privilege): New function.
9516 (child_attach): Call set_process_privilege() to enable the
9517 SE_DEBUG_NAME user privilege if available in process token.
9518
3269bcfa
JB
95192003-01-10 J. Brobecker <[email protected]>
9520
9521 * hpread.c (hpread_process_one_debug_symbol): Fix a small
9522 compilation error in the previous revision.
9523
2b0ee454
DC
95242003-01-09 David Carlton <[email protected]>
9525
9526 * linespec.c: Update copyright.
9527
b3ba1b44
DJ
95282003-01-09 Daniel Jacobowitz <[email protected]>
9529
9530 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
9531 than inferior_ptid.
9532 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
9533
4ef3f3be
AC
95342003-01-09 Andrew Cagney <[email protected]>
9535
479ab5a0
AC
9536 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
9537 Update comments.
9538 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
9539 (frame_saved_regs_zalloc): Update.
9540 (frame_saved_regs_register_unwind): Update.
9541 (create_new_frame): Update.
9542 (get_prev_frame): Update.
9543 (frame_extra_info_zalloc): Update.
9544 (deprecated_get_frame_saved_regs): Update.
9545 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
9546 * cris-tdep.c: Update comment.
9547
bde58177
AC
9548 * somsolib.h: Fix function indentation.
9549 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
9550 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
9551 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
9552 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
9553 * somsolib.c, inftarg.c: Remove assignment in if conditional.
9554
4ef3f3be
AC
9555 * infrun.c (follow_fork): Use ISO C definition.
9556 * expprint.c (print_subexp): Use xfree instead of free.
9557 * charset.c: Include "gdb_string.h" instead of <string.h>.
9558 (register_iconv_charsets): Use ISO C definition.
9559 (host_charset, target_charset): Ditto.
9560 * Makefile.in (charset.o): Update dependencies.
9561 (mi-cmd-env.o): Update dependencies.
9562
1c615f7a
AC
95632003-01-08 Andrew Cagney <[email protected]>
9564
9565 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
9566 get_frame_base.
9567
c9a1dc08
AC
95682003-01-08 Andrew Cagney <[email protected]>
9569
9570 * gdb_mbuild.sh: Add --keep option. When specified, keep the
9571 build directories. Save edited gdb output in Mbuild.log. If a
9572 build fails, remove any final GDB executable.
9573
dbad9d94
AC
95742003-01-08 Andrew Cagney <[email protected]>
9575
9576 * gdb_mbuild.sh: Edit the output of `maint print architecture'
9577 replacing hex constants with function names and stripping leading
9578 file name directory prefixes.
9579
8d357cca
AC
95802003-01-08 Andrew Cagney <[email protected]>
9581
9582 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
9583 get_frame_base.
9584
bca02a8a
DC
95852003-01-08 David Carlton <[email protected]>
9586
9587 * linespec.c (decode_line_1): Move code into decode_variable.
9588 (decode_variable): New function.
9589
7f8ab3a0
AC
95902003-01-08 Andrew Cagney <[email protected]>
9591
9592 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
9593
7b5849cc
AC
95942003-01-08 Andrew Cagney <[email protected]>
9595
9596 * cris-tdep.c (cris_frame_init_saved_regs): Use
9597 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
9598 saved_regs buffer.
9599 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9600 (sh64_nofp_frame_init_saved_regs): Ditto.
9601 (sh_fp_frame_init_saved_regs): Ditto.
9602 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
9603 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9604 * mcore-tdep.c (analyze_dummy_frame): Ditto.
9605 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9606
72a5efb3
DJ
96072003-01-08 Daniel Jacobowitz <[email protected]>
9608
9609 * minsyms.c (lookup_minimal_symbol): Update comment.
9610 (lookup_minimal_symbol_text): Update comment. Use the hash table.
9611 (lookup_minimal_symbol_solib_trampoline): Likewise.
9612
11c02a10
AC
96132003-01-08 Andrew Cagney <[email protected]>
9614
aab3ea25
AC
9615 * d10v-tdep.c (d10v_init_extra_frame_info): Use
9616 frame_relative_level.
9617
da50a4b7
AC
9618 * alpha-tdep.c: Use get_frame_extra_info.
9619 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9620 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
9621 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9622 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
9623
11c02a10
AC
9624 * alpha-tdep.c: Use get_next_frame.
9625 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9626 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
9627 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
9628 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
9629 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
9630 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
9631 * xstormy16-tdep.c: Ditto.
8ffd9b1b 9632
1e2330ba
AC
96332003-01-07 Andrew Cagney <[email protected]>
9634
9635 * alpha-tdep.c: Use get_frame_base.
9636 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9637 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
9638 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
9639 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9640 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
9641 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
9642 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
9643 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 9644
2d75187b
AC
96452003-01-07 Andrew Cagney <[email protected]>
9646
9647 * frame.c (deprecated_get_frame_context): New function.
9648 (deprecated_set_frame_context): New function.
9649 * frame.h (deprecated_get_frame_context): Declare.
9650 (deprecated_set_frame_context): Declare.
9651 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
9652 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 9653
483d36b2
AC
96542003-01-07 Andrew Cagney <[email protected]>
9655
9656 * frame.c (deprecated_set_frame_next_hack): New function.
9657 (deprecated_set_frame_prev_hack): New function.
9658 * frame.h (deprecated_set_frame_next_hack): Declare.
9659 (deprecated_set_frame_prev_hack): Declare.
9660 * mcore-tdep.c (analyze_dummy_frame): Use
9661 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
9662 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9663
14e91ac5
DC
96642003-01-07 David Carlton <[email protected]>
9665
9666 * linespec.c (decode_line_1): Move code into decode_dollar.
9667 (decode_dollar): New function.
9668
b0c6b05c
AC
96692003-01-07 Andrew Cagney <[email protected]>
9670
9671 * arm-tdep.c (arm_init_extra_frame_info): Use
9672 deprecated_update_frame_base_hack.
9673 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
9674 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9675 (fix_frame_pointer): Ditto.
9676 (mn10300_analyze_prologue): Ditto.
9677
a00a19e9
AC
96782003-01-07 Andrew Cagney <[email protected]>
9679
9680 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
9681 extra_info using frame_extra_info_zalloc.
9682 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9683 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
9684 (sh64_init_extra_frame_info): Ditto.
9685 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
9686 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
9687 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9688 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
9689 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
9690 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
9691 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
9692 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
9693 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
9694 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
9695 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9696 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
9697
9698 * mn10300-tdep.c (analyze_dummy_frame): Use
9699 deprecated_set_frame_extra_info_hack.
9700 * mcore-tdep.c (analyze_dummy_frame): Ditto.
9701
1fb4c65b
JB
97022003-01-07 J. Brobecker <[email protected]>
9703
9704 * mdebugread.c (parse_symbol): Skip stProc entries which storage
9705 class is not scText. These do not define "real" procedures.
9706 (parse_partial_symbols): Likewise.
9707
9fe7d6bf
MS
97082003-01-06 Michael Snyder <[email protected]>
9709
9710 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
9711
f6c609c4
AC
97122003-01-06 Andrew Cagney <[email protected]>
9713
9714 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
9715 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
9716 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
9717 deprecated_frame_xmalloc_with_cleanup.
9718 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
9719 deprecated_frame_xmalloc.
9720 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
9721 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
9722
d995ff4b
AC
97232003-01-06 Andrew Cagney <[email protected]>
9724
84dc46cb
AC
9725 * x86-64-linux-tdep.c: Include "osabi.h".
9726 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
9727
d995ff4b
AC
9728 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
9729
66140c26
AC
97302003-01-06 Andrew Cagney <[email protected]>
9731
9732 * MAINTAINERS (Target Instruction Set Architectures): Update
9733 arm-elf. Can be built with -Werror, has been multiarched.
9734
9735 * value.h (unpack_long): Make buffer parameter constant.
9736 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
9737 * scm-lang.h (scm_parse): Ditto.
9738 * defs.h (extract_typed_address, extract_address): Ditto.
9739 (extract_long_unsigned_integer): Ditto.
9740 * inferior.h (unsigned_pointer_to_address): Ditto.
9741 (signed_pointer_to_address): Ditto.
9742 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
9743 * gdbarch.h, gdbarch.c: Regenerate.
9744 * findvar.c (extract_long_unsigned_integer): Update.
9745 (extract_address): Update.
9746 (extract_typed_address): Update.
9747 (unsigned_pointer_to_address): Update.
9748 * values.c (unpack_long): Update.
9749 (unpack_double): Update.
9750 (unpack_pointer): Update.
9751 (unpack_field_as_long): Update.
9752 * d10v-tdep.c (d10v_pointer_to_address): Update.
9753 * avr-tdep.c (avr_pointer_to_address): Update.
9754 * scm-lang.c (scm_unpack): Update.
9755 * findvar.c (signed_pointer_to_address): Update.
9756
b089b3da
ML
97572003-01-06 Michal Ludvig <[email protected]>
9758
8ffd9b1b 9759 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
9760 since it is in i386-tdep.c.
9761
aff87235
JB
97622003-01-06 J. Brobecker <[email protected]>
9763
9764 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
9765 failure introduced in the previous change.
9766
34f5e845
MC
97672003-01-05 Michael Chastain <[email protected]>
9768
9769 * README: Remove references to deleted remote-*.c files:
9770 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
9771 remote-nrom.c, remote-os9k.c, remote-udi.c.
9772
28bcfd30
MK
97732003-01-05 Mark Kettenis <[email protected]>
9774
9775 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
9776 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
9777 i386_get_longjmp_target.
9778
15a5b3ee
AC
97792003-01-05 Andrew Cagney <[email protected]>
9780
9781 * arm-tdep.c (prologue_cache): Change to a pointer.
9782 (_initialize_arm_tdep): Allocate prologue_cache.
9783 (check_prologue_cache): Update.
9784 (save_prologue_cache): Update.
9785 (arm_gdbarch_init): Update.
9786
c263362b
DJ
97872003-01-04 Daniel Jacobowitz <[email protected]>
9788
9789 * stabsread.c (update_method_name_from_physname): Call complaint()
9790 instead of error.
9791
51603483
DJ
97922003-01-04 Daniel Jacobowitz <[email protected]>
9793
9794 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
9795 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
9796 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
9797
9798 * blockframe.c: Include "gdbcmd.h" and "command.h".
9799 (backtrace_below_main): New variable.
9800 (file_frame_chain_valid, func_frame_chain_valid)
9801 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
9802 (generic_func_frame_chain_valid): Remove functions.
9803 (frame_chain_valid, do_flush_frames_sfunc): New functions.
9804 (_initialize_blockframe): New function.
9805 * Makefile.in (blockframe.o): Update dependencies.
9806 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
9807 comment. Call frame_chain_valid ().
9808 * frame.h: Remove old prototypes. Add prototype for
9809 frame_chain_valid and update comments to match.
9810 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
9811 Remove old comment.
9812 * gdbarch.h: Regenerated.
9813 * gdbarch.c: Regenerated.
9814
9815 * alpha-tdep.c (alpha_gdbarch_init): Don't call
9816 set_gdbarch_frame_chain_valid.
9817 * avr-tdep.c (avr_gdbarch_init): Likewise.
9818 * cris-tdep.c (cris_gdbarch_init): Likewise.
9819 * frv-tdep.c (frv_gdbarch_init): Likewise.
9820 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
9821 * i386-tdep.c (i386_svr4_init_abi): Likewise.
9822 (i386_nw_init_abi): Likewise.
9823 (i386_gdbarch_init): Likewise.
9824 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
9825 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
9826 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
9827 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
9828 * mips-tdep.c (mips_gdbarch_init): Likewise.
9829 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9830 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
9831 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9832 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9833 * s390-tdep.c (s390_gdbarch_init): Likewise.
9834 * sh-tdep.c (sh_gdbarch_init): Likewise.
9835 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
9836 * v850-tdep.c (v850_gdbarch_init): Likewise.
9837 * vax-tdep.c (vax_gdbarch_init): Likewise.
9838 * x86-64-tdep.c (x86_64_init_abi): Likewise.
9839
9840 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
9841 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
9842 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
9843 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
9844 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
9845 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
9846 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
9847 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
9848
b00a8037
DJ
98492002-01-04 Daniel Jacobowitz <[email protected]>
9850
9851 * Makefile.in (acconfig_h): Remove incorrect macro.
9852 (config_h): Define.
9853 (osabi.o): Update dependencies.
9854 * configure.tgt: Set gdb_osabi based on target triplet.
9855 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
9856 * configure: Regenerated.
9857 * config.in: Regenerated.
9858 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
9859 (GDB_OSABI_DEFAULT): Define if not already defined.
9860 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
9861 (set_osabi_string): New variables.
9862 (gdbarch_register_osabi): Add new OS ABI to
9863 gdb_osabi_available_names.
9864 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
9865 (set_osabi, show_osabi): New functions.
9866 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
9867
4be87837
DJ
98682003-01-04 Daniel Jacobowitz <[email protected]>
9869
9870 * arch-utils.c (gdbarch_info_init): Set osabi to
9871 GDB_OSABI_UNINITIALIZED.
9872 * gdbarch.sh: Add osabi to struct gdbarch and to struct
9873 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
9874 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
9875 * gdbarch.c: Regenerated.
9876 * gdbarch.h: Regenerated.
9877 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
9878 there's no BFD.
9879 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
9880 * osabi.h (enum gdb_osabi): Move to defs.h.
9881 (gdbarch_init_osabi): Update prototype.
9882 * defs.h (enum gdb_osabi): Moved here.
9883 * Makefile.in: Update dependencies.
9884
9885 * alpha-tdep.h: Don't include "osabi.h".
9886 (struct gdbarch_tdep): Remove osabi member.
9887 * alpha-tdep.c: Include "osabi.h".
9888 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9889 iterate over arches. Update call to gdbarch_init_osabi.
9890 (alpha_dump_tdep): Don't dump osabi.
9891 * alpha-linux-tdep.c: Include "osabi.h".
9892 * alpha-osf1-tdep.c: Include "osabi.h".
9893 * alphafbsd-tdep.c: Include "osabi.h".
9894 * alphanbsd-tdep.c: Include "osabi.h".
9895
9896 * arm-tdep.h: Don't include "osabi.h".
9897 (struct gdbarch_tdep): Remove osabi member.
9898 * arm-tdep.c: Include "osabi.h".
9899 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9900 iterate over arches. Update call to gdbarch_init_osabi.
9901 (arm_dump_tdep): Don't dump osabi.
9902 * arm-linux-tdep.c: Include "osabi.h".
9903 * armnbsd-tdep.c: Include "osabi.h".
9904
9905 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
9906 Update call to gdbarch_init_osabi.
9907
9908 * i386-tdep.h: Don't include "osabi.h".
9909 (struct gdbarch_tdep): Remove osabi member.
9910 * i386-tdep.c: Include "osabi.h".
9911 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9912 iterate over arches. Update call to gdbarch_init_osabi.
9913 (i386_dump_tdep): Don't dump osabi.
9914 * i386-linux-tdep.c: Include "osabi.h".
9915 * i386-sol2-tdep.c: Include "osabi.h".
9916 * i386bsd-tdep.c: Include "osabi.h".
9917 * i386gnu-tdep.c: Include "osabi.h".
9918 * i386ly-tdep.c: Include "osabi.h".
9919 * i386nbsd-tdep.c: Include "osabi.h".
9920 * i386obsd-tdep.c: Include "osabi.h".
9921
9922 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
9923 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9924 check osabi when iterating over arches. Update call to
9925 gdbarch_init_osabi.
9926 (mips_dump_tdep): Don't dump osabi.
9927
9928 * ns32k-tdep.h: Don't include "osabi.h".
9929 (struct gdbarch_tdep): Remove.
9930 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
9931 gdbarch_lookup_osabi. Don't iterate over arches. Don't
9932 allocate tdep. Update call to gdbarch_init_osabi.
9933 (ns32k_dump_tdep): Remove.
9934 (_initialize_ns32k_tdep): Update call to gdbarch_register.
9935 * ns32knbsd-tdep.c: Include "osabi.h".
9936
9937 * ppc-tdep.h: Don't include "osabi.h".
9938 (struct gdbarch_tdep): Remove osabi member.
9939 * rs6000-tdep.c: Include "osabi.h".
9940 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
9941 osabi when iterating over arches. Update call to
9942 gdbarch_init_osabi.
9943 (rs6000_dump_tdep): Don't dump osabi.
9944 * ppc-linux-tdep.c: Include "osabi.h".
9945 * ppcnbsd-tdep.c: Include "osabi.h".
9946
9947 * sh-tdep.h: Don't include "osabi.h".
9948 (struct gdbarch_tdep): Remove osabi member.
9949 * sh-tdep.c: Include "osabi.h".
9950 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9951 iterate over arches. Update call to gdbarch_init_osabi.
9952 (sh_dump_tdep): Don't dump osabi.
9953 * shnbsd-tdep.c: Include "osabi.h".
9954
9955 * sparc-tdep.c: Include "osabi.h".
9956 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9957 iterate over arches. Update call to gdbarch_init_osabi.
9958 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
9959 tdep structure.
9960
9961 * vax-tdep.h: Don't include "osabi.h".
9962 (struct gdbarch_tdep): Remove.
9963 * vax-tdep.c: Include "osabi.h".
9964 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9965 iterate over arches. Don't allocate tdep. Update call
9966 to gdbarch_init_osabi.
9967 (vax_dump_tdep): Remove.
9968 (_initialize_vax_tdep): Update call to gdbarch_register.
9969
a881cf8e
DJ
99702003-01-04 Daniel Jacobowitz <[email protected]>
9971
9972 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
9973 entirely.
9974 (breakpoint_re_set_one): Don't fetch the value for a disabled
9975 watchpoint.
9976
1e698235
DJ
99772003-01-04 Daniel Jacobowitz <[email protected]>
9978
9979 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
9980 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
9981 (COERCE_FLOAT_TO_DOUBLE): Remove.
9982 * gdbarch.c: Regenerate.
9983 * gdbarch.h: Regenerate.
9984 * Makefile.in: Remove value_h from gdbarch_h.
9985 * valops.c (coerce_float_to_double): New variable.
9986 (default_coerce_float_to_double): Remove.
9987 (standard_coerce_float_to_double): Remove.
9988 (value_arg_coerce): Use coerce_float_to_double.
9989 (_initialize_valops): Add "set coerce-float-to-double".
9990 * value.h (default_coerce_float_to_double): Remove prototype.
9991 (standard_coerce_float_to_double): Remove prototype.
9992
9993 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
9994 prototyped.
9995 * mdebugread.c (parse_symbol): Likewise.
9996 * stabsread.c (define_symbol): Mark all functions as prototyped.
9997
9998 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
9999 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10000 set_gdbarch_coerce_float_to_double.
10001 * arm-tdep.c (arm_gdbarch_init): Likewise.
10002 * frv-tdep.c (frv_gdbarch_init): Likewise.
10003 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10004 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10005 * mips-tdep.c (mips_gdbarch_init): Likewise.
10006 (mips_coerce_float_to_double): Remove.
10007 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10008 (rs6000_coerce_float_to_double): Remove.
10009 * s390-tdep.c (s390_gdbarch_init): Likewise.
10010 * sh-tdep.c (sh_gdbarch_init): Likewise.
10011 (sh_coerce_float_to_double): Remove.
10012 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10013 (sparc_coerce_float_to_double): Remove.
10014 * v850-tdep.c (v850_gdbarch_init): Likewise.
10015 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10016 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10017 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10018 (hppa_coerce_float_to_double): Remove prototype.
10019 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10020
f436a26a
DJ
100212003-01-04 Daniel Jacobowitz <[email protected]>
10022
10023 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10024
248f8055
DJ
100252003-01-04 Daniel Jacobowitz <[email protected]>
10026
10027 Suggested by Stewart Brown <[email protected]>:
10028 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10029 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10030 (c_type_print_varspec_suffix): Likewise.
10031
72cfdc76
MK
100322003-01-04 Mark Kettenis <[email protected]>
10033
bfd260bb
MK
10034 * configure.in: Don't set and AC_SUBST SUBDIRS.
10035 * configure: Regenerated.
10036
72cfdc76
MK
10037 * configure.in: Remove code dealing with shared libraries.
10038 * Makefile.in: Remove HLDFLAGS and HLDENV.
10039 * configure: Regenerated.
10040
c8b8a898
AC
100412003-01-04 Andrew Cagney <[email protected]>
10042
10043 * frame.c (deprecated_frame_xmalloc): New function.
10044 (deprecated_set_frame_saved_regs_hack): New function.
10045 (deprecated_set_frame_extra_info_hack): New function.
10046 * frame.h (deprecated_frame_xmalloc): Declare.
10047 (deprecated_set_frame_saved_regs_hack): Declare.
10048 (deprecated_set_frame_extra_info_hack): Declare.
10049
14abd0fb
MK
100502003-01-04 Mark Kettenis <[email protected]>
10051
8ee53726
MK
10052 * configure.in: Move code that provides the --enable-gdbtk option
10053 right after the code that handles the --enable-tui option, and
10054 polish it somewhat.
10055 * configure: Regenerated.
10056
14abd0fb
MK
10057 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10058 AC_CHECK_FUNCS and remove the old check for pread64.
10059 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10060 * acconfig.h (_GNU_SOURCE): Add.
10061 (HAVE_PREAD64): Remove.
10062 * configure, aclocal.m4, config.in: Regenerated.
10063
b2fb4676
AC
100642003-01-03 Andrew Cagney <[email protected]>
10065
10066 * alpha-tdep.c: Use get_frame_saved_regs.
10067 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10068 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10069 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10070 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10071 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10072
8dcde887
MK
100732003-01-03 Mark Kettenis <[email protected]>
10074
10075 * configure.in: Remove all use of the SUBDIRS variable; add
10076 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10077 code providing the --enable-multi-ice option, and move it right in
10078 front of the code that checks whether gdbserver is supported.
10079 Polish that too.
10080 * configure: Regenerated.
10081 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10082 @SUBDIRS@.
10083
8ccd593b
AC
100842003-01-03 Andrew Cagney <[email protected]>
10085
10086 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10087 * avr-tdep.c, cris-tdep.c: Ditto.
10088 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10089 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 10090
91151a06
MK
100912003-01-03 Mark Kettenis <[email protected]>
10092
10093 * configure.in: Remove --enable-netrom option.
10094 * configure: Regenerated.
10095
8fe84d01
MK
100962003-01-03 Mark Kettenis <[email protected]>
10097
10098 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10099 declaration for `struct re_pattern_buffer' instead.
10100 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10101
f0394be6
JB
101022003-01-03 J. Brobecker <[email protected]>
10103
10104 * mdebugread.c (parse_symbol): Count until the stEnd matching
10105 the structure name.
10106
27e9bf90
MK
101072003-01-02 Mark Kettenis <[email protected]>
10108
93d331ba
MK
10109 * configure.in: Remove --with-cpu option.
10110 subscripts. Remove evil changequotes here.
10111 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10112 * config.in, configure: Regenerated.
8ffd9b1b 10113
27e9bf90
MK
10114 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10115 * configure.in: Cleanup section that sources GDB and BFD configure
10116 subscripts. Remove evil changequotes here.
10117 * config.in, configure: Regenerated.
10118
50abf9e5
AC
101192003-01-02 Andrew Cagney <[email protected]>
10120
10121 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10122 frame accessor methods.
10123 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10124 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10125 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10126 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10127 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10128 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10129 * z8k-tdep.c: Ditto.
8ffd9b1b 10130
287c1a40
MK
101312003-01-02 Mark Kettenis <[email protected]>
10132
f5dbc56d
MK
10133 * configure.in: Remove UI_OUT configuration code.
10134 * ada-lang.c: Update assuming UI_OUT is always true.
10135 * Makefile.in (UIOUT_CFLAGS): Remove.
10136 * configure: Regenerated.
10137 * TODO: Remove blurb about elimination of -DUI_OUT.
10138
627af7ea
MK
10139 * configure.in: Move code that provides the --enable-gdbcli,
10140 --enable-gdbmi options right before the code that handles the
10141 --enable-tui option. Polish a bit.
10142 * configure: Regenerated.
10143
06825bd1
MK
10144 * configure.in: Rewrite check for GNU regex and the
10145 --without-included regex option, and move it into the "Checks for
10146 library functions" section. This makes us use the system regex
10147 again by default on systems with version 2 of the GNU C library.
10148 This was apparently broken.
10149 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10150 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10151 * config.in, configure: Regenerated.
10152
287c1a40
MK
10153 * configure.in: Move code that provides the --enable-tui option
10154 before the "Checks for libraries" section. Polish the code
10155 somewhat and set need_curses to yes if we build the TUI. Rewrite
10156 code that looks for a library providing termcap functionality to
10157 match more closely what's done in the Readline library, and move
10158 it into to the "Checks for libraries" section.
10159 * configure: Regenerated.
10160 * Makefile.in (TERMCAP): Remove variable.
10161 * config/i386/go32.mh (TERMCAP): Remove variable.
10162
684e56bf
AC
101632003-01-02 Andrew Cagney <[email protected]>
10164
10165 * MAINTAINERS: Mention gdb_mbuild.sh.
10166 * gdb_mbuild.sh: Rewrite.
10167
e1ea1d75
MK
101682003-01-02 Mark Kettenis <[email protected]>
10169
10170 * configure.in: Fix typo in last change.
10171 * config.in, configure: Regenerated.
10172
1b831c93
AC
101732003-01-02 Andrew Cagney <[email protected]>
10174
10175 * valarith.c (value_binop): Delete obsolete code and comments.
10176 * configure.host: Ditto.
10177 * buildsym.h (make_blockvector): Ditto.
10178 * buildsym.c (make_blockvector): Ditto.
10179 * defs.h (enum language): Ditto.
10180 (chill_demangle): Ditto.
10181 * elfread.c (elf_symtab_read): Ditto.
10182 * dwarfread.c (CHILL_PRODUCER): Ditto.
10183 (set_cu_language): Ditto.
10184 (handle_producer): Ditto.
10185 * expprint.c (print_subexp): Ditto.
10186 * gdbtypes.c (chill_varying_type): Ditto.
10187 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10188 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10189 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10190 (chill_varying_type): Ditto.
10191 * language.h (_LANG_chill): Ditto.
10192 * language.c (binop_result_type, integral_type): Ditto.
10193 (character_type, string_type, structured_type): Ditto.
10194 (lang_bool_type, binop_type_check): Ditto.
10195 * stabsread.h (os9k_stabs): Ditto.
10196 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10197 (define_symbol, read_type, read_struct_fields): Ditto.
10198 (read_array_type, read_enum_type, read_huge_number): Ditto.
10199 (read_range_type, start_stabs): Ditto.
10200 * symfile.c (init_filename_language_table): Ditto.
10201 (add_psymbol_with_dem_name_to_list): Ditto.
10202 * symtab.c (symbol_init_language_specific): Ditto.
10203 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10204 * symtab.h (struct general_symbol_info): Ditto.
10205 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10206 * typeprint.c (typedef_print): Ditto.
10207 * utils.c (fprintf_symbol_filtered): Ditto.
10208 * valops.c (value_cast, search_struct_field, value_slice): Delete
10209 obsolete code.
10210 (varying_to_slice): Delete function.
10211 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10212 (varying_to_slice): Delete declaration.
10213 * MAINTAINERS: Update.
10214
8bb2c122
MK
102152003-01-02 Mark Kettenis <[email protected]>
10216
97bf5e38
MK
10217 * configure.in: Reorganize "Checks for library functions section"
10218 a bit. Remove check for `btowc' and `isascii' functions.
10219 * configure: Regenerated.
10220
5ee754fc
MK
10221 * acconfig.h (_MSE_INT_H): Remove.
10222 * configure.in: Create "Checks for header files" section, and move
10223 appropriate tests there. Don't check for objlist.h, wchar.h,
10224 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10225 misdetection fix. Also add "Checks for types", "Checks for
10226 compiler characteristics" and "Checks for library functions"
10227 sections.
10228 * config.in, configure: Regenerated.
10229
8bb2c122
MK
10230 * configure.in: Create "Checks for programs" section, and move
10231 appropriate tests there.
10232
9a156167
MK
102332003-01-01 Mark Kettenis <[email protected]>
10234
10235 * configure.in: Create "Checks for libraries" section, and move
10236 appropriate tests there. Cleanup check for wctype in libw. Use
10237 AC_SEARCH_LIBS to see whether we need libsocket.
10238 * configure: Regenerated.
10239
a80e2bcb 10240For older changes see ChangeLog-2002
c906108c
SS
10241\f
10242Local Variables:
10243mode: change-log
10244left-margin: 8
10245fill-column: 74
10246version-control: never
10247End:
This page took 2.124198 seconds and 4 git commands to generate.