* i386fbsd-nat.c: Include "i386-tdep.h".
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
26604a34
MK
12003-08-10 Mark Kettenis <kettenis@gnu.org>
2
f0925262
MK
3 * i386fbsd-nat.c: Include "i386-tdep.h".
4 (child_resume): Make `eflags' an ULONGEST. Use
5 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
6 instead of register_read and register_write.
7
a144416f
MK
8 * i386bsd-nat.c (fetch_inferior_registers,
9 store_inferior_registers): Don't use && at the end of a line.
10 (_initialize_i386bsd_nat): Fix typo.
11
fec74868
MK
12 * frame.c (_initialize_frame): Add missing backslash.
13
87232496
MK
14 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
15 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
16 and supply_register instead of manipulating the register buffer
17 directly.
18
c9b9de0b
MK
19 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
20 * config/i386/nm-i386sol2.h
21 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
22
26604a34
MK
23 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
24 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
25 instructions that GCC likes to mingle into the prologue. Fixes
26 gdb/1253 and gdb/1255.
27
25d29d70
AC
282003-08-09 Andrew Cagney <cagney@redhat.com>
29
30 Fix GDB PR cli/926.
31 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
32 * command.h (add_setshow_uinteger_cmd): Declare.
33 * frame.c (set_backtrace_cmd): New function.
34 (show_backtrace_cmd): New function.
35 * frame.c (_initialize_frame): Replace "set/show
36 backtrace-below-main" with "set/show backtrace past-main". Add
37 command "set/show backtrace limit".
38 (backtrace_past_main): Rename "backtrace_below_main".
39 (backtrace_limit): New variable.
40 (get_prev_frame): Update. Check the backtrace_limit.
41
9ebf4acf
AC
422003-08-09 Andrew Cagney <cagney@redhat.com>
43
44 * defs.h (xstrprintf): Declare.
45 * utils.c (xstrprintf): New function.
46 * breakpoint.c (insert_breakpoints): Replace sprintf and
47 non-literal format strings, with xstrprintf and cleanups.
48 (delete_breakpoint,breakpoint_re_set): Ditto.
49 (commands_command, insert_breakpoints): Ditto.
50 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
51 (break_at_finish_command_1): Ditto.
52
3771659b
AC
532003-08-09 Andrew Cagney <cagney@redhat.com>
54
55 * MAINTAINERS (language support): List Adam Fedor as Objective C
56 maintainer.
57
b4263afa
JB
582003-08-08 J. Brobecker <brobecker@gnat.com>
59
60 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
61 are now multiarched.
62
d84defb1
JB
632003-08-08 J. Brobecker <brobecker@gnat.com>
64
65 * config/pa/tm-hppa64.h: Remove lots of macros that are no
66 longer necessary now that hppa64 is partially multiarch'ed.
67
f786f615
AC
682003-08-08 Andrew Cagney <cagney@redhat.com>
69
70 * interps.c (interp_set): Check for a NULL "old_interp".
71
c938e9b0
L
722003-08-08 H.J. Lu <hongjiu.lu@intel.com>
73
74 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
75 (install-only): Support DESTDIR.
76 (uninstall): Likewise.
77 (install-gdbtk): Likewise.
78
9a146a11
EZ
792003-08-08 Elena Zannoni <ezannoni@redhat.com>
80
81 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
82 contains something meaningful at all times.
83
84Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 85
62599e99 86 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 87
56296155
BC
88Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
89
62599e99 90 * MAINTAINERS (write after approval): Added self.
56296155 91
9710e734
AC
922003-08-07 Andrew Cagney <cagney@redhat.com>
93
94 * inferior.h (AT_SYMBOL): Define.
95 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
96 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
97 * mips-tdep.c (mips_call_dummy_address): Delete function.
98 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
99 set call_dummy_address.
100
98b3ab73
AC
1012003-08-07 Andrew Cagney <cagney@redhat.com>
102
103 * language.c (op_error): Delete function.
104 (binop_type_check): Delete function.
105 * language.h (type_op_error, range_op_error): Delete macros.
106 (op_error): Delete declaration.
107
2fcf52f0
AC
1082003-08-07 Andrew Cagney <cagney@redhat.com>
109
110 * interps.h (INTERP_MI2, INTERP_MI3): Define.
111
abd4220e 1122003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 113
abd4220e 114 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 115 (x86_64_push_arguments): Skip the red zone.
abd4220e 116
9dd5f34f
AC
1172003-08-05 Andrew Cagney <cagney@redhat.com>
118
119 * reggroups.c (reggroup_next): Check for the final entry.
120
e5e78edc
AC
1212003-08-04 Andrew Cagney <cagney@redhat.com>
122
ab4e3d93
AC
123 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
124 * cli/cli-script.c (define_command): Call query directly, instead
125 of passing it a buffer.
126 * ocd.c (ocd_error): Pass error a constant format string.
127 * remote-mips.c (mips_error): Use fputs_filtered.
128
1062ca82
AC
129 * solib-svr4.c (_initialize_svr4_solib): Update
130 register_gdbarch_data call.
131 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
132
fcc1c85c
AC
133 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
134 (register_gdbarch_data): Delete "free" parameter. Update
135 comments.
136 * gdbarch.h, gdbarch.c: Re-generate.
137 * reggroups.c (_initialize_reggroup): Update.
138 * gnu-v3-abi.c (init_gnuv3_ops): Update.
139 * frame-base.c (_initialize_frame_base): Update.
140 * frame-unwind.c (_initialize_frame_unwind): Update.
141 * user-regs.c (_initialize_user_regs): Update.
142 * remote.c (_initialize_remote): Update.
143 * regcache.c (_initialize_regcache): Update.
144
116f06ea
AC
145 * regcache.c (xfree_regcache_descr): Delete function.
146 (_initialize_regcache): Update call to register_gdbarch_data.
147 (init_regcache_descr, init_legacy_regcache_descr): Use
148 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
149
e5e78edc
AC
150 * remote.c (free_remote_state): Delete function.
151 (_initialize_remote): Update register_gdbarch_data.
152 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
153 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
154
6c7d17ba
AC
1552003-08-04 Andrew Cagney <cagney@redhat.com>
156
157 * reggroups.c (struct reggroup_el): Define.
158 (struct reggroups): Delete field "nr_group". Replace array
159 "group" with a "first" to "last" linked list.
160 (reggroups_init): Update. Allocate using gdbarch's obstack.
161 (reggroups_free): Delete function.
162 (add_group): Update. Add "el" parameter.
163 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
164 (default_groups): Update.
165 (reggroup_next): Replace reggroups.
166 (reggroups_dump): Update.
167 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
168 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
169 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
170
89b7795b
DJ
1712003-08-04 Daniel Jacobowitz <drow@mvista.com>
172
173 * Makefile.in (tui-interp.o): Update dependencies.
174
306d9ac5
DC
1752003-08-04 David Carlton <carlton@kealia.com>
176
177 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
178 to internal_error call.
179 * source.c (forward_search_command): Add "%s" format argument.
180 (reverse_search_command): Ditto.
181 * top.c (quit_confirm): Ditto.
182 * cli/cli-setshow.c (do_setshow_command): Ditto.
183 * cp-valprint.c (cp_print_class_method): Replace
184 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
185 (cp_print_class_member): Ditto.
186 * event-top.c (command_line_handler): Ditto.
187 * linux-proc.c (linux_info_proc_cmd): Ditto.
188 * p-typeprint.c (pascal_type_print_base): Ditto.
189 * p-valprint.c (pascal_object_print_class_method): Ditto.
190 (pascal_object_print_class_member): Ditto.
191 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
192 * remote.c (remote_cisco_section_offsets): Ditto.
193 * top.c (command_line_input): Ditto.
194 * utils.c (vwarning,error_stream,quit): Ditto.
195 * valprint.c (print_floating,print_binary_chars)
196 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
197
57bfe177
AC
1982003-08-04 Andrew Cagney <cagney@redhat.com>
199
200 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
201
e546b999
AC
2022003-08-02 Andrew Cagney <cagney@redhat.com>
203
204 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
205 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
206 amd64fbsd-nat.c.
207
91092ee5
AC
2082003-08-02 Andrew Cagney <cagney@redhat.com>
209
210 * Makefile.in: Update all dependencies and definitions.
211
889f28e2
AF
2122003-08-02 Adam Fedor <fedor@gnu.org>
213
214 * linespec.c (is_objc_method_format): New function
215 (decode_line_1, locate_first_half): Use it.
216 Fixes PR objc/1298
217
880bc914
AC
2182003-08-01 Andrew Cagney <cagney@redhat.com>
219
220 * NEWS: Mention that m32r is multi-arch.
221 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
222 * configure.tgt: Recognize m32r-*-*.
223 * config/m32r/tm-m32r.h: Delete file.
224 * config/m32r/m32r.mt: New file.
225 * m32r-rom.c (m32r_upload_command): Use hostent only when
226 gethostname succeeds, in order to avoid a compilation
227 warning.
228 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
229 compiler warning.
230
19f59343
MS
2312003-08-01 Michael Snyder <msnyder@redhat.com>
232
233 * sh-tdep.c (sh_frame_align): New gdbarch method.
234 (sh_gdbarch_init): Set up frame_align method.
235
4e7d7511
MS
2362003-07-31 Michael Snyder <msnyder@redhat.com>
237
238 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
239 which is already covered by the new frames infrastructure.
240
63022984
AC
2412003-07-31 Andrew Cagney <cagney@redhat.com>
242
243 * user-regs.c (struct user_reg): Add "next" link.
244 (struct user_regs): Replace "user" with "first" and "last" links.
245 (append_user_reg): Add pre-allocated "reg" parameter.
246 (builtin_user_regs): Provide initial value for "last".
247 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
248 (user_regs_init): Allocate memory from the gdbarch obstack.
249 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
250 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
251 linked list.
252 (usernum_to_user_reg): New function.
253 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
254 (value_of_user_reg): Use usernum_to_user_reg.
255 (user_regs_free): Delete function.
256 (_initialize_user_regs): Update register_gdbarch_data call.
257
7cf6e574
DJ
2582003-07-31 Daniel Jacobowitz <drow@mvista.com>
259
260 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
261
c48a845b
MS
2622003-07-30 Michael Snyder <msnyder@redhat.com>
263
4e7d7511 264 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
265 * infcall.c (call_function_by_hand): Pass struct_addr to
266 value_being_returned.
267 * infcmd.c (print_return_value): Pass zero as struct_addr.
268 * values.c (value_being_returned): If struct_addr is passed,
269 use it instead of trying to recover it from the inferior.
270
f0d8db19
KB
2712003-07-30 Kevin Buettner <kevinb@redhat.com>
272
273 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
274 the prologue analyzer won't need to attempt to extract the pc
275 value from the woefully incomplete dummy frame.
276 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
277 possible. Disable code which modifies the frame.
278
e5c113a1
AC
2792003-07-28 Andrew Cagney <cagney@redhat.com>
280
281 * annotate.c (annotate_breakpoints_headers): Restrict annotation
282 to level 2.
283 (annotate_breakpoints_table, annotate_record): Ditto.
284 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
285 (annotate_field_name_end, annotate_field_value): Ditto.
286 (annotate_field_end, annotate_frame_source_begin): Ditto.
287 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
288 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
289 (annotate_frame_begin, annotate_frame_function_name): Ditto.
290 (annotate_frame_address_end, annotate_frame_address): Ditto.
291 (annotate_frame_args, annotate_frame_end): Ditto.
292 (annotate_frame_where, annotate_arg_begin): Ditto.
293 (annotate_arg_name_end, annotate_arg_value): Ditto.
294 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
295 (annotate_function_call, annotate_signal_name): Ditto.
296 (annotate_signal_string, annotate_signal_name_end): Ditto.
297 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
298 (annotate_value_begin, annotate_value_history_value): Ditto.
299 (annotate_value_history_end, annotate_value_end): Ditto.
300 (annotate_display_begin, annotate_display_number_end): Ditto.
301 (annotate_display_format, annotate_display_expression): Ditto.
302 (annotate_display_expression_end, annotate_display_value): Ditto.
303 (annotate_display_end, annotate_array_section_begin): Ditto.
304 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
305 (annotate_elt, annotate_array_section_end): Ditto.
306
bb1db049
AC
3072003-07-28 Andrew Cagney <cagney@redhat.com>
308
309 * regcache.c (struct regcache_descr): Update comments on
310 nr_raw_registers.
311 (init_legacy_regcache_descr): Don't set nr_raw_registers or
312 sizeof_raw_register_valid_p.
313 (init_regcache_descr): Set nr_raw_registers and
314 sizeof_raw_register_valid_p before calling
315 init_legacy_regcache_descr.
316
20e6603c
AC
3172003-07-28 Andrew Cagney <cagney@redhat.com>
318
319 * mips-tdep.c (print_gp_register_row): Print the GPR's register
320 MOD NUM_REGS.
321
db742940
DJ
3222003-07-28 Daniel Jacobowitz <drow@mvista.com>
323
324 * thread.c (info_threads_command): Use get_selected_frame ().
325 Check that there is at least one non-sentinel frame.
326
ce7f4371
SC
3272003-07-27 Stephane Carrez <stcarrez@nerim.fr>
328
329 * m68hc11-tdep.c (struct frame_extra_info): Remove.
330 (m68hc11_pop_frame): Remove.
331 (m68hc11_frame_saved_pc): Remove.
332 (m68hc11_frame_chain): Remove.
333 (m68hc11_frame_init_saved_regs): Remove.
334 (m68hc11_init_extra_frame_info): Remove.
335 (m68hc11_store_struct_return): Remove.
336 (m68hc11_saved_pc_after_call): Remove.
337
1ea653ae
SC
3382003-07-27 Stephane Carrez <stcarrez@nerim.fr>
339
340 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
341 frame unwind information.
342 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
343 and adapted for frame unwinding.
344 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
345 (m68hc11_unwind_pc): New function.
346 (m68hc11_frame_unwind_cache): New function to analyze frames.
347 (m68hc11_frame_this_id): New function to create new frame struct.
348 (m68hc11_frame_prev_register): New function to unwind a register from
349 the frame.
350 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
351 (m68hc11_frame_p): New function for the above.
352 (m68hc11_frame_base_address): New function to return fp of frame.
353 (m68hc11_frame_args_address): Update for frame.
354 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
355 (m68hc11_unwind_sp): New function.
356 (m68hc11_unwind_dummy_id): New function.
357 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
358 calls.
359
c8a7f6ac
SC
3602003-07-27 Stephane Carrez <stcarrez@nerim.fr>
361
362 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
363 (m68hc11_guess_from_prologue): Advance the pc and frame size only
364 when we are beyond the current pc.
365
3dc990bf
SC
3662003-07-27 Stephane Carrez <stcarrez@nerim.fr>
367
368 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
369 from m68hc11_push_arguments.
370 (m68hc11_push_arguments): Remove.
371 (m68hc11_push_return_address): Remove.
372 (m68hc11_gdbarch_init): Install the above; remove above deprecated
373 handlers; remove deprecated_extra_stack_alignment_needed.
374
222e5d1d
AC
3752003-07-27 Andrew Cagney <cagney@redhat.com>
376
377 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
378 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
379 REAL_PC and not the pointer.
380 * hppa-hpux-tdep.c: Include frame.h
381
a7e9a47e
AC
3822003-07-27 Andrew Cagney <cagney@redhat.com>
383
384 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
385 GDB_MULTI_ACH_PARTIAL.
386
7e3dd49e
AC
3872003-07-27 Andrew Cagney <cagney@redhat.com>
388
389 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
390 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
391 operator at start and not end of line.
392 (decode_prologue): Ditto.
393 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
394 frame_unwind_register_unsigned instead of
395 frame_unwind_unsigned_register.
396 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
397 read_register.
398 (m32r_push_dummy_call): Use register_size instead of
399 REGISTER_RAW_SIZE.
400 (m32r_frame_sniffer): Replace m32r_frame_p.
401 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
402 * m32r-rom.c (report_transfer_performance): Delete extern
403 declaration.
404 (m32r_load, m32r_upload_command): Use print_transfer_performance
405 instead of report_transfer_performance.
406 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
407 / add_show_from_set.
408
0880807f
AC
4092003-07-26 Andrew Cagney <cagney@redhat.com>
410
411 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
412 store_return_value and extract_struct_value_address.
413
64ae9269
DJ
4142003-07-26 Daniel Jacobowitz <drow@mvista.com>
415
416 PR c++/1267
417 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
418 NULL, default to the section containing PC.
419
e286caf2
SC
4202003-07-24 Stephane Carrez <stcarrez@nerim.fr>
421
422 * NEWS: Mention "regs" deprecated for m68hc11 too.
423
424 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
425 (m68hc11_print_register): New function to print out one register.
426 (m68hc11_print_registers_info): New function to print registers.
427 (show_regs): Deprecate and use the above.
428 (m68hc11_gdbarch_init): Install the print_registers_info.
429
705b278b
JJ
4302003-07-24 Jeff Johnston <jjohnstn@redhat.com>
431
432 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
433 that we have a SIGTRAP before returning non-zero.
434
63cd4198
EZ
4352003-07-23 Michal Ludvig <mludvig@suse.cz>
436 Elena Zannoni <ezannoni@redhat.com>
437
438 * linespec.c (decode_line_2): Avoid crash if
439 find_function_start_sal() returns empty record.
440
6926787d
AS
4412003-07-23 Andreas Schwab <schwab@suse.de>
442
443 * ia64-tdep.c (ia64_print_insn): New function.
444 (ia64_gdbarch_init): Set print_insn to it.
445 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
446 deprecated_tm_print_insn_info.
447
708cc1b6
MS
4482003-07-22 Michael Snyder <msnyder@redhat.com>
449
450 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
451 handle 8-bit returns (long long).
452 (h8300h_extract_return_value): Ditto.
453 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
454
aebd7893
AC
4552003-07-22 Andrew Cagney <cagney@redhat.com>
456
457 * gdbarch.c Include "gdb_obstack.h".
458 (struct gdbarch): Add an "obstack".
459 (alloc_gdbarch_data): Allocate the gdbarch data using
460 GDBARCH_OBSTACK_CALLOC.
461 (free_gdbarch_data): Delete function.
462 (gdbarch_obstack_zalloc): New function.
463 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
464 Assert that the architecture is not initialized.
465 (gdbarch_alloc): Allocate an obstack, allocate the architecture
466 vector from the obstack.
467 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
468 architecture obstack.
469 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
470 (set_gdbarch_data): Assert that the data is not initialized.
471 (struct gdbarch_data): Delete member "free".
472 (register_gdbarch_data): Do not initialize "free".
473 * gdbarch.h, gdbarch.c: Re-generate.
474
153721e6
AC
4752003-07-22 Andrew Cagney <cagney@redhat.com>
476
477 * configure.in (build_warnings): Add -Wformat-nonliteral.
478 * configure: Re-generate.
479
c193f044 4802003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
481
482 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 483
c3228f12
EZ
4842003-07-22 Elena Zannoni <ezannoni@redhat.com>
485
486 * findvar.c (read_var_value): Remove case for thread local storage
487 variables. It is now entirely handled by the dwarf2 location
488 expression code.
489 * printcmd.c (address_info): Ditto.
490 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
491 enumeration value.
492 (struct symbol): Remove objfile field, which was used by
493 LOC_THREAD_LOCAL_STATIC only.
494 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
495 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
496 usage of objfile pointer.
497 * dwarf2loc.c (locexpr_describe_location): Add case to handle
498 thread local variables.
499 Add include of objfiles.h.
500 * dwarf2expr.c (execute_stack_op): Add comments about thread local
501 storage variables.
502 * Makefile.in (dwarf2loc.o): Update dependencies.
503
aef9bcd2
AC
5042003-07-22 Andrew Cagney <cagney@redhat.com>
505
506 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
507 get_frame_base.
508 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
509 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
510 (struct value): Add opaque declaration.
511 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
512
d95a8903
AC
5132003-07-21 Andrew Cagney <cagney@redhat.com>
514
515 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
516 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
517
4db73d49
SC
5182003-07-20 Stephane Carrez <stcarrez@nerim.fr>
519
520 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
521 regcache_cooked_read_unsigned instead of read_register.
522 (m68hc11_saved_pc_after_call): Likewise.
523 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
524 instead of write_register.
525 (m68hc11_register_type): New function.
526 (m68hc11_register_virtual_type): Remove.
527 (m68hc11_store_return_value): Convert to use the regcache.
528 (m68hc11_extract_struct_value_address): Likewise.
529 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
530 m68hc11_register_type; undeprecate store_return_value and
531 extract_struct_value_address.
532
ef2b8fcd
SC
5332003-07-20 Stephane Carrez <stcarrez@nerim.fr>
534
535 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
536 and translate to use regcache.
537 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
538
625b0b97
AC
5392003-07-18 Andrew Cagney <cagney@redhat.com>
540
541 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
542 * gdbarch.h, gdbarch.c: Re-generate.
543 * i386-tdep.c (i386_gdbarch_init): Do not set
544 DWARF2_BUILD_FRAME_INFO.
545 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
546 unconditionally.
547 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
548 DWARF2_BUILD_FRAME_INFO.
549
22b0d388
AC
5502003-07-18 Andrew Cagney <cagney@redhat.com>
551
552 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
553 * disasm.c (gdb_disassemble_info): Initilize di.arch.
554
1ce5d6dd
AC
5552003-07-18 Andrew Cagney <cagney@redhat.com>
556
557 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
558 frame_unwind_address_in_block, instead of frame_pc_unwind.
559 (dwarf2_frame_cache): Ditto.
560
e6e5e94c
AC
5612003-07-18 Andrew Cagney <cagney@redhat.com>
562
563 * user-regs.h (struct gdbarch): Declare opaque.
564 * ui-out.h (struct ui_file): Declare opaque.
565 * dwarf2-frame.h (struct frame_info): Declare opaque.
566
5483d879
KW
5672003-07-18 Kris Warkentin <kewarken@qnx.com>
568
569 * nto-procfs.c: Clean ARI hits. Change #include <..> to
570 #include "...".
571 (procfs_meminfo): Change strerror to safe_strerror.
572 (procfs_can_run): Remove K&R badness.
573
278a7cf7
MS
5742003-07-17 Michael Snyder <msnyder@redhat.com>
575
576 * remote-sim.c: Comment typo fix.
577
606e3b82
AC
5782003-07-17 Andrew Cagney <cagney@redhat.com>
579
580 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
581 configure.
582 * sparc-tdep.c (sparc_intreg_size): Make non-static.
583 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
584 GDB_MULTI_ARCH_PARTIAL.
585
c43af07c
EZ
5862003-07-17 Elena Zannoni <ezannoni@redhat.com>
587
588 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
589 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
590 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
591
3b85b0f1
TR
5922003-07-16 Theodore A. Roth <troth@openavr.org>
593
594 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
595 found.
596 (avr_frame_unwind_cache): Don't unwind FP for main.
597 Update a comment.
598 Save the computed prev_sp.
599 (avr_saved_regs_unwinder): Remove function.
600 (avr_frame_prev_register): Use PC unwind logic from
601 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
602
336d1bba
AC
6032003-07-16 Andrew Cagney <cagney@redhat.com>
604
605 * frame-base.h (frame_base_p_ftype): Delete definition.
606 (frame_base_append_predicate): Delete declaration.
607 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
608 (frame_unwind_append_predicate): Delete declaration.
609 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
610 (append_predicate): Delete parameter "p".
611 (frame_unwind_append_predicate): Delete function.
612 (frame_unwind_append_sniffer): Update call to append_predicate.
613 (frame_unwind_free): Delete function.
614 (_initialize_frame_unwind): Pass NULL as "free" to
615 register_gdbarch_data.
616 (frame_unwind_init): Append the dummy_frame_sniffer.
617 (frame_unwind_find_by_frame): Simplify.
618 * frame-base.c (struct frame_base_table): Delete field "p".
619 (append_predicate): Delete parameter "p".
620 (frame_base_append_predicate): Delete function.
621 (frame_base_append_sniffer): Update call to append_predicate.
622 (frame_base_free): Delete function.
623 (frame_base_find_by_frame): Simplify.
624 (_initialize_frame_base): Pass NULL as "free" to
625 register_gdbarch_data.
626 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
627 (x86_64_sigtramp_frame_sniffer): Replace
628 "x86_64_sigtramp_frame_p".
629 (x86_64_init_abi): Set the frame unwind sniffers.
630 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
631 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
632 (m68k_gdbarch_init): Set the frame unwind sniffers.
633 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
634 "i386_sigtramp_frame_p".
635 (i386_frame_sniffer): Replace "i386_frame_p".
636 (i386_gdbarch_init): Set the frame unwind sniffers.
637 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
638 (avr_gdbarch_init): Set the frame unwind sniffers.
639 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
640 "alpha_sigtramp_frame_p"
641 (alpha_heuristic_frame_sniffer): Replace
642 "alpha_heuristic_frame_p".
643 (alpha_gdbarch_init): Set the frame unwind sniffers.
644 (alpha_dwarf2_init_abi): Ditto.
645 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
646 "alpha_debug_frame_p".
647 (alpha_mdebug_frame_base_sniffer): Replace
648 "alpha_mdebug_frame_base_p".
649 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
650 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
651 (d10v_gdbarch_init): Set the frame unwind sniffer.
652 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
653 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
654 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
655 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
656 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
657 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
658
48db5a3c
CV
6592003-07-16 Michael Snyder <msnyder@redhat.com>
660
661 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
662 should go thru sh_dsp_register_sim_regno, else the dsp regs
663 will not get the right values.
664
6652003-07-16 Corinna Vinschen <vinschen@redhat.com>
666
667 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
668 deprecated_store_floating by call to store_typed_floating.
669 (sh_sh4_register_convert_to_raw): Substitute call to
670 deprecated_extract_floating by call to extract_typed_floating.
671
6722003-07-16 Corinna Vinschen <vinschen@redhat.com>
673
674 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
675
6762003-07-16 Corinna Vinschen <vinschen@redhat.com>
677
678 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
679 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
680 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
681 as possible.
682 (do_pseudo_register): Remove.
683 (sh_push_dummy_code): New function.
684 (sh64_store_struct_return): Rename from sh_store_struct_return.
685 Only called for sh64 now.
686 (sh_extract_struct_value_address): Regcache'ify.
687 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
688 and accomodate new tasks.
689 (sh64_push_return_address): Rename from sh_push_return_address.
690 Only called for sh64 now.
691 (sh_default_extract_return_value): Rename from sh_extract_return_value.
692 Regcache'ify.
693 (sh3e_sh4_extract_return_value): Regcache'ify.
694 (sh_default_store_return_value): Ditto.
695 (sh3e_sh4_store_return_value): Ditto.
696 (sh_default_register_byte): Remove.
697 (sh_sh4_register_byte): Remove.
698 (sh_default_register_raw_size): Remove.
699 (sh_sh4_register_raw_size): Remove.
700 (sh_register_virtual_size): Remove.
701 (sh_sh3e_register_virtual_type): Remove.
702 (sh_sh3e_register_type): New function.
703 (sh_sh4_register_virtual_type): Remove.
704 (sh_sh4_register_type): New function.
705 (sh_default_register_virtual_type): Remove.
706 (sh_default_register_type): New function.
707 (do_fv_register_info): Add parameters to accomodate call from
708 sh_print_registers_info.
709 (do_dr_register_info): Ditto.
710 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
711 Add parameters to accomodate call from sh_print_registers_info.
712 (sh_do_fp_register): Ditto.
713 (sh64_do_pseudo_register): Call do_dr_register_info,
714 do_fv_register_info and sh_do_fp_register with default parameters.
715 (sh_do_register): Add parameters to accomodate call from
716 sh_print_registers_info.
717 (sh_print_register): Ditto.
718 (sh_print_registers_info): Rename from sh_do_registers_info.
719 Add parameters to be used as gdbarch_print_registers_info
720 implementation. Accomodate removed do_pseudo_register function
721 pointer.
722 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
723 function pointer. Call sh_print_register with default parameters.
724 (sh64_do_registers_info): Call sh_print_registers_info instead of
725 sh_do_registers_info.
726 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
727 detection of deprecated vs. non-deprecated functionality.
728 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
729 function pointer assignments by direct function calls.
730
e8a89fe2
AC
7312003-07-15 Andrew Cagney <cagney@redhat.com>
732
733 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
734 (frame_register_unwind, create_new_frame): Ditto.
735 (legacy_get_prev_frame, get_frame_type): Ditto.
736 (get_frame_base_address): Use frame_base_find_by_frame.
737 (get_frame_locals_address): Use frame_base_find_by_frame.
738 (get_frame_args_address): Use frame_base_find_by_frame.
739 * frame-base.h (frame_base_sniffer_ftype): Declare.
740 (frame_base_append_sniffer): Declare.
741 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
742 * frame-base.c (append_predicate): Add a "sniffer" parameter.
743 (frame_base_append_sniffer): New function.
744 (frame_base_append_predicate): Add a NULL sniffer.
745 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
746 (struct frame_base_table): Add "sniffer".
747 (frame_base_free): Free the "sniffer" table.
748 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
749 (frame_unwind_append_sniffer): Declare.
750 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
751 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
752 (struct frame_unwind_table): Add "sniffer", delete "middle".
753 (append_predicate): Add "sniffer" parameter, append the sniffer.
754 (frame_unwind_init): Update append_predicate call.
755 (frame_unwind_append_sniffer): New function.
756 (frame_unwind_append_predicate): Update append_predicate call.
757 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
758
0714963c
AC
7592003-07-15 Andrew Cagney <cagney@redhat.com>
760
761 * frame.c (get_prev_frame): Move disabled inside_entry_func to
762 before code inhibiting repeated unwind attempts. Add to
763 commentary on that test's problems.
764 * blockframe.c (inside_main_func): Look for "main" in the minimal
765 symbol table.
766 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
767 identical.
768
d9170e22
AC
7692003-07-15 Andrew Cagney <cagney@redhat.com>
770
771 * complaints.c (struct explanation): Define.
772 (struct complaints): Change type of "explanation" to "struct
773 explanation".
774 (symfile_explanations): Convert to a "struct explanation" table.
775 (vcomplaint): Update.
776
eba29c8c
ML
7772003-07-15 Michal Ludvig <mludvig@suse.cz>
778
779 * x86-64-linux-nat.c (regmap): Removed.
780 (supply_gregset, fill_gregset): Call
781 x86_64_linux_(fill,supply)_gregset functions.
782 * x86-64-linux-tdep.c (USER_*): New defines.
783 (user_to_gdb_regmap, x86_64_core_fns): New structure.
784 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
785 New functions.
786 (fetch_core_registers): Ditto.
787 (_initialize_x86_64_linux_tdep): Call add_core_fns().
788 * x86-64-linux-tdep.h: New file.
789 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
790 and core-regset.o.
791 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
792
68cc0bfb
MK
7932003-07-13 Mark Kettenis <kettenis@gnu.org>
794
88a115f7
MK
795 * x86-64-tdep.c (x86_64_store_return_value): Use
796 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 797
68cc0bfb
MK
798 * configure.host: Add x86_64-*-freebsd*.
799 * configure.tgt: Add x86_64-*-freebsd*.
800 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
801 * amd64fbsd-nat.c: New file.
802 * amd64fbsd-tdep.c: New file.
803 * config/i386/nm-fbsd64.h: New file.
804 * config/i386/fbsd64.mh: New file.
805 * config/i386/fbsd64.mt: New file.
806
138e7be5
MK
8072003-07-11 Mark Kettenis <kettenis@gnu.org>
808
809 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
810 `sc_regs_offset' and `sc_fpregs_offset'.
811 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
812 SIGFRAME_FPREGSAVE_OFF): Remove defines.
813 (alpha_sigtramp_register_address): Rewrite to use new members of
814 `struct gdbarch_tdep'.
815 (alpha_gdbarch_init): Initialize new members of struct
816 gdbarch_tdep'.
817 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
818 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
819 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
820 (alphafbsd_pc_in_sigtramp): Implement.
821 (alphafbsd_sigtramp_offset): New function.
822 (alphafbsd_sigcontext_addr): New function.
823 (alphafbsd_init_abi): Initialize signal trampoline related members
824 of `struct gdbarch_tdep'.
825 (_initialize_alphafbsd_tdep): Add prototype.
826
95303a68
TR
8272003-07-11 Theodore A. Roth <troth@openavr.org>
828
ba292e4c
TR
829 * Makefile.in (install-only): Quote sed expression when generating
830 transformed_name.
95303a68 831
6896c0c7
RH
8322003-07-11 Richard Henderson <rth@redhat.com>
833
834 * Makefile.in (dwarf2-frame.o): Add complaints_h.
835 * dwarf2-frame.c: Include complaints.h.
836 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
837 variable initialization; return NULL on error.
838 (decode_frame_entry): New.
839
8edd5d01
AC
8402003-07-11 Andrew Cagney <cagney@redhat.com>
841
c4a09524
AC
842 * frame.h (frame_address_in_block): Delete declaration.
843 * blockframe.c (frame_address_in_block): Delete function.
844 (get_frame_block): Use get_frame_address_in_block.
845 (block_innermost_frame): Ditto.
846 * stack.c (print_frame, backtrace_command_1): Ditto.
847
8edd5d01
AC
848 * frame.h (get_frame_address_in_block): Declare.
849 (frame_unwind_address_in_block): Declare.
850 * frame.c (frame_unwind_address_in_block): New function.
851 (get_frame_address_in_block): New function.
852
f7968451
AC
8532003-07-10 Andrew Cagney <cagney@redhat.com>
854
855 * gdbarch.sh: Simplify predicate methods. Remove need to provide
856 pre-default. Note: re-generate has no effect.
857
ae99b398
AC
8582003-07-10 Andrew Cagney <cagney@redhat.com>
859
860 * gdbarch.sh: When a variable, but not a function, compare against
861 0. Fix problem in previous patch.
862 * gdbarch.c: Re-generate.
863
956ac328
AC
8642003-07-10 Andrew Cagney <cagney@redhat.com>
865
866 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
867 functions against NULL, not 0.
868 * gdbarch.c: Re-generate.
869
287c3240
FF
8702003-07-10 Fred Fish <fnf@ninemoons.com>
871
872 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
873 null string instead of a null pointer.
874 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
875
32f63c4b
MS
8762003-07-09 Michael Snyder <msnyder@redhat.com>
877
878 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
879
402ecd56
MK
8802003-07-09 Mark Kettenis <kettenis@gnu.org>
881
882 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
883 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
884 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
885 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
886 * x86-64-tdep.c: ... from here.
887
c481dac7
AS
8882003-07-09 Andreas Schwab <schwab@suse.de>
889
890 * m68k-tdep.h (enum struct_return): Define.
891 (struct gdbarch_tdep): Add struct_return.
892 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
893 bytes are padded to the right, not to the left. Pass struct value
894 address in register %a1, not on stack.
895 (m68k_use_struct_convention): New function.
896 (m68k_gdbarch_init): Set use_struct_convention. Initialize
897 struct_return in tdep to pcc_struct_return.
898 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
899 reg_struct_return.
900
64176fa3
JB
9012003-07-09 Joel Brobecker <brobecker@gnat.com>
902
903 * somread.c (som_symfile_offsets): Fix compilation error.
904
96a4ee76
AC
9052003-07-09 Andrew Cagney <cagney@redhat.com>
906
907 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
908 Add comments about the checks.
909
1517c6d1
AC
9102003-07-08 Andrew Cagney <cagney@redhat.com>
911
912 * Makefile.in: Make dependency section headers consistent.
913 (config_h): Move to $BUILD headers section.
914 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
915 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
916 (ada-exp.tab.c): Move to YACC/LEX section.
917 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
918 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
919
dc5dd1eb
KW
9202003-07-08 Kris Warkentin <kewarken@qnx.com>
921
922 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
923 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
924 of strerror with safe_strerror, use ISO C function definitions,
925 and replace instances of sprintf with snprintf.
dc5dd1eb 926
612dde91
AC
9272003-07-07 Andrew Cagney <cagney@redhat.com>
928
929 * frame.c (get_prev_frame): Enable check for identical frames.
930 Update comments. Update error messages.
931
492c11d3
JB
9322003-07-07 Joel Brobecker <brobecker@gnat.com>
933
934 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
935
376a5a49
JB
9362003-07-07 Joel Brobecker <brobecker@gnat.com>
937
938 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
939 sort_symtab_syms, no longer necessary.
940
22b4a9ad
JB
9412003-07-07 Joel Brobecker <brobecker@gnat.com>
942
943 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
944
5bbcb741
JB
9452003-07-07 Joel Brobecker <brobecker@gnat.com>
946
947 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
948 (mips_register_byte): Likewise.
949
c139e7d9
DJ
9502003-07-07 Daniel Jacobowitz <drow@mvista.com>
951
952 * Makefile.in (sparc_tdep_h): New.
953 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
954 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
955 * sparc-linux-nat.c: Include "sparc-tdep.h".
956 * sparc-nat.c: Likewise.
957 * sparc-tdep.c: Likewise.
958 * sparc64nbsd-nat.c: Likewise.
959 * sparcnbsd-nat.c: Likewise.
960 * sparcnbsd-tdep.c: Likewise.
961 * sparc-tdep.h: New file.
962 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
963 and sparc_npc_regnum.
964
fd8f87c5
DJ
9652003-07-07 Daniel Jacobowitz <drow@mvista.com>
966
967 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
968 (mips_linux_cannot_store_register): List supported instead of
969 unsupported registers.
970
13adf674
DJ
9712003-07-07 Daniel Jacobowitz <drow@mvista.com>
972
973 * disasm.c (dump_insns): Separate instructions from addresses.
974
8de307e0
AS
9752003-07-07 Andreas Schwab <schwab@suse.de>
976
977 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
978 dependencies.
979 * m68k-tdep.c (NUM_FREGS): Delete.
980 (SIG_PC_FP_OFFSET): Delete.
981 (TARGET_M68K): Delete.
982 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
983 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
984 P_MOVEL_SP, P_MOVEML_SP): Define.
985 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
986 P_TRAP): Delete.
987 (m68k_register_raw_size): Delete.
988 (m68k_register_virtual_size): Delete.
989 (m68k_register_type): Renamed from m68k_register_virtual_type and
990 add gdbarch argument.
991 (m68k_store_struct_return): Delete.
992 (m68k_deprecated_extract_return_value): Delete.
993 (m68k_deprecated_extract_struct_value_address): Delete.
994 (m68k_frame_chain): Delete.
995 (m68k_frame_saved_pc): Delete.
996 (m68k_fix_call_dummy): Delete.
997 (m68k_push_dummy_frame): Delete.
998 (m68k_pop_frame): Delete.
999 (m68k_extract_return_value): New function.
1000 (m68k_store_return_value): Rewrite using regcache.
1001 (m68k_extract_struct_value_address): Rewrite using regcache.
1002 (m68k_push_dummy_call): New function.
1003 (struct m68k_frame_cache): Define.
1004 (m68k_alloc_frame_cache): New function.
1005 (m68k_analyze_frame_setup): New function.
1006 (m68k_analyze_register_saves): New function.
1007 (m68k_analyze_prologue): New function.
1008 (m68k_skip_prologue): Rewrite using above functions.
1009 (m68k_unwind_pc): New function.
1010 (m68k_frame_cache): New function.
1011 (m68k_frame_this_id): New function.
1012 (m68k_frame_prev_register): New function.
1013 (m68k_frame_unwind): New variable.
1014 (m68k_frame_p): New function.
1015 (m68k_sigtramp_frame_cache): New function.
1016 (m68k_sigtramp_frame_this_id): New function.
1017 (m68k_sigtramp_frame_prev_register): New function.
1018 (m68k_sigtramp_frame_unwind): New variable.
1019 (m68k_sigtramp_frame_p): New function.
1020 (m68k_frame_base_address): New function.
1021 (m68k_frame_base): New function.
1022 (m68k_unwind_dummy_id): New function.
1023 (fill_gregset): Use regcache_collect.
1024 (fill_fpregset): Likewise.
1025 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1026 defined.
1027 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1028 deprecated_init_frame_pc, deprecated_store_struct_return,
1029 deprecated_extract_return_value, deprecated_store_return_value,
1030 deprecated_frame_chain, deprecated_frame_saved_pc,
1031 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1032 deprecated_register_virtual_size,
1033 deprecated_max_register_raw_size,
1034 deprecated_max_register_virtual_size,
1035 deprecated_register_virtual_type, deprecated_register_size,
1036 deprecated_register_byte, deprecated_register_bytes,
1037 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1038 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1039 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1040 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1041 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1042 deprecated_push_dummy_frame, deprecated_pop_frame,
1043 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1044 only if SYSCALL_TRAP is defined. Set extract_return_value,
1045 store_return_value, extract_struct_value_address, register_type,
1046 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1047 predicates.
1048 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1049 M68K_MAX_REGISTER_SIZE): Define.
1050 (struct m68k_sigtramp_info): Define.
1051 (struct gdbarch_tdep): Add get_sigtramp_info.
1052 * m68klinux-nat.c (fetch_register): Use register_size instead of
1053 REGISTER_RAW_SIZE. Don't put assignment in if.
1054 (store_register): Likewise.
1055 (fetch_inferior_registers): Likewise.
1056 (store_inferior_registers): Likewise.
1057 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1058 (m68k_linux_frame_saved_pc): Delete.
1059 (m68k_linux_sigcontext_reg_offset,
1060 m68k_linux_ucontext_reg_offset): Define.
1061 (m68k_linux_get_sigtramp_info): New function.
1062 (m68k_linux_extract_return_value): Rewrite using regcache.
1063 (m68k_linux_store_return_value): Likewise.
1064 (m68k_linux_extract_struct_value_address): Likewise.
1065 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1066 Don't set deprecated_frame_saved_pc,
1067 deprecated_extract_return_value, deprecated_store_return_value,
1068 deprecated_extract_struct_value_address. Set
1069 extract_return_value, store_return_value,
1070 extract_struct_value_address.
1071
eb8bc282
AC
10722003-07-07 Andrew Cagney <cagney@redhat.com>
1073
1074 * expprint.c: Include "user-regs.h" instead of "frame.h".
1075 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1076 frame_map_regnum_to_name.
1077 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1078 (frame_map_name_to_regnum): Simplify, call
1079 user_reg_map_name_to_regnum.
1080 (frame_map_regnum_to_name): Simplify, call
1081 user_reg_map_regnum_to_name.
1082 (frame_register_unwind): Update.
1083 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1084 (_initialize_frame_reg): Call user_reg_add_builtin.
1085 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1086 (value_of_register): Use value_of_user_reg.
1087 * eval.c (evaluate_subexp_standard): Update.
1088 * parse.c (write_dollar_variable): Update.
1089 * d10v-tdep.c (d10v_print_registers_info): Update.
1090 * infcmd.c (registers_info): Update.
1091 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1092 (builtin_regs_h): Delete macro.
1093 (user_regs_h): Define.
1094 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1095 (builtin-regs.o): Delete target.
1096 (user-regs.o): Specify dependencies.
1097 (expprint.o): Update dependencies.
1098 (findvar.o): Update dependencies.
1099 (frame.o): Update dependencies.
1100 (std-regs.o): Update dependencies.
1101
9f476a01
CF
11022003-07-06 Christopher Faylor <cgf@redhat.com>
1103
1104 * win32-nat.c (solib_symbols_add): Use one variable for all section
1105 address stuff. Pass variable rather than address of variable to
1106 safe_symbol_file_add.
1107
a731b831
AS
11082003-07-06 Andreas Schwab <schwab@suse.de>
1109
1110 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1111
9f83329d
JB
11122003-07-04 Joel Brobecker <brobecker@gnat.com>
1113
1114 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1115
27e28cc5
KW
11162003-07-04 Kris Warkentin <kewarken@qnx.com>
1117
1118 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1119
11202003-07-04 Kris Warkentin <kewarken@qnx.com>
1121
1122 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1123 * config/i386/nto.mh: New file.
1124 * config/i386/nm-nto.h: New file.
1125 * configure.host: Add i[3456]86-*-nto*.
1126
100f2e98
JB
11272003-07-03 Joel Brobecker <brobecker@gnat.com>
1128
1129 * remote-vx.c (vx_add_symbols): Fix compilation error.
1130
e23457df
AC
11312003-07-03 Andrew Cagney <cagney@redhat.com>
1132
1133 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1134 * gdbarch.h, gdbarch.c: Re-generate.
1135 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1136 (legacy_register_name): Declare.
1137 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1138 (REGISTER_NAME): Define.
1139 * sparc-tdep.c (legacy_register_name): New function.
1140 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1141 (REGISTER_NAME): Define.
1142 (hppa64_register_name): Declare.
1143 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1144 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1145 (hppa64_register_name): New function.
1146 (hppa_register_name): New function.
1147 * arch-utils.c (legacy_register_name): Delete.
1148 * arch-utils.h (legacy_register_name): Delete.
1149
38caaeec
DJ
11502003-07-03 Daniel Jacobowitz <drow@mvista.com>
1151
1152 * cli/cli-interp.c (cli_interpreter_resume): Update the
1153 cli_uiout's stream to gdb_stdout.
1154
dadd712e
AC
11552003-07-03 Andrew Cagney <cagney@redhat.com>
1156
1157 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1158 predicate.
1159 * gdbarch.h, gdbarch.c: Re-generate.
1160 * regcache.c (init_regcache_descr): Use legacy code when either
1161 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1162
c7f1390e
DJ
11632003-07-02 Daniel Jacobowitz <drow@mvista.com>
1164
1165 * NEWS: Move "set logging" entry into GDB 6.0 section.
1166
4bc8c588
JB
11672003-07-02 Jim Blandy <jimb@redhat.com>
1168
a9dd42f1
JB
1169 * s390-tdep.c (struct frame_extra_info): new member:
1170 'stack_bought_valid'.
1171 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1172 initialize fextra_info->stack_bought.
1173 (s390_frameless_function_invocation): Don't trust the value of
1174 fextra_info_ptr->stack_bought unless
1175 fextra_info->stack_bought_valid is set.
1176
4bc8c588
JB
1177 New S390 prologue analyzer.
1178 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1179 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1180 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1181 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1182 compute_x_addr, s390_on_stack, s390_store,
1183 s390_get_signal_frame_info): New functions.
1184 (S390_NUM_SPILL_SLOTS): New macro.
1185 (s390_get_frame_info): Rewritten.
1186 (is_arg_reg): Deleted.
1187
1188 Break out the decoding of S/390 instructions into separate
1189 functions, to make it more legible, and easier to check
1190 against the spec.
1191 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1192 is_rx, is_rxe): New functions.
1193 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1194 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1195 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1196 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1197 enums for opcode values. (Is this an improvement?)
1198
fd13a04a
AC
11992003-07-02 Andrew Cagney <cagney@redhat.com>
1200
1201 * i386-tdep.c: Revert change committed as part of trad-frame code
1202 below.
1203
3f8091c1
DJ
12042003-07-02 Daniel Jacobowitz <drow@mvista.com>
1205
1206 * breakpoint.c (insert_catchpoint): Make static.
1207
8dd5115e
AS
12082003-07-02 Andreas Schwab <schwab@suse.de>
1209
1210 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1211 former ia64_push_arguments and ia64_push_return_address, and use
1212 regcache functions instead of read/write_register.
1213 (ia64_gdbarch_init): Set push_dummy_call instead of
1214 deprecated_push_arguments and deprecated_push_return_address.
1215
a2229c23
AJ
12162003-07-01 Andreas Jaeger <aj@suse.de>
1217
1218 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1219 before the call.
1220 Set %rax only to number of SSE registers used.
1221
3b3850e8
AC
12222003-07-01 Andrew Cagney <cagney@redhat.com>
1223
1224 * trad-frame.h: Update comments, a -1 .addr is reserved.
1225 (trad_frame_value_p, trad_frame_addr_p): Declare.
1226 (trad_frame_reg_p): Declare.
1227 (trad_frame_set_value): Rename trad_frame_register_value.
1228 (trad_frame_set_unknown): Declare.
1229 * trad-frame.c (trad_frame_realreg_p): New function.
1230 (trad_frame_addr_p, trad_frame_value_p): New function.
1231 (trad_frame_set_unknown): New function.
1232 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1233 (trad_frame_prev_register): Use trad_frame_realreg_p,
1234 trad_frame_addr_p and trad_frame_value_p.
1235 (trad_frame_set_value): Rename trad_frame_register_value.
1236 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1237 and trad_frame_set_value.
a2229c23 1238
4d819d0e
JB
12392003-06-30 Jim Blandy <jimb@redhat.com>
1240
1241 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1242 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1243 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1244 for 16 registers, and then 32 more bytes.
1245 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1246 New macros.
1247 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1248 Move up in the file, since it's now used by is_simple_arg.
1249 (is_simple_arg): Don't assume registers are four bytes long.
1250 Exclude all double arguments. Extended floats are not simple
1251 args.
1252 (is_power_of_two): New function.
1253 (pass_by_copy_ref): Call is_power_of_two, and check that the
1254 length fits in a register, rather than listing all the acceptable
1255 sizes. Extended floats are not passed by reference.
1256 (s390_push_arguments): Don't assume registers are four bytes long.
1257 Reserve an argument register to point to the buffer for structures
1258 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1259 S390_STACK_FRAME_OVERHEAD.
1260
1ad828f1
AS
12612003-06-30 Andreas Schwab <schwab@suse.de>
1262
1263 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1264 format error message.
1265
39b00981
JB
12662003-06-30 Joel Brobecker <brobecker@gnat.com>
1267
1268 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1269
b2a7f303
DC
12702003-06-30 David Carlton <carlton@kealia.com>
1271
1272 Band-aid for PR c++/1245.
1273 * Makefile.in (cp-support.o): Depend on complaints_h.
1274 * cp-support.c: Include complaints.h. Add declaration for
1275 find_last_component.
1276 (cp_find_first_component): Separate code into
1277 cp_find_first_component_aux.
1278 (cp_find_first_component_aux): Call demangled_name_complaint.
1279 (demangled_name_complaint): New.
1280
a257b5bb
AC
12812003-06-30 Andrew Cagney <cagney@redhat.com>
1282
1283 * remote.c (remote_write_bytes): Explicitly compute and then use
1284 the payload size. Update comments to reflect. Fixes problem of
1285 GDB not sending small packets as found by Fred Fish.
1286
0a2cfde4
AC
12872003-06-30 Andrew Cagney <cagney@redhat.com>
1288
1289 * remote.c (remote_async_wait): Fix -Wformat problem.
1290
3fcb8548
AC
12912003-06-29 Andrew Cagney <cagney@redhat.com>
1292
1293 * remote.c (remote_wait): Call error, and not warning, when the
1294 packet is corrupt.
1295 (remote_async_wait): Ditto.
1296
9f9970a3
DJ
12972003-06-29 Daniel Jacobowitz <drow@mvista.com>
1298
1299 * sparc-tdep.c (sparc_y_regnum): Make external again.
1300
83a8ccca
DJ
13012003-06-29 Daniel Jacobowitz <drow@mvista.com>
1302
1303 * cli/cli-logging.c (pop_output_files): Add void to function
1304 definition.
1305
d2cf594a
AC
13062003-06-29 Andrew Cagney <cagney@redhat.com>
1307
1308 * frame.c (frame_register_unwind): Use unsigned char when dumping
1309 the buffer contents.
1310
0fac0b41
DJ
13112003-06-28 Daniel Jacobowitz <drow@mvista.com>
1312
1313 * cli/cli-logging.c: New file.
1314 * cli-out.c (struct ui_out_data): Add original_stream.
1315 (cli_redirect): New function.
1316 (cli_ui_out_impl): Add cli_redirect.
1317 (cli_out_new): Initialize original_stream.
1318 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1319 (uo_redirect, ui_out_redirect): New.
1320 * ui-out.h (struct ui_out_impl): Add redirect member.
1321 (redirect_ftype): New.
1322 (ui_out_redirect): Add prototype.
1323 * Makefile.in: Add rules for cli-logging.c.
1324 * NEWS: Mention "set logging".
1325
88a07d7c
EZ
13262003-06-27 Elena Zannoni <ezannoni@redhat.com>
1327
1328 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1329
4eb58876
AC
13302003-06-27 Andrew Cagney <cagney@redhat.com>
1331
1332 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1333 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1334 * avr-tdep.c (avr_call_dummy_address): Delete function.
1335 (avr_gdbarch_init): Do not set call_dummy_address.
1336
1549f619
EZ
13372003-06-27 Elena Zannoni <ezannoni@redhat.com>
1338
1339 * symfile.c (syms_from_objfile): Move variables to inner block.
1340 Move the checks for the non-mainline case a bit earlier to avoid
1341 doing some useless computations.
1342
3cb3398d
EZ
13432003-06-27 Elena Zannoni <ezannoni@redhat.com>
1344
1345 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1346
3799ccc6
EZ
13472003-06-26 Elena Zannoni <ezannoni@redhat.com>
1348
1349 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1350 sections.
1351
ce1f6491
MC
13522003-06-26 Michael Chastain <mec@shout.net>
1353
1354 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1355 gdb/testsuite/gdb.c++/pr-1210.exp.
1356
d958dfd0
AC
13572003-06-26 Andrew Cagney <cagney@redhat.com>
1358
1359 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1360 altivec_expression.h and altivec_registers.h.
1361
d31431ed
AC
13622003-06-26 Andrew Cagney <cagney@redhat.com>
1363
1364 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1365 info->mach when MIPS16. Patch suggested by Fred Fish.
1366
714b1282
AC
13672003-06-26 Andrew Cagney <cagney@redhat.com>
1368
1369 * utils.c (internal_vproblem): Print the problem to a reason
1370 buffer and then pass to query. Make the msg variable more local.
1371
42efa47a
AC
13722003-06-26 Andrew Cagney <cagney@redhat.com>
1373
1374 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1375 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1376 * gdbarch.h, gdbarch.c: Re-generate.
1377 * frame-base.c (default_frame_args_address): Update. Use
1378 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1379 not available.
1380 (default_frame_locals_address): Ditto for
1381 DEPRECATED_FRAME_LOCALS_ADDRESS.
1382 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1383 (vax_frame_num_args): Update.
1384 (vax_gdbarch_init): Update.
1385 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1386 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1387 * mcore-tdep.c (mcore_gdbarch_init): Update.
1388 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1389 * ia64-tdep.c (ia64_gdbarch_init): Update.
1390 * symtab.h (address_class): Update comments.
1391 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1392 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1393 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1394 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1395 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1396 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1397 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1398 * alpha-mdebug-tdep.c: Update.
1399 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1400
8ffd9b1b
AJ
14012003-06-26 Andreas Jaeger <aj@suse.de>
1402
1403 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1404 of SSE registers so that varargs functions work. Rework handling
1405 of passing arguments on the stack.
1406 (x86_64_store_return_value): Return double and float values in SSE
1407 register.
1408
e8ac10a6
MC
14092003-06-24 Michael Chastain <mec@shout.net>
1410
1411 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1412 the "constructor breakpoints ignored" bug.
1413
986af8e6
DC
14142003-06-25 David Carlton <carlton@kealia.com>
1415
1416 * MAINTAINERS: Update e-mail address.
1417
d64558a5
JB
14182003-06-24 Jim Blandy <jimb@redhat.com>
1419
e538d2d7
JB
1420 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1421
02631ec0
JB
1422 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1423 function.
1424 (ppc_linux_init_abi): Register it as the
1425 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1426
e716d87a
JB
1427 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1428 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1429 method.
1430
d64558a5
JB
1431 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1432 (ppc64_standard_linkage_target): Use it.
1433
449a5da4
AC
14342003-06-23 Andrew Cagney <cagney@redhat.com>
1435
1436 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1437 for 0 "int0" and 4 "int32" sized registers.
1438 * gdbtypes.c (builtin_type_int0): Define.
1439 (build_gdbtypes): Initialize builtin_type_int0.
1440 * gdbtypes.h (builtin_type_int0): Declare.
1441
b2a02dda
SC
14422003-06-23 Stephane Carrez <stcarrez@nerim.fr>
1443
1444 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1445 as characters are unsigned.
1446
fba3138e
DJ
14472003-06-22 Daniel Jacobowitz <drow@mvista.com>
1448
1449 PR gdb/1179
1450 * dwarfread.c (struct_type): Skip static fields without crashing.
1451
f6c8180b
AC
14522003-06-22 Andrew Cagney <cagney@redhat.com>
1453
1454 GDB 6.0 branch created.
f2c06f52
AC
1455 * README: Update.
1456 * PROBLEMS: Update. Empty.
1457 * NEWS: Update.
f6c8180b 1458
ae822768
DJ
14592003-06-22 Daniel Jacobowitz <drow@mvista.com>
1460
1461 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1462 Suggested by Nick Hibma <n_hibma@webweaving.org>.
1463
261de166
AC
14642003-06-22 Andrew Cagney <cagney@redhat.com>
1465
1466 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1467 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1468 Velikov.
1469
30e94205
DJ
14702003-06-22 Daniel Jacobowitz <drow@mvista.com>
1471
1472 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1473 compilers.
1474
9e14d721
DJ
14752003-06-21 Daniel Jacobowitz <drow@mvista.com>
1476
1477 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1478 argument of val_print.
1479 * cp-valprint.c (cp_print_value): Don't add the offset parameter
1480 to the address argument of baseclass_offset or target_read_memory.
1481 Do add it to the argument of cp_print_value_fields.
1482
a4b8ebc8
AC
14832003-06-21 Andrew Cagney <cagney@redhat.com>
1484
1485 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1486 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1487 instead of 0..NUM_REGS.
1488 (mips_register_reggroup_p): New function.
1489 (mips_pseudo_register_write): New function.
1490 (mips_pseudo_register_read): New function.
1491 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1492 based on the register's type.
1493 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
1494 cooked.
1495 (mips_get_saved_register): Simplify. Assert that REGNO is a
1496 pseudo / cooked.
1497 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
1498 (mips_register_type): Replace mips_register_virtual_type. Map
1499 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
1500 when available.
1501 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
1502 that the register is cooked / virtual.
1503 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
1504 Only get the extra info when needed.
1505 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
1506 (mips32_heuristic_proc_desc): Fetch the cooked register.
1507 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
1508 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
1509 (mips_print_register): Use gdbarch_register_type, instead of
1510 REGISTER_VIRTUAL_TYPE.
1511 (print_gp_register_row): Use gdbarch_register_type, instead of
1512 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
1513 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1514 Print the pseudo / cooked registers.
1515 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1516 Print the pseudo / cooked registers.
1517 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
1518 REG_NUM is pseudo / cooked.
1519 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
1520 (mips_n32n64_xfer_return_value): Ditto.
1521 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
1522 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1523 (mips_register_sim_regno): New function.
1524 (mips_gdbarch_init): Set deprecated_register_byte,
1525 register_group_p, pseudo_register_write, pseudo_register_read,
1526 register_sim_regno, and num_pseudo_regs. Set register_type,
1527 instead of register_virtual_type.
1528 * Makefile.in (mips-tdep.o): Update dependencies.
1529 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
1530 REGISTER_VIRTUAL_TYPE.
1531 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
1532 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
1533 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
1534 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
1535 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
1536
325ed089
DJ
15372003-06-21 Daniel Jacobowitz <drow@mvista.com>
1538
1539 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
1540 * cli/cli-cmds.c: Include "gdb_vfork.h".
1541 (shell_escape): Use vfork.
1542
f0e7d0e8
AC
15432003-06-21 Andrew Cagney <cagney@redhat.com>
1544
c57bb9fa
AC
1545 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
1546 32 bit floating-point register saves.
1547
6e51443a
AC
1548 * frame.h (deprecated_unwind_get_saved_register): Delete.
1549 * frame.c (deprecated_unwind_get_saved_register): Delete function.
1550 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
1551 and deprecated_get_next_frame_hack instead of
1552 deprecated_unwind_get_saved_register.
1553
ed183c7c
AC
1554 * mips-tdep.c (mips_dump_tdep): Do not print
1555 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
1556
f0e7d0e8
AC
1557 * frame.c (get_frame_register): New function.
1558 (frame_unwind_register_signed): New function.
1559 (get_frame_register_signed): New function.
1560 (frame_unwind_register_unsigned): New function.
1561 (get_frame_register_unsigned): New function.
1562 * frame.h: Add comments on naming schema.
1563 (get_frame_register, frame_unwind_register_signed): Declare.
1564 (get_frame_register_signed, get_frame_register_signed): Declare.
1565 (frame_unwind_register_unsigned): Declare.
1566 (get_frame_register_unsigned): Declare.
1567
2224d941
TR
15682003-06-20 Theodore A. Roth <troth@openavr.org>
1569
1570 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
1571
8619218d
TR
15722003-06-20 Theodore A. Roth <troth@openavr.org>
1573
1574 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
1575 (avr_read_sp): Ditto.
1576
0b1b50c0
DJ
15772003-06-20 Daniel Jacobowitz <drow@mvista.com>
1578
1579 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
1580 * config/arm/nm-linux.h: Likewise.
1581 * config/arm/tm-linux.h: Likewise.
1582 * config/ia64/nm-linux.h: Likewise.
1583 * config/ia64/tm-ia64.h: Likewise.
1584 * config/s390/tm-linux.h: Likewise.
1585 * config/s390/tm-s390.h: Likewise.
1586 * s390-nat.c: Likewise.
1587 * s390-tdep.c: Likewise.
1588
1589 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
1590 * config/ia64/linux.mt: Likewise.
1591 * config/m68k/linux.mh: Likewise.
1592 * config/mips/linux.mt: Likewise.
1593 * config/powerpc/linux.mh: Likewise.
1594 * config/sh/linux.mt: Likewise.
1595
c8c18e65
KW
15962003-06-19 Kris Warkentin <kewarken@qnx.com>
1597
1598 * solib.c (solib_open): Change tests for whether to search
1599 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
1600 comments.
1601
dcccef2e
TR
16022003-06-19 Theodore A. Roth <troth@openavr.org>
1603
1604 * avr-tdep.c (avr_frame_address): Delete function.
1605 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
1606 set_gdbarch_frame_args_address.
1607
5861a190
AC
16082003-06-19 Andrew Cagney <cagney@redhat.com>
1609
1610 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
1611 (REGISTER_CONVERT_FROM_TYPE): Delete.
1612 (mips_register_convert_to_type): Delete declaration.
1613 (mips_register_convert_from_type): Delete declaration.
1614 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
1615 kernel/.
1616
0274a8ce
MS
16172003-06-19 Michael Snyder <msnyder@redhat.com>
1618
1619 * linux-nat.h: New file.
1620 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 1621 * lin-lwp.c: Include linux-nat.h.
0274a8ce 1622 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 1623 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
1624 (linux_make_note_section): Iterate over lwps instead of threads.
1625 (linux_do_thread_registers): Use lwp instead of merged pid.
1626 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 1627 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
1628 Add dependency on linux_nat_h.
1629
adf5f719
TR
16302003-06-19 Theodore A. Roth <troth@openavr.org>
1631
1632 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
1633
6766a268
DJ
16342003-06-19 Daniel Jacobowitz <drow@mvista.com>
1635
1636 * varobj.c (get_type, get_target_type): Use check_typedef.
1637
1171114a
DJ
16382003-06-19 Daniel Jacobowitz <drow@mvista.com>
1639
1640 * breakpoint.c (insert_catchpoint): Call internal_error.
1641
adcf68a2
TR
16422003-06-19 Theodore A. Roth <troth@openavr.org>
1643
1644 * avr-tdep.c (avr_push_dummy_code): Delete function.
1645 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
1646
ea67f13b
DJ
16472003-06-19 Daniel Jacobowitz <drow@mvista.com>
1648
1649 * arch-utils.c (default_prepare_to_proceed): Remove.
1650 (generic_prepare_to_proceed): Remove.
1651 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
1652 (generic_prepare_to_proceed): Remove prototype.
1653 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
1654 * gdbarch.c: Regenerate.
1655 * gdbarch.h: Regenerate.
1656 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
1657 * hppah-nat.c (hppa_switched_threads): Remove.
1658 * infrun.c (prepare_to_proceed): New static function, copied from
1659 generic_prepare_to_proceed. Remove select_it argument.
1660 (proceed): Call prepare_to_proceed.
1661 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
1662 variables.
1663 (ptrace_wait): Don't set the removed variables.
1664 (hppa_switched_threads): Remove.
1665 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
1666 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
1667 (lin_lwp_prepare_to_proceed): Remove prototype.
1668 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
1669 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
1670
4add8633
TR
16712003-06-18 Theodore A. Roth <troth@openavr.org>
1672
1673 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
1674 trad-frame.h.
1675 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
1676 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
1677 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
1678 (AVR_PROLOGUE_*): Enumerate prologue types.
1679 (struct frame_extra_info): Remove.
1680 (struct avr_unwind_cache): Define.
1681 (avr_write_sp): Delete function.
1682 (avr_read_fp): Ditto.
1683 (avr_init_extra_frame_info): Ditto.
1684 (avr_pop_frame): Ditto.
1685 (avr_frame_saved_pc): Ditto.
1686 (avr_saved_pc_after_call): Ditto.
1687 (avr_push_return_address): Ditto.
1688 (avr_frame_chain): Ditto.
1689 (avr_store_struct_return): Ditto.
1690 (avr_push_arguments): Ditto.
1691 (avr_scan_prologue): Update comments. Changed to set up the info for
1692 cache unwinding. Now returns end of prologue PC.
1693 (avr_skip_prologue): Better handling of functions lacking a prologue
1694 by using avr_scan_prologue.
1695 (avr_scan_arg_moves): New function.
1696 (avr_saved_regs_unwinder): Ditto.
1697 (avr_frame_unwind_cache): Ditto.
1698 (avr_unwind_pc): Ditto.
1699 (avr_frame_this_id): Ditto.
1700 (avr_frame_prev_register): Ditto.
1701 (avr_frame_p): Ditto.
1702 (avr_frame_base_address ): Ditto.
1703 (avr_unwind_dummy_id): Ditto.
1704 (avr_push_dummy_code): Ditto.
1705 (push_stack_item): Ditto.
1706 (pop_stack_item): Ditto.
1707 (avr_push_dummy_call): Ditto.
1708 (struct stack_item): Define.
1709 (avr_frame_unwind): Declare structure.
1710 (avr_frame_base): Ditto.
1711 (avr_gdbarch_init): Remove calls to
1712 set_gdbarch_deprecated_init_frame_pc,
1713 set_gdbarch_deprecated_target_read_fp,
1714 set_gdbarch_deprecated_dummy_write_sp,
1715 set_gdbarch_deprecated_fp_regnum,
1716 set_gdbarch_deprecated_push_arguments,
1717 set_gdbarch_deprecated_push_return_address,
1718 set_gdbarch_deprecated_pop_frame,
1719 set_gdbarch_deprecated_store_struct_return,
1720 set_gdbarch_deprecated_frame_init_saved_regs,
1721 set_gdbarch_deprecated_init_extra_frame_info,
1722 set_gdbarch_deprecated_frame_chain,
1723 set_gdbarch_deprecated_frame_saved_pc,
1724 set_gdbarch_deprecated_saved_pc_after_call.
1725 Add calls to set_gdbarch_push_dummy_call,
1726 set_gdbarch_push_dummy_code,
1727 frame_unwind_append_predicate,
1728 frame_base_set_default,
1729 set_gdbarch_unwind_dummy_id,
1730 set_gdbarch_unwind_pc.
1731 Wrap a long line.
1732
7be04a68
MS
17332003-06-18 Corinna Vinschen <vinschen@redhat.com>
1734
1735 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
1736 registers for H8/300S.
1737 (h8300_print_registers_info): Ditto.
8ffd9b1b 1738 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 1739
ae087d01
DJ
17402003-06-18 Daniel Jacobowitz <drow@mvista.com>
1741
1742 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
1743 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1744 (lin_lwp_wait): Likewise. Update comments.
1745 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
1746 (pull_pid_from_list, linux_record_stopped_pid): New.
1747
07d8f827
SC
17482003-06-17 Stephane Carrez <stcarrez@nerim.fr>
1749
1750 * ada-lang.c (scan_discrim_bound): Name first argument.
1751 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
1752 declared by ALL_BLOCK_SYMBOLS.
1753
7cb47b14
SC
17542003-06-17 Stephane Carrez <stcarrez@nerim.fr>
1755
1756 * ada-tasks.c (find_function_in_inferior): Don't declare it.
1757 ("regcache.h"): Include it.
1758 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
1759
6ad8ae5c
DJ
17602003-06-17 Daniel Jacobowitz <drow@mvista.com>
1761
1762 * NEWS: Mention gdbserver detach change and "disconnect" command.
1763 * infcmd.c (disconnect_command): New function.
1764 (_initialize_infcmd): Add ``disconnect'' command.
1765 * remote.c (remote_async_detach): Delete.
1766 (remote_detach): Merge remote_async_detach.
1767 (remote_disconnect): New.
1768 (init_remote_ops): Set to_disconnect.
1769 (init_remote_cisco_ops): Likewise.
1770 (init_remote_async_ops): Likewise. Use remote_detach.
1771 * target.c (cleanup_target): Default to_disconnect.
1772 (update_current_target): Inherit to_disconnect.
1773 (target_disconnect, debug_to_disconnect): New functions.
1774 (setup_target_debug): Set to_disconnect.
1775 * target.h (struct target_ops): Add to_disconnect.
1776 (target_disconnect): Add prototype.
1777
687595f9
DJ
17782003-06-17 Daniel Jacobowitz <drow@mvista.com>
1779
1780 * breakpoint.c (insert_catchpoint): New function.
1781 (insert_breakpoints): Use catch_exceptions to call
1782 insert_catchpoint. Disable catchpoints if they fail to insert.
1783
29239a8f
DJ
17842003-06-17 Daniel Jacobowitz <drow@mvista.com>
1785
1786 * symfile.c (reread_symbols): Clear sym_private.
1787
2cdf3c63
AC
17882003-06-17 Andrew Cagney <cagney@redhat.com>
1789
1790 * trad-frame.h (struct frame_info): Add opaque declaration.
1791 * remote-fileio.h (struct cmd_list_element): Add opaque
1792 declaration.
1793 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
1794 comments.
1795
cf0e1e0d
DJ
17962003-06-17 Daniel Jacobowitz <drow@mvista.com>
1797
1798 * remote.c (remote_prepare_to_store): Replace call to
1799 deprecated_read_register_bytes with multiple regcache_raw_read
1800 calls.
1801
192cdb19
KW
18022003-06-17 Kris Warkentin <kewarken@qnx.com>
1803
1804 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
1805 (nto_find_and_open_solib): Likewise.
1806 (nto_init_solib_absolute_prefix): Likewise.
1807 (_initialize_nto_tdep): Fix indentation.
1808
89929b45
KW
18092003-06-17 Kris Warkentin <kewarken@qnx.com>
1810
1811 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
1812
46019f27
KW
18132003-06-17 Kris Warkentin <kewarken@qnx.com>
1814
1815 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
1816
1a38736e
JB
18172003-06-17 Jim Blandy <jimb@redhat.com>
1818
1819 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
1820
3605c34a
TR
18212003-06-16 Theodore A. Roth <troth@openavr.org>
1822
1823 * avr-tdep.c (avr_extract_return_value): New function.
1824 (avr_gdbarch_init): Set extract_return_value method.
1825
870b3035
AC
18262003-06-16 Andrew Cagney <cagney@redhat.com>
1827
1828 * frame.h (deprecated_get_next_frame_hack): Declare.
1829 * frame.c (legacy_saved_regs_prev_register): Only require
1830 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
1831 there are always saved regs.
1832 (deprecated_generic_get_saved_register): Do not require
1833 DEPRECATED_FRAME_INIT_SAVED_REGS.
1834 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
1835 use frame ID unwind instead.
1836 (deprecated_get_next_frame_hack): New function.
1837
63d47a7d
CV
18382003-06-16 Corinna Vinschen <vinschen@redhat.com>
1839
1840 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
1841 (h8300_push_dummy_call): ...this function. Some minor optimization.
1842 (h8300_push_return_address): Remove.
1843 (h8300_gdbarch_init): Remove calls to
1844 set_gdbarch_deprecated_dummy_write_sp,
1845 set_gdbarch_deprecated_push_arguments and
1846 set_gdbarch_deprecated_push_return_address.
1847 Add call to set_gdbarch_push_dummy_call.
1848
4bb1dc5e
CV
18492003-06-16 Corinna Vinschen <vinschen@redhat.com>
1850
1851 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
1852 (E_PSEUDO_EXR_REGNUM): Ditto.
1853 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 1854 registers into safe registers.
4bb1dc5e
CV
1855 (h8300_skip_prologue): Check for stm instruction to push registers
1856 used for register variables onto stack.
1857 (gdb_print_insn_h8300): Remove.
1858 (h8300_examine_prologue): Add a comment.
1859 (h8300_register_name): Take pseudo registers into account.
1860 (h8300s_register_name): Ditto.
1861 (h8300sx_register_name): Ditto.
1862 (h8300_print_register): Ditto.
1863 (h8300_print_registers_info): Define "nice" printing order.
1864 (h8300_saved_pc_after_call): Take pseudo registers into account.
1865 (h8300_register_type): Ditto. Return type used for remote connection
1866 when requesting real CCR or EXR register, return actual type when
1867 requesting pseudo CCR or EXR.
1868 (h8300_pseudo_register_read): New function.
1869 (h8300_pseudo_register_write): Ditto.
1870 (h8300_dbg_reg_to_regnum): Ditto.
1871 (h8300s_dbg_reg_to_regnum): Ditto.
1872 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
1873 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
1874 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
1875 set_gdbarch_print_insn architecture dependent.
1876 Call set_gdbarch_pseudo_register_read and
1877 set_gdbarch_pseudo_register_write.
1878 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
1879
a59fe496
AC
18802003-06-16 Andrew Cagney <cagney@redhat.com>
1881
1882 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
1883 * gdbarch.h, gdbarch.c: Re-generate.
1884 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1885 * s390-tdep.c (s390_gdbarch_init): Update.
1886 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1887 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1888 * mips-tdep.c (mips_gdbarch_init): Update.
1889 * mcore-tdep.c (mcore_gdbarch_init): Update.
1890 * cris-tdep.c (cris_gdbarch_init): Update.
1891 * infcall.c (call_function_by_hand): Update.
1892 * ia64-tdep.c (ia64_push_arguments): Update comment.
1893 * frame.c (legacy_get_prev_frame): Do not assume
1894 SAVE_DUMMY_FRAME_TOS_P.
1895 * dummy-frame.c (find_dummy_frame): Update comment.
1896
6f4e5a41
AC
18972003-06-16 Andrew Cagney <cagney@redhat.com>
1898
1899 * regcache.c (do_cooked_read): Do not use register_valid_p.
1900
72fab697
TR
19012003-06-15 Theodore A. Roth <troth@openavr.org>
1902
1903 * avr-tdep.c (avr_register_type): Remove a blank line.
1904 (avr_scan_prologue): Correct some comments.
1905
e3d8b004
TR
19062003-06-15 Theodore A. Roth <troth@openavr.org>
1907
1908 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
1909 prologue types.
8ffd9b1b 1910 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
1911 option.
1912 Add code to scan -mcall-prologues for mega devices.
1913
866b76ea
TR
19142003-06-15 Theodore A. Roth <troth@openavr.org>
1915
1916 * avr-tdep.c (avr_register_byte): Delete function.
1917 (avr_register_raw_size): Delete function.
1918 (avr_register_virtual_size): Delete function.
1919 (avr_register_virtual_type): Delete function.
1920 (avr_register_type): New function.
1921 (avr_address_to_pointer): Remove unused code.
1922 (avr_read_fp): Need to read FP as two separate bytes due to change to
1923 avr_register_type() usage.
1924 (avr_gdbarch_init): Don't set deprecated_register_size.
1925 Don't set deprecated_register_bytes.
1926 Don't set deprecated_register_byte.
1927 Don't set deprecated_register_raw_size.
1928 Don't set deprecated_max_register_raw_size.
1929 Don't set deprecated_register_virtual_size.
1930 Don't set deprecated_max_register_virtual_size.
1931 Don't set deprecated_register_virtual_type.
1932 Set register_type method.
1933
3993f6b1
DJ
19342003-06-15 Daniel Jacobowitz <drow@mvista.com>
1935
1936 * Makefile.in (linux-nat.o): Add rule.
1937 * linux-nat.c: New file.
1938 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
1939 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
1940 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
1941 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
1942 * config/arm/linux.mh (NATDEPFILES): Likewise.
1943 * config/i386/linux.mh (NATDEPFILES): Likewise.
1944 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
1945 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1946 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1947 * config/mips/linux.mh (NATDEPFILES): Likewise.
1948 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
1949 * config/s390/s390.mh (NATDEPFILES): Likewise.
1950 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1951
786a90bb
MK
19522003-06-15 Mark Kettenis <kettenis@gnu.org>
1953
1954 * i387-tdep.c: Reorder includes, fix some whitespace issues and
1955 replace out-of-date comment.
1956
3bd3f01e
AC
19572003-06-15 Andrew Cagney <cagney@redhat.com>
1958
1959 * rdi-share/host.h (Fail): Change to a varargs function.
1960 * remote-rdi.c (Fail): Update.
8ffd9b1b 1961
de5b9bb9
MK
19622003-06-15 Mark Kettenis <kettenis@gnu.org>
1963
1964 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
1965 (i386_convert_register_p, i386_register_to_value,
1966 i386_register_from_value): Handle types longer than 8 bytes.
1967
d532c08f
MK
19682003-06-15 Mark Kettenis <kettenis@gnu.org>
1969
1970 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
1971 Move floating-point code to new function in i387-tdep.c.
1972 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
1973 New functions containing code moved here from i386-tdep.c.
1974 * i387-tdep.h: Add opaque declaration for `struct type'.
1975 (i387_register_to_value, i387_value_to_register): New prototypes.
1976 * x86-64-tdep.c (x86_64_convert_register_p): New function.
1977 (x86_64_init_abi): Set convert_register_p, register_to_value and
1978 value_to_register here.
8ffd9b1b 1979
42c466d7
AC
19802003-06-14 Andrew Cagney <cagney@redhat.com>
1981
1982 * mips-tdep.c (mips_register_to_value): Make static.
1983 (mips_value_to_register): Make static.
1984 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
1985 * ia64-tdep.c (ia64_register_raw_size): Make static.
1986 (ia64_register_virtual_size): Make static.
1987 (ia64_register_byte): Make static.
1988 * i387-tdep.c: Include "i387-tdep.h".
1989 (print_387_control_word): Delete function.
1990 (print_387_status_word): Delete function.
1991 (print_387_status_bits): Delete function.
1992 (print_387_control_bits): Delete function.
1993 * Makefile.in (i387-tdep.o): Update dependencies.
1994 * rdi-share/host.h (Fail): Declare.
1995 * remote-rdi.c (Fail): Update to match declaration.
1996
2a9cda49
AC
19972003-06-14 Andrew Cagney <cagney@redhat.com>
1998
1999 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2000 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2001 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2002 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2003 * README: Delete reference to remote-array.
2004 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2005 (remote-array.o): Delete target.
2006 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2007 * remote-array.c: Delete file.
2008
ff2e87ac
AC
20092003-06-14 Andrew Cagney <cagney@redhat.com>
2010 Mark Kettenis <kettenis@gnu.org>
2011
2012 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2013 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2014 parameter with "frame".
2015 * gdbarch.h, gdbarch.c: Re-generate.
2016 * frame.h (put_frame_register): Declare.
2017 * frame.c (put_frame_register): New function.
2018 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2019 (legacy_register_to_value): Rewrite, use "frame" to get the
2020 register value.
2021 (legacy_value_to_register): Rewrite, use "frame" to find the
2022 register's location before storing.
2023 * arch-utils.h (legacy_convert_register_p): Update.
2024 (legacy_register_to_value, legacy_value_to_register): Update.
2025 * findvar.c (value_from_register): Rewrite, eliminate use of
2026 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2027 "frame" to REGISTER_TO_VALUE.
2028 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2029 lval_reg_frame_relative + lval_register branch of the switch. Do
2030 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2031 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2032 I386_EDI_REGNUM): New defines.
2033 (i386_next_regnum, i386_convert_register_p,
2034 i386_register_to_value, i386_value_to_register): New functions.
2035 (i386_register_convertible, i386_register_convert_to_virtual,
2036 i386_convert_to_raw): Remove functions.
2037 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2038 value_to_register instead of register_convertible,
2039 register_convert_to_virtual and register_convert_to_raw.
2040 * mips-tdep.c (mips_convert_register_p): New function.
2041 (mips_value_to_register): Replace mips_register_convert_from_type.
2042 (mips_register_to_value): Replace mips_register_convert_to_type.
2043 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2044 register_to_value.
2045 * alpha-tdep.c (alpha_convert_register_p): Update.
2046 (alpha_value_to_register): Update, store the register.
2047 (alpha_register_to_value): Update, fetch the register.
2048
98be1e77
TR
20492003-06-14 Theodore A. Roth <troth@openavr.org>
2050
2051 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2052 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2053 Don't set deprecated_call_dummy_words.
2054 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2055 Don't set remote_translate_xfer_address.
2056 (avr_io_reg_read_command): Remove commented out debug printf.
2057 Wrap a long line.
2058
57bc6122
TR
20592003-06-14 Theodore A. Roth <troth@openavr.org>
2060
2061 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2062 causes gdb to seg fault.
2063
eb01fc62
DJ
20642003-06-14 Daniel Jacobowitz <drow@mvista.com>
2065
2066 * sparc-nat.c (fetch_inferior_registers): Correct
2067 a reference to "registers".
2068
3b3e6bee
DJ
20692003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2070
2071 * Makefile.in (exc_request_U_h): Define
2072 (exc_request_S_h): Likewise.
2073 (msg_reply_S_h): Likewise.
2074 (msg_U_h): Likewise.
2075 (notify_S_h): Likewise.
2076 (process_reply_S_h): Likewise.
2077 (gnu-nat.o): Depend on gdb_obstack_h
2078 * gnu-nat.c: Include "gdb_obstack.h".
2079
b8de8283
AC
20802003-06-13 Andrew Cagney <cagney@redhat.com>
2081
2082 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2083 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 2084
f3be58bc
AC
20852003-06-13 Andrew Cagney <cagney@redhat.com>
2086
2087 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2088 when deprecated REGISTER macros can be deleted.
2089 * gdbarch.h, gdbarch.c: Re-generate.
2090
4c0122c8
JB
20912003-06-13 Jim Blandy <jimb@redhat.com>
2092
2093 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2094 Linux entry point symbols for _dl_debug_state, too.
2095
3e210248
AC
20962003-06-13 Andrew Cagney <cagney@redhat.com>
2097
2098 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2099 available, do not use the FP register, and always save the TOS.
2100 * dummy-frame.c (dummy_frame_this_id): Do not assert
2101 SAVE_DUMMY_FRAME_TOS.
2102 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2103 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2104 (i386_push_dummy_call): Add 8 to the returned SP.
2105 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2106 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2107 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2108 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2109 (x86_64_push_dummy_call): Return "sp + 16".
2110 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2111 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2112 save_dummy_frame_tos.
2113
0b65af49
JB
21142003-06-13 Jim Blandy <jimb@redhat.com>
2115
2116 * frv-tdep.c (frv_use_struct_convention): Delete static
2117 declaration for function deleted in my change of 2003-06-12.
2118
4ea2465e
TR
21192003-06-13 Theodore A. Roth <troth@openavr.org>
2120
2121 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2122 (avr_pointer_to_address): Shift code addrs left 1 bit.
2123 (avr_convert_from_func_ptr_addr): Delete function since operation is
2124 better handled by avr_address_to_pointer and avr_pointer_to_address.
2125 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2126
1581182a
MK
21272003-06-13 Mark Kettenis <kettenis@gnu.org>
2128
2129 From Kelley Cook <kelleycook@wideopenwest.com>:
2130 * configure.host: Accept i[34567]86 variants.
2131 * configure.tgt: Likewise.
2132 * nlm/configure.in: Likewise.
2133 * nlm/configure: Regenerated.
2134
7aa1783e
RE
21352003-06-13 Richard Earnshaw <rearnsha@arm.com>
2136
2137 * arm-tdep.c (solib-svr4.h): Dont' include it.
2138 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2139 * arm-linux-tdep.c: ... here. Make static.
2140 (arm_linux_init_abi): Register it.
2141 (solib-svr4.h): Include it.
2142 * Makefile.in: Update dependencies.
2143 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2144 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2145
0261a0d0
CV
21462003-06-13 Corinna Vinschen <vinschen@redhat.com>
2147
2148 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2149 indicate registers used for return values.
2150 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2151 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2152 members.
2153 (h8300_init_extra_frame_info): Ditto.
2154 (h8300_frame_locals_address): Removed.
2155 (h8300_frame_args_address): Removed.
2156 (h8300_extract_return_value): Use new regcache structure. Only care
2157 for 16 bit CPUs.
2158 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2159 (h8300_store_return_value): Use new regcache structure. Only care
2160 for 16 bit CPUs.
2161 (h8300h_store_return_value): Same function for 32 bit CPUs.
2162 (h8300_store_struct_return): Removed.
2163 (h8300_extract_struct_value_address): Use new regcache structure.
2164 (h8300h_extract_struct_value_address): Removed.
2165 (h8300_push_dummy_code): New function.
2166 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2167 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2168 set_gdbarch_store_return_value architecture dependent.
2169 Call set_gdbarch_push_dummy_code and
2170 set_gdbarch_extract_struct_value_address.
2171 Remove calls to set_gdbarch_frame_args_address,
2172 set_gdbarch_frame_locals_address,
2173 set_gdbarch_deprecated_store_struct_return,
2174 set_gdbarch_deprecated_extract_return_value,
2175 set_gdbarch_deprecated_extract_struct_value_address,
2176 set_gdbarch_deprecated_call_dummy_words and
2177 set_gdbarch_deprecated_sizeof_call_dummy_words.
2178
055c394a
CV
21792003-06-13 Corinna Vinschen <vinschen@redhat.com>
2180
2181 * h8300-tdep.c (h8300_register_byte): Remove.
2182 (h8300h_register_byte): Remove.
2183 (h8300_register_virtual_type): Remove. Substitute by...
2184 (h8300_register_type): New function.
2185 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2186 (h8300h_extract_struct_value_address): Ditto.
2187 (h8300_gdbarch_init): Drop calls to
2188 set_gdbarch_deprecated_register_byte and
2189 set_gdbarch_deprecated_register_virtual_type.
2190 Add call to set_gdbarch_register_type.
2191
9c04cab7
AC
21922003-06-13 Andrew Cagney <cagney@redhat.com>
2193
2194 * gdbarch.sh: Update comments on registers.
2195 (deprecated_register_byte): Rename register_byte.
2196 (deprecated_register_raw_size): Rename register_raw_size.
2197 (deprecated_register_virtual_size): Rename register_virtual_size.
2198 (deprecated_register_virtual_type): Rename register_virtual_type.
2199 * gdbarch.h, gdbarch.c: Re-generate.
2200 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2201 * vax-tdep.c (vax_gdbarch_init): Update.
2202 * v850-tdep.c (v850_gdbarch_init): Update.
2203 * sparc-tdep.c (sparc_gdbarch_init): Update.
2204 * sh-tdep.c (sh_gdbarch_init): Update.
2205 * s390-tdep.c (s390_gdbarch_init): Update.
2206 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2207 * ns32k-tdep.c: Update.
2208 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2209 * mips-tdep.c (mips_gdbarch_init): Update.
2210 * mcore-tdep.c (mcore_gdbarch_init): Update.
2211 * m68k-tdep.c (m68k_gdbarch_init): Update.
2212 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2213 * ia64-tdep.c (ia64_gdbarch_init): Update.
2214 * hppa-tdep.c (hppa_gdbarch_init): Update.
2215 * h8300-tdep.c (h8300_gdbarch_init): Update.
2216 * frv-tdep.c (frv_gdbarch_init): Update.
2217 * cris-tdep.c (cris_gdbarch_init): Update.
2218 * avr-tdep.c (avr_gdbarch_init): Update.
2219 * alpha-tdep.c (alpha_gdbarch_init): Update.
2220 * arm-tdep.c (arm_gdbarch_init): Update.
2221
b060cbea
AC
22222003-06-13 Andrew Cagney <cagney@redhat.com>
2223
2224 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2225 mips_o32_use_struct_convention with always_use_struct_convention.
2226
0fc9922a
DC
22272003-06-12 David Carlton <carlton@kealia.com>
2228
2229 * cp-namespace.c (cp_set_block_scope): Comment out
2230 processing_has_namespace_info branch.
2231
1fd35568
JB
22322003-06-12 Jim Blandy <jimb@redhat.com>
2233
f470a70a
JB
2234 Recognize and skip 64-bit PowerPC Linux linkage functions.
2235 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2236 insn_pattern, insns_match_pattern, d_field, ds_field): New
2237 functions, macros, and types for working with PPC instructions.
2238 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2239 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2240 ppc64_skip_trampoline_code): New functions, variables, and macros
2241 for recognizing and skipping linkage functions.
2242 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2243 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2244
49ff75ad
JB
2245 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2246 register offsets for both the 32- and 64-bit interfaces.
2247
bd918c83
JB
2248 Actually finish the job started by my change of 2003-05-29.
2249 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2250 other #definition of this.
2251 (ppc_linux_skip_trampoline_code): Remove declaration.
2252 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2253 static.
2254 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2255 method for GDBARCH.
2256
2257 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2258 'long' on ppc64-*-linux*.
2259
f8c59253
JB
2260 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2261 isn't #defined, assume the register doesn't exist: act as if
2262 tdep->ppc_mq_regnum were -1.
2263
8fbb30b1
JB
2264 * configure.host, configure.tgt: Add entries for
2265 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2266 powerpc/linux.mt.
2267 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2268 New files.
2269
1fd35568
JB
2270 * arch-utils.c (always_use_struct_convention): New function.
2271 * arch-utils.h (always_use_struct_convention): New prototype.
2272 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2273 (alpha_gdbarch_init): Register always_use_struct_convention,
2274 instead of alpha_use_struct_convention.
2275 * cris-tdep.c (cris_use_struct_convention): Delete.
2276 (cris_gdbarch_init): Register always_use_struct_convention,
2277 instead of cris_use_struct_convention.
2278 * frv-tdep.c (frv_use_struct_convention): Delete.
2279 (frv_gdbarch_init): Register always_use_struct_convention,
2280 instead of frv_use_struct_convention.
2281 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2282 (h8300_gdbarch_init): Register always_use_struct_convention,
2283 instead of h8300_use_struct_convention.
e3305dd9 2284 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
2285 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2286 instead of mips_o32_use_struct_convention.
2287
e14e6e9c
AC
22882003-06-12 Andrew Cagney <cagney@redhat.com>
2289
2290 * wince.c: Include "mips-tdep.h".
2291 * mips-tdep.h (mips_next_pc): Declare.
2292 * mcore-tdep.c: Make more local functions static.
2293 * Makefile.in (wince.o): Update dependencies.
2294
2335f48e
DC
22952003-06-12 David Carlton <carlton@kealia.com>
2296
2297 * symtab.c (lookup_symbol_aux_minsyms): Replace
2298 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2299 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2300 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2301 SYMBOL_NATURAL_NAME.
2302
f70a7d61
AS
23032003-06-12 Andreas Schwab <schwab@suse.de>
2304
2305 * Makefile.in (tuiDisassem.o): Update dependencies.
2306
b6429628
DC
23072003-06-12 David Carlton <carlton@bactrian.org>
2308
2309 * symtab.h: Delete declaration of make_symbol_overload_list.
2310 Add declaration of lookup_partial_symbol.
2311 * symtab.c (remove_params): Move to cp-support.c.
2312 (overload_list_add_symbol, make_symbol_overload_list)
2313 (sym_return_val_size, sym_return_val_index): Ditto.
2314 (lookup_partial_symbol): Make extern.
2315 * cp-support.h: Add declaration of make_symbol_overload_list.
2316 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2317 symtab.h, and block.h.
2318 (remove_params): Move here from symtab.c.
2319 (overload_list_add_symbol, make_symbol_overload_list)
2320 (sym_return_val_size, sym_return_val_index): Ditto.
2321 * valops.c: Include cp-support.h.
2322 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2323 frame_h, and block_h.
2324 (valops.o): Depend on cp_support_h.
2325
084edea5
CV
23262003-06-12 Corinna Vinschen <vinschen@redhat.com>
2327
2328 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2329 substitute by NUM_REGS throughout.
2330 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2331 (h8300s_register_name): New function for H8S registers.
2332 (h8300sx_register_name): Ditto for H8SX registers.
2333 (h8300_print_register): Revise register printing, avoid depending
2334 on 32 bit long.
0261a0d0 2335 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
2336 (h8300h_register_byte): New function for any other architecture.
2337 (h8300_register_raw_size): Remove.
2338 (h8300_register_virtual_type): Revise to return actually useful
2339 type.
2340 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2341 (h8300h_extract_struct_value_address): New function for any other
2342 architecture.
2343 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2344 set_gdbarch_register_name, set_gdbarch_register_byte,
2345 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2346 Remove calls to set_gdbarch_deprecated_register_size,
2347 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2348 set_gdbarch_deprecated_max_register_raw_size,
2349 set_gdbarch_register_virtual_size and
2350 set_gdbarch_deprecated_max_register_virtual_size entirely.
2351 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2352 set_gdbarch_long_double_bit.
2353
06194148
JJ
23542003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2355
8ffd9b1b
AJ
2356 * doublest.c (convert_doublest_to_floatformat): When dealing
2357 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
2358 processing a full 32 bits of mantissa.
2359
de4f826b
DC
23602003-06-11 David Carlton <carlton@bactrian.org>
2361
2362 * dictionary.h: New.
2363 * dictionary.c: New.
2364 * block.h: Add opaque declaration for struct dictionary.
2365 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2366 'sym' members.
2367 (BLOCK_DICT): New macro.
2368 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2369 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2370 BLOCK_SHOULD_SORT.
2371 (ALL_BLOCK_SYMBOLS): Update definition.
2372 * Makefile.in (SFILES): Add dictionary.c.
2373 (dictionary_h): New.
2374 (COMMON_OBS): Add dictionary.o.
2375 (dictionary.o): New.
2376 (ada-lang.o): Depend on dictionary_h.
2377 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2378 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2379 (mi-cmd-stack.o): Ditto.
2380 (gdbtk-cmds.o): Update dependencies.
2381 (gdbtk-stack.o): Ditto.
2382 * ada-lang.c: Include dictionary.h.
2383 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2384 (fill_in_ada_prototype, debug_print_block): Ditto.
2385 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2386 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
2387 'is_sorted'.
2388 * mdebugread.c: Include dictionary.h.
2389 (struct parse_stack): Delete 'maxsyms' member.
2390 (parse_symbol): Update calls to new_block. Delete calls to
2391 shrink_block. Use dictionary methods.
2392 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2393 Update calls to new_symtab. Don't maintain maxsyms data.
2394 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2395 (add_symbol): Just call dict_add_symbol.
2396 (new_symtab): Delete 'maxsyms' argument.
2397 (new_symtab): Update calls to new_block.
2398 (new_block): Delete 'maxsyms' argument; add 'function' argument.
2399 (shrink_block): Delete function.
2400 (fixup_sigtramp): Update call to new_block. Add symbol via
2401 dict_add_symbol.
2402 * jv-lang.c: Include dictionary.h.
2403 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2404 appropriately. Set class_symtab->free_func. Make sure the
2405 blockvector is big enough to hold two blocks.
2406 (add_class_symtab_symbol): Use dictionary methods.
2407 (free_class_block): New function.
2408 (type_from_class): Replace explicit iteration by
2409 ALL_BLOCK_SYMBOLS.
2410 * symtab.h (struct symtab): Replace 'free_ptr' method by
2411 'free_func'.
2412 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2413 sort_symtab_syms.
2414 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2415 sort_symtab_syms.
2416 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2417 Include dictionary.h.
2418 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2419 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2420 sort_symtab_syms.
2421 * objfiles.c: Include dictionary.h.
2422 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2423 * buildsym.c: Include dictionary.h.
2424 (finish_block): Use dictionary methods.
2425 (end_symtab): Set free_func to NULL, not free_ptr.
2426 * tracepoint.c: Include dictionary.h.
2427 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2428 (scope_info): Ditto.
2429 * stack.c: Include dictionary.h.
2430 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2431 (print_block_frame_labels, print_frame_arg_vars)
2432 (print_frame_args): Ditto.
2433 * symmisc.c (free_symtab_block): Use dictionary methods.
2434 (dump_symtab): Ditto.
2435 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2436 Include dictionary.h.
2437 * symfile.h: Delete declarations of sort_block_syms,
2438 sort_symtab_syms.
2439 * symfile.c (sort_block_syms): Delete.
2440 (sort_symtab_syms): Delete.
2441 * symtab.c: Include dictionary.h.
2442 (lookup_block_symbol): Use dictionary iterators.
2443 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2444 (search_symbols, make_symbol_completion_list): Ditto.
2445 (make_symbol_overload_list): Ditto.
2446 * valops.c (value_of_local): Use dict_empty.
2447 Include dictionary.h.
2448
a31f978c
JB
24492003-06-11 J. Brobecker <brobecker@gnat.com>
2450
2451 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2452
526e70c0
DC
24532003-06-11 David Carlton <carlton@bactrian.org>
2454
2455 * block.h (BLOCK_SHOULD_SORT): Delete.
2456 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2457 blocks.
2458 * ada-lang.c (ada_add_block_symbols): Ditto.
2459 * symfile.c (sort_block_syms): Delete.
2460 (sort_symtab_syms): Ditto.
2461 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2462 declarations.
2463 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2464 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2465 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2466 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2467 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2468 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2469 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2470
33c08150
JJ
24712003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2472
8ffd9b1b 2473 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
2474 bits to 128.
2475
781a750d
AC
24762003-06-11 Andrew Cagney <cagney@redhat.com>
2477
2478 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2479 REGISTER_CONVERTIBLE.
2480 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2481 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2482 * gdbarch.h, gdbarch.c: Re-generate.
2483 * arch-utils.h (deprecated_register_convertible_not): Rename
2484 generic_register_convertible_not.
2485 * arch-utils.c (deprecated_register_convertible_not): Rename
2486 generic_register_convertible.
2487 (legacy_convert_register_p, legacy_register_to_value): Update.
2488 * sh-tdep.c (sh64_push_arguments): Update.
2489 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2490 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2491 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2492 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2493 * arch-utils.c (legacy_value_to_register): Update.
2494 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2495 (rs6000_register_convert_to_raw): Make parameter "from" const.
2496 * mips-tdep.c (mips_gdbarch_init): Update.
2497 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
2498 * infcmd.c (default_print_registers_info): Update.
2499 * ia64-tdep.c (ia64_gdbarch_init): Update.
2500 (ia64_register_convert_to_raw): Make parameter "from" const.
2501 * i386-tdep.c (i386_gdbarch_init): Update.
2502 (i386_register_convert_to_raw): Update.
2503
cd90e54f
AC
25042003-06-11 Andrew Cagney <cagney@redhat.com>
2505
2506 * remote-fileio.c: Include "remote-fileio.h".
2507 * Makefile.in (remote-fileio.o): Update dependencies.
2508 (remote_fileio_h): Fix typo.
2509
a78f21af
AC
25102003-06-11 Andrew Cagney <cagney@redhat.com>
2511
2512 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
2513 (xstormy16_save_dummy_frame_tos): Make static.
2514 (_initialize_xstormy16_tdep): Add declaration.
2515 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2516 * v850-tdep.c: Make local functions static.
2517 (_initialize_v850_tdep): Add declaration.
2518 * sparc-tdep.c: Make local functions static.
2519 (_initialize_sparc_tdep): Add declaration.
2520 * sh-tdep.c: Make local functions static.
2521 (_initialize_sh_tdep): Add declaration.
2522 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
2523 * s390-tdep.c: Make local functions static.
2524 (_initialize_s390_tdep): Add declaration.
2525 * dbxread.c (find_stab_function_addr): Make static.
2526 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
2527 * ocd.c (_initialize_remote_ocd): Add declaration.
2528 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
2529 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
2530 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
2531 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
2532 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2533 * remote-array.c (_initialize_array): Add declaration.
2534 (_initialize_remote_monitors): Add declaration.
2535 * remote-mips.c: Make local functions static.
2536 (_initialize_remote_mips): Add declaration.
2537 * mcore-tdep.c: Make all local functions static.
2538 (_initialize_mcore_tdep): Add declaration.
2539 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
2540 * abug-rom.c (_initialize_abug_rom): Add declaration.
2541 * rom68k-rom.c (_initialize_rom68k): Add declaration.
2542 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
2543 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2544 * remote-est.c (_initialize_est): Add declaration.
2545 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2546 (m68hc11_call_dummy_address): Make static.
2547 * ia64-tdep.c: Make local functions static.
2548 (_initialize_ia64_tdep): Add declaration.
2549 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
2550 * monitor.c (monitor_wait_filter): Make static.
2551 (_initialize_remote_monitors): Add declaration.
2552 * remote-hms.c (_initialize_remote_hms): Add declaration.
2553 * remote-e7000.c (fetch_regs_from_dump): Make static.
2554 (expect_n): Make static.
2555 (_initialize_remote_e7000): Add declaration.
2556 * ser-e7kpc.c: Always include "defs.h".
2557 (_initialize_ser_e7000pc): Add declaration.
2558 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
2559 * cris-tdep.c: Make all but one function static.
2560 (_initialize_cris_tdep): Add declaration.
2561 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
2562 * solib.c (update_solib_list): Make static.
2563 (_initialize_solib): Add declaration.
2564 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
2565 (_initialize_avr_tdep): Add declaration.
2566 * remote-rdi.c (voiddummy): Make static.
2567 (_initialize_remote_rdi): Add declaration.
2568 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
2569 * remote-rdp.c (send_rdp): Make static.
2570 (_initialize_remote_rdp): Add declaration.
2571 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
2572
cbcdb1f5
CV
25732003-06-11 Corinna Vinschen <vinschen@redhat.com>
2574
2575 * remote-fileio.c: Make ari happy.
2576
a191ea8d
JB
25772003-06-10 J. Brobecker <brobecker@gnat.com>
2578
2579 * rs6000-nat.c (child_xfer_memory): Compute the right address when
2580 fetching the trailing bytes of the buffer we are about to write.
2581
0ef75e11
AC
25822003-06-10 Andrew Cagney <cagney@redhat.com>
2583
2584 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
2585 * Makefile.in (remote-fileio.o): Update dependencies.
2586 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
2587 include <setjmp.h>, or <sys/types.h> conditional on USG.
2588 (remote_fio_jmp_buf): Delete global variable.
2589
449092f6 25902003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 2591 Martin M. Hunt <hunt@redhat.com>
449092f6 2592
559fa028
AC
2593 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
2594 (SFILES): Add remote-fileio.c.
2595 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
2596 dependencies for building remote.o.
449092f6
CV
2597 * remote-fileio.c: New file implementing the remote File-I/O protocol.
2598 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 2599 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
2600 static storage class.
2601 (remote_wait, remote_async_wait): Call remote_fileio_request() on
2602 'F' packet.
2603 (_initialize_remote): Call initialize_remote_fileio().
2604 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
2605 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2606 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2607 (captured_main): Initialize new ui_files.
2608 * ui-file.c: Add read and fgets input functions.
2609 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
2610 (null_file_read): New function.
2611 (ui_file_read): New function.
2612 (set_ui_file_read): New function.
2613 (stdio_file_read): New function.
2614 * ui-file.h: New type ui_file_read_ftype.
2615 (set_ui_file_read): Declare.
2616 (ui_file_read): Declare.
2617
248de703
AC
26182003-06-09 Andrew Cagney <cagney@redhat.com>
2619
2620 * frame.h (deprecated_unwind_get_saved_register): Rename
2621 generic_unwind_get_saved_register, update comments.
2622 * mips-tdep.c (mips_get_saved_register): Update.
2623 * frame.c (deprecated_unwind_get_saved_register): Update.
2624
0ed8aa57
AC
26252003-06-09 Andrew Cagney <cagney@redhat.com>
2626
2627 * vax-tdep.c (vax_frame_locals_address): Delete function.
2628 (vax_gdbarch_init): Do not set frame_locals_address.
2629 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
2630 (m68hc11_gdbarch_init): Do not set frame_locals_address.
2631 * s390-tdep.c (s390_frame_args_address): Delete function.
2632 (s390_gdbarch_init): Do not set frame_args_address or
2633 frame_locals_address.
2634 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
2635 (ns32k_gdbarch_init): Do not set frame_locals_address.
2636 * hppa-tdep.c (hppa_frame_args_address): Delete function.
2637 (hppa_frame_locals_address): Delete function.
2638 (hppa_gdbarch_init): Do not set frame_args_address, or
2639 frame_locals_address.
2640 * arm-tdep.c (arm_frame_args_address): Delete.
2641 (arm_frame_locals_address): Delete.
2642 (arm_gdbarch_init): Do not set frame_args_address, or
2643 frame_locals_address.
2644
983a287a
AC
26452003-06-09 Andrew Cagney <cagney@redhat.com>
2646
2647 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
2648 * gdbarch.h, gdbarch.c: Re-generate.
2649 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
2650 * arch-utils.c (frame_num_args_unknown): Delete function.
2651 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
2652 (frame_info): Use FRAME_NUM_ARGS_P.
2653 * arm-tdep.c (arm_frame_num_args): Delete function.
2654 (arm_gdbarch_init): Do not set frame_num_args.
2655 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
2656 * hppa-tdep.c (hppa_frame_num_args): Delete function.
2657 (hppa_gdbarch_init): Do not set frame_num_args.
2658 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
2659 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2660 frame_num_args to default frame_num_args_unknown.
2661 * v850-tdep.c (v850_gdbarch_init): Ditto.
2662 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2663 * sh-tdep.c (sh_gdbarch_init): Ditto.
2664 * s390-tdep.c (s390_gdbarch_init): Ditto.
2665 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2666 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2667 * mips-tdep.c (mips_gdbarch_init): Ditto.
2668 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2669 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2670 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2671 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2672 * i386-tdep.c (i386_gdbarch_init): Ditto.
2673 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2674 * frv-tdep.c (frv_gdbarch_init): Ditto.
2675 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2676 * cris-tdep.c (cris_gdbarch_init): Ditto.
2677 * avr-tdep.c (avr_gdbarch_init): Ditto.
2678 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2679
8d3b0994
AC
26802003-06-09 Andrew Cagney <cagney@redhat.com>
2681
2682 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
2683 (print_frame_args): Moved to "stack.c".
2684 * stack.c: Include "gdb_assert.h".
2685 (print_frame_nameless_args): Moved from "printcmd.c", made static.
2686 (print_frame_args): Moved from "printcmd.c".
2687 * frame.h (print_frame_args): Delete declaration.
2688 * Makefile.in (stack.o): Update dependencies.
2689
25e3a86b
AC
26902003-06-08 Andrew Cagney <cagney@redhat.com>
2691
2692 * frame.c (get_prev_frame): Remove reference to
2693 frame_args_address_correct in comments.
2694 * frame-base.c (default_frame_args_address): Delete code
2695 conditional on FRAME_ARGS_ADDRESS_CORRECT.
2696 * vax-tdep.c (vax_frame_args_address_correct): Delete.
2697 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
2698 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
2699 (vax_frame_args_address_correct): Delete declaration.
2700
a9e5fdc2
AC
27012003-06-08 Andrew Cagney <cagney@redhat.com>
2702
2703 * gdbarch.sh (UNWIND_SP): Add.
2704 * gdbarch.h, gdbarch.c: Re-generate.
2705 * frame.c (frame_sp_unwind): New function.
2706 (get_frame_sp): New function.
2707 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
2708 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
2709 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
2710 value.
2711 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
2712 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
2713
8983bd83
AC
27142003-06-08 Andrew Cagney <cagney@redhat.com>
2715
7fec2c59
AC
2716 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
2717 REMOTE_BREAKPOINT.
2718 * remote.c: Update.
2719 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
2720 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
2721 * config/m68k/tm-sun3.h: Update.
2722 * config/m68k/tm-m68klynx.h: Update.
2723 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
2724
8983bd83
AC
2725 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
2726 trad_frame". Update comments.
2727 * d10v-tdep.c (struct d10v_unwind_cache): Update.
2728 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
2729 (trad_frame_register_value, trad_frame_prev_register): Update.
2730
b9362cc7
AC
27312003-06-08 Andrew Cagney <cagney@redhat.com>
2732
2733 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
2734 from GCC's acinclude.m4.
2735 * configure.in: Check for getopt's delcaration.
8ffd9b1b 2736 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
2737 * main.c (error_init): Delete declaration.
2738 * defs.h (error_init): Declare.
2739 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
2740 (rs6000_convert_from_func_ptr_addr): Make static.
2741 (_initialize_rs6000_tdep): Add declaration.
2742 * cli/cli-cmds.c (dont_repeat): Delete declaration.
2743 (show_commands, set_verbose, show_history): Delete declaration.
2744 * top.h (set_verbose): Add declaration.
2745 (show_history, set_history, show_commands): Add declaration.
2746 (do_restore_instream_cleanup): Add declaration.
2747 * objc-lang.c (specialcmp): Make static.
2748 (print_object_command): Make static.
2749 (find_objc_msgsend): Make static.
2750 (find_objc_msgcall_submethod_helper): Make static.
2751 (find_objc_msgcall_submethod): Make static.
2752 (_initialize_objc_language): Add declaration.
2753 (find_implementation_from_class): Make static.
2754 (find_implementation): Make static.
2755 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
2756 * objc-lang.h (lookup_struct_typedef): Add declaration.
2757 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
2758 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
2759 (do_restore_user_call_depth): Make static.
2760 (do_restore_instream_cleanup): Delete declaration.
2761 (dont_repeat): Delete declaration.
2762 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
2763 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
2764 * reggroups.c (_initialize_reggroup): Add declaration.
2765 * cp-support.c (_initialize_cp_support): Add declaration.
2766 * cp-abi.c (_initialize_cp_abi): Add declaration.
2767 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
2768 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
2769 (_initialize_gnu_v3_abi): Add declaration.
2770 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
2771 (_initialize_gnu_v2_abi): Add declaration.
2772 * frame-base.c (_initialize_frame_base): Add declaration.
2773 * doublest.c (floatformat_from_length): Make static.
2774 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
2775 * frame.c (create_sentinel_frame): Make static.
2776 (_initialize_frame): Add declaration.
2777 * top.c (do_catch_errors): Make static.
2778 (gdb_rl_operate_and_get_next_completion): Make static.
2779 * typeprint.c: Include "typeprint.h".
2780 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
2781 (sentinel_frame_this_id): Make static.
2782 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
2783 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
2784 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
2785 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
2786 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
2787 * maint.c (maintenance_print_architecture): Make static.
2788 * signals/signals.c (_initialize_signals): Add declaration.
2789 * std-regs.c (_initialize_frame_reg): Add declaration.
2790 * jv-exp.y (push_variable): ISO C definition.
2791 (push_qualified_expression_name): Ditto.
2792 * memattr.c (_initialize_mem): Add declaration.
2793 * remote.c (remote_check_watch_resources): Make static.
2794 (remote_stopped_by_watchpoint): Make static.
2795 (remote_stopped_data_address): Make static.
2796 * d10v-tdep.c (nr_dmap_regs): Make static.
2797 (a0_regnum): Make static.
2798 (d10v_frame_unwind_cache): Make static.
2799 (d10v_frame_p): Make static.
2800 * osabi.c (show_osabi): Make static.
2801 (_initialize_gdb_osabi): Add extern declaration.
2802 * gdbtypes.c (make_qualified_type): Make static.
2803 (safe_parse_type): Make static.
2804 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
2805 * macrotab.c (macro_bcache_free): Make static.
2806 * interps.c (interp_set_quiet): Make static.
2807 (interpreter_exec_cmd): Make static.
2808 * stack.h (select_frame_command): New file.
2809 * stack.c: Include "stack.h".
2810 (select_frame_command_wrapper): Delete function.
2811 (select_frame_command): Make global.
2812 * infcall.c: Include "infcall.h".
2813 * linespec.c: Include "linespec.h".
2814 * symfile.c (sections_overlap): Make static.
2815 * cp-support.h (cp_initialize_namespace): ISO C declaration.
2816 * charset.c (_initialize_charset): Add missing prototype.
2817 * regcache.c (init_legacy_regcache_descr): Make static.
2818 (do_regcache_xfree): Make static.
2819 (regcache_xfer_part): Make static.
2820 (_initialize_regcache): Add missing prototype.
2821 * breakpoint.c (parse_breakpoint_sals): Make static.
2822 (breakpoint_sals_to_pc): Make static.
2823 * interps.h (clear_interpreter_hooks): ISO C declaration.
2824 * Makefile.in (stack_h): Define.
2825 (stack.o, typeprint.o, mi-main.o): Update dependencies.
2826 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
2827
a0f267c7
AC
28282003-06-08 Andrew Cagney <cagney@redhat.com>
2829
2830 * Makefile.in (d10v-tdep.o): Update dependencies.
2831 (SFILES): Add trad-frame.c.
2832 (trad_frame_h): Define.
2833 (COMMON_OBS): Add trad-frame.o.
2834 (trad-frame.o): Specify dependencies.
2835 * d10v-tdep.c: Include "trad-frame.h".
2836 (saved_regs_unwinder): Delete function.
2837 (d10v_frame_prev_register): Use trad_frame_prev_register.
2838 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
2839 trad_frame", delete "regs" and "prev_sp".
2840 (prologue_find_regs): Use trad-frame.
2841 * trad-frame.h, trad-frame.c: New files.
2842
4538b4f4
MK
28432003-06-08 Mark Kettenis <kettenis@gnu.org>
2844
2845 * dwarf2cfi.c, dwarf2cfi.h: Remove.
2846
a0273b2f
AF
28472003-06-07 Adam Fedor <fedor@gnu.org>
2848
2849 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
2850 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
2851 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
2852 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 2853 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
2854 Use it.
2855
3a6c3343
AC
28562003-06-07 Andrew Cagney <cagney@redhat.com>
2857
2858 * symfile.h: Re-indent, clean up comments.
2859
b46e02f6
AC
28602003-06-07 Andrew Cagney <cagney@redhat.com>
2861
2862 * inferior.h (deprecated_write_sp): Replace
2863 generic_target_write_sp.
2864 * regcache.c (deprecated_write_sp): Replace
2865 generic_target_write_sp.
2866 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2867 * vax-tdep.c (vax_gdbarch_init): Update.
2868 * v850-tdep.c (v850_gdbarch_init): Update.
2869 * sparc-tdep.c (sparc_gdbarch_init): Update.
2870 * sh-tdep.c (sh_gdbarch_init): Update.
2871 * s390-tdep.c (s390_gdbarch_init): Update.
2872 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2873 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2874 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2875 * mcore-tdep.c (mcore_gdbarch_init): Update.
2876 * m68k-tdep.c (m68k_gdbarch_init): Update.
2877 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2878 * ia64-tdep.c (ia64_gdbarch_init): Update.
2879 * h8300-tdep.c (h8300_gdbarch_init): Update.
2880 * frv-tdep.c (frv_gdbarch_init): Update.
2881 * cris-tdep.c (cris_gdbarch_init): Update.
2882 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
2883
a42e117c
AC
28842003-06-07 Andrew Cagney <cagney@redhat.com>
2885
2886 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
2887 Assert that PC_REGNUM is valid.
2888 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
2889
bd1ce8ba
AC
28902003-06-07 Andrew Cagney <cagney@redhat.com>
2891
2892 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
2893 * gdbarch.h, gdbarch.c: Regenerate.
2894 * mn10300-tdep.c: Include "gdb_assert.h".
2895 (mn10300_read_fp): New function.
2896 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
2897 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
2898 * ia64-tdep.c: Include "gdb_assert.h".
2899 (ia64_read_fp): New function.
2900 (ia64_gdbarch_init): Set deprecated_target_read_fp to
2901 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
2902 * regcache.c (generic_target_read_sp): Delete function.
2903 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
2904 * inferior.h (generic_target_read_sp): Delete declaration.
2905 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
2906 generic_target_read_sp.
2907 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2908 * sparc-tdep.c (sparc_gdbarch_init): Ditto
2909 * sh-tdep.c (sh_gdbarch_init): Ditto.
2910 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2911 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
2912
ec5cbaec
AC
29132003-06-07 Andrew Cagney <cagney@redhat.com>
2914
2915 * gdbarch.sh: Comment each field of startup_gdbarch.
2916 * gdbarch.h, gdbarch.c: Re-generate.
2917
cde9ea48
AC
29182003-06-07 Andrew Cagney <cagney@redhat.com>
2919
2920 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
2921 * gdbarch.h, gdbarch.c: Re-generate.
2922 * regcache.c: Update comments on read_pc et.al.
2923 (generic_target_read_pc): Delete function.
2924 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
2925 * inferior.h (generic_target_read_pc): Delete declaration.
2926 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
2927 generic_target_read_pc.
2928 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2929 * sh-tdep.c (sh_gdbarch_init): Ditto.
2930 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2931 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 2932
9a90a780
AC
29332003-06-07 Andrew Cagney <cagney@redhat.com>
2934
2935 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
2936 "index" with "special_local_sect". Use strcmp instead of STREQ.
2937 Append period to coments.
2938
a39a16c4
MM
29392003-06-06 Mark Mitchell <mark@codesourcery.com>
2940
2941 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
2942 (elfstab_offset_sections): Likewise.
2943 * gdb-stabs.h (stab_section_info): Likewise.
2944 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
2945 * objfiles.c (objfile_relocate): Likewise.
2946 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
2947 * remote.c (get_offsets): Likewise.
2948 (remote_cisco_objfile_relocate): Likewise.
2949 * somread.c (som_symfile_offsets): Likewise.
2950 * symfile.c (alloc_section_addr_info): New function.
2951 (build_section_addr_info_from_section_tab): Use it.
2952 (free_section_addr_info): Adjust.
2953 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
2954 (syms_from_objfile): Allocate local_addr dynamically.
2955 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
2956 dynamically.
2957 (add_symbol_file_command): Allocate sect_opts dynamically.
2958 (reread_symbols): Avoid use of SECT_OFF_MAX.
2959 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
2960 (alloc_section_addr_info): Declare it.
2961 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
2962 * win32-nat.c (solib_symbols_add): Allocate section_addrs
2963 dynamically.
2964 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 2965
20c6c2f8
AC
29662003-06-06 Andrew Cagney <cagney@redhat.com>
2967
2968 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
2969 (d10v_frame_unwind_cache): Do not set "return_pc".
2970
884a26c8
MS
29712003-06-06 Michael Snyder <msnyder@redhat.com>
2972
2973 * h8300-tdep.c: Make tidy (long lines).
2974
088ce440
ML
29752003-06-06 Michal Ludvig <mludvig@suse.cz>
2976
8ffd9b1b 2977 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
2978 to regcache_collect().
2979
7d773d96
JB
29802003-06-05 J. Brobecker <brobecker@gnat.com>
2981
2982 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
2983 pc_in_sigtramp multiarch method.
2984 (hppa_hpux_som_init_abi): Use it.
2985 (hppa_hpux_elf_init_abi): Likewise.
2986 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
2987 macro has been multiarched.
2988 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
2989 macro here, as hppa64 isn't multiarched yet.
2990
1df6926e
AC
29912003-06-05 Andrew Cagney <cagney@redhat.com>
2992
2993 * Makefile.in (value_h): Add $(frame_h).
2994 * value.h: Include "frame.h".
2995 (struct value): Replace "frame_addr" with "frame_id".
2996 (VALUE_FRAME_ID): Replace VALUE_FRAME.
2997 * values.c (allocate_value): Use VALUE_FRAME_ID.
2998 (value_copy): Use VALUE_FRAME_ID.
2999 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3000 * valops.c (value_assign): Update. Use frame_find_by_id.
3001
6b53acc6
ML
30022003-06-05 Michal Ludvig <mludvig@suse.cz>
3003
3004 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3005 in each pass.
3006
4d9850d3
JJ
30072003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3008
3009 * thread-db.c (check_event): For create/death event breakpoints,
3010 loop through all messages to ensure that we read the message
3011 corresponding to the breakpoint we are at.
3012
8efca6ba
MS
30132003-06-04 Michael Snyder <msnyder@redhat.com>
3014
3015 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3016
0912c7f2
MK
30172003-06-04 Mark Kettenis <kettenis@gnu.org>
3018
3019 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3020 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3021 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3022 when handling .eh_frame sections.
3023
4e370325
JB
30242003-06-04 J. Brobecker <brobecker@gnat.com>
3025
3026 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3027 prepare_to_proceed procedure instead of the hppa-specific one.
3028 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3029
b757528f 30302003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 3031
b757528f
JJ
3032 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3033 * config.in: Regenerated.
3034 * configure.in: Add test for syscall function and check for
3035 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3036 * configure: Regenerated.
3037 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3038 <sys/syscall.h>.
3039 (kill_lwp): New function that uses tkill syscall or
3040 uses kill, depending on whether threading model is nptl or not.
3041 All callers of kill() changed to use kill_lwp().
3042 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3043 see if all threads have already exited in the nptl model.
3044 (stop_and_resume_callback): New callback function used by the
3045 lin_lwp_wait thread exit handling code.
3046 (stop_wait_callback): Check for threads already having exited and
3047 delete such threads fromt the lwp list when discovered.
3048 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 3049
b757528f
JJ
3050 Roland McGrath <roland@redhat.com>
3051 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3052 nptl libthread_db.
3053
087779b1
RH
30542003-06-03 Richard Henderson <rth@redhat.com>
3055
b21fd293
RH
3056 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3057 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3058 (alpha_sigtramp_frame_prev_register): Likewise.
3059 (alpha_heuristic_frame_prev_register): Likewise.
3060 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3061
8ffd9b1b 3062 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
3063 alpha-specific register id names.
3064 (alpha_mdebug_frame_unwind_cache): Likewise.
3065 (alpha_mdebug_frame_prev_register): Likewise.
3066
baa490c4
RH
30672003-06-03 Richard Henderson <rth@redhat.com>
3068
3069 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3070 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3071 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3072 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3073 unwind routines.
3074 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3075 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3076 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3077
3078 * alpha-linux-tdep.c: Remove unnecessary includes.
3079 * Makefile.in (alpha-linux-tdep.o): Update.
3080
30812003-06-03 Richard Henderson <rth@redhat.com>
3082
3083 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3084 (alphabsd_fill_fpreg): Likewise.
3085
f534e522
JB
30862003-06-03 J. Brobecker <brobecker@gnat.com>
3087
3088 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3089 references to struct frame_info fields by calls to the equivalent
3090 accessors. Necessary now that frame_info is opaque.
3091
4035536b
JB
30922003-06-03 J. Brobecker <brobecker@gnat.com>
3093
3094 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3095 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3096 structure, field no longer exists.
3097
0bd79c5c
JB
30982003-06-03 J. Brobecker <brobecker@gnat.com>
3099
3100 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3101 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3102
37bb6d9f
JB
31032003-06-03 J. Brobecker <brobecker@gnat.com>
3104
3105 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3106 references to struct frame_info fields by calls to the equivalent
3107 accessors. Necessary now that frame_info is opaque.
3108
852ee05c
JB
31092003-06-03 J. Brobecker <brobecker@gnat.com>
3110
3111 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3112 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3113 structure, field no longer exists.
3114
7d58c67d
TR
31152003-06-03 Theodore A. Roth <troth@openavr.org>
3116
8ffd9b1b 3117 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
3118 accumulation of the size of all registers instead of blindly using
3119 DEPRECATED_REGISTER_BYTES.
3120
0a48e7e8
MS
31212003-06-03 Michael Snyder <msnyder@redhat.com>
3122
3123 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3124 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3125 for h8300sx.
3126
9798ab0d
JB
31272003-06-03 J. Brobecker <brobecker@gnat.com>
3128
3129 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3130 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3131
00b037e2
AC
31322003-06-03 Andrew Cagney <cagney@redhat.com>
3133
3134 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3135 (sparc_convert_to_raw): Delete function.
3136 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3137 register_convert_to_virtual.
3138
043b2f77
JJ
31392003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3140
3141 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3142 layer if not dealing with a statically-linked threaded program.
3143
f43caff8
KW
31442003-06-03 Kris Warkentin <kewarken@qnx.com>
3145
3146 * solib.c (solib_open): Update comment to reflect actual search order.
3147
ae1e7417
AC
31482003-06-03 Andrew Cagney <cagney@redhat.com>
3149
3150 * frame.c (get_frame_memory_signed): New function.
3151 (get_frame_memory, get_frame_memory_unsigned): New function.
3152 (get_frame_arch): New function.
3153 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3154 (get_frame_memory, get_frame_unsigned_memory): Declare.
3155 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3156 get_frame_memory_unsigned and get_frame_arch.
3157 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3158
cb123844
RG
31592003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3160
3161 * MAINTAINERS (write after approval): Add myself.
3162
1bb792e9
JB
31632003-06-03 Jim Blandy <jimb@redhat.com>
3164
3165 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3166 elements of gregset_t are 64 bits each, but access registers
3167 are still 32 bits, so they're packed two per gregset_t
3168 element. Unpack/pack them properly.
3169
aee8d8ba
DC
31702003-06-02 David Carlton <carlton@bactrian.org>
3171
3172 * linespec.c (find_methods): Break out code into
3173 add_matching_methods and add_constructors.
3174 (add_matching_methods): New.
3175 (add_constructors): Ditto.
3176
bf7488d2
AC
31772003-06-02 Andrew Cagney <cagney@redhat.com>
3178
bf7488d2
AC
3179 * sparc-tdep.c (sparc_print_registers): Delete call to
3180 REGISTER_CONVERTIBLE.
3181 (sparc_gdbarch_init): Do not set register_convertible.
3182 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3183 * frv-tdep.c (frv_gdbarch_init): Ditto.
3184 * cris-tdep.c (cris_gdbarch_init): Ditto.
3185
adedef68
EZ
31862003-06-02 Elena Zannoni <ezannoni@redhat.com>
3187
8ffd9b1b 3188 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
3189 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3190 (syms_from_objfile): Ditto.
3191
650fcc91
AS
31922003-06-03 Andreas Schwab <schwab@suse.de>
3193
3194 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3195 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3196
df4a182b
RH
31972003-06-02 Richard Henderson <rth@redhat.com>
3198
3199 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3200 a member of all_reggroup.
3201
c483c494
RH
32022003-06-02 Richard Henderson <rth@redhat.com>
3203
3204 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3205 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3206 (alpha_lds, alpha_sts): New.
3207 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 3208 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
3209 restructure and fail for type sizes other than 4 or 8.
3210 (alpha_value_to_register): Similarly.
3211 (alpha_extract_return_value): Use alpha_sts.
3212 (alpha_store_return_value): Use alpha_lds.
3213 (alpha_gdbarch_init): Update hooks.
3214
b38b6be2
RH
32152003-06-02 Richard Henderson <rth@redhat.com>
3216
3217 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3218 regnum identifiers.
3219 (alpha_sigtramp_register_address): Likewise.
3220
98a8e1e5
RH
32212003-06-02 Richard Henderson <rth@redhat.com>
3222
3223 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3224 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3225 * alpha-tdep.h: Declare them.
3226
3227 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3228 Remove zerobuf. Don't error on UNIQUE.
3229 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3230 (ALPHA_REGSET_UNIQUE): Provide default.
3231 (supply_gregset): Use alpha_supply_int_regs.
3232 (fill_gregset): Use alpha_fill_int_regs.
3233 (supply_fpregset): Use alpha_supply_fp_regs.
3234 (fill_fpregset): Use alpha_fill_fp_regs.
3235 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3236 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3237 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3238 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3239 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3240 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3241
67dfac52
RH
32422003-06-02 Richard Henderson <rth@redhat.com>
3243
f75d70cc
RH
3244 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3245
67dfac52
RH
3246 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3247 (alpha_store_return_value): Likewise.
3248
0cf566ec
DC
32492003-06-02 David Carlton <carlton@math.stanford.edu>
3250
3251 * block.c (contained_in): Add 'const' to arguments.
3252 (block_function): Ditto.
3253 * block.h: Update declarations for block_function and
3254 contained_in.
3255
cdef89d0
DC
32562003-06-02 David Carlton <carlton@math.stanford.edu>
3257
3258 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3259 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3260 * p-valprint.c (pascal_val_print): Ditto.
3261 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3262
72667056
RH
32632003-06-02 Richard Henderson <rth@redhat.com>
3264
98a8e1e5
RH
3265 * alpha-tdep.c (alpha_push_dummy_call): Use
3266 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 3267
8ffd9b1b 3268 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
3269 sign-extension of 32-bit values.
3270 (alpha_store_return_value): Similarly.
0ede8eca 3271
98a8e1e5
RH
3272 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3273 (alpha_extract_return_value): Likewise.
3274 (alpha_store_return_value): Likewise.
7b5e1cb3 3275
98a8e1e5
RH
3276 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3277 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 3278
98a8e1e5
RH
3279 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3280 (alpha_extract_struct_value_address): Likewise.
3281 (alpha_store_return_value): Likewise.
3282 (alpha_store_struct_return): Remove.
3283 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 3284
98a8e1e5
RH
3285 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3286 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3287 macros where appropriate.
3288 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3289 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 3290
98a8e1e5
RH
3291 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3292 for SP, GP; void_func_ptr for PC; non-language-specific types
3293 for all others.
3294 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 3295
6dd77b81
RH
32962003-06-02 Richard Henderson <rth@redhat.com>
3297
3298 * top.h (lim_at_start): Declare.
3299 * main.c (captured_main): Set it.
3300 * top.c (lim_at_start): Define.
3301 (command_loop): Use it instead of &environ.
3302 * event-top.c (command_handler): Likewise.
3303
f4dbdb54
JT
33042003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3305
3306 * mipsnbsd-tdep.c: Update copyright years.
3307 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3308
8f285956
RH
33092003-06-01 Richard Henderson <rth@redhat.com>
3310
98a8e1e5
RH
3311 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3312 (alpha-linux-tdep.o): Update dependencies.
3313 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3314 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 3315
615967cb
RH
33162003-06-01 Richard Henderson <rth@redhat.com>
3317
98a8e1e5
RH
3318 * alpha-tdep.c (alpha_register_reggroup_p): New.
3319 (alpha_gdbarch_init): Register it.
615967cb 3320
b59661bd
AC
33212003-06-02 Andrew Cagney <cagney@redhat.com>
3322
3323 * dwarfread.c: Eliminate "register"
3324 (decode_die_type): Eliminate assignment within "if".
3325 (struct_type, decode_array_element_type): Ditto.
3326 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3327 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3328 (decode_modified_type, completedieinfo): Ditto.
3329 * block.c: Eliminate "register".
3330 (blockvector_for_pc_sect): Eliminate assignment within "if".
3331 * cp-support.h (struct symbol): Opaque declaration.
3332 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3333
5ef165c2
RH
33342003-06-01 Richard Henderson <rth@redhat.com>
3335
98a8e1e5
RH
3336 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3337 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 3338
143985b7
AF
33392003-06-01 Adam Fedor <fedor@gnu.org>
3340
3341 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3342 * gdbarch.[ch]: Regenerate.
3343 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3344 (hppa_gdbarch_init): Set it in the gdbarch vector.
3345 * i386-tdep.c (i386_fetch_pointer_argument): New
3346 (i386_gdbarch_init): Set it into gdbarch.
3347 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3348 (rs6000_gdbarch_init): Set it in gdbarch.
3349 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3350 (sparc_gdbarch_init): Set it in gdbarch.
3351
ae0167b9
AC
33522003-06-01 Andrew Cagney <cagney@redhat.com>
3353
7c0b4a20
AC
3354 * defs.h (extract_address): Delete declaration.
3355 * findvar.c (extract_address): Delete function.
3356 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3357 extract_address with the inline equivalent,
3358 extract_unsigned_integer.
3359 (xstormy16_extract_struct_value_address): Ditto.
3360 (xstormy16_pointer_to_address): Ditto.
3361 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3362 * v850-tdep.c (v850_push_arguments): Ditto.
3363 (v850_extract_return_value): Ditto.
3364 (v850_extract_struct_value_address): Ditto.
3365 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3366 (sparcnbsd_get_longjmp_target_64): Ditto.
3367 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3368 (get_longjmp_target): Ditto.
3369 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3370 (sh64_extract_struct_value_address): Ditto.
3371 (sh_push_arguments): Ditto.
3372 (sh64_push_arguments): Ditto.
3373 * remote-vxsparc.c (vx_read_register): Ditto.
3374 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3375 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3376 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3377 * mipsv4-nat.c (get_longjmp_target): Ditto.
3378 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3379 * mips-nat.c (get_longjmp_target): Ditto.
3380 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3381 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3382 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3383 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3384 * irix5-nat.c (get_longjmp_target): Ditto.
3385 * irix4-nat.c (get_longjmp_target): Ditto.
3386 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3387 (ia64_push_arguments): Ditto.
3388 * hpux-thread.c (hpux_thread_store_registers): Ditto.
3389 * h8300-tdep.c (h8300_push_arguments): Ditto.
3390 (h8300_store_return_value): Ditto.
3391 (h8300_extract_struct_value_address): Ditto.
3392 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3393 (frv_push_arguments): Ditto.
3394 * avr-tdep.c (avr_pointer_to_address): Ditto.
3395 (avr_push_arguments): Ditto.
3396 * arm-tdep.c (arm_push_dummy_call): Ditto.
3397 (arm_get_longjmp_target): Ditto.
3398 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3399 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3400 (alpha_get_longjmp_target): Ditto.
3401
ae0167b9
AC
3402 * solib-irix.c (extract_mips_address): Inline extract_address,
3403 replacing it with extract_signed_integer.
3404 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3405 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3406 (first_link_map_member, open_symbol_file_object): Ditto.
3407 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3408 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3409 (LM_NEXT, LM_NAME): Ditto.
3410
44d88583
RH
34112003-06-01 Richard Henderson <rth@redhat.com>
3412
98a8e1e5
RH
3413 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3414 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3415 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3416 (alpha_cannot_store_register): Likewise.
3417 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3418 * alpha-nat.c (supply_gregset): Likewise.
3419 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 3420
310e9b6a
AC
34212003-06-01 Andrew Cagney <cagney@redhat.com>
3422
3423 * infcall.c (call_function_by_hand): Update comment on
3424 DEPRECATED_DUMMY_WRITE_SP.
3425
3426 * mips-tdep.c (mips_gdbarch_init): Do not set
3427 deprecated_dummy_write_sp.
3428 (mips_eabi_push_dummy_call): Set the SP register.
3429 (mips_o64_push_dummy_call): Set the SP register.
3430 (mips_o32_push_dummy_call): Set the SP register.
3431 (mips_n32n64_push_dummy_call): Set the SP register.
3432
5ab84872
RH
34332003-06-01 Richard Henderson <rth@redhat.com>
3434
98a8e1e5
RH
3435 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3436 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3437 (supply_gregset): Likewise.
3438 * alpha-tdep.c (alpha_store_return_value): Likewise.
3439 (alpha_get_longjmp_target): Likewise.
3440 (alpha_register_name): Constify array.
3441 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3442 deprecated_register_size, deprecated_register_bytes,
3443 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3444 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3445 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 3446
09cc52fd
RH
34472003-06-01 Richard Henderson <rth@redhat.com>
3448
3449 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3450 from arg_reg_buffer to regcache to avoid double conversion.
3451
c7f16359
MK
34522003-06-01 Mark Kettenis <kettenis@gnu.org>
3453
3454 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3455 SP_REGNUM.
3456 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3457 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3458
7131cb6e
RH
34592003-06-01 Richard Henderson <rth@redhat.com>
3460
98a8e1e5
RH
3461 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3462 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 3463
f3e0f90b
RH
34642003-06-01 Richard Henderson <rth@redhat.com>
3465
98a8e1e5
RH
3466 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3467 not overlapping PC_REGNUM.
f3e0f90b 3468
c88e30c0
RH
34692003-06-01 Richard Henderson <rth@redhat.com>
3470
98a8e1e5
RH
3471 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3472 alpha_push_arguments. Don't dump argument register data to
3473 the target stack. Fix float and 128-bit long double semantics.
3474 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3475 (alpha_fix_call_dummy): Remove.
3476 (alpha_call_dummy_words): Remove.
3477 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 3478
f1a559ae
RH
34792003-06-01 Richard Henderson <rth@redhat.com>
3480
3481 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3482
5e045346
AC
34832003-06-01 Andrew Cagney <cagney@redhat.com>
3484
95404a3e
AC
3485 * mips-tdep.c (is_mips16_addr): New function.
3486 (make_mips16_addr, unmake_mips16_addr): New functions.
3487 (pc_is_mips16, mips_fetch_instruction): Use.
3488 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3489 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3490 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3491 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3492 TARGET_MIPS.
3493 * config/mips/tm-mips.h: Update copyright.
3494 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3495 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3496 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3497 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3498 (TM_PRINT_INSN_MACH): Delete.
3499 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3500
5e045346
AC
3501 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
3502 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
3503 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
3504 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
3505 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
3506 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
3507 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
3508 mips*-*-riscos* and mips*-*-sysv* onto mips.
3509 * config/mips/mips64.mt: New file.
3510 * config/mips/mips.mt: New file.
3511 * config/mips/littlemips.mt: Delete file.
3512 * config/mips/decstation.mt: Delete file.
3513 * config/mips/vr4300el.mt: Delete file.
3514 * config/mips/vr5000el.mt: Delete file.
3515 * config/mips/vr5000.mt: Delete file.
3516 * config/mips/vr4100.mt: Delete file.
3517 * config/mips/vr4xxxel.mt: Delete file.
3518 * config/mips/vr4300.mt: Delete file.
3519 * config/mips/vr4xxx.mt: Delete file.
3520 * config/mips/bigmips.mt: Delete file.
3521 * config/mips/bigmips64.mt: Delete file.
3522 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
3523 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
3524 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
3525 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
3526 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
3527 "tm-bigmips.h".
3528 * config/mips/tm-irix3.h: Ditto.
3529 * config/mips/tm-mipsv4.h: Ditto.
3530 * config/mips/tm-embed.h: Ditto.
3531 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
3532 "tm-bigmips64.h".
3533 * config/mips/tm-vr5000el.h: Delete file.
3534 * config/mips/tm-tx39l.h: Delete file.
3535 * config/mips/tm-vr4300el.h: Delete file.
3536 * config/mips/tm-vr4xxxel.h: Delete file.
3537 * config/mips/tm-vr4300.h: Delete file.
3538 * config/mips/tm-vr4100.h: Delete file.
3539 * config/mips/tm-vr4xxx.h: Delete file.
3540 * config/mips/tm-vr5000.h: Delete file.
3541 * config/mips/tm-embedl64.h: Delete file.
3542 * config/mips/tm-embedl.h: Delete file.
3543 * config/mips/tm-embed64.h: Delete file.
3544 * config/mips/tm-bigmips64.h: Delete file.
3545 * config/mips/tm-bigmips.h: Delete file.
3546
2473a4a9
MK
35472003-06-01 Mark Kettenis <kettenis@gnu.org>
3548
97a5b208
MK
3549 Fix gdb/1216.
3550 * shnbsd-nat.c: Include "sh-tdep.h".
3551
2473a4a9
MK
3552 From Richard Henderson <rth@redhat.com>:
3553 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
3554
e0f7ec59
AC
35552003-05-31 Andrew Cagney <cagney@redhat.com>
3556
3557 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
3558 forward declaration.
3559 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3560 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3561 (mips_find_saved_regs): Use set_reg_offset.
3562 (mips_frame_init_saved_regs): Delete function.
3563 (mips_pop_frame): Call mips_find_saved_regs instead of
3564 DEPRECATED_FRAME_INIT_SAVED_REGS.
3565
68dcc709
AC
35662003-05-31 Andrew Cagney <cagney@redhat.com>
3567
3568 * mips-tdep.c (mips_gdbarch_init): Do not set
3569 deprecated_max_register_raw_size, register_virtual_size, and
3570 deprecated_max_register_virtual_size.
3571
cfc14b3a
MK
35722003-05-31 Mark Kettenis <kettenis@gnu.org>
3573
6405b0a6
MK
3574 * i386-tdep.c: Include "dwarf2-frame.h".
3575 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
3576 * Makefile.in (i386-tdep.o): Update dependencies.
3577
cfc14b3a
MK
3578 * dwarf2-frame.c, dwarf2-frame.h: New files.
3579 * Makefile.in (SFILES): Add dwarf2-frame.c.
3580 (dwarf2_frame_h): Define.
3581 (COMMON_OBS): Add dwarf2-frame.o.
3582 (dwarf2-frame.o): Add dependencies.
3583
6a2751d2
AJ
35842003-05-31 Andreas Jaeger <aj@suse.de>
3585
3586 * x86-64-linux-nat.c: Fix comment.
3587
1c3545ae
MK
35882003-05-31 Mark Kettenis <kettenis@gnu.org>
3589
10f93086
MK
3590 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
3591 function signature.
3592
1c3545ae
MK
3593 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
3594 have a sigcontext_addr handler.
3595 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
3596 sigcontext_addr handler.
3597
e11c53d2
AC
35982003-05-31 Andrew Cagney <cagney@redhat.com>
3599
3600 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
3601 (print_fp_register_row): Replace do_fp_register_row.
3602 (mips_print_fp_register): Add "file" and "frame" parameters.
3603 (mips_print_register): Add "file" and "frame" parameters.
3604 (mips_print_registers_info): Replace mips_do_registers_info.
3605 (mips_gdbarch_init): Set print_registers_info instead of
3606 deprecated_do_registers_info.
3607 (mips_read_fp_register_single): Add "frame" parameter.
3608 (mips_read_fp_register_double): Add "frame" parameter.
3609
a3386186
MK
36102003-05-31 Mark Kettenis <kettenis@gnu.org>
3611
70913449
MK
3612 * i386-tdep.c (i386_register_name): Check for MMX registers first.
3613 Fixes a bug where GDB would print the wrong register names for
3614 targets without SSE.
3615
2b5e0749
MK
3616 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
3617 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3618 registers.
3619
3620 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
3621 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
3622 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3623 TDEP->sc_sp_offset.
3624
a3386186
MK
3625 From Michal Ludvig <mludvig@suse.cz>:
3626 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
3627 and `sc_num_regs'.
3628 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3629 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3630 I386_ST0_REGNUM): Move here from...
3631 * i386-tdep.c: ... here.
3632 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
3633 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3634 registers if possible.
3635 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
3636 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
3637 Remove variables.
3638 (i386bsd_sc_reg_offset): New variable.
3639 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
3640 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3641 TDEP->sc_sp_offset.
3642 (i386fbsd_sc_reg_offset): New variable.
3643 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
3644 TDEP->sc_num_regs.
3645 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
3646 variables.
3647 (i386fbsd4_sc_reg_offset): New variable.
3648 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
3649 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3650 TDEP->sc_sp_offset.
3651 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
3652 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
3653 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
3654 Remove variables.
3655 (i386nbsd_sc_reg_offset): New variable.
3656 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
3657 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3658 TDEP->sc_sp_offset.
3659 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
3660 Remove variables.
3661 (i386obsd_sc_reg_offset): New variable.
3662 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
3663 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3664 TDEP->sc_sp_offset.
3665 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
3666 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
3667 for frame pointer offset in `struct sigcontext'.
3668
25ab4790
AC
36692003-05-31 Andrew Cagney <cagney@redhat.com>
3670
3671 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
3672 architecture methods call_dummy_words, sizeof_call_dummy_words,
3673 push_return_address, store_struct_return, and fix_call_dummy. Set
3674 push_dummy_call instead of deprecated_push_arguments.
3675 (mips_store_struct_return): Delete function.
3676 (mips_fix_call_dummy): Delete function.
3677 (mips_push_return_address): Delete function.
3678 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
3679 RA_REGNUM and T9_REGNUM.
3680 (mips_n32n64_push_dummy_call): Ditto for
3681 mips_n32n64_push_arguments.
3682 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
3683 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
3684
6a65450a
AC
36852003-05-31 Andrew Cagney <cagney@redhat.com>
3686
3687 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
3688 "dummy_addr" to "bp_addr".
3689 * infcall.c (call_function_by_hand): Pass "funaddr" to
3690 gdbarch_push_dummy_call.
3691 * gdbarch.h, gdbarch.c: Re-generate.
3692 * i386-tdep.c (i386_push_dummy_call): Update.
3693 * arm-tdep.c (arm_push_dummy_call): Update.
3694 * d10v-tdep.c (d10v_push_dummy_call): Update.
3695
c4f35dd8
MK
36962003-05-31 Mark Kettenis <kettenis@gnu.org>
3697
3698 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
3699 variable declarations.
3700 (x86_64_register_number, x86_64_register_name): Remove prototypes.
3701 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
3702 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
3703 x86_64_init_frame_pc, x86_64_init_frame_pc,
3704 x86_64_function_has_prologue): Remove prototypes.
3705 (X86_64_NUM_GREGS): New define.
3706 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
3707 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
3708 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
3709 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
3710 XMM1_REGNUM): Remove defines.
3711 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
3712 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
3713 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
3714 X86_64_XMM1_REGNUM): New defines.
3715 (struct x86_64_register_info): Renamed from `struct
3716 register_info'. Remove `size' member.
3717 (x86_64_register_info_table): Remove variable.
3718 (x86_64_register_info): New variable.
3719 (X86_64_NUM_REGS): New define.
3720 (X86_64_NUM_GREGS): Remove define.
3721 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
3722 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
3723 Remove variables.
3724 (x86_54_dwarf2_reg_to_regnum): Remove function.
3725 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
3726 (x86_64_dwarf_reg_to_regnum): New function.
3727 (x86_64_register_name): Rewrite.
3728 (x86_64_register_raw_size): Remove function.
3729 (x86_64_register_byte_table): Remove variable.
3730 (x86_64_register_byte): Remove function.
3731 (x86_64_register_virtual_type): Remove function.
3732 (x86_64_register_type): New function.
3733 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
3734 x86_64_register_convert_to_raw): Remove functions.
3735 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
3736 (x86_64_use_struct_convention): Make static. Adjust for renamed
3737 defines.
3738 (x86_64_frame_init_saved_regs): Remove function.
3739 (x86_64_push_arguments): Make static. Change to accept a regcache
3740 as argument.
3741 (x86_64_store_return_value, x86_64_extract_return_value): Make
3742 static. Rewrite based on i386 counterparts.
3743 (x86_64_push_dummy_call): New function.
3744 (X86_64_NUM_SAVED_REGS): New define.
3745 (x86_64_register_number): Remove function.
3746 (x86_64_store_struct_return): Remove function.
3747 (x86_64_frameless_function_invocation,
3748 x86_64_function_has_prologue): Remove functions.
3749 (PROLOG_BUFSIZE): Remove define.
3750 (struct x86_64_frame_cache): New structure.
3751 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
3752 x86_64_frame_cache, x86_64_frame_this_id,
3753 x86_64_frame_prev_register, x86_64_frame_p,
3754 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
3755 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
3756 functions.
3757 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
3758 variables.
3759 (x86_64_skip_prologue): Rewrite in terms of
3760 x86_64_analyze_prologue.
3761 (x86_64_frame_base_address): New function.
3762 (x86_64_frame_base): New variable.
3763 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
3764 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
3765 set deprecated_fp_regnum, deprecated_register_size,
3766 deprecated_register_bytes, register_raw_size, register_byte,
3767 register_virtual_type, register_convertiable,
3768 register_convert_to_virtual, convert_to_raw,
3769 deprecated_get_saved_register, deprecated_target_read_fp,
3770 deprecated_push_arguments, deprecated_push_return_address,
3771 deprecated_pop_frame, deprecated_store_struct_return,
3772 deprecated_frame_init_saved_regs, deprecated_frame_chain,
3773 frameless_function_invocation, deprecated_frame_saved_pc,
3774 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
3775 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
3776 deprecated_init_frame_pc and virtual_frame_pointer. Call
3777 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
3778 and x86_64_frame_p. Call frame_base_set_default to register
3779 x86_64_frame_base.
3780 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
3781 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
3782 (_initialize_x86_64_tdep): Remove function.
3783 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
3784 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
3785 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
3786 define.
3787 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
3788 (x86_64_linux_sigcontext_addr): Rewrite.
3789 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
3790 x86_64_linux_frame_saved_pc): Remove functions.
3791 (x86_64_linux_pc_in_sigtramp): Renamed from
3792 x86_64_linux_in_sigtramp. Try harder to recognize a signal
3793 trampoline.
3794 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
3795 Remove_functions.
3796 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
3797 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3798 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
3799 (x86_64_regmap): Rename to regmap.
3800 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
3801 x86_64_num_gregs.
3802 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
3803 x86_64_regmap.
3804 (x86_64_fxsave_offset): Remove function.
3805 (supply_fpregset): Simply call x86_64_supply_fxsave.
3806 (fill_fpregset): Simply call x86_64_fill_fxsave.
3807 (fetch_inferior_registers, store_inferior_registers): Avoid
3808 asignment in if-statement.
3809 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
3810 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
3811 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
3812 (fetch_core_registers): Remove function.
3813 (linux_elf_core_fns): Remove.
3814 (offsetoff): Don't define.
3815 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
3816 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
3817 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
3818 add core-regset.o.
3819 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
3820 protection against multiple includes instead of NM_X86_64_h. Add
3821 various comments. Include "config/nm-linux.h". Don't include
3822 <signal.h>.
3823 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
3824 GET_THREAD_SIGNALS): Remove defines.
3825 (x86_64_register_u_addr, kernel_u_size,
3826 lin_thread_get_thread_signals): Remove prototypes.
3827 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
3828 [HAVE_LINK_H]: Don't include "solib.h".
3829 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
3830 * config/i386/tm-x86-64linux.h: Fix comments.
3831 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
3832 x86-64-tdep.o): Update dependencies.
3833
c25083af
AC
38342003-05-30 Andrew Cagney <cagney@redhat.com>
3835
c8f55a7b
AC
3836 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
3837 Change parameter type to a "struct regcache *".
3838
c25083af
AC
3839 * gdbarch.sh: Regardless of the multi-arch level, always define
3840 the macro when not already defined.
3841 * gdbarch.h, gdbarch.c: Re-generate.
3842
fbe586ae
RH
38432003-05-30 Richard Henderson <rth@redhat.com>
3844
3845 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
3846 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
3847 (alpha_mdebug_frame_this_id): Likewise.
3848 (alpha_mdebug_frame_prev_register): Likewise.
3849 (alpha_mdebug_frame_base_address): Likewise.
3850 (alpha_mdebug_frame_locals_address): Likewise.
3851 (alpha_mdebug_frame_args_address): Likewise.
3852 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
3853 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
3854 (alpha_heuristic_frame_unwind_cache): Make static; add missing
3855 loop increment.
3856 (alpha_heuristic_frame_this_id): Make static.
3857 (alpha_heuristic_frame_prev_register): Likewise.
3858 (alpha_heuristic_frame_base_address): Likewise.
3859 * alpha-tdep.h: Update.
3860
acd5c798
MK
38612003-05-30 Mark Kettenis <kettenis@gnu.org>
3862
3863 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
3864 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
3865 defenitions.
3866 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
3867 * i386-tdep.c: Mark functions that are 64-bit safe as such.
3868 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3869 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3870 I386_ST0_REGNUM): New defines.
3871 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
3872 codestream_get): Remove define.
3873 (codestream_next_addr, condestream_addr, condestream_buf,
3874 codestream_off, codestream_cnt): Remove variables.
3875 (codestream_fill, codestream_seek, codestream_read): Remove
3876 functions.
3877 (i386_follow_jump): Rewrite to avoid usage of removed codestream
3878 functionality.
3879 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
3880 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
3881 i386_frame_saved_pc, i386_saved_pc_after_call,
3882 i386_frame_num_args, i386_frame_init_saved_regs,
3883 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
3884 i386_push_arguments): Remove functions.
3885 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
3886 functionality. Use i386_analyze_prologue instead of
3887 i386_get_frame_setup.
3888 (I386_NUM_SAVED_REGS): New define.
3889 (struct i386_frame_cache): New structure.
3890 (i386_alloc_frame_cache, i386_analyze_struct_return,
3891 i386_skip_probe, i386_analyze_frame_setup,
3892 i386_analyze_register_saves, i386_analyze_prologue,
3893 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
3894 i386_frame_prev_register, i386_sigtramp_frame_cache,
3895 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
3896 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
3897 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
3898 New functions.
3899 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
3900 New variables.
3901 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
3902 I386_EAX_REGNUM and I386_EDX_REGNUM.
3903 (i386_extract_return_value, i386_store_return_value): Use
3904 I386_ST0_REGNUM where appropriate.
3905 (i386_extract_struct_value_address): Rewrite to use extract_address.
3906 (i386_svr4_pc_in_sigtramp): Add comment.
3907 (i386_svr4_sigcontext_addr): Rewrite.
3908 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
3909 TDEP->sc_sp_offset.
3910 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
3911 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
3912 of new defines. Set push_dummy_call, don't set
3913 deprecated_push_arguments, deprecated_push_return_address,
3914 deprecated_pop_frame. Don't set parm_boundary. Don't set
3915 deprecated_frame_chain, deprecated_frame_saved_pc,
3916 deprecated_saved_pc_after_call. Set unwind_dummy_id,
3917 save_dummy_frame_tos, unwind_pc. Call
3918 frame_unwind_append_predicate and frame_base_set_default. Don't
3919 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
3920 Don't set frameless_function_invocation. Don't set
3921 deprecated_register_bytes, deprecated_register_size,
3922 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
3923 * i386-linux-tdep.c: Fix formatting in some comments.
3924 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
3925 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
3926 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
3927 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
3928 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
3929 redundant parentheses.
3930 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
3931 (i386_linux_sigcontext_addr): Use it. Rewrite.
3932 (find_minsym_and_objfile): Change name of second argument.
3933 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
3934 changed. Use frame_pc_unwind instead of
3935 DEPRECATED_SAVED_PC_AFTER_CALL.
3936 (i386_linux_init_abi): Don't set deprecated_register_bytes.
3937 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
3938 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
3939 unwinder.
3940 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
3941 "dummy-frame.h".
3942 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
3943 (_initialize_i386_cygwin_tdep): New prototype.
3944 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
3945 deprecated_frame_chain_valid.
3946 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
3947 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3948 Rely on the SVR4 defaults.
3949 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
3950 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
3951
c89b70f1
AC
39522003-05-30 Andrew Cagney <cagney@redhat.com>
3953
3954 * infcall.c (call_function_by_hand): Always call
3955 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
3956
85b32d22
RH
39572003-05-30 Richard Henderson <rth@redhat.com>
3958
c89b70f1
AC
3959 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
3960 increment.
85b32d22 3961
bfe51b1e
JB
39622003-05-29 Jim Blandy <jimb@redhat.com>
3963
3964 Use gdbarch methods for solib stuff on PowerPC Linux.
3965 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
3966 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
3967 show through.
3968 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3969 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
3970 giving the same effect as the #definitions above.
3971
1abf022c
AF
39722003-05-29 Adam Fedor <fedor@gnu.org>
3973
3974 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
3975 (find_implementation_from_class): Replace it with the standard
3976 case i.e. do nothing.
3977
d2427a71
RH
39782003-05-29 Richard Henderson <rth@redhat.com>
3979
3980 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
3981 (alpha_linux_sigtramp_offset): Use it. Make static.
3982 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
3983 update for new frame model.
3984 * alpha-mdebug-tdep.c: New file.
3985 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
3986 (alpha_osf1_init_abi): Install it.
3987 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
3988 (linked_proc_desc_table): Remove.
3989 (alpha_frame_past_sigtramp_frame): Remove.
3990 (alpha_dynamic_sigtramp_offset): Remove.
3991 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
3992 (alpha_proc_desc_is_dyn_sigtramp): Remove.
3993 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
3994 (push_sigtramp_desc): Remove.
3995 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
3996 (alpha_cannot_store_register): Likewise.
3997 (alpha_sigcontext_addr): Remove.
3998 (alpha_find_saved_regs): Remove.
3999 (alpha_frame_init_saved_regs): Remove.
4000 (alpha_init_frame_pc_first): Remove.
4001 (read_next_frame_reg): Remove.
4002 (alpha_frame_saved_pc): Remove.
4003 (alpha_saved_pc_after_call): Remove.
4004 (temp_proc_desc, temp_saved_regs): Remove.
4005 (alpha_about_to_return): Remove.
4006 (cached_proc_desc): Remove.
4007 (alpha_frame_chain): Remove.
4008 (alpha_print_extra_frame_info): Remove.
4009 (alpha_init_extra_frame_info): Remove.
4010 (alpha_frame_locals_address): Remove.
4011 (alpha_frame_args_address): Remove.
4012 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4013 (alpha_push_dummy_frame): Remove.
4014 (alpha_pop_frame): Remove.
4015 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4016 (alpha_read_insn): New.
4017 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4018 for different insn encodings.
4019 (alpha_in_lenient_prologue): Remove.
4020 (struct alpha_sigtramp_unwind_cache): New.
4021 (alpha_sigtramp_frame_unwind_cache): New.
4022 (alpha_sigtramp_register_address): New.
4023 (alpha_sigtramp_frame_this_id): New.
4024 (alpha_sigtramp_frame_prev_register): New.
4025 (alpha_sigtramp_frame_unwind): New.
4026 (alpha_sigtramp_frame_p): New.
4027 (struct alpha_heuristic_unwind_cache): New.
4028 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4029 don't count nop insns that occur between functions.
4030 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4031 heuristic_proc_desc, but without the mdebug wrapping.
4032 (alpha_heuristic_frame_this_id): New.
4033 (alpha_heuristic_frame_prev_register): New.
4034 (alpha_heuristic_frame_unwind): New.
4035 (alpha_heuristic_frame_p): New.
4036 (alpha_heuristic_frame_base_address): New.
4037 (alpha_heuristic_frame_base): New.
4038 (alpha_unwind_dummy_id): New.
4039 (alpha_unwind_pc): New.
4040 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4041 frame related deprecated initializations; install replacements.
4042 (alpha_dump_tdep): Remove.
4043 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4044 (alpha_read_insn, alpha_after_prologue,
4045 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4046 alpha_heuristic_frame_prev_register,
4047 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4048 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4049 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4050 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4051
93ec1121
AC
40522003-05-29 Andrew Cagney <cagney@redhat.com>
4053
4054 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4055 dependant on the availability of ASSERT_FUNCTION.
4056 (ASSERT_FUNCTION): Do not define when there is no function name.
4057
98f08d3d
KB
40582003-05-29 Kevin Buettner <kevinb@redhat.com>
4059
4060 From Jimi X <jimix@watson.ibm.com>:
4061 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4062
0897f59b
JB
40632003-05-28 Jim Blandy <jimb@redhat.com>
4064
4065 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4066 argument to ptrace to int; the system headers should give it the
4067 right type, and pointers don't fit in ints on powerpc64-*-*.
4068
14898363
L
40692003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4070
4071 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4072 DW_TAG_catch_block.
4073
a7a48797
EZ
40742003-05-26 Elena Zannoni <ezannoni@redhat.com>
4075
4076 * stabsread.c (dbx_lookup_type): Make static.
4077 (read_type): Ditto.
4078 (add_undefined_type): Ditto.
4079 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4080 not export.
4081
f5479e9c
EZ
40822003-05-26 Elena Zannoni <ezannoni@redhat.com>
4083
4084 * hpread.c (hpread_has_name): Make static.
4085 (hpread_psymtab_to_symtab): Ditto.
4086 (file_exists): Ditto.
4087 (hpread_call_pxdb): Ditto.
4088 (hpread_pxdb_needed): Ditto.
4089 (hpread_quick_traverse): Ditto.
4090 (hpread_get_header): Ditto.
4091 (hpread_get_lntt): Ditto.
4092 (hpread_get_slt): Ditto.
4093 (class_of): Ditto.
4094
eb2e12d7
AS
40952003-05-25 Andreas Schwab <schwab@suse.de>
4096
78bf922a
AS
4097 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4098 stack_align and deprecated_extra_stack_alignment_needed.
4099 (m68k_stack_align): Delete.
4100
eb2e12d7
AS
4101 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4102 (m68k_register_virtual_size): Likewise.
4103 (altos_skip_prologue): Remove obsolete function.
4104 (isi_frame_num_args): Likewise.
4105 (news_frame_num_args): Likewise.
4106 (m68k_fix_call_dummy): Make static.
4107 (m68k_push_dummy_frame): Likewise.
4108 (m68k_pop_frame): Likewise.
4109 (m68k_skip_prologue): Likewise.
4110 (m68k_frame_init_saved_regs): Likewise.
4111 (m68k_saved_pc_after_call): Likewise.
4112 (m68k_get_longjmp_target): Make multi-arch.
4113 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4114 structure. Register m68k_get_longjmp_target if enabled.
4115 * m68k-tdep.h (struct gdbarch_tdep): Define.
4116 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4117
4118 * Makefile.in (config.status): Also depend on configure.tgt
4119 and configure.host.
4120 (m68klinux-tdep.o): Update dependencies.
4121 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4122 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4123 (M68K_LINUX_JB_PC): Define.
4124 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4125 and take additional parameter.
4126 (m68k_linux_sigtramp_saved_pc): Update.
4127 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4128 m68k_linux_pc_in_sigtramp, in_plt_section,
4129 find_solib_trampoline_target.
4130 * config/m68k/tm-linux.h: Don't include any tm headers.
4131 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4132 (JB_ELEMENT_SIZE): Likewise.
4133 (JB_PC): Likewise.
4134 (GET_LONGJMP_TARGET): Likewise.
4135 (IN_SIGTRAMP): Likewise.
4136 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4137
eb2c22dc
MK
41382003-05-25 Mark Kettenis <kettenis@gnu.org>
4139
4140 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4141 (sparc32_push_arguments): Re-implement by calling
4142 sparc32_do_push_arguments.
4143
44b7b84e
MK
41442003-05-25 Mark Kettenis <kettenis@gnu.org>
4145
4146 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4147 SPARC_O1_REGNUM): New defines.
4148 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4149 (sparc32_store_return_value): New function.
4150 (sparc_extract_struct_value_address): Rewrite to operate on a
4151 regcache.
4152 (sparc_gdbarch_init): Don't set
4153 deprecated_extract_struct_value_address. Set
4154 extract_struct_value_address instead. Don't set
4155 deprecated_extract_return_value and deprecated_store_return_value
4156 for 32-bit targets. Set extract_return_value and
4157 store_return_value instead.
4158 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4159 DEPRECTAED_EXTRACT_RETURN_VALUE,
4160 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4161 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4162 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4163 (sparc_store_return_value): Remove prototype.
4164 (sparc32_store_return_value): New prototype.
4165 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4166 Adjust prototypes.
4167
f6ad61e3
MK
41682003-05-24 Mark Kettenis <kettenis@gnu.org>
4169
4170 * sparcnbsd-tdep.c: Include "gdb_string.h".
4171
b276f1bb
AC
41722003-05-23 Andrew Cagney <cagney@redhat.com>
4173
4174 * p-valprint.c (pascal_val_print): Replace extract_address with
4175 the inline equivalent extract_unsigned_integer.
4176 * jv-valprint.c (java_value_print): Ditto.
4177 * ada-valprint.c (ada_val_print_1): Ditto.
4178 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4179
e76c5fcc
TR
41802003-05-23 Theodore A. Roth <troth@openavr.org>
4181
4182 * blockframe.c (frameless_look_for_prologue): Remove unused
4183 after_prologue variable.
4184
2cdd89cb
MK
41852003-05-23 Mark Kettenis <kettenis@gnu.org>
4186
4187 * blockframe.c (get_pc_function_start): Rewrite to avoid
4188 asignments in if-statements.
4189
182d43bc
EZ
41902003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4191
4192 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 4193 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
4194 files, don't relocate absolute symbols (and do use mst_abs).
4195
e8f3fcdd
AC
41962003-05-23 Andrew Cagney <cagney@redhat.com>
4197
4198 * objc-lang.c: Include "gdb_assert.h".
4199 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4200 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4201 (gdb_check, gdb_check_fatal): Delete functions.
4202 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4203 gdb_assert.
4204 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4205 * Makefile.in (objc-lang.o): Update dependencies.
4206
3c23e6fb
ILT
42072003-05-22 Ian Lance Taylor <ian@airs.com>
4208
4209 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4210 with fprintf_filtered, not fprintf_unfiltered.
4211
af1342ab
AC
42122003-05-22 Andrew Cagney <cagney@redhat.com>
4213
4214 * stack.c (frame_info): Inline extract_address, replacing it with
4215 extract_unsigned_integer.
4216 * findvar.c (unsigned_pointer_to_address): Ditto.
4217 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4218 * dwarf2expr.c (dwarf2_read_address): Ditto.
4219 * frame.c (frame_pc_unwind): Update comment.
4220 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4221
47e242ec
JJ
42222003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4223
4224 * infptrace.c (detach): Call print_sys_errmsg rather than
4225 perror_with_name to issue warning message when errno is non-zero
4226 after calling ptrace detach.
4227
e2ac8128
JB
42282003-05-21 J. Brobecker <brobecker@gnat.com>
4229
4230 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4231 macro definitions from here...
4232 * hppa-tdep.c: ...to there.
4233
92b3541e
KB
42342003-05-20 Kevin Buettner <kevinb@redhat.com>
4235
4236 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4237 register_ptrace_addr(). Fix all callers.
4238
55809acb
AS
42392003-05-21 Andreas Schwab <schwab@suse.de>
4240
4241 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4242 dependencies.
4243 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4244 end.
4245 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4246 (_initialize_m68k_linux_tdep): New function.
4247 (m68k_linux_frame_saved_pc): Make static.
4248 (m68k_linux_extract_return_value): Likewise.
4249 (m68k_linux_store_return_value): Likewise.
4250 (m68k_linux_extract_struct_value_address): Likewise.
4251 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4252 Remove.
4253 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4254 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4255 (DEPRECATED_FRAME_SAVED_PC): Remove.
4256
0fbc10f7
KW
42572003-05-20 Kris Warkentin <kewarken@qnx.com>
4258
4259 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4260 regset numbering rather than our own.
4261
58da2eb2
DC
42622003-05-19 David Carlton <carlton@bactrian.org>
4263
4264 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4265
1fcb5155
DC
42662003-05-19 David Carlton <carlton@bactrian.org>
4267
4268 Partial fix for PR c++/827.
4269 * cp-support.h: Include symtab.h.
4270 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4271 * cp-namespace.c: Update contributors.
4272 (cp_lookup_symbol_nonlocal): New.
4273 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4274 (lookup_symbol_file): Ditto.
4275 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4276 * block.h: Declare block_scope, block_using, block_global_block.
4277 * block.c (block_scope): New.
4278 (block_using, block_global_block): Ditto.
4279 * Makefile.in (cp_support_h): Depend on symtab_h.
4280 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4281
5f9a71c3
DC
42822003-05-19 David Carlton <carlton@bactrian.org>
4283
4284 * language.h (struct language_defn): Add 'la_value_of_this'
4285 and 'la_lookup_symbol_nonlocal' members.
4286 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4287 lookup_symbol_static, lookup_symbol_global,
4288 lookup_symbol_aux_block.
4289 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4290 if we should search fields of this and how to do static/global
4291 lookup.
4292 (lookup_symbol_aux_block): Make extern.
4293 (basic_lookup_symbol_nonlocal): New.
4294 (lookup_symbol_static, lookup_symbol_global): Ditto.
4295 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4296 'la_lookup_symbol_nonlocal' members.
4297 * c-lang.c (c_language_defn, cplus_language_defn)
4298 (asm_language_defn, minimal_language_defn): Ditto.
4299 * jv-lang.c (java_language_defn): Ditto.
4300 * language.c (unknown_language_defn, auto_language_defn)
4301 (local_language_defn): Ditto.
4302 * m2-lang.c (m2_language_defn): Ditto.
4303 * objc-lang.c (objc_language_defn): Ditto.
4304 * scm-lang.c (scm_language_defn): Ditto.
4305 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4306 * p-lang.c (pascal_language_defn): Ditto for both.
4307 * Makefile.in (f-lang.o): Depend on value_h.
4308 (p-lang.o): Ditto.
4309
89a9d1b1
DC
43102003-05-19 David Carlton <carlton@bactrian.org>
4311
4312 * block.h: Declare block_static_block.
4313 * block.c (block_static_block): New.
4314 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4315 lookup_symbol_aux_local, calling block_static_block instead.
4316 (lookup_symbol_aux_local): Delete 'static_block' argument.
4317
eed3f8ab
DC
43182003-05-19 David Carlton <carlton@bactrian.org>
4319
4320 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4321
a09d8bda
ML
43222003-05-19 Michal Ludvig <mludvig@suse.cz>
4323
4324 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4325 register numbers mapping.
4326
69636828
AF
43272003-05-18 Adam Fedor <fedor@gnu.org>
4328
4329 * symtab.c (completion_list_objc_symbol): New function.
4330 (make_symbol_completion_list): Use it to add ObjC symbols
4331 when looking though the list.
4332 (language_search_unquoted_string): New function.
4333 (make_file_symbol_completion_list): Use it.
4334
55baeb84
AS
43352003-05-18 Andreas Schwab <schwab@suse.de>
4336
d0b45d99
AS
4337 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4338 dependencies.
4339 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4340 as m68k_linux_extract_return_value.
4341 (DEPRECATED_STORE_RETURN_VALUE): Define as
4342 m68k_linux_store_return_value.
4343 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4344 m68k_linux_extract_struct_value_address.
4345 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4346 get_next_frame, get_frame_base, get_frame_pc.
4347 (m68k_linux_frame_saved_pc): Use get_frame_base.
4348 (m68k_linux_extract_return_value): New function.
4349 (m68k_linux_store_return_value): New function.
4350 (m68k_linux_extract_struct_value_address): New function.
4351 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4352
55baeb84
AS
4353 * c-exp.y (typebase): Remove duplicate occurence of
4354 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 4355 of lookup_signed_typename.
55baeb84 4356
b6b08ebf
MK
43572003-05-18 Mark Kettenis <kettenis@gnu.org>
4358
4359 * dwarf2loc.c (find_location_expression): Change type of second
4360 argument to `size_t *'.
4361 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4362 for size variable.
4363
5ad1c190
DC
43642003-05-18 David Carlton <carlton@bactrian.org>
4365
4366 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4367 'linkage_name'. Add comment.
4368 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4369 'linkage_name'.
4370 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4371 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4372 (lookup_block_symbol): Ditto.
4373
b8b527c5
AC
43742003-05-16 Andrew Cagney <cagney@redhat.com>
4375
4376 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4377 * gdbarch.h, gdbarch.c: Re-generate.
4378 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4379 * TODO (REGISTER_BYTES): Delete reference.
4380 * alpha-tdep.c (alpha_gdbarch_init): Update.
4381 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4382 * x86-64-tdep.c (x86_64_init_abi): Update.
4383 * vax-tdep.c (vax_gdbarch_init): Update.
4384 * v850-tdep.c (v850_gdbarch_init): Update.
4385 * sparc-tdep.c (sparc_gdbarch_init): Update.
4386 * sh-tdep.c (sh_gdbarch_init): Update.
4387 * s390-tdep.c (s390_gdbarch_init): Update.
4388 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4389 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4390 (ns32k_gdbarch_init_32382): Update.
4391 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4392 * mcore-tdep.c (mcore_gdbarch_init): Update.
4393 * m68k-tdep.c (m68k_gdbarch_init): Update.
4394 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4395 * ia64-tdep.c (ia64_gdbarch_init): Update.
4396 * i386-tdep.c (i386_gdbarch_init): Update.
4397 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4398 * hppa-tdep.c (hppa_gdbarch_init): Update.
4399 * h8300-tdep.c (h8300_gdbarch_init): Update.
4400 * frv-tdep.c (frv_gdbarch_init): Update.
4401 * cris-tdep.c (cris_gdbarch_init): Update.
4402 * avr-tdep.c (avr_gdbarch_init): Update.
4403 * arm-tdep.c (arm_gdbarch_init): Update.
4404 * sparc-tdep.c (sparc_pop_frame): Update.
4405 * rs6000-tdep.c (rs6000_pop_frame): Update.
4406 * remote.c (init_remote_state): Update.
4407 (remote_prepare_to_store): Update.
4408 * remote-vx.c (vx_prepare_to_store): Update.
4409 * remote-sds.c (sds_fetch_registers): Update.
4410 (sds_prepare_to_store): Update.
4411 * remote-array.c: Update.
4412 * regcache.c (init_legacy_regcache_descr): Update.
4413 (init_regcache_descr): Update.
4414 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4415 (mips_o64_extract_return_value): Update.
4416 * irix5-nat.c (fetch_core_registers): Update.
4417 * irix4-nat.c (fetch_core_registers): Update.
4418 * i386-tdep.h: Update.
4419 * hppa-tdep.c (pa_do_registers_info): Update.
4420 (pa_do_strcat_registers_info): Update.
4421 * cris-tdep.c (cris_register_bytes_ok): Update.
4422 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4423 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4424 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4425 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4426 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4427 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4428 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4429 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4430 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4431 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4432 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4433 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4434 (REGISTER_BYTES_OK): Update.
4435 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4436 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4437
ee2842e2
ILT
44382003-05-16 Ian Lance Taylor <ian@airs.com>
4439
4440 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4441 (vax_print_insn, print_insn_arg): Remove static functions.
4442 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4443 print_insn_vax from opcodes library.
4444 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4445
973177d3
AC
44462003-05-15 Andrew Cagney <cagney@redhat.com>
4447
aaab4dba
AC
4448 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4449 * target.h (memory_breakpoint_from_pc): Delete declaration.
4450 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4451 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4452 * monitor.c (monitor_insert_breakpoint): Use
4453 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4454 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4455 * gdbarch.h, gdbarch.c: Re-generate.
4456 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4457 (sparc_gdbarch_init): Set breakpoint_from_pc to
4458 sparc_breakpoint_from_pc.
4459 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4460 (BREAKPOINT_FROM_PC): Define.
4461 (sparc_breakpoint_from_pc): Declare.
4462 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4463 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4464 (BREAKPOINT_FROM_PC): Define.
4465 (BREAKPOINT): Delete macro.
4466 * target.h: Update comment.
4467 * s390-tdep.c (s390_gdbarch_init): Update comments.
4468 * remote.c: Update comments.
4469 * remote-mips.c: Update comments.
4470 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4471 * mem-break.c: Update comment.
4472 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4473 (ia64_memory_insert_breakpoint): Update.
4474 * config/sparc/tm-sparc.h: Update comment.
4475 * config/pa/tm-hppa64.h: Update comment.
4476 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4477 (rs6000_breakpoint_from_pc): Update.
4478 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4479 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4480 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4481 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4482 (mips_breakpoint_from_pc): Update.
4483 (mips_dump_tdep): Update.
4484
e06963ff
AC
4485 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4486 * minsyms.c (lookup_minimal_symbol): Inline
4487 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
4488
973177d3
AC
4489 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4490 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4491 * p-lang.c (pascal_printstr): Ditto.
4492 * objc-lang.c (objc_printstr): Ditto.
4493 * m2-lang.c (m2_printstr): Ditto.
4494 * jv-valprint.c (java_print_value_fields): Ditto.
4495 * f-lang.c (f_printstr): Ditto.
4496 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
4497 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4498 for repeat_count_threshold.
4499 * Makefile.in (cp-valprint.o): Update dependencies.
4500
5ea2bd7f 45012003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 4502
5ea2bd7f
JJ
4503 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
4504 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
4505 they start with mov r2,r12. Support skipping over indirect stores
4506 of the input registers. Upon hitting a non-nop branch instruction
4507 or predicated instruction, bail out by setting lim_pc to the current
4508 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
4509 beyond our calculated value and we have trust_limit set,
4510 use the lim_pc value.
4511
cc8c88f3
AC
45122003-05-15 Andrew Cagney <cagney@redhat.com>
4513
4514 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
4515 generic_find_dummy_frame.
4516 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
4517 (deprecated_generic_find_dummy_frame): Update.
4518 (deprecated_read_register_dummy): Update.
4519 * frame.c (deprecated_generic_get_saved_register): Update.
4520
909cd28e
TR
45212003-05-15 Theodore A. Roth <troth@openavr.org>
4522
4523 * avr-tdep.c (avr_breakpoint_from_pc): New function.
4524 (avr_gdbarch_init): Set breakpoint_from_pc method.
4525
b923b08d
AC
45262003-05-15 Andrew Cagney <cagney@redhat.com>
4527
4528 * regcache.c (build_regcache): Set deprecated_register_valid
4529 directly.
4530 (deprecated_grub_regcache_for_register_valid): Delete function.
4531 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
4532 declaration.
4533
ae2f03ac 45342003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
4535
4536 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
4537 * symtab.c (lookup_symbol_aux): Delete calls to
4538 lookup_symbol_aux_minsyms.
4539 (lookup_symbol_aux_minsyms): Comment out function and
4540 prototype. Delete lookup by mangled name.
ae2f03ac 4541
18ec9831
KB
45422003-05-14 Kevin Buettner <kevinb@redhat.com>
4543
4544 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
4545 correctly indicate an empty stack and ``stack_allocated'' to the
4546 indicate the number of elements initially allocated.
4547 (dwarf_expr_grow_stack): Simplify method for computing new
4548 stack size. Don't loop infinitely if ``stack_len'' is zero.
4549 (execute_stack_op): Move ``ctx->in_reg'' initialization
4550 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
4551 be used in conjuction with DW_OP_piece. Revise error message
4552 accordingly.
4553
de18ac1f
TR
45542003-05-14 Theodore A. Roth <troth@openavr.org>
4555
4556 * MAINTAINERS: Update my email address.
4557 * avr-tdep.c: Ditto.
4558
176620f1
EZ
45592003-05-14 Elena Zannoni <ezannoni@redhat.com>
4560
4561 * symtab.h (enum domain_enum): Rename from namespace_enum.
4562 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
4563 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
4564 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
4565 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
4566 TYPES_NAMESPACE, METHODS_NAMESPACE.
4567 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
4568 (struct symbol, struct partial_symbol): Rename field
4569 'namespace_enum namespace' to 'domain_enum domain'.
4570 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
4571 Delete old define kludge for namespace.
4572
4573 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
4574 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
4575 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
4576 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
4577 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
4578 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
4579 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
4580 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
4581 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
4582 occurrences of the above.
4583
b7f31508
ILT
45842003-05-14 Ian Lance Taylor <ian@airs.com>
4585
4586 * Makefile.in (install-only): Use $(SHELL) when running
4587 mkinstalldirs.
4588
2fdbdd39
ILT
45892003-05-13 Ian Lance Taylor <ian@airs.com>
4590
a208d82c
ILT
4591 * MAINTAINERS (write after approval): Add myself.
4592
2fdbdd39
ILT
4593 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
4594 second and third arguments.
4595 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4596 * ser-unix.c (_initialize_ser_hardwire): Likewise.
4597
fbd9dcd3
AC
45982003-05-13 Andrew Cagney <cagney@redhat.com>
4599
4600 * defs.h (store_address): Delete declaration.
4601 findvar.c (store_address): Delete function.
4602 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
4603 store_unsigned_integer.
4604 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
4605 * v850-tdep.c (v850_push_arguments): Ditto.
4606 * sparc-tdep.c (sparc_get_saved_register): Ditto.
4607 * sh-tdep.c (sh64_get_saved_register): Ditto.
4608 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
4609 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
4610 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
4611 (mips_get_saved_register): Ditto.
4612 * ia64-tdep.c (ia64_get_saved_register): Ditto.
4613 (find_func_descr, ia64_push_arguments): Ditto.
4614 * i386-tdep.c (i386_push_arguments): Ditto.
4615 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4616 * frv-tdep.c (frv_push_arguments): Ditto.
4617 * frame.c (legacy_saved_regs_prev_register): Ditto.
4618 (deprecated_generic_get_saved_register): Ditto.
4619 * findvar.c (unsigned_address_to_pointer): Ditto.
4620 * dwarf2read.c (dwarf2_const_value): Ditto.
4621 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4622 * alpha-tdep.c (alpha_push_arguments): Ditto.
4623
6760f9e6
JB
46242003-05-12 J. Brobecker <brobecker@gnat.com>
4625
4626 * NEWS: Mention that the hppa-hpux port has been partially
4627 multiarched (32bit ABIT only, so far).
4628
30e221b4
AC
46292003-05-11 Andrew Cagney <cagney@redhat.com>
4630
4631 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
4632 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
4633 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
4634 sim/testsuite/sim/arm/misaligned2.ms, and
4635 sim/testsuite/sim/arm/misaligned3.ms.
4636 * disasm.h (struct ui_file): Add opaque struct declaration.
4637 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
4638 * frame.h (struct ui_file): Ditto.
4639
dea7f9ba
MK
46402003-05-11 Mark Kettenis <kettenis@gnu.org>
4641
4642 * value.h: Pretty print.
4643
01986c48
MK
46442003-05-10 Mark Kettenis <kettenis@gnu.org>
4645
4646 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
4647
123a958e
AC
46482003-05-08 Andrew Cagney <cagney@redhat.com>
4649
4650 * regcache.h (max_register_size): Delete declaration.
4651 * regcache.c (max_register_size): Delete function.
4652 (struct regcache_descr): Delete field "max_register_size".
4653 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
4654 registers fit in MAX_REGISTER_SIZE.
4655 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
4656 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
4657 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
4658 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
4659 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
4660 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
4661 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
4662 * dve3900-rom.c, hppa-tdep.c: Ditto.
4663
eb294659
DC
46642003-05-08 David Carlton <carlton@math.stanford.edu>
4665
4666 * valops.c (push_word): Fix typo.
4667
d9d9c31f
AC
46682003-05-08 Andrew Cagney <cagney@redhat.com>
4669
4670 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
4671 * gdbarch.h: Re-generate.
4672 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
4673 (legacy_max_register_raw_size): Delete declaration.
4674 * regcache.c (legacy_max_register_raw_size): Delete function.
4675 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
4676 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
4677 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
4678 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
4679 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
4680 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
4681 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
4682 * findvar.c, dwarf2cfi.c: Ditto.
4683
22540ece
AC
46842003-05-08 Andrew Cagney <cagney@redhat.com>
4685
4686 * mips-tdep.c (read_signed_register): New function, moved to here
4687 from "regcache.c".
4688 (read_signed_register_pid): Ditto.
4689 * regcache.c (read_signed_register_pid): Delete function, moved to
4690 "mips-tdep.c".
4691 (read_signed_register): Ditto.
4692 * regcache.h (read_signed_register): Delete declaration.
4693 (read_signed_register_pid): Delete declaration.
4694
0c92afe8
AC
46952003-05-08 Andrew Cagney <cagney@redhat.com>
4696
4697 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
4698 * gdbarch.h: Re-generate.
4699 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
4700 (legacy_max_register_virtual_size): Delete declaration.
4701 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
4702 * d10v-tdep.c (d10v_print_registers_info): Ditto.
4703 * tracepoint.c (memrange_sortmerge): Ditto.
4704 * sparc-tdep.c (sparc_print_registers): Ditto.
4705 * regcache.c (legacy_max_register_virtual_size): Delete function.
4706
6037b830
JB
47072002-05-08 J. Brobecker <brobecker@gnat.com>
4708
4709 * fork-child.c (escape_bang_in_quoted_argument): New function.
4710 (fork_inferior): Escape '!' characters in quoted arguments
4711 only when needed.
4712
5d62c8b1
JB
47132003-05-08 J. Brobecker <brobecker@gnat.com>
4714
4715 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
4716 the language of the CU is not currently supported by GDB.
4717
20a0e81d
JB
47182003-05-08 J. Brobecker <brobecker@gnat.com>
4719
4720 * defs.h (language): Add language_minimal enum value.
4721 * c-lang.c (minimal_language_defn): New language definition.
4722 (_initialize_c_language): Add the new minimal language to the list
4723 of languages known to GDB.
4724
710ee10a
KB
47252003-05-08 Kevin Buettner <kevinb@redhat.com>
4726
4727 * frame.c (get_frame_type): Don't attempt to lazily initialize
4728 frame's unwinder for legacy frames.
4729
1750fa04
AC
47302003-05-07 Andrew Cagney <cagney@redhat.com>
4731
4732 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
4733 and "regcache" parameters.
4734 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
4735
ddf9f258 47362003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
4737
4738 * dwarf2read.c (dwarf_decode_lines): Only use output of
4739 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
4740 the current address.
4741
87767c29
AC
47422003-05-07 Andrew Cagney <cagney@redhat.com>
4743
4744 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
4745 code.
4746
5e7b2f39
JB
47472003-05-07 Jim Blandy <jimb@redhat.com>
4748
4749 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
4750 'maint info symtabs' and 'maint info psymtabs'.
4751 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
4752 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
4753 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
4754 Declarations updated.
4755 * maint.c (maintenance_list_command): Delete.
4756 (_initialize_maint_cmds): Update calls to add_cmd.
4757 * gdbcmd.h (maintenancelistlist): Delete declaration.
4758 * cli/cli-cmds.c (maintenancelistlist): Delete.
4759 (init_cmd_lists): Don't initialize it.
4760 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
4761
f6684c31
AC
47622003-05-07 Andrew Cagney <cagney@redhat.com>
4763
4764 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
4765 "regcache".
4766 (d10v_print_registers_info): Update.
4767 (d10v_dmap_register, d10v_imap_register): Delete functions.
4768 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
4769 and "imap_register".
4770 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
4771 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
4772 * arch-utils.c (generic_remote_translate_xfer_address): Add
4773 "regcache" and "gdbarch" parameters.
4774 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
4775 parameter. Change class to multi-arch.
4776 * gdbarch.h, gdbarch.c: Re-generate.
4777 * remote.c (remote_xfer_memory): Use
4778 gdbarch_remote_translate_xfer_address.
8ffd9b1b 4779
e4846b08
JJ
47802003-05-07 Jeff Johnston <jjohnstn@redhat.com>
4781
4782 * infrun.c (prev_pc): Move declaration ahead of proceed().
4783 (proceed): Refresh prev_pc value before resuming.
4784 (stop_stepping): Remove code to refresh prev_pc.
4785
6b71b8ac
KW
47862003-05-06 Kris Warkentin <kewarken@qnx.com>
4787
4788 * nto-tdep.c: Removed stray comment.
4789
47979a4b
KW
47902003-05-06 Kris Warkentin <kewarken@qnx.com>
4791
4792 * i386-nto-tdep.c: Fix old K&R function definitions.
4793 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
4794 Also change add_show_from_set() call to add_setshow_cmd().
4795 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
4796
00905d52
AC
47972003-05-05 Andrew Cagney <cagney@redhat.com>
4798
4799 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
4800 (fprint_dummy_frames): New function.
4801 (maintenance_print_dummy_frames): New function.
4802 (_initialize_dummy_frame): Add command "maint print dummy-frames".
4803 * frame.c (fprint_frame_id): Make global.
4804 * frame.h (fprint_frame_id): Declare.
4805 * Makefile.in (dummy-frame.o): Update dependencies.
4806
b1e29e33
AC
48072003-05-05 Andrew Cagney <cagney@redhat.com>
4808
4809 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
4810 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
4811 SIZEOF_CALL_DUMMY_WORDS.
4812 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
4813 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
4814 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
4815 CALL_DUMMY_BREAKPOINT_OFFSET.
4816 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
4817 CALL_DUMMY_START_OFFSET.
4818 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
4819 * gdbarch.h, gdbarch.c: Re-generate.
4820 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
4821 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
4822 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
4823 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
4824 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
4825 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
4826 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
4827 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
4828 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
4829 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
4830 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
4831 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
4832 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
4833 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
4834 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
4835
48362003-05-05 Kris Warkentin <kewarken@qnx.com>
4837
4838 * configure.tgt: Add i[3456]86-*-nto*.
4839 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
4840 * nto-tdep.c: New file. Neutrino target support routines.
4841 * nto-tdep.h: New file. Neutrino target header.
4842 * config/tm-qnxnto.h: New file.
4843 * config/i386/i386nto.mt: New file.
4844 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 4845
0ce3d317
AC
48462003-05-04 Andrew Cagney <cagney@redhat.com>
4847
4848 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
4849 (load_infrun_state): Ditto.
4850 (struct thread_info): Drop "prev_func_name" field.
4851 * thread.c (load_infrun_state): Update.
4852 (save_infrun_state): Update.
4853 * infrun.c (prev_func_name): Delete variable.
4854 (init_wait_for_inferior): Do not clear prev_func_name.
4855 (stop_stepping, keep_going, context_switch): Do not swap
4856 prev_func_name.
4857 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
4858 instead of PC_IN_SIGTRAMP.
4859
46654a5b
AC
48602003-05-04 Andrew Cagney <cagney@redhat.com>
4861
4862 * sentinel-frame.c (sentinel_frame_prev_register): Replace
4863 REGISTER_BYTE with register_offset_hack.
4864 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
4865 that REGISTER_BYTE is consistent with the regcache.
4866 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
4867 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 4868
14b08c1b
MK
48692003-05-04 Mark Kettenis <kettenis@gnu.org>
4870
04c8243f
MK
4871 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
4872 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
4873
14b08c1b
MK
4874 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
4875
c7a11e01
JB
48762003-05-03 J. Brobecker <brobecker@gnat.com>
4877
4878 From Thierry Schneider <tpschneider1@yahoo.com>
4879 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
4880 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
4881 (mi-cmd-symbol.o): Add rule.
4882
7043d8dc
AC
48832003-05-03 Andrew Cagney <cagney@redhat.com>
4884
4885 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
4886 comments noteing that it replaces the old FIX_CALL_DUMMY code.
4887 * gdbarch.h, gdbarch.c: Re-generate.
4888 * d10v-tdep.c (d10v_push_dummy_code): New function.
4889 (d10v_gdbarch_init): Set push_dummy_code.
4890 * infcall.c (legacy_push_dummy_code): New function.
4891 (generic_push_dummy_code): New function.
4892 (push_dummy_code): New function.
4893 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
4894 instead of dummy_addr, to push_dummy_call. Move call to
4895 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
4896 switch.
4897 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
4898
92bf2b80
AC
48992003-05-03 Andrew Cagney <cagney@redhat.com>
4900
4901 * disasm.h (print_insn): Declare.
4902 * disasm.c (init_gdb_disassemble_info): New function.
4903 (gdb_disassembly): Call init_gdb_disassemble_info.
4904 (gdb_print_insn): New function.
4905 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
4906 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
4907 * mcore-tdep.c: Include "disasm.h"
4908 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
4909 * d10v-tdep.c: Include "disasm.h".
4910 (display_trace): Call gdb_print_insn, instead of print_insn.
4911 (print_insn): Delete function.
4912 * printcmd.c: Include "disasm.h".
4913 (print_insn): Delete function.
4914 (print_formatted): Call gdb_print_insn, instead of print_insn.
4915 * Makefile.in (printcmd.o): Update dependencies.
4916 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 4917
27d94c49
AC
49182003-05-02 Andrew Cagney <cagney@redhat.com>
4919
82de1e5b
AC
4920 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
4921 PC_REGNUM, re-indent.
4922 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
4923 PC_REGNUM isn't set.
4924
27d94c49
AC
4925 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
4926 * gdbarch.h, gdbarch.c: Re-generate.
4927 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
4928 register_virtual_size, pc_regnum, or register_bytes.
4929 (D10V_PC_REGNUM): Rename _PC_REGNUM.
4930 (d10v_register_type): Use D10V_PC_REGNUM.
4931 (d10v_print_registers_info, d10v_read_pc): Ditto.
4932 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
4933 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
4934
a9c0dc7f
DC
49352003-05-02 David Carlton <carlton@bactrian.org>
4936
4937 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
4938 the name with mstrsave.
4939
e33d66ec
EZ
49402003-05-02 Elena Zannoni <ezannoni@redhat.com>
4941
4942 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
4943 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
4944 (host_charset_name, target_charset_name): New vars for use by
4945 set/show commands.
4946 (host_charset_enum, target_charset_enum): New enums for set/show
4947 commands.
4948 (set_charset_sfunc, set_host_charset_sfunc,
4949 set_target_charset_sfunc): New functions.
4950 (set_host_charset, set_target_charset): Make static.
4951 (list_charsets, set_host_charset_command,
4952 set_target_charset_command): Delete functions.
4953 (show_charset_command): Rewrite as....
4954 (show_charset): Hook this up with the set/show command mechanism.
4955 (_initialize_charset): Change names of charsets to match the
4956 set/show enums. Use host_charset_name and target_charset_name.
4957 Use set/show mechanism for charset, host-charset, target-charset
4958 commands. Do not make 'show host-charset' and 'show
4959 target-charset' be aliases of 'show charset'.
4960
4961 * charset.h (set_host_charset, set_target_charset): Don't export,
4962 they are not used outside the file.
4963
2b6fd0d8
AC
49642003-05-01 Andrew Cagney <cagney@redhat.com>
4965
4966 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
4967 (gdb_disassembly): Make "di" non static, always initialize and
4968 cleanup. Always use dis_asm_read_memory.
4969 (gdb_dis_asm_read_memory): Delete function.
4970
6ae2f580
AC
49712003-05-01 Andrew Cagney <cagney@redhat.com>
4972
4973 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
4974 (d10v_gdbarch_init): Set frame_align instead of stack_align.
4975
810ecf9f
AC
49762003-04-30 Andrew Cagney <cagney@redhat.com>
4977
4978 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
4979 "tm_print_insn_info".
4980 (TARGET_PRINT_INSN_INFO): Delete macro.
4981 (dis_asm_read_memory): Delete function declaration.
4982 (dis_asm_memory_error, dis_asm_print_address): Ditto.
4983 (tm_print_insn_info): Delete variable definition.
4984 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
4985 * gdbarch.h, gdbarch.c: Re-generate.
4986 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
4987 "deprecated_tm_print_insn_info".
4988 * mcore-tdep.c (mcore_dump_insn): Ditto.
4989 * mips-tdep.c (mips_gdbarch_init): Ditto.
4990 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
4991 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
4992 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
4993 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
4994 instead of TARGET_PRINT_INSN_INFO, add comment.
4995 * s390-tdep.c (s390_get_frame_info): Instead of
4996 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
4997 (s390_check_function_end, s390_is_sigreturn): Ditto.
4998 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
4999 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5000 * disasm.c: Include "gdbcore.h".
5001 (_initialize_disasm): New function, initialize
5002 "deprecated_tm_print_insn_info".
5003 (deprecated_tm_print_insn_info): New variable.
5004 (dis_asm_read_memory): Moved from "corefile.c", made static.
5005 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5006 * Makefile.in (disasm.o): Update dependencies.
5007
07020390
AC
50082003-04-30 Andrew Cagney <cagney@redhat.com>
5009
5010 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5011
a9fa03de
AF
50122003-04-29 Adam Fedor <fedor@gnu.org>
5013
5014 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5015 * infcall.c (find_function_addr): Make non-static.
5016 * infcall.h (find_function_addr): Declare.
5017 * Makefile.in (eval.o): Update dependencies.
5018
1bae87b9
AF
50192003-04-28 Adam Fedor <fedor@gnu.org>
5020
5021 * symtab.c (symbol_find_demangled_name): Check for and demangle
5022 ObjC symbols.
5023 (symbol_init_demangled_name): Init for language_objc as well.
5024
0ba6dca9
AC
50252003-04-28 Andrew Cagney <cagney@redhat.com>
5026
5027 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5028 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5029 * gdbarch.h, gdbarch.c: Re-generate.
5030 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5031 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5032 * inferior.h (deprecated_read_fp): Rename read_fp.
5033 (generic_target_read_fp): Delete declaration.
5034 * regcache.c (generic_target_read_fp): Delete function.
5035 (deprecated_read_fp): Replace read_fp, use
5036 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5037 * d10v-tdep.c (d10v_read_fp): Delete function.
5038 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5039
5040 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5041 deprecated_target_read_fp to generic_target_read_fp.
5042 * sh-tdep.c (sh_gdbarch_init): Ditto.
5043 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5044 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5045 * frv-tdep.c (frv_gdbarch_init): Ditto.
5046
5047 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5048 deprecated_fp_regnum.
5049 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5050 * vax-tdep.c (vax_gdbarch_init): Ditto.
5051 * v850-tdep.c (v850_gdbarch_init): Ditto.
5052 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5053 * sh-tdep.c (sh_gdbarch_init): Ditto.
5054 * s390-tdep.c (s390_gdbarch_init): Ditto.
5055 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5056 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5057 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5058 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5059 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5060 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5061 * i386-tdep.c (i386_gdbarch_init): Ditto.
5062 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5063 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5064 * frv-tdep.c (frv_gdbarch_init): Ditto.
5065 * cris-tdep.c (cris_gdbarch_init): Ditto.
5066 * avr-tdep.c (avr_gdbarch_init): Ditto.
5067 * arm-tdep.c (arm_gdbarch_init): Ditto.
5068 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5069
5070 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5071 * v850-tdep.c (v850_gdbarch_init): Ditto.
5072 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5073 * sh-tdep.c (sh_gdbarch_init): Ditto.
5074 * s390-tdep.c (s390_gdbarch_init): Ditto.
5075 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5076 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5077 * mips-tdep.c (mips_gdbarch_init): Ditto.
5078 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5079 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5080 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5081 * frv-tdep.c (frv_gdbarch_init): Ditto.
5082 * avr-tdep.c (avr_gdbarch_init): Ditto.
5083 * arm-tdep.c (arm_gdbarch_init): Ditto.
5084
5085 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5086 DEPRECATED_FP_REGNUM.
5087 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5088 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5089 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5090 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5091 (sparc32_register_virtual_type): Ditto.
5092 * sh-tdep.c (sh64_frame_chain): Ditto.
5093 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5094 (sh_nofp_frame_init_saved_regs): Ditto.
5095 (sh64_nofp_frame_init_saved_regs): Ditto.
5096 (sh_fp_frame_init_saved_regs): Ditto.
5097 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5098 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5099 * procfs.c (procfs_fetch_registers): Ditto.
5100 (procfs_store_registers): Ditto.
5101 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5102 (store_inferior_registers, fetch_core_registers): Ditto.
5103 (fetch_kcore_registers, clear_regs): Ditto.
5104 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5105 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5106 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5107 * nlm/i386.c (do_status): Ditto.
5108 * mipsv4-nat.c (supply_gregset): Ditto.
5109 * mips-tdep.c: Ditto for comments.
5110 * mips-nat.c (fetch_inferior_registers): Ditto.
5111 (store_inferior_registers, fetch_core_registers): Ditto.
5112 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5113 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5114 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5115 (i386_do_pop_frame, i386_register_type): Ditto.
5116 * hppa-tdep.c (hppa_frame_chain): Ditto.
5117 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5118 (hppa_pop_frame, hppa_read_fp): Ditto.
5119 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5120 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5121 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5122 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5123 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5124 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5125 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5126 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5127 * blockframe.c: Ditto for comments.
5128 * arch-utils.h: Ditto for comments.
5129 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5130 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5131 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5132 * alpha-tdep.h: Ditto for comments.
5133 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5134 (alpha_cannot_store_register): Ditto.
5135 (alpha_push_dummy_frame): Ditto.
5136 * alpha-nat.c (supply_gregset): Ditto.
5137
5138 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5139 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5140 * config/sparc/tm-sparc.h: Update comment.
5141
5142 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5143 deprecated_read_fp instead of TARGET_READ_FP.
5144 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5145 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5146 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5147 deprecated_read_fp instead of read_fp.
5148 * s390-tdep.c (s390_push_arguments): Ditto.
5149 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5150 * frame.h: Ditto in comments.
5151 * frame.c (legacy_get_prev_frame): Ditto.
5152 * dummy-frame.c (dummy_frame_this_id): Ditto.
5153 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5154
d7a27068
AC
51552003-04-28 Andrew Cagney <cagney@redhat.com>
5156
5157 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5158 * gdbarch.h, gdbarch.c: Re-generate.
5159 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5160 * vax-tdep.c (_initialize_vax_tdep): Update.
5161 * v850-tdep.c (_initialize_v850_tdep): Update.
5162 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5163 * s390-tdep.c (_initialize_s390_tdep): Update.
5164 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5165 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5166 * mips-tdep.c (_initialize_mips_tdep): Update.
5167 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5168 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5169 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5170 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5171 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5172 * frv-tdep.c (_initialize_frv_tdep): Update.
5173 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5174 (_initialize_cris_tdep): Update.
5175 * arch-utils.c (legacy_print_insn): Update.
5176 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5177
d2630e69
AF
51782003-04-26 Adam Fedor <fedor@gnu.org>
5179
5180 * linespec.c (decode_objc): New function to decode ObjC calls
5181 (decode_line_1): Check for ObjC calls (using decode_objc)
5182 * Makefile (linespec.o): Update dependencies.
5183
3086aeae
DJ
51842003-04-26 Daniel Jacobowitz <drow@mvista.com>
5185
5186 * breakpoint.h (struct breakpoint_ops): New.
5187 (struct breakpoint): Add ops member.
5188
5189 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5190 (mention): Use new breakpoint ops member.
5191 (set_raw_breakpoint): Initialize ops field to NULL.
5192 (print_exception_catchpoint, print_one_exception_catchpoint)
5193 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5194 (gnu_v3_exception_catchpoint_ops): New.
5195 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5196
1fbec6c3
AF
51972003-04-25 Adam Fedor <fedor@gnu.org>
5198
5199 * Makefile.in (COMMON_OBS): Add objc-lang.o
5200
0ef21242
AC
52012003-04-25 Andrew Cagney <cagney@redhat.com>
5202
5203 * d10v-tdep.c (print_insn): Delete function.
5204 (display_trace): Use TARGET_PRINT_INSN.
5205 (_initialize_d10v_tdep): Do not set tm_print_insn.
5206 (d10v_gdbarch_init): Set print_insn.
5207
f75493ed
AC
52082003-04-25 Andrew Cagney <cagney@redhat.com>
5209
5210 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5211 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5212 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5213 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5214 (nr_dmap_regs, a0_regnum): ... new functions.
5215 (d10v_print_registers_info): Use a0_regnum, use register_size.
5216 (d10v_register_byte): Delete function.
5217 (d10v_register_raw_size): Delete function.
5218 (d10v_register_type): Use a0_regnum.
5219 (d10v_print_registers_info): Use a0_regnum.
5220 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5221 (d10v_gdbarch_init): Do not set register_byte or
5222 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5223 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5224 extract_address.
5225 (trace_command): Use XCALLOC.
5226 (print_insn): Delete reference to tm_print_insn.
5227 (saved_regs_unwinder): Use store_unsigned_integer instead of
5228 store_address.
5229 * frame.h (FRAME_OBSTACK_CALLOC): Define
5230
2202b100
DC
52312003-04-25 David Carlton <carlton@bactrian.org>
5232
5233 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5234
4e45ca2e
AF
52352003-04-24 Adam Fedor <fedor@gnu.org>
5236
5237 * objc-lang.c: Include "valprint.h"
5238 * Makefile.in (objc-lang.o): Update dependencies.
5239
93de3e7f
AF
52402003-04-24 Adam Fedor <fedor@gnu.org>
5241
8ffd9b1b 5242 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
5243 architecture dependant compilation and mark as unimplemented
5244 (until they get put in the gdbarch vector).
5245
0f20eeea
DC
52462003-04-23 David Carlton <carlton@bactrian.org>
5247
5248 * cp-support.c (cp_find_first_component): Accept 'operator' in
5249 more locations.
5250
74cfe982
AC
52512003-04-23 Andrew Cagney <cagney@redhat.com>
5252
5253 * infcall.c (call_function_by_hand): Eliminate redundant
5254 indentation. Move "saved_async" and "old_cleanups" to where they
5255 are needed.
8ffd9b1b 5256
52557533
AC
52572003-04-23 Andrew Cagney <cagney@redhat.com>
5258
5259 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5260 and "buffer". Move the "name" code to where it is needed.
5261
158775de
AC
52622003-04-23 Andrew Cagney <cagney@redhat.com>
5263
5264 * infcall.c (call_function_by_hand): Move variables "start_sp",
5265 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5266 code to ON_STACK switch branch.
8ffd9b1b 5267
ebc7896c
AC
52682003-04-23 Andrew Cagney <cagney@redhat.com>
5269
5270 * infcall.c (call_function_by_hand): Make declaration of "i",
5271 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5272 lint.
5273
d727590f
AC
52742003-04-23 Andrew Cagney <cagney@redhat.com>
5275
5276 * infcall.c (call_function_by_hand): Delete variable
5277 "n_method_args". Localize "param_type"'s declaration to the loop
5278 that it is used. Reinstate code assigning to said variable -
5279 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5280 Rationalize code using "param_type".
5281
d585e13a
AC
52822003-04-22 Andrew Cagney <cagney@redhat.com>
5283
5284 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5285 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5286 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5287 to DEPRECATED_PUSH_RETURN_ADDRESS.
5288
051caad9
KB
52892003-04-22 Kevin Buettner <kevinb@redhat.com>
5290
5291 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5292 on the DWARF2 register number prior to fetching a register.
5293
77296879
JB
52942003-04-22 J. Brobecker <brobecker@gnat.com>
5295
5296 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5297 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 5298 this macro was always set to 0.
77296879
JB
5299 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5300 considering the fact that this macro was always set to 0.
5301 * hppa-tdep.h (hppa_store_return_value): Likewise.
5302 (hppa_extract_return_value): Likewise.
5303
4252f1df
JB
53042003-04-22 J. Brobecker <brobecker@gnat.com>
5305
5306 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5307 the hppa-pro target only.
5308
14604c6b
JB
53092003-04-21 J. Brobecker <brobecker@gnat.com>
5310
5311 Ongoing multi-arch conversion effort for HP/UX:
5312 * config/pa/tm-hppa.h: Move all macro that are no longer
5313 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5314 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5315
77eb01d1
JB
53162003-04-21 J. Brobecker <brobecker@gnat.com>
5317
5318 * config/pa/tm-hppa.h: Obsolete a section that was only used
5319 for hppa-pro.
5320
61995b3b
JB
53212003-04-21 J. Brobecker <brobecker@gnat.com>
5322
5323 Ongoing multi-arch conversion for HP/UX.
5324 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5325 if already defined (allows hppa64 to stay non-multiarched for now).
5326 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5327
4aa79dcc
AC
53282003-04-21 Andrew Cagney <cagney@redhat.com>
5329
5330 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5331
0f751ff2
AC
53322003-04-21 Andrew Cagney <cagney@redhat.com>
5333
5334 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5335 "i386_num_mmx_regs".
5336
04714b91
AC
53372003-04-21 Andrew Cagney <cagney@redhat.com>
5338
5339 * infcall.c: New file.
5340 * infcall.h: New file.
5341 * valarith.c: Include "infcall.h".
5342 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5343 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5344 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5345 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5346 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5347 (SFILES): Add "infcall.c"
5348 (COMMON_OBS): Add "infcall.o".
5349 (infcall.o): Specify dependencies.
5350 * value.h (call_function_by_hand): Delete declaration.
5351 * inferior.h (run_stack_dummy): Delete declaration.
5352 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5353 (run_stack_dummy): Move to "infcall.c", merged into
5354 call_function_by_hand.
5355 * valops.c (call_function_by_hand): Moved to "infcall.c".
5356 (find_function_addr, value_arg_coerce): Ditto.
5357 (unwindonsignal_p, coerce_float_to_double): Ditto.
5358 (_initialize_valops): Move "set/show coerce-float-to-double", and
5359 "set/show unwindonsignal" commands to "infcall.c".
5360 * v850-tdep.c, target.h: Update comments.
5361 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5362 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5363 (sh64_init_extra_frame_info): Update comments.
5364 * mn10300-tdep.c: Update comments.
5365 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5366 * config/sparc/tm-sparc.h: Update comments.
5367 * breakpoint.h: Update comments.
5368 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5369 * arm-tdep.c: Update comment.
5370
f9d3c2a8
MK
53712003-04-19 Mark Kettenis <kettenis@gnu.org>
5372
c40e1eab
MK
5373 * i386-tdep.c (i386_num_register_names): New variable.
5374 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5375 (MM0_REGNUM): Remove redundant parentheses in define.
5376 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5377 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5378 i386_mxcsr_regnum_p): Remove redundant parentheses.
5379 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 5380
94ea66b3
MK
5381 * i386-tdep.c (i386_extract_return_value,
5382 i386_store_return_value): Correct check for availability of
5383 floating-point registers.
5384
54299a1d
MK
5385 * i386-tdep.c (i386_frame_num_args): Remove function.
5386 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5387
c86c27af
MK
5388 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5389 mmx_regnum_to_fp_regnum. Adjust all callers.
5390
f9d3c2a8
MK
5391 * i386-tdep.c (i386_get_longjmp_target): Use
5392 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5393 and TARGET_CHAR_BIT. Use extract_typed_address instead of
5394 extract_address.
5395
94ba74a9
MK
53962003-04-19 Mark Kettenis <kettenis@gnu.org>
5397
5398 * core-regset.c: Update comments to reflect reality. Re-order
5399 includes.
5400 (fetch_core_registers): Use switch instead of if. Remove
5401 redundant prototype.
5402
4074e13c
JB
54032003-04-18 Jim Blandy <jimb@redhat.com>
5404
5405 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 5406 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 5407
e3ab4aba
RH
54082003-04-17 Richard Henderson <rth@redhat.com>
5409
5410 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5411
627bf7c1
EZ
54122003-04-17 Michael Snyder <msnyder@redhat.com>
5413 Karen Bennet <bennet@redhat.com>
5414
5415 Committed by Elena Zannoni <ezannoni@redhat.com>
5416 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 5417
514621a9
EZ
54182003-04-17 Elena Zannoni <ezannoni@redhat.com>
5419
5420 * values.c (value_being_returned): Don't fetch the return
fbe586ae 5421 value if the return type is void.
514621a9 5422
b4acd559
JJ
54232003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5424
5425 * thread-db.c: Reindented.
8ffd9b1b 5426
530b167e 54272003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
5428
5429 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5430 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
5431 as types.
5432
0a48e7e8
MS
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
8ffd9b1b 5456
ab9fe00e
KB
54572003-04-16 Kevin Buettner <kevinb@redhat.com>
5458
610a3745 5459 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
5460 the size of ``long double'' to 16, instead of 8.
5461
e64a344c
MK
54622003-04-16 Mark Kettenis <kettenis@gnu.org>
5463
5464 * i386-linux-nat.c: Add some whitespace to make things more
5465 readable.
5466 (fetch_register, store_register, fetch_inferior_registers,
5467 store_inferior_registers): Get rid of assignment in if-statement.
5468 (store_register): Fix typo in error message.
5469
25d41031
AC
54702003-04-16 Andrew Cagney <cagney@redhat.com>
5471
5472 * utils.c (xmmalloc): Always allocate something, matches
5473 libiberty/xmalloc's semantics.
5474 (xmrealloc, xmcalloc): Ditto.
5475
c50901fd
AC
54762003-04-16 Andrew Cagney <cagney@redhat.com>
5477
5478 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5479 update comments.
5480 (get_frame_type): Initialize unwind and type when needed.
5481 (get_frame_id, frame_register_unwind): Ditto.
5482
f81824a9
AC
54832003-04-16 Andrew Cagney <cagney@redhat.com>
5484
5485 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5486 obsolete.
5487 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5488 * sparcl-stub.c: Obsolete file.
5489 * config/sparc/tm-sparclet.h: Obsolete file.
5490 * sparclet-stub.c: Obsolete file.
5491 * sparclet-rom.c: Obsolete file.
5492 * sparcl-tdep.c: Obsolete file.
5493 * config/sparc/tm-sparclite.h: Obsolete file.
5494 * config/sparc/sparclite.mt: Obsolete file.
5495 * config/sparc/sparclet.mt: Obsolete file.
5496 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5497 sparc86x-*-* obsolete.
5498
9219021c
DC
54992003-04-15 David Carlton <carlton@math.stanford.edu>
5500
5501 * Makefile.in (SFILES): Add cp-namespace.c.
5502 (COMMON_OBS): Add cp-namespace.o.
5503 (block.o): Depend on gdb_obstack_h and cp_support_h.
5504 (buildsym.o): Depend on cp_support_h.
5505 (cp-namespace.o): New.
5506 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
5507 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
5508 (dwarf2read.o): Depend on cp_support_h.
5509 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
5510 * dwarf2read.c (process_die): Set processing_has_namespace_info,
5511 processing_current_namespace.
5512 (read_namespace): Update processing_current_namespace; check for
5513 anonymous namespaces.
5514 (dwarf2_name): New function.
5515 (dwarf2_extension): Ditto.
5516 * cp-support.h: Update copyright, contributors.
5517 Add inclusion guards.
5518 Add opaque declaration for structs obstack, block, symbol.
5519 (struct using_direct): New struct.
5520 Add declarations for cp_find_first_component,
5521 cp_entire_prefix_len, processing_has_namespace_info,
5522 processing_current_namespace, cp_is_anonymous,
5523 cp_add_using_directive, cp_initialize_namespace,
5524 cp_finalize_namespace, cp_set_block_scope,
5525 cp_scan_for_anonymous_namespaces.
5526 * cp-namespace.c: New file.
5527 * cp-support.c: Update copyright.
5528 Include ctype.h, gdb_assert.h, gdbcmd.h.
5529 New variable maint_cplus_cmd_list.
5530 (cp_find_first_component): New function.
5531 (cp_entire_prefix_len, maint_cplus_command)
5532 (first_component_command, _initialize_cp_support): Ditto.
5533 * buildsym.c: Include cp-support.h.
5534 New variable using_list.
5535 (add_symbol_to_list): Check for anonymous namespaces.
5536 (finish_block): Set block's scope.
5537 (start_symtab): Initialize C++ namespace support.
5538 (end_symtab): Finalize C++ namespace support.
5539 * block.h: Add opaque declarations for structs
5540 block_namespace_info, using_direct, and obstack.
5541 Add declarations for block_set_scope and block_set_using.
5542 (struct block): Add 'language_specific' member.
5543 (BLOCK_NAMESPACE): New macro.
5544 * block.c: Include gdb_obstack.h and cp-support.h.
5545 (struct block_namespace_info): New struct.
5546 (block_set_scope): New function.
5547 (block_set_using, block_initialize_namespace): Ditto.
5548
d5a921c9
KB
55492003-04-14 Kevin Buettner <kevinb@redhat.com>
5550
5551 * solib-svr4.c (svr4_have_link_map_offsets): New function.
5552 (locate_base): Return early if there aren't any link map offsets.
5553 (svr4_solib_create_inferior_hook): Warn if shared library support
5554 is unavailable.
5555
d2a52b27
DC
55562003-04-14 David Carlton <carlton@math.stanford.edu>
5557
5558 * symtab.c (symbol_set_names): Add prefix when storing Java names
5559 in hash table. Fix for PR java/1039.
5560
980cae7a
DC
55612003-04-14 David Carlton <carlton@math.stanford.edu>
5562
5563 * symtab.c (symbol_set_names): Rename 'name' arg to
5564 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
5565 * symtab.h: Change 'name' argument in declaration of
5566 symbol_set_names to 'linkage_name'.
5567 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
5568
e227b13c
AC
55692003-04-14 Andrew Cagney <cagney@redhat.com>
5570
5571 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
5572 return the fully sign-extended register value.
5573 (get_frame_pointer): Ditto.
5574 (mips_pop_frame): Initialize "proc_desc" after checking for a
5575 dummy frame.
5576
36712a20
AC
55772003-04-14 Andrew Cagney <cagney@redhat.com>
5578
5579 * mips-tdep.c (mips_push_dummy_frame): Delete function.
5580 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
5581 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
5582 (mips_push_register): Delete function.
5583 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
5584 PUSH_FP_REGNUM.
5585
44ea7b70
JB
55862003-04-14 Jim Blandy <jimb@redhat.com>
5587
5588 * symmisc.c: #include "gdb_regex.h".
5589 (maintenance_list_symtabs, maintenance_list_psymtabs): New
5590 functions.
5591 * maint.c (maintenance_list_command): New function.
5592 (_initialize_maint_cmds): Register the above as commands.
5593 * symtab.h (maintenance_list_symtabs,
5594 maintenance_list_psymtabs): New declarations.
5595 * cli/cli-cmds.c (maintenancelistlist): New variable.
5596 (init_cmd_lists): Initialize it.
5597 * cli/cli-cmds.h (maintenancelistlist): New declaration.
5598 * gdbcmd.h (maintenancelistlist): New declaration.
5599 * Makefile.in (symmisc.o): Update dependencies.
5600
2d0c7962
EZ
56012003-04-14 Elena Zannoni <ezannoni@redhat.com>
5602
5603 * s390-nat.c: Include asm/types.h for addr_t.
5604
1947a811
CV
56052003-04-14 Corinna Vinschen <vinschen@redhat.com>
5606
5607 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
5608 actually incoming type.
5609
adb616d7
AC
56102003-04-13 Andrew Cagney <cagney@redhat.com>
5611
5612 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
5613 get_next_frame and get_frame_saved_regs.
5614
9b5e151c
AC
56152003-04-13 Andrew Cagney <cagney@redhat.com>
5616
5617 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
5618 of gdbarch_num_regs.
5619
ef6e7e13
AC
56202003-04-13 Andrew Cagney <cagney@redhat.com>
5621
5622 * frame.h: Mention what replaced what in "struct frame_info".
5623 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
5624 deprecated_update_frame_base_hack and
5625 deprecated_update_frame_pc_hack.
5626 * hppa-tdep.c: Ditto.
5627
61fbb938
DJ
56282003-04-13 Daniel Jacobowitz <drow@mvista.com>
5629
5630 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
5631 to read_reg and update its comment. Remove regnum member.
5632 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
5633 Don't call read_reg when setting in_reg. Call read_reg to get
5634 the frame base if it's in a register. Return the register number
5635 on the stack instead of in the context. Remove extra arguments
5636 to read_reg.
5637 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
5638 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
5639 the register number on the expression stack.
5640 (needs_frame_read_reg): Remove extra arguments.
5641
0d53c4c4
DJ
56422003-04-13 Daniel Jacobowitz <drow@mvista.com>
5643
5644 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
5645 made non-static.
5646 (execute_stack_op): All callers updated.
5647 * dwarf2expr.h: Add prototype for dwarf2_read_address.
5648 * dwarf2loc.c (find_location_expression): New function.
5649 (dwarf_expr_frame_base): Call it.
5650 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
5651 (dwarf2_tracepoint_var_ref): New function, broken out from
5652 locexpr_tracepoint_var_ref.
5653 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
5654 Make static.
5655 (loclist_read_variable, loclist_read_needs_frame): New functions.
5656 (loclist_describe_location, loclist_tracepoint_var_ref): New
5657 functions.
5658 (dwarf2_loclist_funcs): New struct location_funcs.
5659 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
5660 (struct dwarf2_locexpr_baton): Add comments.
5661 (dwarf2_loclist_funcs): New extern.
5662 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
5663 base_address and base_known.
5664 (dwarf_loc_buffer): New variable.
5665 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
5666 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
5667 (dwarf2_has_info): Initialize dwarf_loc_offset.
5668 (dwarf2_build_psymtabs): Read in .debug_loc.
5669 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
5670 DWARF_LOC_SIZE.
5671 (psymtab_to_symtab_1): Likewise. Move base address calculation
5672 here, from...
5673 (dwarf2_get_pc_bounds): ... here. Use the base address from
5674 cu_header.
5675 (dwarf2_symbol_mark_computed): Handle location lists.
5676
6aca59a3
DJ
56772003-04-13 Daniel Jacobowitz <drow@mvista.com>
5678
5679 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
5680 if the linkage name demangled successfully.
5681
aca1fcd0
MK
56822003-04-13 Mark Kettenis <kettenis@gnu.org>
5683
97095916
MK
5684 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
5685 disassmbly_flavour): Removed.
5686
aca1fcd0
MK
5687 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
5688
562a961f
MK
56892003-04-13 Mark Kettenis <kettenis@gnu.org>
5690
5691 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
5692
bd013d54
AC
56932003-04-12 Andrew Cagney <cagney@redhat.com>
5694
5695 * frame.h (struct frame_info): Move definition from here ...
5696 * frame.c (struct frame_info): ... to here.
5697
167ef8b1
AC
56982003-04-12 Andrew Cagney <cagney@redhat.com>
5699
5700 * gdbthread.h (save_infrun_state): Delete parameter
5701 "prev_func_start".
5702 (struct thread_info): Delete field "prev_func_start".
5703 (load_infrun_state): Ditto.
5704 * thread.c (load_infrun_state, save_infrun_state): Update.
5705 * infrun.c (prev_func_start): Delete variable.
5706 (context_switch, init_wait_for_inferior): Update.
5707 (stop_stepping, keep_going): Update.
5708
da3331ec
AC
57092003-04-12 Andrew Cagney <cagney@redhat.com>
5710
5711 * gdbarch.sh: Add missing opaque declarations.
5712 * gdbarch.h: Regnerate.
5713 * symtab.h: Add missing opaque declarations.
5714 * value.h, target.h, symfile.h, stabsread.h: Ditto.
5715 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
5716 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
5717 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
5718 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
5719 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
5720 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
5721 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
5722 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
5723 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
5724 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
5725 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
5726 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
5727
18adea3f
AC
57282003-04-11 Andrew Cagney <cagney@redhat.com>
5729
5730 * frame.c (get_frame_id): Return this frame's "id".
5731 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
5732 function start.
5733 (legacy_saved_regs_this_id): Replace function body with
5734 internal-error.
5735 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
5736 FRAME_OBSTACK_ZALLOC.
5737 (create_new_frame): Mark the frame ID as valid.
5738
2252e863
AO
57392003-04-11 Alexandre Oliva <aoliva@redhat.com>
5740
5741 * Makefile.in (libbfd_h): Added missing setting.
5742 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
5743 according to the selected ABI.
5744
a8245ab8
JJ
57452003-04-11 Jeff Johnston <jjohnstn@redhat.com>
5746
5747 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
5748
6913c89a
AC
57492003-04-11 Andrew Cagney <cagney@redhat.com>
5750
5751 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
5752 SAVED_PC_AFTER_CALL.
5753 * gdbarch.h, gdbarch.c: Regenerate.
5754 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5755 * x86-64-tdep.c (x86_64_init_abi): Update.
5756 * vax-tdep.c (vax_gdbarch_init): Update.
5757 * v850-tdep.c (v850_gdbarch_init): Update.
5758 * sparc-tdep.c (sparc_gdbarch_init): Update.
5759 * sh-tdep.c (sh_gdbarch_init): Update.
5760 * s390-tdep.c (s390_gdbarch_init): Update.
5761 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5762 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5763 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5764 * mips-tdep.c (mips_gdbarch_init): Update.
5765 * mcore-tdep.c (mcore_gdbarch_init): Update.
5766 * m68k-tdep.c (m68k_gdbarch_init): Update.
5767 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5768 * ia64-tdep.c (ia64_gdbarch_init): Update.
5769 (ia64_saved_pc_after_call): Update declaration.
5770 * i386ly-tdep.c (i386lynx_init_abi): Update.
5771 * i386-tdep.c (i386_gdbarch_init): Update.
5772 * hppa-tdep.c (hppa_gdbarch_init): Update.
5773 * h8300-tdep.c (h8300_gdbarch_init): Update.
5774 * frv-tdep.c (frv_gdbarch_init): Update.
5775 * cris-tdep.c (cris_gdbarch_init): Update.
5776 * avr-tdep.c (avr_gdbarch_init): Update.
5777 * arm-tdep.c (arm_gdbarch_init): Update.
5778 * alpha-tdep.c (alpha_gdbarch_init): Update.
5779 * ns32knbsd-nat.c (frame_num_args): Update.
5780 * ns32k-tdep.c (umax_frame_num_args): Update.
5781 * mips-tdep.c (mips_init_frame_pc_first): Update.
5782 * infrun.c (step_over_function): Update.
5783 * i386-linux-tdep.c (skip_hurd_resolver): Update.
5784 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
5785 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5786 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5787 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5788 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5789 * arm-linux-tdep.c (skip_hurd_resolver): Update.
5790 * arch-utils.c (init_frame_pc_default): Update.
5791 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
5792 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
5793 declaration.
8ffd9b1b 5794
38edeab8
AC
57952003-04-11 Andrew Cagney <cagney@redhat.com>
5796
5797 * i387-tdep.c: Update copyright.
5798 (i387_to_double): Delete function.
5799 (double_to_i387): Delete function.
5800
81f8a206
AC
58012003-04-10 Andrew Cagney <cagney@redhat.com>
5802
5803 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
5804 frame's function's address. Simplify.
5805 (d10v_frame_unwind_cache): Check that the frame's function is
5806 non-zero.
5807
6e691f7a
JB
58082003-04-10 Jim Blandy <jimb@redhat.com>
5809
5810 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
5811 call to set_gdbarch_deprecated_push_arguments.
5812
7f78e237
AC
58132003-04-10 Andrew Cagney <cagney@redhat.com>
5814
5815 * frame.c (fprint_frame_id): New function.
5816 (fprint_frame_type, fprint_frame): New function.
5817 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
5818 (create_sentinel_frame, get_frame_id): Ditto.
5819 (frame_id_p, frame_id_eq): Ditto.
5820 (frame_id_inner, create_new_frame): Ditto.
5821 (legacy_get_prev_frame, get_prev_frame): Ditto.
5822 (deprecated_update_frame_pc_hack): Ditto.
5823 (frame_register_unwind): Ditto.
5824 (deprecated_update_frame_base_hack): Ditto.
5825
f870b49b
CV
58262003-04-10 Corinna Vinschen <vinschen@redhat.com>
5827
5828 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
5829 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
5830 frame_chain function.
5831 * Makefile.in: Add dependencies due to above change.
5832
7c86889b
CV
58332003-04-10 Corinna Vinschen <vinschen@redhat.com>
5834
5835 * blockframe.c (legacy_frame_chain_valid): Move call to
5836 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
5837 inside_entry_file.
5838
d0a55772
AC
58392003-04-09 Andrew Cagney <cagney@redhat.com>
5840
5841 * frame.h (struct frame_id): Replace "pc" and "base" with
5842 "stack_addr" and "code_addr". Update comments.
5843 (frame_id_build): Update parameter names and comment.
5844 (struct frame_info): Replace "id_p" and "id" with "this_id".
5845 * dummy-frame.c (dummy_frame_this_id): Update.
5846 * breakpoint.c (print_one_breakpoint): Update.
5847 * frame.c (get_frame_id): Update.
5848 (get_frame_base, frame_id_build): Update.
5849 (create_sentinel_frame, legacy_get_prev_frame): Update.
5850 (deprecated_update_frame_base_hack): Update.
5851 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
5852 (frame_id_inner): Ditto.
5853
ac16bf07
AC
58542003-04-09 Andrew Cagney <cagney@redhat.com>
5855
5856 * defs.h (gdb_print_host_address): Make "addr" parameter a
5857 pointer constant.
5858 * utils.c (gdb_print_host_address): Update.
5859
366cfc9e
KB
58602003-04-09 Kevin Buettner <kevinb@redhat.com>
5861
5862 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
5863 register number for R0 is 0.
5864
cd983b5c
JB
58652003-04-09 J. Brobecker <brobecker@gnat.com>
5866
5867 * frame.h (struct gdbarch): Add opaque structure definition
5868 to avoid a compilation warning on LynxOS 4.0.
5869
d1340264
AC
58702003-04-09 Andrew Cagney <cagney@redhat.com>
5871
5872 * frame.h (struct frame_info): Delete field "pc". Replace
5873 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
5874 structure.
5875 * frame.c (frame_pc_unwind): Update.
5876 (create_sentinel_frame): Do not set "pc".
5877 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
5878 (get_frame_pc): Call frame_pc_unwind.
5879 (deprecated_update_frame_pc_hack): Update.
5880 (create_new_frame): Use "pc" not "->pc".
5881
90a6fffb
AC
58822003-04-09 Andrew Cagney <cagney@redhat.com>
5883
5884 * frame.c (get_frame_id): Eliminate code updating "frame".
5885 (legacy_get_prev_frame): Ditto.
5886 (get_frame_base): Return id.base directly.
5887 (deprecated_update_frame_base_hack): Update "id.base".
5888 * frame.h (struct frame_info): Delete field "frame".
5889
2fbce691
AC
58902003-04-09 Andrew Cagney <cagney@redhat.com>
5891
5892 * NEWS: Mention that the "Sequent family" is obsolete.
5893 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
5894 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5895 * configure.host: Obsolete i[3456]86-sequent-bsd*,
5896 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5897 * config/i386/tm-ptx4.h: Obsolete file.
5898 * config/i386/tm-ptx.h: Obsolete file.
5899 * symm-tdep.c: Obsolete file.
5900 * config/i386/symmetry.mt: Obsolete file.
5901 * config/i386/tm-symmetry.h: Obsolete file.
5902 * symm-nat.c: Obsolete file.
5903 * config/i386/nm-symmetry.h: Obsolete file.
5904 * config/i386/xm-symmetry.h: Obsolete file.
5905 * config/i386/symmetry.mh: Obsolete file.
5906 * config/i386/nm-ptx4.h: Obsolete file.
5907 * config/i386/ptx4.mh: Obsolete file.
5908 * config/i386/ptx.mt: Obsolete file.
5909 * config/i386/ptx.mh: Obsolete file.
5910 * config/i386/xm-ptx4.h: Obsolete file.
5911 * config/i386/xm-ptx.h: Obsolete file.
5912
78c43945
AC
59132003-04-09 Andrew Cagney <cagney@redhat.com>
5914
5915 Obsolete mips*-*-mach3*.
5916 * NEWS: Mention that mips*-*-mach3* is obsolete.
5917 * m3-nat.c: Obsolete file.
5918 * config/nm-m3.h: Obsolete file.
5919 * config/mips/tm-mipsm3.h: Obsolete file.
5920 * config/mips/mipsm3.mt: Obsolete file.
5921 * config/mips/mipsm3.mh: Obsolete file.
5922 * config/mips/xm-mipsm3.h: Obsolete file.
5923 * mipsm3-nat.c: Obsolete file.
5924 * configure.host: Obsolete mips-dec-mach3*.
5925 * configure.tgt: Obsolete mips*-*-mach3*.
5926
f1908289
AC
59272003-04-09 Andrew Cagney <cagney@redhat.com>
5928
5929 * doublest.h: Update copyright.
5930 (deprecated_store_floating, deprecated_extract_floating): Rename
5931 store_floating and extract_floating. Update comments.
5932 * doublest.c: Update copyright.
5933 (extract_floating_by_length): Replace extract_floating.
5934 (store_floating_by_length): Replace store_floating.
5935 (deprecated_extract_floating): New function.
5936 (deprecated_store_floating): New function.
5937 (extract_typed_floating): Call extract_floating_by_length.
5938 (store_typed_floating): Call store_floating_by_length.
5939 * x86-64-tdep.c (x86_64_store_return_value): Update.
5940 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
5941 (sh64_extract_return_value): Update.
5942 (sh_sh4_register_convert_to_virtual): Update.
5943 (sh_sh64_register_convert_to_virtual): Update.
5944 (sh_sh4_register_convert_to_raw): Update.
5945 (sh_sh64_register_convert_to_raw): Update.
5946 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
5947 (rs6000_register_convert_to_raw): Update.
5948 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
5949 (ia64_register_convert_to_raw): Update.
5950 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
5951 (REGISTER_CONVERT_TO_VIRTUAL): Update.
5952 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
5953 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
5954 (alpha_register_convert_to_raw): Update.
5955
4443bd83
AC
59562003-04-08 Andrew Cagney <cagney@redhat.com>
5957
5958 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
5959 * gdbarch.h, gdbarch.c: Re-generate.
5960 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
5961 (d10v_gdbarch_init): Do not set saved_pc_after_call.
5962 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
5963 conditionally, use frame_pc_unwind as an alternative. Add
5964 comments.
5965 * arch-utils.c (init_frame_pc_default): Only call
5966 SAVED_PC_AFTER_CALL when available.
5967
c0236d92
EZ
59682003-04-08 Elena Zannoni <ezannoni@redhat.com>
5969
fbe586ae 5970 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
5971 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
5972 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
5973 (start_remote): Ditto.
5974 (handle_inferior_event): Ditto.
5975 (save_inferior_status): Ditto.
5976 (restore_inferior_status): Ditto.
5977 * infcmd.c (attach_command): Ditto.
5978 * fork-child.c (startup_inferior): Ditto.
fbe586ae 5979 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
5980 * alpha-tdep.c (heuristic_proc_start): Ditto.
5981 * mips-tdep.c (heuristic_proc_start): Ditto.
5982 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
5983 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
5984 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
5985 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
5986 * remote-vx.c (vx_create_inferior): Ditto.
5987
59882003-04-08 Elena Zannoni <ezannoni@redhat.com>
5989
5990 * infrun.c (stop_soon_quietly): Make it an enum, to better
5991 override the default behavior of handle_inferior_event.
5992 (clear_proceed_status): Update uses of stop_soon_quietly to
5993 reflect that it is now an enum.
5994 (start_remote): Ditto.
5995 (handle_inferior_event): Change logic a bit if stop_soon_quietly
5996 is set to handle the new GNU/Linux kernel behavior for
5997 attach/sigstop. Update uses of stop_soon_quietly.
5998 * inferior.h (enum stop_kind): New enum.
5999 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6000 Reset normal handle_inferior_event behavior, afterwards.
6001 * fork-child.c (startup_inferior): Update.
6002 * alpha-tdep.c (heuristic_proc_start): Update.
6003 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6004 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6005 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6006 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6007 * remote-vx.c (vx_create_inferior): Update.
6008 * mips-tdep.c (heuristic_proc_start): Update.
6009
1211bce3
EZ
60102003-04-07 Elena Zannoni <ezannoni@redhat.com>
6011
6012 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 6013 be freed more than once, causing wild memory corruptions.
1211bce3 6014 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 6015 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 6016 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 6017 with the "core" target.
1211bce3 6018
f0ef6b29
KB
60192003-04-07 Kevin Buettner <kevinb@redhat.com>
6020
6021 * mips-tdep.c (mips_print_fp_register): New function, created from
6022 do_fp_register_row(). Registers are now (also) printed as hex.
6023 Only one register is printed per row.
6024 (mips_print_register, do_fp_register_row): Print floating point
6025 registers with mips_print_fp_register().
6026
8cf71652
AC
60272003-04-06 Andrew Cagney <cagney@redhat.com>
6028
5e488a7b
AC
6029 * valprint.h (inspect_it): Add extern declaration.
6030 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6031 (selectors_info, classes_info): Ditto.
6032 (find_objc_msgcall): Fix indentation.
6033 (objc_printstr): Delete extern declarations.
6034
8cf71652
AC
6035 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6036
e6ba3bc9
AC
60372003-04-06 Andrew Cagney <cagney@redhat.com>
6038
6039 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6040 Update comment.
6041 * frame.c (legacy_saved_regs_this_id): Update.
6042 (legacy_get_prev_frame): Update.
6043 * xstormy16-tdep.c: Update comment.
6044 * sparc-tdep.c (sparc_frame_chain): Update comment.
6045 * blockframe.c (legacy_frame_chain_valid): Update.
6046
55e1d7e7
AC
60472003-04-06 Andrew Cagney <cagney@redhat.com>
6048
996179ee
AC
6049 * valprint.c (val_print_type_code_int): Delete #ifdef
6050 PRINT_TYPELESS_INTEGER code.
6051
55e1d7e7
AC
6052 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6053 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6054 multi-arch definition.
6055 * gdbarch.h: Re-generate.
6056
43bd9a9e
AC
60572003-04-05 Andrew Cagney <cagney@redhat.com>
6058
6059 Eliminate FRAME_FIND_SAVED_REGS.
6060 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6061 Change FSR parameter to a pointer.
6062 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6063 Assume FSR parameter is a pointer.
6064 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6065 Make fsr a pointer.
6066 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6067 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6068 saved_regs a pointer.
6069 (hppa_frame_saved_pc): Ditto.
6070 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6071 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6072 pointer.
6073 (restore_pc_queue): Make fsr a pointer.
6074 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6075 (hppa_frame_chain): Make saved_regs a pointer, call
6076 hppa_frame_init_saved_regs.
6077 * sparc-tdep.c: Include "gdb_assert.h".
6078 (sparc_frame_find_saved_regs): Replace internal_error with
6079 gdb_assert.
6080 * remote-vxsparc.c (vx_read_register): Delete reference to
6081 FRAME_FIND_SAVED_REGS.
6082 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6083 * gdbarch.h: Regenerate.
6084 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6085 (deprecated_get_frame_saved_regs): Delete declaration.
6086 (struct frame_saved_regs): Delete definition.
6087 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6088 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6089 (hppa_frame_find_saved_regs): Delete declaration.
6090 (FRAME_FIND_SAVED_REGS): Delete macro.
6091 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6092 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6093 FRAME_FIND_SAVED_REGS in comment.
6094
be41e9f4
AC
60952003-04-05 Andrew Cagney <cagney@redhat.com>
6096
6097 * frame.c (frame_func_unwind, get_frame_func): New functions.
6098 * frame.h (get_frame_func, frame_func_unwind): Declare.
6099 (struct frame_info): Add field "prev_func" for caching the
6100 previous frame's function address.
6101 * arm-tdep.c (arm_frameless_function_invocation): Combine
6102 get_pc_function_start and get_frame_pc into get_frame_func.
6103 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6104 (sh64_nofp_frame_init_saved_regs): Ditto.
6105 * s390-tdep.c (s390_function_start): Ditto.
6106 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6107 (rs6000_frameless_function_invocation): Ditto.
6108 (rs6000_frame_saved_pc): Ditto.
6109 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6110 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6111 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6112 (i386_frame_init_saved_regs): Ditto.
6113 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6114 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6115 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6116 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6117 * blockframe.c (frameless_look_for_prologue): Ditto.
6118
a01dd7cc
AC
61192003-04-05 Andrew Cagney <cagney@redhat.com>
6120
6121 * frame.c (legacy_get_prev_frame): Link prev to next at the
6122 function start. Update comments.
6123
5e5592e6
AC
61242003-04-05 Andrew Cagney <cagney@redhat.com>
6125
6126 * frame.c (get_frame_id): Update comment.
6127 (legacy_get_prev_frame): Update comment.
6128 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6129 * gdbarch.h: Regenerate.
6130 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6131 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6132
6fba5002
AC
61332003-04-05 Andrew Cagney <cagney@redhat.com>
6134
6135 * stack.c (print_frame_info): Use get_frame_pc.
6136
7df05f2b
AC
61372003-04-04 Andrew Cagney <cagney@redhat.com>
6138
6139 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6140 the frame's type from the unwinder.
6141 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6142 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6143 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6144 (get_frame_base_address): Use get_frame_type.
6145 (get_frame_locals_address, get_frame_args_address): Ditto.
6146 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6147 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6148 (struct frame_info): Add comment explaining why the frame contains
6149 a "type" field.
6150 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6151 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6152 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6153 NORMAL_FRAME.
6154 * frame-unwind.h: Include "frame.h".
6155 (struct frame_unwind): Add "type" field.
6156 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 6157
11889732
AC
61582003-04-04 Andrew Cagney <cagney@redhat.com>
6159
6160 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6161 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6162 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6163 get_frame_base.
6164 (d10v_unwind_dummy_id): Use frame_id_build.
6165 * frame.c (find_frame_sal): Use get_frame_pc.
6166 (create_new_frame): Use deprecated_update_frame_pc_hack and
6167 deprecated_update_frame_base_hack.
6168 (create_sentinel_frame): Add comment about ->pc going away.
6169 (get_prev_frame): Add comment about ->pc going away.
6170 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6171 frame_id_build, deprecated_update_frame_pc_hack and
6172 deprecated_update_frame_base_hack.
6173 (select_frame): Use get_frame_pc.
6174 (legacy_saved_regs_this_id): Use frame_id_build.
6175
50c46a0d
EZ
61762003-04-04 Elena Zannoni <ezannoni@redhat.com>
6177
fbe586ae
RH
6178 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6179 signed integer case.
6180 (classify_argument): Handle enumerations and references.
50c46a0d 6181
50bbdbd9
AC
61822003-04-04 Andrew Cagney <cagney@redhat.com>
6183
6184 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6185 ID to NULL.
6186
36018d2e
AF
61872003-04-01 Adam Fedor <fedor@gnu.org>
6188
6189 * gdb/objc-lang.c (selectors_info): Replace calls to
6190 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6191 SYMBOL_NATURAL_NAME.
6192 (classes_info, find_methods): Likewise.
6193
35cec841
KB
61942003-04-03 Kevin Buettner <kevinb@redhat.com>
6195
6196 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6197 ``mach'' to the value determined by bfd_default_set_arch_mach().
6198
43136899
BR
61992003-04-02 Bob Rossi <bob_rossi@cox.net>
6200
6201 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6202 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6203 (mi-cmd-file.o): Update dependencies.
6204
040b99fd
KB
62052003-04-01 Kevin Buettner <kevinb@redhat.com>
6206
6207 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6208 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6209
9a3d7dfd
AF
62102003-04-01 Adam Fedor <fedor@gnu.org>
6211
6212 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6213 * language.h (struct language_defn): Add la_demangle.
6214 (language_demangle): Declare.
6215 * language.c (language_demangle): New function.
6216 (unk_lang_demangle): Likewise.
6217 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 6218 Add ukn_lang_demangle.
9a3d7dfd 6219 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 6220 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
6221 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6222 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6223 * jv-lang.c (java_demangle): New function
6224 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
6225 * objc-lang.c (objc_demangle): Add options argument
6226 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
6227 * maint.c (maintenance_demangle): Replace switch with
6228 call to language_demangle.
6229 * utils.c (fprintf_symbol_filtered): Likewise.
6230
5e074003
AC
62312003-04-01 Andrew Cagney <cagney@redhat.com>
6232
6233 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6234 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6235 PRINT_TYPELESS_INTEGER.
6236 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6237 PUSH_RETURN_ADDRESS.
6238
270cb5d6
AC
62392003-04-01 Andrew Cagney <cagney@redhat.com>
6240
6241 * Makefile.in (d10v-tdep.o): Update dependencies.
6242 * d10v-tdep.c: Include "frame-base.h".
6243 (d10v_frame_unwind): Make constant.
6244 (d10v_frame_base_address): New function.
6245 (d10v_frame_base): New variable.
6246 (d10v_gdbarch_init): Set frame_base default.
6247 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6248 comment for base.
6249 (d10v_frame_unwind_cache): Set and use "prev_sp".
6250 (d10v_frame_this_id): Use the previous frame's inner most stack
6251 address and this frame's func address for the frame ID. Use
6252 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 6253
6bfb3e36
AC
62542003-04-01 Andrew Cagney <cagney@redhat.com>
6255
6256 * frame.h (get_frame_locals_address, get_frame_args_address):
6257 Refer to the base address, instead of the address of the first
6258 local or parameter.
8ffd9b1b 6259
da62e633
AC
62602003-04-01 Andrew Cagney <cagney@redhat.com>
6261
6262 Add frame debug info addresses:
6263 * frame-base.c: New file.
6264 * frame-base.h: New file.
6265 * frame.h (struct frame_base): Add opaque declaration.
6266 (get_frame_base): Update comment.
6267 (get_frame_base_address): Declare.
6268 (get_frame_locals_address): Declare.
6269 (get_frame_args_address): Declare.
6270 (struct frame_info): Add "base" and "base_cache". Update
6271 comments on the unwinder.
6272 * frame.c: Include "frame-base.h".
6273 (get_frame_locals_address): New function.
6274 (get_frame_base_address): New function.
6275 (get_frame_args_address): New function.
6276 * findvar.c (read_var_value): Use get_frame_locals_address and
6277 get_frame_args_address.
6278 * stack.c (frame_info): Use get_frame_locals_address and
6279 get_frame_args_address.
6280 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6281 moved to "frame-base.c".
6282 * printcmd.c (print_frame_nameless_args): Ditto.
6283 * symtab.h (address_class): Update comments.
6284 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6285 get_frame_base_address.
6286 * dwarf2expr.c (execute_stack_op): Ditto.
6287 * Makefile.in (frame_base_h): Define.
6288 (frame.o): Update dependencies.
6289 (frame-base.o): Add dependencies.
6290 (SFILES): Add frame-base.c.
6291 (COMMON_OBS): Add frame-base.o.
6292
3d30e9c2
AC
62932003-04-01 Andrew Cagney <cagney@redhat.com>
6294
6295 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6296 CALL_DUMMY_LENGTH): Ditto.
6297 * gdbarch.c: Re-generate.
6298 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6299 (CALL_DUMMY_LENGTH): Delete macro.
6300 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6301 * arm-tdep.c (arm_gdbarch_init): Ditto.
6302 * avr-tdep.c (avr_gdbarch_init): Ditto.
6303 * cris-tdep.c (cris_gdbarch_init): Ditto.
6304 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6305 * frv-tdep.c (frv_gdbarch_init): Ditto.
6306 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6307 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6308 * i386-tdep.c (i386_gdbarch_init): Ditto.
6309 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6310 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6311 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6312 * mips-tdep.c (mips_gdbarch_init): Ditto.
6313 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6314 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6315 * s390-tdep.c (s390_gdbarch_init): Ditto.
6316 * sh-tdep.c (sh_gdbarch_init): Ditto.
6317 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6318 * v850-tdep.c (v850_gdbarch_init): Ditto.
6319 * vax-tdep.c (vax_gdbarch_init): Ditto.
6320 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6321
ce0c7262
CV
63222003-04-01 Corinna Vinschen <vinschen@redhat.com>
6323
6324 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6325
73dd234f
AC
63262003-04-01 Andrew Cagney <cagney@redhat.com>
6327
6328 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6329 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6330 * gdbarch.h, gdbarch.c: Re-generate.
6331 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6332 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6333 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6334 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6335 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6336 * infcmd.c (run_stack_dummy): Simplify assuming
6337 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6338 * infrun.c (handle_inferior_event): Ditto.
6339 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6340 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6341 * arm-tdep.c (arm_gdbarch_init): Ditto.
6342 * avr-tdep.c (avr_gdbarch_init): Ditto.
6343 * cris-tdep.c (cris_gdbarch_init): Ditto.
6344 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6345 * frv-tdep.c (frv_gdbarch_init): Ditto.
6346 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6347 * i386-tdep.c (i386_gdbarch_init): Ditto.
6348 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6349 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6350 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6351 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6352 * mips-tdep.c (mips_gdbarch_init): Ditto.
6353 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6354 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6355 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6356 * s390-tdep.c (s390_gdbarch_init): Ditto.
6357 * sh-tdep.c (sh_gdbarch_init): Ditto.
6358 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6359 * v850-tdep.c (v850_gdbarch_init): Ditto.
6360 * vax-tdep.c (vax_gdbarch_init): Ditto.
6361 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6362
97606a13
DJ
63632003-04-01 Daniel Jacobowitz <drow@mvista.com>
6364
6365 * symfile.c (symfile_relocate_debug_section): Update call to
6366 bfd_simple_get_relocated_section_contents.
6367
e8ab51f7
AC
63682003-03-31 Andrew Cagney <cagney@redhat.com>
6369
6370 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6371 * gdbarch.h, gdbarch.c: Regenerate.
6372 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6373 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6374 available.
6375 * frame.h (generic_fix_call_dummy): Delete declaration.
6376 * dummy-frame.h: Update comment.
6377 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6378 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6379 fix_call_dummy.
6380 * sh-tdep.c (sh_gdbarch_init): Ditto.
6381 * s390-tdep.c (s390_gdbarch_init): Ditto.
6382 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6383 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6384 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6385 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6386 * i386-tdep.c (i386_gdbarch_init): Ditto.
6387 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6388 * frv-tdep.c (frv_gdbarch_init): Ditto.
6389 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6390 * cris-tdep.c (cris_gdbarch_init): Ditto.
6391 * avr-tdep.c (avr_gdbarch_init): Ditto.
6392 * arm-tdep.c (arm_gdbarch_init): Ditto.
6393
018d1b48
JB
63942003-03-31 J. Brobecker <brobecker@gnat.com>
6395
6396 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6397 (INIT_FRAME_AP): Likewise.
6398 (EXTRA_FRAME_INFO): Likewise.
6399
e9a2674e
AC
64002003-03-31 Andrew Cagney <cagney@redhat.com>
6401
6402 * gdbarch.sh: Include "symfile.h".
6403 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6404 * gdbarch.h, gdbarch.c: Re-generate.
6405 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6406 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6407 call_dummy_address, the default is at entry_point_address.
6408 * v850-tdep.c (v850_gdbarch_init): Ditto.
6409 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6410 * sh-tdep.c (sh_gdbarch_init): Ditto.
6411 * s390-tdep.c (s390_gdbarch_init): Ditto.
6412 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6413 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6414 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6415 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6416 * i386-tdep.c (i386_gdbarch_init): Ditto.
6417 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6418 * frv-tdep.c (frv_gdbarch_init): Ditto.
6419 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6420 * cris-tdep.c (cris_gdbarch_init): Ditto.
6421 * arm-tdep.c (arm_gdbarch_init): Ditto.
6422
e8a8712a
AC
64232003-03-31 Andrew Cagney <cagney@redhat.com>
6424
6425 * gdbarch.sh (CALL_DUMMY_P): Delete.
6426 * gdbarch.h, gdbarch.c: Re-generate.
6427 * inferior.h (CALL_DUMMY_P): Delete macro.
6428 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6429 * vax-tdep.c (vax_gdbarch_init): Update.
6430 * v850-tdep.c (v850_gdbarch_init): Update.
6431 * sparc-tdep.c (sparc_gdbarch_init): Update.
6432 * sh-tdep.c (sh_gdbarch_init): Update.
6433 * s390-tdep.c (s390_gdbarch_init): Update.
6434 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6435 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6436 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6437 * mips-tdep.c (mips_gdbarch_init): Update.
6438 * mcore-tdep.c (mcore_gdbarch_init): Update.
6439 * m68k-tdep.c (m68k_gdbarch_init): Update.
6440 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6441 * ia64-tdep.c (ia64_gdbarch_init): Update.
6442 * i386-tdep.c (i386_gdbarch_init): Update.
6443 * h8300-tdep.c (h8300_gdbarch_init): Update.
6444 * frv-tdep.c (frv_gdbarch_init): Update.
6445 * d10v-tdep.c (d10v_gdbarch_init): Update.
6446 * cris-tdep.c (cris_gdbarch_init): Update.
6447 * breakpoint.c (deprecated_frame_in_dummy): Update.
6448 * avr-tdep.c (avr_gdbarch_init): Update.
6449 * alpha-tdep.c (alpha_gdbarch_init): Update.
6450 * arm-tdep.c (arm_gdbarch_init): Update.
6451 * dummy-frame.c (dummy_frame_this_id): Update comments.
6452 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6453 * frame.c (legacy_get_prev_frame): Ditto.
6454 * valops.c (call_function_by_hand): Delete function.
6455 (hand_function_call): Rename to call_function_by_hand
6456
ed234cf8
AC
64572003-03-30 Andrew Cagney <cagney@redhat.com>
6458
6459 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 6460 * value.h (struct value): Update comment.
ed234cf8 6461
06c77151
AC
64622003-03-30 Andrew Cagney <cagney@redhat.com>
6463
6c2b5168
AC
6464 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6465 D10V_FP_REGNUM.
6466 (d10v_gdbarch_init): Do not set fp_regnum.
6467
06c77151
AC
6468 * frame.c (get_frame_base): Force ID initialization.
6469 (get_prev_frame): Move computation of the frame ID from here ...
6470 (get_frame_id): ... to here.
6471 (legacy_get_prev_frame): Mark the frame ID as valid.
6472 * frame.h (struct frame_info): Add field "id_p".
6473
97a1a11c
MK
64742003-03-30 Mark Kettenis <kettenis@gnu.org>
6475
6476 * i386-tdep.c (i386_store_struct_return): Removed.
6477 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6478
6c0e89ed
AC
64792003-03-30 Andrew Cagney <cagney@redhat.com>
6480
6481 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6482 * gdbarch.h, gdbarch.c: Regenerate.
6483 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6484 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6485 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6486 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6487 * i386-tdep.c (i386_gdbarch_init): Ditto.
6488 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6489 * cris-tdep.c (cris_gdbarch_init): Ditto.
6490 * vax-tdep.c (vax_gdbarch_init): Ditto.
6491 * s390-tdep.c (s390_gdbarch_init): Ditto.
6492 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6493 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6494 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6495 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6496 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6497 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6498 * sparc-tdep.c (sparc_gdbarch_init): Update.
6499 * sh-tdep.c (sh_gdbarch_init): Update.
6500 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6501 * mips-tdep.c (mips_gdbarch_init): Update.
6502 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6503 * ia64-tdep.c (ia64_gdbarch_init): Update.
6504 * frv-tdep.c (frv_gdbarch_init): Update.
6505 * avr-tdep.c (avr_gdbarch_init): Update.
6506 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
6507 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
6508 instead of when push_dummy_call is not available.
8ffd9b1b 6509
f7dd6af2
AC
65102003-03-30 Andrew Cagney <cagney@redhat.com>
6511
6512 * infttrace.c: Include "gdbthread.h".
6513 (parent_attach_all): Fix function signature.
6514 (call_ptrace): Update call.
6515 * Makefile.in (infttrace.o): Update dependencies.
6516
28f617b3
AC
65172003-03-30 Andrew Cagney <cagney@redhat.com>
6518
6519 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
6520 PUSH_RETURN_ADDRESS.
6521 * gdbarch.h, gdbarch.c: Regenerate.
6522 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6523 * x86-64-tdep.c (x86_64_init_abi): Update.
6524 * v850-tdep.c (v850_gdbarch_init): Update.
6525 * sparc-tdep.c (sparc_gdbarch_init): Update.
6526 * sh-tdep.c (sh_gdbarch_init): Update.
6527 * s390-tdep.c (s390_gdbarch_init): Update.
6528 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6529 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6530 * mips-tdep.c (mips_gdbarch_init): Update.
6531 * mcore-tdep.c (mcore_gdbarch_init): Update.
6532 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6533 * ia64-tdep.c (ia64_gdbarch_init): Update.
6534 * i386-tdep.c (i386_gdbarch_init): Update.
6535 * h8300-tdep.c (h8300_gdbarch_init): Update.
6536 * frv-tdep.c (frv_gdbarch_init): Update.
6537 * cris-tdep.c (cris_gdbarch_init): Update.
6538 * avr-tdep.c (avr_gdbarch_init): Update.
6539 * arm-tdep.c (arm_gdbarch_init): Update.
6540 * valops.c (hand_function_call): Update.
6541
4d628cd7
AC
65422003-03-29 Andrew Cagney <cagney@redhat.com>
6543
6544 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
6545 sizeof_call_dummy_words.
6546 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
6547 define.
6548 * gdbarch.h: Regenerate.
8ffd9b1b 6549
65e82032
AC
65502003-03-29 Andrew Cagney <cagney@redhat.com>
6551
6552 * infttrace.h: New file.
6553 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
6554 (hpread_get_textlow): Detect an uninitialized dn_bufp.
6555 (hpread_read_doc_function_type): Detect an initialized type1.
6556 (hpread_quick_traverse): Initialize mod_name_string.
6557 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
6558 (som_solib_get_solib_by_pc): Declare.
6559 (so_lib_thread_start_addr): Declare.
6560 (no_shared_libraries): Declare.
6561 * somread.c (init_import_symbols): Make static. Add forward
6562 declaration.
6563 * config/pa/nm-hppah.h: Include "infttrace.h" for
6564 parent_attach_all.
6565 (hppa_insert_hw_watchpoint): Declare.
6566 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
6567 * hppah-nat.c: Include "gdb_string.h".
6568 (parent_attach_all): Delete extern declaration, moved to
6569 "infttrace.h".
6570 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
6571 int.
6572 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
6573 * Makefile.in (infttrace_h): Define.
6574 (hpread.o): Update dependencies.
6575 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
6576 * hppa-hpux-tdep.c: Include "gdb_string.h".
6577 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
6578 * infrun.c (handle_inferior_event): Always initialize
6579 stepped_after_stopped_by_watchpoint. Add default and remove
6580 fallthrough in switch statement.
6581 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
6582 parameter to int.
6583 (hppa_remove_hw_watchpoint): Ditto.
6584
2c3bbe77
AC
65852003-03-29 Andrew Cagney <cagney@redhat.com>
6586
6587 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
6588 offset.
6589
2dd604e7
RE
65902003-03-29 Richard Earnshaw <rearnsha@arm.com>
6591
6592 * arm-tdep.c (arm_push_arguments): Delete.
6593 (struct stack_item): New type.
6594 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
6595 (arm_store_struct_return): Delte.
6596 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
6597 arm_push_arguments or arm_store_struct_return.
6598
e8933a55
AC
65992003-03-28 Andrew Cagney <cagney@redhat.com>
6600
6601 * Makefile.in (d10v-tdep.o): Update dependencies.
6602 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
6603 * d10v-tdep.c: Include "remote.h".
6604 (target_resume_hook): Delete extern declaration.
6605 (target_wait_loop_hook): Ditto.
6606 (tdisassemble_command): Eliminate assignment in "if" conditional.
6607 (d10v_ts2_register_sim_regno): Eliminate call to
6608 legacy_register_sim_regno.
6609 (d10v_ts3_register_sim_regno): Ditto.
6610
6949171e
JJ
66112003-03-28 Jeff Johnston <jjohnstn@redhat.com>
6612
6613 * thread.c: Reindented.
6614 * lin-lwp.c: Ditto.
6615 * linux-proc.c: Ditto.
6616
98c7071f
BR
66172003-03-28 Bob Rossi <bob_rossi@cox.net>
6618
fbe586ae 6619 * MAINTAINERS (write after approval): Add myself.
98c7071f 6620
5edc9ca6
TR
66212003-03-27 Theodore A. Roth <troth@openavr.org>
6622
6623 * objc-exp.y: Add missing semi-colons.
6624
378bfd1b
AC
66252003-03-27 Andrew Cagney <cagney@redhat.com>
6626
6627 * regcache.c (write_sp): Delete function and references.
6628 * inferior.h (write_sp): Delete declaration.
6629 * valops.c (hand_function_call): Replace write_sp with
6630 TARGET_WRITE_SP.
6631 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
6632 (sparc_pop_frame): Ditto.
8ffd9b1b 6633
56056df7
AC
66342003-03-27 Andrew Cagney <cagney@redhat.com>
6635
6636 * NEWS: Mention removal of support for hppa*-*-bsd* and
6637 hppa*-*-osf* natives, and hppa*-*-pro* target.
6638 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
6639 * config/pa/xm-pa.h: Obsolete file.
6640 * config/pa/xm-hppab.h: Obsolete file.
6641 * config/pa/nm-hppab.h: Obsolete file.
6642 * config/pa/tm-hppab.h: Obsolete file.
6643 * config/pa/tm-hppao.h: Obsolete file.
6644 * config/pa/nm-hppao.h: Obsolete file.
6645 * config/pa/tm-pro.h: Obsolete file.
6646 * config/pa/hppaosf.mt: Obsolete file.
6647 * config/pa/hppaosf.mh: Obsolete file.
6648 * config/pa/hppapro.mt: Obsolete file.
6649 * config/pa/hppabsd.mt: Obsolete file.
6650 * config/pa/hppabsd.mh: Obsolete file.
6651 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
6652 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
6653 hppa*-*-osf*.
6654
5873a88d
AC
66552003-03-27 Andrew Cagney <cagney@redhat.com>
6656
6657 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
6658 push_arguments. Don't set push_return_address or write_sp.
6659 (d10v_push_dummy_call): Replace d10v_push_arguments.
6660 (d10v_push_return_address, d10v_write_sp): Delete function,
6661 handled by push_dummy_call.
6662
b81774d8
AC
66632003-03-26 Andrew Cagney <cagney@redhat.com>
6664
6665 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
6666 (push_dummy_call): New pure multi-arch replacement with gdbarch,
6667 regcache and dummy_addr parameters.
6668 * gdbarch.h, gdbarch.c: Re-generate.
6669 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
6670 available; assume it will handle stack alignment and return
6671 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
6672 legacy_push_arguments.
6673 (legacy_push_arguments): Rename default_push_arguments.
6674 * value.h (legacy_push_arguments): Rename default_push_arguments.
6675 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
6676 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6677 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6678 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6679 * config/i386/tm-symmetry.h: Update.
6680 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6681 * x86-64-tdep.c (x86_64_init_abi): Update.
6682 * v850-tdep.c (v850_gdbarch_init): Update.
6683 * sparc-tdep.c (sparc_gdbarch_init): Update.
6684 * sh-tdep.c (sh_gdbarch_init): Update.
6685 * s390-tdep.c (s390_gdbarch_init): Update.
6686 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6687 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6688 * mips-tdep.c (mips_gdbarch_init): Update.
6689 * mcore-tdep.c (mcore_gdbarch_init): Update.
6690 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6691 * ia64-tdep.c (ia64_gdbarch_init): Update.
6692 * i386-tdep.c (i386_gdbarch_init): Update.
6693 * hppa-tdep.c (hppa_gdbarch_init): Update.
6694 * h8300-tdep.c (h8300_gdbarch_init): Update.
6695 * frv-tdep.c (frv_gdbarch_init): Update.
6696 * d10v-tdep.c (d10v_gdbarch_init): Update.
6697 * cris-tdep.c (cris_gdbarch_init): Update.
6698 * avr-tdep.c (avr_gdbarch_init): Update.
6699 * arm-tdep.c (arm_gdbarch_init): Update.
6700 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6701 * alpha-tdep.c (alpha_gdbarch_init): Update.
6702
f541410f
DJ
67032003-03-26 Daniel Jacobowitz <drow@mvista.com>
6704
6705 * signals/signals.c (do_target_signal_to_host): Correct realtime
6706 signal range test.
6707
69f567ae
DJ
67082003-03-26 Daniel Jacobowitz <drow@mvista.com>
6709
6710 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
6711 (struct sal_chain, map_catch_names): Remove.
6712 (catch_exception_command_1): Don't call
6713 handle_gnu_4_16_catch_command.
6714
d5d14a5a
DJ
67152003-03-26 Daniel Jacobowitz <drow@mvista.com>
6716
6717 From Mark Dettinger <dettinge@de.ibm.com>:
6718 * dwarf2cfi.c (read_2u): Increment pointer by two.
6719
bdd73e22
DJ
67202003-03-26 Daniel Jacobowitz <drow@mvista.com>
6721
6722 * signals/signals.c: Fix typos in last change.
6723
960cb555
DJ
67242003-03-26 Daniel Jacobowitz <drow@mvista.com>
6725
6726 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
6727 not already defined. Use __SIGRTMIN if available.
6728 (target_signal_from_host): Remove SIGRTMIN block.
6729 (do_target_signal_to_host): Remove SIGRTMIN block; check that
6730 the signal is within the realtime range.
6731
f636b87d
AF
67322003-03-25 Adam Fedor <fedor@gnu.org>
6733
6734 * Makefile.in (infrun.o): Add $(language_h)
6735 * infrun.c (handle_inferior_event): Use skip_language_trampoline
6736 for language specific trampolines.
6737 * language.h (struct language_defn): Add skip_trampoline.
6738 (skip_language_trampoline): Declare.
6739 * language.c (unk_lang_trampoline, skip_language_trampoline):
6740 New functions.
6741 (unknown_language_defn, auto_language_defn, local_language_defn):
6742 Add ukn_lang_trampoline.
6743 * ada-lang.c (ada_language_defn): Add NULL for language
6744 specific skip_trampoline.
6745 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
6746 scm-lang.c: Likewise.
6747 * objc-lang.c (objc_skip_trampoline): New function.
6748 (objc_language_defn): Add objc_skip_trampoline.
6749
28f617b3 67502003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
6751
6752 * frame.c (get_prev_frame): Delay validating a frame's ID -
6753 non-NULL, didn't go backwards - until an attempt to unwind it to
6754 the previous frame.
6755
f933a9c5
AC
67562003-03-25 Andrew Cagney <cagney@redhat.com>
6757
6758 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
6759 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
6760 * gdbarch.h, gdbarch.c: Re-generate.
6761 * config/sparc/tm-sparc.h
6762 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
6763 * sparc-tdep.c (sparc_gdbarch_init): Set
6764 deprecated_extra_stack_alignment_needed.
6765 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
6766 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
6767 extra_stack_alignment_needed.
6768 * v850-tdep.c (v850_gdbarch_init): Ditto.
6769 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6770 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6771 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6772 * cris-tdep.c (cris_gdbarch_init): Ditto.
6773 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6774 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 6775
4183d812
AC
67762003-03-25 Andrew Cagney <cagney@redhat.com>
6777
6778 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
6779 STORE_STRUCT_RETURN.
6780 * gdbarch.h, gdbarch.c: Regenerate.
6781 * d10v-tdep.c (d10v_store_struct_return): Delete function.
6782 (d10v_push_arguments): Set the struct return register.
6783 (d10v_gdbarch_init): Update.
6784 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6785 * x86-64-tdep.c (x86_64_init_abi): Update.
6786 * vax-tdep.c (vax_gdbarch_init): Update.
6787 * v850-tdep.c (v850_gdbarch_init): Update.
6788 * sparc-tdep.c (sparc_gdbarch_init): Update.
6789 * sh-tdep.c (sh_gdbarch_init): Update.
6790 * s390-tdep.c (s390_gdbarch_init): Update.
6791 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6792 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6793 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6794 * mips-tdep.c (mips_gdbarch_init): Update.
6795 * mcore-tdep.c (mcore_gdbarch_init): Update.
6796 * m68k-tdep.c (m68k_gdbarch_init): Update.
6797 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6798 * ia64-tdep.c (ia64_gdbarch_init): Update.
6799 * i386-tdep.c (i386_gdbarch_init): Update.
6800 * hppa-tdep.c (hppa_gdbarch_init): Update.
6801 * h8300-tdep.c (h8300_gdbarch_init): Update.
6802 * frv-tdep.c (frv_gdbarch_init): Update.
6803 * cris-tdep.c (cris_gdbarch_init): Update.
6804 * avr-tdep.c (avr_gdbarch_init): Update.
6805 * arm-tdep.c (arm_gdbarch_init): Update.
6806 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 6807
1bf6d5cc
AC
68082003-03-25 Andrew Cagney <cagney@redhat.com>
6809
6810 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
6811 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
6812 CALL_DUMMY_STACK_ADJUST with a predicate variable.
6813 * gdbarch.h, gdbarch.c: Regenerate.
6814 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6815 call_dummy_stack_adjust_p.
6816 * vax-tdep.c (vax_gdbarch_init): Ditto.
6817 * v850-tdep.c (v850_gdbarch_init): Ditto.
6818 * sh-tdep.c (sh_gdbarch_init): Ditto.
6819 * s390-tdep.c (s390_gdbarch_init): Ditto.
6820 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6821 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6822 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6823 * mips-tdep.c (mips_gdbarch_init): Ditto.
6824 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6825 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6826 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6827 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6828 * i386-tdep.c (i386_gdbarch_init): Ditto.
6829 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6830 * frv-tdep.c (frv_gdbarch_init): Ditto.
6831 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6832 * cris-tdep.c (cris_gdbarch_init): Ditto.
6833 * avr-tdep.c (avr_gdbarch_init): Ditto.
6834 * arm-tdep.c (arm_gdbarch_init): Ditto.
6835 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6836 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6837 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
6838 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6839 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
6840 call_dummy_stack_adjust_p.
6841 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
6842 (CALL_DUMMY_STACK_ADJUST): Delete macro.
6843 * sparc-tdep.c (sparc32_push_arguments): Update.
6844 * valops.c (hand_function_call): Update.
6845
71c08af0
CV
68462003-03-25 Corinna Vinschen <vinschen@redhat.com>
6847
6848 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
6849 set_gdbarch_char_signed.
6850
30757f90
RE
68512003-03-25 Richard Earnshaw <rearnsha@arm.com>
6852
6853 PR cli/548
6854 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
6855
03d48a7d
RE
68562003-03-25 Richard Earnshaw <rearnsha@arm.com>
6857
6858 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
6859 (_initialize_arm_tdep): Don't set tm_print_insn.
6860
2cf6873c
AF
68612003-03-24 Adam Fedor <fedor@gnu.org>
6862
6863 * Makefile.in (YYOBJ): Add objc-exp.tab.o
6864 * objc-lang.h: Add multiple inclusion protection.
6865 (start_msglist, add_msglist, end_msglist): Additional declarations.
6866
17c0759e
RE
68672003-03-24 Richard Earnshaw <rearnsha@arm.com>
6868
6869 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
6870 value was renamed to ARM_FLOAT_SOFT_FPA.
6871
618ce49f
AC
68722003-03-23 Andrew Cagney <cagney@redhat.com>
6873
6874 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
6875 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
6876 * gdbarch.h, gdbarch.c: Regenerate.
6877 * valops.c (hand_function_call): Update.
6878 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6879 * frame.c (legacy_saved_regs_this_id): Update.
6880 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
6881 * dummy-frame.h: Update.
6882 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
6883 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6884 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
6885 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
6886 * config/m68k/tm-sun3.h: Update.
6887 * blockframe.c (inside_main_func, frame_chain_valid): Update.
6888 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6889 * x86-64-tdep.c (x86_64_init_abi): Update.
6890 * vax-tdep.c (vax_gdbarch_init): Update.
6891 * v850-tdep.c (v850_gdbarch_init): Update.
6892 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
6893 * sh-tdep.c (sh_gdbarch_init): Update.
6894 * s390-tdep.c (s390_gdbarch_init): Update.
6895 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
6896 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
6897 (frame_get_saved_regs): Update.
6898 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6899 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6900 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6901 * mips-tdep.c (mips_gdbarch_init): Update.
6902 * mcore-tdep.c (mcore_gdbarch_init): Update.
6903 * m68k-tdep.c (m68k_gdbarch_init): Update.
6904 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6905 * ia64-tdep.c (ia64_gdbarch_init): Update.
6906 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
6907 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6908 (i386_interix_back_one_frame): Update.
6909 * hppa-tdep.c (hppa_gdbarch_init): Update.
6910 (hppa_init_extra_frame_info): Update.
6911 * h8300-tdep.c (h8300_gdbarch_init): Update.
6912 * frv-tdep.c (frv_gdbarch_init): Update.
6913 * cris-tdep.c (cris_gdbarch_init): Update.
6914 * avr-tdep.c (avr_gdbarch_init): Update.
6915 * arm-tdep.c (arm_gdbarch_init): Update.
6916 * alpha-tdep.c (alpha_gdbarch_init): Update.
6917
fd50bc42
RE
69182003-03-22 Richard Earnshaw <rearnsha@arm.com>
6919
6920 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
6921 (arm_get_fp_model): Declare.
6922 * arm-tdep.c (fp_model_strings): New string array.
6923 (arm_fp_model, current_fp_model): New variables.
6924 (arm_get_fp_model): New function.
6925 (arm_set_fp): New function.
6926 (set_fp_model_sfunc): New function.
6927 (show_fp_model): New function.
6928 (_initialize_arm_tdep): Add new command to set/show the FPU.
6929 (arm_extract_return_value): Use arm_get_fp_model.
6930 (arm_store_return_value): Likewise.
6931 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
6932 to initialize the floating-point data types.
6933 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
6934 model is FPA.
6935
26304000
RE
69362003-03-22 Richard Earnshaw <rearnsha@arm.com>
6937
6938 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
6939 the current setting of each value.
6940 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 6941 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
6942 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
6943 commands and add new version as subcommands of "set/show arm".
6944
afd7eef0
RE
69452003-03-22 Richard Earnshaw <rearnsha@arm.com>
6946
6947 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
6948 (set_arm_command, show_arm_command): New functions.
6949 (_initialize_arm_tdep): Add them.
6950 (num_disassembly_options): Renamed from num_flavor_options.
6951 (valid_disassembly_styles): Renamed from valid_flavors.
6952 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 6953 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
6954 set_disassembly_flavor_sfunc.
6955 (set_disassembly_style): Renamed from set_disassembly_flavor.
6956 (arm_othernames): Updated.
6957 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
6958 command. Add "set/show arm disassembly" commands. Deprecate
6959 "othernames" command.
6960
299a7944
RE
69612003-03-22 Richard Earnshaw <rearnsha@arm.com>
6962
6963 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
6964 (arm-tdep.o): Depend on elf_arm_h.
6965
c1dac9e6
RE
69662003-03-22 Richard Earnshaw <rearnsha@arm.com>
6967
6968 * Makefile.in (coff_internal_h): Define.
6969 (arm-tdep.o): Update dependencies.
6970
2702d96c
RE
69712003-03-22 Richard Earnshaw <rearnsha@arm.com>
6972
6973 * arm-tdep.c (prologue_cache): Delete.
6974 (check_prologue_cache, save_prologue_cache): Delete.
6975 (arm_scan_prologue): Don't check or update the prologue_cache.
6976 (arm_gdb_arch_init): Don't initialize it.
6977 (_initialize_arm_tdep): Likewise.
6978
27d5d74b
SC
69792003-03-21 Stephane Carrez <stcarrez@nerim.fr>
6980
6981 * MAINTAINERS (tui): Maintainer of tui code.
6982
1762d96d
CV
69832003-03-21 Corinna Vinschen <vinschen@redhat.com>
6984
6985 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
6986 (i386-cygwin-tdep.o): Add dependencies.
6987 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
6988 * i386-cygwin-tdep.c: New file.
6989 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
6990 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
6991
4c2e2391
AC
69922003-03-20 Andrew Cagney <cagney@redhat.com>
6993
f20d38b7
AC
6994 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
6995 (handle_inferior_event): Remove code calling
6996 DYNAMIC_TRAMPOLINE_NEXTPC.
6997
0022b738
AC
6998 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
6999 already has a full path.
7000
864dbc90
AC
7001 * main.c (gdb_main): Return 1.
7002 (captured_main): Call error to report an invalid interpreter.
7003
4c2e2391
AC
7004 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7005 * alpha-osf1-tdep.c: Include "gdb_string.h".
7006
5ef7553b
JB
70072003-03-19 J. Brobecker <brobecker@gnat.com>
7008
7009 Continuing work to convert the hppa targets to multiarch partial.
7010
7011 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7012 method, now that hppa_push_dummy_frame has a conformant prototype.
7013 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7014 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7015 for the switch to multiarch partial.
7016
7bde8967
KB
70172003-03-19 Kevin Buettner <kevinb@redhat.com>
7018
7019 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7020 when iss is issNull.
7021
b006a9e9
KB
70222003-03-18 Kevin Buettner <kevinb@redhat.com>
7023
7024 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7025 NUM_REGS bounds check.
7026
5e2e9765
KB
70272003-03-18 Kevin Buettner <kevinb@redhat.com>
7028
7029 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7030 * mips-tdep.c (gdb_assert.h): Include.
7031 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7032 (mips_register_name): Handle integer registers explicitly. Add
7033 bounds checking.
7034 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7035 (mips_lsi33k_reg_names): Don't list integer registers; they're
7036 handled by mips_register_name() now.
7037 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7038 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7039 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7040 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7041 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7042
a2867626
AC
70432003-03-18 Andrew Cagney <cagney@redhat.com>
7044
7045 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7046 a void pointer.
7047 * gdbtypes.h (print_scalar_formatted): Update declaration.
7048 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7049
06600e06
JB
70502003-03-18 J. Brobecker <brobecker@gnat.com>
7051
7052 * infrun.c (observer.h): Add #include.
7053 (normal_stop): Add call to observer_notify_normal_stop.
7054 * Makefile.in (infrun.o): Add dependency on observer.h.
7055
7daf4f5b
JB
70562003-03-18 J. Brobecker <brobecker@gnat.com>
7057
7058 Continuing work to convert the hppa targets to multiarch partial.
7059 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7060 parameter. Reformat comment.
7061 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7062 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7063 to match new profile.
7064
3371ccc0
JB
70652003-03-18 J. Brobecker <brobecker@gnat.com>
7066
7067 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7068 appear to be working in any case.
7069
4fbe891e
JB
70702003-03-18 J. Brobecker <brobecker@gnat.com>
7071
7072 * observer.c (observer_test_first_observer): New static variable.
7073 (observer_test_second_observer): Likewise.
7074 (observer_test_third_observer): Likewise.
7075 (observer_test_first_notification_function): New static function.
7076 (observer_test_second_notification_function): Likewise.
7077 (observer_test_third_notification_function): Likewise.
7078
a7ff40e7
JB
70792003-03-17 J. Brobecker <brobecker@gnat.com>
7080
7081 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7082 * somsolib.c (gdb_assert.h): Likewise.
7083 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7084 (somsolib.o): Likewise.
7085
26ca4152
AC
70862003-03-17 Andrew Cagney <cagney@redhat.com>
7087
7088 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7089 BFD. Simplify setting of di.endian.
7090
0a613259
AC
70912003-03-17 Andrew Cagney <cagney@redhat.com>
7092
7093 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7094 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7095
7096 From Elena Zannoni <ezannoni@redhat.com>
7097 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7098 vector and floating-point parameters.
7099 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7100 convention.
7101 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7102
1132738f
FN
71032003-03-17 Fernando Nasser <fnasser@redhat.com>
7104
7105 * MAINTAINERS: Remove my name from several maintainership roles.
7106
6dc42492
AC
71072003-03-17 Andrew Cagney <cagney@redhat.com>
7108
7109 Fix frame off-by-one bug.
7110 * frame-unwind.h (frame_this_id_ftype): Replace
7111 frame_unwind_id_ftype.
7112 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7113 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7114 with "prev_register".
7115 * frame-unwind.c (frame_unwind_find_by_pc): Return
7116 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7117 comment.
7118 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7119 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7120 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7121 (dummy_frame_unwind): Update.
7122 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7123 sentinel_frame_register_unwind.
7124 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7125 (sentinel_frame_unwinder): Update.
7126 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7127 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7128 * frame.c (create_sentinel_frame): Update. Initialize
7129 "prologue_cache" instead of "unwind_cache".
7130 (frame_register_unwind): Call this frame's prev_register with the
7131 next frame and this frame's prologue cache.
7132 (get_prev_frame): Simplify. Always call prev frame's this_id with
7133 this frame and prev frame's prologue cache. Document that this
7134 call is shifted one to the left when compared to the
7135 frame_register_unwind call.
7136 (legacy_saved_regs_prev_register): Replace
7137 frame_saved_regs_register_unwind.
7138 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7139 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7140 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7141 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7142 (d10v_frame_unwind): Update.
7143 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7144 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7145 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7146 "saved_regs" with "this_saved_regs".
7147
efd710d6
AC
71482003-03-16 Andrew Cagney <cagney@redhat.com>
7149
7150 * frame.c (frame_pop): Don't call target_store_registers. Fix
7151 problem reported by Mark Kettenis.
7152
4e259f09
MK
71532003-03-16 Mark Kettenis <kettenis@gnu.org>
7154
7155 * i386-tdep.c (i386_register_type): Renamed from
7156 i386_register_virtual_type. Adjust function signature.
7157 (i386_gdbarch_init): Set register_type instead of
7158 deprecated_max_register_raw_size,
7159 deprecated_max_register_virtual_size and register_virtual_type.
7160
055bb976
AC
71612003-03-14 Andrew Cagney <cagney@redhat.com>
7162
7163 * frame.c (get_prev_frame): When a legacy frame, always call
7164 legacy_get_prev_frame. Simplify unwind code using assumption that
7165 the unwinder is new.
7166 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7167 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7168 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7169
ac2adee5
AC
71702003-03-14 Andrew Cagney <cagney@redhat.com>
7171
7172 * frame.c (get_saved_register): Delete function.
7173 * frame.h (get_saved_register): Delete declaration.
7174 * xstormy16-tdep.c: Update comment.
7175 * regcache.h: Update comments.
7176 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7177 get_saved_register and extract_address, use
7178 frame_read_unsigned_register.
7179 (sparc_frame_saved_pc): Ditto.
7180 (sparc_get_saved_register): Instead of get_saved_register, use
7181 frame_register.
7182 (sparc_pop_frame): Ditto.
7183 * findvar.c: Update comments.
7184 (value_of_register): Call frame_register instead of
7185 get_saved_register.
7186 (value_from_register): Ditto.
7187 * config/sparc/tm-sparc.h: Update comment.
7188 * breakpoint.c: Update comment.
7189
129c1cd6
AC
71902003-03-14 Andrew Cagney <cagney@redhat.com>
7191
7192 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7193 GET_SAVED_REGISTER.
7194 * gdbarch.h, gdbarch.c: Re-generate.
7195 * frame.h: Update comments.
7196 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7197 * x86-64-tdep.c (x86_64_init_abi): Update.
7198 * sparc-tdep.c (sparc_gdbarch_init): Update.
7199 * sh-tdep.c (sh_gdbarch_init): Update.
7200 * mips-tdep.c (mips_gdbarch_init): Update.
7201 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7202 * cris-tdep.c (cris_gdbarch_init): Update.
7203 * ia64-tdep.c (ia64_gdbarch_init): Update.
7204 * frame.c (frame_register): Update.
7205 (get_saved_register): Update.
7206 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 7207
749b82f6
AC
72082003-03-13 Andrew Cagney <cagney@redhat.com>
7209
7210 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7211 * gdbarch.h, gdbarch.c: Regenerate.
7212 * valops.c (hand_function_call): Update comment.
7213 * stack.c (return_command): Update comment.
7214 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7215 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7216 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7217 * x86-64-tdep.c (x86_64_init_abi): Update.
7218 * vax-tdep.c (vax_gdbarch_init): 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 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7225 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7226 * mips-tdep.c (mips_gdbarch_init): Update.
7227 * mcore-tdep.c (mcore_gdbarch_init): Update.
7228 * m68k-tdep.c (m68k_gdbarch_init): Update.
7229 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7230 * ia64-tdep.c (ia64_gdbarch_init): Update.
7231 * i386-tdep.c (i386_gdbarch_init): Update.
7232 * hppa-tdep.c (hppa_gdbarch_init): Update.
7233 * h8300-tdep.c (h8300_gdbarch_init): Update.
7234 * frv-tdep.c (frv_gdbarch_init): Update.
7235 * cris-tdep.c (cris_gdbarch_init): Update.
7236 * avr-tdep.c (avr_gdbarch_init): Update.
7237 * arm-tdep.c (arm_gdbarch_init): Update.
7238 * alpha-tdep.c (alpha_gdbarch_init): Update.
7239
1594fa56
AC
72402003-03-13 Andrew Cagney <cagney@redhat.com>
7241
7242 * frame.c (legacy_frame_p): New function.
7243 (get_prev_frame): Use legacy_frame_p.
7244 * frame.h (legacy_frame_p): Declare.
7245
7717fda3
V
72462003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7247
fbe586ae 7248 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
7249 listing corrected.
7250
0c67cbe9
V
72512003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7252
fbe586ae 7253 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 7254
03febf99
AC
72552003-03-12 Andrew Cagney <cagney@redhat.com>
7256
7257 * frame.c (get_prev_frame): Rename the frame parameter to
7258 "this_frame".
7259 (get_next_frame, legacy_get_prev_frame): Ditto.
7260
0a1e1ca1
AC
72612003-03-12 Andrew Cagney <cagney@redhat.com>
7262
7263 * frame.c (get_current_frame): Check target_has_registers before
7264 checking target_has_stack.
7265 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7266 instead of deprecated_selected_frame.
7267 * findvar.c (value_of_register): Pass "frame", not
7268 deprecated_selected_frame, to value_of_builtin_reg.
7269
a66a9c23
AC
72702003-03-12 Andrew Cagney <cagney@redhat.com>
7271
7272 * regcache.c (regcache_cooked_write_signed): New function.
7273 (regcache_cooked_write_unsigned): New function.
7274 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7275 (regcache_cooked_read_signed): Fix regnum in range assertion.
7276 * regcache.h (regcache_cooked_write_signed): Declare.
7277 (regcache_cooked_write_unsigned): Declare.
7278
8bedc050
AC
72792003-03-12 Andrew Cagney <cagney@redhat.com>
7280
7281 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7282 * gdbarch.h, gdbarch.c: Re-generate.
7283 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7284 * x86-64-tdep.h: Update.
7285 * x86-64-tdep.c (x86_64_init_abi): Update.
7286 * v850-tdep.c (v850_gdbarch_init): Update.
7287 * sparc-tdep.c (sparc_gdbarch_init): Update.
7288 * sh-tdep.c (sh_gdbarch_init): Update.
7289 * s390-tdep.c (s390_gdbarch_init): Update.
7290 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7291 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7292 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7293 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7294 * mips-tdep.c (mips_gdbarch_init): Update.
7295 * mcore-tdep.c (mcore_gdbarch_init): Update.
7296 * m68k-tdep.c (m68k_gdbarch_init): Update.
7297 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7298 * ia64-tdep.c (ia64_gdbarch_init): Update.
7299 * i386-tdep.c (i386_gdbarch_init): Update.
7300 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7301 * hppa-tdep.c (hppa_gdbarch_init): Update.
7302 * h8300-tdep.c (h8300_gdbarch_init): Update.
7303 * frv-tdep.c (frv_gdbarch_init): Update.
7304 * cris-tdep.c (cris_gdbarch_init): Update.
7305 * avr-tdep.c (avr_gdbarch_init): Update.
7306 * arm-tdep.c (arm_gdbarch_init): Update.
7307 * alpha-tdep.c (alpha_gdbarch_init): Update.
7308 * sh-tdep.c (sh_init_extra_frame_info): Update.
7309 (sh64_init_extra_frame_info): Update.
7310 * ns32knbsd-nat.c (frame_num_args): Update.
7311 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7312 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7313 (xstormy16_frame_chain_valid): Update.
7314 * vax-tdep.c (vax_saved_pc_after_call): Update.
7315 * v850-tdep.c (v850_frame_chain): Update.
7316 (v850_pop_frame): Update.
7317 (v850_init_extra_frame_info): Update.
7318 * sparc-tdep.c (setup_arbitrary_frame): Update.
7319 * ns32k-tdep.c (umax_frame_num_args): Update.
7320 * s390-tdep.c (s390_pop_frame_regular): Update.
7321 * mn10300-tdep.c (mn10300_frame_chain): Update.
7322 (mn10300_pop_frame_regular): Update.
7323 (mn10300_init_extra_frame_info): Update.
7324 * mips-tdep.c (mips_init_frame_pc_first): Update.
7325 (mips_frame_chain): Update.
7326 (mips_pop_frame): Update.
7327 * mcore-tdep.c (mcore_frame_chain): Update.
7328 (mcore_pop_frame): Update.
7329 (mcore_init_extra_frame_info): Update.
7330 * arch-utils.c (init_frame_pc_default): Update.
7331 * m68k-tdep.c (isi_frame_num_args): Update.
7332 (delta68_frame_num_args): Update.
7333 (news_frame_num_args): Update.
7334 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7335 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7336 (alpha_frame_chain): Update.
7337 (alpha_pop_frame): Update.
7338 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7339 (hppa_init_extra_frame_info): Update.
7340 (hppa_frame_chain): Update.
7341 (hppa_frame_chain_valid): Update.
7342 * cris-tdep.c (cris_init_extra_frame_info): Update.
7343 * avr-tdep.c (avr_init_extra_frame_info): Update.
7344 * arm-tdep.c (arm_frame_chain_valid): Update.
7345 (arm_init_extra_frame_info): Update.
7346 (arm_pop_frame): Update.
7347 * frame.c (frame_pc_unwind): Update.
7348 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7349 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7350 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7351 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7352 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7353 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 7354
7a25a7c1
AC
73552003-03-12 Andrew Cagney <cagney@redhat.com>
7356
7357 Eliminate the need for POP_FRAME.
7358 * frame.c (do_frame_unwind_register): New function.
7359 (frame_pop): When no POP_FRAME, pop the frame using register
7360 unwind and a scratch regcache.
7361 (frame_saved_regs_pop): Delete function.
7362 (trad_frame_unwinder): Update.
7363 * d10v-tdep.c (d10v_frame_pop): Delete function.
7364 (d10v_frame_unwind): Update.
7365 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7366 (sentinel_frame_unwinder): Update.
7367 * dummy-frame.c (dummy_frame_pop): Delete function.
7368 (dummy_frame_unwind): Update.
7369 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7370 (struct frame_unwind): Update.
7371
2f38ef89
KB
73722003-03-11 Kevin Buettner <kevinb@redhat.com>
7373
7374 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7375 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7376 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7377 Do range checks on register number obtained from debugging info.
7378 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7379 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
7380 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7381 mapping function.
7382 (do_fp_register_row): Fix typo which caused double type to be
7383 used when attempting to unpack a float.
7384
552f4abf
JB
73852003-03-11 J. Brobecker <brobecker@gnat.com>
7386
7387 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7388
e0d2ae16
AC
73892003-03-11 Andrew Cagney <cagney@redhat.com>
7390
7391 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7392 frame. Problem found by Corinna Vinschen.
7393
ddbfdd06
PM
73942003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
7395
7396 * doublest.c (floatformat_from_length): Accept also
7397 the real size of 'long double' type.
7398
088b2ddc 73992003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 7400
088b2ddc 7401 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
7402 * breakpoint.c (bpstat_copy): Copy the command lines as well
7403 as the old value, to match what is freed in bpstat_clear.
7404
f56f77c1
DC
74052003-03-10 David Carlton <carlton@math.stanford.edu>
7406
7407 * minsyms.c (add_minsym_to_hash_table): Replace
7408 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7409 (compare_minimal_symbols, compact_minimal_symbols)
7410 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7411 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7412 of DEPRECATED_SYMBOL_MATCHES_NAME.
7413 (lookup_minimal_symbol_solib_trampoline): Ditto.
7414
5602984a
AC
74152003-03-10 Andrew Cagney <cagney@redhat.com>
7416
7417 * regcache.h (regcache_cooked_read_ftype): Define.
7418 (regcache_save, regcache_restore): Add a cooked_read parameter.
7419 * regcache.c (regcache_save, regcache_restore): Update.
7420 (do_cooked_read): New function.
7421 (regcache_cpy): Pass do_cooked_read to regcache_save and
7422 regcache_restore.
7423
8bedc050
AC
74242003-03-10 Andrew Cagney <cagney@redhat.com>
7425
7426 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7427 * gdbarch.h, gdbarch.c: Re-generate.
7428 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7429 * x86-64-tdep.h: Update.
7430 * x86-64-tdep.c (x86_64_init_abi): Update.
7431 * v850-tdep.c (v850_gdbarch_init): Update.
7432 * sparc-tdep.c (sparc_gdbarch_init): Update.
7433 * sh-tdep.c (sh_gdbarch_init): Update.
7434 * s390-tdep.c (s390_gdbarch_init): Update.
7435 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7436 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7437 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7438 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7439 * mips-tdep.c (mips_gdbarch_init): Update.
7440 * mcore-tdep.c (mcore_gdbarch_init): Update.
7441 * m68k-tdep.c (m68k_gdbarch_init): Update.
7442 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7443 * ia64-tdep.c (ia64_gdbarch_init): Update.
7444 * i386-tdep.c (i386_gdbarch_init): Update.
7445 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7446 * hppa-tdep.c (hppa_gdbarch_init): Update.
7447 * h8300-tdep.c (h8300_gdbarch_init): Update.
7448 * frv-tdep.c (frv_gdbarch_init): Update.
7449 * cris-tdep.c (cris_gdbarch_init): Update.
7450 * avr-tdep.c (avr_gdbarch_init): Update.
7451 * arm-tdep.c (arm_gdbarch_init): Update.
7452 * alpha-tdep.c (alpha_gdbarch_init): Update.
7453 * sh-tdep.c (sh_init_extra_frame_info): Update.
7454 (sh64_init_extra_frame_info): Update.
7455 * ns32knbsd-nat.c (frame_num_args): Update.
7456 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7457 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7458 (xstormy16_frame_chain_valid): Update.
7459 * vax-tdep.c (vax_saved_pc_after_call): Update.
7460 * v850-tdep.c (v850_frame_chain): Update.
7461 (v850_pop_frame): Update.
7462 (v850_init_extra_frame_info): Update.
7463 * sparc-tdep.c (setup_arbitrary_frame): Update.
7464 * ns32k-tdep.c (umax_frame_num_args): Update.
7465 * s390-tdep.c (s390_pop_frame_regular): Update.
7466 * mn10300-tdep.c (mn10300_frame_chain): Update.
7467 (mn10300_pop_frame_regular): Update.
7468 (mn10300_init_extra_frame_info): Update.
7469 * mips-tdep.c (mips_init_frame_pc_first): Update.
7470 (mips_frame_chain): Update.
7471 (mips_pop_frame): Update.
7472 * mcore-tdep.c (mcore_frame_chain): Update.
7473 (mcore_pop_frame): Update.
7474 (mcore_init_extra_frame_info): Update.
7475 * arch-utils.c (init_frame_pc_default): Update.
7476 * m68k-tdep.c (isi_frame_num_args): Update.
7477 (delta68_frame_num_args): Update.
7478 (news_frame_num_args): Update.
7479 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7480 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7481 (alpha_frame_chain): Update.
7482 (alpha_pop_frame): Update.
7483 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7484 (hppa_init_extra_frame_info): Update.
7485 (hppa_frame_chain): Update.
7486 (hppa_frame_chain_valid): Update.
7487 * cris-tdep.c (cris_init_extra_frame_info): Update.
7488 * avr-tdep.c (avr_init_extra_frame_info): Update.
7489 * arm-tdep.c (arm_frame_chain_valid): Update.
7490 (arm_init_extra_frame_info): Update.
7491 (arm_pop_frame): Update.
7492 * frame.c (frame_pc_unwind): Update.
7493 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7494 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7495 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7496 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7497 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7498 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 7499
12cc2063
AC
75002003-03-10 Andrew Cagney <cagney@redhat.com>
7501
7502 * gdbarch.sh (gdbarch_unwind_pc): New method.
7503 * gdbarch.h, gdbarch.c: Regenerate.
7504 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
7505 but use read_pc and FRAME_SAVED_PC as fall backs.
7506 (frame_saved_regs_pc_unwind): Delete function.
7507 (trad_frame_unwinder): Update.
7508 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
7509 (struct frame_unwind): Update.
7510 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
7511 (dummy_frame_unwind): Update.
7512 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
7513 (sentinel_frame_unwinder): Update.
7514 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
7515 (d10v_frame_unwind): Update.
7516 (d10v_unwind_pc): New function.
7517 (d10v_gdbarch_init): Set unwind_pc.
7518
ef840a37
AC
75192003-03-10 Andrew Cagney <cagney@redhat.com>
7520
a2ce2e56
AC
7521 * gdbarch.h: Re-generate.
7522
ef840a37
AC
7523 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
7524 PC.
7525 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
7526 the PC register.
7527
08f3424b
MK
75282003-03-08 Mark Kettenis <kettenis@gnu.org>
7529
7530 * gdbarch.sh (save_dummy_frame_tos): Add comment.
7531
1248ede2
AC
75322003-03-08 Andrew Cagney <cagney@redhat.com>
7533
7534 * cli-out.c: Update copyright.
7535 (cli_out_data): Define typedef. Use instead of ui_out_data.
7536
f49bacc8
AC
75372003-03-08 Andrew Cagney <cagney@redhat.com>
7538
7539 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
7540 the result.
7541
9b05f993
AC
75422003-03-07 Andrew Cagney <cagney@redhat.com>
7543
7544 * gdbarch.sh: Don't generate two macro definitions when an
7545 undefined macro taking no arguments.
7546 * gdbarch.h: Regenerate.
8ffd9b1b 7547
166f4c7b
ML
75482002-03-07 Michal Ludvig <mludvig@suse.cz>
7549
7550 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
7551 (x86_64_unwind_dummy_id): New functions.
7552 (x86_64_init_abi): Register these two new functions.
7553
6d686a84
ML
75542003-03-07 Michal Ludvig <mludvig@suse.cz>
7555
7556 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 7557 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
7558 separate function.
7559 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
7560
6314f104
AC
75612003-03-05 Andrew Cagney <cagney@redhat.com>
7562
7563 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
7564 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
7565 * frame.c (get_prev_frame): Restructure the frame ID unwind code
7566 to use unwind_dummy_id when a dummy frame.
7567 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
7568 predicate.
7569 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 7570
ceea5145
AC
75712003-03-05 Andrew Cagney <cagney@redhat.com>
7572
7573 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
7574 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
7575 Do not use d10v_read_sp or d10v_read_fp when obtaining register
7576 values.
7577
0d843116
AC
75782003-03-05 Andrew Cagney <cagney@redhat.com>
7579
7580 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
7581 (struct d10v_unwind_cache): Delete field "frameless". Replace
7582 "next_addr" with "sp_offset". Add "r11_offset".
7583 (d10v_frame_unwind_cache): Update.
7584 (prologue_find_regs): Update. When "mv r11, sp", save the
7585 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
7586 RN was saved in r11_offset.
7587
b2579786
AC
75882003-03-05 Andrew Cagney <cagney@redhat.com>
7589
7590 * frame.c (deprecated_update_frame_pc_hack): Also update the the
7591 cached PC value in the next frame.
7592
218e5956
AC
75932003-03-05 Andrew Cagney <cagney@redhat.com>
7594
7595 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
7596 "id_unwind_cache" with "id".
7597 (frame_id_unwind): Delete declaration.
7598 * frame.c (frame_id_unwind): Delete function.
7599 (get_prev_frame): Call the frame id unwind method directly. Store
7600 the returned next frame's ID value in NEXT_FRAME. Note that there
7601 is a problem with the wrong unwind ID being called with the wrong
7602 unwind cache.
7603
ed363b1b
DJ
76042003-03-05 Daniel Jacobowitz <drow@mvista.com>
7605
7606 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
7607
fe1f4a5e
DJ
76082003-03-05 James Ingham <jingham@apple.com>
7609 Daniel Jacobowitz <drow@mvista.com>
7610
7611 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
7612 (auto_cp_abi): New variable.
7613 (current_cp_abi, num_cp_abis): Make static.
7614 (CP_ABI_MAX): Define.
7615 (cp_abis): Turn into an array.
7616 (value_virtual_fn_field): Fix formatting.
7617 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
7618 takes a pointer.
7619 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
7620 (list_cp_abis, _initialize_cp_abi): New functions.
7621 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
7622 declarations for cp_abis, num_cp_abis, current_cp_abi, and
7623 switch_to_cp_abi. Update prototype for register_cp_abi.
7624 * Makefile.in (cp-abi.o): Update dependencies.
7625 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
7626 instead of switch_to_cp_abi.
7627 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
7628 register_cp_abi.
7629 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
7630 register_cp_abi.
7631 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
7632
e4adbba9
DJ
76332003-03-05 Daniel Jacobowitz <drow@mvista.com>
7634
7635 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
7636 * dwarf2loc.c: Include "regcache.h".
7637 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
7638 register_size.
7639 * Makefile.in (dwarf2loc.o): Update dependencies.
7640
91ccbfc1
TR
76412003-03-04 Theodore A. Roth <troth@openavr.org>
7642
7643 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
7644 number of io registers reported by remote target is not a multiple of
7645 step.
7646
3d4e8fd2
DC
76472003-03-04 David Carlton <carlton@math.stanford.edu>
7648
7649 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
7650 (lookup_symbol_aux_psymtabs): Update call to
7651 lookup_partial_symbol.
7652 (lookup_transparent_type, find_main_psymtab)
7653 (make_symbol_overload_list): Ditto.
7654
ed42d87b
KH
76552003-03-04 Kazu Hirata <kazu@cs.umass.edu>
7656
7657 * MAINTAINERS (Write after approval): Update my email address.
7658
a0ed5532
AC
76592003-03-03 Andrew Cagney <cagney@redhat.com>
7660
7661 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
7662 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
7663 predicate. Replace MAX_REGISTER_RAW_SIZE.
7664 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
7665 MAX_REGISTER_VIRTUAL_SIZE.
7666 * regcache.c (legacy_max_register_raw_size): New function.
7667 (legacy_max_register_virtual_size): New function.
7668 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
7669 (MAX_REGISTER_RAW_SIZE): Define.
7670 (legacy_max_register_raw_size): Declare.
7671 (legacy_max_register_virtual_size): Declare.
7672 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7673 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
7674 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7675 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7676 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7677 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7678 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7679 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7680 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7681 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7682 * vax-tdep.c (vax_gdbarch_init): Update.
7683 * v850-tdep.c (v850_gdbarch_init): Update.
7684 * sparc-tdep.c (sparc_gdbarch_init): Update.
7685 * sh-tdep.c (sh_gdbarch_init): Update.
7686 * s390-tdep.c (s390_gdbarch_init): Update.
7687 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7688 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7689 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7690 * mips-tdep.c (mips_gdbarch_init): Update.
7691 * mcore-tdep.c (mcore_gdbarch_init): Update.
7692 * m68k-tdep.c (m68k_gdbarch_init): Update.
7693 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7694 * ia64-tdep.c (ia64_gdbarch_init): Update.
7695 * i386-tdep.c (i386_gdbarch_init): Update.
7696 * hppa-tdep.c (hppa_gdbarch_init): Update.
7697 * h8300-tdep.c (h8300_gdbarch_init): Update.
7698 * frv-tdep.c (frv_gdbarch_init): Update.
7699 * cris-tdep.c (cris_gdbarch_init): Update.
7700 * avr-tdep.c (avr_gdbarch_init): Update.
7701 * arm-tdep.c (arm_gdbarch_init): Update.
7702 * alpha-tdep.c (alpha_gdbarch_init): Update.
7703 * d10v-tdep.c (d10v_gdbarch_init): Do not set
7704 max_register_raw_size or max_register_virtual_size.
7705
8e437497
DC
77062003-03-03 David Carlton <carlton@math.stanford.edu>
7707
7708 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
7709 SYMBOL_MATCHES_NAME, add comment.
7710 (SYMBOL_MATCHES_NATURAL_NAME): New.
7711 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
7712 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
7713 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
7714 * symtab.c (lookup_partial_symbol): Use
7715 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
7716 unhelpful comment.
7717 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
7718 SYMBOL_MATCHES_NAME.
7719 Fix for PR c++/33.
7720
25120b0d
DC
77212003-03-03 David Carlton <carlton@math.stanford.edu>
7722
7723 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
7724 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
7725 by regexp matching against SYMBOL_NATURAL_NAME.
7726
78a11fb4
DC
77272003-03-03 David Carlton <carlton@math.stanford.edu>
7728
7729 * linespec.c (find_method): Extract code into collect_methods.
7730 (collect_methods): New.
7731
645dd519
MK
77322003-03-02 Mark Kettenis <kettenis@gnu.org>
7733
b4700d91
MK
7734 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
7735 get_frame_base.
7736
645dd519
MK
7737 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
7738 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7739
0aa7e1aa
SC
77402003-03-02 Stephane Carrez <stcarrez@nerim.fr>
7741
8ffd9b1b 7742 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
7743 and not regnum when summing the size of all registers up to regnum.
7744
f30ee0bc
AC
77452003-03-01 Andrew Cagney <cagney@redhat.com>
7746
7747 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
7748 FRAME_INIT_SAVED_REGS.
7749 * gdbarch.h, gdbarch.c: Regenerate.
7750 * stack.c (frame_info): Update.
7751 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
7752 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
7753 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
7754 * ns32k-tdep.c (ns32k_pop_frame): Update.
7755 * mips-tdep.c (mips_pop_frame): Update.
7756 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
7757 * ia64-tdep.c (ia64_frame_chain): Update.
7758 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
7759 (ia64_frameless_function_invocation): Update.
7760 (ia64_init_extra_frame_info): Update.
7761 (ia64_pop_frame_regular): Update.
7762 * frame.h (struct frame_info): Update comment.
7763 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
7764 * frame.c (frame_saved_regs_register_unwind): Update.
7765 (frame_saved_regs_register_unwind): Update.
7766 (deprecated_generic_get_saved_register): Update.
7767 * cris-tdep.c: Update comment.
7768 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
7769 Rename macro.
7770 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7771 * x86-64-tdep.c (x86_64_init_abi): Update.
7772 * vax-tdep.c (vax_gdbarch_init): Update.
7773 * v850-tdep.c (v850_gdbarch_init): Update.
7774 * sparc-tdep.c (sparc_gdbarch_init): Update.
7775 * sh-tdep.c (sh_gdbarch_init): Update.
7776 * s390-tdep.c (s390_gdbarch_init): Update.
7777 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7778 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7779 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7780 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7781 * mips-tdep.c (mips_gdbarch_init): Update.
7782 * mcore-tdep.c (mcore_gdbarch_init): Update.
7783 * m68k-tdep.c (m68k_gdbarch_init): Update.
7784 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7785 * ia64-tdep.c (ia64_gdbarch_init): Update.
7786 * i386-tdep.c (i386_gdbarch_init): Update.
7787 * frv-tdep.c (frv_gdbarch_init): Update.
7788 * avr-tdep.c (avr_gdbarch_init): Update.
7789 * arm-tdep.c (arm_gdbarch_init): Update.
7790 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 7791
42fa7c0f
AC
77922003-03-01 Andrew Cagney <cagney@redhat.com>
7793
7794 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
7795 option enum and switch. When no windows, set the interpreter to
7796 INTERP_CONSOLE.
8ffd9b1b 7797
49c7e338
AC
77982003-03-01 Andrew Cagney <cagney@redhat.com>
7799
7800 * main.c (captured_main): Replace magic option characters with an
7801 enum.
7802
e9582e71
AC
78032003-03-01 Andrew Cagney <cagney@redhat.com>
7804
7805 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
7806 INIT_EXTRA_FRAME_INFO.
7807 * gdbarch.h, gdbarch.c: Regenerate.
7808 * arm-tdep.c: Update comments.
7809 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
7810 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
7811 * frame.h, avr-tdep.c: Ditto.
7812 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
7813 (create_new_frame, legacy_get_prev_frame): Ditto.
7814 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7815 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7816 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
7817 deprecated_init_extra_frame_info instead of init_extra_frame_info.
7818 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7819 * v850-tdep.c (v850_gdbarch_init): Ditto.
7820 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7821 * sh-tdep.c (sh_gdbarch_init): Ditto.
7822 * s390-tdep.c (s390_gdbarch_init): Ditto.
7823 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
7824 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7825 * mips-tdep.c (mips_gdbarch_init): Ditto.
7826 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7827 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7828 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7829 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
7830 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7831 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7832 * frv-tdep.c (frv_gdbarch_init): Ditto.
7833 * cris-tdep.c (cris_gdbarch_init): Ditto.
7834 * avr-tdep.c (avr_gdbarch_init): Ditto.
7835 * arm-tdep.c (arm_gdbarch_init): Ditto.
7836 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7837 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7838
35cac7cf
AC
78392003-03-01 Andrew Cagney <cagney@redhat.com>
7840
7841 * gdbarch.sh (register_type): New function with predicate.
7842 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
7843 * gdbarch.h, gdbarch.c: Re-generate.
7844 * arch-utils.c (generic_register_byte): Use generic_register_size.
7845 (generic_register_size): When available, use
7846 gdbarch_register_type.
7847 * regcache.c (init_regcache_descr): When available, initialize the
7848 register type array using gdbarch_register_type. If the
7849 architecture supplies gdbarch_register_type, do not use the legacy
7850 regcache layout.
7851 * d10v-tdep.c (d10v_register_type): Replace
7852 d10v_register_virtual_type.
7853 (d10v_gdbarch_init): Set register_type instead of
7854 register_virtual_type.
7855
7b83296f
AC
78562003-03-01 Andrew Cagney <cagney@redhat.com>
7857
7858 * Makefile.in (ax-gdb.o): Update dependencies.
7859 * ax-gdb.c: Include "regcache.h".
7860 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
7861 * findvar.c (value_of_register): Ditto.
7862 * infcmd.c (default_print_registers_info): Ditto.
7863
eadc1c87
MK
78642003-03-01 Mark Kettenis <kettenis@gnu.org>
7865
7866 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
7867 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7868
14143612
MK
78692003-03-01 Mark Kettenis <kettenis@gnu.org>
7870
7871 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
7872 of STREQ.
7873
a55cc764
DJ
78742003-02-28 Daniel Jacobowitz <drow@mvista.com>
7875
7876 * Makefile.in (dwarf2loc.o): Update dependencies.
7877 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
7878 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
7879 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
7880 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
7881 (locexpr_tracepoint_var_ref): New function.
7882 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
7883
08a617da
AC
78842003-02-28 Andrew Cagney <cagney@redhat.com>
7885
7886 * regcache.c (register_size): New function.
7887 * regcache.h (register_size): Declare
7888 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
7889 max_register_size instead of MAX_REGISTER_RAW_SIZE.
7890
4224873a
DC
78912003-02-28 David Carlton <carlton@math.stanford.edu>
7892
7893 * linespec.c (decode_compound): Extract code into find_method.
7894 (find_method): New.
7895
ccdc5d7f
JB
78962003-02-28 J. Brobecker <brobecker@gnat.com>
7897
7898 * Makefile.in: Add rules to build and link in observer.o.
7899
974e8ced
JB
79002003-02-27 J. Brobecker <brobecker@gnat.com>
7901
7902 * observer.c: Minor comments edits.
7903
7a28f973
JB
79042003-02-27 J. Brobecker <brobecker@gnat.com>
7905
7906 * observer.h, observer.c: New file.
7907
27cddce2
AC
79082003-02-27 Andrew Cagney <cagney@redhat.com>
7909
7910 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
7911
b94a41a1
SC
79122003-02-27 Stephane Carrez <stcarrez@nerim.fr>
7913
7914 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
7915 (M6812_OP_STS_EXT): Likewise.
7916 (m6811_prologue): Use the above to recognize prologue.
7917 (m6812_prologue): Likewise.
7918
c8be8951
DC
79192003-02-27 David Carlton <carlton@math.stanford.edu>
7920
7921 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
7922 SYMBOL_PRINT_NAME.
7923 (compare_psymbols): Ditto.
7924 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
7925
d05bb1fc
MS
79262003-02-27 Michael Snyder <msnyder@redhat.com>
7927
4e845cd3
MS
7928 * f-lang.c (build_fortran_types): New function.
7929 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
7930 * doublest.c (extract_floating): Fix warning text.
7931
f3824013
AC
79322003-02-27 Andrew Cagney <cagney@redhat.com>
7933
7934 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
7935 predicate. Replaces PUSH_DUMMY_FRAME.
7936 * gdbarch.h, gdbarch.c: Regnerate.
7937 * valops.c (hand_function_call): Update. Call
7938 generic_push_dummy_frame directly.
7939 * vax-tdep.c (vax_gdbarch_init): Update.
7940 * sparc-tdep.c (sparc_gdbarch_init): Update.
7941 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7942 * m68k-tdep.c (m68k_gdbarch_init): Update.
7943 * hppa-tdep.c (hppa_gdbarch_init): Update.
7944 * alpha-tdep.c (alpha_gdbarch_init): Update.
7945 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7946 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7947 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
7948 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
7949 push_dummy_frame to generic_push_dummy_frame.
7950 * v850-tdep.c (v850_gdbarch_init): Ditto.
7951 * sh-tdep.c (sh_gdbarch_init): Ditto.
7952 * s390-tdep.c (s390_gdbarch_init): Ditto.
7953 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7954 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7955 * mips-tdep.c (mips_gdbarch_init): Ditto.
7956 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7957 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7958 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7959 * i386-tdep.c (i386_gdbarch_init): Ditto.
7960 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7961 * frv-tdep.c (frv_gdbarch_init): Ditto.
7962 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7963 * cris-tdep.c (cris_gdbarch_init): Ditto.
7964 * avr-tdep.c (avr_gdbarch_init): Ditto.
7965 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 7966
ad188201
KB
79672003-02-26 Kevin Buettner <kevinb@redhat.com>
7968
7969 * mips-tdep.c (show_mips_abi): New function.
7970 (_initialize_mips_tdep): Use show_mips_abi() to implement the
7971 command ``show mips abi''.
7972
6b37567a 79732003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7974
6b37567a 7975 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 7976 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
7977 more sline entries have been seen for the function.
7978
d3e0a5bf
MC
79792003-02-26 Michael Chastain <mec@shout.net>
7980
7981 * configure: Regenerate with autoconf 000227.
7982
18972eea
MC
79832003-02-26 Michael Chastain <mec@shout.net>
7984
7985 Close PR build/660.
7986 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
7987 for old libc5/glibc.
7988 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
7989
0bbde931
KW
79902003-02-26 Kris Warkentin <kewarken@qnx.com>
7991
7992 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
7993 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
7994
27ca5dad
MC
79952003-02-26 Michael Chastain <mec@shout.net>
7996
7997 * configure.in: New variable HAVE_UINTPTR_T.
7998 * configure, config.in: Regenerated.
7999
6f88d630
DJ
80002003-02-26 Daniel Jacobowitz <drow@mvista.com>
8001
8002 Fix PR build/1097.
8003 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8004
b14185ce
AC
80052003-02-25 Andrew Cagney <cagney@redhat.com>
8006
8007 * frame.c (get_prev_frame): Add comment on check for
8008 inside_entry_func. Only check for inside_entry_file when not a
8009 dummy and not a sentinel. Check that the new frame is not inner
8010 to the old frame.
8011
ac2bd0a9
AC
80122003-02-25 Andrew Cagney <cagney@redhat.com>
8013
8014 * frame.c (frame_debug): New variable.
8015 (_initialize_frame): Add "set/show debug frame" command.
8016 (get_prev_frame): When frame_debug, print reason why unwind
8017 failed.
8018
b18a0fd2
MC
80192003-02-25 Michael Chastain <mec@shout.net>
8020
8021 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8022 to avoid uintptr_t definition problems.
8023
22abf04a
DC
80242003-02-25 David Carlton <carlton@math.stanford.edu>
8025
8026 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8027 (SYMBOL_LINKAGE_NAME): Ditto.
8028 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8029 SYMBOL_LINKAGE_NAME.
8030 (struct general_symbol_info): Expand comment.
8031 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8032 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8033 (SYMBOL_MATCHES_REGEXP): Ditto.
8034 * symtab.c (symbol_natural_name): New function.
8035 * objfiles.h: Replace all uses of SYMBOL_NAME by
8036 DEPRECATED_SYMBOL_NAME.
8037 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8038 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8039 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8040 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8041 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8042 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8043 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8044 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8045 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8046 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8047 * ada-exp.y: Ditto.
8048 * ada-exp.y: Update copyright.
8049 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8050 * cp-valprint.c: Ditto.
8051
1a5848f6
JJ
80522003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8053
8054 * infptrace.c (detach): Do not flag error if ptrace detach fails
8055 and errno is set to ESRCH.
8056
7343d46a
AC
80572003-02-24 Andrew Cagney <cagney@redhat.com>
8058
8059 * infptrace.c (udot_info): Change type of udot_off to long. Use
8060 paddr when printing udot_off's value.
8061
49fa1dc2
DC
80622003-02-24 David Carlton <carlton@math.stanford.edu>
8063
8064 * symtab.c (make_symbol_overload_list): Only read in partial
8065 symtabs containing a matching partial symbol.
8066
0fe19209
DC
80672003-02-24 David Carlton <carlton@math.stanford.edu>
8068
8069 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8070 do the comparison, not strcmp.
8071 * symfile.c (compare_psymbols): Ditto.
8072 * defs.h: Declare strcmp_iw_ordered.
8073 * utils.c (strcmp_iw_ordered): New function.
8074
8e3ee7b5
JB
80752003-02-24 Jim Blandy <jimb@redhat.com>
8076
8077 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8078 support, shared libs): Remove my name from here, to better reflect
8079 reality.
8080
7df1a324
KW
80812003-02-24 Kris Warkentin <kewarken@qnx.com>
8082
8083 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8084 (target_ops): Add to_have_continuable_watchpoint.
8085 * target.c (update_current_target): Add INHERIT line for
8086 to_have_continuable_watchpoint.
8087 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8088 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8089 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8090 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8091
d1c76907
EZ
80922003-02-24 Elena Zannoni <ezannoni@redhat.com>
8093
8094 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8095 maintainership.
8096
2610b0bf
KW
80972003-02-24 Kris Warkentin <kewarken@qnx.com>
8098
f46169db
KW
8099 * solib.c (solib_open): Call target defined search function after
8100 failing with solib-search-path.
8101 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8102 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 8103
9a3c34fe
KW
81042003-02-24 Kris Warkentin <kewarken@qnx.com>
8105
f46169db 8106 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 8107
2417dd25
SC
81082003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8109
8110 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8111
b631436b
SC
81122003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8113
8114 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8115 (m68hc11_add_reggroups): New function.
8116 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8117 (m68hc11_gdbarch_init): Install the reggroups.
8118 (_initialize_m68hc11_tdep): Initialize them.
8119
0aa8c1e4
JW
81202003-02-21 James E Wilson <wilson@tuliptree.org>
8121
8122 * MAINTAINERS: Update my email address.
8123
50ceaba5
DC
81242003-02-21 David Carlton <carlton@math.stanford.edu>
8125
8126 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8127
4c2df51b
DJ
81282003-02-21 Daniel Jacobowitz <drow@mvista.com>
8129
8130 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8131 * symtab.h: Add opaque declarations of struct axs_value and
8132 struct agent_expr.
8133 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8134 (struct location_funcs): New type.
8135 (struct symbol): Add "loc" to aux_value.
8136 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8137 * dwarf2read.c: Include "dwarf2expr.h".
8138 (dwarf2_symbol_mark_computed): New function.
8139 (read_func_scope): Use it.
8140 (var_decode_location): New function.
8141 (new_symbol): Use it.
8142 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8143
8144 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8145 (dwarf2expr_h, dwarf2loc_h): New variables.
8146 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8147 (dwarf2expr.o, dwarf2loc.o): New rules.
8148 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8149 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8150 LOC_COMPUTED_ARG.
8151 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8152 * m2-exp.y (yylex): Likewise.
8153 * printcmd.c (address_info, print_frame_args): Likewise.
8154 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8155 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8156 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8157 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8158 * symtab.c (lookup_block_symbol): Likewise.
8159
5784d15e
AF
81602003-02-20 Adam Fedor <fedor@gnu.org>
8161
8162 * symtab.h: Remove objc_specific struct
8163 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8164 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8165 Have language_objc use cplus_specific struct.
8166
d4cad8db
TT
81672003-02-20 Tom Tromey <tromey@redhat.com>
8168
8169 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8170 TYPE_NAME, when printing a String value. PR java/1075.
8171
2f9a90b4
AF
81722003-02-20 Adam Fedor <fedor@gnu.org>
8173
d38074a8 8174 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 8175 * objc-lang.c (find_methods): Make static.
2f9a90b4 8176
6f17862b
CF
81772003-02-20 Christopher Faylor <cgf@redhat.com>
8178
8179 * win32-nat.c (get_image_name): Check return value from
8180 ReadProcessMemory.
8181 (child_xfer_memory): Ditto.
8182
715d1656
AO
81832003-02-20 Alexandre Oliva <aoliva@redhat.com>
8184
8185 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8186 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8187 '${exec_prefix}' (in addition to the expansion thereof) as
8188 relocatable.
8189 * configure: Rebuilt.
8190
b1262a02
DC
81912003-02-20 David Carlton <carlton@math.stanford.edu>
8192
8193 * symtab.c (search_symbols): Revert the search_symbols part of my
8194 2002-12-23 patch. Add comment.
8195
7134143f
DJ
81962002-02-20 Daniel Jacobowitz <drow@mvista.com>
8197
8198 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8199 * dbxread.c (elfstab_build_psymtabs): Don't call
8200 install_minimal_symbols.
8201 (stabsect_build_psymtabs): Likewise.
8202 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8203 earlier.
8204 * somread.c (som_symfile_read): Call install_minimal_symbols
8205 and do_cleanups earlier.
8206 * nlmread.c (nlm_symfile_read): Likewise.
8207 * mdebugread.c (elfmdebug_build_psymtabs): Call
8208 install_minimal_symbols and make appropriate cleanups.
8209
cf466558
KB
82102003-02-20 Kevin Buettner <kevinb@redhat.com>
8211
8212 * solib.c (reload_shared_libraries): New function.
8213 (_initialize_solib): Add callbacks for ``set solib-search-path''
8214 and ``set solib-absolute-prefix''.
8215
de5ad195
DC
82162003-02-20 David Carlton <carlton@math.stanford.edu>
8217
8218 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8219 expand comment.
8220 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8221 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8222 * ada-typeprint.c (ada_typedef_print): Ditto.
8223 * ax-gdb.c (gen_var_ref): Ditto.
8224 * breakpoint.c (print_one_breakpoint): Ditto.
8225 * buildsym.c (finish_block): Ditto.
8226 * c-valprint.c (c_val_print): Ditto.
8227 * expprint.c (print_subexp): Ditto.
8228 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
8229 * infcmd.c (jump_command): Ditto.
8230 * linespec.c (decode_line_2, decode_compound): Ditto.
8231 * maint.c (maintenance_translate_address): Ditto.
8232 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
8233 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8234 Ditto.
8ffd9b1b
AJ
8235 * p-valprint.c (pascal_val_print): Ditto.
8236 * stabsread.c (define_symbol): Ditto.
de5ad195 8237 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
8238 (print_frame_arg_vars, return_command): Ditto.
8239 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8240 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
8241 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8242 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
8243 (rbreak_command): Ditto.
8244 * tracepoint.c (tracepoints_info): Ditto.
8245 * typeprint.c (typedef_print): Ditto.
8246 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
8247 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8248 * ada-typeprint.c: Update Copyright.
8249 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8250 * tracepoint.c, cli/cli-cmds.c: Ditto.
8251
f796e4be
KB
82522003-02-20 Kevin Buettner <kevinb@redhat.com>
8253
8254 * frame.c (generic_unwind_get_saved_register): Make non-static.
8255 * frame.h (generic_unwind_get_saved_register): Declare.
8256 * mips-tdep.c (read_next_frame_reg): Fetch register from
8257 current regcache when frame is NULL.
8258 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8259 that must be NULL.
8260 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8261 instead of frame_register_unwind().
8262
836cc9f4
AC
82632003-02-20 Andrew Cagney <ac131313@redhat.com>
8264
8265 * remote-sim.c (gdbsim_insert_breakpoint)
8266 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8267 code.
8268
501eef12
AC
82692003-02-20 Andrew Cagney <ac131313@redhat.com>
8270
8271 * remote.c (_initialize_remote): Add commands "set/show remote
8272 hardware-watchpoint-limit" and "set/show remote
8273 hardware-breakpoint-limit".
8274 (remote_hw_watchpoint_limit): Initialize to -1.
8275 (remote_hw_breakpoint_limit): Ditto.
8276 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8277
1b6bc7e0
CF
82782003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8279
8280 * coff-pe-read.c: New file - support reading of minimal symbols from a
8281 portable executable using the export table.
8282 * coff-pe-read.h: New file.
8283 * coffread.c: Include coff-pe-read.h.
8284 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8285 debugging symbols found.
8286 * Makefile.in (SFILES): Add coff-pe-read.o.
8287 (coff_pe_read_h): Define.
8288 (COMMON_OBS): Add coff-pe-read.o.
8289 (coffread.o): Add coff_pe_read_h dependency.
8290 (coff-pe-read.o): New target.
8291
fe898f56
DC
82922003-02-19 David Carlton <carlton@math.stanford.edu>
8293
8294 * Makefile.in (SFILES): Add block.c.
8295 (block_h): New.
8296 (COMMON_OBS): Add block.o.
8297 (block.o): New.
8298 (x86-64-tdep.o): Add $(block_h).
8299 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8300 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8301 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8302 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8303 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8304 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8305 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8306 * value.h: Add opaque declaration for struct block.
8307 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8308 * ada-lang.h: Ditto.
8309 * x86-64-tdep.c: #include "block.h"
8310 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8311 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8312 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8313 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8314 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8315 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8316 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8317 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8318 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8319 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8320 * symtab.c (block_function): Ditto.
8321 (contained_in): Ditto.
8322 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8323 block.h. Add opaque declaration for struct block.
8324 * symtab.h: Move block_function and contained_in declarations to
8325 block.h. Add opaque declarations for struct block, struct
8326 blockvector.
8327 (struct block): Move to block.h.
8328 (struct blockvector): Ditto.
8329 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8330 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8331 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8332 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8333 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8334 Ditto.
8335 * block.c: New file.
8336 * block.h: New file.
8337
173345b5
TR
83382003-02-19 Theodore A. Roth <troth@openavr.org>
8339
8340 * avr-tdep.c (avr_extract_return_value): Remove function.
8341 (avr_store_return_value): Remove function.
8342 (avr_extract_struct_value_address): Remove function.
8343 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8344
338ef23d
AC
83452003-02-19 Andrew Cagney <ac131313@redhat.com>
8346
8347 * rs6000-tdep.c: Include "gdb_assert.h".
8348 (registers_e500): Add "acc" and "spefscr".
8349 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8350 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8351 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8352 really is "r0".
8353 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8354
5412f5f3
KS
83552003-02-18 Keith Seitz <keiths@redhat.com>
8356
8357 * Makefile.in: Add gdbtk-interps.c.
8358
881324eb
KB
83592003-02-18 Kevin Buettner <kevinb@redhat.com>
8360
8361 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8362 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8363
6a2f5abf
AC
83642003-02-18 Andrew Cagney <cagney@redhat.com>
8365
8366 * symtab.h (struct objfile): Add opaque declaration.
8367
54c7009d
EZ
83682003-02-18 Elena Zannoni <ezannoni@redhat.com>
8369
8370 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
8371 * dbxread.c (process_one_symbol): Use last_function_start rather
8372 than function_start_offset to find the real beginning of the
8373 current function. The latter is just the text section offset on
8374 some systems, the former is always the real function start.
54c7009d 8375
7ee6d7eb
AC
83762003-02-17 Andrew Cagney <cagney@redhat.com>
8377
8378 * configure.in: Revert ${target} != ${host}.
8379
2846da9b
AC
83802003-02-17 Andrew Cagney <ac131313@redhat.com>
8381
8382 * configure.in (Makefile): Use the test ${target} != ${host},
8383 instead of the absence of the "nm.h" file, to determine of the
8384 configuration non-native.
8385 * configure: Regenerate.
8ffd9b1b 8386
3b27aeea
EZ
83872003-02-14 Elena Zannoni <ezannoni@redhat.com>
8388
fbe586ae 8389 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
8390
8391 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8392 conditionalize tui_active test.
8393 (lookup_cmd_1): Ditto.
8394
b0b1c2c0
MK
83952003-02-14 Mark Kettenis <kettenis@gnu.org>
8396
8397 * configure.in: Add check for _etext.
8398 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8399 available.
8400 * config.in, configure: regenerated.
8401
8f05cde5
DJ
84022003-02-14 Daniel Jacobowitz <drow@mvista.com>
8403
8404 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8405
021e7609
AC
84062003-02-14 Andrew Cagney <ac131313@redhat.com>
8407
8408 * main.c (tui_version): Delete variable.
8409 (captured_main): When --tui, set interpreter_p to "tui" instead of
8410 enabling tui_version.
8411 * printcmd.c (display_command) [TUI]: Test tui_active instead of
8412 tui_version.
8413 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8414 * cli/cli-cmds.c (disassemble_command): Ditto.
8415 * defs.h (tui_version): Delete declaration.
8416 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8417 (tui-interp.o): Add rules.
8418 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8419
e325dcec
CF
84202003-02-14 Christopher Faylor <cgf@redhat.com>
8421
36ffb041 8422 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
8423 just-loaded dll.
8424
c4f90d87
JM
84252003-02-12 Jason Molenda (jmolenda@apple.com)
8426
fbe586ae
RH
8427 * symmisc.c (print_objfile_statistics): Include information about
8428 the number of psymtabs and symtabs in each object file.
c4f90d87 8429
e46e5ccd
KS
84302003-02-13 Keith R Seitz <keiths@redhat.com>
8431
8432 * main.h (struct captured_main_args): Add interpreter_p.
8433 * main.c (captured_main): Initialize interpreter_p from context.
8434 * gdb.c (main): Set interpreter_p argument.
8435 * Makefile.in (gdb.o): Add dependency for interps.h.
8436
fe97fe9c
AC
84372003-02-12 Andrew Cagney <ac131313@redhat.com>
8438
8439 * event-top.c (cli_command_loop): Delete declaration.
8440 (_initialize_event_loop): Delete function setting event_loop_hook.
8441 * event-top.h (cli_command_loop): Declare. Update copyright.
8442 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8443 * interps.c (current_interp_command_loop): When event_loop_p, call
8444 cli_command_loop.
8445
1cdac4ef
AC
84462003-02-12 Andrew Cagney <ac131313@redhat.com>
8447
8448 * interps.h (interp_command_loop_ftype): Change return type to
8449 void.
8450
48037ead
ML
84512003-02-12 Michal Ludvig <mludvig@suse.cz>
8452
8453 * x86-64-tdep.c (x86_64_extract_return_value)
8454 (x86_64_store_return_value): Use regcache instead of regbuf.
8455 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8456 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8457
033afc63
AC
84582003-02-11 Andrew Cagney <ac131313@redhat.com>
8459
8460 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8461 * aclocal.m4: Regenerate.
8462 * configure: Regenerate.
8463
8464 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8465 TCL_LD_SEARCH_FLAGS.
8466
40d02bca
ML
84672003-02-10 Michal Ludvig <mludvig@suse.cz>
8468
8469 * dwarf2cfi.c: Reindented.
8470
11308a41
AC
84712003-02-09 Andrew Cagney <ac131313@redhat.com>
8472
8473 * interps.c (clear_interpreter_hooks): Convert function definition
8474 to ISO C.
8475
e1c1c0f6
DC
84762003-02-07 David Carlton <carlton@math.stanford.edu>
8477
8478 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8479
ab5d3da6
KB
84802003-02-07 Kevin Buettner <kevinb@redhat.com>
8481
8482 * gdbtypes.h (struct main_type): Move ``length'' field from here...
8483 (struct type): ...to here.
8484 (TYPE_LENGTH): Adjust to reflect different location of ``length''
8485 field.
8486 * gdbtypes.c (make_qualified_type): Set length on newly created type.
8487 (replace_type): Set length on all type variants for a given type.
8488
b8a92b82
AC
84892003-02-07 Andrew Cagney <ac131313@redhat.com>
8490
8491 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8492 <sys/stat.h>.
8493 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 8494
5cb316ef
AC
84952003-02-06 Andrew Cagney <ac131313@redhat.com>
8496
2555fe1a
AC
8497 * Makefile.in (symm-nat.o): Update dependencies.
8498 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8499 (lynx-nat.o, ia64-linux-nat.): Ditto.
8500 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
8501 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
8502 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
8503
44270758
AC
8504 * Makefile.in (inflow_h): Define.
8505 (procfs.o, inflow.o, procfs.o): Update dependencies.
8506 * inftarg.c (child_stop): Delete extern declaration of
8507 inferior_process_group. Include "inflow.h".
8508 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
8509 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
8510 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
8511 (our_process_group, inferior_process_group): Extern declarations.
8512
df8f7274
AC
8513 * procfs.c: Include "gdb_assert.h".
8514
5cb316ef
AC
8515 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8516 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
8517 * jv-typeprint.c (java_type_print_base): Ditto.
8518 * typeprint.c (typedef_print): Eliminate STREQ.
8519 * cli/cli-script.c (define_command, define_command): Ditto.
8520 * main.c (captured_main): Ditto.
8521 * values.c (lookup_internalvar): Ditto.
8522 * utils.c (safe_strerror, parse_escape): Eliminate assignment
8523 within `if' conditional.
8524 * linespec.c (decode_line_2): Ditto.
8525 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
8526 (bfd_openw_with_cleanup): Ditto.
8527
2a28ccea
MK
85282003-02-07 Mark Kettenis <kettenis@gnu.org>
8529
8530 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
8531 legacy_extract_return_value and store_return_value to
8532 legacy_return_value.
8533
786b8124
CF
85342003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
8535
8536 * win32-nat.c (get_relocated_section_addrs): New function. Find
8537 section load addresses for symbol handling in relocated DLLs.
8538 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
8539
b871e4ec
FF
85402003-02-05 Fred Fish <fnf@intrinsity.com>
8541
8542 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
8543 '=' and '!='.
8544 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
8545 with '&' and '=='.
8546 (angel_RDI_info): Ditto.
8547 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
8548 with '&' and '!='.
8549 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 8550
4389a95a 85512003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
8552 Keith Seitz <keiths@redhat.com>
8553 Elena Zannoni <ezannoni@redhat.com>
8554 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
8555
8556 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
8557 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
8558 (SUBDIR_MI_OBS): Add "mi-interp.o".
8559 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
8560 (SFILES): Add "interps.c".
8561 (COMMON_OBS): Add "interps.o".
8562 (interps_h, mi_main_h): Define.
8563 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
8564 (mi-main.o, main.o, event-top.o): Update dependencies.
8565 * cli/cli-interp.c: New file.
8566 * interps.h, interps.c: New files.
8567 * top.c: (gdb_init): Don't install the default interpreter, handed
8568 by captured_main.
8569 * main.c: Include "interps.h".
8570 (interpreter_p): Note that it should malloc'ed.
8571 (captured_command_loop): Call current_interp_command_loop.
8572 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
8573 xfree and xstrdup when updating interpreter_p. Install the
8574 default interpreter. Add hack to stop mi1's copyright notice
8575 being encoded.
8576 * event-top.h (gdb_setup_readline): Declare.
8577 (gdb_disable_readline): Declare.
8578 * event-top.c: Include "interps.h".
8579 (display_gdb_prompt): Call current_interp_display_prompt_p.
8580 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
8581 gdb_stdlog, and gdb_stdtarg.
8582 (_initialize_event_loop): Don't call gdb_setup_readline.
8583 * cli-out.c (cli_out_set_stream): New function.
8584 * cli-out.h (cli_out_set_stream): Declare.
8585
ff3b5810
MK
85862003-02-06 Mark Kettenis <kettenis@gnu.org>
8587
8588 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
8589 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
8590 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
8591 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
8592 config/i386/i386v42mp.mt: Removed.
8593
5b729aa5
MK
85942003-02-05 Mark Kettenis <kettenis@gnu.org>
8595
8596 * configure.tgt (*-*-solaris*): Set gdb_osabi to
8597 GDB_OSABI_SOLARIS.
8598
8cc15142
MC
85992003-02-05 Michael Chastain <mec@shout.net>
8600
8601 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
8602 2.12.1 and earlier versions.
8603
5aa5d4b9
AC
86042003-02-05 Andrew Cagney <ac131313@redhat.com>
8605
8606 Remove orphaned hosts, targets and files.
8607 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
8608 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
8609 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
8610 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
8611 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
8612 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
8613 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
8614 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
8615 * config/sparc/tm-sp64sim.h: Delete.
8616 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
8617 hosts.
8618 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
8619 mips*-dec-mach3* targets.
8620
b68767c1
MC
86212003-02-04 Michael Chastain <mec@shout.net>
8622
8623 * NEWS: Fix typo: sepcifying -> specifying.
8624
5ae7ca1d
MC
86252003-02-04 Michael Chastain <mec@shout.net>
8626
8627 * dwarfread.c: Add documentation on the state of dwarf-1,
8628 looking towards obsoletion.
8629
d08a4280
MC
86302003-02-03 Michael Chastain <mec@shout.net>
8631
8632 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
8633 gdb/testsuite/gdb.c++/pr-1023.exp.
8634
e9be73e4
AC
86352003-02-04 Andrew Cagney <ac131313@redhat.com>
8636
8637 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
8638 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
8639
8640 * utils.c (init_page_info): Delete reference to MPW in comments.
8641 * main.c (captured_main): Delete #ifdef MPW.
8642
05d57f6f
AC
86432003-02-04 Andrew Cagney <ac131313@redhat.com>
8644
8ffd9b1b 8645 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
8646 * monitor.c (monitor_expect): Obsolete reference to m32r.
8647 * configure.tgt: Mark m32r-*-elf* as obsolete.
8648 * MAINTAINERS: Mark m32k as obsolete.
8649 * m32r-rom.c: Obsolete file.
8650 * config/m32r/m32r.mt: Obsolete file.
8651 * config/m32r/tm-m32r.h: Obsolete file.
8652 * m32r-stub.c: Obsolete file.
8653 * m32r-tdep.c: Obsolete file.
8654
8b0e5691
AC
86552003-02-04 Andrew Cagney <ac131313@redhat.com>
8656
8657 * NEWS: Mention that the z8k-zilog-none is obsolete.
8658 * MAINTAINERS: Mark z8k as obsolete.
8659 * configure.tgt: Obsolete the z8k-*-coff* target.
8660 * config/z8k/z8k.mt: Obsolete file.
8661 * config/z8k/tm-z8k.h: Obsolete file.
8662 * z8k-tdep.c: Obsolete file.
8663
67f16606
AC
86642003-02-04 Andrew Cagney <ac131313@redhat.com>
8665
8666 * NEWS: Mention that the mn10200-elf is obsolete.
8667 * configure.tgt: Obsolete mn10200-*-* target.
8668 * breakpoint.c (update_breakpoints_after_exec): Update comment to
8669 mention that the mn10200 is obsolete.
8670 * breakpoint.h: Ditto.
8671 * MAINTAINERS: Mark the mn10200-elf as obsolete.
8672 * config/mn10200/mn10200.mt: Obsolete file.
8673 * config/mn10200/tm-mn10200.h: Obsolete file.
8674 * mn10200-tdep.c: Obsolete file.
8675
fd2299bd
AC
86762003-02-04 Andrew Cagney <ac131313@redhat.com>
8677
8678 * MAINTAINERS: Mark h8500 as obsolete.
8679 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
8680 * findvar.c (value_from_register): Ditto.
8681 * h8500-tdep.c: Mark file as obsolete.
8682 * config/h8500/h8500.mt: Ditto.
8683 * config/h8500/tm-h8500.h: Ditto.
8684 * NEWS: Mention that h8500 is obsolete.
8685
eb9a305d
DC
86862003-02-04 David Carlton <carlton@math.stanford.edu>
8687
8688 * objfiles.c (allocate_objfile): Always set name. Add comment at
8689 start of function.
8690 * jv-lang.c (get_dynamics_objfile): Add comment.
8691
406fc7fb
DC
86922003-02-04 David Carlton <carlton@math.stanford.edu>
8693
8694 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
8695 * printcmd.c (build_address_symbolic): Replace uses of
8696 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
8697 SYMBOL_NAME, and asm_demangle.
8698 Update copyright.
8699
93d91629
DC
87002003-02-04 David Carlton <carlton@math.stanford.edu>
8701
8702 * linespec.c (decode_compound): Extract code into
8703 lookup_prefix_sym.
8704 (lookup_prefix_sym): New function.
8705
1c5cb38e
DC
87062003-02-04 David Carlton <carlton@math.stanford.edu>
8707
8708 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
8709 FLOAT_COERCION_BADNESS.
8710 * gdbtypes.c (rank_one_type): Replace all uses of
8711 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
8712
0cf824c9
JB
87132003-02-04 Jim Blandy <jimb@redhat.com>
8714
8715 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
8716 section, let dwarf_macinfo_section point to it, not
8717 dwarf_loc_section.
8718
a2d356b0
DJ
87192003-02-04 Daniel Jacobowitz <drow@mvista.com>
8720
8721 Pointed out by Anton Blanchard <anton@samba.org>.
8722 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
8723 (ppc_linux_at_sigtramp_return_path): Use it.
8724
2de7ced7
DJ
87252003-02-04 Daniel Jacobowitz <drow@mvista.com>
8726
8727 * defs.h (streq): Add prototype.
8728 * utils.c (streq): New function.
8729
8730 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
8731 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
8732 * mdebugread.c (new_symbol): Likewise.
8733 * stabsread.c (define_symbol): Likewise.
8734 * coffread.c (process_coff_symbol): Likewise.
8735 * dwarfread.c (new_symbol): Likewise.
8736
8737 * minsyms.c (prim_record_minimal_symbol_and_info): Use
8738 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
8739 here.
8740 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
8741 SYMBOL_INIT_DEMANGLED_NAME.
8742 * objfiles.c: Include "hashtab.h".
8743 (allocate_objfile): Call htab_set_functions_ex for the
8744 demangled_names_hash.
8745 (free_objfile): Call htab_delete for the demangled_names_hash.
8746 * objfiles.h (struct htab): Add declaration.
8747 (struct objfile): Add demangled_names_hash.
8748 * symfile.c: Include "hashtab.h".
8749 (reread_symbols): Call htab_delete for the demangled_names_hash.
8750 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
8751 SYMBOL_NAME in the bcache.
8752 * symtab.c: Include "hashtab.h". Update comments.
8753 (create_demangled_names_hash, symbol_set_names): New functions.
8754 (symbol_find_demangled_name): New function, broken out from
8755 symbol_init_demangled_names.
8756 (symbol_init_demangled_names): Use it.
8757 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
8758 (SYMBOL_SET_NAMES): New macro.
8759 (symbol_set_names): Add prototype.
8760
15831452
JB
87612003-02-03 Jim Blandy <jimb@redhat.com>
8762
8763 Use a single, consistent representation for an empty minimal
8764 symbol table in an objfile.
8765 * objfiles.c (terminate_minimal_symbol_table): New function.
8766 (allocate_objfile): Call it.
8767 * objfiles.h (terminate_minimal_symbol_table): New declaration.
8768 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 8769 non-NULL.
15831452
JB
8770 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
8771 objfile has minimal symbols, compare minimal_symbol_count to zero,
8772 instead of comparing msymbols with NULL.
8773 * objfiles.c (have_minimal_symbols): Same.
8774 * solib-sunos.c (solib_add_common_symbols): Call
8775 terminate_minimal_symbol_table.
8776 * symfile.c (reread_symbols): Same.
8ffd9b1b 8777
ffc65945
KB
87782003-02-03 Kevin Buettner <kevinb@redhat.com>
8779
8780 * s390-tdep.c (s390_address_class_type_flags)
8781 (s390_address_class_type_flags_to_name)
8782 (s390_address_class_name_to_type_flags): New functions.
8783 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
8784 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
8785
f211c6d4
MS
87862003-02-03 Michael Snyder <msnyder@redhat.com>
8787
8788 * arm-tdep.c: Fix spell-o in comment.
8789
659b0389
ML
87902003-02-03 Michal Ludvig <mludvig@suse.cz>
8791
8792 * dwarf2cfi.c (pointer_encoding): Added new parameter.
8793 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 8794 error messages to contain BFD filename.
659b0389 8795
3b31d625
EZ
87962003-02-02 Elena Zannoni <ezannoni@redhat.com>
8797
997b089a 8798 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
8799 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
8800 (do_mixed_source_and_assembly): Use
8801 make_cleanup_ui_out_tuple_begin_end and
8802 make_cleanup_ui_out_tuple_begin_end.
8803 (do_mixed_source_and_assembly): Ditto.
8804 * thread.c (do_captured_list_thread_ids): Ditto.
8805 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
8806 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
8807 ui_out_tuple_end): Delete prototypes.
8808 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
8809 ui_out_list_end, ui_out_tuple_end): Delete.
8810
8811 From Kevin Buettner <kevinb@redhat.com>:
8812 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
8813 * ui-out.c (make_cleanup_ui_out_table_begin_end)
8814 (do_cleanup_table_end): New functions.
8815 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
8816 Use cleanups to invoke_ui_out_tuple_end().
8817 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
8818 * cli/cli-setshow.c (cmd_show_list): Use
8819 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 8820
5b181d62
AC
88212003-02-02 Andrew Cagney <ac131313@redhat.com>
8822
8823 * frame.c (frame_unwind_register): New function.
8824 (frame_unwind_unsigned_register): Use.
8825 (frame_unwind_signed_register): Use.
8826 (frame_read_register): New function.
8827 * frame.h (frame_unwind_register): Declare.
8828 (frame_read_register): Declare.
8829
8830 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
8831 and frame_unwind_register instead of read_memory, write_register
8832 and deprecated_write_register_bytes.
8833
5f601589
AC
88342003-02-02 Andrew Cagney <ac131313@redhat.com>
8835
8836 * frame.h: Note that namelen can be negative.
8837 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
8838 NAME's length.
8839
8840 * NEWS: Mention that the d10v's `regs' command is deprecated.
8841 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
8842 (d10v_print_registers_info): New function.
8843 (show_regs): Call d10v_print_registers_info.
8844 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
8845
6a3fe0a4
MK
88462003-02-02 Mark Kettenis <kettenis@gnu.org>
8847
8848 * stack.c (print_frame_info): Restore call to annotate_frame_begin
8849 lost in the previous patch.
8850
075559bc
AC
88512003-02-01 Andrew Cagney <ac131313@redhat.com>
8852
8853 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
8854 * stack.c (print_frame_info_base): Output complete FRAME tuple
8855 for synthesized frames.
075559bc 8856
6789195b
AC
88572003-02-02 Andrew Cagney <ac131313@redhat.com>
8858
8859 * mips-nat.c (zerobuf): Delete.
8860 (fetch_inferior_registers): Alloc local zerobuf.
8861 (fetch_core_registers): Alloc local zerobuf.
8862 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
8863 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
8864 * thread-db.c (thread_db_store_registers): Ditto.
8865 * sh-tdep.c (sh_do_register): Ditto.
8866 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
8867 * remote-sim.c (gdbsim_store_register): Ditto.
8868 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8869 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8870 * monitor.c (monitor_supply_register): Ditto.
8871 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
8872 * mips-nat.c (fetch_inferior_registers): Ditto.
8873 * m68klinux-nat.c (fetch_register): Ditto.
8874 * lynx-nat.c (fetch_inferior_registers): Ditto.
8875 (fetch_inferior_registers): Ditto.
8876 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
8877 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8878 (hpux_thread_store_registers): Ditto.
8879 * hppah-nat.c (fetch_register): Ditto.
8880 * hppab-nat.c (fetch_register): Ditto.
8881 * hppa-tdep.c (pa_register_look_aside): Ditto.
8882 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
8883 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
8884
e669114a
AC
88852003-02-01 Andrew Cagney <ac131313@redhat.com>
8886
8887 * gdbarch.sh: Explictly specify all method levels. When a
8888 variable with an empty level, provide a non-multi-arch default.
8889 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
8890 * gdbarch.h: Re-generate.
8891 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
8892 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
8893
9a043c1d
AC
88942003-02-01 Andrew Cagney <ac131313@redhat.com>
8895
8896 * defs.h (host_pointer_to_address): Delete declaration.
8897 (address_to_host_pointer): Delete declaration.
8898 * utils.c (host_pointer_to_address): Delete function.
8899 (address_to_host_pointer): Delete function.
8900 * procfs.c (procfs_address_to_host_pointer): New function.
8901 * procfs.c (proc_set_watchpoint): Use.
8902 (procfs_can_use_hw_breakpoint): Update comments.
8903 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
8904 (som_solib_add): Use.
8905 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
8906 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 8907
7ca9f392
AC
89082003-02-01 Andrew Cagney <ac131313@redhat.com>
8909
94bbfd30
AC
8910 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
8911 strlen d_name.
8912
7ca9f392
AC
8913 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
8914 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
8915 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
8916 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
8917 (define_symbol): Update.
8918 * symfile.c (generic_load): Remove references to nindy.
8919 * symtab.c: Remove references to nindy.
8920
31a85ea2
AC
89212003-02-01 Andrew Cagney <ac131313@redhat.com>
8922
8923 * infcmd.c (print_float_info): Delete code conditional on
8924 FLOAT_INFO.
8925 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
8926 * config/m68k/nm-apollo68b.h: Ditto.
8927 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
8928 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
8929 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
8930
f6e85fc8
MK
89312003-02-01 Mark Kettenis <kettenis@gnu.org>
8932
6015b6a0
MK
8933 * config/i386/tm-i386os9k.h: Removed.
8934
f7a30bdf
MK
8935 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
8936 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
8937 they're identical to i[3456]86-*-sysv* now.
8938 * config/i386/i386v32.mh: Removed.
8939 * config/i386/xm-i386v32.h: Removed.
8940 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
8941
28d52111
MK
8942 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
8943
4d3f6bce
MK
8944 * config/i386/i386dgux.mh: Removed.
8945 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
8946
f6e85fc8
MK
8947 * configure.in: Fix typo.
8948 * configure: Regenerated.
8949
53955967
DC
89502003-01-31 David Carlton <carlton@math.stanford.edu>
8951
8952 * dwarf2read.c (dwarf2_locate_sections): Set
8953 dwarf_ranges_section.
8954
b1364885
AC
89552003-01-31 Andrew Cagney <ac131313@redhat.com>
8956
8dbb1c65
AC
8957 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
8958 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 8959
8731e58e
AC
8960 * utils.c: Re-indent.
8961
b1364885
AC
8962 * config/djgpp/fnchange.lst: Delete nindy files.
8963 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
8964 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
8965 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
8966 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
8967 * nindy-share/README, nindy-share/Onindy.c: Delete files.
8968 * nindy-tdep.c, nindy-share/Makefile: Delete files.
8969 * Makefile.in (init.c): Remove nindy references.
8970 (saber_gdb): Delete rule.
8971 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
8972 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
8973 and a68v-nat.c.
8974 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
8975 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
8976 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
8977 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
8978 nindy-share/stop.h.
8979 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
8980 * saber.suppress: Delete file.
8981
086df311
DJ
89822003-01-31 Daniel Jacobowitz <drow@mvista.com>
8983
8984 * dbxread.c (stabs_data): New static variable.
8985 (fill_symbuf): Support an in-memory buffer for stabs data.
8986 (stabs_seek): New function.
8987 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
8988 (read_ofile_symtab): Use stabs_seek.
8989 (elfstab_build_psymtabs): Take an asection* instead of
8990 an offset and size. Relocate the stabs data if necessary.
8991 Save the section* for dbx_psymtab_to_symtab.
8992 * dwarf2read.c: Add section variables for each debug section.
8993 (dwarf2_locate_sections): Fill them in.
8994 (dwarf2_read_section): Take an asection* argument.
8995 Relocate the section contents if necessary.
8996 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
8997 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
8998 it to dwarf2_read_section.
8999 (dwarf2_build_frame_info): Update callers.
9000 * elfread.c (elf_symfile_read): Update call to
9001 elfstab_build_psymtabs.
9002 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9003 (DBX_STAB_SECTION): New macro.
8ffd9b1b 9004 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
9005 * symfile.c (symfile_dummy_outputs): New function.
9006 (symfile_relocate_debug_section): New function.
9007 * symfile.h (symfile_relocate_debug_section): Add prototype.
9008
87d1b352
RH
90092003-01-31 Richard Henderson <rth@redhat.com>
9010
9011 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9012 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9013 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9014 * alpha-tdep.c (alpha_register_name): Add "unique".
9015 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9016 (ALPHA_UNIQUE_REGNUM): New.
9017 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9018
c48861fb
AC
90192003-01-31 Andrew Cagney <ac131313@redhat.com>
9020
9021 * README: Remove reference to Ericsson 1800 monitor.
9022 * Makefile.in (remote-es.o): Delete rule.
9023 (ALLDEPFILES): Delete remote-es.c.
9024 * remote-es.c: Delete file.
9025 * config/m68k/es1800.mt: Delete file.
9026 * config/djgpp/fnchange.lst: Update.
9027 * configure.tgt: Delete m68*-ericsson-* target.
9028
d764a824
AF
90292003-01-31 Adam Fedor <fedor@gnu.org>
9030
9031 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9032 Remove duplicate/shadowing variable of same name.
9033
fe36c4f4
JB
90342003-01-30 Jim Blandy <jimb@redhat.com>
9035
9036 * symfile.c (find_separate_debug_file): Assert that the objfile's
9037 directory name we compute ends with a slash, and then assume that
9038 that's so everywhere we use it.
9039
cb741690
DJ
90402003-01-30 Daniel Jacobowitz <drow@mvista.com>
9041
9042 * valops.c (value_assign): Flush frame cache after stores to memory
9043 also.
9044
96ee5227
AC
90452003-01-30 Andrew Cagney <ac131313@redhat.com>
9046
9047 * Makefile.in (mon960-rom.o): Delete rule.
9048 * mon960-rom.c: Delete file.
9049
7f6104a9
AC
90502003-01-30 Andrew Cagney <ac131313@redhat.com>
9051
9052 * d10v-tdep.c: Include "frame-unwind.h".
9053 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9054 list.
9055 (next_addr, uses_frame): Delete.
9056 (struct d10v_unwind_cache): Define.
9057 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9058 Use info instead of next_addr and uses_frame globals.
9059 (d10v_frame_init_saved_regs): Delete function.
9060 (d10v_init_extra_frame_info): Delete function.
9061 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9062 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9063 init_frame_pc or frame_saved_pc.
9064 (d10v_pop_frame): Delete function.
9065 (do_d10v_pop_frame): Delete function.
9066 (d10v_frame_chain): Delete function.
9067 (d10v_frame_chain_valid): Delete function.
9068 (d10v_frame_pc_unwind): New function.
9069 (d10v_frame_id_unwind): New function.
9070 (saved_regs_unwinder): New function.
9071 (d10v_frame_register_unwind): New function.
9072 (d10v_frame_pop): New function.
9073 (d10v_frame_unwind): New variable.
9074 (d10v_frame_p): New function.
9075 (d10v_frame_saved_pc): Delete function.
9076 * Makefile.in (d10v-tdep.o): Update dependencies.
9077
cad2e848
JB
90782003-01-30 J. Brobecker <brobecker@gnat.com>
9079
9080 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9081 causing some regressions due to a change in the default value
9082 for this macro.
9083
af34e669
DJ
90842003-01-29 Richard Henderson <rth@redhat.com>
9085 Elena Zannoni <ezannoni@redhat.com>
9086 Daniel Jacobowitz <drow@mvista.com>
9087
9088 Fix PR gdb/961.
8ffd9b1b 9089 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
9090 variables.
9091 (RANGES_SECTION): New.
9092 (dwarf_ranges_buffer): New variable.
9093 (struct comp_unit_head): Add member "die".
9094 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9095 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9096 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9097 (dwarf2_locate_sections): Likewise.
9098 (dwarf2_build_psymtabs): Read .debug_ranges.
9099 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9100 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9101 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9102 Look for DW_AT_ranges and return the bounding box.
9103
baa93fa6
CF
91042003-01-29 Brian Ford <ford@vss.fsi.com>
9105
9106 * win32-nat.c (cygwin_pid): Removed as unused.
9107 (child_attach): Try fall back to Cygwin pid.
9108
c63f977f
JB
91092003-01-29 Jim Blandy <jimb@redhat.com>
9110
9111 * objfiles.h (struct objfile): Doc fix.
9112
d62d1979
AC
91132003-01-29 Andrew Cagney <ac131313@redhat.com>
9114
9115 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9116 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9117 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9118 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9119 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9120 (FRAME_SAVED_PC): Change to a function with predicate.
9121 * gdbarch.h, gdbarch.c: Re-generate.
9122
1ae18a04
AC
91232003-01-28 Andrew Cagney <ac131313@redhat.com>
9124
52287340
AC
9125 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9126
1ae18a04
AC
9127 * complaints.c (complain): Delete function.
9128 * complaints.h (struct deprecated_complaint): Delete definition.
9129 (complain): Delete declaration.
9130
f2c16bd6
KB
91312003-01-28 Kevin Buettner <kevinb@redhat.com>
9132
9133 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9134 dummy frames.
9135
a94dd1fd
AC
91362003-01-27 Andrew Cagney <ac131313@redhat.com>
9137
9138 * sentinel-frame.h, sentinel-frame.c: New files.
9139 * Makefile.in (frame.o): Update dependencies.
9140 (SFILES): Add sentinel-frame.c.
9141 (sentinel_frame_h): Define.
9142 (COMMON_OBS): Add sentinel-frame.o.
9143 (sentinel-frame.o): Specify dependencies.
9144 * frame.c: Include "sentinel-frame.h".
9145 (frame_register_unwind): Rewrite assuming that there is always a a
9146 ->next frame.
9147 (frame_register, generic_unwind_get_saved_register): Ditto.
9148 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9149 (create_sentinel_frame, unwind_to_current_frame): New functions.
9150 (get_current_frame): Rewrite using create_sentinel_frame and
9151 unwind_to_current_frame. When possible, always create a frame.
9152 (create_new_frame): Set next to the sentinel frame.
9153 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9154 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9155 ID cache when necessary.
9156 (frame_saved_regs_id_unwind): Use frame_relative_level.
9157 (deprecated_generic_get_saved_register): Use frame_relative_level,
9158 get_frame_saved_regs, get_frame_pc, get_frame_base and
9159 get_next_frame.
9160 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9161 frame_register.
9162
5378adc4
DJ
91632003-01-27 Daniel Jacobowitz <drow@mvista.com>
9164
9165 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9166
51ee2ddc
DJ
91672003-01-27 Daniel Jacobowitz <drow@mvista.com>
9168
9169 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9170 (maintenance_set_profile_cmd): Use error () instead of warning ().
9171
d9feb4e7
DJ
91722003-01-27 Daniel Jacobowitz <drow@mvista.com>
9173
9174 * configure.in: Check that -pg works if using --enable-profiling.
9175 Check for monstartup and _mcleanup regardless of --enable-profiling.
9176 * maint.c: Check for monstartup and _mcleanup before using them.
9177 * config.in: Regenerated.
9178 * configure: Regenerated.
9179
2d188dd3
NC
91802003-01-24 Nick Clifton <nickc@redhat.com>
9181
9182 * Add sh2e support:
9183
9184 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9185
9186 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9187 (sh2e_show_regs): New.
9188 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9189 * config/sh/tm-sh.h: Added sh2e to comments.
9190
cb3c37b2
JB
91912003-01-23 Jim Blandy <jimb@redhat.com>
9192
9193 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9194 symbols found)" message here; we haven't checked for a separate
9195 debug info file yet, so we don't know yet.
9196 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9197 we've looked everywhere. Also, there's no need to print a special
9198 message when we're loading the separate debug info file: the one
9199 symbol_file_add prints is fine.
9200
5b5d99cf
JB
92012003-01-23 Alexander Larsson <alexl@redhat.com>
9202 Jim Blandy <jimb@redhat.com>
9203
9204 Add support for executables whose debug info has been separated
9205 out into a separate file, leaving only a link behind.
9206 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9207 and separate_debug_objfile_backlink.
9208 (put_objfile_before): New declaration.
9209 * symfile.c: #include "filenames.h".
9210 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9211 debug info in a separate file, read that, too. Save the addrs
9212 argument, so we can use it again to read the separated debug info;
9213 syms_from_objfile modifies the table we pass it.
9214 (reread_symbols): After re-reading an objfile, call
9215 reread_separate_symbols to refresh its separate debug info
9216 objfile, if it has one.
9217 (reread_separate_symbols, find_separate_debug_file,
9218 get_debug_link_info, separate_debug_file_exists): New functions.
9219 (debug_file_directory): New global var.
9220 (_initialize_symfile): Initialize debug_file_directory, and
9221 provide the new `set debug-file-directory' command to let the user
9222 change it.
9223 * objfiles.c (free_objfile): If this objfile has its debug info in
9224 a separate objfile, free that one too. If this is itself a
9225 separate debug info objfile, clear our parent's backlink.
9226 (put_objfile_before): New function.
9227 * utils.c (gnu_debuglink_crc32): New function.
9228 * defs.h (gnu_debuglink_crc32): New declaration.
9229 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9230 * configure.in: Handle --with-separate-debug-dir config option.
9231 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9232 * acconfig.h (DEBUGDIR): New macro.
9233 * configure, aclocal.m4, config.in: Regenerated.
9234
7e8580c1
JB
92352003-01-22 Jim Blandy <jimb@redhat.com>
9236
7904e09f
JB
9237 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9238 like the old symbol_file_add, but taking new arguments: you can
9239 now pass in either a `struct section_addr_info' list to say where
9240 each section is loaded, or a `struct section_offsets' table. Pass
9241 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 9242 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
9243 with the appropriate quiescent values for the new arguments.
9244
7e8580c1
JB
9245 * symfile.c: #include "gdb_assert.h".
9246 (syms_from_objfile): Add the ability to pass in a section offset
9247 table directly, as an alternative to the section_addr_info table.
9248 Document arguments better.
9249 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9250 * symfile.h (syms_from_objfile): Update declaration.
9251 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9252 syms_from_objfile.
9253 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9254
d28f9cdf
DJ
92552003-01-22 Daniel Jacobowitz <drow@mvista.com>
9256
9257 Original patch by Tom Tromey <tromey@cygnus.com> and
9258 Jason Molenda <jmolenda@apple.com>.
9259 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9260 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9261 * NEWS: Mention profiling.
9262 * configure.in (--enable-gdbtk): Fix typo.
9263 (--enable-profiling): New. Set PROFILE_CFLAGS.
9264 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9265 Fill in function.
9266 (profiling_state): New variable.
9267 (mcleanup_wrapper): New function.
9268 (_initialize_maint): Remove NOTYET, fix call to
9269 add_setshow_boolean_cmd for "maint set profile".
9270 * configure: Regenerated.
9271
df21e465
MH
92722003-01-21 Martin M. Hunt <hunt@redhat.com>
9273
9274 * Makefile.in (install-gdbtk): Install PNG images too.
9275
73c1f219
AC
92762003-01-21 Andrew Cagney <ac131313@redhat.com>
9277
9278 * exec.c (text_start): Delete global variable.
9279 (exec_file_attach): Make text_start local to the function.
9280 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9281 * valops.c (hand_function_call): Delete code that handles
9282 BEFORE_TEXT_END and AFTER_TEXT_END.
9283 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9284 of CALL_DUMMY_LOCATION.
9285 * gdbarch.c: Regenerate.
9286 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9287 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9288 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9289 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9290 (text_end): Delete extern declaration.
9291
eb4f72c5
AC
92922003-01-21 Andrew Cagney <ac131313@redhat.com>
9293
9294 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9295 * blockframe.c (backtrace_below_main): Move to "frame.c".
9296 (frame_chain_valid): Delete check for backtrace_below_main.
9297 (_initialize_blockframe): Delete initialization, move ``set
9298 backtrace-below-main'' command to "frame.c".
9299 (do_flush_frames_sfunc): Delete function.
9300 * frame.c: Include "command.h" and "gdbcmd.h".
9301 (frame_type_from_pc): New function.
9302 (create_new_frame): Use frame_type_from_pc.
9303 (legacy_get_prev_frame): New function.
9304 (get_prev_frame): Rewrite. When an old style frame, call
9305 legacy_get_prev_frame. Otherwize, unwind the PC first.
9306 (_initialize_frame): Add ``set backtrace-below-main'' command.
9307 * Makefile.in (frame.o): Update dependencies.
9308
778ce8cc
AC
93092003-01-19 Andrew Cagney <ac131313@redhat.com>
9310
9311 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9312 DEPRECATED_REGISTERS_INFO.
9313
01c193c8
AC
93142003-01-19 Andrew Cagney <ac131313@redhat.com>
9315
9316 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9317 Maintainers'. Update `Various Maintainers'.
9318
dedc2a2b
AC
93192003-01-19 Andrew Cagney <ac131313@redhat.com>
9320
9321 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9322 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9323 Suppress actual parameters when `-'.
9324 * gdbarch.h, gdbarch.c: Regenerate.
9325
b7261c70
AC
93262003-01-19 Andrew Cagney <ac131313@redhat.com>
9327
9328 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9329 code handling dummy frames.
9330
dbe9fe58
AC
93312003-01-19 Andrew Cagney <ac131313@redhat.com>
9332
9333 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9334 (struct frame_unwind): Add field pop.
9335 * frame.h (frame_pop): Declare.
9336 * frame.c (frame_saved_regs_pop): New function.
9337 (trad_frame_unwinder): Add frame_saved_regs_pop.
9338 (frame_pop): New function.
9339 * dummy-frame.c (dummy_frame_pop): New function.
9340 (discard_innermost_dummy): New function.
9341 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9342 (dummy_frame_unwind): Add dummy_frame_pop.
9343 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9344 * valops.c (hand_function_call): Ditto.
9345 * stack.c (return_command): Ditto.
9346
570b8f7c
AC
93472003-01-18 Andrew Cagney <ac131313@redhat.com>
9348
9349 * cris-tdep.c: Fix function declaration indentation.
9350 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9351 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9352 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9353 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9354 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9355 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9356
93572003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
9358
9359 * README (Unpacking and Installation -- quick overview):
9360 Warn against ".../gdb-5.3/gdb/configure".
9361
494cca16
AC
93622003-01-18 Andrew Cagney <ac131313@redhat.com>
9363
9364 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9365 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9366 (struct frame_unwind): Declare opaque.
9367 (dummy_frame_p): Declare function.
9368 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9369 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9370 * dummy-frame.c: Include "frame-unwind.h".
9371 (dummy_frame_p): New function.
9372 (dummy_frame_unwind): New variable.
9373 * frame.c: Include "frame-unwind.h".
9374 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9375 to use the new unwind field.
9376 (set_unwind_by_pc): Delete function.
9377 (create_new_frame, get_prev_frame): Set unwind field using
9378 frame_unwind_find_by_pc.
9379 (trad_frame_unwind, trad_frame_unwinder): New variables.
9380 * frame.h (trad_frame_unwind): Declare variable.
9381 (frame_id_unwind_ftype): Delete declaration.
9382 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9383 (struct frame_unwind): Declare opaque.
9384 (struct frame_info): Replace the fields id_unwind, pc_unwind and
9385 register_unwind with a single unwind pointer.
9386 * frame-unwind.h, frame-unwind.c: New files.
9387 * Makefile.in (SFILES): Add frame-unwind.c.
9388 (frame_unwind_h): Define.
9389 (COMMON_OBS): Add frame-unwind.o.
9390 (frame-unwind.o): Specify dependencies.
9391 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 9392
4efb68b1
AC
93932003-01-18 Andrew Cagney <ac131313@redhat.com>
9394
9395 * ada-valprint.c: Eliminate PTR.
9396 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9397 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9398 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9399 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9400 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9401 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9402 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 9403
a84d24ee
AC
94042003-01-17 Andrew Cagney <ac131313@redhat.com>
9405
762f08a3
AC
9406 * main.c (captured_main): Don't use PTR.
9407 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9408 * gdbtypes.c (lookup_primitive_typename): Ditto.
9409 (lookup_struct_elt_type): Ditto.
9410 * f-valprint.c (info_common_command): Ditto.
9411 (list_all_visible_commons): Ditto.
9412 * jv-typeprint.c (java_type_print_base): Ditto.
9413
a84d24ee
AC
9414 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9415 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9416 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9417 i386-interix-nat.c and i386-interix-tdep.c. Rename
9418 m68klinux-nat.c and m68klinux-tdep.c. Rename
9419 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9420 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9421 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9422 * main.c (captured_main): Use xfree, not free.
9423
c170fb60
AC
94242003-01-16 Andrew Cagney <ac131313@redhat.com>
9425
9426 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9427 ID back using a parameter.
9428 * frame.c (frame_id_unwind): Update call.
9429 (frame_saved_regs_id_unwind): Update.
9430 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9431 * dummy-frame.h (struct frame_id): Add opaque declaration.
9432 (dummy_frame_id_unwind): Update declaration.
9433
867f3898
AC
94342003-01-15 Andrew Cagney <ac131313@redhat.com>
9435
9436 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9437
40622be8 94382003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 9439
40622be8 9440 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 9441
ae66c1fc
EZ
94422003-01-14 Elena Zannoni <ezannoni@redhat.com>
9443
997b089a 9444 Fix PR gdb/898
ae66c1fc
EZ
9445 * breakpoint.c (until_break_command): Add new argument. Use it to
9446 decide whether to stop only at the current frame or not.
9447 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 9448 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
9449 call.
9450 (advance_command): New function.
9451 (_initialize_infcmd): Update help string for 'until' command.
9452 Add new 'advance' command.
9453
a04257e6
DC
94542003-01-14 David Carlton <carlton@math.stanford.edu>
9455
9456 * linespec.c (decode_line_1): Normalize comments.
9457 (set_flags): Ditto.
9458 (locate_first_half): Ditto.
9459 (decode_compound): Ditto.
9460 (symtab_from_filename): Ditto.
9461 (decode_all_digits): Ditto.
9462 (decode_dollar): Ditto.
9463 (find_methods): Ditto.
9464 (find_toplevel_char): Ditto.
9465
1bac305b
AC
94662003-01-13 Andrew Cagney <ac131313@redhat.com>
9467
9468 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9469 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9470 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9471 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9472 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9473 * language.c, language.h, m32r-tdep.c: Update copyright.
9474 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9475 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9476 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9477 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9478 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9479 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9480
25caa7a8
EZ
94812003-01-13 Elena Zannoni <ezannoni@redhat.com>
9482
9483 * stabsread.h (process_later, resolve_cfront_continuation):
9484 Obsolete.
9485 Update copyright years.
9486 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9487 Update copyright year.
9488 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 9489 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
9490 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9491 Update copyright year.
9492 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9493 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9494 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9495 (parse_partial_symbols): Obsolete cfront support.
9496 * stabsread.c
9497 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9498 macros.
9499 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9500 read_cfront_baseclasses, read_cfront_member_functions,
9501 resolve_cfront_continuation,read_cfront_static_fields,
9502 copy_cfront_struct_fields): Obsolete functions.
9503 (define_symbol, read_one_struct_field): Obsolete cfront support.
9504 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
9505 Update Copyright year.
9506
7789c6f5
EZ
95072003-01-13 Elena Zannoni <ezannoni@redhat.com>
9508
9509 * stack.c (print_frame_info, print_stack_frame_base_stub,
9510 print_stack_frame_base, show_and_print_stack_frame_stub,
9511 show_and_print_stack_frame, print_only_stack_frame_stub,
9512 print_only_stack_frame): Delete functions.
9513 (print_stack_frame_stub): Call print_frame_info instead of
9514 print_frame_info_base.
9515 (print_frame_info_base): Rename to print_frame_info.
9516 (backtrace_command_1): Call print_frame_info, instead of
9517 print_frame_info_base.
9518 (current_frame_command): Call print_stack_frame, instead of
9519 print_only_stack_frame.
9520 (frame_command): Call print_stack_frame, instead of
9521 show_and_print_stack_frame.
9522 (up_command): Ditto.
9523 (down_command): Ditto.
9524 * frame.h (print_only_stack_frame): Delete prototype.
9525 * infrun.c (normal_stop): Call print_stack_frame, instead of
9526 show_and_print_stack_frame.
9527 * thread.c (info_threads_command): Call print_stack_frame, instead
9528 of print_only_stack_frame.
9529
3f5a3016
AC
95302003-01-13 Andrew Cagney <ac131313@redhat.com>
9531
d99ba314
AC
9532 * README (Graphical interface to GDB): Update URL. Point at
9533 gdb/links/.
9534
3f5a3016
AC
9535 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
9536 version match.
9537
083ae935
DJ
95382003-01-13 Daniel Jacobowitz <drow@mvista.com>
9539
9540 * symtab.c (find_pc_sect_line): Don't consider end-of-function
9541 lines.
9542
5365276c
DJ
95432003-01-13 Daniel Jacobowitz <drow@mvista.com>
9544
9545 * thread-db.c (attach_thread): Prototype.
9546 (struct private_thread_info): Remove lwpid. Add thread handle (th),
9547 thread information (ti), and valid flags (th_valid, ti_valid).
9548 (attach_thread): Move target_pid_to_str call to after the thread
9549 is added to GDB's list. Initialize the cache.
9550 (thread_get_info_callback, thread_db_map_id2thr)
9551 (thread_db_get_info): New functions.
9552 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
9553 (thread_db_store_registers, thread_db_thread_alive)
9554 (thread_db_get_thread_local_address): Use them.
9555 (thread_db_pid_to_str): Likewise. Return "Missing" instead
9556 of calling error() for threads in unknown state.
9557
9558 (clear_lwpid_callback): New function.
9559 (thread_db_resume): Use it to clear the cache.
9560
9fc30b6b
DJ
95612003-01-13 Daniel Jacobowitz <drow@mvista.com>
9562
9563 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
9564 (resume_callback): Remove dead code.
9565
8f871025
AC
95662003-01-13 Andrew Cagney <ac131313@redhat.com>
9567
9568 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
9569 predicate.
9570 * gdbarch.h, gdbarch.c: Regenerate.
9571 * stack.c (frame_info): Only initialize the saved registers when
9572 FRAME_INIT_SAVED_REGS_P.
9573 * frame.c (frame_saved_regs_register_unwind): Assert
9574 FRAME_INIT_SAVED_REGS_P.
9575 (deprecated_generic_get_saved_register): Ditto.
9576
3f565f1e
DJ
95772003-01-13 Daniel Jacobowitz <drow@mvista.com>
9578
9579 * source.c (openp): Squelch warning about "filename".
9580
072b1022
DJ
95812003-01-13 Daniel Jacobowitz <drow@mvista.com>
9582
9583 * source.c (openp): If the file does not exist don't necessarily
9584 search the path.
9585
973ccf8b
DJ
95862003-01-13 Daniel Jacobowitz <drow@mvista.com>
9587
9588 Fix PR gdb/872.
9589 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
9590 (integer_types_same_name_p): New function.
9591 (rank_one_type): Use it.
9592 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
9593
030292b7
DJ
95942003-01-13 Daniel Jacobowitz <drow@mvista.com>
9595
9596 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
9597 variables.
9598 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
9599 * configure.in: Add --with-sysroot.
9600 * configure: Regenerated.
9601 * main.c (gdb_sysroot): New variable.
9602 (captured_main): Initialize gdb_sysroot.
9603 * defs.h (gdb_sysroot): New extern declaration.
9604 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
9605
afb5d334
MC
96062003-01-12 Michael Chastain <mec@shout.net>
9607
9608 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
9609
751ceeb4
MC
96102003-01-12 Michael Chastain <mec@shout.net>
9611
9612 * top.c (print_gdb_version): Bump copyright year to 2003.
9613
94cd26f8
DC
96142003-01-12 David Carlton <carlton@bactrian.org>
9615
9616 * linespec.c (symtab_from_filename): Rename variable 's' to
9617 'file_symtab'.
9618
1ce79225
AC
96192003-01-12 Andrew Cagney <ac131313@redhat.com>
9620
9621 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
9622 dummy frame.
9623 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
9624
fa1fd571
AC
96252003-01-12 Andrew Cagney <ac131313@redhat.com>
9626
9627 * d10v-tdep.c: Include "gdb_assert.h".
9628 (d10v_store_return_value): Rewrite to match current interface.
9629 (d10v_extract_struct_value_address): Ditto.
9630 (d10v_extract_return_value): Ditto.
9631 (d10v_gdbarch_init): Set store_restore_value,
9632 extract_struct_value_address and extract_return_value.
9633
68b8d23e
JB
96342003-01-12 J. Brobecker <brobecker@gnat.com>
9635
9636 * hpread.c (set_namestring): New procedure replacing the
9637 SET_NAMESTRING macro.
9638 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
9639 by calls to set_namestring.
9640
96412003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
9642
9643 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
9644 a compilation warning.
9645 (hpread_process_one_debug_symbol): Likewise.
9646
88d262ca
DC
96472003-01-10 David Carlton <carlton@math.stanford.edu>
9648
9649 * linespec.c (decode_line_1): Rename variable 's' to
9650 'file_symtab'.
9651 (decode_all_digits): Rename argument 's' to 'file_symtab'.
9652 (decode_dollar): Ditto.
9653 (decode_variable): Ditto.
9654 (symbol_found): Ditto.
9655
86669319
MC
96562003-01-09 Michael Chastain <mec@shout.net>
9657
9658 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
9659
616a9dc4
CV
96602003-01-07 Corinna Vinschen <vinschen@redhat.com>
9661
9662 * win32-nat.c (set_process_privilege): New function.
9663 (child_attach): Call set_process_privilege() to enable the
9664 SE_DEBUG_NAME user privilege if available in process token.
9665
3269bcfa
JB
96662003-01-10 J. Brobecker <brobecker@gnat.com>
9667
9668 * hpread.c (hpread_process_one_debug_symbol): Fix a small
9669 compilation error in the previous revision.
9670
2b0ee454
DC
96712003-01-09 David Carlton <carlton@math.stanford.edu>
9672
9673 * linespec.c: Update copyright.
9674
b3ba1b44
DJ
96752003-01-09 Daniel Jacobowitz <drow@mvista.com>
9676
9677 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
9678 than inferior_ptid.
9679 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
9680
4ef3f3be
AC
96812003-01-09 Andrew Cagney <ac131313@redhat.com>
9682
479ab5a0
AC
9683 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
9684 Update comments.
9685 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
9686 (frame_saved_regs_zalloc): Update.
9687 (frame_saved_regs_register_unwind): Update.
9688 (create_new_frame): Update.
9689 (get_prev_frame): Update.
9690 (frame_extra_info_zalloc): Update.
9691 (deprecated_get_frame_saved_regs): Update.
9692 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
9693 * cris-tdep.c: Update comment.
9694
bde58177
AC
9695 * somsolib.h: Fix function indentation.
9696 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
9697 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
9698 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
9699 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
9700 * somsolib.c, inftarg.c: Remove assignment in if conditional.
9701
4ef3f3be
AC
9702 * infrun.c (follow_fork): Use ISO C definition.
9703 * expprint.c (print_subexp): Use xfree instead of free.
9704 * charset.c: Include "gdb_string.h" instead of <string.h>.
9705 (register_iconv_charsets): Use ISO C definition.
9706 (host_charset, target_charset): Ditto.
9707 * Makefile.in (charset.o): Update dependencies.
9708 (mi-cmd-env.o): Update dependencies.
9709
1c615f7a
AC
97102003-01-08 Andrew Cagney <cagney@redhat.com>
9711
9712 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
9713 get_frame_base.
9714
c9a1dc08
AC
97152003-01-08 Andrew Cagney <ac131313@redhat.com>
9716
9717 * gdb_mbuild.sh: Add --keep option. When specified, keep the
9718 build directories. Save edited gdb output in Mbuild.log. If a
9719 build fails, remove any final GDB executable.
9720
dbad9d94
AC
97212003-01-08 Andrew Cagney <ac131313@redhat.com>
9722
9723 * gdb_mbuild.sh: Edit the output of `maint print architecture'
9724 replacing hex constants with function names and stripping leading
9725 file name directory prefixes.
9726
8d357cca
AC
97272003-01-08 Andrew Cagney <cagney@redhat.com>
9728
9729 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
9730 get_frame_base.
9731
bca02a8a
DC
97322003-01-08 David Carlton <carlton@math.stanford.edu>
9733
9734 * linespec.c (decode_line_1): Move code into decode_variable.
9735 (decode_variable): New function.
9736
7f8ab3a0
AC
97372003-01-08 Andrew Cagney <ac131313@redhat.com>
9738
9739 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
9740
7b5849cc
AC
97412003-01-08 Andrew Cagney <cagney@redhat.com>
9742
9743 * cris-tdep.c (cris_frame_init_saved_regs): Use
9744 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
9745 saved_regs buffer.
9746 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9747 (sh64_nofp_frame_init_saved_regs): Ditto.
9748 (sh_fp_frame_init_saved_regs): Ditto.
9749 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
9750 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9751 * mcore-tdep.c (analyze_dummy_frame): Ditto.
9752 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9753
72a5efb3
DJ
97542003-01-08 Daniel Jacobowitz <drow@mvista.com>
9755
9756 * minsyms.c (lookup_minimal_symbol): Update comment.
9757 (lookup_minimal_symbol_text): Update comment. Use the hash table.
9758 (lookup_minimal_symbol_solib_trampoline): Likewise.
9759
11c02a10
AC
97602003-01-08 Andrew Cagney <cagney@redhat.com>
9761
aab3ea25
AC
9762 * d10v-tdep.c (d10v_init_extra_frame_info): Use
9763 frame_relative_level.
9764
da50a4b7
AC
9765 * alpha-tdep.c: Use get_frame_extra_info.
9766 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9767 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
9768 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9769 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
9770
11c02a10
AC
9771 * alpha-tdep.c: Use get_next_frame.
9772 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9773 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
9774 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
9775 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
9776 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
9777 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
9778 * xstormy16-tdep.c: Ditto.
8ffd9b1b 9779
1e2330ba
AC
97802003-01-07 Andrew Cagney <cagney@redhat.com>
9781
9782 * alpha-tdep.c: Use get_frame_base.
9783 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9784 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
9785 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
9786 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9787 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
9788 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
9789 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
9790 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 9791
2d75187b
AC
97922003-01-07 Andrew Cagney <cagney@redhat.com>
9793
9794 * frame.c (deprecated_get_frame_context): New function.
9795 (deprecated_set_frame_context): New function.
9796 * frame.h (deprecated_get_frame_context): Declare.
9797 (deprecated_set_frame_context): Declare.
9798 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
9799 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 9800
483d36b2
AC
98012003-01-07 Andrew Cagney <cagney@redhat.com>
9802
9803 * frame.c (deprecated_set_frame_next_hack): New function.
9804 (deprecated_set_frame_prev_hack): New function.
9805 * frame.h (deprecated_set_frame_next_hack): Declare.
9806 (deprecated_set_frame_prev_hack): Declare.
9807 * mcore-tdep.c (analyze_dummy_frame): Use
9808 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
9809 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9810
14e91ac5
DC
98112003-01-07 David Carlton <carlton@math.stanford.edu>
9812
9813 * linespec.c (decode_line_1): Move code into decode_dollar.
9814 (decode_dollar): New function.
9815
b0c6b05c
AC
98162003-01-07 Andrew Cagney <cagney@redhat.com>
9817
9818 * arm-tdep.c (arm_init_extra_frame_info): Use
9819 deprecated_update_frame_base_hack.
9820 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
9821 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9822 (fix_frame_pointer): Ditto.
9823 (mn10300_analyze_prologue): Ditto.
9824
a00a19e9
AC
98252003-01-07 Andrew Cagney <cagney@redhat.com>
9826
9827 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
9828 extra_info using frame_extra_info_zalloc.
9829 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9830 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
9831 (sh64_init_extra_frame_info): Ditto.
9832 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
9833 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
9834 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9835 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
9836 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
9837 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
9838 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
9839 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
9840 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
9841 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
9842 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9843 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
9844
9845 * mn10300-tdep.c (analyze_dummy_frame): Use
9846 deprecated_set_frame_extra_info_hack.
9847 * mcore-tdep.c (analyze_dummy_frame): Ditto.
9848
1fb4c65b
JB
98492003-01-07 J. Brobecker <brobecker@gnat.com>
9850
9851 * mdebugread.c (parse_symbol): Skip stProc entries which storage
9852 class is not scText. These do not define "real" procedures.
9853 (parse_partial_symbols): Likewise.
9854
9fe7d6bf
MS
98552003-01-06 Michael Snyder <msnyder@redhat.com>
9856
9857 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
9858
f6c609c4
AC
98592003-01-06 Andrew Cagney <ac131313@redhat.com>
9860
9861 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
9862 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
9863 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
9864 deprecated_frame_xmalloc_with_cleanup.
9865 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
9866 deprecated_frame_xmalloc.
9867 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
9868 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
9869
d995ff4b
AC
98702003-01-06 Andrew Cagney <cagney@redhat.com>
9871
84dc46cb
AC
9872 * x86-64-linux-tdep.c: Include "osabi.h".
9873 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
9874
d995ff4b
AC
9875 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
9876
66140c26
AC
98772003-01-06 Andrew Cagney <cagney@redhat.com>
9878
9879 * MAINTAINERS (Target Instruction Set Architectures): Update
9880 arm-elf. Can be built with -Werror, has been multiarched.
9881
9882 * value.h (unpack_long): Make buffer parameter constant.
9883 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
9884 * scm-lang.h (scm_parse): Ditto.
9885 * defs.h (extract_typed_address, extract_address): Ditto.
9886 (extract_long_unsigned_integer): Ditto.
9887 * inferior.h (unsigned_pointer_to_address): Ditto.
9888 (signed_pointer_to_address): Ditto.
9889 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
9890 * gdbarch.h, gdbarch.c: Regenerate.
9891 * findvar.c (extract_long_unsigned_integer): Update.
9892 (extract_address): Update.
9893 (extract_typed_address): Update.
9894 (unsigned_pointer_to_address): Update.
9895 * values.c (unpack_long): Update.
9896 (unpack_double): Update.
9897 (unpack_pointer): Update.
9898 (unpack_field_as_long): Update.
9899 * d10v-tdep.c (d10v_pointer_to_address): Update.
9900 * avr-tdep.c (avr_pointer_to_address): Update.
9901 * scm-lang.c (scm_unpack): Update.
9902 * findvar.c (signed_pointer_to_address): Update.
9903
b089b3da
ML
99042003-01-06 Michal Ludvig <mludvig@suse.cz>
9905
8ffd9b1b 9906 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
9907 since it is in i386-tdep.c.
9908
aff87235
JB
99092003-01-06 J. Brobecker <brobecker@gnat.com>
9910
9911 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
9912 failure introduced in the previous change.
9913
34f5e845
MC
99142003-01-05 Michael Chastain <mec@shout.net>
9915
9916 * README: Remove references to deleted remote-*.c files:
9917 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
9918 remote-nrom.c, remote-os9k.c, remote-udi.c.
9919
28bcfd30
MK
99202003-01-05 Mark Kettenis <kettenis@gnu.org>
9921
9922 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
9923 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
9924 i386_get_longjmp_target.
9925
15a5b3ee
AC
99262003-01-05 Andrew Cagney <ac131313@redhat.com>
9927
9928 * arm-tdep.c (prologue_cache): Change to a pointer.
9929 (_initialize_arm_tdep): Allocate prologue_cache.
9930 (check_prologue_cache): Update.
9931 (save_prologue_cache): Update.
9932 (arm_gdbarch_init): Update.
9933
c263362b
DJ
99342003-01-04 Daniel Jacobowitz <drow@mvista.com>
9935
9936 * stabsread.c (update_method_name_from_physname): Call complaint()
9937 instead of error.
9938
51603483
DJ
99392003-01-04 Daniel Jacobowitz <drow@mvista.com>
9940
9941 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
9942 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
9943 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
9944
9945 * blockframe.c: Include "gdbcmd.h" and "command.h".
9946 (backtrace_below_main): New variable.
9947 (file_frame_chain_valid, func_frame_chain_valid)
9948 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
9949 (generic_func_frame_chain_valid): Remove functions.
9950 (frame_chain_valid, do_flush_frames_sfunc): New functions.
9951 (_initialize_blockframe): New function.
9952 * Makefile.in (blockframe.o): Update dependencies.
9953 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
9954 comment. Call frame_chain_valid ().
9955 * frame.h: Remove old prototypes. Add prototype for
9956 frame_chain_valid and update comments to match.
9957 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
9958 Remove old comment.
9959 * gdbarch.h: Regenerated.
9960 * gdbarch.c: Regenerated.
9961
9962 * alpha-tdep.c (alpha_gdbarch_init): Don't call
9963 set_gdbarch_frame_chain_valid.
9964 * avr-tdep.c (avr_gdbarch_init): Likewise.
9965 * cris-tdep.c (cris_gdbarch_init): Likewise.
9966 * frv-tdep.c (frv_gdbarch_init): Likewise.
9967 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
9968 * i386-tdep.c (i386_svr4_init_abi): Likewise.
9969 (i386_nw_init_abi): Likewise.
9970 (i386_gdbarch_init): Likewise.
9971 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
9972 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
9973 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
9974 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
9975 * mips-tdep.c (mips_gdbarch_init): Likewise.
9976 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9977 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
9978 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9979 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9980 * s390-tdep.c (s390_gdbarch_init): Likewise.
9981 * sh-tdep.c (sh_gdbarch_init): Likewise.
9982 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
9983 * v850-tdep.c (v850_gdbarch_init): Likewise.
9984 * vax-tdep.c (vax_gdbarch_init): Likewise.
9985 * x86-64-tdep.c (x86_64_init_abi): Likewise.
9986
9987 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
9988 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
9989 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
9990 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
9991 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
9992 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
9993 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
9994 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
9995
b00a8037
DJ
99962002-01-04 Daniel Jacobowitz <drow@mvista.com>
9997
9998 * Makefile.in (acconfig_h): Remove incorrect macro.
9999 (config_h): Define.
10000 (osabi.o): Update dependencies.
10001 * configure.tgt: Set gdb_osabi based on target triplet.
10002 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10003 * configure: Regenerated.
10004 * config.in: Regenerated.
10005 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10006 (GDB_OSABI_DEFAULT): Define if not already defined.
10007 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10008 (set_osabi_string): New variables.
10009 (gdbarch_register_osabi): Add new OS ABI to
10010 gdb_osabi_available_names.
10011 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10012 (set_osabi, show_osabi): New functions.
10013 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10014
4be87837
DJ
100152003-01-04 Daniel Jacobowitz <drow@mvista.com>
10016
10017 * arch-utils.c (gdbarch_info_init): Set osabi to
10018 GDB_OSABI_UNINITIALIZED.
10019 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10020 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10021 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10022 * gdbarch.c: Regenerated.
10023 * gdbarch.h: Regenerated.
10024 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10025 there's no BFD.
10026 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10027 * osabi.h (enum gdb_osabi): Move to defs.h.
10028 (gdbarch_init_osabi): Update prototype.
10029 * defs.h (enum gdb_osabi): Moved here.
10030 * Makefile.in: Update dependencies.
10031
10032 * alpha-tdep.h: Don't include "osabi.h".
10033 (struct gdbarch_tdep): Remove osabi member.
10034 * alpha-tdep.c: Include "osabi.h".
10035 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10036 iterate over arches. Update call to gdbarch_init_osabi.
10037 (alpha_dump_tdep): Don't dump osabi.
10038 * alpha-linux-tdep.c: Include "osabi.h".
10039 * alpha-osf1-tdep.c: Include "osabi.h".
10040 * alphafbsd-tdep.c: Include "osabi.h".
10041 * alphanbsd-tdep.c: Include "osabi.h".
10042
10043 * arm-tdep.h: Don't include "osabi.h".
10044 (struct gdbarch_tdep): Remove osabi member.
10045 * arm-tdep.c: Include "osabi.h".
10046 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10047 iterate over arches. Update call to gdbarch_init_osabi.
10048 (arm_dump_tdep): Don't dump osabi.
10049 * arm-linux-tdep.c: Include "osabi.h".
10050 * armnbsd-tdep.c: Include "osabi.h".
10051
10052 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10053 Update call to gdbarch_init_osabi.
10054
10055 * i386-tdep.h: Don't include "osabi.h".
10056 (struct gdbarch_tdep): Remove osabi member.
10057 * i386-tdep.c: Include "osabi.h".
10058 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10059 iterate over arches. Update call to gdbarch_init_osabi.
10060 (i386_dump_tdep): Don't dump osabi.
10061 * i386-linux-tdep.c: Include "osabi.h".
10062 * i386-sol2-tdep.c: Include "osabi.h".
10063 * i386bsd-tdep.c: Include "osabi.h".
10064 * i386gnu-tdep.c: Include "osabi.h".
10065 * i386ly-tdep.c: Include "osabi.h".
10066 * i386nbsd-tdep.c: Include "osabi.h".
10067 * i386obsd-tdep.c: Include "osabi.h".
10068
10069 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10070 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10071 check osabi when iterating over arches. Update call to
10072 gdbarch_init_osabi.
10073 (mips_dump_tdep): Don't dump osabi.
10074
10075 * ns32k-tdep.h: Don't include "osabi.h".
10076 (struct gdbarch_tdep): Remove.
10077 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10078 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10079 allocate tdep. Update call to gdbarch_init_osabi.
10080 (ns32k_dump_tdep): Remove.
10081 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10082 * ns32knbsd-tdep.c: Include "osabi.h".
10083
10084 * ppc-tdep.h: Don't include "osabi.h".
10085 (struct gdbarch_tdep): Remove osabi member.
10086 * rs6000-tdep.c: Include "osabi.h".
10087 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10088 osabi when iterating over arches. Update call to
10089 gdbarch_init_osabi.
10090 (rs6000_dump_tdep): Don't dump osabi.
10091 * ppc-linux-tdep.c: Include "osabi.h".
10092 * ppcnbsd-tdep.c: Include "osabi.h".
10093
10094 * sh-tdep.h: Don't include "osabi.h".
10095 (struct gdbarch_tdep): Remove osabi member.
10096 * sh-tdep.c: Include "osabi.h".
10097 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10098 iterate over arches. Update call to gdbarch_init_osabi.
10099 (sh_dump_tdep): Don't dump osabi.
10100 * shnbsd-tdep.c: Include "osabi.h".
10101
10102 * sparc-tdep.c: Include "osabi.h".
10103 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10104 iterate over arches. Update call to gdbarch_init_osabi.
10105 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10106 tdep structure.
10107
10108 * vax-tdep.h: Don't include "osabi.h".
10109 (struct gdbarch_tdep): Remove.
10110 * vax-tdep.c: Include "osabi.h".
10111 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10112 iterate over arches. Don't allocate tdep. Update call
10113 to gdbarch_init_osabi.
10114 (vax_dump_tdep): Remove.
10115 (_initialize_vax_tdep): Update call to gdbarch_register.
10116
a881cf8e
DJ
101172003-01-04 Daniel Jacobowitz <drow@mvista.com>
10118
10119 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10120 entirely.
10121 (breakpoint_re_set_one): Don't fetch the value for a disabled
10122 watchpoint.
10123
1e698235
DJ
101242003-01-04 Daniel Jacobowitz <drow@mvista.com>
10125
10126 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10127 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10128 (COERCE_FLOAT_TO_DOUBLE): Remove.
10129 * gdbarch.c: Regenerate.
10130 * gdbarch.h: Regenerate.
10131 * Makefile.in: Remove value_h from gdbarch_h.
10132 * valops.c (coerce_float_to_double): New variable.
10133 (default_coerce_float_to_double): Remove.
10134 (standard_coerce_float_to_double): Remove.
10135 (value_arg_coerce): Use coerce_float_to_double.
10136 (_initialize_valops): Add "set coerce-float-to-double".
10137 * value.h (default_coerce_float_to_double): Remove prototype.
10138 (standard_coerce_float_to_double): Remove prototype.
10139
10140 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10141 prototyped.
10142 * mdebugread.c (parse_symbol): Likewise.
10143 * stabsread.c (define_symbol): Mark all functions as prototyped.
10144
10145 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10146 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10147 set_gdbarch_coerce_float_to_double.
10148 * arm-tdep.c (arm_gdbarch_init): Likewise.
10149 * frv-tdep.c (frv_gdbarch_init): Likewise.
10150 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10151 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10152 * mips-tdep.c (mips_gdbarch_init): Likewise.
10153 (mips_coerce_float_to_double): Remove.
10154 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10155 (rs6000_coerce_float_to_double): Remove.
10156 * s390-tdep.c (s390_gdbarch_init): Likewise.
10157 * sh-tdep.c (sh_gdbarch_init): Likewise.
10158 (sh_coerce_float_to_double): Remove.
10159 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10160 (sparc_coerce_float_to_double): Remove.
10161 * v850-tdep.c (v850_gdbarch_init): Likewise.
10162 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10163 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10164 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10165 (hppa_coerce_float_to_double): Remove prototype.
10166 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10167
f436a26a
DJ
101682003-01-04 Daniel Jacobowitz <drow@mvista.com>
10169
10170 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10171
248f8055
DJ
101722003-01-04 Daniel Jacobowitz <drow@mvista.com>
10173
10174 Suggested by Stewart Brown <sb24@avaya.com>:
10175 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10176 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10177 (c_type_print_varspec_suffix): Likewise.
10178
72cfdc76
MK
101792003-01-04 Mark Kettenis <kettenis@gnu.org>
10180
bfd260bb
MK
10181 * configure.in: Don't set and AC_SUBST SUBDIRS.
10182 * configure: Regenerated.
10183
72cfdc76
MK
10184 * configure.in: Remove code dealing with shared libraries.
10185 * Makefile.in: Remove HLDFLAGS and HLDENV.
10186 * configure: Regenerated.
10187
c8b8a898
AC
101882003-01-04 Andrew Cagney <ac131313@redhat.com>
10189
10190 * frame.c (deprecated_frame_xmalloc): New function.
10191 (deprecated_set_frame_saved_regs_hack): New function.
10192 (deprecated_set_frame_extra_info_hack): New function.
10193 * frame.h (deprecated_frame_xmalloc): Declare.
10194 (deprecated_set_frame_saved_regs_hack): Declare.
10195 (deprecated_set_frame_extra_info_hack): Declare.
10196
14abd0fb
MK
101972003-01-04 Mark Kettenis <kettenis@gnu.org>
10198
8ee53726
MK
10199 * configure.in: Move code that provides the --enable-gdbtk option
10200 right after the code that handles the --enable-tui option, and
10201 polish it somewhat.
10202 * configure: Regenerated.
10203
14abd0fb
MK
10204 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10205 AC_CHECK_FUNCS and remove the old check for pread64.
10206 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10207 * acconfig.h (_GNU_SOURCE): Add.
10208 (HAVE_PREAD64): Remove.
10209 * configure, aclocal.m4, config.in: Regenerated.
10210
b2fb4676
AC
102112003-01-03 Andrew Cagney <ac131313@redhat.com>
10212
10213 * alpha-tdep.c: Use get_frame_saved_regs.
10214 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10215 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10216 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10217 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10218 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10219
8dcde887
MK
102202003-01-03 Mark Kettenis <kettenis@gnu.org>
10221
10222 * configure.in: Remove all use of the SUBDIRS variable; add
10223 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10224 code providing the --enable-multi-ice option, and move it right in
10225 front of the code that checks whether gdbserver is supported.
10226 Polish that too.
10227 * configure: Regenerated.
10228 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10229 @SUBDIRS@.
10230
8ccd593b
AC
102312003-01-03 Andrew Cagney <cagney@redhat.com>
10232
10233 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10234 * avr-tdep.c, cris-tdep.c: Ditto.
10235 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10236 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 10237
91151a06
MK
102382003-01-03 Mark Kettenis <kettenis@gnu.org>
10239
10240 * configure.in: Remove --enable-netrom option.
10241 * configure: Regenerated.
10242
8fe84d01
MK
102432003-01-03 Mark Kettenis <kettenis@gnu.org>
10244
10245 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10246 declaration for `struct re_pattern_buffer' instead.
10247 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10248
f0394be6
JB
102492003-01-03 J. Brobecker <brobecker@gnat.com>
10250
10251 * mdebugread.c (parse_symbol): Count until the stEnd matching
10252 the structure name.
10253
27e9bf90
MK
102542003-01-02 Mark Kettenis <kettenis@gnu.org>
10255
93d331ba
MK
10256 * configure.in: Remove --with-cpu option.
10257 subscripts. Remove evil changequotes here.
10258 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10259 * config.in, configure: Regenerated.
8ffd9b1b 10260
27e9bf90
MK
10261 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10262 * configure.in: Cleanup section that sources GDB and BFD configure
10263 subscripts. Remove evil changequotes here.
10264 * config.in, configure: Regenerated.
10265
50abf9e5
AC
102662003-01-02 Andrew Cagney <ac131313@redhat.com>
10267
10268 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10269 frame accessor methods.
10270 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10271 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10272 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10273 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10274 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10275 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10276 * z8k-tdep.c: Ditto.
8ffd9b1b 10277
287c1a40
MK
102782003-01-02 Mark Kettenis <kettenis@gnu.org>
10279
f5dbc56d
MK
10280 * configure.in: Remove UI_OUT configuration code.
10281 * ada-lang.c: Update assuming UI_OUT is always true.
10282 * Makefile.in (UIOUT_CFLAGS): Remove.
10283 * configure: Regenerated.
10284 * TODO: Remove blurb about elimination of -DUI_OUT.
10285
627af7ea
MK
10286 * configure.in: Move code that provides the --enable-gdbcli,
10287 --enable-gdbmi options right before the code that handles the
10288 --enable-tui option. Polish a bit.
10289 * configure: Regenerated.
10290
06825bd1
MK
10291 * configure.in: Rewrite check for GNU regex and the
10292 --without-included regex option, and move it into the "Checks for
10293 library functions" section. This makes us use the system regex
10294 again by default on systems with version 2 of the GNU C library.
10295 This was apparently broken.
10296 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10297 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10298 * config.in, configure: Regenerated.
10299
287c1a40
MK
10300 * configure.in: Move code that provides the --enable-tui option
10301 before the "Checks for libraries" section. Polish the code
10302 somewhat and set need_curses to yes if we build the TUI. Rewrite
10303 code that looks for a library providing termcap functionality to
10304 match more closely what's done in the Readline library, and move
10305 it into to the "Checks for libraries" section.
10306 * configure: Regenerated.
10307 * Makefile.in (TERMCAP): Remove variable.
10308 * config/i386/go32.mh (TERMCAP): Remove variable.
10309
684e56bf
AC
103102003-01-02 Andrew Cagney <ac131313@redhat.com>
10311
10312 * MAINTAINERS: Mention gdb_mbuild.sh.
10313 * gdb_mbuild.sh: Rewrite.
10314
e1ea1d75
MK
103152003-01-02 Mark Kettenis <kettenis@gnu.org>
10316
10317 * configure.in: Fix typo in last change.
10318 * config.in, configure: Regenerated.
10319
1b831c93
AC
103202003-01-02 Andrew Cagney <ac131313@redhat.com>
10321
10322 * valarith.c (value_binop): Delete obsolete code and comments.
10323 * configure.host: Ditto.
10324 * buildsym.h (make_blockvector): Ditto.
10325 * buildsym.c (make_blockvector): Ditto.
10326 * defs.h (enum language): Ditto.
10327 (chill_demangle): Ditto.
10328 * elfread.c (elf_symtab_read): Ditto.
10329 * dwarfread.c (CHILL_PRODUCER): Ditto.
10330 (set_cu_language): Ditto.
10331 (handle_producer): Ditto.
10332 * expprint.c (print_subexp): Ditto.
10333 * gdbtypes.c (chill_varying_type): Ditto.
10334 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10335 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10336 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10337 (chill_varying_type): Ditto.
10338 * language.h (_LANG_chill): Ditto.
10339 * language.c (binop_result_type, integral_type): Ditto.
10340 (character_type, string_type, structured_type): Ditto.
10341 (lang_bool_type, binop_type_check): Ditto.
10342 * stabsread.h (os9k_stabs): Ditto.
10343 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10344 (define_symbol, read_type, read_struct_fields): Ditto.
10345 (read_array_type, read_enum_type, read_huge_number): Ditto.
10346 (read_range_type, start_stabs): Ditto.
10347 * symfile.c (init_filename_language_table): Ditto.
10348 (add_psymbol_with_dem_name_to_list): Ditto.
10349 * symtab.c (symbol_init_language_specific): Ditto.
10350 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10351 * symtab.h (struct general_symbol_info): Ditto.
10352 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10353 * typeprint.c (typedef_print): Ditto.
10354 * utils.c (fprintf_symbol_filtered): Ditto.
10355 * valops.c (value_cast, search_struct_field, value_slice): Delete
10356 obsolete code.
10357 (varying_to_slice): Delete function.
10358 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10359 (varying_to_slice): Delete declaration.
10360 * MAINTAINERS: Update.
10361
8bb2c122
MK
103622003-01-02 Mark Kettenis <kettenis@gnu.org>
10363
97bf5e38
MK
10364 * configure.in: Reorganize "Checks for library functions section"
10365 a bit. Remove check for `btowc' and `isascii' functions.
10366 * configure: Regenerated.
10367
5ee754fc
MK
10368 * acconfig.h (_MSE_INT_H): Remove.
10369 * configure.in: Create "Checks for header files" section, and move
10370 appropriate tests there. Don't check for objlist.h, wchar.h,
10371 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10372 misdetection fix. Also add "Checks for types", "Checks for
10373 compiler characteristics" and "Checks for library functions"
10374 sections.
10375 * config.in, configure: Regenerated.
10376
8bb2c122
MK
10377 * configure.in: Create "Checks for programs" section, and move
10378 appropriate tests there.
10379
9a156167
MK
103802003-01-01 Mark Kettenis <kettenis@gnu.org>
10381
10382 * configure.in: Create "Checks for libraries" section, and move
10383 appropriate tests there. Cleanup check for wctype in libw. Use
10384 AC_SEARCH_LIBS to see whether we need libsocket.
10385 * configure: Regenerated.
10386
a80e2bcb 10387For older changes see ChangeLog-2002
c906108c
SS
10388\f
10389Local Variables:
10390mode: change-log
10391left-margin: 8
10392fill-column: 74
10393version-control: never
10394End:
This page took 0.930631 seconds and 4 git commands to generate.