fix changelog date
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f786f615
AC
12003-08-08 Andrew Cagney <cagney@redhat.com>
2
3 * interps.c (interp_set): Check for a NULL "old_interp".
4
c938e9b0
L
52003-08-08 H.J. Lu <hongjiu.lu@intel.com>
6
7 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
8 (install-only): Support DESTDIR.
9 (uninstall): Likewise.
10 (install-gdbtk): Likewise.
11
9a146a11
EZ
122003-08-08 Elena Zannoni <ezannoni@redhat.com>
13
14 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
15 contains something meaningful at all times.
16
17Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 18
62599e99 19 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 20
56296155
BC
21Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
22
62599e99 23 * MAINTAINERS (write after approval): Added self.
56296155 24
9710e734
AC
252003-08-07 Andrew Cagney <cagney@redhat.com>
26
27 * inferior.h (AT_SYMBOL): Define.
28 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
29 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
30 * mips-tdep.c (mips_call_dummy_address): Delete function.
31 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
32 set call_dummy_address.
33
98b3ab73
AC
342003-08-07 Andrew Cagney <cagney@redhat.com>
35
36 * language.c (op_error): Delete function.
37 (binop_type_check): Delete function.
38 * language.h (type_op_error, range_op_error): Delete macros.
39 (op_error): Delete declaration.
40
2fcf52f0
AC
412003-08-07 Andrew Cagney <cagney@redhat.com>
42
43 * interps.h (INTERP_MI2, INTERP_MI3): Define.
44
abd4220e 452003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 46
abd4220e 47 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 48 (x86_64_push_arguments): Skip the red zone.
abd4220e 49
9dd5f34f
AC
502003-08-05 Andrew Cagney <cagney@redhat.com>
51
52 * reggroups.c (reggroup_next): Check for the final entry.
53
e5e78edc
AC
542003-08-04 Andrew Cagney <cagney@redhat.com>
55
ab4e3d93
AC
56 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
57 * cli/cli-script.c (define_command): Call query directly, instead
58 of passing it a buffer.
59 * ocd.c (ocd_error): Pass error a constant format string.
60 * remote-mips.c (mips_error): Use fputs_filtered.
61
1062ca82
AC
62 * solib-svr4.c (_initialize_svr4_solib): Update
63 register_gdbarch_data call.
64 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
65
fcc1c85c
AC
66 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
67 (register_gdbarch_data): Delete "free" parameter. Update
68 comments.
69 * gdbarch.h, gdbarch.c: Re-generate.
70 * reggroups.c (_initialize_reggroup): Update.
71 * gnu-v3-abi.c (init_gnuv3_ops): Update.
72 * frame-base.c (_initialize_frame_base): Update.
73 * frame-unwind.c (_initialize_frame_unwind): Update.
74 * user-regs.c (_initialize_user_regs): Update.
75 * remote.c (_initialize_remote): Update.
76 * regcache.c (_initialize_regcache): Update.
77
116f06ea
AC
78 * regcache.c (xfree_regcache_descr): Delete function.
79 (_initialize_regcache): Update call to register_gdbarch_data.
80 (init_regcache_descr, init_legacy_regcache_descr): Use
81 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
82
e5e78edc
AC
83 * remote.c (free_remote_state): Delete function.
84 (_initialize_remote): Update register_gdbarch_data.
85 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
86 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
87
6c7d17ba
AC
882003-08-04 Andrew Cagney <cagney@redhat.com>
89
90 * reggroups.c (struct reggroup_el): Define.
91 (struct reggroups): Delete field "nr_group". Replace array
92 "group" with a "first" to "last" linked list.
93 (reggroups_init): Update. Allocate using gdbarch's obstack.
94 (reggroups_free): Delete function.
95 (add_group): Update. Add "el" parameter.
96 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
97 (default_groups): Update.
98 (reggroup_next): Replace reggroups.
99 (reggroups_dump): Update.
100 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
101 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
102 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
103
89b7795b
DJ
1042003-08-04 Daniel Jacobowitz <drow@mvista.com>
105
106 * Makefile.in (tui-interp.o): Update dependencies.
107
306d9ac5
DC
1082003-08-04 David Carlton <carlton@kealia.com>
109
110 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
111 to internal_error call.
112 * source.c (forward_search_command): Add "%s" format argument.
113 (reverse_search_command): Ditto.
114 * top.c (quit_confirm): Ditto.
115 * cli/cli-setshow.c (do_setshow_command): Ditto.
116 * cp-valprint.c (cp_print_class_method): Replace
117 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
118 (cp_print_class_member): Ditto.
119 * event-top.c (command_line_handler): Ditto.
120 * linux-proc.c (linux_info_proc_cmd): Ditto.
121 * p-typeprint.c (pascal_type_print_base): Ditto.
122 * p-valprint.c (pascal_object_print_class_method): Ditto.
123 (pascal_object_print_class_member): Ditto.
124 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
125 * remote.c (remote_cisco_section_offsets): Ditto.
126 * top.c (command_line_input): Ditto.
127 * utils.c (vwarning,error_stream,quit): Ditto.
128 * valprint.c (print_floating,print_binary_chars)
129 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
130
57bfe177
AC
1312003-08-04 Andrew Cagney <cagney@redhat.com>
132
133 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
134
e546b999
AC
1352003-08-02 Andrew Cagney <cagney@redhat.com>
136
137 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
138 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
139 amd64fbsd-nat.c.
140
91092ee5
AC
1412003-08-02 Andrew Cagney <cagney@redhat.com>
142
143 * Makefile.in: Update all dependencies and definitions.
144
889f28e2
AF
1452003-08-02 Adam Fedor <fedor@gnu.org>
146
147 * linespec.c (is_objc_method_format): New function
148 (decode_line_1, locate_first_half): Use it.
149 Fixes PR objc/1298
150
880bc914
AC
1512003-08-01 Andrew Cagney <cagney@redhat.com>
152
153 * NEWS: Mention that m32r is multi-arch.
154 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
155 * configure.tgt: Recognize m32r-*-*.
156 * config/m32r/tm-m32r.h: Delete file.
157 * config/m32r/m32r.mt: New file.
158 * m32r-rom.c (m32r_upload_command): Use hostent only when
159 gethostname succeeds, in order to avoid a compilation
160 warning.
161 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
162 compiler warning.
163
19f59343
MS
1642003-08-01 Michael Snyder <msnyder@redhat.com>
165
166 * sh-tdep.c (sh_frame_align): New gdbarch method.
167 (sh_gdbarch_init): Set up frame_align method.
168
4e7d7511
MS
1692003-07-31 Michael Snyder <msnyder@redhat.com>
170
171 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
172 which is already covered by the new frames infrastructure.
173
63022984
AC
1742003-07-31 Andrew Cagney <cagney@redhat.com>
175
176 * user-regs.c (struct user_reg): Add "next" link.
177 (struct user_regs): Replace "user" with "first" and "last" links.
178 (append_user_reg): Add pre-allocated "reg" parameter.
179 (builtin_user_regs): Provide initial value for "last".
180 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
181 (user_regs_init): Allocate memory from the gdbarch obstack.
182 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
183 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
184 linked list.
185 (usernum_to_user_reg): New function.
186 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
187 (value_of_user_reg): Use usernum_to_user_reg.
188 (user_regs_free): Delete function.
189 (_initialize_user_regs): Update register_gdbarch_data call.
190
7cf6e574
DJ
1912003-07-31 Daniel Jacobowitz <drow@mvista.com>
192
193 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
194
c48a845b
MS
1952003-07-30 Michael Snyder <msnyder@redhat.com>
196
4e7d7511 197 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
198 * infcall.c (call_function_by_hand): Pass struct_addr to
199 value_being_returned.
200 * infcmd.c (print_return_value): Pass zero as struct_addr.
201 * values.c (value_being_returned): If struct_addr is passed,
202 use it instead of trying to recover it from the inferior.
203
f0d8db19
KB
2042003-07-30 Kevin Buettner <kevinb@redhat.com>
205
206 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
207 the prologue analyzer won't need to attempt to extract the pc
208 value from the woefully incomplete dummy frame.
209 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
210 possible. Disable code which modifies the frame.
211
e5c113a1
AC
2122003-07-28 Andrew Cagney <cagney@redhat.com>
213
214 * annotate.c (annotate_breakpoints_headers): Restrict annotation
215 to level 2.
216 (annotate_breakpoints_table, annotate_record): Ditto.
217 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
218 (annotate_field_name_end, annotate_field_value): Ditto.
219 (annotate_field_end, annotate_frame_source_begin): Ditto.
220 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
221 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
222 (annotate_frame_begin, annotate_frame_function_name): Ditto.
223 (annotate_frame_address_end, annotate_frame_address): Ditto.
224 (annotate_frame_args, annotate_frame_end): Ditto.
225 (annotate_frame_where, annotate_arg_begin): Ditto.
226 (annotate_arg_name_end, annotate_arg_value): Ditto.
227 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
228 (annotate_function_call, annotate_signal_name): Ditto.
229 (annotate_signal_string, annotate_signal_name_end): Ditto.
230 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
231 (annotate_value_begin, annotate_value_history_value): Ditto.
232 (annotate_value_history_end, annotate_value_end): Ditto.
233 (annotate_display_begin, annotate_display_number_end): Ditto.
234 (annotate_display_format, annotate_display_expression): Ditto.
235 (annotate_display_expression_end, annotate_display_value): Ditto.
236 (annotate_display_end, annotate_array_section_begin): Ditto.
237 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
238 (annotate_elt, annotate_array_section_end): Ditto.
239
bb1db049
AC
2402003-07-28 Andrew Cagney <cagney@redhat.com>
241
242 * regcache.c (struct regcache_descr): Update comments on
243 nr_raw_registers.
244 (init_legacy_regcache_descr): Don't set nr_raw_registers or
245 sizeof_raw_register_valid_p.
246 (init_regcache_descr): Set nr_raw_registers and
247 sizeof_raw_register_valid_p before calling
248 init_legacy_regcache_descr.
249
20e6603c
AC
2502003-07-28 Andrew Cagney <cagney@redhat.com>
251
252 * mips-tdep.c (print_gp_register_row): Print the GPR's register
253 MOD NUM_REGS.
254
db742940
DJ
2552003-07-28 Daniel Jacobowitz <drow@mvista.com>
256
257 * thread.c (info_threads_command): Use get_selected_frame ().
258 Check that there is at least one non-sentinel frame.
259
ce7f4371
SC
2602003-07-27 Stephane Carrez <stcarrez@nerim.fr>
261
262 * m68hc11-tdep.c (struct frame_extra_info): Remove.
263 (m68hc11_pop_frame): Remove.
264 (m68hc11_frame_saved_pc): Remove.
265 (m68hc11_frame_chain): Remove.
266 (m68hc11_frame_init_saved_regs): Remove.
267 (m68hc11_init_extra_frame_info): Remove.
268 (m68hc11_store_struct_return): Remove.
269 (m68hc11_saved_pc_after_call): Remove.
270
1ea653ae
SC
2712003-07-27 Stephane Carrez <stcarrez@nerim.fr>
272
273 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
274 frame unwind information.
275 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
276 and adapted for frame unwinding.
277 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
278 (m68hc11_unwind_pc): New function.
279 (m68hc11_frame_unwind_cache): New function to analyze frames.
280 (m68hc11_frame_this_id): New function to create new frame struct.
281 (m68hc11_frame_prev_register): New function to unwind a register from
282 the frame.
283 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
284 (m68hc11_frame_p): New function for the above.
285 (m68hc11_frame_base_address): New function to return fp of frame.
286 (m68hc11_frame_args_address): Update for frame.
287 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
288 (m68hc11_unwind_sp): New function.
289 (m68hc11_unwind_dummy_id): New function.
290 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
291 calls.
292
c8a7f6ac
SC
2932003-07-27 Stephane Carrez <stcarrez@nerim.fr>
294
295 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
296 (m68hc11_guess_from_prologue): Advance the pc and frame size only
297 when we are beyond the current pc.
298
3dc990bf
SC
2992003-07-27 Stephane Carrez <stcarrez@nerim.fr>
300
301 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
302 from m68hc11_push_arguments.
303 (m68hc11_push_arguments): Remove.
304 (m68hc11_push_return_address): Remove.
305 (m68hc11_gdbarch_init): Install the above; remove above deprecated
306 handlers; remove deprecated_extra_stack_alignment_needed.
307
222e5d1d
AC
3082003-07-27 Andrew Cagney <cagney@redhat.com>
309
310 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
311 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
312 REAL_PC and not the pointer.
313 * hppa-hpux-tdep.c: Include frame.h
314
a7e9a47e
AC
3152003-07-27 Andrew Cagney <cagney@redhat.com>
316
317 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
318 GDB_MULTI_ACH_PARTIAL.
319
7e3dd49e
AC
3202003-07-27 Andrew Cagney <cagney@redhat.com>
321
322 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
323 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
324 operator at start and not end of line.
325 (decode_prologue): Ditto.
326 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
327 frame_unwind_register_unsigned instead of
328 frame_unwind_unsigned_register.
329 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
330 read_register.
331 (m32r_push_dummy_call): Use register_size instead of
332 REGISTER_RAW_SIZE.
333 (m32r_frame_sniffer): Replace m32r_frame_p.
334 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
335 * m32r-rom.c (report_transfer_performance): Delete extern
336 declaration.
337 (m32r_load, m32r_upload_command): Use print_transfer_performance
338 instead of report_transfer_performance.
339 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
340 / add_show_from_set.
341
0880807f
AC
3422003-07-26 Andrew Cagney <cagney@redhat.com>
343
344 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
345 store_return_value and extract_struct_value_address.
346
64ae9269
DJ
3472003-07-26 Daniel Jacobowitz <drow@mvista.com>
348
349 PR c++/1267
350 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
351 NULL, default to the section containing PC.
352
e286caf2
SC
3532003-07-24 Stephane Carrez <stcarrez@nerim.fr>
354
355 * NEWS: Mention "regs" deprecated for m68hc11 too.
356
357 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
358 (m68hc11_print_register): New function to print out one register.
359 (m68hc11_print_registers_info): New function to print registers.
360 (show_regs): Deprecate and use the above.
361 (m68hc11_gdbarch_init): Install the print_registers_info.
362
705b278b
JJ
3632003-07-24 Jeff Johnston <jjohnstn@redhat.com>
364
365 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
366 that we have a SIGTRAP before returning non-zero.
367
63cd4198
EZ
3682003-07-23 Michal Ludvig <mludvig@suse.cz>
369 Elena Zannoni <ezannoni@redhat.com>
370
371 * linespec.c (decode_line_2): Avoid crash if
372 find_function_start_sal() returns empty record.
373
6926787d
AS
3742003-07-23 Andreas Schwab <schwab@suse.de>
375
376 * ia64-tdep.c (ia64_print_insn): New function.
377 (ia64_gdbarch_init): Set print_insn to it.
378 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
379 deprecated_tm_print_insn_info.
380
708cc1b6
MS
3812003-07-22 Michael Snyder <msnyder@redhat.com>
382
383 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
384 handle 8-bit returns (long long).
385 (h8300h_extract_return_value): Ditto.
386 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
387
aebd7893
AC
3882003-07-22 Andrew Cagney <cagney@redhat.com>
389
390 * gdbarch.c Include "gdb_obstack.h".
391 (struct gdbarch): Add an "obstack".
392 (alloc_gdbarch_data): Allocate the gdbarch data using
393 GDBARCH_OBSTACK_CALLOC.
394 (free_gdbarch_data): Delete function.
395 (gdbarch_obstack_zalloc): New function.
396 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
397 Assert that the architecture is not initialized.
398 (gdbarch_alloc): Allocate an obstack, allocate the architecture
399 vector from the obstack.
400 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
401 architecture obstack.
402 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
403 (set_gdbarch_data): Assert that the data is not initialized.
404 (struct gdbarch_data): Delete member "free".
405 (register_gdbarch_data): Do not initialize "free".
406 * gdbarch.h, gdbarch.c: Re-generate.
407
153721e6
AC
4082003-07-22 Andrew Cagney <cagney@redhat.com>
409
410 * configure.in (build_warnings): Add -Wformat-nonliteral.
411 * configure: Re-generate.
412
c193f044 4132003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
414
415 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 416
c3228f12
EZ
4172003-07-22 Elena Zannoni <ezannoni@redhat.com>
418
419 * findvar.c (read_var_value): Remove case for thread local storage
420 variables. It is now entirely handled by the dwarf2 location
421 expression code.
422 * printcmd.c (address_info): Ditto.
423 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
424 enumeration value.
425 (struct symbol): Remove objfile field, which was used by
426 LOC_THREAD_LOCAL_STATIC only.
427 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
428 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
429 usage of objfile pointer.
430 * dwarf2loc.c (locexpr_describe_location): Add case to handle
431 thread local variables.
432 Add include of objfiles.h.
433 * dwarf2expr.c (execute_stack_op): Add comments about thread local
434 storage variables.
435 * Makefile.in (dwarf2loc.o): Update dependencies.
436
aef9bcd2
AC
4372003-07-22 Andrew Cagney <cagney@redhat.com>
438
439 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
440 get_frame_base.
441 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
442 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
443 (struct value): Add opaque declaration.
444 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
445
d95a8903
AC
4462003-07-21 Andrew Cagney <cagney@redhat.com>
447
448 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
449 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
450
4db73d49
SC
4512003-07-20 Stephane Carrez <stcarrez@nerim.fr>
452
453 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
454 regcache_cooked_read_unsigned instead of read_register.
455 (m68hc11_saved_pc_after_call): Likewise.
456 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
457 instead of write_register.
458 (m68hc11_register_type): New function.
459 (m68hc11_register_virtual_type): Remove.
460 (m68hc11_store_return_value): Convert to use the regcache.
461 (m68hc11_extract_struct_value_address): Likewise.
462 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
463 m68hc11_register_type; undeprecate store_return_value and
464 extract_struct_value_address.
465
ef2b8fcd
SC
4662003-07-20 Stephane Carrez <stcarrez@nerim.fr>
467
468 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
469 and translate to use regcache.
470 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
471
625b0b97
AC
4722003-07-18 Andrew Cagney <cagney@redhat.com>
473
474 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
475 * gdbarch.h, gdbarch.c: Re-generate.
476 * i386-tdep.c (i386_gdbarch_init): Do not set
477 DWARF2_BUILD_FRAME_INFO.
478 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
479 unconditionally.
480 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
481 DWARF2_BUILD_FRAME_INFO.
482
22b0d388
AC
4832003-07-18 Andrew Cagney <cagney@redhat.com>
484
485 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
486 * disasm.c (gdb_disassemble_info): Initilize di.arch.
487
1ce5d6dd
AC
4882003-07-18 Andrew Cagney <cagney@redhat.com>
489
490 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
491 frame_unwind_address_in_block, instead of frame_pc_unwind.
492 (dwarf2_frame_cache): Ditto.
493
e6e5e94c
AC
4942003-07-18 Andrew Cagney <cagney@redhat.com>
495
496 * user-regs.h (struct gdbarch): Declare opaque.
497 * ui-out.h (struct ui_file): Declare opaque.
498 * dwarf2-frame.h (struct frame_info): Declare opaque.
499
5483d879
KW
5002003-07-18 Kris Warkentin <kewarken@qnx.com>
501
502 * nto-procfs.c: Clean ARI hits. Change #include <..> to
503 #include "...".
504 (procfs_meminfo): Change strerror to safe_strerror.
505 (procfs_can_run): Remove K&R badness.
506
278a7cf7
MS
5072003-07-17 Michael Snyder <msnyder@redhat.com>
508
509 * remote-sim.c: Comment typo fix.
510
606e3b82
AC
5112003-07-17 Andrew Cagney <cagney@redhat.com>
512
513 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
514 configure.
515 * sparc-tdep.c (sparc_intreg_size): Make non-static.
516 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
517 GDB_MULTI_ARCH_PARTIAL.
518
c43af07c
EZ
5192003-07-17 Elena Zannoni <ezannoni@redhat.com>
520
521 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
522 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
523 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
524
3b85b0f1
TR
5252003-07-16 Theodore A. Roth <troth@openavr.org>
526
527 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
528 found.
529 (avr_frame_unwind_cache): Don't unwind FP for main.
530 Update a comment.
531 Save the computed prev_sp.
532 (avr_saved_regs_unwinder): Remove function.
533 (avr_frame_prev_register): Use PC unwind logic from
534 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
535
336d1bba
AC
5362003-07-16 Andrew Cagney <cagney@redhat.com>
537
538 * frame-base.h (frame_base_p_ftype): Delete definition.
539 (frame_base_append_predicate): Delete declaration.
540 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
541 (frame_unwind_append_predicate): Delete declaration.
542 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
543 (append_predicate): Delete parameter "p".
544 (frame_unwind_append_predicate): Delete function.
545 (frame_unwind_append_sniffer): Update call to append_predicate.
546 (frame_unwind_free): Delete function.
547 (_initialize_frame_unwind): Pass NULL as "free" to
548 register_gdbarch_data.
549 (frame_unwind_init): Append the dummy_frame_sniffer.
550 (frame_unwind_find_by_frame): Simplify.
551 * frame-base.c (struct frame_base_table): Delete field "p".
552 (append_predicate): Delete parameter "p".
553 (frame_base_append_predicate): Delete function.
554 (frame_base_append_sniffer): Update call to append_predicate.
555 (frame_base_free): Delete function.
556 (frame_base_find_by_frame): Simplify.
557 (_initialize_frame_base): Pass NULL as "free" to
558 register_gdbarch_data.
559 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
560 (x86_64_sigtramp_frame_sniffer): Replace
561 "x86_64_sigtramp_frame_p".
562 (x86_64_init_abi): Set the frame unwind sniffers.
563 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
564 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
565 (m68k_gdbarch_init): Set the frame unwind sniffers.
566 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
567 "i386_sigtramp_frame_p".
568 (i386_frame_sniffer): Replace "i386_frame_p".
569 (i386_gdbarch_init): Set the frame unwind sniffers.
570 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
571 (avr_gdbarch_init): Set the frame unwind sniffers.
572 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
573 "alpha_sigtramp_frame_p"
574 (alpha_heuristic_frame_sniffer): Replace
575 "alpha_heuristic_frame_p".
576 (alpha_gdbarch_init): Set the frame unwind sniffers.
577 (alpha_dwarf2_init_abi): Ditto.
578 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
579 "alpha_debug_frame_p".
580 (alpha_mdebug_frame_base_sniffer): Replace
581 "alpha_mdebug_frame_base_p".
582 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
583 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
584 (d10v_gdbarch_init): Set the frame unwind sniffer.
585 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
586 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
587 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
588 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
589 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
590 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
591
48db5a3c
CV
5922003-07-16 Michael Snyder <msnyder@redhat.com>
593
594 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
595 should go thru sh_dsp_register_sim_regno, else the dsp regs
596 will not get the right values.
597
5982003-07-16 Corinna Vinschen <vinschen@redhat.com>
599
600 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
601 deprecated_store_floating by call to store_typed_floating.
602 (sh_sh4_register_convert_to_raw): Substitute call to
603 deprecated_extract_floating by call to extract_typed_floating.
604
6052003-07-16 Corinna Vinschen <vinschen@redhat.com>
606
607 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
608
6092003-07-16 Corinna Vinschen <vinschen@redhat.com>
610
611 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
612 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
613 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
614 as possible.
615 (do_pseudo_register): Remove.
616 (sh_push_dummy_code): New function.
617 (sh64_store_struct_return): Rename from sh_store_struct_return.
618 Only called for sh64 now.
619 (sh_extract_struct_value_address): Regcache'ify.
620 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
621 and accomodate new tasks.
622 (sh64_push_return_address): Rename from sh_push_return_address.
623 Only called for sh64 now.
624 (sh_default_extract_return_value): Rename from sh_extract_return_value.
625 Regcache'ify.
626 (sh3e_sh4_extract_return_value): Regcache'ify.
627 (sh_default_store_return_value): Ditto.
628 (sh3e_sh4_store_return_value): Ditto.
629 (sh_default_register_byte): Remove.
630 (sh_sh4_register_byte): Remove.
631 (sh_default_register_raw_size): Remove.
632 (sh_sh4_register_raw_size): Remove.
633 (sh_register_virtual_size): Remove.
634 (sh_sh3e_register_virtual_type): Remove.
635 (sh_sh3e_register_type): New function.
636 (sh_sh4_register_virtual_type): Remove.
637 (sh_sh4_register_type): New function.
638 (sh_default_register_virtual_type): Remove.
639 (sh_default_register_type): New function.
640 (do_fv_register_info): Add parameters to accomodate call from
641 sh_print_registers_info.
642 (do_dr_register_info): Ditto.
643 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
644 Add parameters to accomodate call from sh_print_registers_info.
645 (sh_do_fp_register): Ditto.
646 (sh64_do_pseudo_register): Call do_dr_register_info,
647 do_fv_register_info and sh_do_fp_register with default parameters.
648 (sh_do_register): Add parameters to accomodate call from
649 sh_print_registers_info.
650 (sh_print_register): Ditto.
651 (sh_print_registers_info): Rename from sh_do_registers_info.
652 Add parameters to be used as gdbarch_print_registers_info
653 implementation. Accomodate removed do_pseudo_register function
654 pointer.
655 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
656 function pointer. Call sh_print_register with default parameters.
657 (sh64_do_registers_info): Call sh_print_registers_info instead of
658 sh_do_registers_info.
659 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
660 detection of deprecated vs. non-deprecated functionality.
661 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
662 function pointer assignments by direct function calls.
663
e8a89fe2
AC
6642003-07-15 Andrew Cagney <cagney@redhat.com>
665
666 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
667 (frame_register_unwind, create_new_frame): Ditto.
668 (legacy_get_prev_frame, get_frame_type): Ditto.
669 (get_frame_base_address): Use frame_base_find_by_frame.
670 (get_frame_locals_address): Use frame_base_find_by_frame.
671 (get_frame_args_address): Use frame_base_find_by_frame.
672 * frame-base.h (frame_base_sniffer_ftype): Declare.
673 (frame_base_append_sniffer): Declare.
674 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
675 * frame-base.c (append_predicate): Add a "sniffer" parameter.
676 (frame_base_append_sniffer): New function.
677 (frame_base_append_predicate): Add a NULL sniffer.
678 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
679 (struct frame_base_table): Add "sniffer".
680 (frame_base_free): Free the "sniffer" table.
681 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
682 (frame_unwind_append_sniffer): Declare.
683 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
684 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
685 (struct frame_unwind_table): Add "sniffer", delete "middle".
686 (append_predicate): Add "sniffer" parameter, append the sniffer.
687 (frame_unwind_init): Update append_predicate call.
688 (frame_unwind_append_sniffer): New function.
689 (frame_unwind_append_predicate): Update append_predicate call.
690 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
691
0714963c
AC
6922003-07-15 Andrew Cagney <cagney@redhat.com>
693
694 * frame.c (get_prev_frame): Move disabled inside_entry_func to
695 before code inhibiting repeated unwind attempts. Add to
696 commentary on that test's problems.
697 * blockframe.c (inside_main_func): Look for "main" in the minimal
698 symbol table.
699 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
700 identical.
701
d9170e22
AC
7022003-07-15 Andrew Cagney <cagney@redhat.com>
703
704 * complaints.c (struct explanation): Define.
705 (struct complaints): Change type of "explanation" to "struct
706 explanation".
707 (symfile_explanations): Convert to a "struct explanation" table.
708 (vcomplaint): Update.
709
eba29c8c
ML
7102003-07-15 Michal Ludvig <mludvig@suse.cz>
711
712 * x86-64-linux-nat.c (regmap): Removed.
713 (supply_gregset, fill_gregset): Call
714 x86_64_linux_(fill,supply)_gregset functions.
715 * x86-64-linux-tdep.c (USER_*): New defines.
716 (user_to_gdb_regmap, x86_64_core_fns): New structure.
717 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
718 New functions.
719 (fetch_core_registers): Ditto.
720 (_initialize_x86_64_linux_tdep): Call add_core_fns().
721 * x86-64-linux-tdep.h: New file.
722 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
723 and core-regset.o.
724 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
725
68cc0bfb
MK
7262003-07-13 Mark Kettenis <kettenis@gnu.org>
727
88a115f7
MK
728 * x86-64-tdep.c (x86_64_store_return_value): Use
729 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 730
68cc0bfb
MK
731 * configure.host: Add x86_64-*-freebsd*.
732 * configure.tgt: Add x86_64-*-freebsd*.
733 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
734 * amd64fbsd-nat.c: New file.
735 * amd64fbsd-tdep.c: New file.
736 * config/i386/nm-fbsd64.h: New file.
737 * config/i386/fbsd64.mh: New file.
738 * config/i386/fbsd64.mt: New file.
739
138e7be5
MK
7402003-07-11 Mark Kettenis <kettenis@gnu.org>
741
742 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
743 `sc_regs_offset' and `sc_fpregs_offset'.
744 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
745 SIGFRAME_FPREGSAVE_OFF): Remove defines.
746 (alpha_sigtramp_register_address): Rewrite to use new members of
747 `struct gdbarch_tdep'.
748 (alpha_gdbarch_init): Initialize new members of struct
749 gdbarch_tdep'.
750 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
751 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
752 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
753 (alphafbsd_pc_in_sigtramp): Implement.
754 (alphafbsd_sigtramp_offset): New function.
755 (alphafbsd_sigcontext_addr): New function.
756 (alphafbsd_init_abi): Initialize signal trampoline related members
757 of `struct gdbarch_tdep'.
758 (_initialize_alphafbsd_tdep): Add prototype.
759
95303a68
TR
7602003-07-11 Theodore A. Roth <troth@openavr.org>
761
ba292e4c
TR
762 * Makefile.in (install-only): Quote sed expression when generating
763 transformed_name.
95303a68 764
6896c0c7
RH
7652003-07-11 Richard Henderson <rth@redhat.com>
766
767 * Makefile.in (dwarf2-frame.o): Add complaints_h.
768 * dwarf2-frame.c: Include complaints.h.
769 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
770 variable initialization; return NULL on error.
771 (decode_frame_entry): New.
772
8edd5d01
AC
7732003-07-11 Andrew Cagney <cagney@redhat.com>
774
c4a09524
AC
775 * frame.h (frame_address_in_block): Delete declaration.
776 * blockframe.c (frame_address_in_block): Delete function.
777 (get_frame_block): Use get_frame_address_in_block.
778 (block_innermost_frame): Ditto.
779 * stack.c (print_frame, backtrace_command_1): Ditto.
780
8edd5d01
AC
781 * frame.h (get_frame_address_in_block): Declare.
782 (frame_unwind_address_in_block): Declare.
783 * frame.c (frame_unwind_address_in_block): New function.
784 (get_frame_address_in_block): New function.
785
f7968451
AC
7862003-07-10 Andrew Cagney <cagney@redhat.com>
787
788 * gdbarch.sh: Simplify predicate methods. Remove need to provide
789 pre-default. Note: re-generate has no effect.
790
ae99b398
AC
7912003-07-10 Andrew Cagney <cagney@redhat.com>
792
793 * gdbarch.sh: When a variable, but not a function, compare against
794 0. Fix problem in previous patch.
795 * gdbarch.c: Re-generate.
796
956ac328
AC
7972003-07-10 Andrew Cagney <cagney@redhat.com>
798
799 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
800 functions against NULL, not 0.
801 * gdbarch.c: Re-generate.
802
287c3240
FF
8032003-07-10 Fred Fish <fnf@ninemoons.com>
804
805 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
806 null string instead of a null pointer.
807 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
808
32f63c4b
MS
8092003-07-09 Michael Snyder <msnyder@redhat.com>
810
811 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
812
402ecd56
MK
8132003-07-09 Mark Kettenis <kettenis@gnu.org>
814
815 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
816 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
817 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
818 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
819 * x86-64-tdep.c: ... from here.
820
c481dac7
AS
8212003-07-09 Andreas Schwab <schwab@suse.de>
822
823 * m68k-tdep.h (enum struct_return): Define.
824 (struct gdbarch_tdep): Add struct_return.
825 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
826 bytes are padded to the right, not to the left. Pass struct value
827 address in register %a1, not on stack.
828 (m68k_use_struct_convention): New function.
829 (m68k_gdbarch_init): Set use_struct_convention. Initialize
830 struct_return in tdep to pcc_struct_return.
831 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
832 reg_struct_return.
833
64176fa3
JB
8342003-07-09 Joel Brobecker <brobecker@gnat.com>
835
836 * somread.c (som_symfile_offsets): Fix compilation error.
837
96a4ee76
AC
8382003-07-09 Andrew Cagney <cagney@redhat.com>
839
840 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
841 Add comments about the checks.
842
1517c6d1
AC
8432003-07-08 Andrew Cagney <cagney@redhat.com>
844
845 * Makefile.in: Make dependency section headers consistent.
846 (config_h): Move to $BUILD headers section.
847 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
848 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
849 (ada-exp.tab.c): Move to YACC/LEX section.
850 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
851 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
852
dc5dd1eb
KW
8532003-07-08 Kris Warkentin <kewarken@qnx.com>
854
855 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
856 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
857 of strerror with safe_strerror, use ISO C function definitions,
858 and replace instances of sprintf with snprintf.
dc5dd1eb 859
612dde91
AC
8602003-07-07 Andrew Cagney <cagney@redhat.com>
861
862 * frame.c (get_prev_frame): Enable check for identical frames.
863 Update comments. Update error messages.
864
492c11d3
JB
8652003-07-07 Joel Brobecker <brobecker@gnat.com>
866
867 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
868
376a5a49
JB
8692003-07-07 Joel Brobecker <brobecker@gnat.com>
870
871 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
872 sort_symtab_syms, no longer necessary.
873
22b4a9ad
JB
8742003-07-07 Joel Brobecker <brobecker@gnat.com>
875
876 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
877
5bbcb741
JB
8782003-07-07 Joel Brobecker <brobecker@gnat.com>
879
880 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
881 (mips_register_byte): Likewise.
882
c139e7d9
DJ
8832003-07-07 Daniel Jacobowitz <drow@mvista.com>
884
885 * Makefile.in (sparc_tdep_h): New.
886 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
887 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
888 * sparc-linux-nat.c: Include "sparc-tdep.h".
889 * sparc-nat.c: Likewise.
890 * sparc-tdep.c: Likewise.
891 * sparc64nbsd-nat.c: Likewise.
892 * sparcnbsd-nat.c: Likewise.
893 * sparcnbsd-tdep.c: Likewise.
894 * sparc-tdep.h: New file.
895 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
896 and sparc_npc_regnum.
897
fd8f87c5
DJ
8982003-07-07 Daniel Jacobowitz <drow@mvista.com>
899
900 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
901 (mips_linux_cannot_store_register): List supported instead of
902 unsupported registers.
903
13adf674
DJ
9042003-07-07 Daniel Jacobowitz <drow@mvista.com>
905
906 * disasm.c (dump_insns): Separate instructions from addresses.
907
8de307e0
AS
9082003-07-07 Andreas Schwab <schwab@suse.de>
909
910 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
911 dependencies.
912 * m68k-tdep.c (NUM_FREGS): Delete.
913 (SIG_PC_FP_OFFSET): Delete.
914 (TARGET_M68K): Delete.
915 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
916 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
917 P_MOVEL_SP, P_MOVEML_SP): Define.
918 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
919 P_TRAP): Delete.
920 (m68k_register_raw_size): Delete.
921 (m68k_register_virtual_size): Delete.
922 (m68k_register_type): Renamed from m68k_register_virtual_type and
923 add gdbarch argument.
924 (m68k_store_struct_return): Delete.
925 (m68k_deprecated_extract_return_value): Delete.
926 (m68k_deprecated_extract_struct_value_address): Delete.
927 (m68k_frame_chain): Delete.
928 (m68k_frame_saved_pc): Delete.
929 (m68k_fix_call_dummy): Delete.
930 (m68k_push_dummy_frame): Delete.
931 (m68k_pop_frame): Delete.
932 (m68k_extract_return_value): New function.
933 (m68k_store_return_value): Rewrite using regcache.
934 (m68k_extract_struct_value_address): Rewrite using regcache.
935 (m68k_push_dummy_call): New function.
936 (struct m68k_frame_cache): Define.
937 (m68k_alloc_frame_cache): New function.
938 (m68k_analyze_frame_setup): New function.
939 (m68k_analyze_register_saves): New function.
940 (m68k_analyze_prologue): New function.
941 (m68k_skip_prologue): Rewrite using above functions.
942 (m68k_unwind_pc): New function.
943 (m68k_frame_cache): New function.
944 (m68k_frame_this_id): New function.
945 (m68k_frame_prev_register): New function.
946 (m68k_frame_unwind): New variable.
947 (m68k_frame_p): New function.
948 (m68k_sigtramp_frame_cache): New function.
949 (m68k_sigtramp_frame_this_id): New function.
950 (m68k_sigtramp_frame_prev_register): New function.
951 (m68k_sigtramp_frame_unwind): New variable.
952 (m68k_sigtramp_frame_p): New function.
953 (m68k_frame_base_address): New function.
954 (m68k_frame_base): New function.
955 (m68k_unwind_dummy_id): New function.
956 (fill_gregset): Use regcache_collect.
957 (fill_fpregset): Likewise.
958 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
959 defined.
960 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
961 deprecated_init_frame_pc, deprecated_store_struct_return,
962 deprecated_extract_return_value, deprecated_store_return_value,
963 deprecated_frame_chain, deprecated_frame_saved_pc,
964 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
965 deprecated_register_virtual_size,
966 deprecated_max_register_raw_size,
967 deprecated_max_register_virtual_size,
968 deprecated_register_virtual_type, deprecated_register_size,
969 deprecated_register_byte, deprecated_register_bytes,
970 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
971 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
972 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
973 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
974 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
975 deprecated_push_dummy_frame, deprecated_pop_frame,
976 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
977 only if SYSCALL_TRAP is defined. Set extract_return_value,
978 store_return_value, extract_struct_value_address, register_type,
979 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
980 predicates.
981 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
982 M68K_MAX_REGISTER_SIZE): Define.
983 (struct m68k_sigtramp_info): Define.
984 (struct gdbarch_tdep): Add get_sigtramp_info.
985 * m68klinux-nat.c (fetch_register): Use register_size instead of
986 REGISTER_RAW_SIZE. Don't put assignment in if.
987 (store_register): Likewise.
988 (fetch_inferior_registers): Likewise.
989 (store_inferior_registers): Likewise.
990 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
991 (m68k_linux_frame_saved_pc): Delete.
992 (m68k_linux_sigcontext_reg_offset,
993 m68k_linux_ucontext_reg_offset): Define.
994 (m68k_linux_get_sigtramp_info): New function.
995 (m68k_linux_extract_return_value): Rewrite using regcache.
996 (m68k_linux_store_return_value): Likewise.
997 (m68k_linux_extract_struct_value_address): Likewise.
998 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
999 Don't set deprecated_frame_saved_pc,
1000 deprecated_extract_return_value, deprecated_store_return_value,
1001 deprecated_extract_struct_value_address. Set
1002 extract_return_value, store_return_value,
1003 extract_struct_value_address.
1004
eb8bc282
AC
10052003-07-07 Andrew Cagney <cagney@redhat.com>
1006
1007 * expprint.c: Include "user-regs.h" instead of "frame.h".
1008 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1009 frame_map_regnum_to_name.
1010 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1011 (frame_map_name_to_regnum): Simplify, call
1012 user_reg_map_name_to_regnum.
1013 (frame_map_regnum_to_name): Simplify, call
1014 user_reg_map_regnum_to_name.
1015 (frame_register_unwind): Update.
1016 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1017 (_initialize_frame_reg): Call user_reg_add_builtin.
1018 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1019 (value_of_register): Use value_of_user_reg.
1020 * eval.c (evaluate_subexp_standard): Update.
1021 * parse.c (write_dollar_variable): Update.
1022 * d10v-tdep.c (d10v_print_registers_info): Update.
1023 * infcmd.c (registers_info): Update.
1024 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1025 (builtin_regs_h): Delete macro.
1026 (user_regs_h): Define.
1027 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1028 (builtin-regs.o): Delete target.
1029 (user-regs.o): Specify dependencies.
1030 (expprint.o): Update dependencies.
1031 (findvar.o): Update dependencies.
1032 (frame.o): Update dependencies.
1033 (std-regs.o): Update dependencies.
1034
9f476a01
CF
10352003-07-06 Christopher Faylor <cgf@redhat.com>
1036
1037 * win32-nat.c (solib_symbols_add): Use one variable for all section
1038 address stuff. Pass variable rather than address of variable to
1039 safe_symbol_file_add.
1040
a731b831
AS
10412003-07-06 Andreas Schwab <schwab@suse.de>
1042
1043 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1044
9f83329d
JB
10452003-07-04 Joel Brobecker <brobecker@gnat.com>
1046
1047 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1048
27e28cc5
KW
10492003-07-04 Kris Warkentin <kewarken@qnx.com>
1050
1051 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1052
10532003-07-04 Kris Warkentin <kewarken@qnx.com>
1054
1055 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1056 * config/i386/nto.mh: New file.
1057 * config/i386/nm-nto.h: New file.
1058 * configure.host: Add i[3456]86-*-nto*.
1059
100f2e98
JB
10602003-07-03 Joel Brobecker <brobecker@gnat.com>
1061
1062 * remote-vx.c (vx_add_symbols): Fix compilation error.
1063
e23457df
AC
10642003-07-03 Andrew Cagney <cagney@redhat.com>
1065
1066 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1067 * gdbarch.h, gdbarch.c: Re-generate.
1068 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1069 (legacy_register_name): Declare.
1070 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1071 (REGISTER_NAME): Define.
1072 * sparc-tdep.c (legacy_register_name): New function.
1073 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1074 (REGISTER_NAME): Define.
1075 (hppa64_register_name): Declare.
1076 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1077 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1078 (hppa64_register_name): New function.
1079 (hppa_register_name): New function.
1080 * arch-utils.c (legacy_register_name): Delete.
1081 * arch-utils.h (legacy_register_name): Delete.
1082
38caaeec
DJ
10832003-07-03 Daniel Jacobowitz <drow@mvista.com>
1084
1085 * cli/cli-interp.c (cli_interpreter_resume): Update the
1086 cli_uiout's stream to gdb_stdout.
1087
dadd712e
AC
10882003-07-03 Andrew Cagney <cagney@redhat.com>
1089
1090 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1091 predicate.
1092 * gdbarch.h, gdbarch.c: Re-generate.
1093 * regcache.c (init_regcache_descr): Use legacy code when either
1094 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1095
c7f1390e
DJ
10962003-07-02 Daniel Jacobowitz <drow@mvista.com>
1097
1098 * NEWS: Move "set logging" entry into GDB 6.0 section.
1099
4bc8c588
JB
11002003-07-02 Jim Blandy <jimb@redhat.com>
1101
a9dd42f1
JB
1102 * s390-tdep.c (struct frame_extra_info): new member:
1103 'stack_bought_valid'.
1104 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1105 initialize fextra_info->stack_bought.
1106 (s390_frameless_function_invocation): Don't trust the value of
1107 fextra_info_ptr->stack_bought unless
1108 fextra_info->stack_bought_valid is set.
1109
4bc8c588
JB
1110 New S390 prologue analyzer.
1111 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1112 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1113 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1114 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1115 compute_x_addr, s390_on_stack, s390_store,
1116 s390_get_signal_frame_info): New functions.
1117 (S390_NUM_SPILL_SLOTS): New macro.
1118 (s390_get_frame_info): Rewritten.
1119 (is_arg_reg): Deleted.
1120
1121 Break out the decoding of S/390 instructions into separate
1122 functions, to make it more legible, and easier to check
1123 against the spec.
1124 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1125 is_rx, is_rxe): New functions.
1126 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1127 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1128 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1129 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1130 enums for opcode values. (Is this an improvement?)
1131
fd13a04a
AC
11322003-07-02 Andrew Cagney <cagney@redhat.com>
1133
1134 * i386-tdep.c: Revert change committed as part of trad-frame code
1135 below.
1136
3f8091c1
DJ
11372003-07-02 Daniel Jacobowitz <drow@mvista.com>
1138
1139 * breakpoint.c (insert_catchpoint): Make static.
1140
8dd5115e
AS
11412003-07-02 Andreas Schwab <schwab@suse.de>
1142
1143 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1144 former ia64_push_arguments and ia64_push_return_address, and use
1145 regcache functions instead of read/write_register.
1146 (ia64_gdbarch_init): Set push_dummy_call instead of
1147 deprecated_push_arguments and deprecated_push_return_address.
1148
a2229c23
AJ
11492003-07-01 Andreas Jaeger <aj@suse.de>
1150
1151 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1152 before the call.
1153 Set %rax only to number of SSE registers used.
1154
3b3850e8
AC
11552003-07-01 Andrew Cagney <cagney@redhat.com>
1156
1157 * trad-frame.h: Update comments, a -1 .addr is reserved.
1158 (trad_frame_value_p, trad_frame_addr_p): Declare.
1159 (trad_frame_reg_p): Declare.
1160 (trad_frame_set_value): Rename trad_frame_register_value.
1161 (trad_frame_set_unknown): Declare.
1162 * trad-frame.c (trad_frame_realreg_p): New function.
1163 (trad_frame_addr_p, trad_frame_value_p): New function.
1164 (trad_frame_set_unknown): New function.
1165 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1166 (trad_frame_prev_register): Use trad_frame_realreg_p,
1167 trad_frame_addr_p and trad_frame_value_p.
1168 (trad_frame_set_value): Rename trad_frame_register_value.
1169 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1170 and trad_frame_set_value.
a2229c23 1171
4d819d0e
JB
11722003-06-30 Jim Blandy <jimb@redhat.com>
1173
1174 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1175 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1176 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1177 for 16 registers, and then 32 more bytes.
1178 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1179 New macros.
1180 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1181 Move up in the file, since it's now used by is_simple_arg.
1182 (is_simple_arg): Don't assume registers are four bytes long.
1183 Exclude all double arguments. Extended floats are not simple
1184 args.
1185 (is_power_of_two): New function.
1186 (pass_by_copy_ref): Call is_power_of_two, and check that the
1187 length fits in a register, rather than listing all the acceptable
1188 sizes. Extended floats are not passed by reference.
1189 (s390_push_arguments): Don't assume registers are four bytes long.
1190 Reserve an argument register to point to the buffer for structures
1191 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1192 S390_STACK_FRAME_OVERHEAD.
1193
1ad828f1
AS
11942003-06-30 Andreas Schwab <schwab@suse.de>
1195
1196 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1197 format error message.
1198
39b00981
JB
11992003-06-30 Joel Brobecker <brobecker@gnat.com>
1200
1201 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1202
b2a7f303
DC
12032003-06-30 David Carlton <carlton@kealia.com>
1204
1205 Band-aid for PR c++/1245.
1206 * Makefile.in (cp-support.o): Depend on complaints_h.
1207 * cp-support.c: Include complaints.h. Add declaration for
1208 find_last_component.
1209 (cp_find_first_component): Separate code into
1210 cp_find_first_component_aux.
1211 (cp_find_first_component_aux): Call demangled_name_complaint.
1212 (demangled_name_complaint): New.
1213
a257b5bb
AC
12142003-06-30 Andrew Cagney <cagney@redhat.com>
1215
1216 * remote.c (remote_write_bytes): Explicitly compute and then use
1217 the payload size. Update comments to reflect. Fixes problem of
1218 GDB not sending small packets as found by Fred Fish.
1219
0a2cfde4
AC
12202003-06-30 Andrew Cagney <cagney@redhat.com>
1221
1222 * remote.c (remote_async_wait): Fix -Wformat problem.
1223
3fcb8548
AC
12242003-06-29 Andrew Cagney <cagney@redhat.com>
1225
1226 * remote.c (remote_wait): Call error, and not warning, when the
1227 packet is corrupt.
1228 (remote_async_wait): Ditto.
1229
9f9970a3
DJ
12302003-06-29 Daniel Jacobowitz <drow@mvista.com>
1231
1232 * sparc-tdep.c (sparc_y_regnum): Make external again.
1233
83a8ccca
DJ
12342003-06-29 Daniel Jacobowitz <drow@mvista.com>
1235
1236 * cli/cli-logging.c (pop_output_files): Add void to function
1237 definition.
1238
d2cf594a
AC
12392003-06-29 Andrew Cagney <cagney@redhat.com>
1240
1241 * frame.c (frame_register_unwind): Use unsigned char when dumping
1242 the buffer contents.
1243
0fac0b41
DJ
12442003-06-28 Daniel Jacobowitz <drow@mvista.com>
1245
1246 * cli/cli-logging.c: New file.
1247 * cli-out.c (struct ui_out_data): Add original_stream.
1248 (cli_redirect): New function.
1249 (cli_ui_out_impl): Add cli_redirect.
1250 (cli_out_new): Initialize original_stream.
1251 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1252 (uo_redirect, ui_out_redirect): New.
1253 * ui-out.h (struct ui_out_impl): Add redirect member.
1254 (redirect_ftype): New.
1255 (ui_out_redirect): Add prototype.
1256 * Makefile.in: Add rules for cli-logging.c.
1257 * NEWS: Mention "set logging".
1258
88a07d7c
EZ
12592003-06-27 Elena Zannoni <ezannoni@redhat.com>
1260
1261 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1262
4eb58876
AC
12632003-06-27 Andrew Cagney <cagney@redhat.com>
1264
1265 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1266 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1267 * avr-tdep.c (avr_call_dummy_address): Delete function.
1268 (avr_gdbarch_init): Do not set call_dummy_address.
1269
1549f619
EZ
12702003-06-27 Elena Zannoni <ezannoni@redhat.com>
1271
1272 * symfile.c (syms_from_objfile): Move variables to inner block.
1273 Move the checks for the non-mainline case a bit earlier to avoid
1274 doing some useless computations.
1275
3cb3398d
EZ
12762003-06-27 Elena Zannoni <ezannoni@redhat.com>
1277
1278 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1279
3799ccc6
EZ
12802003-06-26 Elena Zannoni <ezannoni@redhat.com>
1281
1282 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1283 sections.
1284
ce1f6491
MC
12852003-06-26 Michael Chastain <mec@shout.net>
1286
1287 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1288 gdb/testsuite/gdb.c++/pr-1210.exp.
1289
d958dfd0
AC
12902003-06-26 Andrew Cagney <cagney@redhat.com>
1291
1292 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1293 altivec_expression.h and altivec_registers.h.
1294
d31431ed
AC
12952003-06-26 Andrew Cagney <cagney@redhat.com>
1296
1297 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1298 info->mach when MIPS16. Patch suggested by Fred Fish.
1299
714b1282
AC
13002003-06-26 Andrew Cagney <cagney@redhat.com>
1301
1302 * utils.c (internal_vproblem): Print the problem to a reason
1303 buffer and then pass to query. Make the msg variable more local.
1304
42efa47a
AC
13052003-06-26 Andrew Cagney <cagney@redhat.com>
1306
1307 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1308 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1309 * gdbarch.h, gdbarch.c: Re-generate.
1310 * frame-base.c (default_frame_args_address): Update. Use
1311 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1312 not available.
1313 (default_frame_locals_address): Ditto for
1314 DEPRECATED_FRAME_LOCALS_ADDRESS.
1315 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1316 (vax_frame_num_args): Update.
1317 (vax_gdbarch_init): Update.
1318 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1319 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1320 * mcore-tdep.c (mcore_gdbarch_init): Update.
1321 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1322 * ia64-tdep.c (ia64_gdbarch_init): Update.
1323 * symtab.h (address_class): Update comments.
1324 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1325 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1326 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1327 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1328 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1329 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1330 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1331 * alpha-mdebug-tdep.c: Update.
1332 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1333
8ffd9b1b
AJ
13342003-06-26 Andreas Jaeger <aj@suse.de>
1335
1336 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1337 of SSE registers so that varargs functions work. Rework handling
1338 of passing arguments on the stack.
1339 (x86_64_store_return_value): Return double and float values in SSE
1340 register.
1341
e8ac10a6
MC
13422003-06-24 Michael Chastain <mec@shout.net>
1343
1344 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1345 the "constructor breakpoints ignored" bug.
1346
986af8e6
DC
13472003-06-25 David Carlton <carlton@kealia.com>
1348
1349 * MAINTAINERS: Update e-mail address.
1350
d64558a5
JB
13512003-06-24 Jim Blandy <jimb@redhat.com>
1352
e538d2d7
JB
1353 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1354
02631ec0
JB
1355 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1356 function.
1357 (ppc_linux_init_abi): Register it as the
1358 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1359
e716d87a
JB
1360 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1361 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1362 method.
1363
d64558a5
JB
1364 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1365 (ppc64_standard_linkage_target): Use it.
1366
449a5da4
AC
13672003-06-23 Andrew Cagney <cagney@redhat.com>
1368
1369 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1370 for 0 "int0" and 4 "int32" sized registers.
1371 * gdbtypes.c (builtin_type_int0): Define.
1372 (build_gdbtypes): Initialize builtin_type_int0.
1373 * gdbtypes.h (builtin_type_int0): Declare.
1374
b2a02dda
SC
13752003-06-23 Stephane Carrez <stcarrez@nerim.fr>
1376
1377 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1378 as characters are unsigned.
1379
fba3138e
DJ
13802003-06-22 Daniel Jacobowitz <drow@mvista.com>
1381
1382 PR gdb/1179
1383 * dwarfread.c (struct_type): Skip static fields without crashing.
1384
f6c8180b
AC
13852003-06-22 Andrew Cagney <cagney@redhat.com>
1386
1387 GDB 6.0 branch created.
f2c06f52
AC
1388 * README: Update.
1389 * PROBLEMS: Update. Empty.
1390 * NEWS: Update.
f6c8180b 1391
ae822768
DJ
13922003-06-22 Daniel Jacobowitz <drow@mvista.com>
1393
1394 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1395 Suggested by Nick Hibma <n_hibma@webweaving.org>.
1396
261de166
AC
13972003-06-22 Andrew Cagney <cagney@redhat.com>
1398
1399 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1400 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1401 Velikov.
1402
30e94205
DJ
14032003-06-22 Daniel Jacobowitz <drow@mvista.com>
1404
1405 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1406 compilers.
1407
9e14d721
DJ
14082003-06-21 Daniel Jacobowitz <drow@mvista.com>
1409
1410 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1411 argument of val_print.
1412 * cp-valprint.c (cp_print_value): Don't add the offset parameter
1413 to the address argument of baseclass_offset or target_read_memory.
1414 Do add it to the argument of cp_print_value_fields.
1415
a4b8ebc8
AC
14162003-06-21 Andrew Cagney <cagney@redhat.com>
1417
1418 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1419 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1420 instead of 0..NUM_REGS.
1421 (mips_register_reggroup_p): New function.
1422 (mips_pseudo_register_write): New function.
1423 (mips_pseudo_register_read): New function.
1424 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1425 based on the register's type.
1426 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
1427 cooked.
1428 (mips_get_saved_register): Simplify. Assert that REGNO is a
1429 pseudo / cooked.
1430 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
1431 (mips_register_type): Replace mips_register_virtual_type. Map
1432 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
1433 when available.
1434 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
1435 that the register is cooked / virtual.
1436 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
1437 Only get the extra info when needed.
1438 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
1439 (mips32_heuristic_proc_desc): Fetch the cooked register.
1440 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
1441 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
1442 (mips_print_register): Use gdbarch_register_type, instead of
1443 REGISTER_VIRTUAL_TYPE.
1444 (print_gp_register_row): Use gdbarch_register_type, instead of
1445 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
1446 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1447 Print the pseudo / cooked registers.
1448 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1449 Print the pseudo / cooked registers.
1450 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
1451 REG_NUM is pseudo / cooked.
1452 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
1453 (mips_n32n64_xfer_return_value): Ditto.
1454 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
1455 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1456 (mips_register_sim_regno): New function.
1457 (mips_gdbarch_init): Set deprecated_register_byte,
1458 register_group_p, pseudo_register_write, pseudo_register_read,
1459 register_sim_regno, and num_pseudo_regs. Set register_type,
1460 instead of register_virtual_type.
1461 * Makefile.in (mips-tdep.o): Update dependencies.
1462 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
1463 REGISTER_VIRTUAL_TYPE.
1464 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
1465 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
1466 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
1467 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
1468 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
1469
325ed089
DJ
14702003-06-21 Daniel Jacobowitz <drow@mvista.com>
1471
1472 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
1473 * cli/cli-cmds.c: Include "gdb_vfork.h".
1474 (shell_escape): Use vfork.
1475
f0e7d0e8
AC
14762003-06-21 Andrew Cagney <cagney@redhat.com>
1477
c57bb9fa
AC
1478 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
1479 32 bit floating-point register saves.
1480
6e51443a
AC
1481 * frame.h (deprecated_unwind_get_saved_register): Delete.
1482 * frame.c (deprecated_unwind_get_saved_register): Delete function.
1483 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
1484 and deprecated_get_next_frame_hack instead of
1485 deprecated_unwind_get_saved_register.
1486
ed183c7c
AC
1487 * mips-tdep.c (mips_dump_tdep): Do not print
1488 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
1489
f0e7d0e8
AC
1490 * frame.c (get_frame_register): New function.
1491 (frame_unwind_register_signed): New function.
1492 (get_frame_register_signed): New function.
1493 (frame_unwind_register_unsigned): New function.
1494 (get_frame_register_unsigned): New function.
1495 * frame.h: Add comments on naming schema.
1496 (get_frame_register, frame_unwind_register_signed): Declare.
1497 (get_frame_register_signed, get_frame_register_signed): Declare.
1498 (frame_unwind_register_unsigned): Declare.
1499 (get_frame_register_unsigned): Declare.
1500
2224d941
TR
15012003-06-20 Theodore A. Roth <troth@openavr.org>
1502
1503 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
1504
8619218d
TR
15052003-06-20 Theodore A. Roth <troth@openavr.org>
1506
1507 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
1508 (avr_read_sp): Ditto.
1509
0b1b50c0
DJ
15102003-06-20 Daniel Jacobowitz <drow@mvista.com>
1511
1512 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
1513 * config/arm/nm-linux.h: Likewise.
1514 * config/arm/tm-linux.h: Likewise.
1515 * config/ia64/nm-linux.h: Likewise.
1516 * config/ia64/tm-ia64.h: Likewise.
1517 * config/s390/tm-linux.h: Likewise.
1518 * config/s390/tm-s390.h: Likewise.
1519 * s390-nat.c: Likewise.
1520 * s390-tdep.c: Likewise.
1521
1522 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
1523 * config/ia64/linux.mt: Likewise.
1524 * config/m68k/linux.mh: Likewise.
1525 * config/mips/linux.mt: Likewise.
1526 * config/powerpc/linux.mh: Likewise.
1527 * config/sh/linux.mt: Likewise.
1528
c8c18e65
KW
15292003-06-19 Kris Warkentin <kewarken@qnx.com>
1530
1531 * solib.c (solib_open): Change tests for whether to search
1532 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
1533 comments.
1534
dcccef2e
TR
15352003-06-19 Theodore A. Roth <troth@openavr.org>
1536
1537 * avr-tdep.c (avr_frame_address): Delete function.
1538 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
1539 set_gdbarch_frame_args_address.
1540
5861a190
AC
15412003-06-19 Andrew Cagney <cagney@redhat.com>
1542
1543 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
1544 (REGISTER_CONVERT_FROM_TYPE): Delete.
1545 (mips_register_convert_to_type): Delete declaration.
1546 (mips_register_convert_from_type): Delete declaration.
1547 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
1548 kernel/.
1549
0274a8ce
MS
15502003-06-19 Michael Snyder <msnyder@redhat.com>
1551
1552 * linux-nat.h: New file.
1553 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 1554 * lin-lwp.c: Include linux-nat.h.
0274a8ce 1555 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 1556 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
1557 (linux_make_note_section): Iterate over lwps instead of threads.
1558 (linux_do_thread_registers): Use lwp instead of merged pid.
1559 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 1560 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
1561 Add dependency on linux_nat_h.
1562
adf5f719
TR
15632003-06-19 Theodore A. Roth <troth@openavr.org>
1564
1565 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
1566
6766a268
DJ
15672003-06-19 Daniel Jacobowitz <drow@mvista.com>
1568
1569 * varobj.c (get_type, get_target_type): Use check_typedef.
1570
1171114a
DJ
15712003-06-19 Daniel Jacobowitz <drow@mvista.com>
1572
1573 * breakpoint.c (insert_catchpoint): Call internal_error.
1574
adcf68a2
TR
15752003-06-19 Theodore A. Roth <troth@openavr.org>
1576
1577 * avr-tdep.c (avr_push_dummy_code): Delete function.
1578 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
1579
ea67f13b
DJ
15802003-06-19 Daniel Jacobowitz <drow@mvista.com>
1581
1582 * arch-utils.c (default_prepare_to_proceed): Remove.
1583 (generic_prepare_to_proceed): Remove.
1584 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
1585 (generic_prepare_to_proceed): Remove prototype.
1586 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
1587 * gdbarch.c: Regenerate.
1588 * gdbarch.h: Regenerate.
1589 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
1590 * hppah-nat.c (hppa_switched_threads): Remove.
1591 * infrun.c (prepare_to_proceed): New static function, copied from
1592 generic_prepare_to_proceed. Remove select_it argument.
1593 (proceed): Call prepare_to_proceed.
1594 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
1595 variables.
1596 (ptrace_wait): Don't set the removed variables.
1597 (hppa_switched_threads): Remove.
1598 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
1599 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
1600 (lin_lwp_prepare_to_proceed): Remove prototype.
1601 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
1602 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
1603
4add8633
TR
16042003-06-18 Theodore A. Roth <troth@openavr.org>
1605
1606 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
1607 trad-frame.h.
1608 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
1609 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
1610 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
1611 (AVR_PROLOGUE_*): Enumerate prologue types.
1612 (struct frame_extra_info): Remove.
1613 (struct avr_unwind_cache): Define.
1614 (avr_write_sp): Delete function.
1615 (avr_read_fp): Ditto.
1616 (avr_init_extra_frame_info): Ditto.
1617 (avr_pop_frame): Ditto.
1618 (avr_frame_saved_pc): Ditto.
1619 (avr_saved_pc_after_call): Ditto.
1620 (avr_push_return_address): Ditto.
1621 (avr_frame_chain): Ditto.
1622 (avr_store_struct_return): Ditto.
1623 (avr_push_arguments): Ditto.
1624 (avr_scan_prologue): Update comments. Changed to set up the info for
1625 cache unwinding. Now returns end of prologue PC.
1626 (avr_skip_prologue): Better handling of functions lacking a prologue
1627 by using avr_scan_prologue.
1628 (avr_scan_arg_moves): New function.
1629 (avr_saved_regs_unwinder): Ditto.
1630 (avr_frame_unwind_cache): Ditto.
1631 (avr_unwind_pc): Ditto.
1632 (avr_frame_this_id): Ditto.
1633 (avr_frame_prev_register): Ditto.
1634 (avr_frame_p): Ditto.
1635 (avr_frame_base_address ): Ditto.
1636 (avr_unwind_dummy_id): Ditto.
1637 (avr_push_dummy_code): Ditto.
1638 (push_stack_item): Ditto.
1639 (pop_stack_item): Ditto.
1640 (avr_push_dummy_call): Ditto.
1641 (struct stack_item): Define.
1642 (avr_frame_unwind): Declare structure.
1643 (avr_frame_base): Ditto.
1644 (avr_gdbarch_init): Remove calls to
1645 set_gdbarch_deprecated_init_frame_pc,
1646 set_gdbarch_deprecated_target_read_fp,
1647 set_gdbarch_deprecated_dummy_write_sp,
1648 set_gdbarch_deprecated_fp_regnum,
1649 set_gdbarch_deprecated_push_arguments,
1650 set_gdbarch_deprecated_push_return_address,
1651 set_gdbarch_deprecated_pop_frame,
1652 set_gdbarch_deprecated_store_struct_return,
1653 set_gdbarch_deprecated_frame_init_saved_regs,
1654 set_gdbarch_deprecated_init_extra_frame_info,
1655 set_gdbarch_deprecated_frame_chain,
1656 set_gdbarch_deprecated_frame_saved_pc,
1657 set_gdbarch_deprecated_saved_pc_after_call.
1658 Add calls to set_gdbarch_push_dummy_call,
1659 set_gdbarch_push_dummy_code,
1660 frame_unwind_append_predicate,
1661 frame_base_set_default,
1662 set_gdbarch_unwind_dummy_id,
1663 set_gdbarch_unwind_pc.
1664 Wrap a long line.
1665
7be04a68
MS
16662003-06-18 Corinna Vinschen <vinschen@redhat.com>
1667
1668 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
1669 registers for H8/300S.
1670 (h8300_print_registers_info): Ditto.
8ffd9b1b 1671 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 1672
ae087d01
DJ
16732003-06-18 Daniel Jacobowitz <drow@mvista.com>
1674
1675 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
1676 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1677 (lin_lwp_wait): Likewise. Update comments.
1678 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
1679 (pull_pid_from_list, linux_record_stopped_pid): New.
1680
07d8f827
SC
16812003-06-17 Stephane Carrez <stcarrez@nerim.fr>
1682
1683 * ada-lang.c (scan_discrim_bound): Name first argument.
1684 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
1685 declared by ALL_BLOCK_SYMBOLS.
1686
7cb47b14
SC
16872003-06-17 Stephane Carrez <stcarrez@nerim.fr>
1688
1689 * ada-tasks.c (find_function_in_inferior): Don't declare it.
1690 ("regcache.h"): Include it.
1691 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
1692
6ad8ae5c
DJ
16932003-06-17 Daniel Jacobowitz <drow@mvista.com>
1694
1695 * NEWS: Mention gdbserver detach change and "disconnect" command.
1696 * infcmd.c (disconnect_command): New function.
1697 (_initialize_infcmd): Add ``disconnect'' command.
1698 * remote.c (remote_async_detach): Delete.
1699 (remote_detach): Merge remote_async_detach.
1700 (remote_disconnect): New.
1701 (init_remote_ops): Set to_disconnect.
1702 (init_remote_cisco_ops): Likewise.
1703 (init_remote_async_ops): Likewise. Use remote_detach.
1704 * target.c (cleanup_target): Default to_disconnect.
1705 (update_current_target): Inherit to_disconnect.
1706 (target_disconnect, debug_to_disconnect): New functions.
1707 (setup_target_debug): Set to_disconnect.
1708 * target.h (struct target_ops): Add to_disconnect.
1709 (target_disconnect): Add prototype.
1710
687595f9
DJ
17112003-06-17 Daniel Jacobowitz <drow@mvista.com>
1712
1713 * breakpoint.c (insert_catchpoint): New function.
1714 (insert_breakpoints): Use catch_exceptions to call
1715 insert_catchpoint. Disable catchpoints if they fail to insert.
1716
29239a8f
DJ
17172003-06-17 Daniel Jacobowitz <drow@mvista.com>
1718
1719 * symfile.c (reread_symbols): Clear sym_private.
1720
2cdf3c63
AC
17212003-06-17 Andrew Cagney <cagney@redhat.com>
1722
1723 * trad-frame.h (struct frame_info): Add opaque declaration.
1724 * remote-fileio.h (struct cmd_list_element): Add opaque
1725 declaration.
1726 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
1727 comments.
1728
cf0e1e0d
DJ
17292003-06-17 Daniel Jacobowitz <drow@mvista.com>
1730
1731 * remote.c (remote_prepare_to_store): Replace call to
1732 deprecated_read_register_bytes with multiple regcache_raw_read
1733 calls.
1734
192cdb19
KW
17352003-06-17 Kris Warkentin <kewarken@qnx.com>
1736
1737 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
1738 (nto_find_and_open_solib): Likewise.
1739 (nto_init_solib_absolute_prefix): Likewise.
1740 (_initialize_nto_tdep): Fix indentation.
1741
89929b45
KW
17422003-06-17 Kris Warkentin <kewarken@qnx.com>
1743
1744 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
1745
46019f27
KW
17462003-06-17 Kris Warkentin <kewarken@qnx.com>
1747
1748 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
1749
1a38736e
JB
17502003-06-17 Jim Blandy <jimb@redhat.com>
1751
1752 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
1753
3605c34a
TR
17542003-06-16 Theodore A. Roth <troth@openavr.org>
1755
1756 * avr-tdep.c (avr_extract_return_value): New function.
1757 (avr_gdbarch_init): Set extract_return_value method.
1758
870b3035
AC
17592003-06-16 Andrew Cagney <cagney@redhat.com>
1760
1761 * frame.h (deprecated_get_next_frame_hack): Declare.
1762 * frame.c (legacy_saved_regs_prev_register): Only require
1763 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
1764 there are always saved regs.
1765 (deprecated_generic_get_saved_register): Do not require
1766 DEPRECATED_FRAME_INIT_SAVED_REGS.
1767 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
1768 use frame ID unwind instead.
1769 (deprecated_get_next_frame_hack): New function.
1770
63d47a7d
CV
17712003-06-16 Corinna Vinschen <vinschen@redhat.com>
1772
1773 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
1774 (h8300_push_dummy_call): ...this function. Some minor optimization.
1775 (h8300_push_return_address): Remove.
1776 (h8300_gdbarch_init): Remove calls to
1777 set_gdbarch_deprecated_dummy_write_sp,
1778 set_gdbarch_deprecated_push_arguments and
1779 set_gdbarch_deprecated_push_return_address.
1780 Add call to set_gdbarch_push_dummy_call.
1781
4bb1dc5e
CV
17822003-06-16 Corinna Vinschen <vinschen@redhat.com>
1783
1784 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
1785 (E_PSEUDO_EXR_REGNUM): Ditto.
1786 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 1787 registers into safe registers.
4bb1dc5e
CV
1788 (h8300_skip_prologue): Check for stm instruction to push registers
1789 used for register variables onto stack.
1790 (gdb_print_insn_h8300): Remove.
1791 (h8300_examine_prologue): Add a comment.
1792 (h8300_register_name): Take pseudo registers into account.
1793 (h8300s_register_name): Ditto.
1794 (h8300sx_register_name): Ditto.
1795 (h8300_print_register): Ditto.
1796 (h8300_print_registers_info): Define "nice" printing order.
1797 (h8300_saved_pc_after_call): Take pseudo registers into account.
1798 (h8300_register_type): Ditto. Return type used for remote connection
1799 when requesting real CCR or EXR register, return actual type when
1800 requesting pseudo CCR or EXR.
1801 (h8300_pseudo_register_read): New function.
1802 (h8300_pseudo_register_write): Ditto.
1803 (h8300_dbg_reg_to_regnum): Ditto.
1804 (h8300s_dbg_reg_to_regnum): Ditto.
1805 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
1806 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
1807 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
1808 set_gdbarch_print_insn architecture dependent.
1809 Call set_gdbarch_pseudo_register_read and
1810 set_gdbarch_pseudo_register_write.
1811 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
1812
a59fe496
AC
18132003-06-16 Andrew Cagney <cagney@redhat.com>
1814
1815 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
1816 * gdbarch.h, gdbarch.c: Re-generate.
1817 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1818 * s390-tdep.c (s390_gdbarch_init): Update.
1819 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1820 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1821 * mips-tdep.c (mips_gdbarch_init): Update.
1822 * mcore-tdep.c (mcore_gdbarch_init): Update.
1823 * cris-tdep.c (cris_gdbarch_init): Update.
1824 * infcall.c (call_function_by_hand): Update.
1825 * ia64-tdep.c (ia64_push_arguments): Update comment.
1826 * frame.c (legacy_get_prev_frame): Do not assume
1827 SAVE_DUMMY_FRAME_TOS_P.
1828 * dummy-frame.c (find_dummy_frame): Update comment.
1829
6f4e5a41
AC
18302003-06-16 Andrew Cagney <cagney@redhat.com>
1831
1832 * regcache.c (do_cooked_read): Do not use register_valid_p.
1833
72fab697
TR
18342003-06-15 Theodore A. Roth <troth@openavr.org>
1835
1836 * avr-tdep.c (avr_register_type): Remove a blank line.
1837 (avr_scan_prologue): Correct some comments.
1838
e3d8b004
TR
18392003-06-15 Theodore A. Roth <troth@openavr.org>
1840
1841 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
1842 prologue types.
8ffd9b1b 1843 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
1844 option.
1845 Add code to scan -mcall-prologues for mega devices.
1846
866b76ea
TR
18472003-06-15 Theodore A. Roth <troth@openavr.org>
1848
1849 * avr-tdep.c (avr_register_byte): Delete function.
1850 (avr_register_raw_size): Delete function.
1851 (avr_register_virtual_size): Delete function.
1852 (avr_register_virtual_type): Delete function.
1853 (avr_register_type): New function.
1854 (avr_address_to_pointer): Remove unused code.
1855 (avr_read_fp): Need to read FP as two separate bytes due to change to
1856 avr_register_type() usage.
1857 (avr_gdbarch_init): Don't set deprecated_register_size.
1858 Don't set deprecated_register_bytes.
1859 Don't set deprecated_register_byte.
1860 Don't set deprecated_register_raw_size.
1861 Don't set deprecated_max_register_raw_size.
1862 Don't set deprecated_register_virtual_size.
1863 Don't set deprecated_max_register_virtual_size.
1864 Don't set deprecated_register_virtual_type.
1865 Set register_type method.
1866
3993f6b1
DJ
18672003-06-15 Daniel Jacobowitz <drow@mvista.com>
1868
1869 * Makefile.in (linux-nat.o): Add rule.
1870 * linux-nat.c: New file.
1871 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
1872 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
1873 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
1874 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
1875 * config/arm/linux.mh (NATDEPFILES): Likewise.
1876 * config/i386/linux.mh (NATDEPFILES): Likewise.
1877 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
1878 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1879 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1880 * config/mips/linux.mh (NATDEPFILES): Likewise.
1881 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
1882 * config/s390/s390.mh (NATDEPFILES): Likewise.
1883 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1884
786a90bb
MK
18852003-06-15 Mark Kettenis <kettenis@gnu.org>
1886
1887 * i387-tdep.c: Reorder includes, fix some whitespace issues and
1888 replace out-of-date comment.
1889
3bd3f01e
AC
18902003-06-15 Andrew Cagney <cagney@redhat.com>
1891
1892 * rdi-share/host.h (Fail): Change to a varargs function.
1893 * remote-rdi.c (Fail): Update.
8ffd9b1b 1894
de5b9bb9
MK
18952003-06-15 Mark Kettenis <kettenis@gnu.org>
1896
1897 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
1898 (i386_convert_register_p, i386_register_to_value,
1899 i386_register_from_value): Handle types longer than 8 bytes.
1900
d532c08f
MK
19012003-06-15 Mark Kettenis <kettenis@gnu.org>
1902
1903 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
1904 Move floating-point code to new function in i387-tdep.c.
1905 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
1906 New functions containing code moved here from i386-tdep.c.
1907 * i387-tdep.h: Add opaque declaration for `struct type'.
1908 (i387_register_to_value, i387_value_to_register): New prototypes.
1909 * x86-64-tdep.c (x86_64_convert_register_p): New function.
1910 (x86_64_init_abi): Set convert_register_p, register_to_value and
1911 value_to_register here.
8ffd9b1b 1912
42c466d7
AC
19132003-06-14 Andrew Cagney <cagney@redhat.com>
1914
1915 * mips-tdep.c (mips_register_to_value): Make static.
1916 (mips_value_to_register): Make static.
1917 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
1918 * ia64-tdep.c (ia64_register_raw_size): Make static.
1919 (ia64_register_virtual_size): Make static.
1920 (ia64_register_byte): Make static.
1921 * i387-tdep.c: Include "i387-tdep.h".
1922 (print_387_control_word): Delete function.
1923 (print_387_status_word): Delete function.
1924 (print_387_status_bits): Delete function.
1925 (print_387_control_bits): Delete function.
1926 * Makefile.in (i387-tdep.o): Update dependencies.
1927 * rdi-share/host.h (Fail): Declare.
1928 * remote-rdi.c (Fail): Update to match declaration.
1929
2a9cda49
AC
19302003-06-14 Andrew Cagney <cagney@redhat.com>
1931
1932 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
1933 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
1934 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
1935 * config/djgpp/fnchange.lst: Delete "remote-array.c".
1936 * README: Delete reference to remote-array.
1937 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
1938 (remote-array.o): Delete target.
1939 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
1940 * remote-array.c: Delete file.
1941
ff2e87ac
AC
19422003-06-14 Andrew Cagney <cagney@redhat.com>
1943 Mark Kettenis <kettenis@gnu.org>
1944
1945 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
1946 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
1947 parameter with "frame".
1948 * gdbarch.h, gdbarch.c: Re-generate.
1949 * frame.h (put_frame_register): Declare.
1950 * frame.c (put_frame_register): New function.
1951 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
1952 (legacy_register_to_value): Rewrite, use "frame" to get the
1953 register value.
1954 (legacy_value_to_register): Rewrite, use "frame" to find the
1955 register's location before storing.
1956 * arch-utils.h (legacy_convert_register_p): Update.
1957 (legacy_register_to_value, legacy_value_to_register): Update.
1958 * findvar.c (value_from_register): Rewrite, eliminate use of
1959 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
1960 "frame" to REGISTER_TO_VALUE.
1961 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
1962 lval_reg_frame_relative + lval_register branch of the switch. Do
1963 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
1964 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1965 I386_EDI_REGNUM): New defines.
1966 (i386_next_regnum, i386_convert_register_p,
1967 i386_register_to_value, i386_value_to_register): New functions.
1968 (i386_register_convertible, i386_register_convert_to_virtual,
1969 i386_convert_to_raw): Remove functions.
1970 (i386_gdbarch_init): Set convert_register_p, register_to_value and
1971 value_to_register instead of register_convertible,
1972 register_convert_to_virtual and register_convert_to_raw.
1973 * mips-tdep.c (mips_convert_register_p): New function.
1974 (mips_value_to_register): Replace mips_register_convert_from_type.
1975 (mips_register_to_value): Replace mips_register_convert_to_type.
1976 (mips_gdbarch_init): Set conver_register_p, value_to_register and
1977 register_to_value.
1978 * alpha-tdep.c (alpha_convert_register_p): Update.
1979 (alpha_value_to_register): Update, store the register.
1980 (alpha_register_to_value): Update, fetch the register.
1981
98be1e77
TR
19822003-06-14 Theodore A. Roth <troth@openavr.org>
1983
1984 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
1985 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
1986 Don't set deprecated_call_dummy_words.
1987 Remove commented out set_gdbarch_believe_pcc_promotion() call.
1988 Don't set remote_translate_xfer_address.
1989 (avr_io_reg_read_command): Remove commented out debug printf.
1990 Wrap a long line.
1991
57bc6122
TR
19922003-06-14 Theodore A. Roth <troth@openavr.org>
1993
1994 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
1995 causes gdb to seg fault.
1996
eb01fc62
DJ
19972003-06-14 Daniel Jacobowitz <drow@mvista.com>
1998
1999 * sparc-nat.c (fetch_inferior_registers): Correct
2000 a reference to "registers".
2001
3b3e6bee
DJ
20022003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2003
2004 * Makefile.in (exc_request_U_h): Define
2005 (exc_request_S_h): Likewise.
2006 (msg_reply_S_h): Likewise.
2007 (msg_U_h): Likewise.
2008 (notify_S_h): Likewise.
2009 (process_reply_S_h): Likewise.
2010 (gnu-nat.o): Depend on gdb_obstack_h
2011 * gnu-nat.c: Include "gdb_obstack.h".
2012
b8de8283
AC
20132003-06-13 Andrew Cagney <cagney@redhat.com>
2014
2015 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2016 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 2017
f3be58bc
AC
20182003-06-13 Andrew Cagney <cagney@redhat.com>
2019
2020 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2021 when deprecated REGISTER macros can be deleted.
2022 * gdbarch.h, gdbarch.c: Re-generate.
2023
4c0122c8
JB
20242003-06-13 Jim Blandy <jimb@redhat.com>
2025
2026 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2027 Linux entry point symbols for _dl_debug_state, too.
2028
3e210248
AC
20292003-06-13 Andrew Cagney <cagney@redhat.com>
2030
2031 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2032 available, do not use the FP register, and always save the TOS.
2033 * dummy-frame.c (dummy_frame_this_id): Do not assert
2034 SAVE_DUMMY_FRAME_TOS.
2035 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2036 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2037 (i386_push_dummy_call): Add 8 to the returned SP.
2038 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2039 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2040 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2041 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2042 (x86_64_push_dummy_call): Return "sp + 16".
2043 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2044 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2045 save_dummy_frame_tos.
2046
0b65af49
JB
20472003-06-13 Jim Blandy <jimb@redhat.com>
2048
2049 * frv-tdep.c (frv_use_struct_convention): Delete static
2050 declaration for function deleted in my change of 2003-06-12.
2051
4ea2465e
TR
20522003-06-13 Theodore A. Roth <troth@openavr.org>
2053
2054 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2055 (avr_pointer_to_address): Shift code addrs left 1 bit.
2056 (avr_convert_from_func_ptr_addr): Delete function since operation is
2057 better handled by avr_address_to_pointer and avr_pointer_to_address.
2058 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2059
1581182a
MK
20602003-06-13 Mark Kettenis <kettenis@gnu.org>
2061
2062 From Kelley Cook <kelleycook@wideopenwest.com>:
2063 * configure.host: Accept i[34567]86 variants.
2064 * configure.tgt: Likewise.
2065 * nlm/configure.in: Likewise.
2066 * nlm/configure: Regenerated.
2067
7aa1783e
RE
20682003-06-13 Richard Earnshaw <rearnsha@arm.com>
2069
2070 * arm-tdep.c (solib-svr4.h): Dont' include it.
2071 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2072 * arm-linux-tdep.c: ... here. Make static.
2073 (arm_linux_init_abi): Register it.
2074 (solib-svr4.h): Include it.
2075 * Makefile.in: Update dependencies.
2076 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2077 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2078
0261a0d0
CV
20792003-06-13 Corinna Vinschen <vinschen@redhat.com>
2080
2081 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2082 indicate registers used for return values.
2083 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2084 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2085 members.
2086 (h8300_init_extra_frame_info): Ditto.
2087 (h8300_frame_locals_address): Removed.
2088 (h8300_frame_args_address): Removed.
2089 (h8300_extract_return_value): Use new regcache structure. Only care
2090 for 16 bit CPUs.
2091 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2092 (h8300_store_return_value): Use new regcache structure. Only care
2093 for 16 bit CPUs.
2094 (h8300h_store_return_value): Same function for 32 bit CPUs.
2095 (h8300_store_struct_return): Removed.
2096 (h8300_extract_struct_value_address): Use new regcache structure.
2097 (h8300h_extract_struct_value_address): Removed.
2098 (h8300_push_dummy_code): New function.
2099 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2100 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2101 set_gdbarch_store_return_value architecture dependent.
2102 Call set_gdbarch_push_dummy_code and
2103 set_gdbarch_extract_struct_value_address.
2104 Remove calls to set_gdbarch_frame_args_address,
2105 set_gdbarch_frame_locals_address,
2106 set_gdbarch_deprecated_store_struct_return,
2107 set_gdbarch_deprecated_extract_return_value,
2108 set_gdbarch_deprecated_extract_struct_value_address,
2109 set_gdbarch_deprecated_call_dummy_words and
2110 set_gdbarch_deprecated_sizeof_call_dummy_words.
2111
055c394a
CV
21122003-06-13 Corinna Vinschen <vinschen@redhat.com>
2113
2114 * h8300-tdep.c (h8300_register_byte): Remove.
2115 (h8300h_register_byte): Remove.
2116 (h8300_register_virtual_type): Remove. Substitute by...
2117 (h8300_register_type): New function.
2118 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2119 (h8300h_extract_struct_value_address): Ditto.
2120 (h8300_gdbarch_init): Drop calls to
2121 set_gdbarch_deprecated_register_byte and
2122 set_gdbarch_deprecated_register_virtual_type.
2123 Add call to set_gdbarch_register_type.
2124
9c04cab7
AC
21252003-06-13 Andrew Cagney <cagney@redhat.com>
2126
2127 * gdbarch.sh: Update comments on registers.
2128 (deprecated_register_byte): Rename register_byte.
2129 (deprecated_register_raw_size): Rename register_raw_size.
2130 (deprecated_register_virtual_size): Rename register_virtual_size.
2131 (deprecated_register_virtual_type): Rename register_virtual_type.
2132 * gdbarch.h, gdbarch.c: Re-generate.
2133 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2134 * vax-tdep.c (vax_gdbarch_init): Update.
2135 * v850-tdep.c (v850_gdbarch_init): Update.
2136 * sparc-tdep.c (sparc_gdbarch_init): Update.
2137 * sh-tdep.c (sh_gdbarch_init): Update.
2138 * s390-tdep.c (s390_gdbarch_init): Update.
2139 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2140 * ns32k-tdep.c: Update.
2141 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2142 * mips-tdep.c (mips_gdbarch_init): Update.
2143 * mcore-tdep.c (mcore_gdbarch_init): Update.
2144 * m68k-tdep.c (m68k_gdbarch_init): Update.
2145 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2146 * ia64-tdep.c (ia64_gdbarch_init): Update.
2147 * hppa-tdep.c (hppa_gdbarch_init): Update.
2148 * h8300-tdep.c (h8300_gdbarch_init): Update.
2149 * frv-tdep.c (frv_gdbarch_init): Update.
2150 * cris-tdep.c (cris_gdbarch_init): Update.
2151 * avr-tdep.c (avr_gdbarch_init): Update.
2152 * alpha-tdep.c (alpha_gdbarch_init): Update.
2153 * arm-tdep.c (arm_gdbarch_init): Update.
2154
b060cbea
AC
21552003-06-13 Andrew Cagney <cagney@redhat.com>
2156
2157 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2158 mips_o32_use_struct_convention with always_use_struct_convention.
2159
0fc9922a
DC
21602003-06-12 David Carlton <carlton@kealia.com>
2161
2162 * cp-namespace.c (cp_set_block_scope): Comment out
2163 processing_has_namespace_info branch.
2164
1fd35568
JB
21652003-06-12 Jim Blandy <jimb@redhat.com>
2166
f470a70a
JB
2167 Recognize and skip 64-bit PowerPC Linux linkage functions.
2168 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2169 insn_pattern, insns_match_pattern, d_field, ds_field): New
2170 functions, macros, and types for working with PPC instructions.
2171 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2172 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2173 ppc64_skip_trampoline_code): New functions, variables, and macros
2174 for recognizing and skipping linkage functions.
2175 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2176 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2177
49ff75ad
JB
2178 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2179 register offsets for both the 32- and 64-bit interfaces.
2180
bd918c83
JB
2181 Actually finish the job started by my change of 2003-05-29.
2182 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2183 other #definition of this.
2184 (ppc_linux_skip_trampoline_code): Remove declaration.
2185 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2186 static.
2187 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2188 method for GDBARCH.
2189
2190 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2191 'long' on ppc64-*-linux*.
2192
f8c59253
JB
2193 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2194 isn't #defined, assume the register doesn't exist: act as if
2195 tdep->ppc_mq_regnum were -1.
2196
8fbb30b1
JB
2197 * configure.host, configure.tgt: Add entries for
2198 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2199 powerpc/linux.mt.
2200 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2201 New files.
2202
1fd35568
JB
2203 * arch-utils.c (always_use_struct_convention): New function.
2204 * arch-utils.h (always_use_struct_convention): New prototype.
2205 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2206 (alpha_gdbarch_init): Register always_use_struct_convention,
2207 instead of alpha_use_struct_convention.
2208 * cris-tdep.c (cris_use_struct_convention): Delete.
2209 (cris_gdbarch_init): Register always_use_struct_convention,
2210 instead of cris_use_struct_convention.
2211 * frv-tdep.c (frv_use_struct_convention): Delete.
2212 (frv_gdbarch_init): Register always_use_struct_convention,
2213 instead of frv_use_struct_convention.
2214 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2215 (h8300_gdbarch_init): Register always_use_struct_convention,
2216 instead of h8300_use_struct_convention.
e3305dd9 2217 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
2218 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2219 instead of mips_o32_use_struct_convention.
2220
e14e6e9c
AC
22212003-06-12 Andrew Cagney <cagney@redhat.com>
2222
2223 * wince.c: Include "mips-tdep.h".
2224 * mips-tdep.h (mips_next_pc): Declare.
2225 * mcore-tdep.c: Make more local functions static.
2226 * Makefile.in (wince.o): Update dependencies.
2227
2335f48e
DC
22282003-06-12 David Carlton <carlton@kealia.com>
2229
2230 * symtab.c (lookup_symbol_aux_minsyms): Replace
2231 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2232 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2233 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2234 SYMBOL_NATURAL_NAME.
2235
f70a7d61
AS
22362003-06-12 Andreas Schwab <schwab@suse.de>
2237
2238 * Makefile.in (tuiDisassem.o): Update dependencies.
2239
b6429628
DC
22402003-06-12 David Carlton <carlton@bactrian.org>
2241
2242 * symtab.h: Delete declaration of make_symbol_overload_list.
2243 Add declaration of lookup_partial_symbol.
2244 * symtab.c (remove_params): Move to cp-support.c.
2245 (overload_list_add_symbol, make_symbol_overload_list)
2246 (sym_return_val_size, sym_return_val_index): Ditto.
2247 (lookup_partial_symbol): Make extern.
2248 * cp-support.h: Add declaration of make_symbol_overload_list.
2249 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2250 symtab.h, and block.h.
2251 (remove_params): Move here from symtab.c.
2252 (overload_list_add_symbol, make_symbol_overload_list)
2253 (sym_return_val_size, sym_return_val_index): Ditto.
2254 * valops.c: Include cp-support.h.
2255 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2256 frame_h, and block_h.
2257 (valops.o): Depend on cp_support_h.
2258
084edea5
CV
22592003-06-12 Corinna Vinschen <vinschen@redhat.com>
2260
2261 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2262 substitute by NUM_REGS throughout.
2263 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2264 (h8300s_register_name): New function for H8S registers.
2265 (h8300sx_register_name): Ditto for H8SX registers.
2266 (h8300_print_register): Revise register printing, avoid depending
2267 on 32 bit long.
0261a0d0 2268 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
2269 (h8300h_register_byte): New function for any other architecture.
2270 (h8300_register_raw_size): Remove.
2271 (h8300_register_virtual_type): Revise to return actually useful
2272 type.
2273 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2274 (h8300h_extract_struct_value_address): New function for any other
2275 architecture.
2276 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2277 set_gdbarch_register_name, set_gdbarch_register_byte,
2278 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2279 Remove calls to set_gdbarch_deprecated_register_size,
2280 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2281 set_gdbarch_deprecated_max_register_raw_size,
2282 set_gdbarch_register_virtual_size and
2283 set_gdbarch_deprecated_max_register_virtual_size entirely.
2284 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2285 set_gdbarch_long_double_bit.
2286
06194148
JJ
22872003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2288
8ffd9b1b
AJ
2289 * doublest.c (convert_doublest_to_floatformat): When dealing
2290 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
2291 processing a full 32 bits of mantissa.
2292
de4f826b
DC
22932003-06-11 David Carlton <carlton@bactrian.org>
2294
2295 * dictionary.h: New.
2296 * dictionary.c: New.
2297 * block.h: Add opaque declaration for struct dictionary.
2298 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2299 'sym' members.
2300 (BLOCK_DICT): New macro.
2301 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2302 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2303 BLOCK_SHOULD_SORT.
2304 (ALL_BLOCK_SYMBOLS): Update definition.
2305 * Makefile.in (SFILES): Add dictionary.c.
2306 (dictionary_h): New.
2307 (COMMON_OBS): Add dictionary.o.
2308 (dictionary.o): New.
2309 (ada-lang.o): Depend on dictionary_h.
2310 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2311 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2312 (mi-cmd-stack.o): Ditto.
2313 (gdbtk-cmds.o): Update dependencies.
2314 (gdbtk-stack.o): Ditto.
2315 * ada-lang.c: Include dictionary.h.
2316 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2317 (fill_in_ada_prototype, debug_print_block): Ditto.
2318 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2319 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
2320 'is_sorted'.
2321 * mdebugread.c: Include dictionary.h.
2322 (struct parse_stack): Delete 'maxsyms' member.
2323 (parse_symbol): Update calls to new_block. Delete calls to
2324 shrink_block. Use dictionary methods.
2325 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2326 Update calls to new_symtab. Don't maintain maxsyms data.
2327 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2328 (add_symbol): Just call dict_add_symbol.
2329 (new_symtab): Delete 'maxsyms' argument.
2330 (new_symtab): Update calls to new_block.
2331 (new_block): Delete 'maxsyms' argument; add 'function' argument.
2332 (shrink_block): Delete function.
2333 (fixup_sigtramp): Update call to new_block. Add symbol via
2334 dict_add_symbol.
2335 * jv-lang.c: Include dictionary.h.
2336 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2337 appropriately. Set class_symtab->free_func. Make sure the
2338 blockvector is big enough to hold two blocks.
2339 (add_class_symtab_symbol): Use dictionary methods.
2340 (free_class_block): New function.
2341 (type_from_class): Replace explicit iteration by
2342 ALL_BLOCK_SYMBOLS.
2343 * symtab.h (struct symtab): Replace 'free_ptr' method by
2344 'free_func'.
2345 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2346 sort_symtab_syms.
2347 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2348 sort_symtab_syms.
2349 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2350 Include dictionary.h.
2351 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2352 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2353 sort_symtab_syms.
2354 * objfiles.c: Include dictionary.h.
2355 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2356 * buildsym.c: Include dictionary.h.
2357 (finish_block): Use dictionary methods.
2358 (end_symtab): Set free_func to NULL, not free_ptr.
2359 * tracepoint.c: Include dictionary.h.
2360 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2361 (scope_info): Ditto.
2362 * stack.c: Include dictionary.h.
2363 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2364 (print_block_frame_labels, print_frame_arg_vars)
2365 (print_frame_args): Ditto.
2366 * symmisc.c (free_symtab_block): Use dictionary methods.
2367 (dump_symtab): Ditto.
2368 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2369 Include dictionary.h.
2370 * symfile.h: Delete declarations of sort_block_syms,
2371 sort_symtab_syms.
2372 * symfile.c (sort_block_syms): Delete.
2373 (sort_symtab_syms): Delete.
2374 * symtab.c: Include dictionary.h.
2375 (lookup_block_symbol): Use dictionary iterators.
2376 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2377 (search_symbols, make_symbol_completion_list): Ditto.
2378 (make_symbol_overload_list): Ditto.
2379 * valops.c (value_of_local): Use dict_empty.
2380 Include dictionary.h.
2381
a31f978c
JB
23822003-06-11 J. Brobecker <brobecker@gnat.com>
2383
2384 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2385
526e70c0
DC
23862003-06-11 David Carlton <carlton@bactrian.org>
2387
2388 * block.h (BLOCK_SHOULD_SORT): Delete.
2389 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2390 blocks.
2391 * ada-lang.c (ada_add_block_symbols): Ditto.
2392 * symfile.c (sort_block_syms): Delete.
2393 (sort_symtab_syms): Ditto.
2394 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2395 declarations.
2396 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2397 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2398 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2399 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2400 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2401 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2402 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2403
33c08150
JJ
24042003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2405
8ffd9b1b 2406 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
2407 bits to 128.
2408
781a750d
AC
24092003-06-11 Andrew Cagney <cagney@redhat.com>
2410
2411 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2412 REGISTER_CONVERTIBLE.
2413 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2414 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2415 * gdbarch.h, gdbarch.c: Re-generate.
2416 * arch-utils.h (deprecated_register_convertible_not): Rename
2417 generic_register_convertible_not.
2418 * arch-utils.c (deprecated_register_convertible_not): Rename
2419 generic_register_convertible.
2420 (legacy_convert_register_p, legacy_register_to_value): Update.
2421 * sh-tdep.c (sh64_push_arguments): Update.
2422 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2423 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2424 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2425 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2426 * arch-utils.c (legacy_value_to_register): Update.
2427 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2428 (rs6000_register_convert_to_raw): Make parameter "from" const.
2429 * mips-tdep.c (mips_gdbarch_init): Update.
2430 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
2431 * infcmd.c (default_print_registers_info): Update.
2432 * ia64-tdep.c (ia64_gdbarch_init): Update.
2433 (ia64_register_convert_to_raw): Make parameter "from" const.
2434 * i386-tdep.c (i386_gdbarch_init): Update.
2435 (i386_register_convert_to_raw): Update.
2436
cd90e54f
AC
24372003-06-11 Andrew Cagney <cagney@redhat.com>
2438
2439 * remote-fileio.c: Include "remote-fileio.h".
2440 * Makefile.in (remote-fileio.o): Update dependencies.
2441 (remote_fileio_h): Fix typo.
2442
a78f21af
AC
24432003-06-11 Andrew Cagney <cagney@redhat.com>
2444
2445 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
2446 (xstormy16_save_dummy_frame_tos): Make static.
2447 (_initialize_xstormy16_tdep): Add declaration.
2448 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2449 * v850-tdep.c: Make local functions static.
2450 (_initialize_v850_tdep): Add declaration.
2451 * sparc-tdep.c: Make local functions static.
2452 (_initialize_sparc_tdep): Add declaration.
2453 * sh-tdep.c: Make local functions static.
2454 (_initialize_sh_tdep): Add declaration.
2455 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
2456 * s390-tdep.c: Make local functions static.
2457 (_initialize_s390_tdep): Add declaration.
2458 * dbxread.c (find_stab_function_addr): Make static.
2459 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
2460 * ocd.c (_initialize_remote_ocd): Add declaration.
2461 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
2462 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
2463 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
2464 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
2465 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2466 * remote-array.c (_initialize_array): Add declaration.
2467 (_initialize_remote_monitors): Add declaration.
2468 * remote-mips.c: Make local functions static.
2469 (_initialize_remote_mips): Add declaration.
2470 * mcore-tdep.c: Make all local functions static.
2471 (_initialize_mcore_tdep): Add declaration.
2472 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
2473 * abug-rom.c (_initialize_abug_rom): Add declaration.
2474 * rom68k-rom.c (_initialize_rom68k): Add declaration.
2475 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
2476 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2477 * remote-est.c (_initialize_est): Add declaration.
2478 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2479 (m68hc11_call_dummy_address): Make static.
2480 * ia64-tdep.c: Make local functions static.
2481 (_initialize_ia64_tdep): Add declaration.
2482 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
2483 * monitor.c (monitor_wait_filter): Make static.
2484 (_initialize_remote_monitors): Add declaration.
2485 * remote-hms.c (_initialize_remote_hms): Add declaration.
2486 * remote-e7000.c (fetch_regs_from_dump): Make static.
2487 (expect_n): Make static.
2488 (_initialize_remote_e7000): Add declaration.
2489 * ser-e7kpc.c: Always include "defs.h".
2490 (_initialize_ser_e7000pc): Add declaration.
2491 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
2492 * cris-tdep.c: Make all but one function static.
2493 (_initialize_cris_tdep): Add declaration.
2494 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
2495 * solib.c (update_solib_list): Make static.
2496 (_initialize_solib): Add declaration.
2497 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
2498 (_initialize_avr_tdep): Add declaration.
2499 * remote-rdi.c (voiddummy): Make static.
2500 (_initialize_remote_rdi): Add declaration.
2501 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
2502 * remote-rdp.c (send_rdp): Make static.
2503 (_initialize_remote_rdp): Add declaration.
2504 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
2505
cbcdb1f5
CV
25062003-06-11 Corinna Vinschen <vinschen@redhat.com>
2507
2508 * remote-fileio.c: Make ari happy.
2509
a191ea8d
JB
25102003-06-10 J. Brobecker <brobecker@gnat.com>
2511
2512 * rs6000-nat.c (child_xfer_memory): Compute the right address when
2513 fetching the trailing bytes of the buffer we are about to write.
2514
0ef75e11
AC
25152003-06-10 Andrew Cagney <cagney@redhat.com>
2516
2517 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
2518 * Makefile.in (remote-fileio.o): Update dependencies.
2519 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
2520 include <setjmp.h>, or <sys/types.h> conditional on USG.
2521 (remote_fio_jmp_buf): Delete global variable.
2522
449092f6 25232003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 2524 Martin M. Hunt <hunt@redhat.com>
449092f6 2525
559fa028
AC
2526 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
2527 (SFILES): Add remote-fileio.c.
2528 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
2529 dependencies for building remote.o.
449092f6
CV
2530 * remote-fileio.c: New file implementing the remote File-I/O protocol.
2531 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 2532 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
2533 static storage class.
2534 (remote_wait, remote_async_wait): Call remote_fileio_request() on
2535 'F' packet.
2536 (_initialize_remote): Call initialize_remote_fileio().
2537 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
2538 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2539 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2540 (captured_main): Initialize new ui_files.
2541 * ui-file.c: Add read and fgets input functions.
2542 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
2543 (null_file_read): New function.
2544 (ui_file_read): New function.
2545 (set_ui_file_read): New function.
2546 (stdio_file_read): New function.
2547 * ui-file.h: New type ui_file_read_ftype.
2548 (set_ui_file_read): Declare.
2549 (ui_file_read): Declare.
2550
248de703
AC
25512003-06-09 Andrew Cagney <cagney@redhat.com>
2552
2553 * frame.h (deprecated_unwind_get_saved_register): Rename
2554 generic_unwind_get_saved_register, update comments.
2555 * mips-tdep.c (mips_get_saved_register): Update.
2556 * frame.c (deprecated_unwind_get_saved_register): Update.
2557
0ed8aa57
AC
25582003-06-09 Andrew Cagney <cagney@redhat.com>
2559
2560 * vax-tdep.c (vax_frame_locals_address): Delete function.
2561 (vax_gdbarch_init): Do not set frame_locals_address.
2562 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
2563 (m68hc11_gdbarch_init): Do not set frame_locals_address.
2564 * s390-tdep.c (s390_frame_args_address): Delete function.
2565 (s390_gdbarch_init): Do not set frame_args_address or
2566 frame_locals_address.
2567 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
2568 (ns32k_gdbarch_init): Do not set frame_locals_address.
2569 * hppa-tdep.c (hppa_frame_args_address): Delete function.
2570 (hppa_frame_locals_address): Delete function.
2571 (hppa_gdbarch_init): Do not set frame_args_address, or
2572 frame_locals_address.
2573 * arm-tdep.c (arm_frame_args_address): Delete.
2574 (arm_frame_locals_address): Delete.
2575 (arm_gdbarch_init): Do not set frame_args_address, or
2576 frame_locals_address.
2577
983a287a
AC
25782003-06-09 Andrew Cagney <cagney@redhat.com>
2579
2580 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
2581 * gdbarch.h, gdbarch.c: Re-generate.
2582 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
2583 * arch-utils.c (frame_num_args_unknown): Delete function.
2584 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
2585 (frame_info): Use FRAME_NUM_ARGS_P.
2586 * arm-tdep.c (arm_frame_num_args): Delete function.
2587 (arm_gdbarch_init): Do not set frame_num_args.
2588 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
2589 * hppa-tdep.c (hppa_frame_num_args): Delete function.
2590 (hppa_gdbarch_init): Do not set frame_num_args.
2591 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
2592 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2593 frame_num_args to default frame_num_args_unknown.
2594 * v850-tdep.c (v850_gdbarch_init): Ditto.
2595 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2596 * sh-tdep.c (sh_gdbarch_init): Ditto.
2597 * s390-tdep.c (s390_gdbarch_init): Ditto.
2598 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2599 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2600 * mips-tdep.c (mips_gdbarch_init): Ditto.
2601 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2602 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2603 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2604 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2605 * i386-tdep.c (i386_gdbarch_init): Ditto.
2606 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2607 * frv-tdep.c (frv_gdbarch_init): Ditto.
2608 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2609 * cris-tdep.c (cris_gdbarch_init): Ditto.
2610 * avr-tdep.c (avr_gdbarch_init): Ditto.
2611 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2612
8d3b0994
AC
26132003-06-09 Andrew Cagney <cagney@redhat.com>
2614
2615 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
2616 (print_frame_args): Moved to "stack.c".
2617 * stack.c: Include "gdb_assert.h".
2618 (print_frame_nameless_args): Moved from "printcmd.c", made static.
2619 (print_frame_args): Moved from "printcmd.c".
2620 * frame.h (print_frame_args): Delete declaration.
2621 * Makefile.in (stack.o): Update dependencies.
2622
25e3a86b
AC
26232003-06-08 Andrew Cagney <cagney@redhat.com>
2624
2625 * frame.c (get_prev_frame): Remove reference to
2626 frame_args_address_correct in comments.
2627 * frame-base.c (default_frame_args_address): Delete code
2628 conditional on FRAME_ARGS_ADDRESS_CORRECT.
2629 * vax-tdep.c (vax_frame_args_address_correct): Delete.
2630 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
2631 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
2632 (vax_frame_args_address_correct): Delete declaration.
2633
a9e5fdc2
AC
26342003-06-08 Andrew Cagney <cagney@redhat.com>
2635
2636 * gdbarch.sh (UNWIND_SP): Add.
2637 * gdbarch.h, gdbarch.c: Re-generate.
2638 * frame.c (frame_sp_unwind): New function.
2639 (get_frame_sp): New function.
2640 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
2641 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
2642 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
2643 value.
2644 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
2645 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
2646
8983bd83
AC
26472003-06-08 Andrew Cagney <cagney@redhat.com>
2648
7fec2c59
AC
2649 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
2650 REMOTE_BREAKPOINT.
2651 * remote.c: Update.
2652 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
2653 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
2654 * config/m68k/tm-sun3.h: Update.
2655 * config/m68k/tm-m68klynx.h: Update.
2656 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
2657
8983bd83
AC
2658 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
2659 trad_frame". Update comments.
2660 * d10v-tdep.c (struct d10v_unwind_cache): Update.
2661 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
2662 (trad_frame_register_value, trad_frame_prev_register): Update.
2663
b9362cc7
AC
26642003-06-08 Andrew Cagney <cagney@redhat.com>
2665
2666 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
2667 from GCC's acinclude.m4.
2668 * configure.in: Check for getopt's delcaration.
8ffd9b1b 2669 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
2670 * main.c (error_init): Delete declaration.
2671 * defs.h (error_init): Declare.
2672 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
2673 (rs6000_convert_from_func_ptr_addr): Make static.
2674 (_initialize_rs6000_tdep): Add declaration.
2675 * cli/cli-cmds.c (dont_repeat): Delete declaration.
2676 (show_commands, set_verbose, show_history): Delete declaration.
2677 * top.h (set_verbose): Add declaration.
2678 (show_history, set_history, show_commands): Add declaration.
2679 (do_restore_instream_cleanup): Add declaration.
2680 * objc-lang.c (specialcmp): Make static.
2681 (print_object_command): Make static.
2682 (find_objc_msgsend): Make static.
2683 (find_objc_msgcall_submethod_helper): Make static.
2684 (find_objc_msgcall_submethod): Make static.
2685 (_initialize_objc_language): Add declaration.
2686 (find_implementation_from_class): Make static.
2687 (find_implementation): Make static.
2688 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
2689 * objc-lang.h (lookup_struct_typedef): Add declaration.
2690 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
2691 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
2692 (do_restore_user_call_depth): Make static.
2693 (do_restore_instream_cleanup): Delete declaration.
2694 (dont_repeat): Delete declaration.
2695 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
2696 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
2697 * reggroups.c (_initialize_reggroup): Add declaration.
2698 * cp-support.c (_initialize_cp_support): Add declaration.
2699 * cp-abi.c (_initialize_cp_abi): Add declaration.
2700 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
2701 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
2702 (_initialize_gnu_v3_abi): Add declaration.
2703 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
2704 (_initialize_gnu_v2_abi): Add declaration.
2705 * frame-base.c (_initialize_frame_base): Add declaration.
2706 * doublest.c (floatformat_from_length): Make static.
2707 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
2708 * frame.c (create_sentinel_frame): Make static.
2709 (_initialize_frame): Add declaration.
2710 * top.c (do_catch_errors): Make static.
2711 (gdb_rl_operate_and_get_next_completion): Make static.
2712 * typeprint.c: Include "typeprint.h".
2713 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
2714 (sentinel_frame_this_id): Make static.
2715 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
2716 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
2717 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
2718 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
2719 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
2720 * maint.c (maintenance_print_architecture): Make static.
2721 * signals/signals.c (_initialize_signals): Add declaration.
2722 * std-regs.c (_initialize_frame_reg): Add declaration.
2723 * jv-exp.y (push_variable): ISO C definition.
2724 (push_qualified_expression_name): Ditto.
2725 * memattr.c (_initialize_mem): Add declaration.
2726 * remote.c (remote_check_watch_resources): Make static.
2727 (remote_stopped_by_watchpoint): Make static.
2728 (remote_stopped_data_address): Make static.
2729 * d10v-tdep.c (nr_dmap_regs): Make static.
2730 (a0_regnum): Make static.
2731 (d10v_frame_unwind_cache): Make static.
2732 (d10v_frame_p): Make static.
2733 * osabi.c (show_osabi): Make static.
2734 (_initialize_gdb_osabi): Add extern declaration.
2735 * gdbtypes.c (make_qualified_type): Make static.
2736 (safe_parse_type): Make static.
2737 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
2738 * macrotab.c (macro_bcache_free): Make static.
2739 * interps.c (interp_set_quiet): Make static.
2740 (interpreter_exec_cmd): Make static.
2741 * stack.h (select_frame_command): New file.
2742 * stack.c: Include "stack.h".
2743 (select_frame_command_wrapper): Delete function.
2744 (select_frame_command): Make global.
2745 * infcall.c: Include "infcall.h".
2746 * linespec.c: Include "linespec.h".
2747 * symfile.c (sections_overlap): Make static.
2748 * cp-support.h (cp_initialize_namespace): ISO C declaration.
2749 * charset.c (_initialize_charset): Add missing prototype.
2750 * regcache.c (init_legacy_regcache_descr): Make static.
2751 (do_regcache_xfree): Make static.
2752 (regcache_xfer_part): Make static.
2753 (_initialize_regcache): Add missing prototype.
2754 * breakpoint.c (parse_breakpoint_sals): Make static.
2755 (breakpoint_sals_to_pc): Make static.
2756 * interps.h (clear_interpreter_hooks): ISO C declaration.
2757 * Makefile.in (stack_h): Define.
2758 (stack.o, typeprint.o, mi-main.o): Update dependencies.
2759 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
2760
a0f267c7
AC
27612003-06-08 Andrew Cagney <cagney@redhat.com>
2762
2763 * Makefile.in (d10v-tdep.o): Update dependencies.
2764 (SFILES): Add trad-frame.c.
2765 (trad_frame_h): Define.
2766 (COMMON_OBS): Add trad-frame.o.
2767 (trad-frame.o): Specify dependencies.
2768 * d10v-tdep.c: Include "trad-frame.h".
2769 (saved_regs_unwinder): Delete function.
2770 (d10v_frame_prev_register): Use trad_frame_prev_register.
2771 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
2772 trad_frame", delete "regs" and "prev_sp".
2773 (prologue_find_regs): Use trad-frame.
2774 * trad-frame.h, trad-frame.c: New files.
2775
4538b4f4
MK
27762003-06-08 Mark Kettenis <kettenis@gnu.org>
2777
2778 * dwarf2cfi.c, dwarf2cfi.h: Remove.
2779
a0273b2f
AF
27802003-06-07 Adam Fedor <fedor@gnu.org>
2781
2782 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
2783 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
2784 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
2785 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 2786 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
2787 Use it.
2788
3a6c3343
AC
27892003-06-07 Andrew Cagney <cagney@redhat.com>
2790
2791 * symfile.h: Re-indent, clean up comments.
2792
b46e02f6
AC
27932003-06-07 Andrew Cagney <cagney@redhat.com>
2794
2795 * inferior.h (deprecated_write_sp): Replace
2796 generic_target_write_sp.
2797 * regcache.c (deprecated_write_sp): Replace
2798 generic_target_write_sp.
2799 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2800 * vax-tdep.c (vax_gdbarch_init): Update.
2801 * v850-tdep.c (v850_gdbarch_init): Update.
2802 * sparc-tdep.c (sparc_gdbarch_init): Update.
2803 * sh-tdep.c (sh_gdbarch_init): Update.
2804 * s390-tdep.c (s390_gdbarch_init): Update.
2805 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2806 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2807 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2808 * mcore-tdep.c (mcore_gdbarch_init): Update.
2809 * m68k-tdep.c (m68k_gdbarch_init): Update.
2810 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2811 * ia64-tdep.c (ia64_gdbarch_init): Update.
2812 * h8300-tdep.c (h8300_gdbarch_init): Update.
2813 * frv-tdep.c (frv_gdbarch_init): Update.
2814 * cris-tdep.c (cris_gdbarch_init): Update.
2815 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
2816
a42e117c
AC
28172003-06-07 Andrew Cagney <cagney@redhat.com>
2818
2819 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
2820 Assert that PC_REGNUM is valid.
2821 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
2822
bd1ce8ba
AC
28232003-06-07 Andrew Cagney <cagney@redhat.com>
2824
2825 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
2826 * gdbarch.h, gdbarch.c: Regenerate.
2827 * mn10300-tdep.c: Include "gdb_assert.h".
2828 (mn10300_read_fp): New function.
2829 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
2830 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
2831 * ia64-tdep.c: Include "gdb_assert.h".
2832 (ia64_read_fp): New function.
2833 (ia64_gdbarch_init): Set deprecated_target_read_fp to
2834 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
2835 * regcache.c (generic_target_read_sp): Delete function.
2836 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
2837 * inferior.h (generic_target_read_sp): Delete declaration.
2838 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
2839 generic_target_read_sp.
2840 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2841 * sparc-tdep.c (sparc_gdbarch_init): Ditto
2842 * sh-tdep.c (sh_gdbarch_init): Ditto.
2843 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2844 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
2845
ec5cbaec
AC
28462003-06-07 Andrew Cagney <cagney@redhat.com>
2847
2848 * gdbarch.sh: Comment each field of startup_gdbarch.
2849 * gdbarch.h, gdbarch.c: Re-generate.
2850
cde9ea48
AC
28512003-06-07 Andrew Cagney <cagney@redhat.com>
2852
2853 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
2854 * gdbarch.h, gdbarch.c: Re-generate.
2855 * regcache.c: Update comments on read_pc et.al.
2856 (generic_target_read_pc): Delete function.
2857 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
2858 * inferior.h (generic_target_read_pc): Delete declaration.
2859 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
2860 generic_target_read_pc.
2861 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2862 * sh-tdep.c (sh_gdbarch_init): Ditto.
2863 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2864 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 2865
9a90a780
AC
28662003-06-07 Andrew Cagney <cagney@redhat.com>
2867
2868 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
2869 "index" with "special_local_sect". Use strcmp instead of STREQ.
2870 Append period to coments.
2871
a39a16c4
MM
28722003-06-06 Mark Mitchell <mark@codesourcery.com>
2873
2874 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
2875 (elfstab_offset_sections): Likewise.
2876 * gdb-stabs.h (stab_section_info): Likewise.
2877 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
2878 * objfiles.c (objfile_relocate): Likewise.
2879 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
2880 * remote.c (get_offsets): Likewise.
2881 (remote_cisco_objfile_relocate): Likewise.
2882 * somread.c (som_symfile_offsets): Likewise.
2883 * symfile.c (alloc_section_addr_info): New function.
2884 (build_section_addr_info_from_section_tab): Use it.
2885 (free_section_addr_info): Adjust.
2886 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
2887 (syms_from_objfile): Allocate local_addr dynamically.
2888 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
2889 dynamically.
2890 (add_symbol_file_command): Allocate sect_opts dynamically.
2891 (reread_symbols): Avoid use of SECT_OFF_MAX.
2892 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
2893 (alloc_section_addr_info): Declare it.
2894 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
2895 * win32-nat.c (solib_symbols_add): Allocate section_addrs
2896 dynamically.
2897 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 2898
20c6c2f8
AC
28992003-06-06 Andrew Cagney <cagney@redhat.com>
2900
2901 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
2902 (d10v_frame_unwind_cache): Do not set "return_pc".
2903
884a26c8
MS
29042003-06-06 Michael Snyder <msnyder@redhat.com>
2905
2906 * h8300-tdep.c: Make tidy (long lines).
2907
088ce440
ML
29082003-06-06 Michal Ludvig <mludvig@suse.cz>
2909
8ffd9b1b 2910 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
2911 to regcache_collect().
2912
7d773d96
JB
29132003-06-05 J. Brobecker <brobecker@gnat.com>
2914
2915 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
2916 pc_in_sigtramp multiarch method.
2917 (hppa_hpux_som_init_abi): Use it.
2918 (hppa_hpux_elf_init_abi): Likewise.
2919 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
2920 macro has been multiarched.
2921 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
2922 macro here, as hppa64 isn't multiarched yet.
2923
1df6926e
AC
29242003-06-05 Andrew Cagney <cagney@redhat.com>
2925
2926 * Makefile.in (value_h): Add $(frame_h).
2927 * value.h: Include "frame.h".
2928 (struct value): Replace "frame_addr" with "frame_id".
2929 (VALUE_FRAME_ID): Replace VALUE_FRAME.
2930 * values.c (allocate_value): Use VALUE_FRAME_ID.
2931 (value_copy): Use VALUE_FRAME_ID.
2932 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
2933 * valops.c (value_assign): Update. Use frame_find_by_id.
2934
6b53acc6
ML
29352003-06-05 Michal Ludvig <mludvig@suse.cz>
2936
2937 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
2938 in each pass.
2939
4d9850d3
JJ
29402003-06-05 Jeff Johnston <jjohnstn@redhat.com>
2941
2942 * thread-db.c (check_event): For create/death event breakpoints,
2943 loop through all messages to ensure that we read the message
2944 corresponding to the breakpoint we are at.
2945
8efca6ba
MS
29462003-06-04 Michael Snyder <msnyder@redhat.com>
2947
2948 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
2949
0912c7f2
MK
29502003-06-04 Mark Kettenis <kettenis@gnu.org>
2951
2952 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
2953 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
2954 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
2955 when handling .eh_frame sections.
2956
4e370325
JB
29572003-06-04 J. Brobecker <brobecker@gnat.com>
2958
2959 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
2960 prepare_to_proceed procedure instead of the hppa-specific one.
2961 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
2962
b757528f 29632003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 2964
b757528f
JJ
2965 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
2966 * config.in: Regenerated.
2967 * configure.in: Add test for syscall function and check for
2968 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
2969 * configure: Regenerated.
2970 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
2971 <sys/syscall.h>.
2972 (kill_lwp): New function that uses tkill syscall or
2973 uses kill, depending on whether threading model is nptl or not.
2974 All callers of kill() changed to use kill_lwp().
2975 (lin_lwp_wait): Make special check when WIFEXITED occurs to
2976 see if all threads have already exited in the nptl model.
2977 (stop_and_resume_callback): New callback function used by the
2978 lin_lwp_wait thread exit handling code.
2979 (stop_wait_callback): Check for threads already having exited and
2980 delete such threads fromt the lwp list when discovered.
2981 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 2982
b757528f
JJ
2983 Roland McGrath <roland@redhat.com>
2984 * i386-linux-nat.c (ps_get_thread_area): New function needed by
2985 nptl libthread_db.
2986
087779b1
RH
29872003-06-03 Richard Henderson <rth@redhat.com>
2988
b21fd293
RH
2989 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
2990 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
2991 (alpha_sigtramp_frame_prev_register): Likewise.
2992 (alpha_heuristic_frame_prev_register): Likewise.
2993 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
2994
8ffd9b1b 2995 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
2996 alpha-specific register id names.
2997 (alpha_mdebug_frame_unwind_cache): Likewise.
2998 (alpha_mdebug_frame_prev_register): Likewise.
2999
baa490c4
RH
30002003-06-03 Richard Henderson <rth@redhat.com>
3001
3002 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3003 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3004 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3005 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3006 unwind routines.
3007 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3008 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3009 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3010
3011 * alpha-linux-tdep.c: Remove unnecessary includes.
3012 * Makefile.in (alpha-linux-tdep.o): Update.
3013
30142003-06-03 Richard Henderson <rth@redhat.com>
3015
3016 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3017 (alphabsd_fill_fpreg): Likewise.
3018
f534e522
JB
30192003-06-03 J. Brobecker <brobecker@gnat.com>
3020
3021 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3022 references to struct frame_info fields by calls to the equivalent
3023 accessors. Necessary now that frame_info is opaque.
3024
4035536b
JB
30252003-06-03 J. Brobecker <brobecker@gnat.com>
3026
3027 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3028 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3029 structure, field no longer exists.
3030
0bd79c5c
JB
30312003-06-03 J. Brobecker <brobecker@gnat.com>
3032
3033 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3034 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3035
37bb6d9f
JB
30362003-06-03 J. Brobecker <brobecker@gnat.com>
3037
3038 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3039 references to struct frame_info fields by calls to the equivalent
3040 accessors. Necessary now that frame_info is opaque.
3041
852ee05c
JB
30422003-06-03 J. Brobecker <brobecker@gnat.com>
3043
3044 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3045 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3046 structure, field no longer exists.
3047
7d58c67d
TR
30482003-06-03 Theodore A. Roth <troth@openavr.org>
3049
8ffd9b1b 3050 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
3051 accumulation of the size of all registers instead of blindly using
3052 DEPRECATED_REGISTER_BYTES.
3053
0a48e7e8
MS
30542003-06-03 Michael Snyder <msnyder@redhat.com>
3055
3056 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3057 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3058 for h8300sx.
3059
9798ab0d
JB
30602003-06-03 J. Brobecker <brobecker@gnat.com>
3061
3062 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3063 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3064
00b037e2
AC
30652003-06-03 Andrew Cagney <cagney@redhat.com>
3066
3067 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3068 (sparc_convert_to_raw): Delete function.
3069 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3070 register_convert_to_virtual.
3071
043b2f77
JJ
30722003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3073
3074 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3075 layer if not dealing with a statically-linked threaded program.
3076
f43caff8
KW
30772003-06-03 Kris Warkentin <kewarken@qnx.com>
3078
3079 * solib.c (solib_open): Update comment to reflect actual search order.
3080
ae1e7417
AC
30812003-06-03 Andrew Cagney <cagney@redhat.com>
3082
3083 * frame.c (get_frame_memory_signed): New function.
3084 (get_frame_memory, get_frame_memory_unsigned): New function.
3085 (get_frame_arch): New function.
3086 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3087 (get_frame_memory, get_frame_unsigned_memory): Declare.
3088 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3089 get_frame_memory_unsigned and get_frame_arch.
3090 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3091
cb123844
RG
30922003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3093
3094 * MAINTAINERS (write after approval): Add myself.
3095
1bb792e9
JB
30962003-06-03 Jim Blandy <jimb@redhat.com>
3097
3098 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3099 elements of gregset_t are 64 bits each, but access registers
3100 are still 32 bits, so they're packed two per gregset_t
3101 element. Unpack/pack them properly.
3102
aee8d8ba
DC
31032003-06-02 David Carlton <carlton@bactrian.org>
3104
3105 * linespec.c (find_methods): Break out code into
3106 add_matching_methods and add_constructors.
3107 (add_matching_methods): New.
3108 (add_constructors): Ditto.
3109
bf7488d2
AC
31102003-06-02 Andrew Cagney <cagney@redhat.com>
3111
bf7488d2
AC
3112 * sparc-tdep.c (sparc_print_registers): Delete call to
3113 REGISTER_CONVERTIBLE.
3114 (sparc_gdbarch_init): Do not set register_convertible.
3115 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3116 * frv-tdep.c (frv_gdbarch_init): Ditto.
3117 * cris-tdep.c (cris_gdbarch_init): Ditto.
3118
adedef68
EZ
31192003-06-02 Elena Zannoni <ezannoni@redhat.com>
3120
8ffd9b1b 3121 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
3122 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3123 (syms_from_objfile): Ditto.
3124
650fcc91
AS
31252003-06-03 Andreas Schwab <schwab@suse.de>
3126
3127 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3128 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3129
df4a182b
RH
31302003-06-02 Richard Henderson <rth@redhat.com>
3131
3132 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3133 a member of all_reggroup.
3134
c483c494
RH
31352003-06-02 Richard Henderson <rth@redhat.com>
3136
3137 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3138 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3139 (alpha_lds, alpha_sts): New.
3140 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 3141 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
3142 restructure and fail for type sizes other than 4 or 8.
3143 (alpha_value_to_register): Similarly.
3144 (alpha_extract_return_value): Use alpha_sts.
3145 (alpha_store_return_value): Use alpha_lds.
3146 (alpha_gdbarch_init): Update hooks.
3147
b38b6be2
RH
31482003-06-02 Richard Henderson <rth@redhat.com>
3149
3150 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3151 regnum identifiers.
3152 (alpha_sigtramp_register_address): Likewise.
3153
98a8e1e5
RH
31542003-06-02 Richard Henderson <rth@redhat.com>
3155
3156 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3157 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3158 * alpha-tdep.h: Declare them.
3159
3160 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3161 Remove zerobuf. Don't error on UNIQUE.
3162 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3163 (ALPHA_REGSET_UNIQUE): Provide default.
3164 (supply_gregset): Use alpha_supply_int_regs.
3165 (fill_gregset): Use alpha_fill_int_regs.
3166 (supply_fpregset): Use alpha_supply_fp_regs.
3167 (fill_fpregset): Use alpha_fill_fp_regs.
3168 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3169 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3170 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3171 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3172 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3173 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3174
67dfac52
RH
31752003-06-02 Richard Henderson <rth@redhat.com>
3176
f75d70cc
RH
3177 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3178
67dfac52
RH
3179 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3180 (alpha_store_return_value): Likewise.
3181
0cf566ec
DC
31822003-06-02 David Carlton <carlton@math.stanford.edu>
3183
3184 * block.c (contained_in): Add 'const' to arguments.
3185 (block_function): Ditto.
3186 * block.h: Update declarations for block_function and
3187 contained_in.
3188
cdef89d0
DC
31892003-06-02 David Carlton <carlton@math.stanford.edu>
3190
3191 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3192 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3193 * p-valprint.c (pascal_val_print): Ditto.
3194 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3195
72667056
RH
31962003-06-02 Richard Henderson <rth@redhat.com>
3197
98a8e1e5
RH
3198 * alpha-tdep.c (alpha_push_dummy_call): Use
3199 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 3200
8ffd9b1b 3201 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
3202 sign-extension of 32-bit values.
3203 (alpha_store_return_value): Similarly.
0ede8eca 3204
98a8e1e5
RH
3205 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3206 (alpha_extract_return_value): Likewise.
3207 (alpha_store_return_value): Likewise.
7b5e1cb3 3208
98a8e1e5
RH
3209 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3210 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 3211
98a8e1e5
RH
3212 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3213 (alpha_extract_struct_value_address): Likewise.
3214 (alpha_store_return_value): Likewise.
3215 (alpha_store_struct_return): Remove.
3216 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 3217
98a8e1e5
RH
3218 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3219 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3220 macros where appropriate.
3221 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3222 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 3223
98a8e1e5
RH
3224 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3225 for SP, GP; void_func_ptr for PC; non-language-specific types
3226 for all others.
3227 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 3228
6dd77b81
RH
32292003-06-02 Richard Henderson <rth@redhat.com>
3230
3231 * top.h (lim_at_start): Declare.
3232 * main.c (captured_main): Set it.
3233 * top.c (lim_at_start): Define.
3234 (command_loop): Use it instead of &environ.
3235 * event-top.c (command_handler): Likewise.
3236
f4dbdb54
JT
32372003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3238
3239 * mipsnbsd-tdep.c: Update copyright years.
3240 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3241
8f285956
RH
32422003-06-01 Richard Henderson <rth@redhat.com>
3243
98a8e1e5
RH
3244 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3245 (alpha-linux-tdep.o): Update dependencies.
3246 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3247 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 3248
615967cb
RH
32492003-06-01 Richard Henderson <rth@redhat.com>
3250
98a8e1e5
RH
3251 * alpha-tdep.c (alpha_register_reggroup_p): New.
3252 (alpha_gdbarch_init): Register it.
615967cb 3253
b59661bd
AC
32542003-06-02 Andrew Cagney <cagney@redhat.com>
3255
3256 * dwarfread.c: Eliminate "register"
3257 (decode_die_type): Eliminate assignment within "if".
3258 (struct_type, decode_array_element_type): Ditto.
3259 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3260 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3261 (decode_modified_type, completedieinfo): Ditto.
3262 * block.c: Eliminate "register".
3263 (blockvector_for_pc_sect): Eliminate assignment within "if".
3264 * cp-support.h (struct symbol): Opaque declaration.
3265 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3266
5ef165c2
RH
32672003-06-01 Richard Henderson <rth@redhat.com>
3268
98a8e1e5
RH
3269 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3270 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 3271
143985b7
AF
32722003-06-01 Adam Fedor <fedor@gnu.org>
3273
3274 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3275 * gdbarch.[ch]: Regenerate.
3276 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3277 (hppa_gdbarch_init): Set it in the gdbarch vector.
3278 * i386-tdep.c (i386_fetch_pointer_argument): New
3279 (i386_gdbarch_init): Set it into gdbarch.
3280 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3281 (rs6000_gdbarch_init): Set it in gdbarch.
3282 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3283 (sparc_gdbarch_init): Set it in gdbarch.
3284
ae0167b9
AC
32852003-06-01 Andrew Cagney <cagney@redhat.com>
3286
7c0b4a20
AC
3287 * defs.h (extract_address): Delete declaration.
3288 * findvar.c (extract_address): Delete function.
3289 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3290 extract_address with the inline equivalent,
3291 extract_unsigned_integer.
3292 (xstormy16_extract_struct_value_address): Ditto.
3293 (xstormy16_pointer_to_address): Ditto.
3294 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3295 * v850-tdep.c (v850_push_arguments): Ditto.
3296 (v850_extract_return_value): Ditto.
3297 (v850_extract_struct_value_address): Ditto.
3298 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3299 (sparcnbsd_get_longjmp_target_64): Ditto.
3300 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3301 (get_longjmp_target): Ditto.
3302 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3303 (sh64_extract_struct_value_address): Ditto.
3304 (sh_push_arguments): Ditto.
3305 (sh64_push_arguments): Ditto.
3306 * remote-vxsparc.c (vx_read_register): Ditto.
3307 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3308 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3309 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3310 * mipsv4-nat.c (get_longjmp_target): Ditto.
3311 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3312 * mips-nat.c (get_longjmp_target): Ditto.
3313 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3314 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3315 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3316 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3317 * irix5-nat.c (get_longjmp_target): Ditto.
3318 * irix4-nat.c (get_longjmp_target): Ditto.
3319 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3320 (ia64_push_arguments): Ditto.
3321 * hpux-thread.c (hpux_thread_store_registers): Ditto.
3322 * h8300-tdep.c (h8300_push_arguments): Ditto.
3323 (h8300_store_return_value): Ditto.
3324 (h8300_extract_struct_value_address): Ditto.
3325 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3326 (frv_push_arguments): Ditto.
3327 * avr-tdep.c (avr_pointer_to_address): Ditto.
3328 (avr_push_arguments): Ditto.
3329 * arm-tdep.c (arm_push_dummy_call): Ditto.
3330 (arm_get_longjmp_target): Ditto.
3331 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3332 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3333 (alpha_get_longjmp_target): Ditto.
3334
ae0167b9
AC
3335 * solib-irix.c (extract_mips_address): Inline extract_address,
3336 replacing it with extract_signed_integer.
3337 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3338 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3339 (first_link_map_member, open_symbol_file_object): Ditto.
3340 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3341 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3342 (LM_NEXT, LM_NAME): Ditto.
3343
44d88583
RH
33442003-06-01 Richard Henderson <rth@redhat.com>
3345
98a8e1e5
RH
3346 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3347 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3348 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3349 (alpha_cannot_store_register): Likewise.
3350 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3351 * alpha-nat.c (supply_gregset): Likewise.
3352 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 3353
310e9b6a
AC
33542003-06-01 Andrew Cagney <cagney@redhat.com>
3355
3356 * infcall.c (call_function_by_hand): Update comment on
3357 DEPRECATED_DUMMY_WRITE_SP.
3358
3359 * mips-tdep.c (mips_gdbarch_init): Do not set
3360 deprecated_dummy_write_sp.
3361 (mips_eabi_push_dummy_call): Set the SP register.
3362 (mips_o64_push_dummy_call): Set the SP register.
3363 (mips_o32_push_dummy_call): Set the SP register.
3364 (mips_n32n64_push_dummy_call): Set the SP register.
3365
5ab84872
RH
33662003-06-01 Richard Henderson <rth@redhat.com>
3367
98a8e1e5
RH
3368 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3369 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3370 (supply_gregset): Likewise.
3371 * alpha-tdep.c (alpha_store_return_value): Likewise.
3372 (alpha_get_longjmp_target): Likewise.
3373 (alpha_register_name): Constify array.
3374 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3375 deprecated_register_size, deprecated_register_bytes,
3376 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3377 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3378 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 3379
09cc52fd
RH
33802003-06-01 Richard Henderson <rth@redhat.com>
3381
3382 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3383 from arg_reg_buffer to regcache to avoid double conversion.
3384
c7f16359
MK
33852003-06-01 Mark Kettenis <kettenis@gnu.org>
3386
3387 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3388 SP_REGNUM.
3389 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3390 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3391
7131cb6e
RH
33922003-06-01 Richard Henderson <rth@redhat.com>
3393
98a8e1e5
RH
3394 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3395 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 3396
f3e0f90b
RH
33972003-06-01 Richard Henderson <rth@redhat.com>
3398
98a8e1e5
RH
3399 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3400 not overlapping PC_REGNUM.
f3e0f90b 3401
c88e30c0
RH
34022003-06-01 Richard Henderson <rth@redhat.com>
3403
98a8e1e5
RH
3404 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3405 alpha_push_arguments. Don't dump argument register data to
3406 the target stack. Fix float and 128-bit long double semantics.
3407 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3408 (alpha_fix_call_dummy): Remove.
3409 (alpha_call_dummy_words): Remove.
3410 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 3411
f1a559ae
RH
34122003-06-01 Richard Henderson <rth@redhat.com>
3413
3414 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3415
5e045346
AC
34162003-06-01 Andrew Cagney <cagney@redhat.com>
3417
95404a3e
AC
3418 * mips-tdep.c (is_mips16_addr): New function.
3419 (make_mips16_addr, unmake_mips16_addr): New functions.
3420 (pc_is_mips16, mips_fetch_instruction): Use.
3421 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3422 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3423 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3424 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3425 TARGET_MIPS.
3426 * config/mips/tm-mips.h: Update copyright.
3427 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3428 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3429 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3430 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3431 (TM_PRINT_INSN_MACH): Delete.
3432 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3433
5e045346
AC
3434 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
3435 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
3436 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
3437 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
3438 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
3439 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
3440 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
3441 mips*-*-riscos* and mips*-*-sysv* onto mips.
3442 * config/mips/mips64.mt: New file.
3443 * config/mips/mips.mt: New file.
3444 * config/mips/littlemips.mt: Delete file.
3445 * config/mips/decstation.mt: Delete file.
3446 * config/mips/vr4300el.mt: Delete file.
3447 * config/mips/vr5000el.mt: Delete file.
3448 * config/mips/vr5000.mt: Delete file.
3449 * config/mips/vr4100.mt: Delete file.
3450 * config/mips/vr4xxxel.mt: Delete file.
3451 * config/mips/vr4300.mt: Delete file.
3452 * config/mips/vr4xxx.mt: Delete file.
3453 * config/mips/bigmips.mt: Delete file.
3454 * config/mips/bigmips64.mt: Delete file.
3455 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
3456 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
3457 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
3458 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
3459 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
3460 "tm-bigmips.h".
3461 * config/mips/tm-irix3.h: Ditto.
3462 * config/mips/tm-mipsv4.h: Ditto.
3463 * config/mips/tm-embed.h: Ditto.
3464 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
3465 "tm-bigmips64.h".
3466 * config/mips/tm-vr5000el.h: Delete file.
3467 * config/mips/tm-tx39l.h: Delete file.
3468 * config/mips/tm-vr4300el.h: Delete file.
3469 * config/mips/tm-vr4xxxel.h: Delete file.
3470 * config/mips/tm-vr4300.h: Delete file.
3471 * config/mips/tm-vr4100.h: Delete file.
3472 * config/mips/tm-vr4xxx.h: Delete file.
3473 * config/mips/tm-vr5000.h: Delete file.
3474 * config/mips/tm-embedl64.h: Delete file.
3475 * config/mips/tm-embedl.h: Delete file.
3476 * config/mips/tm-embed64.h: Delete file.
3477 * config/mips/tm-bigmips64.h: Delete file.
3478 * config/mips/tm-bigmips.h: Delete file.
3479
2473a4a9
MK
34802003-06-01 Mark Kettenis <kettenis@gnu.org>
3481
97a5b208
MK
3482 Fix gdb/1216.
3483 * shnbsd-nat.c: Include "sh-tdep.h".
3484
2473a4a9
MK
3485 From Richard Henderson <rth@redhat.com>:
3486 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
3487
e0f7ec59
AC
34882003-05-31 Andrew Cagney <cagney@redhat.com>
3489
3490 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
3491 forward declaration.
3492 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3493 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3494 (mips_find_saved_regs): Use set_reg_offset.
3495 (mips_frame_init_saved_regs): Delete function.
3496 (mips_pop_frame): Call mips_find_saved_regs instead of
3497 DEPRECATED_FRAME_INIT_SAVED_REGS.
3498
68dcc709
AC
34992003-05-31 Andrew Cagney <cagney@redhat.com>
3500
3501 * mips-tdep.c (mips_gdbarch_init): Do not set
3502 deprecated_max_register_raw_size, register_virtual_size, and
3503 deprecated_max_register_virtual_size.
3504
cfc14b3a
MK
35052003-05-31 Mark Kettenis <kettenis@gnu.org>
3506
6405b0a6
MK
3507 * i386-tdep.c: Include "dwarf2-frame.h".
3508 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
3509 * Makefile.in (i386-tdep.o): Update dependencies.
3510
cfc14b3a
MK
3511 * dwarf2-frame.c, dwarf2-frame.h: New files.
3512 * Makefile.in (SFILES): Add dwarf2-frame.c.
3513 (dwarf2_frame_h): Define.
3514 (COMMON_OBS): Add dwarf2-frame.o.
3515 (dwarf2-frame.o): Add dependencies.
3516
6a2751d2
AJ
35172003-05-31 Andreas Jaeger <aj@suse.de>
3518
3519 * x86-64-linux-nat.c: Fix comment.
3520
1c3545ae
MK
35212003-05-31 Mark Kettenis <kettenis@gnu.org>
3522
10f93086
MK
3523 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
3524 function signature.
3525
1c3545ae
MK
3526 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
3527 have a sigcontext_addr handler.
3528 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
3529 sigcontext_addr handler.
3530
e11c53d2
AC
35312003-05-31 Andrew Cagney <cagney@redhat.com>
3532
3533 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
3534 (print_fp_register_row): Replace do_fp_register_row.
3535 (mips_print_fp_register): Add "file" and "frame" parameters.
3536 (mips_print_register): Add "file" and "frame" parameters.
3537 (mips_print_registers_info): Replace mips_do_registers_info.
3538 (mips_gdbarch_init): Set print_registers_info instead of
3539 deprecated_do_registers_info.
3540 (mips_read_fp_register_single): Add "frame" parameter.
3541 (mips_read_fp_register_double): Add "frame" parameter.
3542
a3386186
MK
35432003-05-31 Mark Kettenis <kettenis@gnu.org>
3544
70913449
MK
3545 * i386-tdep.c (i386_register_name): Check for MMX registers first.
3546 Fixes a bug where GDB would print the wrong register names for
3547 targets without SSE.
3548
2b5e0749
MK
3549 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
3550 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3551 registers.
3552
3553 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
3554 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
3555 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3556 TDEP->sc_sp_offset.
3557
a3386186
MK
3558 From Michal Ludvig <mludvig@suse.cz>:
3559 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
3560 and `sc_num_regs'.
3561 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3562 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3563 I386_ST0_REGNUM): Move here from...
3564 * i386-tdep.c: ... here.
3565 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
3566 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3567 registers if possible.
3568 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
3569 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
3570 Remove variables.
3571 (i386bsd_sc_reg_offset): New variable.
3572 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
3573 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3574 TDEP->sc_sp_offset.
3575 (i386fbsd_sc_reg_offset): New variable.
3576 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
3577 TDEP->sc_num_regs.
3578 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
3579 variables.
3580 (i386fbsd4_sc_reg_offset): New variable.
3581 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
3582 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3583 TDEP->sc_sp_offset.
3584 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
3585 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
3586 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
3587 Remove variables.
3588 (i386nbsd_sc_reg_offset): New variable.
3589 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
3590 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3591 TDEP->sc_sp_offset.
3592 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
3593 Remove variables.
3594 (i386obsd_sc_reg_offset): New variable.
3595 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
3596 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3597 TDEP->sc_sp_offset.
3598 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
3599 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
3600 for frame pointer offset in `struct sigcontext'.
3601
25ab4790
AC
36022003-05-31 Andrew Cagney <cagney@redhat.com>
3603
3604 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
3605 architecture methods call_dummy_words, sizeof_call_dummy_words,
3606 push_return_address, store_struct_return, and fix_call_dummy. Set
3607 push_dummy_call instead of deprecated_push_arguments.
3608 (mips_store_struct_return): Delete function.
3609 (mips_fix_call_dummy): Delete function.
3610 (mips_push_return_address): Delete function.
3611 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
3612 RA_REGNUM and T9_REGNUM.
3613 (mips_n32n64_push_dummy_call): Ditto for
3614 mips_n32n64_push_arguments.
3615 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
3616 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
3617
6a65450a
AC
36182003-05-31 Andrew Cagney <cagney@redhat.com>
3619
3620 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
3621 "dummy_addr" to "bp_addr".
3622 * infcall.c (call_function_by_hand): Pass "funaddr" to
3623 gdbarch_push_dummy_call.
3624 * gdbarch.h, gdbarch.c: Re-generate.
3625 * i386-tdep.c (i386_push_dummy_call): Update.
3626 * arm-tdep.c (arm_push_dummy_call): Update.
3627 * d10v-tdep.c (d10v_push_dummy_call): Update.
3628
c4f35dd8
MK
36292003-05-31 Mark Kettenis <kettenis@gnu.org>
3630
3631 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
3632 variable declarations.
3633 (x86_64_register_number, x86_64_register_name): Remove prototypes.
3634 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
3635 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
3636 x86_64_init_frame_pc, x86_64_init_frame_pc,
3637 x86_64_function_has_prologue): Remove prototypes.
3638 (X86_64_NUM_GREGS): New define.
3639 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
3640 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
3641 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
3642 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
3643 XMM1_REGNUM): Remove defines.
3644 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
3645 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
3646 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
3647 X86_64_XMM1_REGNUM): New defines.
3648 (struct x86_64_register_info): Renamed from `struct
3649 register_info'. Remove `size' member.
3650 (x86_64_register_info_table): Remove variable.
3651 (x86_64_register_info): New variable.
3652 (X86_64_NUM_REGS): New define.
3653 (X86_64_NUM_GREGS): Remove define.
3654 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
3655 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
3656 Remove variables.
3657 (x86_54_dwarf2_reg_to_regnum): Remove function.
3658 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
3659 (x86_64_dwarf_reg_to_regnum): New function.
3660 (x86_64_register_name): Rewrite.
3661 (x86_64_register_raw_size): Remove function.
3662 (x86_64_register_byte_table): Remove variable.
3663 (x86_64_register_byte): Remove function.
3664 (x86_64_register_virtual_type): Remove function.
3665 (x86_64_register_type): New function.
3666 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
3667 x86_64_register_convert_to_raw): Remove functions.
3668 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
3669 (x86_64_use_struct_convention): Make static. Adjust for renamed
3670 defines.
3671 (x86_64_frame_init_saved_regs): Remove function.
3672 (x86_64_push_arguments): Make static. Change to accept a regcache
3673 as argument.
3674 (x86_64_store_return_value, x86_64_extract_return_value): Make
3675 static. Rewrite based on i386 counterparts.
3676 (x86_64_push_dummy_call): New function.
3677 (X86_64_NUM_SAVED_REGS): New define.
3678 (x86_64_register_number): Remove function.
3679 (x86_64_store_struct_return): Remove function.
3680 (x86_64_frameless_function_invocation,
3681 x86_64_function_has_prologue): Remove functions.
3682 (PROLOG_BUFSIZE): Remove define.
3683 (struct x86_64_frame_cache): New structure.
3684 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
3685 x86_64_frame_cache, x86_64_frame_this_id,
3686 x86_64_frame_prev_register, x86_64_frame_p,
3687 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
3688 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
3689 functions.
3690 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
3691 variables.
3692 (x86_64_skip_prologue): Rewrite in terms of
3693 x86_64_analyze_prologue.
3694 (x86_64_frame_base_address): New function.
3695 (x86_64_frame_base): New variable.
3696 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
3697 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
3698 set deprecated_fp_regnum, deprecated_register_size,
3699 deprecated_register_bytes, register_raw_size, register_byte,
3700 register_virtual_type, register_convertiable,
3701 register_convert_to_virtual, convert_to_raw,
3702 deprecated_get_saved_register, deprecated_target_read_fp,
3703 deprecated_push_arguments, deprecated_push_return_address,
3704 deprecated_pop_frame, deprecated_store_struct_return,
3705 deprecated_frame_init_saved_regs, deprecated_frame_chain,
3706 frameless_function_invocation, deprecated_frame_saved_pc,
3707 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
3708 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
3709 deprecated_init_frame_pc and virtual_frame_pointer. Call
3710 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
3711 and x86_64_frame_p. Call frame_base_set_default to register
3712 x86_64_frame_base.
3713 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
3714 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
3715 (_initialize_x86_64_tdep): Remove function.
3716 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
3717 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
3718 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
3719 define.
3720 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
3721 (x86_64_linux_sigcontext_addr): Rewrite.
3722 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
3723 x86_64_linux_frame_saved_pc): Remove functions.
3724 (x86_64_linux_pc_in_sigtramp): Renamed from
3725 x86_64_linux_in_sigtramp. Try harder to recognize a signal
3726 trampoline.
3727 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
3728 Remove_functions.
3729 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
3730 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3731 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
3732 (x86_64_regmap): Rename to regmap.
3733 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
3734 x86_64_num_gregs.
3735 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
3736 x86_64_regmap.
3737 (x86_64_fxsave_offset): Remove function.
3738 (supply_fpregset): Simply call x86_64_supply_fxsave.
3739 (fill_fpregset): Simply call x86_64_fill_fxsave.
3740 (fetch_inferior_registers, store_inferior_registers): Avoid
3741 asignment in if-statement.
3742 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
3743 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
3744 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
3745 (fetch_core_registers): Remove function.
3746 (linux_elf_core_fns): Remove.
3747 (offsetoff): Don't define.
3748 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
3749 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
3750 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
3751 add core-regset.o.
3752 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
3753 protection against multiple includes instead of NM_X86_64_h. Add
3754 various comments. Include "config/nm-linux.h". Don't include
3755 <signal.h>.
3756 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
3757 GET_THREAD_SIGNALS): Remove defines.
3758 (x86_64_register_u_addr, kernel_u_size,
3759 lin_thread_get_thread_signals): Remove prototypes.
3760 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
3761 [HAVE_LINK_H]: Don't include "solib.h".
3762 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
3763 * config/i386/tm-x86-64linux.h: Fix comments.
3764 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
3765 x86-64-tdep.o): Update dependencies.
3766
c25083af
AC
37672003-05-30 Andrew Cagney <cagney@redhat.com>
3768
c8f55a7b
AC
3769 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
3770 Change parameter type to a "struct regcache *".
3771
c25083af
AC
3772 * gdbarch.sh: Regardless of the multi-arch level, always define
3773 the macro when not already defined.
3774 * gdbarch.h, gdbarch.c: Re-generate.
3775
fbe586ae
RH
37762003-05-30 Richard Henderson <rth@redhat.com>
3777
3778 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
3779 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
3780 (alpha_mdebug_frame_this_id): Likewise.
3781 (alpha_mdebug_frame_prev_register): Likewise.
3782 (alpha_mdebug_frame_base_address): Likewise.
3783 (alpha_mdebug_frame_locals_address): Likewise.
3784 (alpha_mdebug_frame_args_address): Likewise.
3785 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
3786 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
3787 (alpha_heuristic_frame_unwind_cache): Make static; add missing
3788 loop increment.
3789 (alpha_heuristic_frame_this_id): Make static.
3790 (alpha_heuristic_frame_prev_register): Likewise.
3791 (alpha_heuristic_frame_base_address): Likewise.
3792 * alpha-tdep.h: Update.
3793
acd5c798
MK
37942003-05-30 Mark Kettenis <kettenis@gnu.org>
3795
3796 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
3797 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
3798 defenitions.
3799 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
3800 * i386-tdep.c: Mark functions that are 64-bit safe as such.
3801 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3802 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3803 I386_ST0_REGNUM): New defines.
3804 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
3805 codestream_get): Remove define.
3806 (codestream_next_addr, condestream_addr, condestream_buf,
3807 codestream_off, codestream_cnt): Remove variables.
3808 (codestream_fill, codestream_seek, codestream_read): Remove
3809 functions.
3810 (i386_follow_jump): Rewrite to avoid usage of removed codestream
3811 functionality.
3812 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
3813 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
3814 i386_frame_saved_pc, i386_saved_pc_after_call,
3815 i386_frame_num_args, i386_frame_init_saved_regs,
3816 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
3817 i386_push_arguments): Remove functions.
3818 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
3819 functionality. Use i386_analyze_prologue instead of
3820 i386_get_frame_setup.
3821 (I386_NUM_SAVED_REGS): New define.
3822 (struct i386_frame_cache): New structure.
3823 (i386_alloc_frame_cache, i386_analyze_struct_return,
3824 i386_skip_probe, i386_analyze_frame_setup,
3825 i386_analyze_register_saves, i386_analyze_prologue,
3826 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
3827 i386_frame_prev_register, i386_sigtramp_frame_cache,
3828 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
3829 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
3830 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
3831 New functions.
3832 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
3833 New variables.
3834 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
3835 I386_EAX_REGNUM and I386_EDX_REGNUM.
3836 (i386_extract_return_value, i386_store_return_value): Use
3837 I386_ST0_REGNUM where appropriate.
3838 (i386_extract_struct_value_address): Rewrite to use extract_address.
3839 (i386_svr4_pc_in_sigtramp): Add comment.
3840 (i386_svr4_sigcontext_addr): Rewrite.
3841 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
3842 TDEP->sc_sp_offset.
3843 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
3844 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
3845 of new defines. Set push_dummy_call, don't set
3846 deprecated_push_arguments, deprecated_push_return_address,
3847 deprecated_pop_frame. Don't set parm_boundary. Don't set
3848 deprecated_frame_chain, deprecated_frame_saved_pc,
3849 deprecated_saved_pc_after_call. Set unwind_dummy_id,
3850 save_dummy_frame_tos, unwind_pc. Call
3851 frame_unwind_append_predicate and frame_base_set_default. Don't
3852 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
3853 Don't set frameless_function_invocation. Don't set
3854 deprecated_register_bytes, deprecated_register_size,
3855 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
3856 * i386-linux-tdep.c: Fix formatting in some comments.
3857 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
3858 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
3859 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
3860 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
3861 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
3862 redundant parentheses.
3863 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
3864 (i386_linux_sigcontext_addr): Use it. Rewrite.
3865 (find_minsym_and_objfile): Change name of second argument.
3866 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
3867 changed. Use frame_pc_unwind instead of
3868 DEPRECATED_SAVED_PC_AFTER_CALL.
3869 (i386_linux_init_abi): Don't set deprecated_register_bytes.
3870 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
3871 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
3872 unwinder.
3873 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
3874 "dummy-frame.h".
3875 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
3876 (_initialize_i386_cygwin_tdep): New prototype.
3877 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
3878 deprecated_frame_chain_valid.
3879 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
3880 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3881 Rely on the SVR4 defaults.
3882 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
3883 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
3884
c89b70f1
AC
38852003-05-30 Andrew Cagney <cagney@redhat.com>
3886
3887 * infcall.c (call_function_by_hand): Always call
3888 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
3889
85b32d22
RH
38902003-05-30 Richard Henderson <rth@redhat.com>
3891
c89b70f1
AC
3892 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
3893 increment.
85b32d22 3894
bfe51b1e
JB
38952003-05-29 Jim Blandy <jimb@redhat.com>
3896
3897 Use gdbarch methods for solib stuff on PowerPC Linux.
3898 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
3899 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
3900 show through.
3901 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3902 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
3903 giving the same effect as the #definitions above.
3904
1abf022c
AF
39052003-05-29 Adam Fedor <fedor@gnu.org>
3906
3907 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
3908 (find_implementation_from_class): Replace it with the standard
3909 case i.e. do nothing.
3910
d2427a71
RH
39112003-05-29 Richard Henderson <rth@redhat.com>
3912
3913 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
3914 (alpha_linux_sigtramp_offset): Use it. Make static.
3915 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
3916 update for new frame model.
3917 * alpha-mdebug-tdep.c: New file.
3918 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
3919 (alpha_osf1_init_abi): Install it.
3920 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
3921 (linked_proc_desc_table): Remove.
3922 (alpha_frame_past_sigtramp_frame): Remove.
3923 (alpha_dynamic_sigtramp_offset): Remove.
3924 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
3925 (alpha_proc_desc_is_dyn_sigtramp): Remove.
3926 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
3927 (push_sigtramp_desc): Remove.
3928 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
3929 (alpha_cannot_store_register): Likewise.
3930 (alpha_sigcontext_addr): Remove.
3931 (alpha_find_saved_regs): Remove.
3932 (alpha_frame_init_saved_regs): Remove.
3933 (alpha_init_frame_pc_first): Remove.
3934 (read_next_frame_reg): Remove.
3935 (alpha_frame_saved_pc): Remove.
3936 (alpha_saved_pc_after_call): Remove.
3937 (temp_proc_desc, temp_saved_regs): Remove.
3938 (alpha_about_to_return): Remove.
3939 (cached_proc_desc): Remove.
3940 (alpha_frame_chain): Remove.
3941 (alpha_print_extra_frame_info): Remove.
3942 (alpha_init_extra_frame_info): Remove.
3943 (alpha_frame_locals_address): Remove.
3944 (alpha_frame_args_address): Remove.
3945 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
3946 (alpha_push_dummy_frame): Remove.
3947 (alpha_pop_frame): Remove.
3948 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
3949 (alpha_read_insn): New.
3950 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
3951 for different insn encodings.
3952 (alpha_in_lenient_prologue): Remove.
3953 (struct alpha_sigtramp_unwind_cache): New.
3954 (alpha_sigtramp_frame_unwind_cache): New.
3955 (alpha_sigtramp_register_address): New.
3956 (alpha_sigtramp_frame_this_id): New.
3957 (alpha_sigtramp_frame_prev_register): New.
3958 (alpha_sigtramp_frame_unwind): New.
3959 (alpha_sigtramp_frame_p): New.
3960 (struct alpha_heuristic_unwind_cache): New.
3961 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
3962 don't count nop insns that occur between functions.
3963 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
3964 heuristic_proc_desc, but without the mdebug wrapping.
3965 (alpha_heuristic_frame_this_id): New.
3966 (alpha_heuristic_frame_prev_register): New.
3967 (alpha_heuristic_frame_unwind): New.
3968 (alpha_heuristic_frame_p): New.
3969 (alpha_heuristic_frame_base_address): New.
3970 (alpha_heuristic_frame_base): New.
3971 (alpha_unwind_dummy_id): New.
3972 (alpha_unwind_pc): New.
3973 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
3974 frame related deprecated initializations; install replacements.
3975 (alpha_dump_tdep): Remove.
3976 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
3977 (alpha_read_insn, alpha_after_prologue,
3978 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
3979 alpha_heuristic_frame_prev_register,
3980 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
3981 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3982 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
3983 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
3984
93ec1121
AC
39852003-05-29 Andrew Cagney <cagney@redhat.com>
3986
3987 * gdb_assert.h (gdb_assert_fail): Provide different definitions
3988 dependant on the availability of ASSERT_FUNCTION.
3989 (ASSERT_FUNCTION): Do not define when there is no function name.
3990
98f08d3d
KB
39912003-05-29 Kevin Buettner <kevinb@redhat.com>
3992
3993 From Jimi X <jimix@watson.ibm.com>:
3994 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
3995
0897f59b
JB
39962003-05-28 Jim Blandy <jimb@redhat.com>
3997
3998 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
3999 argument to ptrace to int; the system headers should give it the
4000 right type, and pointers don't fit in ints on powerpc64-*-*.
4001
14898363
L
40022003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4003
4004 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4005 DW_TAG_catch_block.
4006
a7a48797
EZ
40072003-05-26 Elena Zannoni <ezannoni@redhat.com>
4008
4009 * stabsread.c (dbx_lookup_type): Make static.
4010 (read_type): Ditto.
4011 (add_undefined_type): Ditto.
4012 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4013 not export.
4014
f5479e9c
EZ
40152003-05-26 Elena Zannoni <ezannoni@redhat.com>
4016
4017 * hpread.c (hpread_has_name): Make static.
4018 (hpread_psymtab_to_symtab): Ditto.
4019 (file_exists): Ditto.
4020 (hpread_call_pxdb): Ditto.
4021 (hpread_pxdb_needed): Ditto.
4022 (hpread_quick_traverse): Ditto.
4023 (hpread_get_header): Ditto.
4024 (hpread_get_lntt): Ditto.
4025 (hpread_get_slt): Ditto.
4026 (class_of): Ditto.
4027
eb2e12d7
AS
40282003-05-25 Andreas Schwab <schwab@suse.de>
4029
78bf922a
AS
4030 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4031 stack_align and deprecated_extra_stack_alignment_needed.
4032 (m68k_stack_align): Delete.
4033
eb2e12d7
AS
4034 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4035 (m68k_register_virtual_size): Likewise.
4036 (altos_skip_prologue): Remove obsolete function.
4037 (isi_frame_num_args): Likewise.
4038 (news_frame_num_args): Likewise.
4039 (m68k_fix_call_dummy): Make static.
4040 (m68k_push_dummy_frame): Likewise.
4041 (m68k_pop_frame): Likewise.
4042 (m68k_skip_prologue): Likewise.
4043 (m68k_frame_init_saved_regs): Likewise.
4044 (m68k_saved_pc_after_call): Likewise.
4045 (m68k_get_longjmp_target): Make multi-arch.
4046 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4047 structure. Register m68k_get_longjmp_target if enabled.
4048 * m68k-tdep.h (struct gdbarch_tdep): Define.
4049 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4050
4051 * Makefile.in (config.status): Also depend on configure.tgt
4052 and configure.host.
4053 (m68klinux-tdep.o): Update dependencies.
4054 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4055 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4056 (M68K_LINUX_JB_PC): Define.
4057 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4058 and take additional parameter.
4059 (m68k_linux_sigtramp_saved_pc): Update.
4060 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4061 m68k_linux_pc_in_sigtramp, in_plt_section,
4062 find_solib_trampoline_target.
4063 * config/m68k/tm-linux.h: Don't include any tm headers.
4064 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4065 (JB_ELEMENT_SIZE): Likewise.
4066 (JB_PC): Likewise.
4067 (GET_LONGJMP_TARGET): Likewise.
4068 (IN_SIGTRAMP): Likewise.
4069 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4070
eb2c22dc
MK
40712003-05-25 Mark Kettenis <kettenis@gnu.org>
4072
4073 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4074 (sparc32_push_arguments): Re-implement by calling
4075 sparc32_do_push_arguments.
4076
44b7b84e
MK
40772003-05-25 Mark Kettenis <kettenis@gnu.org>
4078
4079 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4080 SPARC_O1_REGNUM): New defines.
4081 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4082 (sparc32_store_return_value): New function.
4083 (sparc_extract_struct_value_address): Rewrite to operate on a
4084 regcache.
4085 (sparc_gdbarch_init): Don't set
4086 deprecated_extract_struct_value_address. Set
4087 extract_struct_value_address instead. Don't set
4088 deprecated_extract_return_value and deprecated_store_return_value
4089 for 32-bit targets. Set extract_return_value and
4090 store_return_value instead.
4091 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4092 DEPRECTAED_EXTRACT_RETURN_VALUE,
4093 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4094 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4095 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4096 (sparc_store_return_value): Remove prototype.
4097 (sparc32_store_return_value): New prototype.
4098 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4099 Adjust prototypes.
4100
f6ad61e3
MK
41012003-05-24 Mark Kettenis <kettenis@gnu.org>
4102
4103 * sparcnbsd-tdep.c: Include "gdb_string.h".
4104
b276f1bb
AC
41052003-05-23 Andrew Cagney <cagney@redhat.com>
4106
4107 * p-valprint.c (pascal_val_print): Replace extract_address with
4108 the inline equivalent extract_unsigned_integer.
4109 * jv-valprint.c (java_value_print): Ditto.
4110 * ada-valprint.c (ada_val_print_1): Ditto.
4111 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4112
e76c5fcc
TR
41132003-05-23 Theodore A. Roth <troth@openavr.org>
4114
4115 * blockframe.c (frameless_look_for_prologue): Remove unused
4116 after_prologue variable.
4117
2cdd89cb
MK
41182003-05-23 Mark Kettenis <kettenis@gnu.org>
4119
4120 * blockframe.c (get_pc_function_start): Rewrite to avoid
4121 asignments in if-statements.
4122
182d43bc
EZ
41232003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4124
4125 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 4126 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
4127 files, don't relocate absolute symbols (and do use mst_abs).
4128
e8f3fcdd
AC
41292003-05-23 Andrew Cagney <cagney@redhat.com>
4130
4131 * objc-lang.c: Include "gdb_assert.h".
4132 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4133 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4134 (gdb_check, gdb_check_fatal): Delete functions.
4135 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4136 gdb_assert.
4137 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4138 * Makefile.in (objc-lang.o): Update dependencies.
4139
3c23e6fb
ILT
41402003-05-22 Ian Lance Taylor <ian@airs.com>
4141
4142 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4143 with fprintf_filtered, not fprintf_unfiltered.
4144
af1342ab
AC
41452003-05-22 Andrew Cagney <cagney@redhat.com>
4146
4147 * stack.c (frame_info): Inline extract_address, replacing it with
4148 extract_unsigned_integer.
4149 * findvar.c (unsigned_pointer_to_address): Ditto.
4150 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4151 * dwarf2expr.c (dwarf2_read_address): Ditto.
4152 * frame.c (frame_pc_unwind): Update comment.
4153 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4154
47e242ec
JJ
41552003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4156
4157 * infptrace.c (detach): Call print_sys_errmsg rather than
4158 perror_with_name to issue warning message when errno is non-zero
4159 after calling ptrace detach.
4160
e2ac8128
JB
41612003-05-21 J. Brobecker <brobecker@gnat.com>
4162
4163 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4164 macro definitions from here...
4165 * hppa-tdep.c: ...to there.
4166
92b3541e
KB
41672003-05-20 Kevin Buettner <kevinb@redhat.com>
4168
4169 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4170 register_ptrace_addr(). Fix all callers.
4171
55809acb
AS
41722003-05-21 Andreas Schwab <schwab@suse.de>
4173
4174 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4175 dependencies.
4176 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4177 end.
4178 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4179 (_initialize_m68k_linux_tdep): New function.
4180 (m68k_linux_frame_saved_pc): Make static.
4181 (m68k_linux_extract_return_value): Likewise.
4182 (m68k_linux_store_return_value): Likewise.
4183 (m68k_linux_extract_struct_value_address): Likewise.
4184 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4185 Remove.
4186 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4187 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4188 (DEPRECATED_FRAME_SAVED_PC): Remove.
4189
0fbc10f7
KW
41902003-05-20 Kris Warkentin <kewarken@qnx.com>
4191
4192 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4193 regset numbering rather than our own.
4194
58da2eb2
DC
41952003-05-19 David Carlton <carlton@bactrian.org>
4196
4197 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4198
1fcb5155
DC
41992003-05-19 David Carlton <carlton@bactrian.org>
4200
4201 Partial fix for PR c++/827.
4202 * cp-support.h: Include symtab.h.
4203 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4204 * cp-namespace.c: Update contributors.
4205 (cp_lookup_symbol_nonlocal): New.
4206 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4207 (lookup_symbol_file): Ditto.
4208 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4209 * block.h: Declare block_scope, block_using, block_global_block.
4210 * block.c (block_scope): New.
4211 (block_using, block_global_block): Ditto.
4212 * Makefile.in (cp_support_h): Depend on symtab_h.
4213 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4214
5f9a71c3
DC
42152003-05-19 David Carlton <carlton@bactrian.org>
4216
4217 * language.h (struct language_defn): Add 'la_value_of_this'
4218 and 'la_lookup_symbol_nonlocal' members.
4219 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4220 lookup_symbol_static, lookup_symbol_global,
4221 lookup_symbol_aux_block.
4222 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4223 if we should search fields of this and how to do static/global
4224 lookup.
4225 (lookup_symbol_aux_block): Make extern.
4226 (basic_lookup_symbol_nonlocal): New.
4227 (lookup_symbol_static, lookup_symbol_global): Ditto.
4228 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4229 'la_lookup_symbol_nonlocal' members.
4230 * c-lang.c (c_language_defn, cplus_language_defn)
4231 (asm_language_defn, minimal_language_defn): Ditto.
4232 * jv-lang.c (java_language_defn): Ditto.
4233 * language.c (unknown_language_defn, auto_language_defn)
4234 (local_language_defn): Ditto.
4235 * m2-lang.c (m2_language_defn): Ditto.
4236 * objc-lang.c (objc_language_defn): Ditto.
4237 * scm-lang.c (scm_language_defn): Ditto.
4238 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4239 * p-lang.c (pascal_language_defn): Ditto for both.
4240 * Makefile.in (f-lang.o): Depend on value_h.
4241 (p-lang.o): Ditto.
4242
89a9d1b1
DC
42432003-05-19 David Carlton <carlton@bactrian.org>
4244
4245 * block.h: Declare block_static_block.
4246 * block.c (block_static_block): New.
4247 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4248 lookup_symbol_aux_local, calling block_static_block instead.
4249 (lookup_symbol_aux_local): Delete 'static_block' argument.
4250
eed3f8ab
DC
42512003-05-19 David Carlton <carlton@bactrian.org>
4252
4253 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4254
a09d8bda
ML
42552003-05-19 Michal Ludvig <mludvig@suse.cz>
4256
4257 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4258 register numbers mapping.
4259
69636828
AF
42602003-05-18 Adam Fedor <fedor@gnu.org>
4261
4262 * symtab.c (completion_list_objc_symbol): New function.
4263 (make_symbol_completion_list): Use it to add ObjC symbols
4264 when looking though the list.
4265 (language_search_unquoted_string): New function.
4266 (make_file_symbol_completion_list): Use it.
4267
55baeb84
AS
42682003-05-18 Andreas Schwab <schwab@suse.de>
4269
d0b45d99
AS
4270 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4271 dependencies.
4272 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4273 as m68k_linux_extract_return_value.
4274 (DEPRECATED_STORE_RETURN_VALUE): Define as
4275 m68k_linux_store_return_value.
4276 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4277 m68k_linux_extract_struct_value_address.
4278 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4279 get_next_frame, get_frame_base, get_frame_pc.
4280 (m68k_linux_frame_saved_pc): Use get_frame_base.
4281 (m68k_linux_extract_return_value): New function.
4282 (m68k_linux_store_return_value): New function.
4283 (m68k_linux_extract_struct_value_address): New function.
4284 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4285
55baeb84
AS
4286 * c-exp.y (typebase): Remove duplicate occurence of
4287 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 4288 of lookup_signed_typename.
55baeb84 4289
b6b08ebf
MK
42902003-05-18 Mark Kettenis <kettenis@gnu.org>
4291
4292 * dwarf2loc.c (find_location_expression): Change type of second
4293 argument to `size_t *'.
4294 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4295 for size variable.
4296
5ad1c190
DC
42972003-05-18 David Carlton <carlton@bactrian.org>
4298
4299 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4300 'linkage_name'. Add comment.
4301 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4302 'linkage_name'.
4303 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4304 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4305 (lookup_block_symbol): Ditto.
4306
b8b527c5
AC
43072003-05-16 Andrew Cagney <cagney@redhat.com>
4308
4309 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4310 * gdbarch.h, gdbarch.c: Re-generate.
4311 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4312 * TODO (REGISTER_BYTES): Delete reference.
4313 * alpha-tdep.c (alpha_gdbarch_init): Update.
4314 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4315 * x86-64-tdep.c (x86_64_init_abi): Update.
4316 * vax-tdep.c (vax_gdbarch_init): Update.
4317 * v850-tdep.c (v850_gdbarch_init): Update.
4318 * sparc-tdep.c (sparc_gdbarch_init): Update.
4319 * sh-tdep.c (sh_gdbarch_init): Update.
4320 * s390-tdep.c (s390_gdbarch_init): Update.
4321 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4322 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4323 (ns32k_gdbarch_init_32382): Update.
4324 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4325 * mcore-tdep.c (mcore_gdbarch_init): Update.
4326 * m68k-tdep.c (m68k_gdbarch_init): Update.
4327 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4328 * ia64-tdep.c (ia64_gdbarch_init): Update.
4329 * i386-tdep.c (i386_gdbarch_init): Update.
4330 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4331 * hppa-tdep.c (hppa_gdbarch_init): Update.
4332 * h8300-tdep.c (h8300_gdbarch_init): Update.
4333 * frv-tdep.c (frv_gdbarch_init): Update.
4334 * cris-tdep.c (cris_gdbarch_init): Update.
4335 * avr-tdep.c (avr_gdbarch_init): Update.
4336 * arm-tdep.c (arm_gdbarch_init): Update.
4337 * sparc-tdep.c (sparc_pop_frame): Update.
4338 * rs6000-tdep.c (rs6000_pop_frame): Update.
4339 * remote.c (init_remote_state): Update.
4340 (remote_prepare_to_store): Update.
4341 * remote-vx.c (vx_prepare_to_store): Update.
4342 * remote-sds.c (sds_fetch_registers): Update.
4343 (sds_prepare_to_store): Update.
4344 * remote-array.c: Update.
4345 * regcache.c (init_legacy_regcache_descr): Update.
4346 (init_regcache_descr): Update.
4347 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4348 (mips_o64_extract_return_value): Update.
4349 * irix5-nat.c (fetch_core_registers): Update.
4350 * irix4-nat.c (fetch_core_registers): Update.
4351 * i386-tdep.h: Update.
4352 * hppa-tdep.c (pa_do_registers_info): Update.
4353 (pa_do_strcat_registers_info): Update.
4354 * cris-tdep.c (cris_register_bytes_ok): Update.
4355 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4356 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4357 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4358 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4359 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4360 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4361 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4362 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4363 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4364 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4365 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4366 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4367 (REGISTER_BYTES_OK): Update.
4368 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4369 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4370
ee2842e2
ILT
43712003-05-16 Ian Lance Taylor <ian@airs.com>
4372
4373 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4374 (vax_print_insn, print_insn_arg): Remove static functions.
4375 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4376 print_insn_vax from opcodes library.
4377 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4378
973177d3
AC
43792003-05-15 Andrew Cagney <cagney@redhat.com>
4380
aaab4dba
AC
4381 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4382 * target.h (memory_breakpoint_from_pc): Delete declaration.
4383 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4384 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4385 * monitor.c (monitor_insert_breakpoint): Use
4386 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4387 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4388 * gdbarch.h, gdbarch.c: Re-generate.
4389 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4390 (sparc_gdbarch_init): Set breakpoint_from_pc to
4391 sparc_breakpoint_from_pc.
4392 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4393 (BREAKPOINT_FROM_PC): Define.
4394 (sparc_breakpoint_from_pc): Declare.
4395 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4396 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4397 (BREAKPOINT_FROM_PC): Define.
4398 (BREAKPOINT): Delete macro.
4399 * target.h: Update comment.
4400 * s390-tdep.c (s390_gdbarch_init): Update comments.
4401 * remote.c: Update comments.
4402 * remote-mips.c: Update comments.
4403 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4404 * mem-break.c: Update comment.
4405 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4406 (ia64_memory_insert_breakpoint): Update.
4407 * config/sparc/tm-sparc.h: Update comment.
4408 * config/pa/tm-hppa64.h: Update comment.
4409 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4410 (rs6000_breakpoint_from_pc): Update.
4411 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4412 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4413 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4414 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4415 (mips_breakpoint_from_pc): Update.
4416 (mips_dump_tdep): Update.
4417
e06963ff
AC
4418 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4419 * minsyms.c (lookup_minimal_symbol): Inline
4420 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
4421
973177d3
AC
4422 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4423 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4424 * p-lang.c (pascal_printstr): Ditto.
4425 * objc-lang.c (objc_printstr): Ditto.
4426 * m2-lang.c (m2_printstr): Ditto.
4427 * jv-valprint.c (java_print_value_fields): Ditto.
4428 * f-lang.c (f_printstr): Ditto.
4429 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
4430 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4431 for repeat_count_threshold.
4432 * Makefile.in (cp-valprint.o): Update dependencies.
4433
5ea2bd7f 44342003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 4435
5ea2bd7f
JJ
4436 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
4437 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
4438 they start with mov r2,r12. Support skipping over indirect stores
4439 of the input registers. Upon hitting a non-nop branch instruction
4440 or predicated instruction, bail out by setting lim_pc to the current
4441 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
4442 beyond our calculated value and we have trust_limit set,
4443 use the lim_pc value.
4444
cc8c88f3
AC
44452003-05-15 Andrew Cagney <cagney@redhat.com>
4446
4447 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
4448 generic_find_dummy_frame.
4449 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
4450 (deprecated_generic_find_dummy_frame): Update.
4451 (deprecated_read_register_dummy): Update.
4452 * frame.c (deprecated_generic_get_saved_register): Update.
4453
909cd28e
TR
44542003-05-15 Theodore A. Roth <troth@openavr.org>
4455
4456 * avr-tdep.c (avr_breakpoint_from_pc): New function.
4457 (avr_gdbarch_init): Set breakpoint_from_pc method.
4458
b923b08d
AC
44592003-05-15 Andrew Cagney <cagney@redhat.com>
4460
4461 * regcache.c (build_regcache): Set deprecated_register_valid
4462 directly.
4463 (deprecated_grub_regcache_for_register_valid): Delete function.
4464 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
4465 declaration.
4466
ae2f03ac 44672003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
4468
4469 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
4470 * symtab.c (lookup_symbol_aux): Delete calls to
4471 lookup_symbol_aux_minsyms.
4472 (lookup_symbol_aux_minsyms): Comment out function and
4473 prototype. Delete lookup by mangled name.
ae2f03ac 4474
18ec9831
KB
44752003-05-14 Kevin Buettner <kevinb@redhat.com>
4476
4477 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
4478 correctly indicate an empty stack and ``stack_allocated'' to the
4479 indicate the number of elements initially allocated.
4480 (dwarf_expr_grow_stack): Simplify method for computing new
4481 stack size. Don't loop infinitely if ``stack_len'' is zero.
4482 (execute_stack_op): Move ``ctx->in_reg'' initialization
4483 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
4484 be used in conjuction with DW_OP_piece. Revise error message
4485 accordingly.
4486
de18ac1f
TR
44872003-05-14 Theodore A. Roth <troth@openavr.org>
4488
4489 * MAINTAINERS: Update my email address.
4490 * avr-tdep.c: Ditto.
4491
176620f1
EZ
44922003-05-14 Elena Zannoni <ezannoni@redhat.com>
4493
4494 * symtab.h (enum domain_enum): Rename from namespace_enum.
4495 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
4496 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
4497 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
4498 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
4499 TYPES_NAMESPACE, METHODS_NAMESPACE.
4500 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
4501 (struct symbol, struct partial_symbol): Rename field
4502 'namespace_enum namespace' to 'domain_enum domain'.
4503 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
4504 Delete old define kludge for namespace.
4505
4506 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
4507 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
4508 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
4509 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
4510 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
4511 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
4512 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
4513 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
4514 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
4515 occurrences of the above.
4516
b7f31508
ILT
45172003-05-14 Ian Lance Taylor <ian@airs.com>
4518
4519 * Makefile.in (install-only): Use $(SHELL) when running
4520 mkinstalldirs.
4521
2fdbdd39
ILT
45222003-05-13 Ian Lance Taylor <ian@airs.com>
4523
a208d82c
ILT
4524 * MAINTAINERS (write after approval): Add myself.
4525
2fdbdd39
ILT
4526 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
4527 second and third arguments.
4528 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4529 * ser-unix.c (_initialize_ser_hardwire): Likewise.
4530
fbd9dcd3
AC
45312003-05-13 Andrew Cagney <cagney@redhat.com>
4532
4533 * defs.h (store_address): Delete declaration.
4534 findvar.c (store_address): Delete function.
4535 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
4536 store_unsigned_integer.
4537 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
4538 * v850-tdep.c (v850_push_arguments): Ditto.
4539 * sparc-tdep.c (sparc_get_saved_register): Ditto.
4540 * sh-tdep.c (sh64_get_saved_register): Ditto.
4541 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
4542 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
4543 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
4544 (mips_get_saved_register): Ditto.
4545 * ia64-tdep.c (ia64_get_saved_register): Ditto.
4546 (find_func_descr, ia64_push_arguments): Ditto.
4547 * i386-tdep.c (i386_push_arguments): Ditto.
4548 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4549 * frv-tdep.c (frv_push_arguments): Ditto.
4550 * frame.c (legacy_saved_regs_prev_register): Ditto.
4551 (deprecated_generic_get_saved_register): Ditto.
4552 * findvar.c (unsigned_address_to_pointer): Ditto.
4553 * dwarf2read.c (dwarf2_const_value): Ditto.
4554 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4555 * alpha-tdep.c (alpha_push_arguments): Ditto.
4556
6760f9e6
JB
45572003-05-12 J. Brobecker <brobecker@gnat.com>
4558
4559 * NEWS: Mention that the hppa-hpux port has been partially
4560 multiarched (32bit ABIT only, so far).
4561
30e221b4
AC
45622003-05-11 Andrew Cagney <cagney@redhat.com>
4563
4564 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
4565 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
4566 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
4567 sim/testsuite/sim/arm/misaligned2.ms, and
4568 sim/testsuite/sim/arm/misaligned3.ms.
4569 * disasm.h (struct ui_file): Add opaque struct declaration.
4570 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
4571 * frame.h (struct ui_file): Ditto.
4572
dea7f9ba
MK
45732003-05-11 Mark Kettenis <kettenis@gnu.org>
4574
4575 * value.h: Pretty print.
4576
01986c48
MK
45772003-05-10 Mark Kettenis <kettenis@gnu.org>
4578
4579 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
4580
123a958e
AC
45812003-05-08 Andrew Cagney <cagney@redhat.com>
4582
4583 * regcache.h (max_register_size): Delete declaration.
4584 * regcache.c (max_register_size): Delete function.
4585 (struct regcache_descr): Delete field "max_register_size".
4586 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
4587 registers fit in MAX_REGISTER_SIZE.
4588 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
4589 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
4590 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
4591 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
4592 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
4593 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
4594 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
4595 * dve3900-rom.c, hppa-tdep.c: Ditto.
4596
eb294659
DC
45972003-05-08 David Carlton <carlton@math.stanford.edu>
4598
4599 * valops.c (push_word): Fix typo.
4600
d9d9c31f
AC
46012003-05-08 Andrew Cagney <cagney@redhat.com>
4602
4603 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
4604 * gdbarch.h: Re-generate.
4605 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
4606 (legacy_max_register_raw_size): Delete declaration.
4607 * regcache.c (legacy_max_register_raw_size): Delete function.
4608 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
4609 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
4610 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
4611 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
4612 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
4613 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
4614 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
4615 * findvar.c, dwarf2cfi.c: Ditto.
4616
22540ece
AC
46172003-05-08 Andrew Cagney <cagney@redhat.com>
4618
4619 * mips-tdep.c (read_signed_register): New function, moved to here
4620 from "regcache.c".
4621 (read_signed_register_pid): Ditto.
4622 * regcache.c (read_signed_register_pid): Delete function, moved to
4623 "mips-tdep.c".
4624 (read_signed_register): Ditto.
4625 * regcache.h (read_signed_register): Delete declaration.
4626 (read_signed_register_pid): Delete declaration.
4627
0c92afe8
AC
46282003-05-08 Andrew Cagney <cagney@redhat.com>
4629
4630 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
4631 * gdbarch.h: Re-generate.
4632 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
4633 (legacy_max_register_virtual_size): Delete declaration.
4634 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
4635 * d10v-tdep.c (d10v_print_registers_info): Ditto.
4636 * tracepoint.c (memrange_sortmerge): Ditto.
4637 * sparc-tdep.c (sparc_print_registers): Ditto.
4638 * regcache.c (legacy_max_register_virtual_size): Delete function.
4639
6037b830
JB
46402002-05-08 J. Brobecker <brobecker@gnat.com>
4641
4642 * fork-child.c (escape_bang_in_quoted_argument): New function.
4643 (fork_inferior): Escape '!' characters in quoted arguments
4644 only when needed.
4645
5d62c8b1
JB
46462003-05-08 J. Brobecker <brobecker@gnat.com>
4647
4648 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
4649 the language of the CU is not currently supported by GDB.
4650
20a0e81d
JB
46512003-05-08 J. Brobecker <brobecker@gnat.com>
4652
4653 * defs.h (language): Add language_minimal enum value.
4654 * c-lang.c (minimal_language_defn): New language definition.
4655 (_initialize_c_language): Add the new minimal language to the list
4656 of languages known to GDB.
4657
710ee10a
KB
46582003-05-08 Kevin Buettner <kevinb@redhat.com>
4659
4660 * frame.c (get_frame_type): Don't attempt to lazily initialize
4661 frame's unwinder for legacy frames.
4662
1750fa04
AC
46632003-05-07 Andrew Cagney <cagney@redhat.com>
4664
4665 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
4666 and "regcache" parameters.
4667 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
4668
ddf9f258 46692003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
4670
4671 * dwarf2read.c (dwarf_decode_lines): Only use output of
4672 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
4673 the current address.
4674
87767c29
AC
46752003-05-07 Andrew Cagney <cagney@redhat.com>
4676
4677 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
4678 code.
4679
5e7b2f39
JB
46802003-05-07 Jim Blandy <jimb@redhat.com>
4681
4682 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
4683 'maint info symtabs' and 'maint info psymtabs'.
4684 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
4685 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
4686 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
4687 Declarations updated.
4688 * maint.c (maintenance_list_command): Delete.
4689 (_initialize_maint_cmds): Update calls to add_cmd.
4690 * gdbcmd.h (maintenancelistlist): Delete declaration.
4691 * cli/cli-cmds.c (maintenancelistlist): Delete.
4692 (init_cmd_lists): Don't initialize it.
4693 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
4694
f6684c31
AC
46952003-05-07 Andrew Cagney <cagney@redhat.com>
4696
4697 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
4698 "regcache".
4699 (d10v_print_registers_info): Update.
4700 (d10v_dmap_register, d10v_imap_register): Delete functions.
4701 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
4702 and "imap_register".
4703 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
4704 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
4705 * arch-utils.c (generic_remote_translate_xfer_address): Add
4706 "regcache" and "gdbarch" parameters.
4707 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
4708 parameter. Change class to multi-arch.
4709 * gdbarch.h, gdbarch.c: Re-generate.
4710 * remote.c (remote_xfer_memory): Use
4711 gdbarch_remote_translate_xfer_address.
8ffd9b1b 4712
e4846b08
JJ
47132003-05-07 Jeff Johnston <jjohnstn@redhat.com>
4714
4715 * infrun.c (prev_pc): Move declaration ahead of proceed().
4716 (proceed): Refresh prev_pc value before resuming.
4717 (stop_stepping): Remove code to refresh prev_pc.
4718
6b71b8ac
KW
47192003-05-06 Kris Warkentin <kewarken@qnx.com>
4720
4721 * nto-tdep.c: Removed stray comment.
4722
47979a4b
KW
47232003-05-06 Kris Warkentin <kewarken@qnx.com>
4724
4725 * i386-nto-tdep.c: Fix old K&R function definitions.
4726 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
4727 Also change add_show_from_set() call to add_setshow_cmd().
4728 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
4729
00905d52
AC
47302003-05-05 Andrew Cagney <cagney@redhat.com>
4731
4732 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
4733 (fprint_dummy_frames): New function.
4734 (maintenance_print_dummy_frames): New function.
4735 (_initialize_dummy_frame): Add command "maint print dummy-frames".
4736 * frame.c (fprint_frame_id): Make global.
4737 * frame.h (fprint_frame_id): Declare.
4738 * Makefile.in (dummy-frame.o): Update dependencies.
4739
b1e29e33
AC
47402003-05-05 Andrew Cagney <cagney@redhat.com>
4741
4742 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
4743 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
4744 SIZEOF_CALL_DUMMY_WORDS.
4745 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
4746 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
4747 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
4748 CALL_DUMMY_BREAKPOINT_OFFSET.
4749 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
4750 CALL_DUMMY_START_OFFSET.
4751 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
4752 * gdbarch.h, gdbarch.c: Re-generate.
4753 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
4754 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
4755 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
4756 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
4757 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
4758 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
4759 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
4760 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
4761 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
4762 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
4763 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
4764 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
4765 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
4766 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
4767 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
4768
47692003-05-05 Kris Warkentin <kewarken@qnx.com>
4770
4771 * configure.tgt: Add i[3456]86-*-nto*.
4772 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
4773 * nto-tdep.c: New file. Neutrino target support routines.
4774 * nto-tdep.h: New file. Neutrino target header.
4775 * config/tm-qnxnto.h: New file.
4776 * config/i386/i386nto.mt: New file.
4777 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 4778
0ce3d317
AC
47792003-05-04 Andrew Cagney <cagney@redhat.com>
4780
4781 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
4782 (load_infrun_state): Ditto.
4783 (struct thread_info): Drop "prev_func_name" field.
4784 * thread.c (load_infrun_state): Update.
4785 (save_infrun_state): Update.
4786 * infrun.c (prev_func_name): Delete variable.
4787 (init_wait_for_inferior): Do not clear prev_func_name.
4788 (stop_stepping, keep_going, context_switch): Do not swap
4789 prev_func_name.
4790 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
4791 instead of PC_IN_SIGTRAMP.
4792
46654a5b
AC
47932003-05-04 Andrew Cagney <cagney@redhat.com>
4794
4795 * sentinel-frame.c (sentinel_frame_prev_register): Replace
4796 REGISTER_BYTE with register_offset_hack.
4797 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
4798 that REGISTER_BYTE is consistent with the regcache.
4799 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
4800 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 4801
14b08c1b
MK
48022003-05-04 Mark Kettenis <kettenis@gnu.org>
4803
04c8243f
MK
4804 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
4805 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
4806
14b08c1b
MK
4807 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
4808
c7a11e01
JB
48092003-05-03 J. Brobecker <brobecker@gnat.com>
4810
4811 From Thierry Schneider <tpschneider1@yahoo.com>
4812 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
4813 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
4814 (mi-cmd-symbol.o): Add rule.
4815
7043d8dc
AC
48162003-05-03 Andrew Cagney <cagney@redhat.com>
4817
4818 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
4819 comments noteing that it replaces the old FIX_CALL_DUMMY code.
4820 * gdbarch.h, gdbarch.c: Re-generate.
4821 * d10v-tdep.c (d10v_push_dummy_code): New function.
4822 (d10v_gdbarch_init): Set push_dummy_code.
4823 * infcall.c (legacy_push_dummy_code): New function.
4824 (generic_push_dummy_code): New function.
4825 (push_dummy_code): New function.
4826 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
4827 instead of dummy_addr, to push_dummy_call. Move call to
4828 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
4829 switch.
4830 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
4831
92bf2b80
AC
48322003-05-03 Andrew Cagney <cagney@redhat.com>
4833
4834 * disasm.h (print_insn): Declare.
4835 * disasm.c (init_gdb_disassemble_info): New function.
4836 (gdb_disassembly): Call init_gdb_disassemble_info.
4837 (gdb_print_insn): New function.
4838 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
4839 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
4840 * mcore-tdep.c: Include "disasm.h"
4841 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
4842 * d10v-tdep.c: Include "disasm.h".
4843 (display_trace): Call gdb_print_insn, instead of print_insn.
4844 (print_insn): Delete function.
4845 * printcmd.c: Include "disasm.h".
4846 (print_insn): Delete function.
4847 (print_formatted): Call gdb_print_insn, instead of print_insn.
4848 * Makefile.in (printcmd.o): Update dependencies.
4849 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 4850
27d94c49
AC
48512003-05-02 Andrew Cagney <cagney@redhat.com>
4852
82de1e5b
AC
4853 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
4854 PC_REGNUM, re-indent.
4855 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
4856 PC_REGNUM isn't set.
4857
27d94c49
AC
4858 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
4859 * gdbarch.h, gdbarch.c: Re-generate.
4860 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
4861 register_virtual_size, pc_regnum, or register_bytes.
4862 (D10V_PC_REGNUM): Rename _PC_REGNUM.
4863 (d10v_register_type): Use D10V_PC_REGNUM.
4864 (d10v_print_registers_info, d10v_read_pc): Ditto.
4865 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
4866 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
4867
a9c0dc7f
DC
48682003-05-02 David Carlton <carlton@bactrian.org>
4869
4870 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
4871 the name with mstrsave.
4872
e33d66ec
EZ
48732003-05-02 Elena Zannoni <ezannoni@redhat.com>
4874
4875 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
4876 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
4877 (host_charset_name, target_charset_name): New vars for use by
4878 set/show commands.
4879 (host_charset_enum, target_charset_enum): New enums for set/show
4880 commands.
4881 (set_charset_sfunc, set_host_charset_sfunc,
4882 set_target_charset_sfunc): New functions.
4883 (set_host_charset, set_target_charset): Make static.
4884 (list_charsets, set_host_charset_command,
4885 set_target_charset_command): Delete functions.
4886 (show_charset_command): Rewrite as....
4887 (show_charset): Hook this up with the set/show command mechanism.
4888 (_initialize_charset): Change names of charsets to match the
4889 set/show enums. Use host_charset_name and target_charset_name.
4890 Use set/show mechanism for charset, host-charset, target-charset
4891 commands. Do not make 'show host-charset' and 'show
4892 target-charset' be aliases of 'show charset'.
4893
4894 * charset.h (set_host_charset, set_target_charset): Don't export,
4895 they are not used outside the file.
4896
2b6fd0d8
AC
48972003-05-01 Andrew Cagney <cagney@redhat.com>
4898
4899 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
4900 (gdb_disassembly): Make "di" non static, always initialize and
4901 cleanup. Always use dis_asm_read_memory.
4902 (gdb_dis_asm_read_memory): Delete function.
4903
6ae2f580
AC
49042003-05-01 Andrew Cagney <cagney@redhat.com>
4905
4906 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
4907 (d10v_gdbarch_init): Set frame_align instead of stack_align.
4908
810ecf9f
AC
49092003-04-30 Andrew Cagney <cagney@redhat.com>
4910
4911 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
4912 "tm_print_insn_info".
4913 (TARGET_PRINT_INSN_INFO): Delete macro.
4914 (dis_asm_read_memory): Delete function declaration.
4915 (dis_asm_memory_error, dis_asm_print_address): Ditto.
4916 (tm_print_insn_info): Delete variable definition.
4917 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
4918 * gdbarch.h, gdbarch.c: Re-generate.
4919 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
4920 "deprecated_tm_print_insn_info".
4921 * mcore-tdep.c (mcore_dump_insn): Ditto.
4922 * mips-tdep.c (mips_gdbarch_init): Ditto.
4923 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
4924 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
4925 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
4926 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
4927 instead of TARGET_PRINT_INSN_INFO, add comment.
4928 * s390-tdep.c (s390_get_frame_info): Instead of
4929 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
4930 (s390_check_function_end, s390_is_sigreturn): Ditto.
4931 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
4932 (dis_asm_memory_error, dis_asm_print_address): Ditto.
4933 * disasm.c: Include "gdbcore.h".
4934 (_initialize_disasm): New function, initialize
4935 "deprecated_tm_print_insn_info".
4936 (deprecated_tm_print_insn_info): New variable.
4937 (dis_asm_read_memory): Moved from "corefile.c", made static.
4938 (dis_asm_print_address, dis_asm_memory_error): Ditto.
4939 * Makefile.in (disasm.o): Update dependencies.
4940
07020390
AC
49412003-04-30 Andrew Cagney <cagney@redhat.com>
4942
4943 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
4944
a9fa03de
AF
49452003-04-29 Adam Fedor <fedor@gnu.org>
4946
4947 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
4948 * infcall.c (find_function_addr): Make non-static.
4949 * infcall.h (find_function_addr): Declare.
4950 * Makefile.in (eval.o): Update dependencies.
4951
1bae87b9
AF
49522003-04-28 Adam Fedor <fedor@gnu.org>
4953
4954 * symtab.c (symbol_find_demangled_name): Check for and demangle
4955 ObjC symbols.
4956 (symbol_init_demangled_name): Init for language_objc as well.
4957
0ba6dca9
AC
49582003-04-28 Andrew Cagney <cagney@redhat.com>
4959
4960 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
4961 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
4962 * gdbarch.h, gdbarch.c: Re-generate.
4963 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
4964 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
4965 * inferior.h (deprecated_read_fp): Rename read_fp.
4966 (generic_target_read_fp): Delete declaration.
4967 * regcache.c (generic_target_read_fp): Delete function.
4968 (deprecated_read_fp): Replace read_fp, use
4969 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
4970 * d10v-tdep.c (d10v_read_fp): Delete function.
4971 (d10v_gdbarch_init): Do not set deprecated_read_fp.
4972
4973 * sparc-tdep.c (sparc_gdbarch_init): Do not set
4974 deprecated_target_read_fp to generic_target_read_fp.
4975 * sh-tdep.c (sh_gdbarch_init): Ditto.
4976 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4977 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4978 * frv-tdep.c (frv_gdbarch_init): Ditto.
4979
4980 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
4981 deprecated_fp_regnum.
4982 * x86-64-tdep.c (x86_64_init_abi): Ditto.
4983 * vax-tdep.c (vax_gdbarch_init): Ditto.
4984 * v850-tdep.c (v850_gdbarch_init): Ditto.
4985 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4986 * sh-tdep.c (sh_gdbarch_init): Ditto.
4987 * s390-tdep.c (s390_gdbarch_init): Ditto.
4988 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4989 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4990 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4991 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4992 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4993 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4994 * i386-tdep.c (i386_gdbarch_init): Ditto.
4995 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4996 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4997 * frv-tdep.c (frv_gdbarch_init): Ditto.
4998 * cris-tdep.c (cris_gdbarch_init): Ditto.
4999 * avr-tdep.c (avr_gdbarch_init): Ditto.
5000 * arm-tdep.c (arm_gdbarch_init): Ditto.
5001 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5002
5003 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5004 * v850-tdep.c (v850_gdbarch_init): Ditto.
5005 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5006 * sh-tdep.c (sh_gdbarch_init): Ditto.
5007 * s390-tdep.c (s390_gdbarch_init): Ditto.
5008 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5009 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5010 * mips-tdep.c (mips_gdbarch_init): Ditto.
5011 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5012 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5013 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5014 * frv-tdep.c (frv_gdbarch_init): Ditto.
5015 * avr-tdep.c (avr_gdbarch_init): Ditto.
5016 * arm-tdep.c (arm_gdbarch_init): Ditto.
5017
5018 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5019 DEPRECATED_FP_REGNUM.
5020 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5021 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5022 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5023 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5024 (sparc32_register_virtual_type): Ditto.
5025 * sh-tdep.c (sh64_frame_chain): Ditto.
5026 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5027 (sh_nofp_frame_init_saved_regs): Ditto.
5028 (sh64_nofp_frame_init_saved_regs): Ditto.
5029 (sh_fp_frame_init_saved_regs): Ditto.
5030 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5031 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5032 * procfs.c (procfs_fetch_registers): Ditto.
5033 (procfs_store_registers): Ditto.
5034 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5035 (store_inferior_registers, fetch_core_registers): Ditto.
5036 (fetch_kcore_registers, clear_regs): Ditto.
5037 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5038 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5039 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5040 * nlm/i386.c (do_status): Ditto.
5041 * mipsv4-nat.c (supply_gregset): Ditto.
5042 * mips-tdep.c: Ditto for comments.
5043 * mips-nat.c (fetch_inferior_registers): Ditto.
5044 (store_inferior_registers, fetch_core_registers): Ditto.
5045 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5046 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5047 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5048 (i386_do_pop_frame, i386_register_type): Ditto.
5049 * hppa-tdep.c (hppa_frame_chain): Ditto.
5050 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5051 (hppa_pop_frame, hppa_read_fp): Ditto.
5052 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5053 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5054 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5055 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5056 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5057 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5058 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5059 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5060 * blockframe.c: Ditto for comments.
5061 * arch-utils.h: Ditto for comments.
5062 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5063 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5064 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5065 * alpha-tdep.h: Ditto for comments.
5066 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5067 (alpha_cannot_store_register): Ditto.
5068 (alpha_push_dummy_frame): Ditto.
5069 * alpha-nat.c (supply_gregset): Ditto.
5070
5071 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5072 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5073 * config/sparc/tm-sparc.h: Update comment.
5074
5075 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5076 deprecated_read_fp instead of TARGET_READ_FP.
5077 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5078 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5079 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5080 deprecated_read_fp instead of read_fp.
5081 * s390-tdep.c (s390_push_arguments): Ditto.
5082 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5083 * frame.h: Ditto in comments.
5084 * frame.c (legacy_get_prev_frame): Ditto.
5085 * dummy-frame.c (dummy_frame_this_id): Ditto.
5086 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5087
d7a27068
AC
50882003-04-28 Andrew Cagney <cagney@redhat.com>
5089
5090 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5091 * gdbarch.h, gdbarch.c: Re-generate.
5092 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5093 * vax-tdep.c (_initialize_vax_tdep): Update.
5094 * v850-tdep.c (_initialize_v850_tdep): Update.
5095 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5096 * s390-tdep.c (_initialize_s390_tdep): Update.
5097 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5098 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5099 * mips-tdep.c (_initialize_mips_tdep): Update.
5100 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5101 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5102 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5103 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5104 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5105 * frv-tdep.c (_initialize_frv_tdep): Update.
5106 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5107 (_initialize_cris_tdep): Update.
5108 * arch-utils.c (legacy_print_insn): Update.
5109 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5110
d2630e69
AF
51112003-04-26 Adam Fedor <fedor@gnu.org>
5112
5113 * linespec.c (decode_objc): New function to decode ObjC calls
5114 (decode_line_1): Check for ObjC calls (using decode_objc)
5115 * Makefile (linespec.o): Update dependencies.
5116
3086aeae
DJ
51172003-04-26 Daniel Jacobowitz <drow@mvista.com>
5118
5119 * breakpoint.h (struct breakpoint_ops): New.
5120 (struct breakpoint): Add ops member.
5121
5122 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5123 (mention): Use new breakpoint ops member.
5124 (set_raw_breakpoint): Initialize ops field to NULL.
5125 (print_exception_catchpoint, print_one_exception_catchpoint)
5126 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5127 (gnu_v3_exception_catchpoint_ops): New.
5128 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5129
1fbec6c3
AF
51302003-04-25 Adam Fedor <fedor@gnu.org>
5131
5132 * Makefile.in (COMMON_OBS): Add objc-lang.o
5133
0ef21242
AC
51342003-04-25 Andrew Cagney <cagney@redhat.com>
5135
5136 * d10v-tdep.c (print_insn): Delete function.
5137 (display_trace): Use TARGET_PRINT_INSN.
5138 (_initialize_d10v_tdep): Do not set tm_print_insn.
5139 (d10v_gdbarch_init): Set print_insn.
5140
f75493ed
AC
51412003-04-25 Andrew Cagney <cagney@redhat.com>
5142
5143 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5144 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5145 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5146 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5147 (nr_dmap_regs, a0_regnum): ... new functions.
5148 (d10v_print_registers_info): Use a0_regnum, use register_size.
5149 (d10v_register_byte): Delete function.
5150 (d10v_register_raw_size): Delete function.
5151 (d10v_register_type): Use a0_regnum.
5152 (d10v_print_registers_info): Use a0_regnum.
5153 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5154 (d10v_gdbarch_init): Do not set register_byte or
5155 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5156 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5157 extract_address.
5158 (trace_command): Use XCALLOC.
5159 (print_insn): Delete reference to tm_print_insn.
5160 (saved_regs_unwinder): Use store_unsigned_integer instead of
5161 store_address.
5162 * frame.h (FRAME_OBSTACK_CALLOC): Define
5163
2202b100
DC
51642003-04-25 David Carlton <carlton@bactrian.org>
5165
5166 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5167
4e45ca2e
AF
51682003-04-24 Adam Fedor <fedor@gnu.org>
5169
5170 * objc-lang.c: Include "valprint.h"
5171 * Makefile.in (objc-lang.o): Update dependencies.
5172
93de3e7f
AF
51732003-04-24 Adam Fedor <fedor@gnu.org>
5174
8ffd9b1b 5175 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
5176 architecture dependant compilation and mark as unimplemented
5177 (until they get put in the gdbarch vector).
5178
0f20eeea
DC
51792003-04-23 David Carlton <carlton@bactrian.org>
5180
5181 * cp-support.c (cp_find_first_component): Accept 'operator' in
5182 more locations.
5183
74cfe982
AC
51842003-04-23 Andrew Cagney <cagney@redhat.com>
5185
5186 * infcall.c (call_function_by_hand): Eliminate redundant
5187 indentation. Move "saved_async" and "old_cleanups" to where they
5188 are needed.
8ffd9b1b 5189
52557533
AC
51902003-04-23 Andrew Cagney <cagney@redhat.com>
5191
5192 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5193 and "buffer". Move the "name" code to where it is needed.
5194
158775de
AC
51952003-04-23 Andrew Cagney <cagney@redhat.com>
5196
5197 * infcall.c (call_function_by_hand): Move variables "start_sp",
5198 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5199 code to ON_STACK switch branch.
8ffd9b1b 5200
ebc7896c
AC
52012003-04-23 Andrew Cagney <cagney@redhat.com>
5202
5203 * infcall.c (call_function_by_hand): Make declaration of "i",
5204 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5205 lint.
5206
d727590f
AC
52072003-04-23 Andrew Cagney <cagney@redhat.com>
5208
5209 * infcall.c (call_function_by_hand): Delete variable
5210 "n_method_args". Localize "param_type"'s declaration to the loop
5211 that it is used. Reinstate code assigning to said variable -
5212 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5213 Rationalize code using "param_type".
5214
d585e13a
AC
52152003-04-22 Andrew Cagney <cagney@redhat.com>
5216
5217 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5218 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5219 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5220 to DEPRECATED_PUSH_RETURN_ADDRESS.
5221
051caad9
KB
52222003-04-22 Kevin Buettner <kevinb@redhat.com>
5223
5224 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5225 on the DWARF2 register number prior to fetching a register.
5226
77296879
JB
52272003-04-22 J. Brobecker <brobecker@gnat.com>
5228
5229 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5230 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 5231 this macro was always set to 0.
77296879
JB
5232 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5233 considering the fact that this macro was always set to 0.
5234 * hppa-tdep.h (hppa_store_return_value): Likewise.
5235 (hppa_extract_return_value): Likewise.
5236
4252f1df
JB
52372003-04-22 J. Brobecker <brobecker@gnat.com>
5238
5239 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5240 the hppa-pro target only.
5241
14604c6b
JB
52422003-04-21 J. Brobecker <brobecker@gnat.com>
5243
5244 Ongoing multi-arch conversion effort for HP/UX:
5245 * config/pa/tm-hppa.h: Move all macro that are no longer
5246 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5247 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5248
77eb01d1
JB
52492003-04-21 J. Brobecker <brobecker@gnat.com>
5250
5251 * config/pa/tm-hppa.h: Obsolete a section that was only used
5252 for hppa-pro.
5253
61995b3b
JB
52542003-04-21 J. Brobecker <brobecker@gnat.com>
5255
5256 Ongoing multi-arch conversion for HP/UX.
5257 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5258 if already defined (allows hppa64 to stay non-multiarched for now).
5259 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5260
4aa79dcc
AC
52612003-04-21 Andrew Cagney <cagney@redhat.com>
5262
5263 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5264
0f751ff2
AC
52652003-04-21 Andrew Cagney <cagney@redhat.com>
5266
5267 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5268 "i386_num_mmx_regs".
5269
04714b91
AC
52702003-04-21 Andrew Cagney <cagney@redhat.com>
5271
5272 * infcall.c: New file.
5273 * infcall.h: New file.
5274 * valarith.c: Include "infcall.h".
5275 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5276 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5277 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5278 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5279 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5280 (SFILES): Add "infcall.c"
5281 (COMMON_OBS): Add "infcall.o".
5282 (infcall.o): Specify dependencies.
5283 * value.h (call_function_by_hand): Delete declaration.
5284 * inferior.h (run_stack_dummy): Delete declaration.
5285 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5286 (run_stack_dummy): Move to "infcall.c", merged into
5287 call_function_by_hand.
5288 * valops.c (call_function_by_hand): Moved to "infcall.c".
5289 (find_function_addr, value_arg_coerce): Ditto.
5290 (unwindonsignal_p, coerce_float_to_double): Ditto.
5291 (_initialize_valops): Move "set/show coerce-float-to-double", and
5292 "set/show unwindonsignal" commands to "infcall.c".
5293 * v850-tdep.c, target.h: Update comments.
5294 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5295 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5296 (sh64_init_extra_frame_info): Update comments.
5297 * mn10300-tdep.c: Update comments.
5298 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5299 * config/sparc/tm-sparc.h: Update comments.
5300 * breakpoint.h: Update comments.
5301 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5302 * arm-tdep.c: Update comment.
5303
f9d3c2a8
MK
53042003-04-19 Mark Kettenis <kettenis@gnu.org>
5305
c40e1eab
MK
5306 * i386-tdep.c (i386_num_register_names): New variable.
5307 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5308 (MM0_REGNUM): Remove redundant parentheses in define.
5309 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5310 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5311 i386_mxcsr_regnum_p): Remove redundant parentheses.
5312 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 5313
94ea66b3
MK
5314 * i386-tdep.c (i386_extract_return_value,
5315 i386_store_return_value): Correct check for availability of
5316 floating-point registers.
5317
54299a1d
MK
5318 * i386-tdep.c (i386_frame_num_args): Remove function.
5319 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5320
c86c27af
MK
5321 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5322 mmx_regnum_to_fp_regnum. Adjust all callers.
5323
f9d3c2a8
MK
5324 * i386-tdep.c (i386_get_longjmp_target): Use
5325 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5326 and TARGET_CHAR_BIT. Use extract_typed_address instead of
5327 extract_address.
5328
94ba74a9
MK
53292003-04-19 Mark Kettenis <kettenis@gnu.org>
5330
5331 * core-regset.c: Update comments to reflect reality. Re-order
5332 includes.
5333 (fetch_core_registers): Use switch instead of if. Remove
5334 redundant prototype.
5335
4074e13c
JB
53362003-04-18 Jim Blandy <jimb@redhat.com>
5337
5338 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 5339 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 5340
e3ab4aba
RH
53412003-04-17 Richard Henderson <rth@redhat.com>
5342
5343 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5344
627bf7c1
EZ
53452003-04-17 Michael Snyder <msnyder@redhat.com>
5346 Karen Bennet <bennet@redhat.com>
5347
5348 Committed by Elena Zannoni <ezannoni@redhat.com>
5349 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 5350
514621a9
EZ
53512003-04-17 Elena Zannoni <ezannoni@redhat.com>
5352
5353 * values.c (value_being_returned): Don't fetch the return
fbe586ae 5354 value if the return type is void.
514621a9 5355
b4acd559
JJ
53562003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5357
5358 * thread-db.c: Reindented.
8ffd9b1b 5359
530b167e 53602003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
5361
5362 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5363 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
5364 as types.
5365
0a48e7e8
MS
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
8ffd9b1b 5389
ab9fe00e
KB
53902003-04-16 Kevin Buettner <kevinb@redhat.com>
5391
610a3745 5392 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
5393 the size of ``long double'' to 16, instead of 8.
5394
e64a344c
MK
53952003-04-16 Mark Kettenis <kettenis@gnu.org>
5396
5397 * i386-linux-nat.c: Add some whitespace to make things more
5398 readable.
5399 (fetch_register, store_register, fetch_inferior_registers,
5400 store_inferior_registers): Get rid of assignment in if-statement.
5401 (store_register): Fix typo in error message.
5402
25d41031
AC
54032003-04-16 Andrew Cagney <cagney@redhat.com>
5404
5405 * utils.c (xmmalloc): Always allocate something, matches
5406 libiberty/xmalloc's semantics.
5407 (xmrealloc, xmcalloc): Ditto.
5408
c50901fd
AC
54092003-04-16 Andrew Cagney <cagney@redhat.com>
5410
5411 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5412 update comments.
5413 (get_frame_type): Initialize unwind and type when needed.
5414 (get_frame_id, frame_register_unwind): Ditto.
5415
f81824a9
AC
54162003-04-16 Andrew Cagney <cagney@redhat.com>
5417
5418 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5419 obsolete.
5420 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5421 * sparcl-stub.c: Obsolete file.
5422 * config/sparc/tm-sparclet.h: Obsolete file.
5423 * sparclet-stub.c: Obsolete file.
5424 * sparclet-rom.c: Obsolete file.
5425 * sparcl-tdep.c: Obsolete file.
5426 * config/sparc/tm-sparclite.h: Obsolete file.
5427 * config/sparc/sparclite.mt: Obsolete file.
5428 * config/sparc/sparclet.mt: Obsolete file.
5429 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5430 sparc86x-*-* obsolete.
5431
9219021c
DC
54322003-04-15 David Carlton <carlton@math.stanford.edu>
5433
5434 * Makefile.in (SFILES): Add cp-namespace.c.
5435 (COMMON_OBS): Add cp-namespace.o.
5436 (block.o): Depend on gdb_obstack_h and cp_support_h.
5437 (buildsym.o): Depend on cp_support_h.
5438 (cp-namespace.o): New.
5439 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
5440 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
5441 (dwarf2read.o): Depend on cp_support_h.
5442 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
5443 * dwarf2read.c (process_die): Set processing_has_namespace_info,
5444 processing_current_namespace.
5445 (read_namespace): Update processing_current_namespace; check for
5446 anonymous namespaces.
5447 (dwarf2_name): New function.
5448 (dwarf2_extension): Ditto.
5449 * cp-support.h: Update copyright, contributors.
5450 Add inclusion guards.
5451 Add opaque declaration for structs obstack, block, symbol.
5452 (struct using_direct): New struct.
5453 Add declarations for cp_find_first_component,
5454 cp_entire_prefix_len, processing_has_namespace_info,
5455 processing_current_namespace, cp_is_anonymous,
5456 cp_add_using_directive, cp_initialize_namespace,
5457 cp_finalize_namespace, cp_set_block_scope,
5458 cp_scan_for_anonymous_namespaces.
5459 * cp-namespace.c: New file.
5460 * cp-support.c: Update copyright.
5461 Include ctype.h, gdb_assert.h, gdbcmd.h.
5462 New variable maint_cplus_cmd_list.
5463 (cp_find_first_component): New function.
5464 (cp_entire_prefix_len, maint_cplus_command)
5465 (first_component_command, _initialize_cp_support): Ditto.
5466 * buildsym.c: Include cp-support.h.
5467 New variable using_list.
5468 (add_symbol_to_list): Check for anonymous namespaces.
5469 (finish_block): Set block's scope.
5470 (start_symtab): Initialize C++ namespace support.
5471 (end_symtab): Finalize C++ namespace support.
5472 * block.h: Add opaque declarations for structs
5473 block_namespace_info, using_direct, and obstack.
5474 Add declarations for block_set_scope and block_set_using.
5475 (struct block): Add 'language_specific' member.
5476 (BLOCK_NAMESPACE): New macro.
5477 * block.c: Include gdb_obstack.h and cp-support.h.
5478 (struct block_namespace_info): New struct.
5479 (block_set_scope): New function.
5480 (block_set_using, block_initialize_namespace): Ditto.
5481
d5a921c9
KB
54822003-04-14 Kevin Buettner <kevinb@redhat.com>
5483
5484 * solib-svr4.c (svr4_have_link_map_offsets): New function.
5485 (locate_base): Return early if there aren't any link map offsets.
5486 (svr4_solib_create_inferior_hook): Warn if shared library support
5487 is unavailable.
5488
d2a52b27
DC
54892003-04-14 David Carlton <carlton@math.stanford.edu>
5490
5491 * symtab.c (symbol_set_names): Add prefix when storing Java names
5492 in hash table. Fix for PR java/1039.
5493
980cae7a
DC
54942003-04-14 David Carlton <carlton@math.stanford.edu>
5495
5496 * symtab.c (symbol_set_names): Rename 'name' arg to
5497 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
5498 * symtab.h: Change 'name' argument in declaration of
5499 symbol_set_names to 'linkage_name'.
5500 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
5501
e227b13c
AC
55022003-04-14 Andrew Cagney <cagney@redhat.com>
5503
5504 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
5505 return the fully sign-extended register value.
5506 (get_frame_pointer): Ditto.
5507 (mips_pop_frame): Initialize "proc_desc" after checking for a
5508 dummy frame.
5509
36712a20
AC
55102003-04-14 Andrew Cagney <cagney@redhat.com>
5511
5512 * mips-tdep.c (mips_push_dummy_frame): Delete function.
5513 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
5514 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
5515 (mips_push_register): Delete function.
5516 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
5517 PUSH_FP_REGNUM.
5518
44ea7b70
JB
55192003-04-14 Jim Blandy <jimb@redhat.com>
5520
5521 * symmisc.c: #include "gdb_regex.h".
5522 (maintenance_list_symtabs, maintenance_list_psymtabs): New
5523 functions.
5524 * maint.c (maintenance_list_command): New function.
5525 (_initialize_maint_cmds): Register the above as commands.
5526 * symtab.h (maintenance_list_symtabs,
5527 maintenance_list_psymtabs): New declarations.
5528 * cli/cli-cmds.c (maintenancelistlist): New variable.
5529 (init_cmd_lists): Initialize it.
5530 * cli/cli-cmds.h (maintenancelistlist): New declaration.
5531 * gdbcmd.h (maintenancelistlist): New declaration.
5532 * Makefile.in (symmisc.o): Update dependencies.
5533
2d0c7962
EZ
55342003-04-14 Elena Zannoni <ezannoni@redhat.com>
5535
5536 * s390-nat.c: Include asm/types.h for addr_t.
5537
1947a811
CV
55382003-04-14 Corinna Vinschen <vinschen@redhat.com>
5539
5540 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
5541 actually incoming type.
5542
adb616d7
AC
55432003-04-13 Andrew Cagney <cagney@redhat.com>
5544
5545 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
5546 get_next_frame and get_frame_saved_regs.
5547
9b5e151c
AC
55482003-04-13 Andrew Cagney <cagney@redhat.com>
5549
5550 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
5551 of gdbarch_num_regs.
5552
ef6e7e13
AC
55532003-04-13 Andrew Cagney <cagney@redhat.com>
5554
5555 * frame.h: Mention what replaced what in "struct frame_info".
5556 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
5557 deprecated_update_frame_base_hack and
5558 deprecated_update_frame_pc_hack.
5559 * hppa-tdep.c: Ditto.
5560
61fbb938
DJ
55612003-04-13 Daniel Jacobowitz <drow@mvista.com>
5562
5563 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
5564 to read_reg and update its comment. Remove regnum member.
5565 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
5566 Don't call read_reg when setting in_reg. Call read_reg to get
5567 the frame base if it's in a register. Return the register number
5568 on the stack instead of in the context. Remove extra arguments
5569 to read_reg.
5570 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
5571 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
5572 the register number on the expression stack.
5573 (needs_frame_read_reg): Remove extra arguments.
5574
0d53c4c4
DJ
55752003-04-13 Daniel Jacobowitz <drow@mvista.com>
5576
5577 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
5578 made non-static.
5579 (execute_stack_op): All callers updated.
5580 * dwarf2expr.h: Add prototype for dwarf2_read_address.
5581 * dwarf2loc.c (find_location_expression): New function.
5582 (dwarf_expr_frame_base): Call it.
5583 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
5584 (dwarf2_tracepoint_var_ref): New function, broken out from
5585 locexpr_tracepoint_var_ref.
5586 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
5587 Make static.
5588 (loclist_read_variable, loclist_read_needs_frame): New functions.
5589 (loclist_describe_location, loclist_tracepoint_var_ref): New
5590 functions.
5591 (dwarf2_loclist_funcs): New struct location_funcs.
5592 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
5593 (struct dwarf2_locexpr_baton): Add comments.
5594 (dwarf2_loclist_funcs): New extern.
5595 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
5596 base_address and base_known.
5597 (dwarf_loc_buffer): New variable.
5598 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
5599 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
5600 (dwarf2_has_info): Initialize dwarf_loc_offset.
5601 (dwarf2_build_psymtabs): Read in .debug_loc.
5602 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
5603 DWARF_LOC_SIZE.
5604 (psymtab_to_symtab_1): Likewise. Move base address calculation
5605 here, from...
5606 (dwarf2_get_pc_bounds): ... here. Use the base address from
5607 cu_header.
5608 (dwarf2_symbol_mark_computed): Handle location lists.
5609
6aca59a3
DJ
56102003-04-13 Daniel Jacobowitz <drow@mvista.com>
5611
5612 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
5613 if the linkage name demangled successfully.
5614
aca1fcd0
MK
56152003-04-13 Mark Kettenis <kettenis@gnu.org>
5616
97095916
MK
5617 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
5618 disassmbly_flavour): Removed.
5619
aca1fcd0
MK
5620 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
5621
562a961f
MK
56222003-04-13 Mark Kettenis <kettenis@gnu.org>
5623
5624 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
5625
bd013d54
AC
56262003-04-12 Andrew Cagney <cagney@redhat.com>
5627
5628 * frame.h (struct frame_info): Move definition from here ...
5629 * frame.c (struct frame_info): ... to here.
5630
167ef8b1
AC
56312003-04-12 Andrew Cagney <cagney@redhat.com>
5632
5633 * gdbthread.h (save_infrun_state): Delete parameter
5634 "prev_func_start".
5635 (struct thread_info): Delete field "prev_func_start".
5636 (load_infrun_state): Ditto.
5637 * thread.c (load_infrun_state, save_infrun_state): Update.
5638 * infrun.c (prev_func_start): Delete variable.
5639 (context_switch, init_wait_for_inferior): Update.
5640 (stop_stepping, keep_going): Update.
5641
da3331ec
AC
56422003-04-12 Andrew Cagney <cagney@redhat.com>
5643
5644 * gdbarch.sh: Add missing opaque declarations.
5645 * gdbarch.h: Regnerate.
5646 * symtab.h: Add missing opaque declarations.
5647 * value.h, target.h, symfile.h, stabsread.h: Ditto.
5648 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
5649 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
5650 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
5651 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
5652 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
5653 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
5654 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
5655 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
5656 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
5657 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
5658 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
5659 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
5660
18adea3f
AC
56612003-04-11 Andrew Cagney <cagney@redhat.com>
5662
5663 * frame.c (get_frame_id): Return this frame's "id".
5664 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
5665 function start.
5666 (legacy_saved_regs_this_id): Replace function body with
5667 internal-error.
5668 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
5669 FRAME_OBSTACK_ZALLOC.
5670 (create_new_frame): Mark the frame ID as valid.
5671
2252e863
AO
56722003-04-11 Alexandre Oliva <aoliva@redhat.com>
5673
5674 * Makefile.in (libbfd_h): Added missing setting.
5675 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
5676 according to the selected ABI.
5677
a8245ab8
JJ
56782003-04-11 Jeff Johnston <jjohnstn@redhat.com>
5679
5680 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
5681
6913c89a
AC
56822003-04-11 Andrew Cagney <cagney@redhat.com>
5683
5684 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
5685 SAVED_PC_AFTER_CALL.
5686 * gdbarch.h, gdbarch.c: Regenerate.
5687 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5688 * x86-64-tdep.c (x86_64_init_abi): Update.
5689 * vax-tdep.c (vax_gdbarch_init): Update.
5690 * v850-tdep.c (v850_gdbarch_init): Update.
5691 * sparc-tdep.c (sparc_gdbarch_init): Update.
5692 * sh-tdep.c (sh_gdbarch_init): Update.
5693 * s390-tdep.c (s390_gdbarch_init): Update.
5694 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5695 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5696 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5697 * mips-tdep.c (mips_gdbarch_init): Update.
5698 * mcore-tdep.c (mcore_gdbarch_init): Update.
5699 * m68k-tdep.c (m68k_gdbarch_init): Update.
5700 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5701 * ia64-tdep.c (ia64_gdbarch_init): Update.
5702 (ia64_saved_pc_after_call): Update declaration.
5703 * i386ly-tdep.c (i386lynx_init_abi): Update.
5704 * i386-tdep.c (i386_gdbarch_init): Update.
5705 * hppa-tdep.c (hppa_gdbarch_init): Update.
5706 * h8300-tdep.c (h8300_gdbarch_init): Update.
5707 * frv-tdep.c (frv_gdbarch_init): Update.
5708 * cris-tdep.c (cris_gdbarch_init): Update.
5709 * avr-tdep.c (avr_gdbarch_init): Update.
5710 * arm-tdep.c (arm_gdbarch_init): Update.
5711 * alpha-tdep.c (alpha_gdbarch_init): Update.
5712 * ns32knbsd-nat.c (frame_num_args): Update.
5713 * ns32k-tdep.c (umax_frame_num_args): Update.
5714 * mips-tdep.c (mips_init_frame_pc_first): Update.
5715 * infrun.c (step_over_function): Update.
5716 * i386-linux-tdep.c (skip_hurd_resolver): Update.
5717 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
5718 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5719 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5720 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5721 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5722 * arm-linux-tdep.c (skip_hurd_resolver): Update.
5723 * arch-utils.c (init_frame_pc_default): Update.
5724 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
5725 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
5726 declaration.
8ffd9b1b 5727
38edeab8
AC
57282003-04-11 Andrew Cagney <cagney@redhat.com>
5729
5730 * i387-tdep.c: Update copyright.
5731 (i387_to_double): Delete function.
5732 (double_to_i387): Delete function.
5733
81f8a206
AC
57342003-04-10 Andrew Cagney <cagney@redhat.com>
5735
5736 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
5737 frame's function's address. Simplify.
5738 (d10v_frame_unwind_cache): Check that the frame's function is
5739 non-zero.
5740
6e691f7a
JB
57412003-04-10 Jim Blandy <jimb@redhat.com>
5742
5743 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
5744 call to set_gdbarch_deprecated_push_arguments.
5745
7f78e237
AC
57462003-04-10 Andrew Cagney <cagney@redhat.com>
5747
5748 * frame.c (fprint_frame_id): New function.
5749 (fprint_frame_type, fprint_frame): New function.
5750 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
5751 (create_sentinel_frame, get_frame_id): Ditto.
5752 (frame_id_p, frame_id_eq): Ditto.
5753 (frame_id_inner, create_new_frame): Ditto.
5754 (legacy_get_prev_frame, get_prev_frame): Ditto.
5755 (deprecated_update_frame_pc_hack): Ditto.
5756 (frame_register_unwind): Ditto.
5757 (deprecated_update_frame_base_hack): Ditto.
5758
f870b49b
CV
57592003-04-10 Corinna Vinschen <vinschen@redhat.com>
5760
5761 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
5762 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
5763 frame_chain function.
5764 * Makefile.in: Add dependencies due to above change.
5765
7c86889b
CV
57662003-04-10 Corinna Vinschen <vinschen@redhat.com>
5767
5768 * blockframe.c (legacy_frame_chain_valid): Move call to
5769 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
5770 inside_entry_file.
5771
d0a55772
AC
57722003-04-09 Andrew Cagney <cagney@redhat.com>
5773
5774 * frame.h (struct frame_id): Replace "pc" and "base" with
5775 "stack_addr" and "code_addr". Update comments.
5776 (frame_id_build): Update parameter names and comment.
5777 (struct frame_info): Replace "id_p" and "id" with "this_id".
5778 * dummy-frame.c (dummy_frame_this_id): Update.
5779 * breakpoint.c (print_one_breakpoint): Update.
5780 * frame.c (get_frame_id): Update.
5781 (get_frame_base, frame_id_build): Update.
5782 (create_sentinel_frame, legacy_get_prev_frame): Update.
5783 (deprecated_update_frame_base_hack): Update.
5784 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
5785 (frame_id_inner): Ditto.
5786
ac16bf07
AC
57872003-04-09 Andrew Cagney <cagney@redhat.com>
5788
5789 * defs.h (gdb_print_host_address): Make "addr" parameter a
5790 pointer constant.
5791 * utils.c (gdb_print_host_address): Update.
5792
366cfc9e
KB
57932003-04-09 Kevin Buettner <kevinb@redhat.com>
5794
5795 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
5796 register number for R0 is 0.
5797
cd983b5c
JB
57982003-04-09 J. Brobecker <brobecker@gnat.com>
5799
5800 * frame.h (struct gdbarch): Add opaque structure definition
5801 to avoid a compilation warning on LynxOS 4.0.
5802
d1340264
AC
58032003-04-09 Andrew Cagney <cagney@redhat.com>
5804
5805 * frame.h (struct frame_info): Delete field "pc". Replace
5806 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
5807 structure.
5808 * frame.c (frame_pc_unwind): Update.
5809 (create_sentinel_frame): Do not set "pc".
5810 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
5811 (get_frame_pc): Call frame_pc_unwind.
5812 (deprecated_update_frame_pc_hack): Update.
5813 (create_new_frame): Use "pc" not "->pc".
5814
90a6fffb
AC
58152003-04-09 Andrew Cagney <cagney@redhat.com>
5816
5817 * frame.c (get_frame_id): Eliminate code updating "frame".
5818 (legacy_get_prev_frame): Ditto.
5819 (get_frame_base): Return id.base directly.
5820 (deprecated_update_frame_base_hack): Update "id.base".
5821 * frame.h (struct frame_info): Delete field "frame".
5822
2fbce691
AC
58232003-04-09 Andrew Cagney <cagney@redhat.com>
5824
5825 * NEWS: Mention that the "Sequent family" is obsolete.
5826 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
5827 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5828 * configure.host: Obsolete i[3456]86-sequent-bsd*,
5829 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5830 * config/i386/tm-ptx4.h: Obsolete file.
5831 * config/i386/tm-ptx.h: Obsolete file.
5832 * symm-tdep.c: Obsolete file.
5833 * config/i386/symmetry.mt: Obsolete file.
5834 * config/i386/tm-symmetry.h: Obsolete file.
5835 * symm-nat.c: Obsolete file.
5836 * config/i386/nm-symmetry.h: Obsolete file.
5837 * config/i386/xm-symmetry.h: Obsolete file.
5838 * config/i386/symmetry.mh: Obsolete file.
5839 * config/i386/nm-ptx4.h: Obsolete file.
5840 * config/i386/ptx4.mh: Obsolete file.
5841 * config/i386/ptx.mt: Obsolete file.
5842 * config/i386/ptx.mh: Obsolete file.
5843 * config/i386/xm-ptx4.h: Obsolete file.
5844 * config/i386/xm-ptx.h: Obsolete file.
5845
78c43945
AC
58462003-04-09 Andrew Cagney <cagney@redhat.com>
5847
5848 Obsolete mips*-*-mach3*.
5849 * NEWS: Mention that mips*-*-mach3* is obsolete.
5850 * m3-nat.c: Obsolete file.
5851 * config/nm-m3.h: Obsolete file.
5852 * config/mips/tm-mipsm3.h: Obsolete file.
5853 * config/mips/mipsm3.mt: Obsolete file.
5854 * config/mips/mipsm3.mh: Obsolete file.
5855 * config/mips/xm-mipsm3.h: Obsolete file.
5856 * mipsm3-nat.c: Obsolete file.
5857 * configure.host: Obsolete mips-dec-mach3*.
5858 * configure.tgt: Obsolete mips*-*-mach3*.
5859
f1908289
AC
58602003-04-09 Andrew Cagney <cagney@redhat.com>
5861
5862 * doublest.h: Update copyright.
5863 (deprecated_store_floating, deprecated_extract_floating): Rename
5864 store_floating and extract_floating. Update comments.
5865 * doublest.c: Update copyright.
5866 (extract_floating_by_length): Replace extract_floating.
5867 (store_floating_by_length): Replace store_floating.
5868 (deprecated_extract_floating): New function.
5869 (deprecated_store_floating): New function.
5870 (extract_typed_floating): Call extract_floating_by_length.
5871 (store_typed_floating): Call store_floating_by_length.
5872 * x86-64-tdep.c (x86_64_store_return_value): Update.
5873 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
5874 (sh64_extract_return_value): Update.
5875 (sh_sh4_register_convert_to_virtual): Update.
5876 (sh_sh64_register_convert_to_virtual): Update.
5877 (sh_sh4_register_convert_to_raw): Update.
5878 (sh_sh64_register_convert_to_raw): Update.
5879 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
5880 (rs6000_register_convert_to_raw): Update.
5881 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
5882 (ia64_register_convert_to_raw): Update.
5883 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
5884 (REGISTER_CONVERT_TO_VIRTUAL): Update.
5885 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
5886 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
5887 (alpha_register_convert_to_raw): Update.
5888
4443bd83
AC
58892003-04-08 Andrew Cagney <cagney@redhat.com>
5890
5891 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
5892 * gdbarch.h, gdbarch.c: Re-generate.
5893 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
5894 (d10v_gdbarch_init): Do not set saved_pc_after_call.
5895 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
5896 conditionally, use frame_pc_unwind as an alternative. Add
5897 comments.
5898 * arch-utils.c (init_frame_pc_default): Only call
5899 SAVED_PC_AFTER_CALL when available.
5900
c0236d92
EZ
59012003-04-08 Elena Zannoni <ezannoni@redhat.com>
5902
fbe586ae 5903 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
5904 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
5905 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
5906 (start_remote): Ditto.
5907 (handle_inferior_event): Ditto.
5908 (save_inferior_status): Ditto.
5909 (restore_inferior_status): Ditto.
5910 * infcmd.c (attach_command): Ditto.
5911 * fork-child.c (startup_inferior): Ditto.
fbe586ae 5912 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
5913 * alpha-tdep.c (heuristic_proc_start): Ditto.
5914 * mips-tdep.c (heuristic_proc_start): Ditto.
5915 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
5916 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
5917 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
5918 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
5919 * remote-vx.c (vx_create_inferior): Ditto.
5920
59212003-04-08 Elena Zannoni <ezannoni@redhat.com>
5922
5923 * infrun.c (stop_soon_quietly): Make it an enum, to better
5924 override the default behavior of handle_inferior_event.
5925 (clear_proceed_status): Update uses of stop_soon_quietly to
5926 reflect that it is now an enum.
5927 (start_remote): Ditto.
5928 (handle_inferior_event): Change logic a bit if stop_soon_quietly
5929 is set to handle the new GNU/Linux kernel behavior for
5930 attach/sigstop. Update uses of stop_soon_quietly.
5931 * inferior.h (enum stop_kind): New enum.
5932 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
5933 Reset normal handle_inferior_event behavior, afterwards.
5934 * fork-child.c (startup_inferior): Update.
5935 * alpha-tdep.c (heuristic_proc_start): Update.
5936 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
5937 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
5938 * solib-osf.c (osf_solib_create_inferior_hook): Update.
5939 * solib-irix.c (irix_solib_create_inferior_hook): Update.
5940 * remote-vx.c (vx_create_inferior): Update.
5941 * mips-tdep.c (heuristic_proc_start): Update.
5942
1211bce3
EZ
59432003-04-07 Elena Zannoni <ezannoni@redhat.com>
5944
5945 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 5946 be freed more than once, causing wild memory corruptions.
1211bce3 5947 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 5948 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 5949 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 5950 with the "core" target.
1211bce3 5951
f0ef6b29
KB
59522003-04-07 Kevin Buettner <kevinb@redhat.com>
5953
5954 * mips-tdep.c (mips_print_fp_register): New function, created from
5955 do_fp_register_row(). Registers are now (also) printed as hex.
5956 Only one register is printed per row.
5957 (mips_print_register, do_fp_register_row): Print floating point
5958 registers with mips_print_fp_register().
5959
8cf71652
AC
59602003-04-06 Andrew Cagney <cagney@redhat.com>
5961
5e488a7b
AC
5962 * valprint.h (inspect_it): Add extern declaration.
5963 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
5964 (selectors_info, classes_info): Ditto.
5965 (find_objc_msgcall): Fix indentation.
5966 (objc_printstr): Delete extern declarations.
5967
8cf71652
AC
5968 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
5969
e6ba3bc9
AC
59702003-04-06 Andrew Cagney <cagney@redhat.com>
5971
5972 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
5973 Update comment.
5974 * frame.c (legacy_saved_regs_this_id): Update.
5975 (legacy_get_prev_frame): Update.
5976 * xstormy16-tdep.c: Update comment.
5977 * sparc-tdep.c (sparc_frame_chain): Update comment.
5978 * blockframe.c (legacy_frame_chain_valid): Update.
5979
55e1d7e7
AC
59802003-04-06 Andrew Cagney <cagney@redhat.com>
5981
996179ee
AC
5982 * valprint.c (val_print_type_code_int): Delete #ifdef
5983 PRINT_TYPELESS_INTEGER code.
5984
55e1d7e7
AC
5985 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
5986 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
5987 multi-arch definition.
5988 * gdbarch.h: Re-generate.
5989
43bd9a9e
AC
59902003-04-05 Andrew Cagney <cagney@redhat.com>
5991
5992 Eliminate FRAME_FIND_SAVED_REGS.
5993 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
5994 Change FSR parameter to a pointer.
5995 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
5996 Assume FSR parameter is a pointer.
5997 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
5998 Make fsr a pointer.
5999 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6000 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6001 saved_regs a pointer.
6002 (hppa_frame_saved_pc): Ditto.
6003 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6004 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6005 pointer.
6006 (restore_pc_queue): Make fsr a pointer.
6007 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6008 (hppa_frame_chain): Make saved_regs a pointer, call
6009 hppa_frame_init_saved_regs.
6010 * sparc-tdep.c: Include "gdb_assert.h".
6011 (sparc_frame_find_saved_regs): Replace internal_error with
6012 gdb_assert.
6013 * remote-vxsparc.c (vx_read_register): Delete reference to
6014 FRAME_FIND_SAVED_REGS.
6015 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6016 * gdbarch.h: Regenerate.
6017 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6018 (deprecated_get_frame_saved_regs): Delete declaration.
6019 (struct frame_saved_regs): Delete definition.
6020 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6021 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6022 (hppa_frame_find_saved_regs): Delete declaration.
6023 (FRAME_FIND_SAVED_REGS): Delete macro.
6024 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6025 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6026 FRAME_FIND_SAVED_REGS in comment.
6027
be41e9f4
AC
60282003-04-05 Andrew Cagney <cagney@redhat.com>
6029
6030 * frame.c (frame_func_unwind, get_frame_func): New functions.
6031 * frame.h (get_frame_func, frame_func_unwind): Declare.
6032 (struct frame_info): Add field "prev_func" for caching the
6033 previous frame's function address.
6034 * arm-tdep.c (arm_frameless_function_invocation): Combine
6035 get_pc_function_start and get_frame_pc into get_frame_func.
6036 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6037 (sh64_nofp_frame_init_saved_regs): Ditto.
6038 * s390-tdep.c (s390_function_start): Ditto.
6039 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6040 (rs6000_frameless_function_invocation): Ditto.
6041 (rs6000_frame_saved_pc): Ditto.
6042 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6043 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6044 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6045 (i386_frame_init_saved_regs): Ditto.
6046 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6047 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6048 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6049 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6050 * blockframe.c (frameless_look_for_prologue): Ditto.
6051
a01dd7cc
AC
60522003-04-05 Andrew Cagney <cagney@redhat.com>
6053
6054 * frame.c (legacy_get_prev_frame): Link prev to next at the
6055 function start. Update comments.
6056
5e5592e6
AC
60572003-04-05 Andrew Cagney <cagney@redhat.com>
6058
6059 * frame.c (get_frame_id): Update comment.
6060 (legacy_get_prev_frame): Update comment.
6061 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6062 * gdbarch.h: Regenerate.
6063 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6064 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6065
6fba5002
AC
60662003-04-05 Andrew Cagney <cagney@redhat.com>
6067
6068 * stack.c (print_frame_info): Use get_frame_pc.
6069
7df05f2b
AC
60702003-04-04 Andrew Cagney <cagney@redhat.com>
6071
6072 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6073 the frame's type from the unwinder.
6074 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6075 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6076 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6077 (get_frame_base_address): Use get_frame_type.
6078 (get_frame_locals_address, get_frame_args_address): Ditto.
6079 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6080 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6081 (struct frame_info): Add comment explaining why the frame contains
6082 a "type" field.
6083 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6084 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6085 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6086 NORMAL_FRAME.
6087 * frame-unwind.h: Include "frame.h".
6088 (struct frame_unwind): Add "type" field.
6089 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 6090
11889732
AC
60912003-04-04 Andrew Cagney <cagney@redhat.com>
6092
6093 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6094 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6095 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6096 get_frame_base.
6097 (d10v_unwind_dummy_id): Use frame_id_build.
6098 * frame.c (find_frame_sal): Use get_frame_pc.
6099 (create_new_frame): Use deprecated_update_frame_pc_hack and
6100 deprecated_update_frame_base_hack.
6101 (create_sentinel_frame): Add comment about ->pc going away.
6102 (get_prev_frame): Add comment about ->pc going away.
6103 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6104 frame_id_build, deprecated_update_frame_pc_hack and
6105 deprecated_update_frame_base_hack.
6106 (select_frame): Use get_frame_pc.
6107 (legacy_saved_regs_this_id): Use frame_id_build.
6108
50c46a0d
EZ
61092003-04-04 Elena Zannoni <ezannoni@redhat.com>
6110
fbe586ae
RH
6111 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6112 signed integer case.
6113 (classify_argument): Handle enumerations and references.
50c46a0d 6114
50bbdbd9
AC
61152003-04-04 Andrew Cagney <cagney@redhat.com>
6116
6117 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6118 ID to NULL.
6119
36018d2e
AF
61202003-04-01 Adam Fedor <fedor@gnu.org>
6121
6122 * gdb/objc-lang.c (selectors_info): Replace calls to
6123 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6124 SYMBOL_NATURAL_NAME.
6125 (classes_info, find_methods): Likewise.
6126
35cec841
KB
61272003-04-03 Kevin Buettner <kevinb@redhat.com>
6128
6129 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6130 ``mach'' to the value determined by bfd_default_set_arch_mach().
6131
43136899
BR
61322003-04-02 Bob Rossi <bob_rossi@cox.net>
6133
6134 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6135 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6136 (mi-cmd-file.o): Update dependencies.
6137
040b99fd
KB
61382003-04-01 Kevin Buettner <kevinb@redhat.com>
6139
6140 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6141 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6142
9a3d7dfd
AF
61432003-04-01 Adam Fedor <fedor@gnu.org>
6144
6145 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6146 * language.h (struct language_defn): Add la_demangle.
6147 (language_demangle): Declare.
6148 * language.c (language_demangle): New function.
6149 (unk_lang_demangle): Likewise.
6150 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 6151 Add ukn_lang_demangle.
9a3d7dfd 6152 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 6153 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
6154 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6155 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6156 * jv-lang.c (java_demangle): New function
6157 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
6158 * objc-lang.c (objc_demangle): Add options argument
6159 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
6160 * maint.c (maintenance_demangle): Replace switch with
6161 call to language_demangle.
6162 * utils.c (fprintf_symbol_filtered): Likewise.
6163
5e074003
AC
61642003-04-01 Andrew Cagney <cagney@redhat.com>
6165
6166 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6167 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6168 PRINT_TYPELESS_INTEGER.
6169 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6170 PUSH_RETURN_ADDRESS.
6171
270cb5d6
AC
61722003-04-01 Andrew Cagney <cagney@redhat.com>
6173
6174 * Makefile.in (d10v-tdep.o): Update dependencies.
6175 * d10v-tdep.c: Include "frame-base.h".
6176 (d10v_frame_unwind): Make constant.
6177 (d10v_frame_base_address): New function.
6178 (d10v_frame_base): New variable.
6179 (d10v_gdbarch_init): Set frame_base default.
6180 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6181 comment for base.
6182 (d10v_frame_unwind_cache): Set and use "prev_sp".
6183 (d10v_frame_this_id): Use the previous frame's inner most stack
6184 address and this frame's func address for the frame ID. Use
6185 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 6186
6bfb3e36
AC
61872003-04-01 Andrew Cagney <cagney@redhat.com>
6188
6189 * frame.h (get_frame_locals_address, get_frame_args_address):
6190 Refer to the base address, instead of the address of the first
6191 local or parameter.
8ffd9b1b 6192
da62e633
AC
61932003-04-01 Andrew Cagney <cagney@redhat.com>
6194
6195 Add frame debug info addresses:
6196 * frame-base.c: New file.
6197 * frame-base.h: New file.
6198 * frame.h (struct frame_base): Add opaque declaration.
6199 (get_frame_base): Update comment.
6200 (get_frame_base_address): Declare.
6201 (get_frame_locals_address): Declare.
6202 (get_frame_args_address): Declare.
6203 (struct frame_info): Add "base" and "base_cache". Update
6204 comments on the unwinder.
6205 * frame.c: Include "frame-base.h".
6206 (get_frame_locals_address): New function.
6207 (get_frame_base_address): New function.
6208 (get_frame_args_address): New function.
6209 * findvar.c (read_var_value): Use get_frame_locals_address and
6210 get_frame_args_address.
6211 * stack.c (frame_info): Use get_frame_locals_address and
6212 get_frame_args_address.
6213 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6214 moved to "frame-base.c".
6215 * printcmd.c (print_frame_nameless_args): Ditto.
6216 * symtab.h (address_class): Update comments.
6217 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6218 get_frame_base_address.
6219 * dwarf2expr.c (execute_stack_op): Ditto.
6220 * Makefile.in (frame_base_h): Define.
6221 (frame.o): Update dependencies.
6222 (frame-base.o): Add dependencies.
6223 (SFILES): Add frame-base.c.
6224 (COMMON_OBS): Add frame-base.o.
6225
3d30e9c2
AC
62262003-04-01 Andrew Cagney <cagney@redhat.com>
6227
6228 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6229 CALL_DUMMY_LENGTH): Ditto.
6230 * gdbarch.c: Re-generate.
6231 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6232 (CALL_DUMMY_LENGTH): Delete macro.
6233 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6234 * arm-tdep.c (arm_gdbarch_init): Ditto.
6235 * avr-tdep.c (avr_gdbarch_init): Ditto.
6236 * cris-tdep.c (cris_gdbarch_init): Ditto.
6237 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6238 * frv-tdep.c (frv_gdbarch_init): Ditto.
6239 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6240 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6241 * i386-tdep.c (i386_gdbarch_init): Ditto.
6242 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6243 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6244 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6245 * mips-tdep.c (mips_gdbarch_init): Ditto.
6246 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6247 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6248 * s390-tdep.c (s390_gdbarch_init): Ditto.
6249 * sh-tdep.c (sh_gdbarch_init): Ditto.
6250 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6251 * v850-tdep.c (v850_gdbarch_init): Ditto.
6252 * vax-tdep.c (vax_gdbarch_init): Ditto.
6253 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6254
ce0c7262
CV
62552003-04-01 Corinna Vinschen <vinschen@redhat.com>
6256
6257 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6258
73dd234f
AC
62592003-04-01 Andrew Cagney <cagney@redhat.com>
6260
6261 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6262 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6263 * gdbarch.h, gdbarch.c: Re-generate.
6264 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6265 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6266 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6267 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6268 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6269 * infcmd.c (run_stack_dummy): Simplify assuming
6270 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6271 * infrun.c (handle_inferior_event): Ditto.
6272 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6273 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6274 * arm-tdep.c (arm_gdbarch_init): Ditto.
6275 * avr-tdep.c (avr_gdbarch_init): Ditto.
6276 * cris-tdep.c (cris_gdbarch_init): Ditto.
6277 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6278 * frv-tdep.c (frv_gdbarch_init): Ditto.
6279 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6280 * i386-tdep.c (i386_gdbarch_init): Ditto.
6281 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6282 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6283 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6284 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6285 * mips-tdep.c (mips_gdbarch_init): Ditto.
6286 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6287 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6288 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6289 * s390-tdep.c (s390_gdbarch_init): Ditto.
6290 * sh-tdep.c (sh_gdbarch_init): Ditto.
6291 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6292 * v850-tdep.c (v850_gdbarch_init): Ditto.
6293 * vax-tdep.c (vax_gdbarch_init): Ditto.
6294 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6295
97606a13
DJ
62962003-04-01 Daniel Jacobowitz <drow@mvista.com>
6297
6298 * symfile.c (symfile_relocate_debug_section): Update call to
6299 bfd_simple_get_relocated_section_contents.
6300
e8ab51f7
AC
63012003-03-31 Andrew Cagney <cagney@redhat.com>
6302
6303 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6304 * gdbarch.h, gdbarch.c: Regenerate.
6305 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6306 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6307 available.
6308 * frame.h (generic_fix_call_dummy): Delete declaration.
6309 * dummy-frame.h: Update comment.
6310 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6311 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6312 fix_call_dummy.
6313 * sh-tdep.c (sh_gdbarch_init): Ditto.
6314 * s390-tdep.c (s390_gdbarch_init): Ditto.
6315 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6316 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6317 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6318 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6319 * i386-tdep.c (i386_gdbarch_init): Ditto.
6320 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6321 * frv-tdep.c (frv_gdbarch_init): Ditto.
6322 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6323 * cris-tdep.c (cris_gdbarch_init): Ditto.
6324 * avr-tdep.c (avr_gdbarch_init): Ditto.
6325 * arm-tdep.c (arm_gdbarch_init): Ditto.
6326
018d1b48
JB
63272003-03-31 J. Brobecker <brobecker@gnat.com>
6328
6329 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6330 (INIT_FRAME_AP): Likewise.
6331 (EXTRA_FRAME_INFO): Likewise.
6332
e9a2674e
AC
63332003-03-31 Andrew Cagney <cagney@redhat.com>
6334
6335 * gdbarch.sh: Include "symfile.h".
6336 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6337 * gdbarch.h, gdbarch.c: Re-generate.
6338 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6339 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6340 call_dummy_address, the default is at entry_point_address.
6341 * v850-tdep.c (v850_gdbarch_init): Ditto.
6342 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6343 * sh-tdep.c (sh_gdbarch_init): Ditto.
6344 * s390-tdep.c (s390_gdbarch_init): Ditto.
6345 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6346 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6347 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6348 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6349 * i386-tdep.c (i386_gdbarch_init): Ditto.
6350 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6351 * frv-tdep.c (frv_gdbarch_init): Ditto.
6352 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6353 * cris-tdep.c (cris_gdbarch_init): Ditto.
6354 * arm-tdep.c (arm_gdbarch_init): Ditto.
6355
e8a8712a
AC
63562003-03-31 Andrew Cagney <cagney@redhat.com>
6357
6358 * gdbarch.sh (CALL_DUMMY_P): Delete.
6359 * gdbarch.h, gdbarch.c: Re-generate.
6360 * inferior.h (CALL_DUMMY_P): Delete macro.
6361 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6362 * vax-tdep.c (vax_gdbarch_init): Update.
6363 * v850-tdep.c (v850_gdbarch_init): Update.
6364 * sparc-tdep.c (sparc_gdbarch_init): Update.
6365 * sh-tdep.c (sh_gdbarch_init): Update.
6366 * s390-tdep.c (s390_gdbarch_init): Update.
6367 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6368 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6369 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6370 * mips-tdep.c (mips_gdbarch_init): Update.
6371 * mcore-tdep.c (mcore_gdbarch_init): Update.
6372 * m68k-tdep.c (m68k_gdbarch_init): Update.
6373 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6374 * ia64-tdep.c (ia64_gdbarch_init): Update.
6375 * i386-tdep.c (i386_gdbarch_init): Update.
6376 * h8300-tdep.c (h8300_gdbarch_init): Update.
6377 * frv-tdep.c (frv_gdbarch_init): Update.
6378 * d10v-tdep.c (d10v_gdbarch_init): Update.
6379 * cris-tdep.c (cris_gdbarch_init): Update.
6380 * breakpoint.c (deprecated_frame_in_dummy): Update.
6381 * avr-tdep.c (avr_gdbarch_init): Update.
6382 * alpha-tdep.c (alpha_gdbarch_init): Update.
6383 * arm-tdep.c (arm_gdbarch_init): Update.
6384 * dummy-frame.c (dummy_frame_this_id): Update comments.
6385 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6386 * frame.c (legacy_get_prev_frame): Ditto.
6387 * valops.c (call_function_by_hand): Delete function.
6388 (hand_function_call): Rename to call_function_by_hand
6389
ed234cf8
AC
63902003-03-30 Andrew Cagney <cagney@redhat.com>
6391
6392 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 6393 * value.h (struct value): Update comment.
ed234cf8 6394
06c77151
AC
63952003-03-30 Andrew Cagney <cagney@redhat.com>
6396
6c2b5168
AC
6397 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6398 D10V_FP_REGNUM.
6399 (d10v_gdbarch_init): Do not set fp_regnum.
6400
06c77151
AC
6401 * frame.c (get_frame_base): Force ID initialization.
6402 (get_prev_frame): Move computation of the frame ID from here ...
6403 (get_frame_id): ... to here.
6404 (legacy_get_prev_frame): Mark the frame ID as valid.
6405 * frame.h (struct frame_info): Add field "id_p".
6406
97a1a11c
MK
64072003-03-30 Mark Kettenis <kettenis@gnu.org>
6408
6409 * i386-tdep.c (i386_store_struct_return): Removed.
6410 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6411
6c0e89ed
AC
64122003-03-30 Andrew Cagney <cagney@redhat.com>
6413
6414 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6415 * gdbarch.h, gdbarch.c: Regenerate.
6416 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6417 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6418 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6419 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6420 * i386-tdep.c (i386_gdbarch_init): Ditto.
6421 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6422 * cris-tdep.c (cris_gdbarch_init): Ditto.
6423 * vax-tdep.c (vax_gdbarch_init): Ditto.
6424 * s390-tdep.c (s390_gdbarch_init): Ditto.
6425 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6426 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6427 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6428 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6429 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6430 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6431 * sparc-tdep.c (sparc_gdbarch_init): Update.
6432 * sh-tdep.c (sh_gdbarch_init): Update.
6433 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6434 * mips-tdep.c (mips_gdbarch_init): Update.
6435 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6436 * ia64-tdep.c (ia64_gdbarch_init): Update.
6437 * frv-tdep.c (frv_gdbarch_init): Update.
6438 * avr-tdep.c (avr_gdbarch_init): Update.
6439 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
6440 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
6441 instead of when push_dummy_call is not available.
8ffd9b1b 6442
f7dd6af2
AC
64432003-03-30 Andrew Cagney <cagney@redhat.com>
6444
6445 * infttrace.c: Include "gdbthread.h".
6446 (parent_attach_all): Fix function signature.
6447 (call_ptrace): Update call.
6448 * Makefile.in (infttrace.o): Update dependencies.
6449
28f617b3
AC
64502003-03-30 Andrew Cagney <cagney@redhat.com>
6451
6452 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
6453 PUSH_RETURN_ADDRESS.
6454 * gdbarch.h, gdbarch.c: Regenerate.
6455 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6456 * x86-64-tdep.c (x86_64_init_abi): Update.
6457 * v850-tdep.c (v850_gdbarch_init): Update.
6458 * sparc-tdep.c (sparc_gdbarch_init): Update.
6459 * sh-tdep.c (sh_gdbarch_init): Update.
6460 * s390-tdep.c (s390_gdbarch_init): Update.
6461 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6462 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6463 * mips-tdep.c (mips_gdbarch_init): Update.
6464 * mcore-tdep.c (mcore_gdbarch_init): Update.
6465 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6466 * ia64-tdep.c (ia64_gdbarch_init): Update.
6467 * i386-tdep.c (i386_gdbarch_init): Update.
6468 * h8300-tdep.c (h8300_gdbarch_init): Update.
6469 * frv-tdep.c (frv_gdbarch_init): Update.
6470 * cris-tdep.c (cris_gdbarch_init): Update.
6471 * avr-tdep.c (avr_gdbarch_init): Update.
6472 * arm-tdep.c (arm_gdbarch_init): Update.
6473 * valops.c (hand_function_call): Update.
6474
4d628cd7
AC
64752003-03-29 Andrew Cagney <cagney@redhat.com>
6476
6477 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
6478 sizeof_call_dummy_words.
6479 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
6480 define.
6481 * gdbarch.h: Regenerate.
8ffd9b1b 6482
65e82032
AC
64832003-03-29 Andrew Cagney <cagney@redhat.com>
6484
6485 * infttrace.h: New file.
6486 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
6487 (hpread_get_textlow): Detect an uninitialized dn_bufp.
6488 (hpread_read_doc_function_type): Detect an initialized type1.
6489 (hpread_quick_traverse): Initialize mod_name_string.
6490 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
6491 (som_solib_get_solib_by_pc): Declare.
6492 (so_lib_thread_start_addr): Declare.
6493 (no_shared_libraries): Declare.
6494 * somread.c (init_import_symbols): Make static. Add forward
6495 declaration.
6496 * config/pa/nm-hppah.h: Include "infttrace.h" for
6497 parent_attach_all.
6498 (hppa_insert_hw_watchpoint): Declare.
6499 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
6500 * hppah-nat.c: Include "gdb_string.h".
6501 (parent_attach_all): Delete extern declaration, moved to
6502 "infttrace.h".
6503 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
6504 int.
6505 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
6506 * Makefile.in (infttrace_h): Define.
6507 (hpread.o): Update dependencies.
6508 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
6509 * hppa-hpux-tdep.c: Include "gdb_string.h".
6510 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
6511 * infrun.c (handle_inferior_event): Always initialize
6512 stepped_after_stopped_by_watchpoint. Add default and remove
6513 fallthrough in switch statement.
6514 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
6515 parameter to int.
6516 (hppa_remove_hw_watchpoint): Ditto.
6517
2c3bbe77
AC
65182003-03-29 Andrew Cagney <cagney@redhat.com>
6519
6520 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
6521 offset.
6522
2dd604e7
RE
65232003-03-29 Richard Earnshaw <rearnsha@arm.com>
6524
6525 * arm-tdep.c (arm_push_arguments): Delete.
6526 (struct stack_item): New type.
6527 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
6528 (arm_store_struct_return): Delte.
6529 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
6530 arm_push_arguments or arm_store_struct_return.
6531
e8933a55
AC
65322003-03-28 Andrew Cagney <cagney@redhat.com>
6533
6534 * Makefile.in (d10v-tdep.o): Update dependencies.
6535 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
6536 * d10v-tdep.c: Include "remote.h".
6537 (target_resume_hook): Delete extern declaration.
6538 (target_wait_loop_hook): Ditto.
6539 (tdisassemble_command): Eliminate assignment in "if" conditional.
6540 (d10v_ts2_register_sim_regno): Eliminate call to
6541 legacy_register_sim_regno.
6542 (d10v_ts3_register_sim_regno): Ditto.
6543
6949171e
JJ
65442003-03-28 Jeff Johnston <jjohnstn@redhat.com>
6545
6546 * thread.c: Reindented.
6547 * lin-lwp.c: Ditto.
6548 * linux-proc.c: Ditto.
6549
98c7071f
BR
65502003-03-28 Bob Rossi <bob_rossi@cox.net>
6551
fbe586ae 6552 * MAINTAINERS (write after approval): Add myself.
98c7071f 6553
5edc9ca6
TR
65542003-03-27 Theodore A. Roth <troth@openavr.org>
6555
6556 * objc-exp.y: Add missing semi-colons.
6557
378bfd1b
AC
65582003-03-27 Andrew Cagney <cagney@redhat.com>
6559
6560 * regcache.c (write_sp): Delete function and references.
6561 * inferior.h (write_sp): Delete declaration.
6562 * valops.c (hand_function_call): Replace write_sp with
6563 TARGET_WRITE_SP.
6564 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
6565 (sparc_pop_frame): Ditto.
8ffd9b1b 6566
56056df7
AC
65672003-03-27 Andrew Cagney <cagney@redhat.com>
6568
6569 * NEWS: Mention removal of support for hppa*-*-bsd* and
6570 hppa*-*-osf* natives, and hppa*-*-pro* target.
6571 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
6572 * config/pa/xm-pa.h: Obsolete file.
6573 * config/pa/xm-hppab.h: Obsolete file.
6574 * config/pa/nm-hppab.h: Obsolete file.
6575 * config/pa/tm-hppab.h: Obsolete file.
6576 * config/pa/tm-hppao.h: Obsolete file.
6577 * config/pa/nm-hppao.h: Obsolete file.
6578 * config/pa/tm-pro.h: Obsolete file.
6579 * config/pa/hppaosf.mt: Obsolete file.
6580 * config/pa/hppaosf.mh: Obsolete file.
6581 * config/pa/hppapro.mt: Obsolete file.
6582 * config/pa/hppabsd.mt: Obsolete file.
6583 * config/pa/hppabsd.mh: Obsolete file.
6584 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
6585 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
6586 hppa*-*-osf*.
6587
5873a88d
AC
65882003-03-27 Andrew Cagney <cagney@redhat.com>
6589
6590 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
6591 push_arguments. Don't set push_return_address or write_sp.
6592 (d10v_push_dummy_call): Replace d10v_push_arguments.
6593 (d10v_push_return_address, d10v_write_sp): Delete function,
6594 handled by push_dummy_call.
6595
b81774d8
AC
65962003-03-26 Andrew Cagney <cagney@redhat.com>
6597
6598 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
6599 (push_dummy_call): New pure multi-arch replacement with gdbarch,
6600 regcache and dummy_addr parameters.
6601 * gdbarch.h, gdbarch.c: Re-generate.
6602 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
6603 available; assume it will handle stack alignment and return
6604 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
6605 legacy_push_arguments.
6606 (legacy_push_arguments): Rename default_push_arguments.
6607 * value.h (legacy_push_arguments): Rename default_push_arguments.
6608 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
6609 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6610 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6611 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6612 * config/i386/tm-symmetry.h: Update.
6613 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6614 * x86-64-tdep.c (x86_64_init_abi): Update.
6615 * v850-tdep.c (v850_gdbarch_init): Update.
6616 * sparc-tdep.c (sparc_gdbarch_init): Update.
6617 * sh-tdep.c (sh_gdbarch_init): Update.
6618 * s390-tdep.c (s390_gdbarch_init): Update.
6619 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6620 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6621 * mips-tdep.c (mips_gdbarch_init): Update.
6622 * mcore-tdep.c (mcore_gdbarch_init): Update.
6623 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6624 * ia64-tdep.c (ia64_gdbarch_init): Update.
6625 * i386-tdep.c (i386_gdbarch_init): Update.
6626 * hppa-tdep.c (hppa_gdbarch_init): Update.
6627 * h8300-tdep.c (h8300_gdbarch_init): Update.
6628 * frv-tdep.c (frv_gdbarch_init): Update.
6629 * d10v-tdep.c (d10v_gdbarch_init): Update.
6630 * cris-tdep.c (cris_gdbarch_init): Update.
6631 * avr-tdep.c (avr_gdbarch_init): Update.
6632 * arm-tdep.c (arm_gdbarch_init): Update.
6633 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6634 * alpha-tdep.c (alpha_gdbarch_init): Update.
6635
f541410f
DJ
66362003-03-26 Daniel Jacobowitz <drow@mvista.com>
6637
6638 * signals/signals.c (do_target_signal_to_host): Correct realtime
6639 signal range test.
6640
69f567ae
DJ
66412003-03-26 Daniel Jacobowitz <drow@mvista.com>
6642
6643 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
6644 (struct sal_chain, map_catch_names): Remove.
6645 (catch_exception_command_1): Don't call
6646 handle_gnu_4_16_catch_command.
6647
d5d14a5a
DJ
66482003-03-26 Daniel Jacobowitz <drow@mvista.com>
6649
6650 From Mark Dettinger <dettinge@de.ibm.com>:
6651 * dwarf2cfi.c (read_2u): Increment pointer by two.
6652
bdd73e22
DJ
66532003-03-26 Daniel Jacobowitz <drow@mvista.com>
6654
6655 * signals/signals.c: Fix typos in last change.
6656
960cb555
DJ
66572003-03-26 Daniel Jacobowitz <drow@mvista.com>
6658
6659 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
6660 not already defined. Use __SIGRTMIN if available.
6661 (target_signal_from_host): Remove SIGRTMIN block.
6662 (do_target_signal_to_host): Remove SIGRTMIN block; check that
6663 the signal is within the realtime range.
6664
f636b87d
AF
66652003-03-25 Adam Fedor <fedor@gnu.org>
6666
6667 * Makefile.in (infrun.o): Add $(language_h)
6668 * infrun.c (handle_inferior_event): Use skip_language_trampoline
6669 for language specific trampolines.
6670 * language.h (struct language_defn): Add skip_trampoline.
6671 (skip_language_trampoline): Declare.
6672 * language.c (unk_lang_trampoline, skip_language_trampoline):
6673 New functions.
6674 (unknown_language_defn, auto_language_defn, local_language_defn):
6675 Add ukn_lang_trampoline.
6676 * ada-lang.c (ada_language_defn): Add NULL for language
6677 specific skip_trampoline.
6678 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
6679 scm-lang.c: Likewise.
6680 * objc-lang.c (objc_skip_trampoline): New function.
6681 (objc_language_defn): Add objc_skip_trampoline.
6682
28f617b3 66832003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
6684
6685 * frame.c (get_prev_frame): Delay validating a frame's ID -
6686 non-NULL, didn't go backwards - until an attempt to unwind it to
6687 the previous frame.
6688
f933a9c5
AC
66892003-03-25 Andrew Cagney <cagney@redhat.com>
6690
6691 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
6692 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
6693 * gdbarch.h, gdbarch.c: Re-generate.
6694 * config/sparc/tm-sparc.h
6695 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
6696 * sparc-tdep.c (sparc_gdbarch_init): Set
6697 deprecated_extra_stack_alignment_needed.
6698 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
6699 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
6700 extra_stack_alignment_needed.
6701 * v850-tdep.c (v850_gdbarch_init): Ditto.
6702 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6703 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6704 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6705 * cris-tdep.c (cris_gdbarch_init): Ditto.
6706 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6707 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 6708
4183d812
AC
67092003-03-25 Andrew Cagney <cagney@redhat.com>
6710
6711 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
6712 STORE_STRUCT_RETURN.
6713 * gdbarch.h, gdbarch.c: Regenerate.
6714 * d10v-tdep.c (d10v_store_struct_return): Delete function.
6715 (d10v_push_arguments): Set the struct return register.
6716 (d10v_gdbarch_init): Update.
6717 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6718 * x86-64-tdep.c (x86_64_init_abi): Update.
6719 * vax-tdep.c (vax_gdbarch_init): Update.
6720 * v850-tdep.c (v850_gdbarch_init): Update.
6721 * sparc-tdep.c (sparc_gdbarch_init): Update.
6722 * sh-tdep.c (sh_gdbarch_init): Update.
6723 * s390-tdep.c (s390_gdbarch_init): Update.
6724 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6725 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6726 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6727 * mips-tdep.c (mips_gdbarch_init): Update.
6728 * mcore-tdep.c (mcore_gdbarch_init): Update.
6729 * m68k-tdep.c (m68k_gdbarch_init): Update.
6730 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6731 * ia64-tdep.c (ia64_gdbarch_init): Update.
6732 * i386-tdep.c (i386_gdbarch_init): Update.
6733 * hppa-tdep.c (hppa_gdbarch_init): Update.
6734 * h8300-tdep.c (h8300_gdbarch_init): Update.
6735 * frv-tdep.c (frv_gdbarch_init): Update.
6736 * cris-tdep.c (cris_gdbarch_init): Update.
6737 * avr-tdep.c (avr_gdbarch_init): Update.
6738 * arm-tdep.c (arm_gdbarch_init): Update.
6739 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 6740
1bf6d5cc
AC
67412003-03-25 Andrew Cagney <cagney@redhat.com>
6742
6743 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
6744 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
6745 CALL_DUMMY_STACK_ADJUST with a predicate variable.
6746 * gdbarch.h, gdbarch.c: Regenerate.
6747 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6748 call_dummy_stack_adjust_p.
6749 * vax-tdep.c (vax_gdbarch_init): Ditto.
6750 * v850-tdep.c (v850_gdbarch_init): Ditto.
6751 * sh-tdep.c (sh_gdbarch_init): Ditto.
6752 * s390-tdep.c (s390_gdbarch_init): Ditto.
6753 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6754 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6755 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6756 * mips-tdep.c (mips_gdbarch_init): Ditto.
6757 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6758 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6759 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6760 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6761 * i386-tdep.c (i386_gdbarch_init): Ditto.
6762 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6763 * frv-tdep.c (frv_gdbarch_init): Ditto.
6764 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6765 * cris-tdep.c (cris_gdbarch_init): Ditto.
6766 * avr-tdep.c (avr_gdbarch_init): Ditto.
6767 * arm-tdep.c (arm_gdbarch_init): Ditto.
6768 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6769 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6770 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
6771 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6772 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
6773 call_dummy_stack_adjust_p.
6774 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
6775 (CALL_DUMMY_STACK_ADJUST): Delete macro.
6776 * sparc-tdep.c (sparc32_push_arguments): Update.
6777 * valops.c (hand_function_call): Update.
6778
71c08af0
CV
67792003-03-25 Corinna Vinschen <vinschen@redhat.com>
6780
6781 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
6782 set_gdbarch_char_signed.
6783
30757f90
RE
67842003-03-25 Richard Earnshaw <rearnsha@arm.com>
6785
6786 PR cli/548
6787 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
6788
03d48a7d
RE
67892003-03-25 Richard Earnshaw <rearnsha@arm.com>
6790
6791 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
6792 (_initialize_arm_tdep): Don't set tm_print_insn.
6793
2cf6873c
AF
67942003-03-24 Adam Fedor <fedor@gnu.org>
6795
6796 * Makefile.in (YYOBJ): Add objc-exp.tab.o
6797 * objc-lang.h: Add multiple inclusion protection.
6798 (start_msglist, add_msglist, end_msglist): Additional declarations.
6799
17c0759e
RE
68002003-03-24 Richard Earnshaw <rearnsha@arm.com>
6801
6802 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
6803 value was renamed to ARM_FLOAT_SOFT_FPA.
6804
618ce49f
AC
68052003-03-23 Andrew Cagney <cagney@redhat.com>
6806
6807 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
6808 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
6809 * gdbarch.h, gdbarch.c: Regenerate.
6810 * valops.c (hand_function_call): Update.
6811 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6812 * frame.c (legacy_saved_regs_this_id): Update.
6813 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
6814 * dummy-frame.h: Update.
6815 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
6816 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6817 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
6818 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
6819 * config/m68k/tm-sun3.h: Update.
6820 * blockframe.c (inside_main_func, frame_chain_valid): Update.
6821 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6822 * x86-64-tdep.c (x86_64_init_abi): Update.
6823 * vax-tdep.c (vax_gdbarch_init): Update.
6824 * v850-tdep.c (v850_gdbarch_init): Update.
6825 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
6826 * sh-tdep.c (sh_gdbarch_init): Update.
6827 * s390-tdep.c (s390_gdbarch_init): Update.
6828 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
6829 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
6830 (frame_get_saved_regs): Update.
6831 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6832 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6833 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6834 * mips-tdep.c (mips_gdbarch_init): Update.
6835 * mcore-tdep.c (mcore_gdbarch_init): Update.
6836 * m68k-tdep.c (m68k_gdbarch_init): Update.
6837 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6838 * ia64-tdep.c (ia64_gdbarch_init): Update.
6839 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
6840 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6841 (i386_interix_back_one_frame): Update.
6842 * hppa-tdep.c (hppa_gdbarch_init): Update.
6843 (hppa_init_extra_frame_info): Update.
6844 * h8300-tdep.c (h8300_gdbarch_init): Update.
6845 * frv-tdep.c (frv_gdbarch_init): Update.
6846 * cris-tdep.c (cris_gdbarch_init): Update.
6847 * avr-tdep.c (avr_gdbarch_init): Update.
6848 * arm-tdep.c (arm_gdbarch_init): Update.
6849 * alpha-tdep.c (alpha_gdbarch_init): Update.
6850
fd50bc42
RE
68512003-03-22 Richard Earnshaw <rearnsha@arm.com>
6852
6853 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
6854 (arm_get_fp_model): Declare.
6855 * arm-tdep.c (fp_model_strings): New string array.
6856 (arm_fp_model, current_fp_model): New variables.
6857 (arm_get_fp_model): New function.
6858 (arm_set_fp): New function.
6859 (set_fp_model_sfunc): New function.
6860 (show_fp_model): New function.
6861 (_initialize_arm_tdep): Add new command to set/show the FPU.
6862 (arm_extract_return_value): Use arm_get_fp_model.
6863 (arm_store_return_value): Likewise.
6864 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
6865 to initialize the floating-point data types.
6866 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
6867 model is FPA.
6868
26304000
RE
68692003-03-22 Richard Earnshaw <rearnsha@arm.com>
6870
6871 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
6872 the current setting of each value.
6873 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 6874 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
6875 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
6876 commands and add new version as subcommands of "set/show arm".
6877
afd7eef0
RE
68782003-03-22 Richard Earnshaw <rearnsha@arm.com>
6879
6880 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
6881 (set_arm_command, show_arm_command): New functions.
6882 (_initialize_arm_tdep): Add them.
6883 (num_disassembly_options): Renamed from num_flavor_options.
6884 (valid_disassembly_styles): Renamed from valid_flavors.
6885 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 6886 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
6887 set_disassembly_flavor_sfunc.
6888 (set_disassembly_style): Renamed from set_disassembly_flavor.
6889 (arm_othernames): Updated.
6890 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
6891 command. Add "set/show arm disassembly" commands. Deprecate
6892 "othernames" command.
6893
299a7944
RE
68942003-03-22 Richard Earnshaw <rearnsha@arm.com>
6895
6896 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
6897 (arm-tdep.o): Depend on elf_arm_h.
6898
c1dac9e6
RE
68992003-03-22 Richard Earnshaw <rearnsha@arm.com>
6900
6901 * Makefile.in (coff_internal_h): Define.
6902 (arm-tdep.o): Update dependencies.
6903
2702d96c
RE
69042003-03-22 Richard Earnshaw <rearnsha@arm.com>
6905
6906 * arm-tdep.c (prologue_cache): Delete.
6907 (check_prologue_cache, save_prologue_cache): Delete.
6908 (arm_scan_prologue): Don't check or update the prologue_cache.
6909 (arm_gdb_arch_init): Don't initialize it.
6910 (_initialize_arm_tdep): Likewise.
6911
27d5d74b
SC
69122003-03-21 Stephane Carrez <stcarrez@nerim.fr>
6913
6914 * MAINTAINERS (tui): Maintainer of tui code.
6915
1762d96d
CV
69162003-03-21 Corinna Vinschen <vinschen@redhat.com>
6917
6918 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
6919 (i386-cygwin-tdep.o): Add dependencies.
6920 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
6921 * i386-cygwin-tdep.c: New file.
6922 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
6923 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
6924
4c2e2391
AC
69252003-03-20 Andrew Cagney <cagney@redhat.com>
6926
f20d38b7
AC
6927 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
6928 (handle_inferior_event): Remove code calling
6929 DYNAMIC_TRAMPOLINE_NEXTPC.
6930
0022b738
AC
6931 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
6932 already has a full path.
6933
864dbc90
AC
6934 * main.c (gdb_main): Return 1.
6935 (captured_main): Call error to report an invalid interpreter.
6936
4c2e2391
AC
6937 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6938 * alpha-osf1-tdep.c: Include "gdb_string.h".
6939
5ef7553b
JB
69402003-03-19 J. Brobecker <brobecker@gnat.com>
6941
6942 Continuing work to convert the hppa targets to multiarch partial.
6943
6944 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
6945 method, now that hppa_push_dummy_frame has a conformant prototype.
6946 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
6947 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
6948 for the switch to multiarch partial.
6949
7bde8967
KB
69502003-03-19 Kevin Buettner <kevinb@redhat.com>
6951
6952 * mdebugread.c (parse_symbol): For stEnd, we're done counting
6953 when iss is issNull.
6954
b006a9e9
KB
69552003-03-18 Kevin Buettner <kevinb@redhat.com>
6956
6957 * mips-tdep.c (mips_register_name): Fix fencepost error involving
6958 NUM_REGS bounds check.
6959
5e2e9765
KB
69602003-03-18 Kevin Buettner <kevinb@redhat.com>
6961
6962 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
6963 * mips-tdep.c (gdb_assert.h): Include.
6964 (mips_generic_reg_names, mips_processor_reg_names): Make static.
6965 (mips_register_name): Handle integer registers explicitly. Add
6966 bounds checking.
6967 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
6968 (mips_lsi33k_reg_names): Don't list integer registers; they're
6969 handled by mips_register_name() now.
6970 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
6971 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
6972 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
6973 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
6974 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
6975
a2867626
AC
69762003-03-18 Andrew Cagney <cagney@redhat.com>
6977
6978 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
6979 a void pointer.
6980 * gdbtypes.h (print_scalar_formatted): Update declaration.
6981 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
6982
06600e06
JB
69832003-03-18 J. Brobecker <brobecker@gnat.com>
6984
6985 * infrun.c (observer.h): Add #include.
6986 (normal_stop): Add call to observer_notify_normal_stop.
6987 * Makefile.in (infrun.o): Add dependency on observer.h.
6988
7daf4f5b
JB
69892003-03-18 J. Brobecker <brobecker@gnat.com>
6990
6991 Continuing work to convert the hppa targets to multiarch partial.
6992 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
6993 parameter. Reformat comment.
6994 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
6995 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
6996 to match new profile.
6997
3371ccc0
JB
69982003-03-18 J. Brobecker <brobecker@gnat.com>
6999
7000 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7001 appear to be working in any case.
7002
4fbe891e
JB
70032003-03-18 J. Brobecker <brobecker@gnat.com>
7004
7005 * observer.c (observer_test_first_observer): New static variable.
7006 (observer_test_second_observer): Likewise.
7007 (observer_test_third_observer): Likewise.
7008 (observer_test_first_notification_function): New static function.
7009 (observer_test_second_notification_function): Likewise.
7010 (observer_test_third_notification_function): Likewise.
7011
a7ff40e7
JB
70122003-03-17 J. Brobecker <brobecker@gnat.com>
7013
7014 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7015 * somsolib.c (gdb_assert.h): Likewise.
7016 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7017 (somsolib.o): Likewise.
7018
26ca4152
AC
70192003-03-17 Andrew Cagney <cagney@redhat.com>
7020
7021 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7022 BFD. Simplify setting of di.endian.
7023
0a613259
AC
70242003-03-17 Andrew Cagney <cagney@redhat.com>
7025
7026 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7027 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7028
7029 From Elena Zannoni <ezannoni@redhat.com>
7030 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7031 vector and floating-point parameters.
7032 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7033 convention.
7034 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7035
1132738f
FN
70362003-03-17 Fernando Nasser <fnasser@redhat.com>
7037
7038 * MAINTAINERS: Remove my name from several maintainership roles.
7039
6dc42492
AC
70402003-03-17 Andrew Cagney <cagney@redhat.com>
7041
7042 Fix frame off-by-one bug.
7043 * frame-unwind.h (frame_this_id_ftype): Replace
7044 frame_unwind_id_ftype.
7045 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7046 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7047 with "prev_register".
7048 * frame-unwind.c (frame_unwind_find_by_pc): Return
7049 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7050 comment.
7051 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7052 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7053 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7054 (dummy_frame_unwind): Update.
7055 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7056 sentinel_frame_register_unwind.
7057 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7058 (sentinel_frame_unwinder): Update.
7059 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7060 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7061 * frame.c (create_sentinel_frame): Update. Initialize
7062 "prologue_cache" instead of "unwind_cache".
7063 (frame_register_unwind): Call this frame's prev_register with the
7064 next frame and this frame's prologue cache.
7065 (get_prev_frame): Simplify. Always call prev frame's this_id with
7066 this frame and prev frame's prologue cache. Document that this
7067 call is shifted one to the left when compared to the
7068 frame_register_unwind call.
7069 (legacy_saved_regs_prev_register): Replace
7070 frame_saved_regs_register_unwind.
7071 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7072 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7073 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7074 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7075 (d10v_frame_unwind): Update.
7076 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7077 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7078 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7079 "saved_regs" with "this_saved_regs".
7080
efd710d6
AC
70812003-03-16 Andrew Cagney <cagney@redhat.com>
7082
7083 * frame.c (frame_pop): Don't call target_store_registers. Fix
7084 problem reported by Mark Kettenis.
7085
4e259f09
MK
70862003-03-16 Mark Kettenis <kettenis@gnu.org>
7087
7088 * i386-tdep.c (i386_register_type): Renamed from
7089 i386_register_virtual_type. Adjust function signature.
7090 (i386_gdbarch_init): Set register_type instead of
7091 deprecated_max_register_raw_size,
7092 deprecated_max_register_virtual_size and register_virtual_type.
7093
055bb976
AC
70942003-03-14 Andrew Cagney <cagney@redhat.com>
7095
7096 * frame.c (get_prev_frame): When a legacy frame, always call
7097 legacy_get_prev_frame. Simplify unwind code using assumption that
7098 the unwinder is new.
7099 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7100 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7101 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7102
ac2adee5
AC
71032003-03-14 Andrew Cagney <cagney@redhat.com>
7104
7105 * frame.c (get_saved_register): Delete function.
7106 * frame.h (get_saved_register): Delete declaration.
7107 * xstormy16-tdep.c: Update comment.
7108 * regcache.h: Update comments.
7109 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7110 get_saved_register and extract_address, use
7111 frame_read_unsigned_register.
7112 (sparc_frame_saved_pc): Ditto.
7113 (sparc_get_saved_register): Instead of get_saved_register, use
7114 frame_register.
7115 (sparc_pop_frame): Ditto.
7116 * findvar.c: Update comments.
7117 (value_of_register): Call frame_register instead of
7118 get_saved_register.
7119 (value_from_register): Ditto.
7120 * config/sparc/tm-sparc.h: Update comment.
7121 * breakpoint.c: Update comment.
7122
129c1cd6
AC
71232003-03-14 Andrew Cagney <cagney@redhat.com>
7124
7125 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7126 GET_SAVED_REGISTER.
7127 * gdbarch.h, gdbarch.c: Re-generate.
7128 * frame.h: Update comments.
7129 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7130 * x86-64-tdep.c (x86_64_init_abi): Update.
7131 * sparc-tdep.c (sparc_gdbarch_init): Update.
7132 * sh-tdep.c (sh_gdbarch_init): Update.
7133 * mips-tdep.c (mips_gdbarch_init): Update.
7134 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7135 * cris-tdep.c (cris_gdbarch_init): Update.
7136 * ia64-tdep.c (ia64_gdbarch_init): Update.
7137 * frame.c (frame_register): Update.
7138 (get_saved_register): Update.
7139 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 7140
749b82f6
AC
71412003-03-13 Andrew Cagney <cagney@redhat.com>
7142
7143 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7144 * gdbarch.h, gdbarch.c: Regenerate.
7145 * valops.c (hand_function_call): Update comment.
7146 * stack.c (return_command): Update comment.
7147 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7148 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7149 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7150 * x86-64-tdep.c (x86_64_init_abi): Update.
7151 * vax-tdep.c (vax_gdbarch_init): Update.
7152 * v850-tdep.c (v850_gdbarch_init): Update.
7153 * sparc-tdep.c (sparc_gdbarch_init): Update.
7154 * sh-tdep.c (sh_gdbarch_init): Update.
7155 * s390-tdep.c (s390_gdbarch_init): Update.
7156 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7157 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7158 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7159 * mips-tdep.c (mips_gdbarch_init): Update.
7160 * mcore-tdep.c (mcore_gdbarch_init): Update.
7161 * m68k-tdep.c (m68k_gdbarch_init): Update.
7162 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7163 * ia64-tdep.c (ia64_gdbarch_init): Update.
7164 * i386-tdep.c (i386_gdbarch_init): Update.
7165 * hppa-tdep.c (hppa_gdbarch_init): Update.
7166 * h8300-tdep.c (h8300_gdbarch_init): Update.
7167 * frv-tdep.c (frv_gdbarch_init): Update.
7168 * cris-tdep.c (cris_gdbarch_init): Update.
7169 * avr-tdep.c (avr_gdbarch_init): Update.
7170 * arm-tdep.c (arm_gdbarch_init): Update.
7171 * alpha-tdep.c (alpha_gdbarch_init): Update.
7172
1594fa56
AC
71732003-03-13 Andrew Cagney <cagney@redhat.com>
7174
7175 * frame.c (legacy_frame_p): New function.
7176 (get_prev_frame): Use legacy_frame_p.
7177 * frame.h (legacy_frame_p): Declare.
7178
7717fda3
V
71792003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7180
fbe586ae 7181 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
7182 listing corrected.
7183
0c67cbe9
V
71842003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7185
fbe586ae 7186 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 7187
03febf99
AC
71882003-03-12 Andrew Cagney <cagney@redhat.com>
7189
7190 * frame.c (get_prev_frame): Rename the frame parameter to
7191 "this_frame".
7192 (get_next_frame, legacy_get_prev_frame): Ditto.
7193
0a1e1ca1
AC
71942003-03-12 Andrew Cagney <cagney@redhat.com>
7195
7196 * frame.c (get_current_frame): Check target_has_registers before
7197 checking target_has_stack.
7198 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7199 instead of deprecated_selected_frame.
7200 * findvar.c (value_of_register): Pass "frame", not
7201 deprecated_selected_frame, to value_of_builtin_reg.
7202
a66a9c23
AC
72032003-03-12 Andrew Cagney <cagney@redhat.com>
7204
7205 * regcache.c (regcache_cooked_write_signed): New function.
7206 (regcache_cooked_write_unsigned): New function.
7207 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7208 (regcache_cooked_read_signed): Fix regnum in range assertion.
7209 * regcache.h (regcache_cooked_write_signed): Declare.
7210 (regcache_cooked_write_unsigned): Declare.
7211
8bedc050
AC
72122003-03-12 Andrew Cagney <cagney@redhat.com>
7213
7214 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7215 * gdbarch.h, gdbarch.c: Re-generate.
7216 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7217 * x86-64-tdep.h: Update.
7218 * x86-64-tdep.c (x86_64_init_abi): Update.
7219 * v850-tdep.c (v850_gdbarch_init): Update.
7220 * sparc-tdep.c (sparc_gdbarch_init): Update.
7221 * sh-tdep.c (sh_gdbarch_init): Update.
7222 * s390-tdep.c (s390_gdbarch_init): Update.
7223 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7224 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7225 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7226 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7227 * mips-tdep.c (mips_gdbarch_init): Update.
7228 * mcore-tdep.c (mcore_gdbarch_init): Update.
7229 * m68k-tdep.c (m68k_gdbarch_init): Update.
7230 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7231 * ia64-tdep.c (ia64_gdbarch_init): Update.
7232 * i386-tdep.c (i386_gdbarch_init): Update.
7233 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7234 * hppa-tdep.c (hppa_gdbarch_init): Update.
7235 * h8300-tdep.c (h8300_gdbarch_init): Update.
7236 * frv-tdep.c (frv_gdbarch_init): Update.
7237 * cris-tdep.c (cris_gdbarch_init): Update.
7238 * avr-tdep.c (avr_gdbarch_init): Update.
7239 * arm-tdep.c (arm_gdbarch_init): Update.
7240 * alpha-tdep.c (alpha_gdbarch_init): Update.
7241 * sh-tdep.c (sh_init_extra_frame_info): Update.
7242 (sh64_init_extra_frame_info): Update.
7243 * ns32knbsd-nat.c (frame_num_args): Update.
7244 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7245 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7246 (xstormy16_frame_chain_valid): Update.
7247 * vax-tdep.c (vax_saved_pc_after_call): Update.
7248 * v850-tdep.c (v850_frame_chain): Update.
7249 (v850_pop_frame): Update.
7250 (v850_init_extra_frame_info): Update.
7251 * sparc-tdep.c (setup_arbitrary_frame): Update.
7252 * ns32k-tdep.c (umax_frame_num_args): Update.
7253 * s390-tdep.c (s390_pop_frame_regular): Update.
7254 * mn10300-tdep.c (mn10300_frame_chain): Update.
7255 (mn10300_pop_frame_regular): Update.
7256 (mn10300_init_extra_frame_info): Update.
7257 * mips-tdep.c (mips_init_frame_pc_first): Update.
7258 (mips_frame_chain): Update.
7259 (mips_pop_frame): Update.
7260 * mcore-tdep.c (mcore_frame_chain): Update.
7261 (mcore_pop_frame): Update.
7262 (mcore_init_extra_frame_info): Update.
7263 * arch-utils.c (init_frame_pc_default): Update.
7264 * m68k-tdep.c (isi_frame_num_args): Update.
7265 (delta68_frame_num_args): Update.
7266 (news_frame_num_args): Update.
7267 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7268 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7269 (alpha_frame_chain): Update.
7270 (alpha_pop_frame): Update.
7271 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7272 (hppa_init_extra_frame_info): Update.
7273 (hppa_frame_chain): Update.
7274 (hppa_frame_chain_valid): Update.
7275 * cris-tdep.c (cris_init_extra_frame_info): Update.
7276 * avr-tdep.c (avr_init_extra_frame_info): Update.
7277 * arm-tdep.c (arm_frame_chain_valid): Update.
7278 (arm_init_extra_frame_info): Update.
7279 (arm_pop_frame): Update.
7280 * frame.c (frame_pc_unwind): Update.
7281 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7282 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7283 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7284 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7285 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7286 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 7287
7a25a7c1
AC
72882003-03-12 Andrew Cagney <cagney@redhat.com>
7289
7290 Eliminate the need for POP_FRAME.
7291 * frame.c (do_frame_unwind_register): New function.
7292 (frame_pop): When no POP_FRAME, pop the frame using register
7293 unwind and a scratch regcache.
7294 (frame_saved_regs_pop): Delete function.
7295 (trad_frame_unwinder): Update.
7296 * d10v-tdep.c (d10v_frame_pop): Delete function.
7297 (d10v_frame_unwind): Update.
7298 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7299 (sentinel_frame_unwinder): Update.
7300 * dummy-frame.c (dummy_frame_pop): Delete function.
7301 (dummy_frame_unwind): Update.
7302 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7303 (struct frame_unwind): Update.
7304
2f38ef89
KB
73052003-03-11 Kevin Buettner <kevinb@redhat.com>
7306
7307 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7308 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7309 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7310 Do range checks on register number obtained from debugging info.
7311 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7312 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
7313 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7314 mapping function.
7315 (do_fp_register_row): Fix typo which caused double type to be
7316 used when attempting to unpack a float.
7317
552f4abf
JB
73182003-03-11 J. Brobecker <brobecker@gnat.com>
7319
7320 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7321
e0d2ae16
AC
73222003-03-11 Andrew Cagney <cagney@redhat.com>
7323
7324 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7325 frame. Problem found by Corinna Vinschen.
7326
ddbfdd06
PM
73272003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
7328
7329 * doublest.c (floatformat_from_length): Accept also
7330 the real size of 'long double' type.
7331
088b2ddc 73322003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 7333
088b2ddc 7334 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
7335 * breakpoint.c (bpstat_copy): Copy the command lines as well
7336 as the old value, to match what is freed in bpstat_clear.
7337
f56f77c1
DC
73382003-03-10 David Carlton <carlton@math.stanford.edu>
7339
7340 * minsyms.c (add_minsym_to_hash_table): Replace
7341 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7342 (compare_minimal_symbols, compact_minimal_symbols)
7343 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7344 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7345 of DEPRECATED_SYMBOL_MATCHES_NAME.
7346 (lookup_minimal_symbol_solib_trampoline): Ditto.
7347
5602984a
AC
73482003-03-10 Andrew Cagney <cagney@redhat.com>
7349
7350 * regcache.h (regcache_cooked_read_ftype): Define.
7351 (regcache_save, regcache_restore): Add a cooked_read parameter.
7352 * regcache.c (regcache_save, regcache_restore): Update.
7353 (do_cooked_read): New function.
7354 (regcache_cpy): Pass do_cooked_read to regcache_save and
7355 regcache_restore.
7356
8bedc050
AC
73572003-03-10 Andrew Cagney <cagney@redhat.com>
7358
7359 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7360 * gdbarch.h, gdbarch.c: Re-generate.
7361 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7362 * x86-64-tdep.h: Update.
7363 * x86-64-tdep.c (x86_64_init_abi): Update.
7364 * v850-tdep.c (v850_gdbarch_init): Update.
7365 * sparc-tdep.c (sparc_gdbarch_init): Update.
7366 * sh-tdep.c (sh_gdbarch_init): Update.
7367 * s390-tdep.c (s390_gdbarch_init): Update.
7368 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7369 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7370 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7371 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7372 * mips-tdep.c (mips_gdbarch_init): Update.
7373 * mcore-tdep.c (mcore_gdbarch_init): Update.
7374 * m68k-tdep.c (m68k_gdbarch_init): Update.
7375 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7376 * ia64-tdep.c (ia64_gdbarch_init): Update.
7377 * i386-tdep.c (i386_gdbarch_init): Update.
7378 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7379 * hppa-tdep.c (hppa_gdbarch_init): Update.
7380 * h8300-tdep.c (h8300_gdbarch_init): Update.
7381 * frv-tdep.c (frv_gdbarch_init): Update.
7382 * cris-tdep.c (cris_gdbarch_init): Update.
7383 * avr-tdep.c (avr_gdbarch_init): Update.
7384 * arm-tdep.c (arm_gdbarch_init): Update.
7385 * alpha-tdep.c (alpha_gdbarch_init): Update.
7386 * sh-tdep.c (sh_init_extra_frame_info): Update.
7387 (sh64_init_extra_frame_info): Update.
7388 * ns32knbsd-nat.c (frame_num_args): Update.
7389 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7390 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7391 (xstormy16_frame_chain_valid): Update.
7392 * vax-tdep.c (vax_saved_pc_after_call): Update.
7393 * v850-tdep.c (v850_frame_chain): Update.
7394 (v850_pop_frame): Update.
7395 (v850_init_extra_frame_info): Update.
7396 * sparc-tdep.c (setup_arbitrary_frame): Update.
7397 * ns32k-tdep.c (umax_frame_num_args): Update.
7398 * s390-tdep.c (s390_pop_frame_regular): Update.
7399 * mn10300-tdep.c (mn10300_frame_chain): Update.
7400 (mn10300_pop_frame_regular): Update.
7401 (mn10300_init_extra_frame_info): Update.
7402 * mips-tdep.c (mips_init_frame_pc_first): Update.
7403 (mips_frame_chain): Update.
7404 (mips_pop_frame): Update.
7405 * mcore-tdep.c (mcore_frame_chain): Update.
7406 (mcore_pop_frame): Update.
7407 (mcore_init_extra_frame_info): Update.
7408 * arch-utils.c (init_frame_pc_default): Update.
7409 * m68k-tdep.c (isi_frame_num_args): Update.
7410 (delta68_frame_num_args): Update.
7411 (news_frame_num_args): Update.
7412 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7413 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7414 (alpha_frame_chain): Update.
7415 (alpha_pop_frame): Update.
7416 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7417 (hppa_init_extra_frame_info): Update.
7418 (hppa_frame_chain): Update.
7419 (hppa_frame_chain_valid): Update.
7420 * cris-tdep.c (cris_init_extra_frame_info): Update.
7421 * avr-tdep.c (avr_init_extra_frame_info): Update.
7422 * arm-tdep.c (arm_frame_chain_valid): Update.
7423 (arm_init_extra_frame_info): Update.
7424 (arm_pop_frame): Update.
7425 * frame.c (frame_pc_unwind): Update.
7426 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7427 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7428 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7429 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7430 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7431 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 7432
12cc2063
AC
74332003-03-10 Andrew Cagney <cagney@redhat.com>
7434
7435 * gdbarch.sh (gdbarch_unwind_pc): New method.
7436 * gdbarch.h, gdbarch.c: Regenerate.
7437 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
7438 but use read_pc and FRAME_SAVED_PC as fall backs.
7439 (frame_saved_regs_pc_unwind): Delete function.
7440 (trad_frame_unwinder): Update.
7441 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
7442 (struct frame_unwind): Update.
7443 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
7444 (dummy_frame_unwind): Update.
7445 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
7446 (sentinel_frame_unwinder): Update.
7447 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
7448 (d10v_frame_unwind): Update.
7449 (d10v_unwind_pc): New function.
7450 (d10v_gdbarch_init): Set unwind_pc.
7451
ef840a37
AC
74522003-03-10 Andrew Cagney <cagney@redhat.com>
7453
a2ce2e56
AC
7454 * gdbarch.h: Re-generate.
7455
ef840a37
AC
7456 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
7457 PC.
7458 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
7459 the PC register.
7460
08f3424b
MK
74612003-03-08 Mark Kettenis <kettenis@gnu.org>
7462
7463 * gdbarch.sh (save_dummy_frame_tos): Add comment.
7464
1248ede2
AC
74652003-03-08 Andrew Cagney <cagney@redhat.com>
7466
7467 * cli-out.c: Update copyright.
7468 (cli_out_data): Define typedef. Use instead of ui_out_data.
7469
f49bacc8
AC
74702003-03-08 Andrew Cagney <cagney@redhat.com>
7471
7472 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
7473 the result.
7474
9b05f993
AC
74752003-03-07 Andrew Cagney <cagney@redhat.com>
7476
7477 * gdbarch.sh: Don't generate two macro definitions when an
7478 undefined macro taking no arguments.
7479 * gdbarch.h: Regenerate.
8ffd9b1b 7480
166f4c7b
ML
74812002-03-07 Michal Ludvig <mludvig@suse.cz>
7482
7483 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
7484 (x86_64_unwind_dummy_id): New functions.
7485 (x86_64_init_abi): Register these two new functions.
7486
6d686a84
ML
74872003-03-07 Michal Ludvig <mludvig@suse.cz>
7488
7489 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 7490 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
7491 separate function.
7492 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
7493
6314f104
AC
74942003-03-05 Andrew Cagney <cagney@redhat.com>
7495
7496 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
7497 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
7498 * frame.c (get_prev_frame): Restructure the frame ID unwind code
7499 to use unwind_dummy_id when a dummy frame.
7500 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
7501 predicate.
7502 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 7503
ceea5145
AC
75042003-03-05 Andrew Cagney <cagney@redhat.com>
7505
7506 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
7507 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
7508 Do not use d10v_read_sp or d10v_read_fp when obtaining register
7509 values.
7510
0d843116
AC
75112003-03-05 Andrew Cagney <cagney@redhat.com>
7512
7513 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
7514 (struct d10v_unwind_cache): Delete field "frameless". Replace
7515 "next_addr" with "sp_offset". Add "r11_offset".
7516 (d10v_frame_unwind_cache): Update.
7517 (prologue_find_regs): Update. When "mv r11, sp", save the
7518 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
7519 RN was saved in r11_offset.
7520
b2579786
AC
75212003-03-05 Andrew Cagney <cagney@redhat.com>
7522
7523 * frame.c (deprecated_update_frame_pc_hack): Also update the the
7524 cached PC value in the next frame.
7525
218e5956
AC
75262003-03-05 Andrew Cagney <cagney@redhat.com>
7527
7528 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
7529 "id_unwind_cache" with "id".
7530 (frame_id_unwind): Delete declaration.
7531 * frame.c (frame_id_unwind): Delete function.
7532 (get_prev_frame): Call the frame id unwind method directly. Store
7533 the returned next frame's ID value in NEXT_FRAME. Note that there
7534 is a problem with the wrong unwind ID being called with the wrong
7535 unwind cache.
7536
ed363b1b
DJ
75372003-03-05 Daniel Jacobowitz <drow@mvista.com>
7538
7539 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
7540
fe1f4a5e
DJ
75412003-03-05 James Ingham <jingham@apple.com>
7542 Daniel Jacobowitz <drow@mvista.com>
7543
7544 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
7545 (auto_cp_abi): New variable.
7546 (current_cp_abi, num_cp_abis): Make static.
7547 (CP_ABI_MAX): Define.
7548 (cp_abis): Turn into an array.
7549 (value_virtual_fn_field): Fix formatting.
7550 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
7551 takes a pointer.
7552 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
7553 (list_cp_abis, _initialize_cp_abi): New functions.
7554 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
7555 declarations for cp_abis, num_cp_abis, current_cp_abi, and
7556 switch_to_cp_abi. Update prototype for register_cp_abi.
7557 * Makefile.in (cp-abi.o): Update dependencies.
7558 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
7559 instead of switch_to_cp_abi.
7560 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
7561 register_cp_abi.
7562 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
7563 register_cp_abi.
7564 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
7565
e4adbba9
DJ
75662003-03-05 Daniel Jacobowitz <drow@mvista.com>
7567
7568 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
7569 * dwarf2loc.c: Include "regcache.h".
7570 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
7571 register_size.
7572 * Makefile.in (dwarf2loc.o): Update dependencies.
7573
91ccbfc1
TR
75742003-03-04 Theodore A. Roth <troth@openavr.org>
7575
7576 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
7577 number of io registers reported by remote target is not a multiple of
7578 step.
7579
3d4e8fd2
DC
75802003-03-04 David Carlton <carlton@math.stanford.edu>
7581
7582 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
7583 (lookup_symbol_aux_psymtabs): Update call to
7584 lookup_partial_symbol.
7585 (lookup_transparent_type, find_main_psymtab)
7586 (make_symbol_overload_list): Ditto.
7587
ed42d87b
KH
75882003-03-04 Kazu Hirata <kazu@cs.umass.edu>
7589
7590 * MAINTAINERS (Write after approval): Update my email address.
7591
a0ed5532
AC
75922003-03-03 Andrew Cagney <cagney@redhat.com>
7593
7594 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
7595 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
7596 predicate. Replace MAX_REGISTER_RAW_SIZE.
7597 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
7598 MAX_REGISTER_VIRTUAL_SIZE.
7599 * regcache.c (legacy_max_register_raw_size): New function.
7600 (legacy_max_register_virtual_size): New function.
7601 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
7602 (MAX_REGISTER_RAW_SIZE): Define.
7603 (legacy_max_register_raw_size): Declare.
7604 (legacy_max_register_virtual_size): Declare.
7605 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7606 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
7607 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7608 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7609 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7610 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7611 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7612 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7613 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7614 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7615 * vax-tdep.c (vax_gdbarch_init): Update.
7616 * v850-tdep.c (v850_gdbarch_init): Update.
7617 * sparc-tdep.c (sparc_gdbarch_init): Update.
7618 * sh-tdep.c (sh_gdbarch_init): Update.
7619 * s390-tdep.c (s390_gdbarch_init): Update.
7620 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7621 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7622 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7623 * mips-tdep.c (mips_gdbarch_init): Update.
7624 * mcore-tdep.c (mcore_gdbarch_init): Update.
7625 * m68k-tdep.c (m68k_gdbarch_init): Update.
7626 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7627 * ia64-tdep.c (ia64_gdbarch_init): Update.
7628 * i386-tdep.c (i386_gdbarch_init): Update.
7629 * hppa-tdep.c (hppa_gdbarch_init): Update.
7630 * h8300-tdep.c (h8300_gdbarch_init): Update.
7631 * frv-tdep.c (frv_gdbarch_init): Update.
7632 * cris-tdep.c (cris_gdbarch_init): Update.
7633 * avr-tdep.c (avr_gdbarch_init): Update.
7634 * arm-tdep.c (arm_gdbarch_init): Update.
7635 * alpha-tdep.c (alpha_gdbarch_init): Update.
7636 * d10v-tdep.c (d10v_gdbarch_init): Do not set
7637 max_register_raw_size or max_register_virtual_size.
7638
8e437497
DC
76392003-03-03 David Carlton <carlton@math.stanford.edu>
7640
7641 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
7642 SYMBOL_MATCHES_NAME, add comment.
7643 (SYMBOL_MATCHES_NATURAL_NAME): New.
7644 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
7645 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
7646 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
7647 * symtab.c (lookup_partial_symbol): Use
7648 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
7649 unhelpful comment.
7650 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
7651 SYMBOL_MATCHES_NAME.
7652 Fix for PR c++/33.
7653
25120b0d
DC
76542003-03-03 David Carlton <carlton@math.stanford.edu>
7655
7656 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
7657 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
7658 by regexp matching against SYMBOL_NATURAL_NAME.
7659
78a11fb4
DC
76602003-03-03 David Carlton <carlton@math.stanford.edu>
7661
7662 * linespec.c (find_method): Extract code into collect_methods.
7663 (collect_methods): New.
7664
645dd519
MK
76652003-03-02 Mark Kettenis <kettenis@gnu.org>
7666
b4700d91
MK
7667 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
7668 get_frame_base.
7669
645dd519
MK
7670 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
7671 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7672
0aa7e1aa
SC
76732003-03-02 Stephane Carrez <stcarrez@nerim.fr>
7674
8ffd9b1b 7675 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
7676 and not regnum when summing the size of all registers up to regnum.
7677
f30ee0bc
AC
76782003-03-01 Andrew Cagney <cagney@redhat.com>
7679
7680 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
7681 FRAME_INIT_SAVED_REGS.
7682 * gdbarch.h, gdbarch.c: Regenerate.
7683 * stack.c (frame_info): Update.
7684 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
7685 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
7686 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
7687 * ns32k-tdep.c (ns32k_pop_frame): Update.
7688 * mips-tdep.c (mips_pop_frame): Update.
7689 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
7690 * ia64-tdep.c (ia64_frame_chain): Update.
7691 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
7692 (ia64_frameless_function_invocation): Update.
7693 (ia64_init_extra_frame_info): Update.
7694 (ia64_pop_frame_regular): Update.
7695 * frame.h (struct frame_info): Update comment.
7696 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
7697 * frame.c (frame_saved_regs_register_unwind): Update.
7698 (frame_saved_regs_register_unwind): Update.
7699 (deprecated_generic_get_saved_register): Update.
7700 * cris-tdep.c: Update comment.
7701 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
7702 Rename macro.
7703 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7704 * x86-64-tdep.c (x86_64_init_abi): Update.
7705 * vax-tdep.c (vax_gdbarch_init): Update.
7706 * v850-tdep.c (v850_gdbarch_init): Update.
7707 * sparc-tdep.c (sparc_gdbarch_init): Update.
7708 * sh-tdep.c (sh_gdbarch_init): Update.
7709 * s390-tdep.c (s390_gdbarch_init): Update.
7710 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7711 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7712 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7713 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7714 * mips-tdep.c (mips_gdbarch_init): Update.
7715 * mcore-tdep.c (mcore_gdbarch_init): Update.
7716 * m68k-tdep.c (m68k_gdbarch_init): Update.
7717 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7718 * ia64-tdep.c (ia64_gdbarch_init): Update.
7719 * i386-tdep.c (i386_gdbarch_init): Update.
7720 * frv-tdep.c (frv_gdbarch_init): Update.
7721 * avr-tdep.c (avr_gdbarch_init): Update.
7722 * arm-tdep.c (arm_gdbarch_init): Update.
7723 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 7724
42fa7c0f
AC
77252003-03-01 Andrew Cagney <cagney@redhat.com>
7726
7727 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
7728 option enum and switch. When no windows, set the interpreter to
7729 INTERP_CONSOLE.
8ffd9b1b 7730
49c7e338
AC
77312003-03-01 Andrew Cagney <cagney@redhat.com>
7732
7733 * main.c (captured_main): Replace magic option characters with an
7734 enum.
7735
e9582e71
AC
77362003-03-01 Andrew Cagney <cagney@redhat.com>
7737
7738 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
7739 INIT_EXTRA_FRAME_INFO.
7740 * gdbarch.h, gdbarch.c: Regenerate.
7741 * arm-tdep.c: Update comments.
7742 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
7743 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
7744 * frame.h, avr-tdep.c: Ditto.
7745 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
7746 (create_new_frame, legacy_get_prev_frame): Ditto.
7747 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7748 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7749 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
7750 deprecated_init_extra_frame_info instead of init_extra_frame_info.
7751 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7752 * v850-tdep.c (v850_gdbarch_init): Ditto.
7753 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7754 * sh-tdep.c (sh_gdbarch_init): Ditto.
7755 * s390-tdep.c (s390_gdbarch_init): Ditto.
7756 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
7757 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7758 * mips-tdep.c (mips_gdbarch_init): Ditto.
7759 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7760 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7761 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7762 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
7763 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7764 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7765 * frv-tdep.c (frv_gdbarch_init): Ditto.
7766 * cris-tdep.c (cris_gdbarch_init): Ditto.
7767 * avr-tdep.c (avr_gdbarch_init): Ditto.
7768 * arm-tdep.c (arm_gdbarch_init): Ditto.
7769 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7770 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7771
35cac7cf
AC
77722003-03-01 Andrew Cagney <cagney@redhat.com>
7773
7774 * gdbarch.sh (register_type): New function with predicate.
7775 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
7776 * gdbarch.h, gdbarch.c: Re-generate.
7777 * arch-utils.c (generic_register_byte): Use generic_register_size.
7778 (generic_register_size): When available, use
7779 gdbarch_register_type.
7780 * regcache.c (init_regcache_descr): When available, initialize the
7781 register type array using gdbarch_register_type. If the
7782 architecture supplies gdbarch_register_type, do not use the legacy
7783 regcache layout.
7784 * d10v-tdep.c (d10v_register_type): Replace
7785 d10v_register_virtual_type.
7786 (d10v_gdbarch_init): Set register_type instead of
7787 register_virtual_type.
7788
7b83296f
AC
77892003-03-01 Andrew Cagney <cagney@redhat.com>
7790
7791 * Makefile.in (ax-gdb.o): Update dependencies.
7792 * ax-gdb.c: Include "regcache.h".
7793 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
7794 * findvar.c (value_of_register): Ditto.
7795 * infcmd.c (default_print_registers_info): Ditto.
7796
eadc1c87
MK
77972003-03-01 Mark Kettenis <kettenis@gnu.org>
7798
7799 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
7800 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7801
14143612
MK
78022003-03-01 Mark Kettenis <kettenis@gnu.org>
7803
7804 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
7805 of STREQ.
7806
a55cc764
DJ
78072003-02-28 Daniel Jacobowitz <drow@mvista.com>
7808
7809 * Makefile.in (dwarf2loc.o): Update dependencies.
7810 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
7811 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
7812 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
7813 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
7814 (locexpr_tracepoint_var_ref): New function.
7815 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
7816
08a617da
AC
78172003-02-28 Andrew Cagney <cagney@redhat.com>
7818
7819 * regcache.c (register_size): New function.
7820 * regcache.h (register_size): Declare
7821 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
7822 max_register_size instead of MAX_REGISTER_RAW_SIZE.
7823
4224873a
DC
78242003-02-28 David Carlton <carlton@math.stanford.edu>
7825
7826 * linespec.c (decode_compound): Extract code into find_method.
7827 (find_method): New.
7828
ccdc5d7f
JB
78292003-02-28 J. Brobecker <brobecker@gnat.com>
7830
7831 * Makefile.in: Add rules to build and link in observer.o.
7832
974e8ced
JB
78332003-02-27 J. Brobecker <brobecker@gnat.com>
7834
7835 * observer.c: Minor comments edits.
7836
7a28f973
JB
78372003-02-27 J. Brobecker <brobecker@gnat.com>
7838
7839 * observer.h, observer.c: New file.
7840
27cddce2
AC
78412003-02-27 Andrew Cagney <cagney@redhat.com>
7842
7843 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
7844
b94a41a1
SC
78452003-02-27 Stephane Carrez <stcarrez@nerim.fr>
7846
7847 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
7848 (M6812_OP_STS_EXT): Likewise.
7849 (m6811_prologue): Use the above to recognize prologue.
7850 (m6812_prologue): Likewise.
7851
c8be8951
DC
78522003-02-27 David Carlton <carlton@math.stanford.edu>
7853
7854 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
7855 SYMBOL_PRINT_NAME.
7856 (compare_psymbols): Ditto.
7857 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
7858
d05bb1fc
MS
78592003-02-27 Michael Snyder <msnyder@redhat.com>
7860
4e845cd3
MS
7861 * f-lang.c (build_fortran_types): New function.
7862 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
7863 * doublest.c (extract_floating): Fix warning text.
7864
f3824013
AC
78652003-02-27 Andrew Cagney <cagney@redhat.com>
7866
7867 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
7868 predicate. Replaces PUSH_DUMMY_FRAME.
7869 * gdbarch.h, gdbarch.c: Regnerate.
7870 * valops.c (hand_function_call): Update. Call
7871 generic_push_dummy_frame directly.
7872 * vax-tdep.c (vax_gdbarch_init): Update.
7873 * sparc-tdep.c (sparc_gdbarch_init): Update.
7874 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7875 * m68k-tdep.c (m68k_gdbarch_init): Update.
7876 * hppa-tdep.c (hppa_gdbarch_init): Update.
7877 * alpha-tdep.c (alpha_gdbarch_init): Update.
7878 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7879 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7880 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
7881 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
7882 push_dummy_frame to generic_push_dummy_frame.
7883 * v850-tdep.c (v850_gdbarch_init): Ditto.
7884 * sh-tdep.c (sh_gdbarch_init): Ditto.
7885 * s390-tdep.c (s390_gdbarch_init): Ditto.
7886 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7887 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7888 * mips-tdep.c (mips_gdbarch_init): Ditto.
7889 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7890 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7891 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7892 * i386-tdep.c (i386_gdbarch_init): Ditto.
7893 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7894 * frv-tdep.c (frv_gdbarch_init): Ditto.
7895 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7896 * cris-tdep.c (cris_gdbarch_init): Ditto.
7897 * avr-tdep.c (avr_gdbarch_init): Ditto.
7898 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 7899
ad188201
KB
79002003-02-26 Kevin Buettner <kevinb@redhat.com>
7901
7902 * mips-tdep.c (show_mips_abi): New function.
7903 (_initialize_mips_tdep): Use show_mips_abi() to implement the
7904 command ``show mips abi''.
7905
6b37567a 79062003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7907
6b37567a 7908 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 7909 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
7910 more sline entries have been seen for the function.
7911
d3e0a5bf
MC
79122003-02-26 Michael Chastain <mec@shout.net>
7913
7914 * configure: Regenerate with autoconf 000227.
7915
18972eea
MC
79162003-02-26 Michael Chastain <mec@shout.net>
7917
7918 Close PR build/660.
7919 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
7920 for old libc5/glibc.
7921 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
7922
0bbde931
KW
79232003-02-26 Kris Warkentin <kewarken@qnx.com>
7924
7925 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
7926 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
7927
27ca5dad
MC
79282003-02-26 Michael Chastain <mec@shout.net>
7929
7930 * configure.in: New variable HAVE_UINTPTR_T.
7931 * configure, config.in: Regenerated.
7932
6f88d630
DJ
79332003-02-26 Daniel Jacobowitz <drow@mvista.com>
7934
7935 Fix PR build/1097.
7936 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
7937
b14185ce
AC
79382003-02-25 Andrew Cagney <cagney@redhat.com>
7939
7940 * frame.c (get_prev_frame): Add comment on check for
7941 inside_entry_func. Only check for inside_entry_file when not a
7942 dummy and not a sentinel. Check that the new frame is not inner
7943 to the old frame.
7944
ac2bd0a9
AC
79452003-02-25 Andrew Cagney <cagney@redhat.com>
7946
7947 * frame.c (frame_debug): New variable.
7948 (_initialize_frame): Add "set/show debug frame" command.
7949 (get_prev_frame): When frame_debug, print reason why unwind
7950 failed.
7951
b18a0fd2
MC
79522003-02-25 Michael Chastain <mec@shout.net>
7953
7954 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
7955 to avoid uintptr_t definition problems.
7956
22abf04a
DC
79572003-02-25 David Carlton <carlton@math.stanford.edu>
7958
7959 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
7960 (SYMBOL_LINKAGE_NAME): Ditto.
7961 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
7962 SYMBOL_LINKAGE_NAME.
7963 (struct general_symbol_info): Expand comment.
7964 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
7965 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
7966 (SYMBOL_MATCHES_REGEXP): Ditto.
7967 * symtab.c (symbol_natural_name): New function.
7968 * objfiles.h: Replace all uses of SYMBOL_NAME by
7969 DEPRECATED_SYMBOL_NAME.
7970 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
7971 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
7972 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
7973 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
7974 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
7975 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
7976 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
7977 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
7978 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
7979 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
7980 * ada-exp.y: Ditto.
7981 * ada-exp.y: Update copyright.
7982 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
7983 * cp-valprint.c: Ditto.
7984
1a5848f6
JJ
79852003-02-25 Jeff Johnston <jjohnstn@redhat.com>
7986
7987 * infptrace.c (detach): Do not flag error if ptrace detach fails
7988 and errno is set to ESRCH.
7989
7343d46a
AC
79902003-02-24 Andrew Cagney <cagney@redhat.com>
7991
7992 * infptrace.c (udot_info): Change type of udot_off to long. Use
7993 paddr when printing udot_off's value.
7994
49fa1dc2
DC
79952003-02-24 David Carlton <carlton@math.stanford.edu>
7996
7997 * symtab.c (make_symbol_overload_list): Only read in partial
7998 symtabs containing a matching partial symbol.
7999
0fe19209
DC
80002003-02-24 David Carlton <carlton@math.stanford.edu>
8001
8002 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8003 do the comparison, not strcmp.
8004 * symfile.c (compare_psymbols): Ditto.
8005 * defs.h: Declare strcmp_iw_ordered.
8006 * utils.c (strcmp_iw_ordered): New function.
8007
8e3ee7b5
JB
80082003-02-24 Jim Blandy <jimb@redhat.com>
8009
8010 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8011 support, shared libs): Remove my name from here, to better reflect
8012 reality.
8013
7df1a324
KW
80142003-02-24 Kris Warkentin <kewarken@qnx.com>
8015
8016 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8017 (target_ops): Add to_have_continuable_watchpoint.
8018 * target.c (update_current_target): Add INHERIT line for
8019 to_have_continuable_watchpoint.
8020 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8021 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8022 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8023 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8024
d1c76907
EZ
80252003-02-24 Elena Zannoni <ezannoni@redhat.com>
8026
8027 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8028 maintainership.
8029
2610b0bf
KW
80302003-02-24 Kris Warkentin <kewarken@qnx.com>
8031
f46169db
KW
8032 * solib.c (solib_open): Call target defined search function after
8033 failing with solib-search-path.
8034 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8035 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 8036
9a3c34fe
KW
80372003-02-24 Kris Warkentin <kewarken@qnx.com>
8038
f46169db 8039 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 8040
2417dd25
SC
80412003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8042
8043 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8044
b631436b
SC
80452003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8046
8047 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8048 (m68hc11_add_reggroups): New function.
8049 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8050 (m68hc11_gdbarch_init): Install the reggroups.
8051 (_initialize_m68hc11_tdep): Initialize them.
8052
0aa8c1e4
JW
80532003-02-21 James E Wilson <wilson@tuliptree.org>
8054
8055 * MAINTAINERS: Update my email address.
8056
50ceaba5
DC
80572003-02-21 David Carlton <carlton@math.stanford.edu>
8058
8059 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8060
4c2df51b
DJ
80612003-02-21 Daniel Jacobowitz <drow@mvista.com>
8062
8063 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8064 * symtab.h: Add opaque declarations of struct axs_value and
8065 struct agent_expr.
8066 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8067 (struct location_funcs): New type.
8068 (struct symbol): Add "loc" to aux_value.
8069 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8070 * dwarf2read.c: Include "dwarf2expr.h".
8071 (dwarf2_symbol_mark_computed): New function.
8072 (read_func_scope): Use it.
8073 (var_decode_location): New function.
8074 (new_symbol): Use it.
8075 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8076
8077 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8078 (dwarf2expr_h, dwarf2loc_h): New variables.
8079 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8080 (dwarf2expr.o, dwarf2loc.o): New rules.
8081 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8082 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8083 LOC_COMPUTED_ARG.
8084 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8085 * m2-exp.y (yylex): Likewise.
8086 * printcmd.c (address_info, print_frame_args): Likewise.
8087 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8088 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8089 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8090 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8091 * symtab.c (lookup_block_symbol): Likewise.
8092
5784d15e
AF
80932003-02-20 Adam Fedor <fedor@gnu.org>
8094
8095 * symtab.h: Remove objc_specific struct
8096 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8097 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8098 Have language_objc use cplus_specific struct.
8099
d4cad8db
TT
81002003-02-20 Tom Tromey <tromey@redhat.com>
8101
8102 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8103 TYPE_NAME, when printing a String value. PR java/1075.
8104
2f9a90b4
AF
81052003-02-20 Adam Fedor <fedor@gnu.org>
8106
d38074a8 8107 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 8108 * objc-lang.c (find_methods): Make static.
2f9a90b4 8109
6f17862b
CF
81102003-02-20 Christopher Faylor <cgf@redhat.com>
8111
8112 * win32-nat.c (get_image_name): Check return value from
8113 ReadProcessMemory.
8114 (child_xfer_memory): Ditto.
8115
715d1656
AO
81162003-02-20 Alexandre Oliva <aoliva@redhat.com>
8117
8118 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8119 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8120 '${exec_prefix}' (in addition to the expansion thereof) as
8121 relocatable.
8122 * configure: Rebuilt.
8123
b1262a02
DC
81242003-02-20 David Carlton <carlton@math.stanford.edu>
8125
8126 * symtab.c (search_symbols): Revert the search_symbols part of my
8127 2002-12-23 patch. Add comment.
8128
7134143f
DJ
81292002-02-20 Daniel Jacobowitz <drow@mvista.com>
8130
8131 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8132 * dbxread.c (elfstab_build_psymtabs): Don't call
8133 install_minimal_symbols.
8134 (stabsect_build_psymtabs): Likewise.
8135 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8136 earlier.
8137 * somread.c (som_symfile_read): Call install_minimal_symbols
8138 and do_cleanups earlier.
8139 * nlmread.c (nlm_symfile_read): Likewise.
8140 * mdebugread.c (elfmdebug_build_psymtabs): Call
8141 install_minimal_symbols and make appropriate cleanups.
8142
cf466558
KB
81432003-02-20 Kevin Buettner <kevinb@redhat.com>
8144
8145 * solib.c (reload_shared_libraries): New function.
8146 (_initialize_solib): Add callbacks for ``set solib-search-path''
8147 and ``set solib-absolute-prefix''.
8148
de5ad195
DC
81492003-02-20 David Carlton <carlton@math.stanford.edu>
8150
8151 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8152 expand comment.
8153 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8154 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8155 * ada-typeprint.c (ada_typedef_print): Ditto.
8156 * ax-gdb.c (gen_var_ref): Ditto.
8157 * breakpoint.c (print_one_breakpoint): Ditto.
8158 * buildsym.c (finish_block): Ditto.
8159 * c-valprint.c (c_val_print): Ditto.
8160 * expprint.c (print_subexp): Ditto.
8161 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
8162 * infcmd.c (jump_command): Ditto.
8163 * linespec.c (decode_line_2, decode_compound): Ditto.
8164 * maint.c (maintenance_translate_address): Ditto.
8165 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
8166 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8167 Ditto.
8ffd9b1b
AJ
8168 * p-valprint.c (pascal_val_print): Ditto.
8169 * stabsread.c (define_symbol): Ditto.
de5ad195 8170 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
8171 (print_frame_arg_vars, return_command): Ditto.
8172 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8173 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
8174 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8175 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
8176 (rbreak_command): Ditto.
8177 * tracepoint.c (tracepoints_info): Ditto.
8178 * typeprint.c (typedef_print): Ditto.
8179 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
8180 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8181 * ada-typeprint.c: Update Copyright.
8182 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8183 * tracepoint.c, cli/cli-cmds.c: Ditto.
8184
f796e4be
KB
81852003-02-20 Kevin Buettner <kevinb@redhat.com>
8186
8187 * frame.c (generic_unwind_get_saved_register): Make non-static.
8188 * frame.h (generic_unwind_get_saved_register): Declare.
8189 * mips-tdep.c (read_next_frame_reg): Fetch register from
8190 current regcache when frame is NULL.
8191 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8192 that must be NULL.
8193 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8194 instead of frame_register_unwind().
8195
836cc9f4
AC
81962003-02-20 Andrew Cagney <ac131313@redhat.com>
8197
8198 * remote-sim.c (gdbsim_insert_breakpoint)
8199 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8200 code.
8201
501eef12
AC
82022003-02-20 Andrew Cagney <ac131313@redhat.com>
8203
8204 * remote.c (_initialize_remote): Add commands "set/show remote
8205 hardware-watchpoint-limit" and "set/show remote
8206 hardware-breakpoint-limit".
8207 (remote_hw_watchpoint_limit): Initialize to -1.
8208 (remote_hw_breakpoint_limit): Ditto.
8209 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8210
1b6bc7e0
CF
82112003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8212
8213 * coff-pe-read.c: New file - support reading of minimal symbols from a
8214 portable executable using the export table.
8215 * coff-pe-read.h: New file.
8216 * coffread.c: Include coff-pe-read.h.
8217 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8218 debugging symbols found.
8219 * Makefile.in (SFILES): Add coff-pe-read.o.
8220 (coff_pe_read_h): Define.
8221 (COMMON_OBS): Add coff-pe-read.o.
8222 (coffread.o): Add coff_pe_read_h dependency.
8223 (coff-pe-read.o): New target.
8224
fe898f56
DC
82252003-02-19 David Carlton <carlton@math.stanford.edu>
8226
8227 * Makefile.in (SFILES): Add block.c.
8228 (block_h): New.
8229 (COMMON_OBS): Add block.o.
8230 (block.o): New.
8231 (x86-64-tdep.o): Add $(block_h).
8232 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8233 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8234 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8235 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8236 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8237 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8238 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8239 * value.h: Add opaque declaration for struct block.
8240 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8241 * ada-lang.h: Ditto.
8242 * x86-64-tdep.c: #include "block.h"
8243 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8244 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8245 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8246 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8247 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8248 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8249 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8250 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8251 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8252 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8253 * symtab.c (block_function): Ditto.
8254 (contained_in): Ditto.
8255 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8256 block.h. Add opaque declaration for struct block.
8257 * symtab.h: Move block_function and contained_in declarations to
8258 block.h. Add opaque declarations for struct block, struct
8259 blockvector.
8260 (struct block): Move to block.h.
8261 (struct blockvector): Ditto.
8262 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8263 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8264 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8265 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8266 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8267 Ditto.
8268 * block.c: New file.
8269 * block.h: New file.
8270
173345b5
TR
82712003-02-19 Theodore A. Roth <troth@openavr.org>
8272
8273 * avr-tdep.c (avr_extract_return_value): Remove function.
8274 (avr_store_return_value): Remove function.
8275 (avr_extract_struct_value_address): Remove function.
8276 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8277
338ef23d
AC
82782003-02-19 Andrew Cagney <ac131313@redhat.com>
8279
8280 * rs6000-tdep.c: Include "gdb_assert.h".
8281 (registers_e500): Add "acc" and "spefscr".
8282 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8283 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8284 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8285 really is "r0".
8286 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8287
5412f5f3
KS
82882003-02-18 Keith Seitz <keiths@redhat.com>
8289
8290 * Makefile.in: Add gdbtk-interps.c.
8291
881324eb
KB
82922003-02-18 Kevin Buettner <kevinb@redhat.com>
8293
8294 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8295 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8296
6a2f5abf
AC
82972003-02-18 Andrew Cagney <cagney@redhat.com>
8298
8299 * symtab.h (struct objfile): Add opaque declaration.
8300
54c7009d
EZ
83012003-02-18 Elena Zannoni <ezannoni@redhat.com>
8302
8303 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
8304 * dbxread.c (process_one_symbol): Use last_function_start rather
8305 than function_start_offset to find the real beginning of the
8306 current function. The latter is just the text section offset on
8307 some systems, the former is always the real function start.
54c7009d 8308
7ee6d7eb
AC
83092003-02-17 Andrew Cagney <cagney@redhat.com>
8310
8311 * configure.in: Revert ${target} != ${host}.
8312
2846da9b
AC
83132003-02-17 Andrew Cagney <ac131313@redhat.com>
8314
8315 * configure.in (Makefile): Use the test ${target} != ${host},
8316 instead of the absence of the "nm.h" file, to determine of the
8317 configuration non-native.
8318 * configure: Regenerate.
8ffd9b1b 8319
3b27aeea
EZ
83202003-02-14 Elena Zannoni <ezannoni@redhat.com>
8321
fbe586ae 8322 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
8323
8324 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8325 conditionalize tui_active test.
8326 (lookup_cmd_1): Ditto.
8327
b0b1c2c0
MK
83282003-02-14 Mark Kettenis <kettenis@gnu.org>
8329
8330 * configure.in: Add check for _etext.
8331 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8332 available.
8333 * config.in, configure: regenerated.
8334
8f05cde5
DJ
83352003-02-14 Daniel Jacobowitz <drow@mvista.com>
8336
8337 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8338
021e7609
AC
83392003-02-14 Andrew Cagney <ac131313@redhat.com>
8340
8341 * main.c (tui_version): Delete variable.
8342 (captured_main): When --tui, set interpreter_p to "tui" instead of
8343 enabling tui_version.
8344 * printcmd.c (display_command) [TUI]: Test tui_active instead of
8345 tui_version.
8346 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8347 * cli/cli-cmds.c (disassemble_command): Ditto.
8348 * defs.h (tui_version): Delete declaration.
8349 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8350 (tui-interp.o): Add rules.
8351 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8352
e325dcec
CF
83532003-02-14 Christopher Faylor <cgf@redhat.com>
8354
36ffb041 8355 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
8356 just-loaded dll.
8357
c4f90d87
JM
83582003-02-12 Jason Molenda (jmolenda@apple.com)
8359
fbe586ae
RH
8360 * symmisc.c (print_objfile_statistics): Include information about
8361 the number of psymtabs and symtabs in each object file.
c4f90d87 8362
e46e5ccd
KS
83632003-02-13 Keith R Seitz <keiths@redhat.com>
8364
8365 * main.h (struct captured_main_args): Add interpreter_p.
8366 * main.c (captured_main): Initialize interpreter_p from context.
8367 * gdb.c (main): Set interpreter_p argument.
8368 * Makefile.in (gdb.o): Add dependency for interps.h.
8369
fe97fe9c
AC
83702003-02-12 Andrew Cagney <ac131313@redhat.com>
8371
8372 * event-top.c (cli_command_loop): Delete declaration.
8373 (_initialize_event_loop): Delete function setting event_loop_hook.
8374 * event-top.h (cli_command_loop): Declare. Update copyright.
8375 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8376 * interps.c (current_interp_command_loop): When event_loop_p, call
8377 cli_command_loop.
8378
1cdac4ef
AC
83792003-02-12 Andrew Cagney <ac131313@redhat.com>
8380
8381 * interps.h (interp_command_loop_ftype): Change return type to
8382 void.
8383
48037ead
ML
83842003-02-12 Michal Ludvig <mludvig@suse.cz>
8385
8386 * x86-64-tdep.c (x86_64_extract_return_value)
8387 (x86_64_store_return_value): Use regcache instead of regbuf.
8388 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8389 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8390
033afc63
AC
83912003-02-11 Andrew Cagney <ac131313@redhat.com>
8392
8393 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8394 * aclocal.m4: Regenerate.
8395 * configure: Regenerate.
8396
8397 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8398 TCL_LD_SEARCH_FLAGS.
8399
40d02bca
ML
84002003-02-10 Michal Ludvig <mludvig@suse.cz>
8401
8402 * dwarf2cfi.c: Reindented.
8403
11308a41
AC
84042003-02-09 Andrew Cagney <ac131313@redhat.com>
8405
8406 * interps.c (clear_interpreter_hooks): Convert function definition
8407 to ISO C.
8408
e1c1c0f6
DC
84092003-02-07 David Carlton <carlton@math.stanford.edu>
8410
8411 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8412
ab5d3da6
KB
84132003-02-07 Kevin Buettner <kevinb@redhat.com>
8414
8415 * gdbtypes.h (struct main_type): Move ``length'' field from here...
8416 (struct type): ...to here.
8417 (TYPE_LENGTH): Adjust to reflect different location of ``length''
8418 field.
8419 * gdbtypes.c (make_qualified_type): Set length on newly created type.
8420 (replace_type): Set length on all type variants for a given type.
8421
b8a92b82
AC
84222003-02-07 Andrew Cagney <ac131313@redhat.com>
8423
8424 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8425 <sys/stat.h>.
8426 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 8427
5cb316ef
AC
84282003-02-06 Andrew Cagney <ac131313@redhat.com>
8429
2555fe1a
AC
8430 * Makefile.in (symm-nat.o): Update dependencies.
8431 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8432 (lynx-nat.o, ia64-linux-nat.): Ditto.
8433 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
8434 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
8435 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
8436
44270758
AC
8437 * Makefile.in (inflow_h): Define.
8438 (procfs.o, inflow.o, procfs.o): Update dependencies.
8439 * inftarg.c (child_stop): Delete extern declaration of
8440 inferior_process_group. Include "inflow.h".
8441 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
8442 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
8443 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
8444 (our_process_group, inferior_process_group): Extern declarations.
8445
df8f7274
AC
8446 * procfs.c: Include "gdb_assert.h".
8447
5cb316ef
AC
8448 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8449 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
8450 * jv-typeprint.c (java_type_print_base): Ditto.
8451 * typeprint.c (typedef_print): Eliminate STREQ.
8452 * cli/cli-script.c (define_command, define_command): Ditto.
8453 * main.c (captured_main): Ditto.
8454 * values.c (lookup_internalvar): Ditto.
8455 * utils.c (safe_strerror, parse_escape): Eliminate assignment
8456 within `if' conditional.
8457 * linespec.c (decode_line_2): Ditto.
8458 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
8459 (bfd_openw_with_cleanup): Ditto.
8460
2a28ccea
MK
84612003-02-07 Mark Kettenis <kettenis@gnu.org>
8462
8463 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
8464 legacy_extract_return_value and store_return_value to
8465 legacy_return_value.
8466
786b8124
CF
84672003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
8468
8469 * win32-nat.c (get_relocated_section_addrs): New function. Find
8470 section load addresses for symbol handling in relocated DLLs.
8471 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
8472
b871e4ec
FF
84732003-02-05 Fred Fish <fnf@intrinsity.com>
8474
8475 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
8476 '=' and '!='.
8477 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
8478 with '&' and '=='.
8479 (angel_RDI_info): Ditto.
8480 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
8481 with '&' and '!='.
8482 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 8483
4389a95a 84842003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
8485 Keith Seitz <keiths@redhat.com>
8486 Elena Zannoni <ezannoni@redhat.com>
8487 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
8488
8489 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
8490 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
8491 (SUBDIR_MI_OBS): Add "mi-interp.o".
8492 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
8493 (SFILES): Add "interps.c".
8494 (COMMON_OBS): Add "interps.o".
8495 (interps_h, mi_main_h): Define.
8496 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
8497 (mi-main.o, main.o, event-top.o): Update dependencies.
8498 * cli/cli-interp.c: New file.
8499 * interps.h, interps.c: New files.
8500 * top.c: (gdb_init): Don't install the default interpreter, handed
8501 by captured_main.
8502 * main.c: Include "interps.h".
8503 (interpreter_p): Note that it should malloc'ed.
8504 (captured_command_loop): Call current_interp_command_loop.
8505 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
8506 xfree and xstrdup when updating interpreter_p. Install the
8507 default interpreter. Add hack to stop mi1's copyright notice
8508 being encoded.
8509 * event-top.h (gdb_setup_readline): Declare.
8510 (gdb_disable_readline): Declare.
8511 * event-top.c: Include "interps.h".
8512 (display_gdb_prompt): Call current_interp_display_prompt_p.
8513 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
8514 gdb_stdlog, and gdb_stdtarg.
8515 (_initialize_event_loop): Don't call gdb_setup_readline.
8516 * cli-out.c (cli_out_set_stream): New function.
8517 * cli-out.h (cli_out_set_stream): Declare.
8518
ff3b5810
MK
85192003-02-06 Mark Kettenis <kettenis@gnu.org>
8520
8521 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
8522 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
8523 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
8524 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
8525 config/i386/i386v42mp.mt: Removed.
8526
5b729aa5
MK
85272003-02-05 Mark Kettenis <kettenis@gnu.org>
8528
8529 * configure.tgt (*-*-solaris*): Set gdb_osabi to
8530 GDB_OSABI_SOLARIS.
8531
8cc15142
MC
85322003-02-05 Michael Chastain <mec@shout.net>
8533
8534 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
8535 2.12.1 and earlier versions.
8536
5aa5d4b9
AC
85372003-02-05 Andrew Cagney <ac131313@redhat.com>
8538
8539 Remove orphaned hosts, targets and files.
8540 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
8541 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
8542 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
8543 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
8544 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
8545 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
8546 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
8547 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
8548 * config/sparc/tm-sp64sim.h: Delete.
8549 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
8550 hosts.
8551 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
8552 mips*-dec-mach3* targets.
8553
b68767c1
MC
85542003-02-04 Michael Chastain <mec@shout.net>
8555
8556 * NEWS: Fix typo: sepcifying -> specifying.
8557
5ae7ca1d
MC
85582003-02-04 Michael Chastain <mec@shout.net>
8559
8560 * dwarfread.c: Add documentation on the state of dwarf-1,
8561 looking towards obsoletion.
8562
d08a4280
MC
85632003-02-03 Michael Chastain <mec@shout.net>
8564
8565 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
8566 gdb/testsuite/gdb.c++/pr-1023.exp.
8567
e9be73e4
AC
85682003-02-04 Andrew Cagney <ac131313@redhat.com>
8569
8570 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
8571 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
8572
8573 * utils.c (init_page_info): Delete reference to MPW in comments.
8574 * main.c (captured_main): Delete #ifdef MPW.
8575
05d57f6f
AC
85762003-02-04 Andrew Cagney <ac131313@redhat.com>
8577
8ffd9b1b 8578 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
8579 * monitor.c (monitor_expect): Obsolete reference to m32r.
8580 * configure.tgt: Mark m32r-*-elf* as obsolete.
8581 * MAINTAINERS: Mark m32k as obsolete.
8582 * m32r-rom.c: Obsolete file.
8583 * config/m32r/m32r.mt: Obsolete file.
8584 * config/m32r/tm-m32r.h: Obsolete file.
8585 * m32r-stub.c: Obsolete file.
8586 * m32r-tdep.c: Obsolete file.
8587
8b0e5691
AC
85882003-02-04 Andrew Cagney <ac131313@redhat.com>
8589
8590 * NEWS: Mention that the z8k-zilog-none is obsolete.
8591 * MAINTAINERS: Mark z8k as obsolete.
8592 * configure.tgt: Obsolete the z8k-*-coff* target.
8593 * config/z8k/z8k.mt: Obsolete file.
8594 * config/z8k/tm-z8k.h: Obsolete file.
8595 * z8k-tdep.c: Obsolete file.
8596
67f16606
AC
85972003-02-04 Andrew Cagney <ac131313@redhat.com>
8598
8599 * NEWS: Mention that the mn10200-elf is obsolete.
8600 * configure.tgt: Obsolete mn10200-*-* target.
8601 * breakpoint.c (update_breakpoints_after_exec): Update comment to
8602 mention that the mn10200 is obsolete.
8603 * breakpoint.h: Ditto.
8604 * MAINTAINERS: Mark the mn10200-elf as obsolete.
8605 * config/mn10200/mn10200.mt: Obsolete file.
8606 * config/mn10200/tm-mn10200.h: Obsolete file.
8607 * mn10200-tdep.c: Obsolete file.
8608
fd2299bd
AC
86092003-02-04 Andrew Cagney <ac131313@redhat.com>
8610
8611 * MAINTAINERS: Mark h8500 as obsolete.
8612 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
8613 * findvar.c (value_from_register): Ditto.
8614 * h8500-tdep.c: Mark file as obsolete.
8615 * config/h8500/h8500.mt: Ditto.
8616 * config/h8500/tm-h8500.h: Ditto.
8617 * NEWS: Mention that h8500 is obsolete.
8618
eb9a305d
DC
86192003-02-04 David Carlton <carlton@math.stanford.edu>
8620
8621 * objfiles.c (allocate_objfile): Always set name. Add comment at
8622 start of function.
8623 * jv-lang.c (get_dynamics_objfile): Add comment.
8624
406fc7fb
DC
86252003-02-04 David Carlton <carlton@math.stanford.edu>
8626
8627 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
8628 * printcmd.c (build_address_symbolic): Replace uses of
8629 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
8630 SYMBOL_NAME, and asm_demangle.
8631 Update copyright.
8632
93d91629
DC
86332003-02-04 David Carlton <carlton@math.stanford.edu>
8634
8635 * linespec.c (decode_compound): Extract code into
8636 lookup_prefix_sym.
8637 (lookup_prefix_sym): New function.
8638
1c5cb38e
DC
86392003-02-04 David Carlton <carlton@math.stanford.edu>
8640
8641 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
8642 FLOAT_COERCION_BADNESS.
8643 * gdbtypes.c (rank_one_type): Replace all uses of
8644 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
8645
0cf824c9
JB
86462003-02-04 Jim Blandy <jimb@redhat.com>
8647
8648 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
8649 section, let dwarf_macinfo_section point to it, not
8650 dwarf_loc_section.
8651
a2d356b0
DJ
86522003-02-04 Daniel Jacobowitz <drow@mvista.com>
8653
8654 Pointed out by Anton Blanchard <anton@samba.org>.
8655 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
8656 (ppc_linux_at_sigtramp_return_path): Use it.
8657
2de7ced7
DJ
86582003-02-04 Daniel Jacobowitz <drow@mvista.com>
8659
8660 * defs.h (streq): Add prototype.
8661 * utils.c (streq): New function.
8662
8663 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
8664 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
8665 * mdebugread.c (new_symbol): Likewise.
8666 * stabsread.c (define_symbol): Likewise.
8667 * coffread.c (process_coff_symbol): Likewise.
8668 * dwarfread.c (new_symbol): Likewise.
8669
8670 * minsyms.c (prim_record_minimal_symbol_and_info): Use
8671 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
8672 here.
8673 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
8674 SYMBOL_INIT_DEMANGLED_NAME.
8675 * objfiles.c: Include "hashtab.h".
8676 (allocate_objfile): Call htab_set_functions_ex for the
8677 demangled_names_hash.
8678 (free_objfile): Call htab_delete for the demangled_names_hash.
8679 * objfiles.h (struct htab): Add declaration.
8680 (struct objfile): Add demangled_names_hash.
8681 * symfile.c: Include "hashtab.h".
8682 (reread_symbols): Call htab_delete for the demangled_names_hash.
8683 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
8684 SYMBOL_NAME in the bcache.
8685 * symtab.c: Include "hashtab.h". Update comments.
8686 (create_demangled_names_hash, symbol_set_names): New functions.
8687 (symbol_find_demangled_name): New function, broken out from
8688 symbol_init_demangled_names.
8689 (symbol_init_demangled_names): Use it.
8690 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
8691 (SYMBOL_SET_NAMES): New macro.
8692 (symbol_set_names): Add prototype.
8693
15831452
JB
86942003-02-03 Jim Blandy <jimb@redhat.com>
8695
8696 Use a single, consistent representation for an empty minimal
8697 symbol table in an objfile.
8698 * objfiles.c (terminate_minimal_symbol_table): New function.
8699 (allocate_objfile): Call it.
8700 * objfiles.h (terminate_minimal_symbol_table): New declaration.
8701 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 8702 non-NULL.
15831452
JB
8703 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
8704 objfile has minimal symbols, compare minimal_symbol_count to zero,
8705 instead of comparing msymbols with NULL.
8706 * objfiles.c (have_minimal_symbols): Same.
8707 * solib-sunos.c (solib_add_common_symbols): Call
8708 terminate_minimal_symbol_table.
8709 * symfile.c (reread_symbols): Same.
8ffd9b1b 8710
ffc65945
KB
87112003-02-03 Kevin Buettner <kevinb@redhat.com>
8712
8713 * s390-tdep.c (s390_address_class_type_flags)
8714 (s390_address_class_type_flags_to_name)
8715 (s390_address_class_name_to_type_flags): New functions.
8716 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
8717 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
8718
f211c6d4
MS
87192003-02-03 Michael Snyder <msnyder@redhat.com>
8720
8721 * arm-tdep.c: Fix spell-o in comment.
8722
659b0389
ML
87232003-02-03 Michal Ludvig <mludvig@suse.cz>
8724
8725 * dwarf2cfi.c (pointer_encoding): Added new parameter.
8726 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 8727 error messages to contain BFD filename.
659b0389 8728
3b31d625
EZ
87292003-02-02 Elena Zannoni <ezannoni@redhat.com>
8730
997b089a 8731 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
8732 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
8733 (do_mixed_source_and_assembly): Use
8734 make_cleanup_ui_out_tuple_begin_end and
8735 make_cleanup_ui_out_tuple_begin_end.
8736 (do_mixed_source_and_assembly): Ditto.
8737 * thread.c (do_captured_list_thread_ids): Ditto.
8738 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
8739 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
8740 ui_out_tuple_end): Delete prototypes.
8741 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
8742 ui_out_list_end, ui_out_tuple_end): Delete.
8743
8744 From Kevin Buettner <kevinb@redhat.com>:
8745 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
8746 * ui-out.c (make_cleanup_ui_out_table_begin_end)
8747 (do_cleanup_table_end): New functions.
8748 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
8749 Use cleanups to invoke_ui_out_tuple_end().
8750 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
8751 * cli/cli-setshow.c (cmd_show_list): Use
8752 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 8753
5b181d62
AC
87542003-02-02 Andrew Cagney <ac131313@redhat.com>
8755
8756 * frame.c (frame_unwind_register): New function.
8757 (frame_unwind_unsigned_register): Use.
8758 (frame_unwind_signed_register): Use.
8759 (frame_read_register): New function.
8760 * frame.h (frame_unwind_register): Declare.
8761 (frame_read_register): Declare.
8762
8763 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
8764 and frame_unwind_register instead of read_memory, write_register
8765 and deprecated_write_register_bytes.
8766
5f601589
AC
87672003-02-02 Andrew Cagney <ac131313@redhat.com>
8768
8769 * frame.h: Note that namelen can be negative.
8770 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
8771 NAME's length.
8772
8773 * NEWS: Mention that the d10v's `regs' command is deprecated.
8774 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
8775 (d10v_print_registers_info): New function.
8776 (show_regs): Call d10v_print_registers_info.
8777 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
8778
6a3fe0a4
MK
87792003-02-02 Mark Kettenis <kettenis@gnu.org>
8780
8781 * stack.c (print_frame_info): Restore call to annotate_frame_begin
8782 lost in the previous patch.
8783
075559bc
AC
87842003-02-01 Andrew Cagney <ac131313@redhat.com>
8785
8786 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
8787 * stack.c (print_frame_info_base): Output complete FRAME tuple
8788 for synthesized frames.
075559bc 8789
6789195b
AC
87902003-02-02 Andrew Cagney <ac131313@redhat.com>
8791
8792 * mips-nat.c (zerobuf): Delete.
8793 (fetch_inferior_registers): Alloc local zerobuf.
8794 (fetch_core_registers): Alloc local zerobuf.
8795 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
8796 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
8797 * thread-db.c (thread_db_store_registers): Ditto.
8798 * sh-tdep.c (sh_do_register): Ditto.
8799 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
8800 * remote-sim.c (gdbsim_store_register): Ditto.
8801 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8802 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8803 * monitor.c (monitor_supply_register): Ditto.
8804 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
8805 * mips-nat.c (fetch_inferior_registers): Ditto.
8806 * m68klinux-nat.c (fetch_register): Ditto.
8807 * lynx-nat.c (fetch_inferior_registers): Ditto.
8808 (fetch_inferior_registers): Ditto.
8809 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
8810 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8811 (hpux_thread_store_registers): Ditto.
8812 * hppah-nat.c (fetch_register): Ditto.
8813 * hppab-nat.c (fetch_register): Ditto.
8814 * hppa-tdep.c (pa_register_look_aside): Ditto.
8815 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
8816 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
8817
e669114a
AC
88182003-02-01 Andrew Cagney <ac131313@redhat.com>
8819
8820 * gdbarch.sh: Explictly specify all method levels. When a
8821 variable with an empty level, provide a non-multi-arch default.
8822 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
8823 * gdbarch.h: Re-generate.
8824 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
8825 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
8826
9a043c1d
AC
88272003-02-01 Andrew Cagney <ac131313@redhat.com>
8828
8829 * defs.h (host_pointer_to_address): Delete declaration.
8830 (address_to_host_pointer): Delete declaration.
8831 * utils.c (host_pointer_to_address): Delete function.
8832 (address_to_host_pointer): Delete function.
8833 * procfs.c (procfs_address_to_host_pointer): New function.
8834 * procfs.c (proc_set_watchpoint): Use.
8835 (procfs_can_use_hw_breakpoint): Update comments.
8836 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
8837 (som_solib_add): Use.
8838 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
8839 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 8840
7ca9f392
AC
88412003-02-01 Andrew Cagney <ac131313@redhat.com>
8842
94bbfd30
AC
8843 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
8844 strlen d_name.
8845
7ca9f392
AC
8846 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
8847 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
8848 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
8849 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
8850 (define_symbol): Update.
8851 * symfile.c (generic_load): Remove references to nindy.
8852 * symtab.c: Remove references to nindy.
8853
31a85ea2
AC
88542003-02-01 Andrew Cagney <ac131313@redhat.com>
8855
8856 * infcmd.c (print_float_info): Delete code conditional on
8857 FLOAT_INFO.
8858 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
8859 * config/m68k/nm-apollo68b.h: Ditto.
8860 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
8861 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
8862 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
8863
f6e85fc8
MK
88642003-02-01 Mark Kettenis <kettenis@gnu.org>
8865
6015b6a0
MK
8866 * config/i386/tm-i386os9k.h: Removed.
8867
f7a30bdf
MK
8868 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
8869 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
8870 they're identical to i[3456]86-*-sysv* now.
8871 * config/i386/i386v32.mh: Removed.
8872 * config/i386/xm-i386v32.h: Removed.
8873 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
8874
28d52111
MK
8875 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
8876
4d3f6bce
MK
8877 * config/i386/i386dgux.mh: Removed.
8878 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
8879
f6e85fc8
MK
8880 * configure.in: Fix typo.
8881 * configure: Regenerated.
8882
53955967
DC
88832003-01-31 David Carlton <carlton@math.stanford.edu>
8884
8885 * dwarf2read.c (dwarf2_locate_sections): Set
8886 dwarf_ranges_section.
8887
b1364885
AC
88882003-01-31 Andrew Cagney <ac131313@redhat.com>
8889
8dbb1c65
AC
8890 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
8891 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 8892
8731e58e
AC
8893 * utils.c: Re-indent.
8894
b1364885
AC
8895 * config/djgpp/fnchange.lst: Delete nindy files.
8896 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
8897 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
8898 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
8899 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
8900 * nindy-share/README, nindy-share/Onindy.c: Delete files.
8901 * nindy-tdep.c, nindy-share/Makefile: Delete files.
8902 * Makefile.in (init.c): Remove nindy references.
8903 (saber_gdb): Delete rule.
8904 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
8905 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
8906 and a68v-nat.c.
8907 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
8908 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
8909 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
8910 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
8911 nindy-share/stop.h.
8912 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
8913 * saber.suppress: Delete file.
8914
086df311
DJ
89152003-01-31 Daniel Jacobowitz <drow@mvista.com>
8916
8917 * dbxread.c (stabs_data): New static variable.
8918 (fill_symbuf): Support an in-memory buffer for stabs data.
8919 (stabs_seek): New function.
8920 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
8921 (read_ofile_symtab): Use stabs_seek.
8922 (elfstab_build_psymtabs): Take an asection* instead of
8923 an offset and size. Relocate the stabs data if necessary.
8924 Save the section* for dbx_psymtab_to_symtab.
8925 * dwarf2read.c: Add section variables for each debug section.
8926 (dwarf2_locate_sections): Fill them in.
8927 (dwarf2_read_section): Take an asection* argument.
8928 Relocate the section contents if necessary.
8929 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
8930 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
8931 it to dwarf2_read_section.
8932 (dwarf2_build_frame_info): Update callers.
8933 * elfread.c (elf_symfile_read): Update call to
8934 elfstab_build_psymtabs.
8935 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
8936 (DBX_STAB_SECTION): New macro.
8ffd9b1b 8937 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
8938 * symfile.c (symfile_dummy_outputs): New function.
8939 (symfile_relocate_debug_section): New function.
8940 * symfile.h (symfile_relocate_debug_section): Add prototype.
8941
87d1b352
RH
89422003-01-31 Richard Henderson <rth@redhat.com>
8943
8944 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
8945 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
8946 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
8947 * alpha-tdep.c (alpha_register_name): Add "unique".
8948 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
8949 (ALPHA_UNIQUE_REGNUM): New.
8950 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
8951
c48861fb
AC
89522003-01-31 Andrew Cagney <ac131313@redhat.com>
8953
8954 * README: Remove reference to Ericsson 1800 monitor.
8955 * Makefile.in (remote-es.o): Delete rule.
8956 (ALLDEPFILES): Delete remote-es.c.
8957 * remote-es.c: Delete file.
8958 * config/m68k/es1800.mt: Delete file.
8959 * config/djgpp/fnchange.lst: Update.
8960 * configure.tgt: Delete m68*-ericsson-* target.
8961
d764a824
AF
89622003-01-31 Adam Fedor <fedor@gnu.org>
8963
8964 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
8965 Remove duplicate/shadowing variable of same name.
8966
fe36c4f4
JB
89672003-01-30 Jim Blandy <jimb@redhat.com>
8968
8969 * symfile.c (find_separate_debug_file): Assert that the objfile's
8970 directory name we compute ends with a slash, and then assume that
8971 that's so everywhere we use it.
8972
cb741690
DJ
89732003-01-30 Daniel Jacobowitz <drow@mvista.com>
8974
8975 * valops.c (value_assign): Flush frame cache after stores to memory
8976 also.
8977
96ee5227
AC
89782003-01-30 Andrew Cagney <ac131313@redhat.com>
8979
8980 * Makefile.in (mon960-rom.o): Delete rule.
8981 * mon960-rom.c: Delete file.
8982
7f6104a9
AC
89832003-01-30 Andrew Cagney <ac131313@redhat.com>
8984
8985 * d10v-tdep.c: Include "frame-unwind.h".
8986 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
8987 list.
8988 (next_addr, uses_frame): Delete.
8989 (struct d10v_unwind_cache): Define.
8990 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
8991 Use info instead of next_addr and uses_frame globals.
8992 (d10v_frame_init_saved_regs): Delete function.
8993 (d10v_init_extra_frame_info): Delete function.
8994 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
8995 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
8996 init_frame_pc or frame_saved_pc.
8997 (d10v_pop_frame): Delete function.
8998 (do_d10v_pop_frame): Delete function.
8999 (d10v_frame_chain): Delete function.
9000 (d10v_frame_chain_valid): Delete function.
9001 (d10v_frame_pc_unwind): New function.
9002 (d10v_frame_id_unwind): New function.
9003 (saved_regs_unwinder): New function.
9004 (d10v_frame_register_unwind): New function.
9005 (d10v_frame_pop): New function.
9006 (d10v_frame_unwind): New variable.
9007 (d10v_frame_p): New function.
9008 (d10v_frame_saved_pc): Delete function.
9009 * Makefile.in (d10v-tdep.o): Update dependencies.
9010
cad2e848
JB
90112003-01-30 J. Brobecker <brobecker@gnat.com>
9012
9013 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9014 causing some regressions due to a change in the default value
9015 for this macro.
9016
af34e669
DJ
90172003-01-29 Richard Henderson <rth@redhat.com>
9018 Elena Zannoni <ezannoni@redhat.com>
9019 Daniel Jacobowitz <drow@mvista.com>
9020
9021 Fix PR gdb/961.
8ffd9b1b 9022 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
9023 variables.
9024 (RANGES_SECTION): New.
9025 (dwarf_ranges_buffer): New variable.
9026 (struct comp_unit_head): Add member "die".
9027 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9028 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9029 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9030 (dwarf2_locate_sections): Likewise.
9031 (dwarf2_build_psymtabs): Read .debug_ranges.
9032 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9033 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9034 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9035 Look for DW_AT_ranges and return the bounding box.
9036
baa93fa6
CF
90372003-01-29 Brian Ford <ford@vss.fsi.com>
9038
9039 * win32-nat.c (cygwin_pid): Removed as unused.
9040 (child_attach): Try fall back to Cygwin pid.
9041
c63f977f
JB
90422003-01-29 Jim Blandy <jimb@redhat.com>
9043
9044 * objfiles.h (struct objfile): Doc fix.
9045
d62d1979
AC
90462003-01-29 Andrew Cagney <ac131313@redhat.com>
9047
9048 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9049 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9050 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9051 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9052 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9053 (FRAME_SAVED_PC): Change to a function with predicate.
9054 * gdbarch.h, gdbarch.c: Re-generate.
9055
1ae18a04
AC
90562003-01-28 Andrew Cagney <ac131313@redhat.com>
9057
52287340
AC
9058 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9059
1ae18a04
AC
9060 * complaints.c (complain): Delete function.
9061 * complaints.h (struct deprecated_complaint): Delete definition.
9062 (complain): Delete declaration.
9063
f2c16bd6
KB
90642003-01-28 Kevin Buettner <kevinb@redhat.com>
9065
9066 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9067 dummy frames.
9068
a94dd1fd
AC
90692003-01-27 Andrew Cagney <ac131313@redhat.com>
9070
9071 * sentinel-frame.h, sentinel-frame.c: New files.
9072 * Makefile.in (frame.o): Update dependencies.
9073 (SFILES): Add sentinel-frame.c.
9074 (sentinel_frame_h): Define.
9075 (COMMON_OBS): Add sentinel-frame.o.
9076 (sentinel-frame.o): Specify dependencies.
9077 * frame.c: Include "sentinel-frame.h".
9078 (frame_register_unwind): Rewrite assuming that there is always a a
9079 ->next frame.
9080 (frame_register, generic_unwind_get_saved_register): Ditto.
9081 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9082 (create_sentinel_frame, unwind_to_current_frame): New functions.
9083 (get_current_frame): Rewrite using create_sentinel_frame and
9084 unwind_to_current_frame. When possible, always create a frame.
9085 (create_new_frame): Set next to the sentinel frame.
9086 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9087 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9088 ID cache when necessary.
9089 (frame_saved_regs_id_unwind): Use frame_relative_level.
9090 (deprecated_generic_get_saved_register): Use frame_relative_level,
9091 get_frame_saved_regs, get_frame_pc, get_frame_base and
9092 get_next_frame.
9093 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9094 frame_register.
9095
5378adc4
DJ
90962003-01-27 Daniel Jacobowitz <drow@mvista.com>
9097
9098 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9099
51ee2ddc
DJ
91002003-01-27 Daniel Jacobowitz <drow@mvista.com>
9101
9102 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9103 (maintenance_set_profile_cmd): Use error () instead of warning ().
9104
d9feb4e7
DJ
91052003-01-27 Daniel Jacobowitz <drow@mvista.com>
9106
9107 * configure.in: Check that -pg works if using --enable-profiling.
9108 Check for monstartup and _mcleanup regardless of --enable-profiling.
9109 * maint.c: Check for monstartup and _mcleanup before using them.
9110 * config.in: Regenerated.
9111 * configure: Regenerated.
9112
2d188dd3
NC
91132003-01-24 Nick Clifton <nickc@redhat.com>
9114
9115 * Add sh2e support:
9116
9117 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9118
9119 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9120 (sh2e_show_regs): New.
9121 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9122 * config/sh/tm-sh.h: Added sh2e to comments.
9123
cb3c37b2
JB
91242003-01-23 Jim Blandy <jimb@redhat.com>
9125
9126 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9127 symbols found)" message here; we haven't checked for a separate
9128 debug info file yet, so we don't know yet.
9129 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9130 we've looked everywhere. Also, there's no need to print a special
9131 message when we're loading the separate debug info file: the one
9132 symbol_file_add prints is fine.
9133
5b5d99cf
JB
91342003-01-23 Alexander Larsson <alexl@redhat.com>
9135 Jim Blandy <jimb@redhat.com>
9136
9137 Add support for executables whose debug info has been separated
9138 out into a separate file, leaving only a link behind.
9139 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9140 and separate_debug_objfile_backlink.
9141 (put_objfile_before): New declaration.
9142 * symfile.c: #include "filenames.h".
9143 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9144 debug info in a separate file, read that, too. Save the addrs
9145 argument, so we can use it again to read the separated debug info;
9146 syms_from_objfile modifies the table we pass it.
9147 (reread_symbols): After re-reading an objfile, call
9148 reread_separate_symbols to refresh its separate debug info
9149 objfile, if it has one.
9150 (reread_separate_symbols, find_separate_debug_file,
9151 get_debug_link_info, separate_debug_file_exists): New functions.
9152 (debug_file_directory): New global var.
9153 (_initialize_symfile): Initialize debug_file_directory, and
9154 provide the new `set debug-file-directory' command to let the user
9155 change it.
9156 * objfiles.c (free_objfile): If this objfile has its debug info in
9157 a separate objfile, free that one too. If this is itself a
9158 separate debug info objfile, clear our parent's backlink.
9159 (put_objfile_before): New function.
9160 * utils.c (gnu_debuglink_crc32): New function.
9161 * defs.h (gnu_debuglink_crc32): New declaration.
9162 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9163 * configure.in: Handle --with-separate-debug-dir config option.
9164 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9165 * acconfig.h (DEBUGDIR): New macro.
9166 * configure, aclocal.m4, config.in: Regenerated.
9167
7e8580c1
JB
91682003-01-22 Jim Blandy <jimb@redhat.com>
9169
7904e09f
JB
9170 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9171 like the old symbol_file_add, but taking new arguments: you can
9172 now pass in either a `struct section_addr_info' list to say where
9173 each section is loaded, or a `struct section_offsets' table. Pass
9174 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 9175 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
9176 with the appropriate quiescent values for the new arguments.
9177
7e8580c1
JB
9178 * symfile.c: #include "gdb_assert.h".
9179 (syms_from_objfile): Add the ability to pass in a section offset
9180 table directly, as an alternative to the section_addr_info table.
9181 Document arguments better.
9182 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9183 * symfile.h (syms_from_objfile): Update declaration.
9184 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9185 syms_from_objfile.
9186 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9187
d28f9cdf
DJ
91882003-01-22 Daniel Jacobowitz <drow@mvista.com>
9189
9190 Original patch by Tom Tromey <tromey@cygnus.com> and
9191 Jason Molenda <jmolenda@apple.com>.
9192 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9193 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9194 * NEWS: Mention profiling.
9195 * configure.in (--enable-gdbtk): Fix typo.
9196 (--enable-profiling): New. Set PROFILE_CFLAGS.
9197 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9198 Fill in function.
9199 (profiling_state): New variable.
9200 (mcleanup_wrapper): New function.
9201 (_initialize_maint): Remove NOTYET, fix call to
9202 add_setshow_boolean_cmd for "maint set profile".
9203 * configure: Regenerated.
9204
df21e465
MH
92052003-01-21 Martin M. Hunt <hunt@redhat.com>
9206
9207 * Makefile.in (install-gdbtk): Install PNG images too.
9208
73c1f219
AC
92092003-01-21 Andrew Cagney <ac131313@redhat.com>
9210
9211 * exec.c (text_start): Delete global variable.
9212 (exec_file_attach): Make text_start local to the function.
9213 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9214 * valops.c (hand_function_call): Delete code that handles
9215 BEFORE_TEXT_END and AFTER_TEXT_END.
9216 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9217 of CALL_DUMMY_LOCATION.
9218 * gdbarch.c: Regenerate.
9219 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9220 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9221 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9222 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9223 (text_end): Delete extern declaration.
9224
eb4f72c5
AC
92252003-01-21 Andrew Cagney <ac131313@redhat.com>
9226
9227 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9228 * blockframe.c (backtrace_below_main): Move to "frame.c".
9229 (frame_chain_valid): Delete check for backtrace_below_main.
9230 (_initialize_blockframe): Delete initialization, move ``set
9231 backtrace-below-main'' command to "frame.c".
9232 (do_flush_frames_sfunc): Delete function.
9233 * frame.c: Include "command.h" and "gdbcmd.h".
9234 (frame_type_from_pc): New function.
9235 (create_new_frame): Use frame_type_from_pc.
9236 (legacy_get_prev_frame): New function.
9237 (get_prev_frame): Rewrite. When an old style frame, call
9238 legacy_get_prev_frame. Otherwize, unwind the PC first.
9239 (_initialize_frame): Add ``set backtrace-below-main'' command.
9240 * Makefile.in (frame.o): Update dependencies.
9241
778ce8cc
AC
92422003-01-19 Andrew Cagney <ac131313@redhat.com>
9243
9244 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9245 DEPRECATED_REGISTERS_INFO.
9246
01c193c8
AC
92472003-01-19 Andrew Cagney <ac131313@redhat.com>
9248
9249 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9250 Maintainers'. Update `Various Maintainers'.
9251
dedc2a2b
AC
92522003-01-19 Andrew Cagney <ac131313@redhat.com>
9253
9254 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9255 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9256 Suppress actual parameters when `-'.
9257 * gdbarch.h, gdbarch.c: Regenerate.
9258
b7261c70
AC
92592003-01-19 Andrew Cagney <ac131313@redhat.com>
9260
9261 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9262 code handling dummy frames.
9263
dbe9fe58
AC
92642003-01-19 Andrew Cagney <ac131313@redhat.com>
9265
9266 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9267 (struct frame_unwind): Add field pop.
9268 * frame.h (frame_pop): Declare.
9269 * frame.c (frame_saved_regs_pop): New function.
9270 (trad_frame_unwinder): Add frame_saved_regs_pop.
9271 (frame_pop): New function.
9272 * dummy-frame.c (dummy_frame_pop): New function.
9273 (discard_innermost_dummy): New function.
9274 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9275 (dummy_frame_unwind): Add dummy_frame_pop.
9276 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9277 * valops.c (hand_function_call): Ditto.
9278 * stack.c (return_command): Ditto.
9279
570b8f7c
AC
92802003-01-18 Andrew Cagney <ac131313@redhat.com>
9281
9282 * cris-tdep.c: Fix function declaration indentation.
9283 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9284 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9285 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9286 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9287 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9288 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9289
92902003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
9291
9292 * README (Unpacking and Installation -- quick overview):
9293 Warn against ".../gdb-5.3/gdb/configure".
9294
494cca16
AC
92952003-01-18 Andrew Cagney <ac131313@redhat.com>
9296
9297 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9298 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9299 (struct frame_unwind): Declare opaque.
9300 (dummy_frame_p): Declare function.
9301 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9302 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9303 * dummy-frame.c: Include "frame-unwind.h".
9304 (dummy_frame_p): New function.
9305 (dummy_frame_unwind): New variable.
9306 * frame.c: Include "frame-unwind.h".
9307 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9308 to use the new unwind field.
9309 (set_unwind_by_pc): Delete function.
9310 (create_new_frame, get_prev_frame): Set unwind field using
9311 frame_unwind_find_by_pc.
9312 (trad_frame_unwind, trad_frame_unwinder): New variables.
9313 * frame.h (trad_frame_unwind): Declare variable.
9314 (frame_id_unwind_ftype): Delete declaration.
9315 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9316 (struct frame_unwind): Declare opaque.
9317 (struct frame_info): Replace the fields id_unwind, pc_unwind and
9318 register_unwind with a single unwind pointer.
9319 * frame-unwind.h, frame-unwind.c: New files.
9320 * Makefile.in (SFILES): Add frame-unwind.c.
9321 (frame_unwind_h): Define.
9322 (COMMON_OBS): Add frame-unwind.o.
9323 (frame-unwind.o): Specify dependencies.
9324 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 9325
4efb68b1
AC
93262003-01-18 Andrew Cagney <ac131313@redhat.com>
9327
9328 * ada-valprint.c: Eliminate PTR.
9329 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9330 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9331 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9332 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9333 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9334 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9335 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 9336
a84d24ee
AC
93372003-01-17 Andrew Cagney <ac131313@redhat.com>
9338
762f08a3
AC
9339 * main.c (captured_main): Don't use PTR.
9340 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9341 * gdbtypes.c (lookup_primitive_typename): Ditto.
9342 (lookup_struct_elt_type): Ditto.
9343 * f-valprint.c (info_common_command): Ditto.
9344 (list_all_visible_commons): Ditto.
9345 * jv-typeprint.c (java_type_print_base): Ditto.
9346
a84d24ee
AC
9347 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9348 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9349 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9350 i386-interix-nat.c and i386-interix-tdep.c. Rename
9351 m68klinux-nat.c and m68klinux-tdep.c. Rename
9352 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9353 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9354 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9355 * main.c (captured_main): Use xfree, not free.
9356
c170fb60
AC
93572003-01-16 Andrew Cagney <ac131313@redhat.com>
9358
9359 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9360 ID back using a parameter.
9361 * frame.c (frame_id_unwind): Update call.
9362 (frame_saved_regs_id_unwind): Update.
9363 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9364 * dummy-frame.h (struct frame_id): Add opaque declaration.
9365 (dummy_frame_id_unwind): Update declaration.
9366
867f3898
AC
93672003-01-15 Andrew Cagney <ac131313@redhat.com>
9368
9369 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9370
40622be8 93712003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 9372
40622be8 9373 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 9374
ae66c1fc
EZ
93752003-01-14 Elena Zannoni <ezannoni@redhat.com>
9376
997b089a 9377 Fix PR gdb/898
ae66c1fc
EZ
9378 * breakpoint.c (until_break_command): Add new argument. Use it to
9379 decide whether to stop only at the current frame or not.
9380 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 9381 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
9382 call.
9383 (advance_command): New function.
9384 (_initialize_infcmd): Update help string for 'until' command.
9385 Add new 'advance' command.
9386
a04257e6
DC
93872003-01-14 David Carlton <carlton@math.stanford.edu>
9388
9389 * linespec.c (decode_line_1): Normalize comments.
9390 (set_flags): Ditto.
9391 (locate_first_half): Ditto.
9392 (decode_compound): Ditto.
9393 (symtab_from_filename): Ditto.
9394 (decode_all_digits): Ditto.
9395 (decode_dollar): Ditto.
9396 (find_methods): Ditto.
9397 (find_toplevel_char): Ditto.
9398
1bac305b
AC
93992003-01-13 Andrew Cagney <ac131313@redhat.com>
9400
9401 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9402 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9403 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9404 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9405 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9406 * language.c, language.h, m32r-tdep.c: Update copyright.
9407 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9408 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9409 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9410 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9411 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9412 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9413
25caa7a8
EZ
94142003-01-13 Elena Zannoni <ezannoni@redhat.com>
9415
9416 * stabsread.h (process_later, resolve_cfront_continuation):
9417 Obsolete.
9418 Update copyright years.
9419 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9420 Update copyright year.
9421 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 9422 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
9423 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9424 Update copyright year.
9425 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9426 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9427 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9428 (parse_partial_symbols): Obsolete cfront support.
9429 * stabsread.c
9430 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9431 macros.
9432 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9433 read_cfront_baseclasses, read_cfront_member_functions,
9434 resolve_cfront_continuation,read_cfront_static_fields,
9435 copy_cfront_struct_fields): Obsolete functions.
9436 (define_symbol, read_one_struct_field): Obsolete cfront support.
9437 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
9438 Update Copyright year.
9439
7789c6f5
EZ
94402003-01-13 Elena Zannoni <ezannoni@redhat.com>
9441
9442 * stack.c (print_frame_info, print_stack_frame_base_stub,
9443 print_stack_frame_base, show_and_print_stack_frame_stub,
9444 show_and_print_stack_frame, print_only_stack_frame_stub,
9445 print_only_stack_frame): Delete functions.
9446 (print_stack_frame_stub): Call print_frame_info instead of
9447 print_frame_info_base.
9448 (print_frame_info_base): Rename to print_frame_info.
9449 (backtrace_command_1): Call print_frame_info, instead of
9450 print_frame_info_base.
9451 (current_frame_command): Call print_stack_frame, instead of
9452 print_only_stack_frame.
9453 (frame_command): Call print_stack_frame, instead of
9454 show_and_print_stack_frame.
9455 (up_command): Ditto.
9456 (down_command): Ditto.
9457 * frame.h (print_only_stack_frame): Delete prototype.
9458 * infrun.c (normal_stop): Call print_stack_frame, instead of
9459 show_and_print_stack_frame.
9460 * thread.c (info_threads_command): Call print_stack_frame, instead
9461 of print_only_stack_frame.
9462
3f5a3016
AC
94632003-01-13 Andrew Cagney <ac131313@redhat.com>
9464
d99ba314
AC
9465 * README (Graphical interface to GDB): Update URL. Point at
9466 gdb/links/.
9467
3f5a3016
AC
9468 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
9469 version match.
9470
083ae935
DJ
94712003-01-13 Daniel Jacobowitz <drow@mvista.com>
9472
9473 * symtab.c (find_pc_sect_line): Don't consider end-of-function
9474 lines.
9475
5365276c
DJ
94762003-01-13 Daniel Jacobowitz <drow@mvista.com>
9477
9478 * thread-db.c (attach_thread): Prototype.
9479 (struct private_thread_info): Remove lwpid. Add thread handle (th),
9480 thread information (ti), and valid flags (th_valid, ti_valid).
9481 (attach_thread): Move target_pid_to_str call to after the thread
9482 is added to GDB's list. Initialize the cache.
9483 (thread_get_info_callback, thread_db_map_id2thr)
9484 (thread_db_get_info): New functions.
9485 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
9486 (thread_db_store_registers, thread_db_thread_alive)
9487 (thread_db_get_thread_local_address): Use them.
9488 (thread_db_pid_to_str): Likewise. Return "Missing" instead
9489 of calling error() for threads in unknown state.
9490
9491 (clear_lwpid_callback): New function.
9492 (thread_db_resume): Use it to clear the cache.
9493
9fc30b6b
DJ
94942003-01-13 Daniel Jacobowitz <drow@mvista.com>
9495
9496 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
9497 (resume_callback): Remove dead code.
9498
8f871025
AC
94992003-01-13 Andrew Cagney <ac131313@redhat.com>
9500
9501 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
9502 predicate.
9503 * gdbarch.h, gdbarch.c: Regenerate.
9504 * stack.c (frame_info): Only initialize the saved registers when
9505 FRAME_INIT_SAVED_REGS_P.
9506 * frame.c (frame_saved_regs_register_unwind): Assert
9507 FRAME_INIT_SAVED_REGS_P.
9508 (deprecated_generic_get_saved_register): Ditto.
9509
3f565f1e
DJ
95102003-01-13 Daniel Jacobowitz <drow@mvista.com>
9511
9512 * source.c (openp): Squelch warning about "filename".
9513
072b1022
DJ
95142003-01-13 Daniel Jacobowitz <drow@mvista.com>
9515
9516 * source.c (openp): If the file does not exist don't necessarily
9517 search the path.
9518
973ccf8b
DJ
95192003-01-13 Daniel Jacobowitz <drow@mvista.com>
9520
9521 Fix PR gdb/872.
9522 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
9523 (integer_types_same_name_p): New function.
9524 (rank_one_type): Use it.
9525 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
9526
030292b7
DJ
95272003-01-13 Daniel Jacobowitz <drow@mvista.com>
9528
9529 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
9530 variables.
9531 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
9532 * configure.in: Add --with-sysroot.
9533 * configure: Regenerated.
9534 * main.c (gdb_sysroot): New variable.
9535 (captured_main): Initialize gdb_sysroot.
9536 * defs.h (gdb_sysroot): New extern declaration.
9537 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
9538
afb5d334
MC
95392003-01-12 Michael Chastain <mec@shout.net>
9540
9541 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
9542
751ceeb4
MC
95432003-01-12 Michael Chastain <mec@shout.net>
9544
9545 * top.c (print_gdb_version): Bump copyright year to 2003.
9546
94cd26f8
DC
95472003-01-12 David Carlton <carlton@bactrian.org>
9548
9549 * linespec.c (symtab_from_filename): Rename variable 's' to
9550 'file_symtab'.
9551
1ce79225
AC
95522003-01-12 Andrew Cagney <ac131313@redhat.com>
9553
9554 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
9555 dummy frame.
9556 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
9557
fa1fd571
AC
95582003-01-12 Andrew Cagney <ac131313@redhat.com>
9559
9560 * d10v-tdep.c: Include "gdb_assert.h".
9561 (d10v_store_return_value): Rewrite to match current interface.
9562 (d10v_extract_struct_value_address): Ditto.
9563 (d10v_extract_return_value): Ditto.
9564 (d10v_gdbarch_init): Set store_restore_value,
9565 extract_struct_value_address and extract_return_value.
9566
68b8d23e
JB
95672003-01-12 J. Brobecker <brobecker@gnat.com>
9568
9569 * hpread.c (set_namestring): New procedure replacing the
9570 SET_NAMESTRING macro.
9571 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
9572 by calls to set_namestring.
9573
95742003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
9575
9576 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
9577 a compilation warning.
9578 (hpread_process_one_debug_symbol): Likewise.
9579
88d262ca
DC
95802003-01-10 David Carlton <carlton@math.stanford.edu>
9581
9582 * linespec.c (decode_line_1): Rename variable 's' to
9583 'file_symtab'.
9584 (decode_all_digits): Rename argument 's' to 'file_symtab'.
9585 (decode_dollar): Ditto.
9586 (decode_variable): Ditto.
9587 (symbol_found): Ditto.
9588
86669319
MC
95892003-01-09 Michael Chastain <mec@shout.net>
9590
9591 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
9592
616a9dc4
CV
95932003-01-07 Corinna Vinschen <vinschen@redhat.com>
9594
9595 * win32-nat.c (set_process_privilege): New function.
9596 (child_attach): Call set_process_privilege() to enable the
9597 SE_DEBUG_NAME user privilege if available in process token.
9598
3269bcfa
JB
95992003-01-10 J. Brobecker <brobecker@gnat.com>
9600
9601 * hpread.c (hpread_process_one_debug_symbol): Fix a small
9602 compilation error in the previous revision.
9603
2b0ee454
DC
96042003-01-09 David Carlton <carlton@math.stanford.edu>
9605
9606 * linespec.c: Update copyright.
9607
b3ba1b44
DJ
96082003-01-09 Daniel Jacobowitz <drow@mvista.com>
9609
9610 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
9611 than inferior_ptid.
9612 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
9613
4ef3f3be
AC
96142003-01-09 Andrew Cagney <ac131313@redhat.com>
9615
479ab5a0
AC
9616 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
9617 Update comments.
9618 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
9619 (frame_saved_regs_zalloc): Update.
9620 (frame_saved_regs_register_unwind): Update.
9621 (create_new_frame): Update.
9622 (get_prev_frame): Update.
9623 (frame_extra_info_zalloc): Update.
9624 (deprecated_get_frame_saved_regs): Update.
9625 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
9626 * cris-tdep.c: Update comment.
9627
bde58177
AC
9628 * somsolib.h: Fix function indentation.
9629 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
9630 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
9631 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
9632 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
9633 * somsolib.c, inftarg.c: Remove assignment in if conditional.
9634
4ef3f3be
AC
9635 * infrun.c (follow_fork): Use ISO C definition.
9636 * expprint.c (print_subexp): Use xfree instead of free.
9637 * charset.c: Include "gdb_string.h" instead of <string.h>.
9638 (register_iconv_charsets): Use ISO C definition.
9639 (host_charset, target_charset): Ditto.
9640 * Makefile.in (charset.o): Update dependencies.
9641 (mi-cmd-env.o): Update dependencies.
9642
1c615f7a
AC
96432003-01-08 Andrew Cagney <cagney@redhat.com>
9644
9645 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
9646 get_frame_base.
9647
c9a1dc08
AC
96482003-01-08 Andrew Cagney <ac131313@redhat.com>
9649
9650 * gdb_mbuild.sh: Add --keep option. When specified, keep the
9651 build directories. Save edited gdb output in Mbuild.log. If a
9652 build fails, remove any final GDB executable.
9653
dbad9d94
AC
96542003-01-08 Andrew Cagney <ac131313@redhat.com>
9655
9656 * gdb_mbuild.sh: Edit the output of `maint print architecture'
9657 replacing hex constants with function names and stripping leading
9658 file name directory prefixes.
9659
8d357cca
AC
96602003-01-08 Andrew Cagney <cagney@redhat.com>
9661
9662 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
9663 get_frame_base.
9664
bca02a8a
DC
96652003-01-08 David Carlton <carlton@math.stanford.edu>
9666
9667 * linespec.c (decode_line_1): Move code into decode_variable.
9668 (decode_variable): New function.
9669
7f8ab3a0
AC
96702003-01-08 Andrew Cagney <ac131313@redhat.com>
9671
9672 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
9673
7b5849cc
AC
96742003-01-08 Andrew Cagney <cagney@redhat.com>
9675
9676 * cris-tdep.c (cris_frame_init_saved_regs): Use
9677 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
9678 saved_regs buffer.
9679 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9680 (sh64_nofp_frame_init_saved_regs): Ditto.
9681 (sh_fp_frame_init_saved_regs): Ditto.
9682 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
9683 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9684 * mcore-tdep.c (analyze_dummy_frame): Ditto.
9685 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9686
72a5efb3
DJ
96872003-01-08 Daniel Jacobowitz <drow@mvista.com>
9688
9689 * minsyms.c (lookup_minimal_symbol): Update comment.
9690 (lookup_minimal_symbol_text): Update comment. Use the hash table.
9691 (lookup_minimal_symbol_solib_trampoline): Likewise.
9692
11c02a10
AC
96932003-01-08 Andrew Cagney <cagney@redhat.com>
9694
aab3ea25
AC
9695 * d10v-tdep.c (d10v_init_extra_frame_info): Use
9696 frame_relative_level.
9697
da50a4b7
AC
9698 * alpha-tdep.c: Use get_frame_extra_info.
9699 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9700 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
9701 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9702 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
9703
11c02a10
AC
9704 * alpha-tdep.c: Use get_next_frame.
9705 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9706 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
9707 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
9708 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
9709 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
9710 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
9711 * xstormy16-tdep.c: Ditto.
8ffd9b1b 9712
1e2330ba
AC
97132003-01-07 Andrew Cagney <cagney@redhat.com>
9714
9715 * alpha-tdep.c: Use get_frame_base.
9716 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9717 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
9718 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
9719 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9720 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
9721 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
9722 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
9723 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 9724
2d75187b
AC
97252003-01-07 Andrew Cagney <cagney@redhat.com>
9726
9727 * frame.c (deprecated_get_frame_context): New function.
9728 (deprecated_set_frame_context): New function.
9729 * frame.h (deprecated_get_frame_context): Declare.
9730 (deprecated_set_frame_context): Declare.
9731 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
9732 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 9733
483d36b2
AC
97342003-01-07 Andrew Cagney <cagney@redhat.com>
9735
9736 * frame.c (deprecated_set_frame_next_hack): New function.
9737 (deprecated_set_frame_prev_hack): New function.
9738 * frame.h (deprecated_set_frame_next_hack): Declare.
9739 (deprecated_set_frame_prev_hack): Declare.
9740 * mcore-tdep.c (analyze_dummy_frame): Use
9741 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
9742 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9743
14e91ac5
DC
97442003-01-07 David Carlton <carlton@math.stanford.edu>
9745
9746 * linespec.c (decode_line_1): Move code into decode_dollar.
9747 (decode_dollar): New function.
9748
b0c6b05c
AC
97492003-01-07 Andrew Cagney <cagney@redhat.com>
9750
9751 * arm-tdep.c (arm_init_extra_frame_info): Use
9752 deprecated_update_frame_base_hack.
9753 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
9754 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9755 (fix_frame_pointer): Ditto.
9756 (mn10300_analyze_prologue): Ditto.
9757
a00a19e9
AC
97582003-01-07 Andrew Cagney <cagney@redhat.com>
9759
9760 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
9761 extra_info using frame_extra_info_zalloc.
9762 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9763 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
9764 (sh64_init_extra_frame_info): Ditto.
9765 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
9766 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
9767 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9768 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
9769 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
9770 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
9771 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
9772 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
9773 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
9774 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
9775 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9776 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
9777
9778 * mn10300-tdep.c (analyze_dummy_frame): Use
9779 deprecated_set_frame_extra_info_hack.
9780 * mcore-tdep.c (analyze_dummy_frame): Ditto.
9781
1fb4c65b
JB
97822003-01-07 J. Brobecker <brobecker@gnat.com>
9783
9784 * mdebugread.c (parse_symbol): Skip stProc entries which storage
9785 class is not scText. These do not define "real" procedures.
9786 (parse_partial_symbols): Likewise.
9787
9fe7d6bf
MS
97882003-01-06 Michael Snyder <msnyder@redhat.com>
9789
9790 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
9791
f6c609c4
AC
97922003-01-06 Andrew Cagney <ac131313@redhat.com>
9793
9794 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
9795 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
9796 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
9797 deprecated_frame_xmalloc_with_cleanup.
9798 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
9799 deprecated_frame_xmalloc.
9800 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
9801 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
9802
d995ff4b
AC
98032003-01-06 Andrew Cagney <cagney@redhat.com>
9804
84dc46cb
AC
9805 * x86-64-linux-tdep.c: Include "osabi.h".
9806 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
9807
d995ff4b
AC
9808 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
9809
66140c26
AC
98102003-01-06 Andrew Cagney <cagney@redhat.com>
9811
9812 * MAINTAINERS (Target Instruction Set Architectures): Update
9813 arm-elf. Can be built with -Werror, has been multiarched.
9814
9815 * value.h (unpack_long): Make buffer parameter constant.
9816 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
9817 * scm-lang.h (scm_parse): Ditto.
9818 * defs.h (extract_typed_address, extract_address): Ditto.
9819 (extract_long_unsigned_integer): Ditto.
9820 * inferior.h (unsigned_pointer_to_address): Ditto.
9821 (signed_pointer_to_address): Ditto.
9822 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
9823 * gdbarch.h, gdbarch.c: Regenerate.
9824 * findvar.c (extract_long_unsigned_integer): Update.
9825 (extract_address): Update.
9826 (extract_typed_address): Update.
9827 (unsigned_pointer_to_address): Update.
9828 * values.c (unpack_long): Update.
9829 (unpack_double): Update.
9830 (unpack_pointer): Update.
9831 (unpack_field_as_long): Update.
9832 * d10v-tdep.c (d10v_pointer_to_address): Update.
9833 * avr-tdep.c (avr_pointer_to_address): Update.
9834 * scm-lang.c (scm_unpack): Update.
9835 * findvar.c (signed_pointer_to_address): Update.
9836
b089b3da
ML
98372003-01-06 Michal Ludvig <mludvig@suse.cz>
9838
8ffd9b1b 9839 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
9840 since it is in i386-tdep.c.
9841
aff87235
JB
98422003-01-06 J. Brobecker <brobecker@gnat.com>
9843
9844 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
9845 failure introduced in the previous change.
9846
34f5e845
MC
98472003-01-05 Michael Chastain <mec@shout.net>
9848
9849 * README: Remove references to deleted remote-*.c files:
9850 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
9851 remote-nrom.c, remote-os9k.c, remote-udi.c.
9852
28bcfd30
MK
98532003-01-05 Mark Kettenis <kettenis@gnu.org>
9854
9855 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
9856 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
9857 i386_get_longjmp_target.
9858
15a5b3ee
AC
98592003-01-05 Andrew Cagney <ac131313@redhat.com>
9860
9861 * arm-tdep.c (prologue_cache): Change to a pointer.
9862 (_initialize_arm_tdep): Allocate prologue_cache.
9863 (check_prologue_cache): Update.
9864 (save_prologue_cache): Update.
9865 (arm_gdbarch_init): Update.
9866
c263362b
DJ
98672003-01-04 Daniel Jacobowitz <drow@mvista.com>
9868
9869 * stabsread.c (update_method_name_from_physname): Call complaint()
9870 instead of error.
9871
51603483
DJ
98722003-01-04 Daniel Jacobowitz <drow@mvista.com>
9873
9874 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
9875 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
9876 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
9877
9878 * blockframe.c: Include "gdbcmd.h" and "command.h".
9879 (backtrace_below_main): New variable.
9880 (file_frame_chain_valid, func_frame_chain_valid)
9881 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
9882 (generic_func_frame_chain_valid): Remove functions.
9883 (frame_chain_valid, do_flush_frames_sfunc): New functions.
9884 (_initialize_blockframe): New function.
9885 * Makefile.in (blockframe.o): Update dependencies.
9886 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
9887 comment. Call frame_chain_valid ().
9888 * frame.h: Remove old prototypes. Add prototype for
9889 frame_chain_valid and update comments to match.
9890 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
9891 Remove old comment.
9892 * gdbarch.h: Regenerated.
9893 * gdbarch.c: Regenerated.
9894
9895 * alpha-tdep.c (alpha_gdbarch_init): Don't call
9896 set_gdbarch_frame_chain_valid.
9897 * avr-tdep.c (avr_gdbarch_init): Likewise.
9898 * cris-tdep.c (cris_gdbarch_init): Likewise.
9899 * frv-tdep.c (frv_gdbarch_init): Likewise.
9900 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
9901 * i386-tdep.c (i386_svr4_init_abi): Likewise.
9902 (i386_nw_init_abi): Likewise.
9903 (i386_gdbarch_init): Likewise.
9904 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
9905 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
9906 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
9907 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
9908 * mips-tdep.c (mips_gdbarch_init): Likewise.
9909 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9910 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
9911 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9912 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9913 * s390-tdep.c (s390_gdbarch_init): Likewise.
9914 * sh-tdep.c (sh_gdbarch_init): Likewise.
9915 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
9916 * v850-tdep.c (v850_gdbarch_init): Likewise.
9917 * vax-tdep.c (vax_gdbarch_init): Likewise.
9918 * x86-64-tdep.c (x86_64_init_abi): Likewise.
9919
9920 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
9921 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
9922 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
9923 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
9924 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
9925 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
9926 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
9927 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
9928
b00a8037
DJ
99292002-01-04 Daniel Jacobowitz <drow@mvista.com>
9930
9931 * Makefile.in (acconfig_h): Remove incorrect macro.
9932 (config_h): Define.
9933 (osabi.o): Update dependencies.
9934 * configure.tgt: Set gdb_osabi based on target triplet.
9935 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
9936 * configure: Regenerated.
9937 * config.in: Regenerated.
9938 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
9939 (GDB_OSABI_DEFAULT): Define if not already defined.
9940 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
9941 (set_osabi_string): New variables.
9942 (gdbarch_register_osabi): Add new OS ABI to
9943 gdb_osabi_available_names.
9944 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
9945 (set_osabi, show_osabi): New functions.
9946 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
9947
4be87837
DJ
99482003-01-04 Daniel Jacobowitz <drow@mvista.com>
9949
9950 * arch-utils.c (gdbarch_info_init): Set osabi to
9951 GDB_OSABI_UNINITIALIZED.
9952 * gdbarch.sh: Add osabi to struct gdbarch and to struct
9953 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
9954 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
9955 * gdbarch.c: Regenerated.
9956 * gdbarch.h: Regenerated.
9957 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
9958 there's no BFD.
9959 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
9960 * osabi.h (enum gdb_osabi): Move to defs.h.
9961 (gdbarch_init_osabi): Update prototype.
9962 * defs.h (enum gdb_osabi): Moved here.
9963 * Makefile.in: Update dependencies.
9964
9965 * alpha-tdep.h: Don't include "osabi.h".
9966 (struct gdbarch_tdep): Remove osabi member.
9967 * alpha-tdep.c: Include "osabi.h".
9968 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9969 iterate over arches. Update call to gdbarch_init_osabi.
9970 (alpha_dump_tdep): Don't dump osabi.
9971 * alpha-linux-tdep.c: Include "osabi.h".
9972 * alpha-osf1-tdep.c: Include "osabi.h".
9973 * alphafbsd-tdep.c: Include "osabi.h".
9974 * alphanbsd-tdep.c: Include "osabi.h".
9975
9976 * arm-tdep.h: Don't include "osabi.h".
9977 (struct gdbarch_tdep): Remove osabi member.
9978 * arm-tdep.c: Include "osabi.h".
9979 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9980 iterate over arches. Update call to gdbarch_init_osabi.
9981 (arm_dump_tdep): Don't dump osabi.
9982 * arm-linux-tdep.c: Include "osabi.h".
9983 * armnbsd-tdep.c: Include "osabi.h".
9984
9985 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
9986 Update call to gdbarch_init_osabi.
9987
9988 * i386-tdep.h: Don't include "osabi.h".
9989 (struct gdbarch_tdep): Remove osabi member.
9990 * i386-tdep.c: Include "osabi.h".
9991 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9992 iterate over arches. Update call to gdbarch_init_osabi.
9993 (i386_dump_tdep): Don't dump osabi.
9994 * i386-linux-tdep.c: Include "osabi.h".
9995 * i386-sol2-tdep.c: Include "osabi.h".
9996 * i386bsd-tdep.c: Include "osabi.h".
9997 * i386gnu-tdep.c: Include "osabi.h".
9998 * i386ly-tdep.c: Include "osabi.h".
9999 * i386nbsd-tdep.c: Include "osabi.h".
10000 * i386obsd-tdep.c: Include "osabi.h".
10001
10002 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10003 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10004 check osabi when iterating over arches. Update call to
10005 gdbarch_init_osabi.
10006 (mips_dump_tdep): Don't dump osabi.
10007
10008 * ns32k-tdep.h: Don't include "osabi.h".
10009 (struct gdbarch_tdep): Remove.
10010 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10011 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10012 allocate tdep. Update call to gdbarch_init_osabi.
10013 (ns32k_dump_tdep): Remove.
10014 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10015 * ns32knbsd-tdep.c: Include "osabi.h".
10016
10017 * ppc-tdep.h: Don't include "osabi.h".
10018 (struct gdbarch_tdep): Remove osabi member.
10019 * rs6000-tdep.c: Include "osabi.h".
10020 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10021 osabi when iterating over arches. Update call to
10022 gdbarch_init_osabi.
10023 (rs6000_dump_tdep): Don't dump osabi.
10024 * ppc-linux-tdep.c: Include "osabi.h".
10025 * ppcnbsd-tdep.c: Include "osabi.h".
10026
10027 * sh-tdep.h: Don't include "osabi.h".
10028 (struct gdbarch_tdep): Remove osabi member.
10029 * sh-tdep.c: Include "osabi.h".
10030 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10031 iterate over arches. Update call to gdbarch_init_osabi.
10032 (sh_dump_tdep): Don't dump osabi.
10033 * shnbsd-tdep.c: Include "osabi.h".
10034
10035 * sparc-tdep.c: Include "osabi.h".
10036 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10037 iterate over arches. Update call to gdbarch_init_osabi.
10038 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10039 tdep structure.
10040
10041 * vax-tdep.h: Don't include "osabi.h".
10042 (struct gdbarch_tdep): Remove.
10043 * vax-tdep.c: Include "osabi.h".
10044 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10045 iterate over arches. Don't allocate tdep. Update call
10046 to gdbarch_init_osabi.
10047 (vax_dump_tdep): Remove.
10048 (_initialize_vax_tdep): Update call to gdbarch_register.
10049
a881cf8e
DJ
100502003-01-04 Daniel Jacobowitz <drow@mvista.com>
10051
10052 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10053 entirely.
10054 (breakpoint_re_set_one): Don't fetch the value for a disabled
10055 watchpoint.
10056
1e698235
DJ
100572003-01-04 Daniel Jacobowitz <drow@mvista.com>
10058
10059 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10060 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10061 (COERCE_FLOAT_TO_DOUBLE): Remove.
10062 * gdbarch.c: Regenerate.
10063 * gdbarch.h: Regenerate.
10064 * Makefile.in: Remove value_h from gdbarch_h.
10065 * valops.c (coerce_float_to_double): New variable.
10066 (default_coerce_float_to_double): Remove.
10067 (standard_coerce_float_to_double): Remove.
10068 (value_arg_coerce): Use coerce_float_to_double.
10069 (_initialize_valops): Add "set coerce-float-to-double".
10070 * value.h (default_coerce_float_to_double): Remove prototype.
10071 (standard_coerce_float_to_double): Remove prototype.
10072
10073 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10074 prototyped.
10075 * mdebugread.c (parse_symbol): Likewise.
10076 * stabsread.c (define_symbol): Mark all functions as prototyped.
10077
10078 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10079 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10080 set_gdbarch_coerce_float_to_double.
10081 * arm-tdep.c (arm_gdbarch_init): Likewise.
10082 * frv-tdep.c (frv_gdbarch_init): Likewise.
10083 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10084 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10085 * mips-tdep.c (mips_gdbarch_init): Likewise.
10086 (mips_coerce_float_to_double): Remove.
10087 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10088 (rs6000_coerce_float_to_double): Remove.
10089 * s390-tdep.c (s390_gdbarch_init): Likewise.
10090 * sh-tdep.c (sh_gdbarch_init): Likewise.
10091 (sh_coerce_float_to_double): Remove.
10092 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10093 (sparc_coerce_float_to_double): Remove.
10094 * v850-tdep.c (v850_gdbarch_init): Likewise.
10095 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10096 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10097 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10098 (hppa_coerce_float_to_double): Remove prototype.
10099 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10100
f436a26a
DJ
101012003-01-04 Daniel Jacobowitz <drow@mvista.com>
10102
10103 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10104
248f8055
DJ
101052003-01-04 Daniel Jacobowitz <drow@mvista.com>
10106
10107 Suggested by Stewart Brown <sb24@avaya.com>:
10108 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10109 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10110 (c_type_print_varspec_suffix): Likewise.
10111
72cfdc76
MK
101122003-01-04 Mark Kettenis <kettenis@gnu.org>
10113
bfd260bb
MK
10114 * configure.in: Don't set and AC_SUBST SUBDIRS.
10115 * configure: Regenerated.
10116
72cfdc76
MK
10117 * configure.in: Remove code dealing with shared libraries.
10118 * Makefile.in: Remove HLDFLAGS and HLDENV.
10119 * configure: Regenerated.
10120
c8b8a898
AC
101212003-01-04 Andrew Cagney <ac131313@redhat.com>
10122
10123 * frame.c (deprecated_frame_xmalloc): New function.
10124 (deprecated_set_frame_saved_regs_hack): New function.
10125 (deprecated_set_frame_extra_info_hack): New function.
10126 * frame.h (deprecated_frame_xmalloc): Declare.
10127 (deprecated_set_frame_saved_regs_hack): Declare.
10128 (deprecated_set_frame_extra_info_hack): Declare.
10129
14abd0fb
MK
101302003-01-04 Mark Kettenis <kettenis@gnu.org>
10131
8ee53726
MK
10132 * configure.in: Move code that provides the --enable-gdbtk option
10133 right after the code that handles the --enable-tui option, and
10134 polish it somewhat.
10135 * configure: Regenerated.
10136
14abd0fb
MK
10137 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10138 AC_CHECK_FUNCS and remove the old check for pread64.
10139 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10140 * acconfig.h (_GNU_SOURCE): Add.
10141 (HAVE_PREAD64): Remove.
10142 * configure, aclocal.m4, config.in: Regenerated.
10143
b2fb4676
AC
101442003-01-03 Andrew Cagney <ac131313@redhat.com>
10145
10146 * alpha-tdep.c: Use get_frame_saved_regs.
10147 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10148 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10149 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10150 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10151 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10152
8dcde887
MK
101532003-01-03 Mark Kettenis <kettenis@gnu.org>
10154
10155 * configure.in: Remove all use of the SUBDIRS variable; add
10156 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10157 code providing the --enable-multi-ice option, and move it right in
10158 front of the code that checks whether gdbserver is supported.
10159 Polish that too.
10160 * configure: Regenerated.
10161 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10162 @SUBDIRS@.
10163
8ccd593b
AC
101642003-01-03 Andrew Cagney <cagney@redhat.com>
10165
10166 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10167 * avr-tdep.c, cris-tdep.c: Ditto.
10168 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10169 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 10170
91151a06
MK
101712003-01-03 Mark Kettenis <kettenis@gnu.org>
10172
10173 * configure.in: Remove --enable-netrom option.
10174 * configure: Regenerated.
10175
8fe84d01
MK
101762003-01-03 Mark Kettenis <kettenis@gnu.org>
10177
10178 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10179 declaration for `struct re_pattern_buffer' instead.
10180 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10181
f0394be6
JB
101822003-01-03 J. Brobecker <brobecker@gnat.com>
10183
10184 * mdebugread.c (parse_symbol): Count until the stEnd matching
10185 the structure name.
10186
27e9bf90
MK
101872003-01-02 Mark Kettenis <kettenis@gnu.org>
10188
93d331ba
MK
10189 * configure.in: Remove --with-cpu option.
10190 subscripts. Remove evil changequotes here.
10191 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10192 * config.in, configure: Regenerated.
8ffd9b1b 10193
27e9bf90
MK
10194 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10195 * configure.in: Cleanup section that sources GDB and BFD configure
10196 subscripts. Remove evil changequotes here.
10197 * config.in, configure: Regenerated.
10198
50abf9e5
AC
101992003-01-02 Andrew Cagney <ac131313@redhat.com>
10200
10201 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10202 frame accessor methods.
10203 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10204 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10205 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10206 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10207 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10208 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10209 * z8k-tdep.c: Ditto.
8ffd9b1b 10210
287c1a40
MK
102112003-01-02 Mark Kettenis <kettenis@gnu.org>
10212
f5dbc56d
MK
10213 * configure.in: Remove UI_OUT configuration code.
10214 * ada-lang.c: Update assuming UI_OUT is always true.
10215 * Makefile.in (UIOUT_CFLAGS): Remove.
10216 * configure: Regenerated.
10217 * TODO: Remove blurb about elimination of -DUI_OUT.
10218
627af7ea
MK
10219 * configure.in: Move code that provides the --enable-gdbcli,
10220 --enable-gdbmi options right before the code that handles the
10221 --enable-tui option. Polish a bit.
10222 * configure: Regenerated.
10223
06825bd1
MK
10224 * configure.in: Rewrite check for GNU regex and the
10225 --without-included regex option, and move it into the "Checks for
10226 library functions" section. This makes us use the system regex
10227 again by default on systems with version 2 of the GNU C library.
10228 This was apparently broken.
10229 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10230 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10231 * config.in, configure: Regenerated.
10232
287c1a40
MK
10233 * configure.in: Move code that provides the --enable-tui option
10234 before the "Checks for libraries" section. Polish the code
10235 somewhat and set need_curses to yes if we build the TUI. Rewrite
10236 code that looks for a library providing termcap functionality to
10237 match more closely what's done in the Readline library, and move
10238 it into to the "Checks for libraries" section.
10239 * configure: Regenerated.
10240 * Makefile.in (TERMCAP): Remove variable.
10241 * config/i386/go32.mh (TERMCAP): Remove variable.
10242
684e56bf
AC
102432003-01-02 Andrew Cagney <ac131313@redhat.com>
10244
10245 * MAINTAINERS: Mention gdb_mbuild.sh.
10246 * gdb_mbuild.sh: Rewrite.
10247
e1ea1d75
MK
102482003-01-02 Mark Kettenis <kettenis@gnu.org>
10249
10250 * configure.in: Fix typo in last change.
10251 * config.in, configure: Regenerated.
10252
1b831c93
AC
102532003-01-02 Andrew Cagney <ac131313@redhat.com>
10254
10255 * valarith.c (value_binop): Delete obsolete code and comments.
10256 * configure.host: Ditto.
10257 * buildsym.h (make_blockvector): Ditto.
10258 * buildsym.c (make_blockvector): Ditto.
10259 * defs.h (enum language): Ditto.
10260 (chill_demangle): Ditto.
10261 * elfread.c (elf_symtab_read): Ditto.
10262 * dwarfread.c (CHILL_PRODUCER): Ditto.
10263 (set_cu_language): Ditto.
10264 (handle_producer): Ditto.
10265 * expprint.c (print_subexp): Ditto.
10266 * gdbtypes.c (chill_varying_type): Ditto.
10267 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10268 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10269 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10270 (chill_varying_type): Ditto.
10271 * language.h (_LANG_chill): Ditto.
10272 * language.c (binop_result_type, integral_type): Ditto.
10273 (character_type, string_type, structured_type): Ditto.
10274 (lang_bool_type, binop_type_check): Ditto.
10275 * stabsread.h (os9k_stabs): Ditto.
10276 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10277 (define_symbol, read_type, read_struct_fields): Ditto.
10278 (read_array_type, read_enum_type, read_huge_number): Ditto.
10279 (read_range_type, start_stabs): Ditto.
10280 * symfile.c (init_filename_language_table): Ditto.
10281 (add_psymbol_with_dem_name_to_list): Ditto.
10282 * symtab.c (symbol_init_language_specific): Ditto.
10283 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10284 * symtab.h (struct general_symbol_info): Ditto.
10285 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10286 * typeprint.c (typedef_print): Ditto.
10287 * utils.c (fprintf_symbol_filtered): Ditto.
10288 * valops.c (value_cast, search_struct_field, value_slice): Delete
10289 obsolete code.
10290 (varying_to_slice): Delete function.
10291 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10292 (varying_to_slice): Delete declaration.
10293 * MAINTAINERS: Update.
10294
8bb2c122
MK
102952003-01-02 Mark Kettenis <kettenis@gnu.org>
10296
97bf5e38
MK
10297 * configure.in: Reorganize "Checks for library functions section"
10298 a bit. Remove check for `btowc' and `isascii' functions.
10299 * configure: Regenerated.
10300
5ee754fc
MK
10301 * acconfig.h (_MSE_INT_H): Remove.
10302 * configure.in: Create "Checks for header files" section, and move
10303 appropriate tests there. Don't check for objlist.h, wchar.h,
10304 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10305 misdetection fix. Also add "Checks for types", "Checks for
10306 compiler characteristics" and "Checks for library functions"
10307 sections.
10308 * config.in, configure: Regenerated.
10309
8bb2c122
MK
10310 * configure.in: Create "Checks for programs" section, and move
10311 appropriate tests there.
10312
9a156167
MK
103132003-01-01 Mark Kettenis <kettenis@gnu.org>
10314
10315 * configure.in: Create "Checks for libraries" section, and move
10316 appropriate tests there. Cleanup check for wctype in libw. Use
10317 AC_SEARCH_LIBS to see whether we need libsocket.
10318 * configure: Regenerated.
10319
a80e2bcb 10320For older changes see ChangeLog-2002
c906108c
SS
10321\f
10322Local Variables:
10323mode: change-log
10324left-margin: 8
10325fill-column: 74
10326version-control: never
10327End:
This page took 1.085194 seconds and 4 git commands to generate.