26d61226eae7054a809d90892d536cb0553f23aa
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2005-12-06  Michael Snyder  <msnyder@redhat.com>
2
3         * inf-ptrace.c: Fix typos in comments.
4
5 2005-12-06  Serge Chatroux  <serge.chatroux@st.com>
6
7         * mi/mi-interp.c (mi_interpreter_resume): Route target error
8         through the MI.
9
10 2005-12-04  Mark Kettenis  <kettenis@gnu.org>
11
12         * amd64obsd-tdep.c: Include "regcache.h" and "bsd-uthread.h".
13         (amd64obsd_uthread_reg_offset): New variable.
14         (AMD64OBSD_UTHREAD_RSP_OFFSET): New define.
15         (amd64obsd_supply_uthread, amd64obsd_collect_uthread): New
16         functions.
17         (amd64obsd_init_abi): Set supply_uthread and collect_uthread.
18         * Makefile.in (amd64obsd-tdep.o): Update dependencies.
19
20 2005-12-02  Andrew Stubbs  <andrew.stubbs@st.com>
21
22         * breakpoint.c (BREAK_ARGS_HELP): New mecro.
23         (_initialize_breakpoint): Enhance break, tbreak, hbreak and thbreak
24         commands' help by adding more information and using BREAK_ARGS_HELP
25         to duplicate the common parts.  Remove now-redundant cross-references.
26
27 2005-12-02  Andrew Stubbs  <andrew.stubbs@st.com>
28
29         * value.c (init_if_undefined_command): New function.
30         (_initialize_values): Add command init-if-undefined.
31         * NEWS (Changes since GDB 6.3): Rename to 'Changes in GDB 6.4'.
32         (Changes since GDB 6.4): New section.
33         Mention new command init-if-undefined.
34
35 2005-12-02  Andrew Stubbs  <andrew.stubbs@st.com>
36
37         * symfile.c (symbol_file_clear): Test symfile_objfile is not NULL
38         before dereferencing it.
39         Gettextize the query.
40
41 2005-12-02  Joel Brobecker  <brobecker@adacore.com>
42
43         GDB 6.4 released from GDB 6.4 branch.
44
45 2005-12-01  Nathan Sidwell  <nathan@codesourcery.com>
46
47         * ms1-tdep.c (ms1_register_name): Const qualify array.
48         (ms1_registers_info): Use gdb_byte.
49         (ms1_push_dummy_call): Likewise.
50         (ms1_gdbarch_init): Remove illformed nested prototype.
51
52 2005-11-25  Christophe Lyon  <christophe.lyon@st.com>
53
54         * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
55         DWARF2_FRAME_REG_CFA_OFFSET.
56         * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
57         DWARF2_FRAME_REG_CFA_OFFSET.
58
59 2005-11-28  Mark Mitchell  <mark@codesourcery.com>
60
61         * remote-sim.c (gdbsim_wait): Pass target signal numbers to
62         sim_resume.  Expect target signal numbers from sim_stop_reason.
63
64 2005-11-27  Christopher Faylor  <cgf@timesys.com>
65
66         * win32-nat.c (env_sort): New function.
67         (win32_create_inferior): Rename env to in_env.  Sort environment before
68         handing it off to CreateProcess.
69         (win32_current_sos): Quiet a compiler warning.
70
71 2005-11-25  Andrew Stubbs  <andrew.stubbs@st.com>
72
73         * event-top.h (async_init_signals): Add SIGTERM handler.
74         (handle_sigterm): New function.
75         * event-top.h (handle_sigterm): New prototype.
76
77 2005-11-25  Andrew Stubbs  <andrew.stubbs@st.com>
78
79         * cli-decode.c (find_command_name_length): New function.
80         (lookup_cmd_1): Replace loop reading command name with
81         find_command_name_length().
82         (lookup_cmd): Likewise.
83         (lookup_cmd_composition): Likewise.
84
85 2005-11-25 Frederic Riss <frederic.riss@st.com>
86         
87         * dwarf2-frame.c (execute_cfa_program): Don't access past the 
88         allocated dwarf2_frame_state.initial.regs.
89
90 2005-11-25 Frederic Riss <frederic.riss@st.com>
91         
92         * MAINTAINERS (Write After Approval): Add myself to the list.
93
94 2005-11-23  Andrew Stubbs  <andrew.stubbs@st.com>
95
96         * sh-tdep.c (do_fv_register_info, do_dr_register_info): Delete function.
97         (do_bank_register_info, do_bank_register_info): Likewise.
98         (sh_print_pseudo_register, sh_do_fp_register): Likewise.
99         (sh_do_register, sh_print_register, sh_print_registers_info): Likewise.
100         (sh_gdbarch_init): Remove call to set_gdbarch_print_registers_info().
101
102 2005-11-22  Joel Brobecker  <brobecker@adacore.com>
103
104         * top.c (print_gdb_version): Update copyright year.
105
106 2005-11-20  Mark Kettenis  <kettenis@gnu.org>
107
108         * inf-ptrace.c (inf_ptrace_xfer_partial): Use PIOD_WRITE_I instead
109         of PIOD_WRITE_D.
110
111 2005-11-19  Jim Blandy  <jimb@redhat.com>
112
113         * tracepoint.c (memrange_absolute): New enum constant.
114         (struct memrange, memrange_cmp, add_memrange, collect_symbol,
115         stringify_collection_list, encode_actions): Use it instead of '-1'
116         to indicate an fixed-address memory range.
117         (Suggested by Eli Zaretskii.)
118
119         * tracepoint.c (stringify_collection_list): Indicate absolute
120         memory ranges by using "-1" as the memory range's base register
121         number, not "FFFFFFFF".
122
123 2005-11-19  Randolph Chung  <tausq@debian.org>
124
125         * dwarf2loc.c (dwarf2_tracepoint_var_ref): Remove extra add for
126         DW_OP_fbreg.  Handle DW_OP_breg0 through DW_OP_breg31.  Print 
127         DWARF opcode for unsupported case.
128
129 2005-11-19  Randolph Chung  <tausq@debian.org>
130
131         * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind_cache): Use 
132         HPPA_HPUX_SS_* constants.  Ensure "off" is large enough to hold 
133         64-bit offset.  Set proper signal context offset for 64-bit 
134         programs.  Set pc properly for signal frames.
135
136 2005-11-19  Randolph Chung  <tausq@debian.org>
137
138         * hppa-hpux-tdep.c (hppa_hpux_sigtramp_unwind_sniffer): Rely on the
139         unwind record to determine a signal frame, instead of hardcoding
140         a function name.
141
142 2005-11-19  Randolph Chung  <tausq@debian.org>
143
144         * hppa-tdep.c (skip_prologue_hard_way): Add one more insn pattern 
145         for "std rp,-0x10(sp)".
146         (hppa_frame_cache): Likewise.
147         (hppa_fallback_frame_cache): Likewise.
148
149 2005-11-19  Randolph Chung  <tausq@debian.org>
150
151         * hppa-tdep.c (hppa_frame_cache): Reformat code and enhance 
152         debugging.
153
154 2005-11-18  Jim Blandy  <jimb@redhat.com>
155
156         * tracepoint.c (struct memrange, collect_symbol): Doc fix.
157
158 2005-11-18  Andrew Stubbs  <andrew.stubbs@st.com>
159
160         * mi/mi-main.c (mi_load_progress): Ensure the use of the correct mi
161         uiout for the duration of the function.
162
163 2005-11-18  Nick Roberts  <nickrob@snap.net.nz>
164
165         * mi/gdb-mi.el (gdb-source-file-list): Declare.
166         (gdbmi): Bind new functions.
167         (gdbmi-var-list-children-handler, gdbmi-var-list-children-regexp):
168         Handle string expressions properly.  Move "type" field into regexp.
169         (gdbmi-var-update-regexp, gdbmi-var-update-handler): Handle string
170         expressions properly.  Update speedbar.
171         (gdbmi-breakpoints-buffer, gdb-stack-buffer, gdb-locals-buffer)
172         (gdb-registers-buffer): Use def-gdb-auto-update-trigger instead of
173         def-gdb-auto-updated-buffer as handlers is defined explicitly.
174         (gdb-stack-list-locals-handler): Handle string expressions properly.
175         (gdb-data-list-register-values-handler)
176         (gdb-data-list-register-values-custom): Fontify buffer.
177
178 2005-11-17  Daniel Jacobowitz  <dan@codesourcery.com>
179
180         * version.in: Update to 6.4.50.
181
182 2005-11-16  Andrew Stubbs  <andrew.stubbs@st.com>
183
184         * NEWS (6.4): Mention $argc.
185
186 2005-11-15  Andrew Stubbs  <andrew.stubbs@st.com>
187
188         * NEWS: Add --batch-silent, --return-child-result, and --eval-command
189         options to the 6.4 section.
190
191 2005-11-15  Andrew Stubbs  <andrew.stubbs@st.com>
192
193         * cli/cli-script.c: Include gdb_assert.h.
194         (locate_arg): Detect $argc.
195         (insert_args): Substitute $argc.
196         * Makefile.in (cli-script.o): Add dependency on gdb_assert.h.
197
198 2005-11-14  James E Wilson  <wilson@specifix.com>
199
200         PR 2024
201         * dwarf2loc.c (dwarf_expr_frame_base): Use get_frame_address_in_block
202         instead of get_frame_pc.
203         (loclist_read_variable): Likewise.
204
205 2005-11-14  Andrew Stubbs  <andrew.stubbs@st.com>
206
207         * MAINTAINERS (Write After Approval): Add myself to the list.
208
209 2005-11-14  Andrew Stubbs  <andrew.stubbs@st.com>
210
211         * thread.c (_initialize_thread): Correct the 'thread apply' help
212         message.
213
214 2005-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
215
216         * elfread.c (elf_symtab_read): Remove if (1) and reindent.
217
218 2005-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
219
220         * arm-linux-tdep.c (eabi_linux_arm_le_breakpoint)
221         (eabi_linux_arm_be_breakpoint): New variables.
222         (arm_linux_init_abi): Use them.
223
224 2005-11-11  Michael Snyder  <msnyder@redhat.com>
225
226         * inftarg.c (child_wait): Delete unused local variable.
227
228 2005-11-11  Stephane Carrez  <stcarrez@nerim.fr>
229
230         PR tui/1995
231         * tui/tui-command.c (tui_dispatch_ctrl_char): Handle CTRL-L even if the
232         focus is on the command window.
233
234 2005-11-11  Stephane Carrez  <stcarrez@nerim.fr>
235
236         * tui/tui-win.c (tui_update_gdb_sizes): Use tui_term_width() and
237         tui_term_height() to restore the terminal size when leaving the
238         TUI mode.
239
240 2005-11-11  Stephane Carrez  <stcarrez@nerim.fr>
241
242         * m68hc11-tdep.c (m68hc11_pseudo_register_write): Use gdb_byte
243         for buffers.
244         (m68hc11_pseudo_register_read): Likewise.
245         (m68hc11_return_value): Likewise.
246         (m68hc11_frame_prev_register): Likewise.
247         (m68hc11_frame_align): Remove as its seems no longer necessary.
248         (m68hc11_gdbarch_init): Don't install frame_align handler.
249         (m68hc11_scan_prologue): Fix crash that occurred when called from
250         m68hc11_skip_prologue
251
252 2005-11-10  Mark Kettenis  <kettenis@gnu.org>
253
254         * MAINTAINERS: Mark m68k-elf, sparc-elf and vax-netbsd as no
255         longer broken.
256
257 2005-11-09  Randolph Chung <tausq@debian.org>
258
259         * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
260         hppa_linux_{store,fetch}_inferior_registers instead of
261         arm_linux_{store,fetch}_inferior_registers.
262
263 2005-11-08  Kei Sakamoto  <sakamoto.kei@renesas.com>
264
265         * remote-m32r-sdi.c: Update copyright years.
266         (m32r_resume): Write DBT at word-aligned addresses.
267         (m32r_wait): Use SDI_WRITE_MEMORY to remove DBT.
268
269 2005-11-08  Kei Sakamoto  <sakamoto.kei@renesas.com>
270
271         * m32r-linux-tdep.c (linux_sigtramp_code): Use 'gdb_byte' instead
272         of 'unsigned char'.
273         (m32r_linux_sigtramp_start): Likewise.
274         (linux_rt_sigtramp_code): Likewise.
275         (m32r_linux_rt_sigtramp_start): Likewise.
276         (m32r_linux_sigtramp_frame_prev_register): Use 'gdb_byte *' instead
277         of 'void *'.
278         * m32r-tdep.c (m32r_memory_insert_breakpoint): Use 'gdb_byte'
279         instead of 'char'.
280         (m32r_memory_remove_breakpoint): Likewise.
281         (m32r_breakpoint_from_pc): Likewise.
282         (m32r_store_return_value): Likewise.
283         (decode_prologue): Likewise.
284         (m32r_push_dummy_call): Likewise.
285         (m32r_return_value): Use 'gdb_byte *' instead of 'void *'.
286         * remote-m32r-sdi.c (m32r_xfer_memory): Use 'gdb_byte' instead of
287         'char'.
288
289 2005-11-07  Kevin Buettner  <kevinb@redhat.com>
290
291         * ia64-tdep.c (floatformat_valid): Change type of `from' from
292         `const char *' to `const void *'.
293
294 2005-11-07  Kevin Buettner  <kevinb@redhat.com>
295
296         * frv-linux-tdep.c (frv_linux_sigtrapm_frame_prev_register): Change
297         type of `valuep' argument to `gdb_byte *'.
298         * frv-tdep.c (frv_pseudo_register_write): Change type of `buffer'
299         argument to `gdb_byte *'.
300         (frv_extract_return_value): Change type of `valbuf' argument to
301         `gdb_byte *'.
302         (frv_store_return_value): Likewise.
303         (frv_frame_prev_register): Change type of `bufferp' argument to
304         `gdb_byte *'
305         * solib-frv.c (ext_Elf32_Half, ext_Elf32_Addr, ext_Elf32_Word)
306         (ext_ptr): Change base type from `unsigned char' to `gdb_byte'.  Adjust
307         calls to extract_unsigned_integer which use struct members declared
308         with these array types to not try to take the address of those
309         members.
310         (fetch_loadmap, frv_current_sos): Change cast in target_read_memory()
311         calls from `char *' to `gdb_byte *'.
312         (lm_base): Change base type of `buf' from `char' to `gdb_byte'.
313         (enable_break2): Change type of `buf' from `char *' to `gdb_byte *'.
314         Change base type of `addr_buf' from `char' to `gdb_byte'.
315         (find_canonical_descriptor_in_load_object): Change base type of `buf'
316         from `char' to `gdb_byte'.
317
318 2005-11-07  Paul Gilliam  <pgilliam@us.ibm.com
319
320         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Copy code from
321         ppc_sysv_abi_return_value() to handle a vector return value.
322
323 2005-11-07  Andrew Stubbs  <andrew.stubbs@st.com>
324
325         * main.h (return_child_result, return_child_result_value): Declare.
326         * infrun.c: Include main.h.
327         (print_stop_reason): Remove declaration of return_child_result_value.
328         * top.c: Include main.h.
329         (quit_force): Remove declarations of return_child_result_value and
330         return_child_result.
331         * Makefile.in (top.o, infrun.o): Add main.h to dependencies.
332
333 2005-11-07  Andrew Stubbs  <andrew.stubbs@st.com>
334
335         * Makefile.in (tui-winsource.o): Add gdb_assert.h to dependencies.
336
337 2005-11-07  Andrew Stubbs  <andrew.stubbs@st.com>
338
339         * main.c (captured_main): Define struct cmdarg. Change type of cmdarg.
340         Add new options --eval-command and alias -ex.
341         Adjust --command to use the new struct cmdarg.
342         Execute commands given with --eval-command.
343         (print_gdb_help): Add new options --eval-command, -ex and mention -x.
344
345 2005-11-07  Andrew Stubbs  <andrew.stubbs@st.com>
346
347         * main.c (main): Use INTERP_TUI instead of "tui".
348         Set interpreter to INTERP_INSIGHT when '-w' given.
349         * interps.h (INTERP_INSIGHT): New define.
350         * tui/tui-interp.c (_initialize_tui_interp): Use INTERP_TUI instead
351         of "tui".
352
353 2005-11-04  Andrew Stubbs  <andrew.stubbs@st.com>
354
355         * infrun.c (print_stop_reason): Set return_child_result_value on exit.
356         * main.c (return_child_result): New variable.
357         (return_child_result_value): Likewise.
358         (captured_main): Add option --return-child-result.
359         Replace call to target_detach and exit (in batch mode) with quit_force.
360         (print_gdb_help): Add option --return-child-result.
361         * top.c (quit_force): Return child result if appropriate.
362
363 2005-11-03  Wu Zhou  <woodzltc@cn.ibm.com>
364
365         Checked in by Elena Zannoni  <ezannoni@redhat.com>
366
367         * dwarf2read.c (read_structure_type): Add IBM XL C++
368         specific code to set TYPE_VPTR_FIELDNO and TYPE_VPTR_BASETYPE
369         of a virtual class if a field named "__vfp" is found. 
370
371 2005-11-03  Jim Blandy  <jimb@redhat.com>
372
373         Checked in by Elena Zannoni  <ezannoni@redhat.com>      
374
375         * dwarf2read.c (file_full_name): Cope with file numbers that are
376         out of range for the given line header.
377
378 2005-11-03  Daniel Jacobowitz  <dan@codesourcery.com>
379
380         Checked in by Elena Zannoni  <ezannoni@redhat.com>
381
382         * elfread.c (elf_symtab_read): Add number_of_symbols and
383         symbol_table as arguments.  Do not load the symbol table
384         here.
385         (elf_symfile_read): Load the static and dynamic symbol tables
386         here, before calling elf_symtab_read.  Also load any synthetic
387         symbols and process those.
388         
389 2005-11-03 Andrew Cagney  <cagney@gnu.org>
390
391         Checked in by Elena Zannoni  <ezannoni@redhat.com>
392
393         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Handle DW_OP_piece
394         reads.
395
396 2006-11-03  Daniel Jacobowitz  <dan@codesourcery.com>
397
398         * linux-nat.c (linux_nat_resume): Add more debugging messages.  Do
399         not short-circuit resuming all threads if the signal will be ignored
400         in linux_nat_wait.
401
402 2005-11-02  Andrew Stubbs  <andrew.stubbs@st.com>
403
404         * monitor.c (monitor_xfer_memory): Change char to gdb_byte.
405         (monitor_insert_breakpoint): Likewise.
406         (monitor_remove_breakpoint): Likewise.
407         * remote-e7000.c (e7000_xfer_inferior_memory): Likewise.
408         * sh-tdep.c (sh_return_value_nofpu): Change void to gdb_byte.
409         (sh_return_value_fpu): Likewise.
410         (sh_pseudo_register_read): Likewise.
411         (sh_pseudo_register_write): Likewise.
412         (sh_frame_prev_register): Likewise.
413         * sh64-tdep.c (sh64_extract_return_value): Change char to gdb_byte.
414         (sh64_return_value): Change void to gdb_byte.
415         (sh64_pseudo_register_read): Likewise.
416         (sh64_pseudo_register_write): Likewise.
417         (sh64_frame_prev_register): Likewise.
418
419 2005-11-01  Joel Brobecker  <brobecker@adacore.com>
420
421         * event-top.c (gdb_setup_readline): Add missing type in extern
422         declaration.
423
424 2005-11-01  Paul Gilliam  <pgilliam@us.ibm.com>
425
426         * rs6000-tdep.c (rs6000_gdbarch_init): On GNU/Linux, assume that
427          bfd_mach_ppc64 has altivec unit, just like bfd_mach_ppc.
428
429 2005-11-01  Andrew Stubbs  <andrew.stubbs@st.com>
430
431         * tui/tui-data.h (tui_line_or_address): Encapsulate the union in a
432         struct with a tag.
433         (tui_source_element, tui_source_info): Update.
434         * tui/tui-disasm.c, tui/tui-source.c: Update to use the tagged union.
435         * tui/tui-source.h, tui/tui-stack.c, tui/tui-win.c: Likewise.
436         * tui/tui-winsource.c, tui/tui-data.c, tui/tui-layout.c: Likewise.
437         * tui/tui-winsource.h: Likewise.
438
439 2005-11-01  Christopher Faylor  <cgf@timesys.com>
440
441         * win32-nat.c (CYGWIN_SIGNAL_STRING): Delete.
442         (_CYGWIN_SIGNAL_STRING): Define if not already defined in cygwin.h.
443         (win32_add_thread): Use XZALLOC rather than xmalloc/memset.
444         (register_loaded_dll): Ditto.
445         (handle_load_dll): Call solib_add here.
446         (handle_unload_dll): Ditto.
447         (info_dll_command): Delete.
448         (handle_output_debug_string): Use official _CYGWIN_SIGNAL_STRING.
449         (win32_current_sos): Duplicate table to pass off to caller rather than
450         deleting our version.
451         (set_win32_aliases): New function.
452         (_initialize_win32_nat): Remove local handling of "info shared".  Set
453         deprecated_init_ui_hook to allow late setting of "info dll" alias.
454
455 2005-11-01  Andrew Stubbs  <andrew.stubbs@st.com>
456
457         * event-top.c (gdb_setup_readline): Don't set gdb_stdout when
458         --batch-silent option was given.
459         * main.c (batch_silent): New variable.
460         (captured_main): Add new option --batch-silent.
461         (print_gdb_help): Likewise.
462
463 2005-11-01  Mark Kettenis  <kettenis@gnu.org>
464
465         * NEWS: Mention VAX floating point support.
466
467 2005-10-31  Christopher Faylor  <cgf@timesys.com>
468
469         * win32-nat.c (get_relocated_section_addrs): Reinstate.
470         (solib_symbols_add): New function.
471         (lm_info): Remove end_addr field.
472         (register_loaded_dll): Don't try to find end_addr since gdb will do
473         this automatically now.  Make so_original_name == so_name for now.
474         Eliminate strcpy by using so_name directly.  Read in symbols if new
475         paramater "readsyms" is true.
476         (handle_load_dll): Pass auto_solib_add to register_loaded_dll to
477         control when symbols should be read.
478         (win32_free_so): Don't free objfile here.
479         (win32_create_inferior_hook): New function.
480         (handle_unload_dll): Remove left-over cruft.
481         (win32_special_symbol_handling): New (dummy) function.
482         (map_single_dll_code_section): Reinstate.
483         (dll_code_sections_add): Reinstate.
484         (core_section_load_dll_symbols): Reinstate.  Don't issue an error on
485         duplicate attempts to read same dll.  Make sure that UNIX-like name is
486         used to register DLL.
487         (win32_current_sos): Handle core files.  Reset private list before
488         passing start of list pointer to gdb.
489         (init_win32_ops): Fill out (currently unused)
490         solib_create_inferior_hook.  Fill out special_symbol_handling.
491         * config/i386/tm-cygwin.h: Remove most special solib stuff.
492
493 2005-10-31  Christopher Faylor  <cgf@timesys.com>
494
495         * win32-nat.c: Remove comment intended only for debugging.
496
497 2005-11-01  Mark Kettenis  <kettenis@gnu.org>
498
499         * doublest.c (floatformat_normalize_byteorder): Handle
500         floatformat_vax.
501         (convert_doublest_to_floatformat): Use
502         floatformat_normalize_byteorder to swap bytes if necessary.
503         * vax-tdep.c: Include floatformat.h.
504         (vax_gdbarch_init): Set float_format, double_format,
505         long_double_format and long_double_bit.
506         * Makefile.in (vax-tdep.o): Update dependencies.
507
508 2005-10-31  Christopher Faylor  <cgf@timesys.com>
509
510         Change child_ to win32_ throughout.
511         * win32-nat.c (win32_ops): New variable.
512         (win32_so_ops): Ditto.
513         (psapi_get_dll_name): Make function static.
514         (struct so_stuff): Delete.
515         (struct lm_info): New struct.
516         (solib_start, solib_end): Redefine as struct so_list.
517         (safe_symbol_file_add_stub): Use so_list rather than so_stuff.
518         (register_loaded_dll): Ditto.  Special-case ntdll.dll.  Fill in lm_info
519         field of so_list with information previously stored in so_stuff.
520         (get_image_name): Make function static.
521         (max_dll_name_len): Make variable static.
522         (win32_free_so): New function.
523         (win32_current_sos): Ditto.
524         (win32_relocate_section_addresses): Ditto.
525         (handle_unload_dll): Use so_list rather than so_stuff.  Call free_so to
526         delete shared library.
527         (solib_address): Delete function.
528         (child_solib_loaded_library_pathname): Ditto.
529         (win32_clear_solib): Rename from child_clear_solibs.  Use so_list
530         rather than so_stuff.  Just clear win32-specific stuff.
531         (get_relocated_section_addrs): Delete.
532         (solib_symbols_add): Ditto.
533         (info_dll_command): Make static.  Use lm_info field from so_list to
534         retrieve load address.
535         (fake_create_process): Make function static.
536         (win32_xfer_memory): Ditto.
537         (win32_kill_inferior): Ditto.
538         (win32_resume): Ditto.
539         (cygwin_pid_to_str): Ditto.
540         (do_initial_win32_stuff): Use win32_ops rather than
541         deprecated_child_ops.
542         (child_detach): Ditto.
543         (win32_mourn_inferior): Ditto.
544         (_initialize_win32_nat): Ditto.
545         (init_win32_ops): Ditto.  Fill out win32_so_ops and set
546         current_target_so_ops to win32_so_ops.
547         (core_dll_symbols_add): Delete.
548         (map_single_dll_code_section): Ditto.
549         (dll_code_sections_add): Ditto.
550         (core_section_load_dll_symbols): Ditto.
551         (child_solib_add): Ditto.
552
553 2005-10-31  Andrew Stubbs  <andrew.stubbs@st.com>
554
555         * tui/tui-command.c (tui_dispatch_ctrl_char): Test output of
556         getenv() before using it.
557
558 2005-10-29  Mark Kettenis  <kettenis@gnu.org>
559
560         * hppa-tdep.h (HPPA_INSN_SIZE): New define.
561         * hppa-hpux-tdep.c (hppa_hpux_search_pattern)
562         (hppa64_hpux_search_dummy_call_sequence): Rewrite to avoid
563         assumption on sizeof(unsigned).
564
565         * inf-ttrace.c (inf_ttrace_wait): Comment out TARGET_WAITKIND_EXEC
566         code; return TARGET_WAITKIND_STOPPED instead.
567
568 2005-10-28  Mark Kettenis  <kettenis@gnu.org>
569
570         * ppc-tdep.h (PPC_INSN_SIZE): Define.
571
572         * inf-ttrace.c (inf_ttrace_mourn_inferior): Remove redundant cast.
573         (inf_ttrace_kill): Renamed from inf_ttrace_kill_inferior.
574         (inf_ttrace_target): Resort assignments.
575
576 2005-10-28  Nick Roberts  <nickrob@snap.net.nz>
577
578         * mi/gdb-mi.el: Sync with Emacs 22.0.50.
579
580 2005-10-25  Andreas Schwab  <schwab@suse.de>
581
582         * regformats/reg-ia64.dat: Remove NAT registers.
583
584 2005-10-20  Mark Kettenis  <kettenis@gnu.org>
585
586         * rs6000-tdep.c (info_powerpc_cmdlist): Remove variable.
587         (rs6000_info_powerpc_command): Remove function.
588
589 2005-10-21  Andreas Schwab  <schwab@suse.de>
590
591         * dwarf2read.c (isreg): Removed.
592         (decode_locdesc): Don't set it.
593
594 2005-10-20  Joel Brobecker  <brobecker@adacore.com>
595
596         * Makefile.in (YYFILES): Add ada-lex.c
597
598 2005-10-17  Jim Blandy  <jimb@redhat.com>
599
600         * dwarf2expr.c (dwarf_expr_fetch): Use correct comparison to
601         detect stack underflow.
602
603 2005-10-14  Paul Gilliam  <pgilliam@us.ibm.com>
604
605         * rs6000-tdep.c (rs6000_register_reggroup_p): Add vscr to test for
606         vector registers.
607
608 2005-10-13  Andreas Schwab  <schwab@suse.de>
609
610         * Makefile.in (linux-thread-db.o): Depend on $(gdbcore_h).
611
612         * linux-thread-db.c (enable_thread_event): Extend pointer value as
613         specified by target.
614         (thread_db_get_thread_local_address): Likewise.
615
616 2005-10-09  Joel Brobecker  <brobecker@adacore.com>
617
618         * i386-tdep.c (i386_reg_struct_return_p): Allow array types as well.
619         (i386_return_value): Add handling for functions that return array
620         types.
621
622 2005-10-09  Joel Brobecker  <brobecker@adacore.com>
623
624         * ada-valprint.c (print_optional_low_bound): Handle properly
625         cases where the array index type is a TYPE_CODE_RANGE.
626
627 2005-10-09  Joel Brobecker  <brobecker@adacore.com>
628
629         * valprint.c (val_print_array_elements): Check array size before
630         computing its low bound. If zero, then use a default bound of zero.
631
632 2005-10-06  Alan Modra  <amodra@bigpond.net.au>
633
634         PR 1659
635         * rs6000-tdep.c (rs6000_push_dummy_call): Correct size of
636         backchain write.
637         (rs6000_convert_from_func_ptr_addr): Correct comment.
638
639 2005-10-03  Joel Brobecker  <brobecker@adacore.com>
640
641         * MAINTAINERS: Add section for release management.
642
643 2005-10-03  Joel Brobecker  <brobecker@adacore.com>
644
645         * NEWS: Add entry for new "set print array-indexes" command.
646
647 2005-10-03  Joel Brobecker  <brobecker@adacore.com>
648
649         * language.h (language_defn): New field la_print_array_index.
650         (LA_PRINT_ARRAY_INDEX): New macro.
651         (default_print_array_index): Add declaration.
652         * language.c (default_print_array_index): new function.
653         (unknown_language): Add value for new field.
654         (auto_language): Likewise.
655         (local_language): Likewise.
656         * ada-lang.c (ada_print_array_index): New function.
657         (ada_language_defn): Add value for new field.
658         * c-lang.c (c_language_defn): Likewise.
659         (cpluc_language_defn): Likewise.
660         (asm_language_defn): Likewise.
661         (minimal_language_defn): Likewise.
662         * f-lang.c (f_language_defn): Likewise.
663         * jv-lang.c (java_language_defn): Likewise.
664         * m2-lang.c (m2_language_defn): Likewise.
665         * objc-lang.c (objc_language_defn): Likewise.
666         * p-lang.c (pascal_language_defn): Likewise.
667         * scm-lang.c (scm_language_defn): Likewise.
668         * valprint.h (print_array_indexes_p): Add declaration.
669         (get_array_low_bound): Add declaration.
670         (maybe_print_array_index): Add declaration.
671         * valprint.c (print_array_indexes): New static variable.
672         (show_print_array_indexes): New function.
673         (print_array_indexes_p): New function.
674         (get_array_low_bound): New function.
675         (maybe_print_array_index): New function.
676         (val_print_array_elements): Print the index of each element if
677         requested by the user.
678         (_initialize_valprint): Add new array-indexes "set/show print" command.
679         * ada-valprint.c (print_optional_low_bound): Replace extracted code
680         by call to ada_get_array_low_bound_and_type(). Stop printing the low
681         bound if indexes will be printed for all elements of the array.
682         (val_print_packed_array_elements): Print the index of each element
683         of the array if necessary.
684
685 2005-10-03  Joel Brobecker  <brobecker@adacore.com>
686
687         * hppa-tdep.c (read_unwind_info): Fix typo in comment.
688
689 2005-10-02  Daniel Jacobowitz  <dan@codesourcery.com>
690
691         * gdb_gcore.sh: Use a temporary file.  Use gdb from $PATH.
692
693 2005-09-29  Andreas Schwab  <schwab@suse.de>
694
695         PR threads/2015
696         * infrun.c (adjust_pc_after_break): Don't use the state from a
697         non-matching thread context.
698
699 2005-09-29  Daniel Jacobowitz  <dan@codesourcery.com>
700
701         * rs6000-tdep.c (rs6000_frame_cache): Handle misdetected frameless
702         functions.
703
704 2005-09-29  Nick Roberts  <nickrob@snap.net.nz>
705
706         * annotate.c (breakpoints_changed, annotate_frames_invalid)
707         (_initialize_annotate): Print breakpoints-invalid and
708         frames-invalid for level 2 annotations only.
709
710 2005-09-28  Daniel Jacobowitz  <dan@codesourcery.com>
711
712         * infrun.c (init_execution_control_state): Initialize
713         ecs->another_trap.
714
715 2005-09-28  Nick Roberts  <nickrob@snap.net.nz>
716
717         * Makefile.in (TAGS): Put DEPFILES back and add as a dependency.
718
719 2005-09-26  Nick Roberts  <nickrob@snap.net.nz>
720
721         * Makefile.in (HFILES_NO_SRCDIR): Remove minimon.h, symfile-mem.h.
722         (ALLDEPFILES) Correct typo amdfbsd-nat.c -> amd64fbsd-nat.c.
723         Remove irix4-nat.c, m3-nat.c, mipsm3-nat.c, ns32k-tdep.c
724         symm-tdep.c and symm-nat.c.
725         (TAGFILES_NO_SRCDIR): Add CONFIG_SRCS.
726         (DEPFILES): Remove CONFIG_OBS and include it explicitly where
727         needed.
728
729 2005-09-26  Jan Beulich  <jbeulich@novell.com>
730
731         * MAINTAINERS (Write After Approval): Add myself.
732
733 2005-09-26  Jan Beulich  <jbeulich@novell.com>
734
735         * amd64-tdep.h (AMD64_FCTRL_REGNUM, AMD64_FSTAT_REGNUM,
736         AMD64_MXCSR_REGNUM): New.
737         * amd64-tdep.c (amd64_dwarf_regmap): Add eflags, selector regs,
738         mxcsr, fp control and status words.
739         * i386-tdep.c (): Add selector regs, mxcsr, fp control and status
740         words.
741
742 2005-09-26  Paul Brook  <paul@codesourcery.com>
743
744         * arm-tdep.c (arm_type_align): New function.
745         (arm_push_dummy_call): Use it.  Ensure proper argument alignment.
746         (arm_extract_struct_value_address): Remove.
747         (arm_use_struct_convention): Rename...
748         (arm_return_in_memory): ... To this.  Return nonzero for all small
749         aggregates under the EABI.
750         (arm_return_value): New function.
751         (arm_gdbarch_init): Default for VFP float model for EABI binaries.
752         Use set_gdbarch_return_value instead of obsolete functions.
753
754 2005-09-21  Mark Kettenis  <kettenis@gnu.org>
755
756         * mips-tdep.c (n32n64_floatformat_always_valid): Use 'const void
757         *' for second argument instead of 'const char *'.
758
759 2005-09-20  Paul Gilliam  <pgilliam@us.ibm.com>
760
761         * gdb.arch/altivec-abi.exp: Elide the 'in' from what's expected
762          after a 'finish' command.
763
764 2005-09-20  Wu Zhou  <woodzltc@cn.ibm.com>
765
766         * c-exp.y (parse-number): Modify the float parsing logic to let it 
767         recognize a suffix.
768
769 2005-09-20  Wu Zhou  <woodzltc@cn.ibm.com>
770
771         * expression.h (enum exp_opcode): Fix a format error of a comment.
772  
773 2005-09-20  Wu Zhou  <woodzltc@cn.ibm.com>
774
775         * expression.h (enum exp_opcode): Add a new operator for F90
776         subrange.
777         * f-lang.h (enum f90_range_type): New enumeration type to identify
778         F90 subrange type.
779         * f-exp.y (yyparse): Add support for parsing F90 subrange and
780         change substring parsing to subrange parsing.
781         * parse.c (operator_length_standard): Set the operator length
782         and args number for OP_F90_RANGE.
783         * eval.c (evaluate_subexp_standard): Add code to evaluate F90
784         array section and substring.
785         (value_f90_subarray): New function to evaluate F90 array section.
786         (evaluate_subexp_standard): Delete label op_f77_substr and its code
787         because the logic is implemented by function value_f90_subarray now.
788
789 2005-09-19  Paul Gilliam  <pgilliam@us.ibm.com>
790
791         * rs6000-tdep.c (_initialize_rs6000_tdep): Get rid of the unused
792         'info powerpc' command prefix.
793
794 2005-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
795
796         * config/s390/nm-linux.h (KERNEL_U_SIZE): Remove.
797         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Likewise.
798         (s390_stopped_by_watchpoint, s390_insert_watchpoint,
799         s390_remove_watchpoint, TARGET_CAN_USE_HARDWARE_WATCHPOINT,
800         TARGET_REGION_OK_FOR_HW_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT,
801         STOPPED_BY_WATCHPOINT, target_insert_watchpoint,
802         target_remove_watchpoint): Likewise.
803         * s390-nat.c: Remove include of <sys/user.h>.
804         (kernel_u_size): Remove.
805         (s390_stopped_by_watchpoint): Make static.
806         (s390_insert_watchpoint, s390_remove_watchpoint): Likewise.
807         (s390_can_use_hw_breakpoint): New function.
808         (s390_region_size_ok_for_hw_watchpoint): Likewise.
809         (_initialize_s390_nat): Add watchpoint methods to target.
810
811 2005-09-10  Daniel Jacobowitz  <dan@codesourcery.com>
812             Ulrich Weigand  <uweigand@de.ibm.com>
813
814         * Makefile.in (ALLDEPFILES): Update.
815         (alpha-linux-nat.o, sparc-linux-nat.o): New rules.
816         (amd64-linux-nat.o, arm-linux-nat.o, hppa-linux-nat.o)
817         (i386-linux-nat.o, ia64-linux-nat.o, linux-nat.o, m32r-linux-nat.o)
818         (m68klinux-nat.o, mips-linux-nat.o, ppc-linux-nat.o, s390-nat.o)
819         (sparc64-linux-nat.o): Update dependencies.
820         * alpha-linux-nat.c, sparc-linux-nat.c: New files.
821         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Renamed
822         from fetch_inferior_registers and made static.
823         (amd64_linux_store_inferior_registers): Renamed from
824         store_inferior_registers and made static.
825         (amd64_linux_child_post_start_inferior): Renamed from
826         child_post_startup_inferior and made static.  Call
827         super_post_startup_inferior.
828         (super_post_startup_inferior): New.
829         (_initialize_amd64_linux_nat): Set it.  Call linux_target and
830         add_target.
831         * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Renamed
832         from fetch_inferior_registers and made static.
833         (arm_linux_store_inferior_registers): Renamed from
834         store_inferior_registers and made static.
835         (_initialize_arm_linux_nat): Add a prototype.  Use linux_target and
836         add_target.
837         * hppa-linux-nat.c (hppa_linux_fetch_inferior_registers): Renamed
838         from fetch_inferior_registers and made static.
839         (hppa_linux_store_inferior_registers): Renamed from
840         store_inferior_registers and made static.
841         (_initialize_hppa_linux_nat): New function.
842         * i386-linux-nat.c (i386_linux_fetch_inferior_registers): Renamed
843         from fetch_inferior_registers and made static.
844         (i386_linux_store_inferior_registers): Renamed from
845         store_inferior_registers and made static.
846         (i386_linux_resume): Renamed from child_resume and made static.
847         (i386_linux_child_post_start_inferior): Renamed from
848         child_post_startup_inferior and made static.  Call
849         super_post_startup_inferior.
850         (super_post_startup_inferior): New.
851         (_initialize_i386_linux_nat): New function.
852         * i386-nat.c: Remove LINUX_CHILD_POST_STARTUP_INFERIOR #ifndef.
853         * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): Remove.
854         (super_xfer_partial): New.
855         (ia64_linux_xfer_partial): New function.  Use it.
856         (_initialize_ia64_linux_nat): New function.
857         * ia64-tdep.c (getunwind_table): Revert 2005-06-08 change; use
858         target_read_partial and document the problem.
859         * inf-ptrace.c (inf_ptrace_fetch_register): Use
860         CANNOT_FETCH_REGISTER.  Fix some comments.
861         (inf_ptrace_store_register): Use CANNOT_STORE_REGISTER.  Fix some
862         comments.
863         * linux-nat.c: Include "inf-ptrace.h" and "auxv.h".
864         (linux_ops, super_xfer_partial): New variables.
865         (linux_child_post_startup_inferior): Make static.
866         (child_post_startup_inferior): Delete.
867         (linux_nat_attach, linux_nat_detach, resume_callback)
868         (linux_nat_resume, linux_nat_wait, linux_nat_create_inferior)
869         (linux_nat_mourn_inferior): Use linux_ops instead of
870         deprecated_child_ops.
871         (child_wait): Do not depend on CHILD_WAIT.
872         (linux_nat_xfer_memory): Remove, replace by ...
873         (linux_nat_xfer_partial): ... this.  Use linux_ops->to_xfer_partial
874         instead of linux_proc_xfer_memory and child_xfer_memory.
875         (linux_nat_fetch_registers, linux_nat_store_registers)
876         (linux_nat_child_post_startup_inferior): New functions.
877         (init_linux_nat_ops): Use the new functions.
878         (linux_proc_xfer_memory): Remove, replace by ...
879         (linux_proc_xfer_partial): ... this.  Make static.
880         (linux_xfer_partial, linux_register_u_offset, linux_target): New
881         functions.
882         (_initialize_linux_nat): Do not modify deprecated_child_ops.
883         * linux-nat.h (linux_proc_xfer_memory): Remove prototype.
884         (struct mem_attrib, struct target_ops): Remove forward declarations.
885         (linux_child_post_startup_inferior): Remove prototype.
886         (linux_target): Add prototype.
887         * linux-thread-db.c (thread_db_xfer_memory): Remove, replace by ...
888         (thread_db_xfer_partial): ... this.
889         (init_thread_db_ops): Set to_xfer_partial instead of
890         deprecated_xfer_memory.
891         * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers): Renamed
892         from fetch_inferior_registers and made static.
893         (m32r_linux_store_inferior_registers): Renamed from
894         store_inferior_registers and made static.
895         (_initialize_m32r_linux_nat): New function.
896         * m68klinux-nat.c (m68k_linux_fetch_inferior_registers): Renamed
897         from fetch_inferior_registers and made static.
898         (m68k_linux_store_inferior_registers): Renamed from
899         store_inferior_registers and made static.
900         (old_fetch_inferior_registers, old_store_inferior_registers): Made
901         static.
902         (_initialize_m68k_linux_nat): Use linux_target and add_target.
903         * mips-linux-nat.c (_initialize_mips_linux_nat): New function.
904         * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers): Renamed
905         from fetch_inferior_registers and made static.
906         (ppc_linux_store_inferior_registers): Renamed from
907         store_inferior_registers and made static.
908         (_initialize_ppc_linux_nat): New function.
909         * s390-nat.c (s390_linux_fetch_inferior_registers): Renamed
910         from fetch_inferior_registers and made static.
911         (s390_linux_store_inferior_registers): Renamed from
912         store_inferior_registers and made static.
913         (_initialize_s390_nat): New function.
914         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
915         linux_target and add_target.
916         * config/nm-linux.h: Don't include "auxv.h".
917         (struct target_waitstatus, child_wait, CHILD_WAIT)
918         (CHILD_PID_TO_EXEC_FILE, CHILD_INSERT_FORK_CATCHPOINT)
919         (CHILD_INSERT_VFORK_CATCHPOINT, CHILD_INSERT_EXEC_CATCHPOINT)
920         (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH, CHILD_FOLLOW_FORK)
921         (DEPRECATED_KILL_INFERIOR, NATIVE_XFER_AUXV): Delete.
922         * config/alpha/alpha-linux.mh (NATDEPFILES): Replace infptrace.o
923         and inftarg.o with inf-ptrace.o and alpha-linux-nat.o.
924         * config/sparc/linux.mh (NATDEPFILES): Replace infptrace.o and
925         inftarg.o with sparc-linux-nat.o.
926         * config/sparc/linux64.mh (NATDEPFILES): Remove infptrace.o and
927         inftarg.o.
928         * config/arm/linux.mh (NATDEPFILES): Replace infptrace.o and
929         inftarg.o with inf-ptrace.o.
930         * config/i386/linux.mh (NATDEPFILES): Likewise.
931         * config/i386/linux64.mh (NATDEPFILES): Likewise.
932         * config/ia64/linux.mh (NATDEPFILES): Likewise.
933         * config/m32r/linux.mh (NATDEPFILES): Likewise.
934         * config/m68k/linux.mh (NATDEPFILES): Likewise.
935         * config/mips/linux.mh (NATDEPFILES): Likewise.
936         * config/pa/linux.mh (NATDEPFILES): Likewise.
937         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
938         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
939         * config/s390/s390.mh (NATDEPFILES): Likewise.
940         * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Don't define.
941         (LINUX_CHILD_POST_STARTUP_INFERIOR): Don't define.
942         * config/i386/nm-linux64.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
943         Don't define.
944         * config/ia64/nm-linux.h: Don't include "target.h".
945         (NATIVE_XFER_UNWIND_TABLE, ia64_linux_xfer_unwind_table): Remove.
946         * config/djgpp/fnchange.lst: Add alpha-linux-tdep.c,
947         alpha-linux-nat.c, sparc-linux-tdep.c, and sparc-linux-nat.c.
948
949 2005-09-08  Kevin Buettner  <kevinb@redhat.com>
950
951         From Kevin Buettner, Andrew Cagney, Jackie Smith Cashion, and
952         Alexandre Oliva:
953         * mn10300-tdep.c (am33_2_register_name): New function.
954         (my_frame_is_in_sp, my_frame_is_in_fp, my_frame_is_last)
955         (set_my_stack_size): Delete.
956         (set_movm_offsets, set_reg_offsets): Rename the former to the
957         latter.  Update for handling am33.
958         (mn10300_analyze_prologue): Update for handling am33.  Also, make
959         minor improvements in quality of prologue analysis.
960         (mn10300_gdbarch_init):  Add am33 support.
961         * mn10300-tdep.h (E_NUM_REGS): Delete.
962
963 2005-09-06  Kevin Buettner  <kevinb@redhat.com>
964
965         * mn10300-linux-tdep.c (mn10300_linux_svr4_fetch_link_map_offsets):
966         Delete.
967         (am33_linux_init_osabi): Register svr4_ilp32_fetch_link_map_offsets
968         instead.
969
970 2005-09-06  Kevin Buettner  <kevinb@redhat.com>
971
972         * mn10300-linux-tdep.c (solib-svr4.h): Include.
973         (mn10300_linux_svr4_fetch_link_map_offsets): New function.
974         (am33_linux_init_osabi): Register it.
975         * Makefile.in (mn10300-linux-tdep.o): Update dependencies.
976
977 2005-09-06  Kevin Buettner  <kevinb@redhat.com>
978
979         * mn10300-tdep.c (mn10300_analyze_prologue): Delete code disabled
980         via "#if 0".
981
982 2005-09-06  Kevin Buettner  <kevinb@redhat.com>
983
984         * mn10300-tdep.c (mn10300_analyze_prologue): Use
985         safe_frame_unwind_memory() in place of deprecated_read_memory_nobpt().
986
987 2005-09-04  Daniel Jacobowitz  <dan@codesourcery.com>
988
989         * inf-child.c (inf_child_follow_fork): Add OPS argument.
990         * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
991         * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
992         * inftarg.c (child_follow_fork): Likewise.
993         * linux-nat.c (child_follow_fork): Likewise.  Use ops instead of
994         &deprecated_child_ops.
995         * target.c (update_current_target): Do not inherit to_follow_fork.
996         (target_follow_fork): New function.
997         (debug_to_follow_fork): Remove.
998         (setup_target_debug): Don't set to_follow_fork.
999         * target.h (struct target_ops): Add struct target_ops * to
1000         to_follow_fork.
1001         (child_follow_fork): Add struct target_ops * argument.
1002         (target_follow_fork): Replace macro with prototype.
1003
1004 2005-09-02  Kevin Buettner  <kevinb@redhat.com>
1005
1006         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Use ARRAY_SIZE.
1007         Change internal error to warning.  Add i18n markup to warning
1008         string.
1009         
1010 2005-09-02  Kevin Buettner  <kevinb@redhat.com>
1011
1012         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): New function.
1013         (mn10300_gdbarch_init): Register mn10300_dwarf2_reg_to_regnum().
1014
1015 2005-09-02  Kevin Buettner  <kevinb@redhat.com>
1016
1017         * mn10300-tdep.c (is_my_frame_in_sp, is_my_frame_in_fp)
1018         (is_my_frame_last): Delete these unused functions.
1019
1020 2005-09-02  Kevin Buettner  <kevinb@redhat.com>
1021
1022         * mn10300-tdep.c (mn10300_frame_prev_register): Change type of
1023         ``bufferp'' from ``void *'' to ``gdb_byte *''.
1024
1025 2005-09-02  Kevin Buettner  <kevinb@redhat.com>
1026
1027         * mn10300-tdep.c (mn10300_use_struct_convention): Delete parameter
1028         ``gcc_p''.  Adjust all callers.
1029         (mn10300_store_return_value, mn10300_extract_return_value): Add new
1030         parameter ``gdbarch''.
1031         (mn10300_return_value): New function.
1032         (mn10300_gdbarch_init): Delete old-style return value code calls.
1033         Add call to set_gdbarch_return_value().
1034
1035 2005-09-02  Kevin Buettner  <kevinb@redhat.com>
1036         
1037         * mn10300-tdep.c (regcache.h): Delete duplicate include.
1038         * Makefile.in (mn10300-tdep.o): Update dependencies.
1039
1040 2005-09-02  Kevin Buettner  <kevinb@redhat.com>
1041
1042         * mn10300-tdep.c (osabi.h): Include.
1043         (mn10300_gdbarch_init): Invoke gdbarch_init_osabi().
1044         * Makefile.in (mn10300-tdep.o): Update dependencies.
1045
1046 2005-09-02  Michael Snyder  <msnyder@redhat.com>
1047             Kevin Buettner  <kevinb@redhat.com>
1048
1049         * mn10300-linux-tdep.c: New file.
1050         * Makefile.in (mn10300-linux-tdep.o): New Makefile target.
1051         * config/mn10300/linux.mt (TDEPFILES): Add mn10300-linux-tdep.o and
1052         corelow.o.
1053         * mn10300-tdep.h (E_E8_REGNUM, E_E9_REGNUM, E_E10_REGNUM)
1054         (E_FPCR_REGNUM, E_FS0_REGNUM): New constants.
1055
1056 2005-09-02  Mark Kettenis  <kettenis@gnu.org>
1057
1058         * infcall.c (call_function_by_hand): Remove code handling
1059         deprecated_push_arguments.  Bail out early if push_dummy_call
1060         isn't available.
1061         * gdbarch.sh (deprecated_push_arguments): Delete.  Adjust a few
1062         comments accordingly.
1063         * gdbarch.h, gdbarch.c: Regenerate.
1064
1065 2005-09-01  Paul Gilliam  <pgilliam@us.ibm.com>
1066
1067         * ppc-tdep.h (struct gdbarch_tdep): Better explanation of using
1068         -1 for nonexistant registers.
1069         * rs6000-tdep.c (rs6000_register_reggroup_p): Don't assume that
1070         tdep->ppc_vr0_regnum and tdep->ppc_ev0_regnum are not -1.
1071
1072 2005-09-01  Richard Earnshaw  <richard.earnshaw@arm.com>
1073
1074         * arm-linux-tdep.c (arm_linux_push_arguments): Delete.
1075         (arm_linux_init_abi): Don't register it.
1076
1077 2005-08-31  Mark Kettenis  <kettenis@gnu.org>
1078
1079         * symfile.c (symbol_file_command, set_initial_language)
1080         (symfile_bfd_open, get_section_index, add_symtab_fns)
1081         (find_sym_fns): Reformat code and comments.  Tweak comments.
1082
1083         * m68k-tdep.c (m68k_register_name): Use ARRAY_SIZE.
1084
1085 2005-08-31  Jim Wilson  <wilson@specifix.com>
1086
1087         * i386fbsd-tdep.c (i386fbsd_sc_reg_offset): Make it non-static.
1088
1089 2005-08-29  Mark Kettenis  <kettenis@gnu.org>
1090
1091         * environ.c (unset_in_environ): Use strncmp instead of
1092         DEPRECATED_STREQN.
1093         * exec.c (exec_file_attach): Remove DEPRECATED_HPUX_TEXT_END.
1094         * language.c (set_case_command, language_enum): Use strcmp instead
1095         of DEPRECATED_STREQ.
1096         * source.c (select_source_symtab): Sprinkle a few consts.  Use
1097         strcmp instead of DEPRECATED_STREQ.
1098
1099         * solib-svr4.c (svr4_current_sos, svr4_fetch_objfile_link_map):
1100         Use XZALLOC and xzalloc instead of xmalloc where appropriate.
1101
1102 2005-08-27  Eli Zaretskii  <eliz@gnu.org>
1103
1104         * main.c (print_gdb_help): Don't advertise the (long non-existent)
1105         option --mapped.
1106
1107 2005-08-21  Mark Kettenis  <kettenis@gnu.org>
1108
1109         * doublest.c (floatformat_mantissa): Use xsnprintf instead of
1110         sprintf.
1111
1112         * vaxobsd-tdep.c: New file.
1113         * config/vax/obsd.mt (TDEPFILES): Add vaxobsd-tdep.o.
1114         * Makefile.in (vaxobsd-tdep.o): New dependency.
1115
1116         * ppcobsd-tdep.c: Include "frame.h" and "frame-unwind.h".  Don't
1117         include "tramp-frame.h".
1118         (ppcobsd_sigtramp_cache_init): Remove function.
1119         (ppcobsd_sigtramp): Remove variable.
1120         (ppcobsd_page_size, ppcobsd_sigreturn_offset): New variables.
1121         (ppcobsd_sigtramp_p): New function.
1122         (ppcobsd_sigtramp_frame_cache, ppcobsd_sigtramp_frame_this_id)
1123         (ppcobsd_sigtramp_frame_prev_register): New functions.
1124         (ppcobsd_sigtramp_frame_unwind): New variable.
1125         (ppcobsd_sigtramp_frame_sniffer): New function.
1126         (ppcobsd_init_abi): Adjust to register new sigtramp sniffer
1127         instead of the old one.
1128         * Makefile.in (ppcobsd-tdep.o): Update dependencies.
1129
1130         * infcall.c (call_function_by_hand): For
1131         RETURN_VALUE_ABI_RETURNS_ADDRESS and
1132         RETURN_VALUE_ABI_PRESERVES_ADDRESS, use gdbarch_return_value to
1133         get return value.
1134
1135         * valarith.c (value_equal, value_less): Avoid compiler bug on
1136         systems where `long double' values are returned in static storage.
1137
1138 2005-08-18  Mark Kettenis  <kettenis@gnu.org>
1139
1140         * stack.c: Reformat.  Improve comments.  Include "valprint.h".
1141         (args_info, locals_info, backtrace_command, backtrace_command_1)
1142         (backtrace_full_command, frame_info, frame_command, down_command)
1143         (down_silently_base, down_silently_command, up_command)
1144         (up_silently_base, up_silently_command, parse_frame_specification)
1145         (current_frame_command, print_frame_args_vars, catch_info)
1146         (args_plus_locals_info), print_frame_label_vars)
1147         (print_block_frame_labels, print_block_frame_locals)
1148         (func_command): Remove prototypes.
1149         (print_stack_frame, backtrace_command_stub, backtrace_command,
1150         backtrace_full_command, print_frame_args, print_frame_arg_vars,
1151         print_args_stub, func_command): Remove redundant casts.
1152         (addressprint): Remove extern declaration.
1153         (frame_command): Make static.
1154         (struct print_stack_frame_args, struct print_args_args): Rename
1155         `fi' member to `frame'.
1156         (print_stack_frame, print_frame_nameless_args, print_frame_args)
1157         (set_current_sal_from_frame, print_frame_info, print_frame)
1158         (show_stack_frame, print_block_frame_locals)
1159         (print_frame_local_vars, print_frame_label_vars)
1160         (print_frame_arg_vars, select_and_print_frame): Rename `fi'
1161         argument to `frame'.
1162         (func_command): Rename `fp' variable to `frame'.
1163         (get_language): Restructure.
1164         * Makefile.in (stack.o): Update dependencies.
1165
1166 2005-08-17  Kevin Buettner  <kevinb@redhat.com>
1167
1168         * NEWS (ms1-elf): New target.
1169
1170 2005-08-17  Mark Kettenis  <kettenis@gnu.org>
1171
1172         * m68k-tdep.c (m68k_return_value): Properly return contents of
1173         structures passed in memory.
1174
1175         * infcmd.c (print_return_value): Move CHECK_TYPEDEF up.  Deal with
1176         RETURN_VALUE_ABI_PRESERVED_ADDRESS.
1177
1178         * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Fix the code that
1179         deals with the broken GCC convention.
1180         
1181 2005-08-16  Mark Kettenis  <kettenis@gnu.org>
1182
1183         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Set condition
1184         register appropriately for varargs functions.
1185
1186 2005-08-15  Kevin Buettner  <kevinb@redhat.com>
1187
1188         * MAINTAINERS (ms1): New target ISA entry.  List myself as
1189         maintainer.
1190
1191 2005-08-15  Michael Snyder  <msnyder@redhat.com>
1192             Kevin Buettner  <kevinb@redhat.com>
1193
1194         * Makefile.in (ms1-tdep.o): Add dependencies.
1195         * configure.tgt: Add ms1-*-* target.
1196         * ms1-tdep.c: New file.
1197         * config/ms1/ms1.mt: New file.
1198
1199 2005-08-15  Mark Kettenis  <kettenis@gnu.org>
1200
1201         * Makefile.in (m68kbsd-tdep.o): Ad missing space.
1202
1203 2005-08-15  Ulrich Weigand  <uweigand@de.ibm.com>
1204
1205         * s390-tdep.c (op1_lgfi, op2_lgfi, op1_agfi, op2_agfi,
1206         op1_afi, op2_afi, op1_algfi, op2_algfi, op1_alfi, op2_alfi,
1207         op1_slgfi, op2_slgfi, op1_slfi, op2_slfi): New opcode enums.
1208         (s390_analyze_prologue): Recognize new z9-109 instructions.
1209
1210 2005-08-14  Mark Kettenis  <kettenis@gnu.org>
1211
1212         * solib-som.c (som_current_sos): Cast to 'gdb_byte *' where
1213         appropriate.
1214
1215         * inf-ptrace.c (inf_ptrace_him) [PT_GET_PROCESS_STATE]: Move
1216         code...
1217         (inf_ptrace_post_startup_inferior): ...here.  New function.
1218         (inf_ptrace_attach) [PT_GET_PROCESS_STATE]: Move code...
1219         (inf_ptrace_post_attach): ...here.
1220         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Set
1221         to_post_startup_inferior and to_post_attch.
1222
1223         * sparc-tdep.c (sparc_breakpoint_from_pc): Constify break_insn.
1224
1225         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Check for
1226         "__sighndlr".
1227
1228 2005-08-13  Mark Kettenis  <kettenis@gnu.org>
1229
1230         * i386-linux-nat.c (fetch_register, store_register) 
1231         (supply_gregset, fill_gregset): Remove redundant casts.
1232
1233 2005-08-12  Kris Warkentin  <kewarken@qnx.com>
1234
1235         * i386-nto-tdep.c (i386nto_init_abi): Don't set gdbarch skip
1236         trampoline code hook.
1237         * nto-procfs.c (procfs_post_attach): Call solib_create_inferior_hook
1238         instead of  SOLIB_CREATE_INFERIOR_HOOK.
1239         (procfs_create_inferior): Ditto.
1240         * config/tm-nto.h: Don't define SKIP_TRAMPOLINE_CODE.
1241
1242 2005-08-11  Andreas Schwab  <schwab@suse.de>
1243
1244         PR exp/1978
1245         * valarith.c (value_binop): Fix result type for the shift
1246         operators.
1247
1248 2005-08-09  Mark Kettenis  <kettenis@gnu.org>
1249
1250         * sparc64obsd-tdep.c: Tweak comments.
1251         (sparc64obsd_sigreturn_offset): Add offset for new OpenBSD 3.8
1252         signal trampoline.
1253
1254 2005-08-09  Andrew Cagney  <cagney@gnu.org>
1255
1256         * linux-nat.h (linux_proc_xfer_memory): Change type of "myaddr" a
1257         "gdb_byte" pointer.
1258         * linux-nat.c (linux_proc_xfer_memory): Update.
1259         (get_signo): Cast signo to a "gdb_byte" pointer.
1260         * i386-linux-nat.c (child_resume): Make "buf" a gdb_byte, delete
1261         redundant casts.
1262         (child_resume): Cast eflags to a "gdb_byte" pointer.
1263
1264 2005-08-08  Mark Kettenis  <kettenis@gnu.org>
1265
1266         * tramp-frame.h (struct tramp_frame): Allow for 16 instructions
1267         instead of 8.
1268         * m68kbsd-tdep.c: Include "frame.h", "trad-frame.h" and
1269         "tramp-frame.h".
1270         (m68kobsd_sigtramp_cache_init): New function.
1271         (m68kbsd_aout_init_abi): Prepend m68kobsd_sigtramp unwinder.
1272
1273 2005-08-02  Fred Fish  <fnf@specifix.com>
1274
1275         * defs.h (parse_frame_specification): Remove prototype.
1276         * stack.c (parse_frame_specification): Add prototype and
1277         make function static.
1278         (frame_info): Move common code outside if..then..else.
1279
1280 2005-08-01  Daniel Jacobowitz  <dan@codesourcery.com>
1281
1282         * value.c (value_contents_writeable): Use value_contents_raw.
1283
1284 2005-08-01  Daniel Jacobowitz  <dan@codesourcery.com>
1285
1286         Suggested by Shaun Jackman <sjackman@gmail.com>:
1287         * defs.h (print_transfer_performance): Update prototype.
1288         * m32r-rom.c (m32r_load, m32r_upload_command): Use gettimeofday
1289         for print_transfer_performance.
1290         * remote-m32r-sdi.c (m32r_load): Likewise.
1291         * symfile.c (generic_load): Likewise.
1292         (report_transfer_performance): Create a dummy struct timeval.
1293         (print_transfer_performance): Use a more accurate measure
1294         of performance.
1295
1296 2005-08-01  Fred Fish  <fnf@specifix.com>
1297
1298         * stack.c (parse_frame_specification_1): Remove use of obsolete
1299         SETUP_ARBITRARY_FRAME macro.
1300
1301 2005-08-01  Daniel Jacobowitz  <dan@codesourcery.com>
1302
1303         * dwarf2-frame.c (read_signed_leb128): Handle values that do not
1304         fit in 32 bits.
1305         * dwarf2read.c (read_signed_leb128): Likewise.
1306
1307 2005-07-31  Daniel Jacobowitz  <dan@codesourcery.com>
1308
1309         From Josef Ezra <jezra@emc.com>:
1310         * tracepoint.c (stringify_collection_list): Correct pointer
1311         arithmetic.
1312
1313 2005-07-31  Daniel Jacobowitz  <dan@codesourcery.com>
1314
1315         Suggested by Vladimir Prus <ghost@cs.msu.su>:
1316         * infrun.c (handle_inferior_event): Check for line information in
1317         undebuggable functions.
1318
1319 2005-07-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1320
1321         * cli-out.c (cli_field_fmt, cli_message, out_field_fmt): Add
1322         ATTR_FORMAT or ATTRIBUTE_FPTR_PRINTF.
1323         * complaints.c (vcomplaint): Likewise.
1324         * defs.h (xvasprintf, xstrvprintf, verror, vfatal)
1325         (internal_verror, internal_vwarning, vwarning)
1326         (deprecated_query_hook, deprecated_warning_hook)
1327         (deprecated_readline_begin_hook): Likewise.
1328         * disasm.c (fprintf_disasm): Likewise.
1329         * exceptions.c (throw_it): Likewise.
1330         * exceptions.h (throw_verror, throw_vfatal): Likewise.
1331         * mi/mi-interp.c (mi_interp_query_hook): Likewise.
1332         * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
1333         * tui/tui-hooks.c (tui_query_hook): Likewise.
1334         * tui/tui-out.c (tui_field_fmt, tui_message, out_field_fmt):
1335         Likewise.
1336         * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
1337         (uo_message): Likewise.
1338         * ui-out.h (ui_out_field_fmt, ui_out_message, field_fmt_ftype)
1339         (message_ftype): Likewise.
1340         * utils.c (vfprintf_maybe_filtered, internal_vproblem)
1341         (defaulted_query, printchar): Likewise.
1342         
1343 2005-07-26  Mark Kettenis  <kettenis@gnu.org>
1344
1345         * i386obsd-tdep.c (i386obsd_sigreturn_offset): New variable.
1346         (i386obsd_sigtramp_p): Deal with an arbitrary number of possible
1347         offsets.
1348         (i386obsd_aout_supply_regset): Avoid bogus cast.
1349
1350 2005-07-25  Mark Kettenis  <kettenis@gnu.org>
1351
1352         * inf-ptrace.c [PT_GET_PROCESS_STATE] (inf_ptrace_follow_fork):
1353         New function.
1354         (inf_ptrace_him, inf_ptrace_attach) [PT_GET_PROCESS_STATE]: Set
1355         PTRACE_FORK event flag.
1356         (inf_ptrace_wait) [PT_GET_PROCESS_STATE]: Handle PTRACE_FORK
1357         event.
1358         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Set to_follow_fork.
1359
1360 2005-07-25  Mark Kettenis  <kettenis@gnu.org>
1361
1362         * gdb_ptrace.h (PT_TRACE_ME): Define to zero if not already
1363         defined.
1364         * inf-ptrace.c: Tweak comments.
1365         (inf_ptrace_me): Use PT_TRACE_ME instead of hardcoded zero.
1366         (inf_ptrace_mourn_inferior): Call waitpid.
1367         (inf_ptrace_attach): Use pid_t, Remove unnecessary cast.
1368         (inf_ptrace_detach): Use pid_t.  Use ptid_get_pid instead of
1369         PIDGET.
1370         (inf_ptrace_kill): Rename from inf_ptrace_kill_inferior.  Use
1371         pid_t.  Use ptid_get_pid instead of PIDGET.
1372         (inf_ptrace_kill): Call waitpid instead of wait.
1373         (inf_ptrace_resume): Use pid_t.  Use ptid_get_pid instead of
1374         PIDGET.
1375         (inf_ptrace_wait): Use waitpid instead wait.  Use pid_t.  Don't
1376         call target_has_exited or target_thread_alive.  Properly ignore
1377         terminated detached child processes.
1378         (inf_ptrace_has_exited): Remove function.
1379         (inf_ptrace_xfer_partial): Use pid_t.  Use ptid_get_pid instead of
1380         PIDGET.  Use gdb_byte instead of `unsigned char'.
1381         (inf_ptrace_thread_alive): Use ptid_get_pid instead of PIDGET.
1382         (inf_ptrace_pid_to_str): Remove function.
1383         (inf_ptrace_target): Use inf_ptrace_kill instead of
1384         inf_ptrace_kill_inferior.  Use normal_pid_to_str instead of
1385         inf_ptrace_pid_to_str.  Don't set to_has_exited.
1386         (inf_ptrace_fetch_register, inf_ptrace_store_register): Reformat
1387         long lines.
1388
1389 2005-07-25  Mark Kettenis  <kettenis@gnu.org>
1390
1391         * inf-ptrace.c: Reorder functions.
1392         (inf_ptrace_open, inf_ptrace_reported_exec_events_per_call)
1393         (inf_ptrace_can_run, inf_ptrace_post_attach): Removed.
1394         (inf_ptrace_target): Don't set to_open,
1395         to_reported_exec_events_per_call, to_can_run, to_post_attach,
1396         to_stratum, to_has_all_memory, to_has_memory, to_has_stack,
1397         to_has_registers, to_has_execution, to_magic.  Reorder remaining
1398         initializations.
1399
1400 2005-07-25  Mark Mitchell  <mark@codesourcery.com>
1401
1402         * configure.ac: On MinGW, do not require a termcap library, and
1403         use win32-termcap.c.
1404         * configure: Regenerated.
1405         * win32-termcap.c: New file.
1406
1407 2005-07-24  Mark Mitchell  <mark@codesourcery.com>
1408
1409         * ser-tcp.c (close): Define as a function-like macro on MinGW.
1410
1411 2005-07-21  Eric Christopher  <echristo@apple.com>
1412
1413         * MAINTAINERS (Misc): Update affiliation.
1414
1415 2005-07-21  Mark Kettenis  <kettenis@gnu.org>
1416
1417         * inf-ttrace.c (inf_ttrace_wait): Properly report TTEVT_EXEC
1418         events as TARGET_WAITKIND_EXECD.
1419         (inf_ttrace_detach): Reorder local variables.
1420
1421 2005-07-20  Mark Kettenis  <kettenis@gnu.org>
1422
1423         * inf-ttrace.c (inf_ttrace_vfork_ppid): New variable.
1424         (inf_ttrace_follow_fork): New function.
1425         (inf_ttrace_him, inf_ttrace_attach): Ask for TTEVT_FORK and
1426         TTEVT_VFORK events.  Replace TTEO_NOSTRCHLD option with
1427         TTEO_PROC_INHERIT.
1428         (inf_ttrace_create_inferior, inf_ttrace_attach): Add checks for
1429         inf_ttrace_vfork_ppid.
1430         (inf_ttrace_kill_inferior, inf_ttrace_detach): Detach from waiting
1431         parent if appropriate.
1432         (inf_ttrace_wait): Handle TTEVT_FORK and TTEVT_VFORK.
1433         (inf_ttrace_target): Set to_follow_fork.
1434
1435 2005-07-20  Wu Zhou  <woodzltc@cn.ibm.com>
1436
1437         * remote.c (remote_pid_to_str): Use xsnprintf instead of snprintf.
1438
1439 2005-07-18  Mark Kettenis  <kettenis@gnu.org>
1440
1441         * target.c (normal_pid_to_str): Use xsnprintf instead of snprintf.
1442         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
1443         * inf-ttrace.c (inf_ttrace_pid_to_str): Likewise.
1444
1445         * hppa-tdep.h (hppa_frame_prev_register_helper): Change types of
1446         last argument to `gdb_byte *'.
1447         * hppa-tdep.c (hppa32_convert_from_func_ptr_addr): Rewrite.
1448         (hppa_frame_prev_register_helper): Change types of last argument
1449         to `gdb_byte *'.
1450         * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_prev_register):
1451         Change types of last argument to `gdb_byte *'.
1452
1453 2005-07-18  Mark Kettenis  <kettenis@gnu.org>
1454             Jason Molenda  <jmolenda@apple.com>
1455
1456         * i386-tdep.c (i386_match_insn): Match complete instruction
1457         pattern.
1458
1459 2005-07-18  Mark Kettenis  <kettenis@gnu.org>
1460
1461         * i386-tdep.c (i386_reg_struct_return_p): Handle structures with a
1462         single 'long double' member correctly.
1463         (i386_return_value): Tweak comment.
1464
1465 2005-07-16  Nick Roberts  <nickrob@snap.net.nz>
1466
1467         * mi/gdb-mi.el:  Update for changes in Emacs 22.0.50.  Bring more
1468         features over from gdb-ui.el.  Use "-var-update --all-values" for
1469         faster re-display of watch expressions.
1470
1471 2005-07-15  Mark Kettenis  <kettenis@gnu.org>
1472             Marcel Moolenaar  <marcel@xcllnt.net>
1473
1474         * sparc64fbsd-nat.c: Include "regcache.h", <sys/types.h>,
1475         <machine/pcb.h> and "bsd-kvm.h".
1476         (sparc64fbsd_kvm_supply_pcb): New function.
1477         (_initialize_sparc64fbsd_nat): Enable libkvm interface.
1478         * config/sparc/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1479         (LOADLIBES): New variable.
1480         * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
1481
1482 2005-07-15  Nick Roberts  <nickrob@snap.net.nz>
1483             Daniel Jacobowitz  <dan@codesourcery.com>
1484
1485         * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values): New
1486         declarations.
1487         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Use string
1488         constants instead of literals for MI command options.
1489         * mi/mi-cmd-var.c (mi_no_values, mi_simple_values, mi_all_values):
1490         New variables.
1491         (mi_parse_values_option, mi_print_value_p): New functions.
1492         (mi_cmd_var_list_children): Use mi_parse_values_option and
1493         mi_print_value_p.
1494         (mi_cmd_var_update): Support a PRINT_VALUES option.  Update calls
1495         to varobj_update_one.
1496         (varobj_update_one): Take a print_values argument.  Call
1497         mi_print_value_p.
1498         * varobj.c (varobj_get_gdb_type): New function.
1499         * varobj.h (varobj_get_gdb_type): New prototype.
1500
1501 2005-07-13  Daniel Jacobowitz  <dan@codesourcery.com>
1502
1503         * ppc-linux-tdep.c (ppc_linux_init_abi): Set 64-bit link map offsets.
1504
1505 2005-07-12  Mark Kettenis  <kettenis@gnu.org>
1506
1507         * dwarf2expr.h: Tweak comment.
1508         (struct dwarf_expr_context): Use `gdb_byte *' in read_mem and
1509         get_frame_base function pointers.
1510         (read_uleb128, read_sleb128): Change return type and types of
1511         first two arguments to `gdb_byte *'.
1512         (dwarf2_read_address): Change types of first two arguments to
1513         `gdb_byte *'.
1514         * dwarf2expr.c: Tweak comment.
1515         (dwarf_expr_eval): Change type of second argument to `gdb_byte *'.
1516         (read_uleb128, read_sleb128): Change return type and types of
1517         first two arguments to `gdb_byte *'.
1518         (dwarf2_read_address): Change types of first two arguments to
1519         `gdb_byte *'.
1520         (execute_stack_op): Change types of last two arguments to
1521         `gdb_byte *'.  Use `gdb_byte *' for byte buffers.
1522         * dwarf2loc.h: Tweak comment.
1523         (struct dwarf2_locexpr_baton, struct dwarf2_loclist_baton): Use
1524         `gdb_byte *' for byte buffers.
1525         * dwarf2loc.c (find_location_expression): Change return type to
1526         `gdb_byte *'.  Use `gdb_byte *' for byte buffers.  Change length
1527         to `unsigned int'.
1528         (dwarf_expr_read_reg): Use `gdb_byte *' for byte buffer.  Remove
1529         bogus cast.
1530         (dwarf_expr_read_mem): Change type of second argument to
1531         `gdb_byte *'.
1532         (dwarf_expr_frame_base): Change type of second argument to
1533         `gdb_byte **'.
1534         (dwarf2_evaluate_loc_desc): Change type of third argument to
1535         `gdb_byte *'.
1536         (needs_frame_read_mem): Change type of second argument to
1537         `gdb_byte *'.
1538         (needs_frame_frame_base): Change type of second argument
1539         `gdb_byte **'.  Use gdb_byte for lit0.
1540         (dwarf2_tracepoint_var_ref): Change type of fourth argument to
1541         `gdb_byte *'.  Use `gdb_byte *' for byte buffer.
1542         (loclist_read_variable, loclist_tracepoint_var_ref): Use `gdb_byte
1543         *' for byte buffer.
1544         * dwarf2-frame.c (struct dwarf2_cie, struct dwarf2_fde)
1545         (struct dwarf2_frame_state): Use gdb_byte instead of `unsigned
1546         char'.
1547         (read_reg): Use `gdb_byte *' for byte buffers.  Remove redundant
1548         cast.
1549         (read_mem): Change second argument to `gdb_byte *'.
1550         (no_get_frame_base): Change second argument to `gdb_byte **'.
1551         (execute_stack_op): Change first argument to `gdb_byte *'.
1552         (execute_cfa_program): Change first two arguments to `gdb_byte *'.
1553         Use gdb_byte instead of `unsigned int'.  Use temprorary variable
1554         to store result of read_uleb128.
1555         (struct comp_unit): Use `gdb_byte *' for byte buffers.
1556         (read_1_byte, read_4_bytes, read_8_bytes): Change last argument to
1557         `gdb_byte *'.
1558         (read_unsigned_leb128, read_signed_leb128): Change second argument
1559         to `gdb_byte *'.  Use gdb_byte instead of `unsigned char'.
1560         (read_initial_length): Change second argument to `gdb_byte *'.
1561         Remove redundant casts.
1562         (read_encoded_value): Use gdb_byte instead of `unsigned char'.
1563         Remove bogus casts.
1564         (decode_frame_entry_1): Change return type and second argument to
1565         `gdb_byte *'.  Use `gdb_byte *' for byte buffers.  Use gdb_byte
1566         instead of `unsigned char'.
1567         (decode_frame_entry): Change return type and second argument to
1568         `gdb_byte *'.  Use `gdb_byte *' for byte buffers.
1569         (dwarf2_build_frame_info): Use `gdb_byte *' for byte buffers.
1570
1571 2005-07-12  Mark Kettenis  <kettenis@gnu.org>
1572
1573         * objc-lang.c (print_object_command): Use gdb_byte for c.
1574         * arch-utils.c (legacy_extract_return_value): Use 'gdb_byte *' for
1575         registers.
1576
1577 2005-07-11  Mark Kettenis  <kettenis@gnu.org>
1578
1579         * bsd-kvm.c: Include <paths.h>.
1580         (bsd_kvm_corefile): New variable.
1581         (core_kd, bsd_kvm_paddr, bsd_kvm_supply_pcb, bsd_kvm_ops): Make
1582         static.
1583         (bsd_kvm_open): Set bsd_kvm_corefile.
1584         (bsd_kvm_files_info): New function.
1585         (bsd_kvm_add_target): Set to_files_info.
1586
1587 2005-07-07  Andreas Schwab  <schwab@suse.de>
1588
1589         * observer.sh: Use different temporary file name depending on mode
1590         of operation to avoid clash during parallel build.
1591
1592 2005-07-06  Bob Rossi  <bob@brasko.net>
1593
1594         * fork-child.c (fork-inferior): Use accessor function for
1595         inferior_io_terminal.
1596         * infcmd.c (inferior_io_terminal): Make static.
1597         (set_inferior_io_terminal): New function.
1598         (get_inferior_io_terminal): Ditto.
1599         (tty_command): Use accessor function.
1600         (_initialize_infcmd): Add inferior_tty setshow variable.
1601         (_initialize_infcmd): Remove tty command.
1602         (_initialize_infcmd): Add a tty command that is an alias.
1603         * inferior.h (set_inferior_io_terminal): New prototype.
1604         (get_inferior_io_terminal): Ditto.
1605         (new_tty_prefork): Add const qualifier to parameter.
1606         * inflow.c (inferior_thisrun_terminal): Add const qualifier.
1607         (new_tty_prefork): Add const qualifier to parameter.
1608         * nto-procfs (procfs_create_inferior): Use accessor function.
1609         (procfs_create_inferior): Add const qualifier to locals.
1610         * win32-nat.c (child_create_inferior): Ditto.
1611         * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): New function.
1612         (mi_cmd_inferior_tty_set): Ditto.
1613         * mi/mi-cmds.c (mi_cmds): Add inferior-tty-set and inferior-tty-show
1614         * mi/mi-cmds.h (mi_cmd_inferior_tty_set): Add prototype.
1615         (mi_cmd_inferior_tty_show): Ditto.
1616
1617 2005-07-06  Wu Zhou  <woodzltc@cn.ibm.com>
1618
1619         * tui/tui-win.c (parse_scrolling_args): Fix SEGV error with invalid
1620         scroll command.
1621
1622 2005-07-06  Wu Zhou  <woodzltc@cn.ibm.com>
1623
1624         * f-exp.y (yyparse): Add code to support exponentiation expression.
1625         (yylex): Add code to scan exponentiation operator.
1626         * eval.c (evaluate_subexp_standard): Add support for BINOP_EXP.
1627         * valarith.c (value_binop): Reset errno to 0 before calling pow
1628         to do exponentiation operation.
1629
1630 2005-07-04  Mark Kettenis  <kettenis@gnu.org>
1631
1632         * i386nbsd-nat.c (i386nbsd_supply_pcb): Cast to 'gdb_byte *' in
1633         read_memory call.
1634         * bsd-uthread.c (bsd_uthread_wait): Use gdb_byte for byte buffer.
1635
1636         * bsd-kvm.c (bsd_kvm_open): Properly cast sentinel in concat call.
1637         * coffread.c (patch_type, process_coff_symbol): Likewise.
1638         * corelow.c (core_open): Likewise.
1639         * dwarf2read.c (dwarf_decode_lines, dwarf2_start_subfile):
1640         * language.c (set_lang_str, set_type_str, set_range_str)
1641         (set_case_str): Likewise.
1642         * source.c (add_path, openp): Likewise.
1643         * stabsread.c: Likewise.
1644         * top.c (init_history): Likewise.
1645         * utils.c (xfullpath): Likewise.
1646         * value.c (lookup_internalvar): Likewise.
1647         * cli/cli-cmds.c (cd_command): Likewise.
1648         * cli/cli-dump.c (add_dump_command): Likewise.
1649
1650         * i387-tdep.c (print_i387_value, print_i387_ext, i387_tag): Change
1651         type of first argument to `const gdb_byte *'.
1652         (i387_print_float_info, i387_register_to_value)
1653         (i387_value_to_register, i387_supply_fsave, i387_collect_fsave)
1654         (i387_supply_fxsave, i387_collect_fxsave): Use gdb_byte for byte
1655         buffers.
1656
1657 2005-07-04  Ben Elliston  <bje@gnu.org>
1658
1659         * Makefile.in (RUNTEST): Set to runtest.
1660
1661 2005-07-03  Richard Henderson  <rth@redhat.com>
1662
1663         * amd64-tdep.c (amd64_sse_type): New.
1664         (amd64_register_info): Use it for xmm registers.  Constify.
1665         (amd64_register_type): Initialize amd64_sse_type as needed.
1666
1667 2005-07-03  Steve Ellcey  <sje@cup.hp.com>
1668
1669         * configure.ac: Add arguments to AC_DEFINE calls.
1670         * acconfig.h: Remove file.
1671         * acinclude.m4 (AC_GNU_SOURCE): Remove definition.
1672         * configure: Regenerate.
1673         * config.in: Regenerate.
1674
1675 2005-07-01  Mark Kettenis  <kettenis@gnu.org>
1676
1677         * mips-tdep.c (mips_insn16_frame_prev_register)
1678         (mips_insn32_frame_prev_register, mips_stub_frame_prev_register):
1679         Change type of last argument to `gdb_byte *'.
1680
1681 2005-07-01  Steve Ellcey  <sje@cup.hp.com>
1682
1683         * MAINTAINERS (Write After Approval): Add myself.
1684
1685 2005-07-01  Mark Kettenis  <kettenis@gnu.org>
1686
1687         * solib-svr4.c: Include "solib.h".
1688         * Makefile.in (solib-svr4.o): Update dependencies.
1689
1690 2005-06-28  Mark Kettenis  <kettenis@gnu.org>
1691
1692         * eval.c (evaluate_struct_tuple): Use strcmp instead of
1693         DEPRECATED_STREQ.
1694
1695 2005-06-27  Michael Snyder  <msnyder@redhat.com>
1696
1697         * mn10300-linux-tdep.c: New file.  OSABI sniffer at end.
1698         * Makefile.in: Add rule for mn10300-linux-tdep.c.
1699         * config/mn10300/linux.mt: Add mn10300-linux-tdep.c to tdep files.
1700
1701 2005-06-27  Michael Snyder  <msnyder@redhat.com>
1702
1703         * config/mn10300/linux.mt: New file.
1704         * configure.tgt: Add rule for am33 / mn10300-linux.
1705         * mn10300-tdep.c, mn10300-tdep.h: Bump copyright year.
1706
1707 2005-06-27  Wu Zhou  <woodzltc@cn.ibm.com>
1708
1709         * gdbtypes.c (get_discrete_bounds): Fix a comment typo.
1710
1711 2005-06-25  Mark Kettenis  <kettenis@gnu.org>
1712
1713         * sol-thread.c (sol_thread_xfer_memory): Change type of second
1714         argument to `gdb_byte *'.
1715         (sol_thread_xfer_partial): Change type of readbuf and writebuf
1716         arguments to `gdb_byte *'.
1717
1718         * mips-tdep.c (mips_xfer_register, mips_o32_return_value)
1719         (mips_integer_to_address): Use gdb_byte instead of bfd_byte.
1720
1721 2005-06-24  Mark Kettenis  <kettenis@gnu.org>
1722
1723         * ppcobsd-nat.c: Include "gdbcore.h", <sys/signal.h>,
1724         <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
1725         (ppcobsd_supply_pcb): New function.
1726         (_initialize_ppcobsd_nat): Enable libkvm interface.
1727         * Makefile.in (ppcobsd-nat.o): Update dependencies.
1728         * config/powerpc/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
1729         (LOADLIBES): New variable.
1730
1731 2005-06-24  Corinna Vinschen  <vinschen@redhat.com>
1732
1733         * i386-tdep.c (struct i386_frame_cache): Define sp_offset as LONGEST.
1734
1735 2005-06-23  Andreas Schwab  <schwab@suse.de>
1736
1737         * gdb_ptrace.h: Fix typos when checking for PT_ATTACH.  Reported
1738         by Chad Harrington <harrington.chad@gmail.com>.
1739
1740 2005-06-22  Mark Kettenis  <kettenis@gnu.org>
1741
1742         * remote.c (extended_remote_restart): Pass buffer in call to
1743         xsnprintf instead of a pointer to the buffer.
1744
1745 2005-06-21  Andrew Cagney  <cagney@gnu.org>
1746
1747         * MAINTAINERS: List GDB's Steering Committee as responsible for
1748         GDB's maintenance.
1749
1750 2005-06-21  Mark Kettenis  <kettenis@gnu.org>
1751
1752         * inf-ttrace.c (inf_ttrace_xfer_partial): Change type of readbuf
1753         and writebuf arguments to `gdb_byte *'.
1754
1755 2005-06-21  Wu Zhou  <woodzltc@cn.ibm.com>
1756
1757         * MAINTAINERS (Write After Approval): Add myself.
1758
1759 2005-06-20  Mark Kettenis  <kettenis@gnu.org>
1760
1761         * hppabsd-tdep.c: Include "symtab.h", "objfiles.h", "target.h",
1762         "value.h" and "elf/common.h".
1763         (hppabsd_supply_gregset): Use `gdb_byte *' for byte buffer.
1764         (hppabsd_find_global_pointer): New function.
1765         (hppabsd_init_abi): Set TDEP->find_global_pointer to
1766         hppabsd_find_global_pointer.
1767         * Makefile.in (hppabsd-tdep.o): Update dependencies.
1768
1769 2005-06-12  Mark Kettenis  <kettenis@gnu.org>
1770
1771         * hppa-tdep.c (hppa_pointer_to_address_hack): Remove function.
1772         (unwind_command): Use %lx to print pointer.
1773
1774 2005-06-19  Mark Kettenis  <kettenis@gnu.org>
1775
1776         * remote-sim.c (gdbsim_xfer_inferior_memory): Remove prototype.
1777         Change type of second argument to`gdb_byte *'.
1778
1779 2005-06-19  Nick Roberts  <nickrob@snap.net.nz>
1780
1781         * mi/mi-cmd-stack.c (mi_cmd_stack_info_frame): New function.
1782
1783         * mi/mi-cmds.c (mi_cmds): Replace entry for -stack-info-frame.
1784         Make it use mi_cmd_stack_info_frame
1785
1786         * mi/mi-cmds.h (mi_cmd_stack_info_frame): New declaration.
1787
1788 2005-06-18  Mark Kettenis  <kettenis@gnu.org>
1789
1790         * hppa-tdep.c (hppa_fallback_frame_cache): Don't error out if we
1791         can't find the bounds of the current function.  Wrap some long
1792         lines in the process.
1793
1794         * regcache.c (regcache_raw_supply, regcache_raw_collect): Change
1795         type of last argument back to `void *'.
1796         * regcache.h (regcache_raw_supply, regcache_raw_collect): Likewise.
1797
1798 2005-06-18  Nick Roberts  <nickrob@snap.net.nz>
1799
1800         * mi/mi-cmds.c (mi_cmds): Remove entry for -stack-info-frame.
1801
1802         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1803         (mi_cmd_stack_info_depth): Don't test for stack.
1804         (mi_cmd_stack_select_frame): Make the argument mandatory.
1805         Don't test for stack.
1806
1807 2005-06-17  Wu Zhou  <woodzltc@cn.ibm.com>
1808
1809         * remote.c (set_thread, remote_thread_alive): Replace sprintf
1810         call with xsnprintf.
1811         (remote_threads_extra_info, extended_remote_restart)
1812         (remote_check_symbols, store_register_using_P)
1813         (compare_sections_command): Ditto.
1814
1815 2005-06-16  David Ung  <davidu@mips.com>
1816
1817         * MAINTAINERS (Write After Approval): Add self.
1818
1819 2005-06-15  Mark Kettenis  <kettenis@gnu.org>
1820
1821         * hppa-hpux-nat.c (hppa_hpux_fetch_register)
1822         (hppa_hpux_store_register): Add casts in extract_unsigned_integer
1823         and store_usigned_integer calls.
1824
1825 2005-06-14  Nick Roberts  <nickrob@snap.net.nz>
1826
1827         * mi/mi-main.c (mi_cmd_data_list_register_values): Remove test for
1828         registers now that mi_execute_command rewinds after an error.
1829
1830 2005-06-13  Mark Kettenis  <kettenis@gnu.org>
1831
1832         * configure.ac: Use AC_CHECK_TYPES to check for uintptr_t.
1833         * configure, config.in: Regenerate.
1834
1835         * ser-tcp.c: Tweak comment.
1836         [!HAVE_SOCKLEN_T]: Typedef socklen_t.
1837         * configure.ac: Add check for socklen_t.
1838         * configure, config.in: Regenerate.
1839
1840 2005-06-13  H.J. Lu  <hongjiu.lu@intel.com>
1841
1842         * config/i386/linux64.mt (TDEPFILES): Add symfile-mem.o.
1843
1844 2005-06-13  Richard Sandiford  <richard@codesourcery.com>
1845
1846         * MAINTAINERS: Update my email address.
1847
1848 2005-06-13  Mark Mitchell  <mark@codesourcery.com>
1849
1850         * corelow.c (core_open): Use bfd_fopen, not bfd_fdopenr.
1851         * exec.c (exec_file_attach): Likewise.
1852         * solib-frv.c (enable_break2): Likewise.
1853         * solib-svr4.c (enable_break): Likewise.
1854         * solib.c (solib_map_sections): Likewise.
1855         * symfile.c (symfile_bfd_open): Likewise.
1856
1857 2005-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
1858
1859         * Makefile.in (symfile.o): Add $(exec_h).
1860         * exec.h (exec_set_section_address): Add prototype.
1861         * exec.c (exec_set_section_address): New function.
1862         * symfile.c: Include "exec.h".
1863         (struct place_section_arg, place_section): New.
1864         (default_symfile_offsets): Call place_section for each
1865         section of a relocatable file.
1866
1867 2005-06-13  Joel Brobecker  <brobecker@adacore.com>
1868
1869         * hppa-tdep.c (hppa_pc_requires_run_before_use): Really test all
1870         bits of top byte in address.
1871
1872 2005-06-13  Wu Zhou  <woodzltc@cn.ibm.com>
1873
1874         * eval.c (evaluate_subexp_standard): Add code to check the target
1875         type of a TYPE_CODE_PTR value when we encounter a f77 undetermined
1876         arglist.  If it is array, string or function, work on the target
1877         value instead.
1878
1879 2005-06-12  Daniel Jacobowitz  <dan@codesourcery.com>
1880             Nick Roberts  <nickrob@snap.net.nz>
1881
1882         * mi/mi-main.c (register_changed_p, get_register): Use
1883         get_selected_frame.
1884         (mi_execute_command): Call mi_out_rewind after an error.
1885
1886 2005-06-12  Mark Kettenis  <kettenis@gnu.org>
1887
1888         * hppa-tdep.c (hppa_frame_prev_register)
1889         (hppa_fallback_frame_prev_register)
1890         (hppa_stub_frame_prev_register): Change type of last argument to
1891         `gdb_byte *'.
1892         (hppa_fetch_pointer_argument): Tweak comment.  Use
1893         get_frame_register_unsigned instead of get_frame_register.
1894         (hppa32_return_value, hppa64_return_value): Change type of readbuf
1895         and writebuf arguments to `gdb_byte *'.  Remove unecessary casts
1896         and local variables.
1897         (hppa_pseudo_register_read): Change type of last argument to
1898         `gdb_byte *'.
1899
1900         * m68k-tdep.c (m68k_frame_prev_register): Change type of last
1901         argument to `gdb_byte *'.
1902
1903         * arm-tdep.c (set_disassembly_style, _initialize_arm_tdep):
1904         Consitify regnames.
1905
1906         * alpha-tdep.c (alpha_sigtramp_frame_prev_register)
1907         (alpha_heuristic_frame_prev_register): Change type of last
1908         argument to `gdb_byte *'.
1909         (alpha_register_to_value, alpha_value_to_register)
1910         (alpha_extract_return_value, alpha_store_return_value): Likewise.
1911         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
1912
1913         * arm-tdep.c (arm_prologue_prev_register)
1914         (arm_sigtramp_prev_register): Change type of last argument to
1915         `gdb_byte *'.
1916
1917         * m88k-tdep.c (m88k_frame_prev_register): Change type of last
1918         argument to `gdb_byte *'.
1919
1920         * vax-tdep.c (vax_frame_prev_register): Change type of last
1921         argument to `gdb_byte *'.
1922
1923         * sparc-tdep.c (sparc32_frame_prev_register): Change type of last
1924         argument to `gdb_byte *'.
1925         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
1926         Likewise.
1927         * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Likewise.
1928         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
1929         Likewise.
1930         * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
1931         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
1932         Likewise.
1933         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
1934         Likewise.
1935         * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Likewise.
1936         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind):
1937         Likewise.
1938
1939         * amd64-tdep.c (amd64_frame_prev_register)
1940         (amd64_sigtramp_frame_prev_register): Change type of last argument
1941         to `gdb_byte *'.
1942
1943 2005-06-11  Mark Kettenis  <kettenis@gnu.org>
1944
1945         * i386-tdep.c (i386_register_type): Return
1946         builtin_type_void_func_ptr for %eip and builtin_type_void_data_ptr
1947         for %ebp and %esp.
1948
1949 2005-06-10  Ben Elliston  <bje@au.ibm.com>
1950
1951         * valprint.c (print_floating): Fix comment typo.
1952
1953 2005-06-09  Jeff Johnston  <jjohnstn@redhat.com>
1954
1955         * ia64-tdep.c (ia64_pseudo_register_read): Use gdb_byte and
1956         protect libunwind references with HAVE_LIBUNWIND_IA64_H flag.
1957         (ia64_pseudo_register_write): Use gdb_byte to remove warning.
1958         (ia64_register_to_value, ia64_value_to_register): Ditto.
1959         (ia64_frame_prev_register): Ditto.
1960         (ia64_libunwind_frame_prev_register): Ditto.
1961         (ia64_sigtramp_frame_prev_register): Ditto.
1962         (ia64_libunwind_sigtramp_frame_prev_register): Ditto.
1963         (ia64_store_return_value): Ditto.
1964
1965 2005-06-08  Jeff Johnston  <jjohnstn@redhat.com>
1966             David Mosberger <davidm@hpl.hp.com>
1967
1968         * ia64-tdep.c (KERNEL_START): New macro.
1969         (ia64_pseudo_register_read): Fix code to use libunwind to properly
1970         get the rse registers.
1971         (ia64_frame_this_id): Mark outermost frame with null frame id.
1972         (ia64_sigtramp_frame_prev_register): Fix up debug output.
1973         (ia64_access_rse_reg): New accessor function.
1974         (ia64_access_mem): Add special logic for accessing the
1975         kernel's unwind table.
1976         (getunwind_table): Fix for corefiles.
1977         (get_kernel_table): Fix to handle vDSO.
1978         (ia64_libunwind_frame_this_id): Check for null frame id and
1979         don't unwind past pc value of 0.  Fix debugging output.
1980         (ia64_libunwind_sigtramp_frame_this_id): New function.
1981         (ia64_libunwind_sigtramp_frame_prev_register): Ditto.
1982         (ia64_libunwind_sigtramp_frame_sniffer): Ditto.
1983         (ia64_libunwind_sigtramp_frame_unwind): New unwinder.
1984         (ia64_unw_rse_accessors): New libunwind accessors.
1985         (ia64_libunwind_descr): Add ia64_unw_rse_accessors.
1986         (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Use
1987         ia64_libunwind_sigtramp_frame_sniffer instead of
1988         ia64_sigtramp_frame_sniffer.
1989         * libunwind-frame.c (libunwind_frame_set_descr): Add
1990         special register accessors.
1991         (libunwind_frame_cache): Add special logic to check for
1992         0 pc value.  Check for a signal trampoline frame.
1993         (libunwind_frame_this_id): Check if libunwind_frame_cache
1994         returns NULL.
1995         (libunwind_frame_prev_register): Check for NULL cache.
1996         (libunwind_frame_base_address): Ditto.
1997         (libunwind_sigtramp_frame_sniffer): New function.
1998         (libunwind_get_reg_special): Ditto.
1999         (libunwind_load): Add unw_is_signal_frame support.
2000         * libunwind-frame.h (struct libunwind_descr): Add special_accessors
2001         field.
2002         (libunwind_sigtramp_frame_sniffer): New prototype.
2003         (libunwind_get_reg_special): Ditto.
2004
2005 2005-06-08  Wu Zhou  <woodzltc@cn.ibm.com>
2006
2007         * expression.h (enum exp_opcode): Fix a comment typo.
2008
2009 2005-06-06  Manoj Iyer  <manjo@austin.ibm.com>
2010
2011         * solib-svr4.c (struct lm_info): Change type of 'lm' to gdb_byte.
2012         (elf_locate_base): Converted types of buf, bufend, pbuf, to gdb_byte.
2013         (first_link_map_member): Converted type of r_map_buf to gdb_byte.
2014         (open_symbol_file_object): Converted type of l_name_buf to gdb_byte.
2015         (svr4_fetch_objfile_link_map): Converted type of l_name_buf to
2016         gdb_byte.
2017
2018 2005-06-04  Richard Sandiford  <rsandifo@nildram.co.uk>
2019
2020         * MAINTAINERS: Update my email address.
2021
2022 2005-06-03  Joel Brobecker  <brobecker@adacore.com>
2023
2024         * symmisc.c (dump_symtab_1): Renamed from dump_symtab.
2025         (dump_symtab): New function.
2026
2027 2005-04-02  Joel Brobecker  <brobecker@adacore.com>
2028
2029         * exceptions.h: Include ui-out.h.
2030         (ui_out): Remove declaration.
2031         * Makefile.in (exceptions_h): Add dependency on ui-out.h.
2032
2033 2005-05-30  Andrew Cagney  <cagney@gnu.org>
2034
2035         * MAINTAINERS (Can Commit Without Approval): New section,
2036         previously burried under "Target Instruction Set Architectures".
2037         Note that cagney "can commit" changes to powerpc-linux.
2038
2039         * MAINTAINERS: Drop architecture and target vectors.
2040
2041 2005-05-29  Eli Zaretskii  <eliz@gnu.org>
2042
2043         * config/djgpp/fnchange.lst: Add mappings for linux-ppc-low.c and
2044         linux-ppc64-low.c.
2045
2046 2005-05-28  Bob Rossi  <bob@brasko.net>
2047         * Makefile.in (SUBDIR_MI_OBS, SUBDIR_MI_SRCS): Add mi-common.
2048         (gdb/mi/ headers): Add mi_common_h.
2049         (breakpoint.o, infrun.o): Add dependencies mi_common_h.
2050         * breakpoint.c (include): Add include 'mi/mi-common.h'.
2051         (print_it_typical): Use async_reason_lookup.
2052         (watchpoint_check): Ditto.
2053         * infrun.c (include): Add include 'mi/mi-common.h'.
2054         (print_stop_reason): Use async_reason_lookup.
2055         * mi/mi-common.h: New file.
2056         * mi/mi-common.c: Ditto.
2057
2058 2005-05-29  Joel Brobecker  <brobecker@adacore.com>
2059
2060         * alpha-tdep.c (alpha_next_pc): Use correct register number
2061         for floating-point branch instructions.
2062
2063 2005-05-28  Daniel Jacobowitz  <dan@codesourcery.com>
2064             Jonathan Larmour  <jifl@eCosCentric.com>
2065
2066         PR backtrace/1760
2067         * frame.c (backtrace_limit): Change type to int.
2068         (get_prev_frame): Update backtrace limit support.
2069         (_initialize_frame): Use add_setshow_integer_cmd for backtrace_limit.
2070
2071 2005-05-28  Daniel Jacobowitz  <dan@codesourcery.com>
2072
2073         * configure.tgt (powerpc64-*-linux*): Enable gdbserver.
2074         * regformats/reg-ppc64.dat: New file.
2075
2076 2005-05-28  Daniel Jacobowitz  <dan@codesourcery.com>
2077
2078         From Wu Zhou <woodzltc@cn.ibm.com>:
2079         * remote.c (struct gdb_ext_thread_info): Fix a comment typo.
2080         (remote_unpack_thread_info_response): Likewise.
2081
2082 2005-05-28  Daniel Jacobowitz  <dan@codesourcery.com>
2083
2084         * cli/cli-setshow.c (do_setshow_command): Partially revert previous
2085         change.  Cast to "char **" for var_string.
2086
2087 2005-05-28  Daniel Jacobowitz  <dan@codesourcery.com>
2088
2089         * cp-name-parser.y (parse_escape): Revert previous change.  Return
2090         the input character by default.
2091
2092 2005-05-28  Daniel Jacobowitz  <dan@codesourcery.com>
2093
2094         * dwarf2-frame.c (dwarf2_frame_prev_register): Use gdb_byte.
2095         * i386-linux-nat.c (fetch_register, store_register, supply_gregset)
2096         (fill_gregset): Likewise.
2097         * i386-tdep.c (i386_frame_prev_register)
2098         (i386_sigtramp_frame_prev_register): Likewise.
2099         * linux-nat.c (linux_nat_xfer_memory, linux_nat_make_corefile_notes):
2100         Likewise.
2101         * linux-thread-db.c (thread_db_xfer_memory): Likewise.
2102         * remote.c (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint):
2103         Likewise.
2104         * target.c (debug_to_insert_hw_breakpoint)
2105         (debug_to_remove_hw_breakpoint, update_current_target): Likewise.
2106
2107 2005-05-28  Hans-Peter Nilsson  <hp@axis.com>
2108
2109         * MAINTAINERS: Change cris-elf state to non-broken.
2110         * cp-name-parser.y (parse_escape): Initialize target_char to zero.
2111
2112 2005-05-27  Orjan Friberg  <orjanf@axis.com>
2113
2114         * cris-tdep.c (crisv32_scan_prologue): Add.
2115         (cris_frame_unwind_cache, cris_skip_prologue): Call
2116         crisv32_scan_prologue when debugging CRISv32.
2117
2118 2005-05-27  Orjan Friberg  <orjanf@axis.com>
2119
2120         * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
2121         (cris_frame_prev_register, cris_sigtramp_frame_prev_register)
2122         (cris_return_value): Use gdb_byte for byte buffers.
2123         (struct cris_frame_unwind, struct cris_frame_base): Fix formatting.
2124
2125 2005-05-26  Chris Demetriou  <cgd@netbsd.org>
2126
2127         * MAINTAINERS (Write After Approval): Remove myself.
2128
2129 2005-05-27  Andrew Cagney  <cagney@gnu.org>
2130
2131         * jv-lang.c (get_java_utf8_name): Add cast.
2132         (evaluate_subexp_java): Use gdb_byte for buffers.
2133         * jv-valprint.c (java_value_print, java_value_print): Use gdb_byte
2134         for buffers.
2135         * scm-lang.c (scm_get_field, scm_unpack)
2136         (scm_evaluate_string): Use gdb_byte for buffers.
2137         (scm_lookup_name): Add cast.
2138         * scm-valprint.c (scm_scmval_print, scm_scmval_print): Use
2139         gdb_byte for buffers.
2140         * tui/tui.h (tui_get_command_dimension): Make parameters unsigned.
2141         * tui/tui.c (tui_get_command_dimension): Make parameters unsigned.
2142         * value.h (check_field): Change "name" to a string.
2143         * valops.c (check_field): Change "name" to a string.
2144         * scm-lang.h (scm_parse): Use gdb_byte for buffers.
2145         * source.c (get_current_source_symtab_and_line)
2146         (set_current_source_symtab_and_line): Initialize all fields of sal
2147         structures.
2148         * cli/cli-cmds.c (list_command): Use gdb_byte for buffers.
2149
2150 2005-05-26  Andrew Cagney  <cagney@gnu.org>
2151
2152         * command.h (add_setshow_integer_cmd): Make VAR an integer.
2153         * cli/cli-decode.c (add_setshow_integer_cmd): Update to match.
2154         * valops.c (value_string): Add a cast.
2155         * eval.c (evaluate_subexp_standard): Use gdb_byte for byte buffers.
2156         * breakpoint.c (re_enable_breakpoints_in_shlibs): Use gdb_byte for
2157         byte buffers.
2158         * target.h (struct target_ops): For to_insert_hw_breakpoint and
2159         to_remove_hw_breakpoint use gdb_byte for byte buffer parameters.
2160         * breakpoint.h (struct bp_location): Make shadow_contents a
2161         gdb_byte buffer.
2162         * cli/cli-setshow.c (do_setshow_command): Fix cast.
2163         * cli/cli-dump.c (restore_section_callback)
2164         (restore_binary_file): Use gdb_byte for byte buffers.
2165         * proc-service.c (ps_ptwrite, ps_ptread, ps_pdwrite): Fix casts.
2166         (ps_xfer_memory): Use gdb_byte for byte buffers.
2167         * tracepoint.c (mem2hex): Use gdb_byte for byte buffers, and char
2168         for string buffers.
2169         * ser-tcp.c (net_open): Make len a socklen_t.
2170
2171 2005-05-24  Andrew Cagney  <cagney@gnu.org>
2172
2173         * rs6000-tdep.c (ppc_supply_reg, ppc_collect_reg): Use gdb_byte
2174         for byte buffers.
2175         (rs6000_fetch_pointer_argument): Use get_frame_register_unsigned.
2176         (rs6000_software_single_step, sstep_breaks, skip_prologue)
2177         (rs6000_push_dummy_call, rs6000_push_dummy_call)
2178         (rs6000_push_dummy_call, rs6000_push_dummy_call)
2179         (rs6000_register_to_value, e500_pseudo_register_read)
2180         (rs6000_store_return_value, e500_pseudo_register_write)
2181         (rs6000_frame_prev_register, rs6000_extract_return_value): Ditto.
2182         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2183         (ppc_sysv_abi_push_dummy_call, do_ppc_sysv_return_value)
2184         (do_ppc_sysv_return_value, ppc_sysv_abi_return_value)
2185         (ppc_sysv_abi_broken_return_value)
2186         (ppc64_sysv_abi_push_dummy_call, ppc64_sysv_abi_push_dummy_call)
2187         (ppc64_sysv_abi_push_dummy_call, ppc64_sysv_abi_return_value)
2188         (ppc64_sysv_abi_return_value, ppc64_sysv_abi_return_value): Ditto.
2189         * ppc-linux-tdep.c (ppc_linux_in_sigtramp)
2190         (ppc_linux_at_sigtramp_return_path)
2191         (ppc_linux_skip_trampoline_code)
2192         (ppc_linux_memory_remove_breakpoint, ppc_linux_return_value):
2193         * rs6000-tdep.c (rs6000_value_to_register)
2194         (rs6000_register_to_value): Ditto.
2195         * ppc-tdep.h (ppc_sysv_abi_return_value)
2196         (ppc64_sysv_abi_return_value, ppc_sysv_abi_broken_return_value)
2197         (ppc_linux_memory_remove_breakpoint): Ditto.
2198
2199 2005-05-24  Ulrich Weigand  <uweigand@de.ibm.com>
2200
2201         * s390-tdep.c (s390_frame_prev_register): Change type of last
2202         argument to 'gdb_byte *'.
2203         (s390_stub_frame_prev_register): Likewise.
2204         (s390_sigtramp_frame_prev_register): Likewise.
2205
2206 2005-05-24  Kris Warkentin  <kewarken@qnx.com>
2207
2208         * config/i386/nto.mt: Remove remote-nto.o.
2209
2210 2005-05-24  Orjan Friberg  <orjanf@axis.com>
2211
2212         * config/djgpp/fnchange.lst: Add mappings for
2213         gdbserver/linux-cris-low.c and gdbserver/linux-crisv32-low.c.
2214
2215 2005-05-23  Michael Snyder  <msnyder@redhat.com>
2216         From Nora Pan <qpan@mvista.com>
2217         * linux-nat.c (read_mapping): Don't stumble over entries in
2218         mapping that have name but zero inode.
2219
2220 2005-05-23  Andrew Cagney  <cagney@gnu.org>
2221
2222         * target.h (child_xfer_memory): Use gdb_byte for byte buffer
2223         parameters.
2224         * inftarg.c (child_xfer_partial): Update.
2225         * wince.c (child_xfer_memory): Update.
2226         * win32-nat.c (child_xfer_memory): Update.
2227         * rs6000-nat.c (child_xfer_memory): Update.
2228         * infptrace.c (child_xfer_memory): Update.
2229         * dcache.c (struct dcache_block): Use gdb_byte for the byte
2230         buffers.
2231         (dcache_read_line, dcache_xfer_memory, dcache_poke_byte)
2232         (dcache_peek_byte, dcache_write_line): Ditto.
2233
2234         * auxv.h (target_auxv_read, procfs_xfer_auxv)
2235         (target_auxv_parse): Use gdb_byte for byte buffer parameters.
2236         * auxv.c (target_auxv_read, procfs_xfer_auxv, target_auxv_parse)
2237         (target_auxv_search, fprint_target_auxv): Update.
2238
2239 2005-05-23  Orjan Friberg  <orjanf@axis.com>
2240
2241         * cris-tdep.c: Tweak values for cris-mode.
2242
2243 2004-05-23  Joel Brobecker  <brobecker@adacore.com>
2244
2245         * mdebugread.c (record_minimal_symbol): New procedure.
2246         (parse_partial_symbols): Use record_minimal_symbol to record
2247         the new minimal symbols instead of prim_record_minimal_symbol
2248         and prim_record_minimal_symbol_and_info.
2249
2250 2005-05-22  Mark Kettenis  <kettenis@gnu.org>
2251
2252         * NEWS: Mention OpenBSD/arm as a new native configuration.
2253
2254         * armnbsd-nat.c: Include "gdb_string.h" and "inf_ptrace.h".
2255         Reorder includes.  Don't require FETCH_INFERIOR_REGISTERS to be
2256         defined.
2257         (armnbsd_fetch_registers): Rename from armnbsd_fetch_registers.
2258         Make static.
2259         (armnbsd_store_registers): Rename from armnbsd_store_registers.
2260         Make static.
2261         (_initialize_arm_netbsd_nat): Construct and add target vector.
2262         * Makefile.in (armnbsd-nat.o): Update dependencies.
2263         * config/arm/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2264         intarg.o, add inf-ptrace.o.
2265         (NAT_FILE): Set to solib.h.
2266         * config/arm/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2267         inftarg.o, add inf-ptrace.o.
2268         (NAT_FILE): Remove.
2269
2270         * arm-tdep.c (arm_extract_return_value, arm_store_return_value):
2271         Change type of last argument to `gdb_byte *'.
2272
2273         * configure.host: Add arm*-*-openbsd*.
2274         * configure.tgt: Add arm*-*-openbsd*.
2275
2276 2005-05-22  Andrew Cagney  <cagney@gnu.org>
2277
2278         * frame.h (frame_register_unwind, frame_unwind_register)
2279         (get_frame_register, frame_register, put_frame_register)
2280         (get_frame_memory, safe_frame_unwind_memory)
2281         (frame_register_read): Use gdb_byte for byte buffer parameters.
2282         * trad-frame.h (trad_frame_get_register)
2283         (frame_get_prev_register): Ditto.
2284         * frame-unwind.h (frame_prev_register_ftype): Ditto.
2285         * frame.c (frame_pop, frame_register, frame_unwind_register)
2286         (get_frame_register, frame_unwind_register_signed)
2287         (frame_unwind_register_unsigned, frame_unwind_unsigned_register)
2288         (frame_register_read, get_frame_memory): Update.
2289         * trad-frame.c (trad_frame_get_prev_register): Update.
2290         (trad_frame_get_register): Update.
2291         * gdbcore.h (deprecated_read_memory_nobpt, read_memory): Ditto.
2292         * breakpoint.c (deprecated_read_memory_nobpt): Update.
2293         * corefile.c (read_memory): Update.
2294         * tramp-frame.c (tramp_frame_prev_register): Update.
2295         * valops.c (value_assign): Update.
2296         * sentinel-frame.c (sentinel_frame_prev_register): Update.
2297         * std-regs.c (value_of_builtin_frame_fp_reg)
2298         (value_of_builtin_frame_pc_reg): Update.
2299         * infcmd.c (default_print_registers_info): Update
2300         * dummy-frame.c (dummy_frame_prev_register): Update.
2301         * findvar.c (value_of_register, value_from_register): Update.
2302         * tui/tui-regs.c (tui_register_format, tui_get_register): Update.
2303         * mi/mi-main.c (register_changed_p, get_register): Update.
2304
2305 2005-05-20  Eli Zaretskii  <eliz@gnu.org>
2306
2307         * configure.ac: Add snprintf and vsnprintf to AC_CHECK_DECLS.  Fix
2308         bad description of _MSE_INT_H that caused each word in config.in
2309         to be enclosed in [].
2310         * configure, config.in: Regenerate.
2311
2312 2005-05-20  Joel Brobecker  <brobecker@adacore.com>
2313
2314         * alpha-tdep.c (fp_register_zero_p): New function.
2315         (fp_register_sign_bit): New function.
2316         (alpha_next_pc): Add support for floating-point control instructions.
2317
2318 2005-05-19  Andrew Cagney  <cagney@gnu.org>
2319
2320         * defs.h (extract_signed_integer, extract_unsigned_integer)
2321         (extract_long_unsigned_integer, extract_typed_address)
2322         (store_signed_integer, store_unsigned_integer)
2323         (store_typed_address): Use gdb_byte for byte buffer parameters.
2324         (push_bytes, push_word): Delete declaration.
2325         * valops.c (push_bytes, push_word): Delete function.
2326         * findvar.c (extract_signed_integer, extract_unsigned_integer)
2327         (extract_typed_address, store_signed_integer)
2328         (store_unsigned_integer): Update.
2329
2330         * regcache.h (regcache_raw_read, regcache_raw_write)
2331         (regcache_raw_read_part, regcache_raw_write_part)
2332         (regcache_cooked_read_part, regcache_cooked_write_part)
2333         (regcache_cooked_read, regcache_cooked_write)
2334         (regcache_raw_supply, regcache_raw_collect)
2335         (regcache_cooked_read_ftype, regcache_save, regcache_restore)
2336         (deprecated_read_register_gen, deprecated_write_register_gen)
2337         (deprecated_read_register_bytes, deprecated_write_register_bytes)
2338         (deprecated_grub_regcache_for_registers): Use gdb_byte for byte
2339         buffer parameters.
2340         * ia64-tdep.c (ia64_extract_return_value): Update.
2341         * frame.c (do_frame_register_read): Update.
2342         * regcache.c (deprecated_grub_regcache_for_registers)
2343         (struct regcache, regcache_save, regcache_restore, regcache_cpy)
2344         (do_cooked_read, regcache_xmalloc, register_buffer)
2345         (deprecated_read_register_bytes, regcache_raw_read)
2346         (regcache_raw_read_signed, regcache_raw_read_unsigned)
2347         (deprecated_read_register_gen, regcache_cooked_read)
2348         (regcache_cooked_read_signed, regcache_cooked_read_unsigned)
2349         (deprecated_write_register_gen, regcache_cooked_write)
2350         (deprecated_write_register_bytes, regcache_raw_read_part)
2351         (regcache_raw_write_part, regcache_cooked_read_part)
2352         (regcache_cooked_write_part, read_register, regcache_raw_supply):
2353
2354 2005-05-17  Corinna Vinschen  <vinschen@redhat.com>
2355
2356         * MAINTAINERS: Undelete v850.
2357         * Makefile.in: Re-add v850-tdep.o dependencies.
2358         * configure.tgt: Re-add v850.
2359         * v850-tdep.c: Reorder code slightly.  Add register number enumerator.
2360         (struct v850_frame_cache): New structure.
2361         (v850_processor_type_table): Remove. Move functionality into
2362         v850_register_name, v850e_register_name and v850_gdbarch_init.
2363         (v850_register_name): New function.
2364         (v850e_register_name): New function.
2365         (struct prologue_info): Remove definition.
2366         (v850_register_type): New function.
2367         (v850_type_is_scalar): New function.
2368         (v850_use_struct_convention): Align to gcc behaviour.
2369         (v850_handle_prepare): Renamed from handle_prepare. Change third
2370         parameter to struct v850_frame_cache *.
2371         (v850_handle_pushm): Renamed from handle_pushm. Change third parameter
2372         to struct v850_frame_cache *.
2373         (v850_is_save_register): New function to evaluate if a register is
2374         caller-save.
2375         (v850_analyze_prologue): Replace v850_scan_prologue.  Change to support
2376         new frame code.
2377         (v850_init_extra_frame_info): Remove.
2378         (v850_frame_chain): Remove.
2379         (v850_find_callers_reg): Remove.
2380         (v850_skip_prologue): Make static.
2381         (v850_pop_frame): Remove.
2382         (v850_frame_align): New function.
2383         (v850_push_dummy_call): Replace v850_push_arguments.
2384         (v850_push_return_address): Remove.
2385         (v850_extract_return_value): New function.
2386         (v850_store_return_value): New function.
2387         (v850_return_value): New function.
2388         (v850_frame_saved_pc): Remove.
2389         (v850_breakpoint_from_pc): New function.
2390         (v850_alloc_frame_cache): New function.
2391         (v850_fix_call_dummy): Remove.
2392         (v850_frame_cache): New function.
2393         (v850_target_architecture_hook): Remove.
2394         (v850_frame_prev_register): New function.
2395         (v850_frame_this_id): New function.
2396         (v850_frame_unwind): New structure.
2397         (v850_frame_sniffer): New function.
2398         (v850_unwind_sp): New function.
2399         (v850_unwind_pc): New function.
2400         (v850_unwind_dummy_id): New function.
2401         (v850_frame_base_address): New function.
2402         (v850_frame_base): New structure.
2403         (v850_gdbarch_init): New function.
2404         * config/v850/v850.mt: Undelete.  Drop TM_FILE.
2405
2406 2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
2407             Dennis Brueni  <dennis@slickedit.com>
2408
2409         * stack.c (print_frame): In MI mode, output a fullname attribute
2410         with the stack frame.
2411
2412 2005-05-16  Mark Kettenis  <kettenis@gnu.org>
2413
2414         * corelow.c (core_xfer_partial): Change type of readbuf and
2415         writebuf to `gdb_byte *'.
2416         * sparc-nat.c (sparc_xfer_wcookie, sparc_xfer_partial): Change
2417         type of readbuf and writebuf to `gdb_byte *'.
2418         * bsd-uthread.c (bsd_uthread_xfer_partial): Change type of readbuf
2419         and writebuf to `gdb_byte *'.
2420         * inf-ptrace.c (inf_ptrace_xfer_partial): Change type of readbuf
2421         and writebuf to `gdb_byte *'.
2422         * bsd-kvm.c (bsd_kvm_xfer_memory): Replace.
2423         (bsd_kvm_xfer_partial): New function.
2424         (bsd_kvm_add_target): Set to_xfer_partial instead of
2425         to_xfer_memory.
2426         * bfd-target.c (target_bfd_xfer_partial): Change type of readbuf
2427         and writebuf to `gdb_byte *'.
2428         * target.c (deprecated_debug_xfer_memory): Remove prototype.
2429         (deprecated_debug_xfer_memory): Change type of second argument to
2430         `gdb_byte *'.
2431         * remote.c (remote_xfer_memory): Remove prototype.
2432         (remote_xfer_memory): Change type of second argument to `gdb_byte
2433         *'.
2434         (remote_xfer_partial): Change type of readbuf and writebuf to
2435         `gdb_byte *'.
2436
2437         * config/sparc/fbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2438         * config/sparc/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
2439         and solib-legacy.o.
2440         (NAT_FILE): Remove.
2441
2442 2005-05-16  Ulrich Weigand  <uweigand@de.ibm.com>
2443
2444         * s390-tdep.c (s390_return_value): Remove unnecessary casts.
2445         (s390_breakpoint_from_pc): Change type of return value and
2446         'breakpoint' to const gdb_byte *.
2447
2448 2005-05-16  Ulrich Weigand  <uweigand@de.ibm.com>
2449
2450         * s390-tdep.c (s390_pseudo_register_read, s390_pseudo_register_write):
2451         Change type of 'buf' argument to gdb_byte *.
2452         (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
2453         (s390_register_to_value): Change type of 'out' to gdb_byte *, change
2454         type of 'in' to gdb_byte [].
2455         (s390_value_to_register): Change type of 'in' to gdb_byte *, change
2456         type of 'out' to gdb_byte [].
2457         (s390_return_value): Change type of 'out' and 'in' to gdb_byte *.
2458
2459 2005-05-16  Andrew Cagney  <cagney@gnu.org>
2460
2461         * target.h (target_read_partial, target_write_partial)
2462         (do_xfer_memory, xfer_memory, target_read, target_write)
2463         (get_target_memory): For buffers, change "void*" to gdb_byte.
2464         (struct target_ops): Ditto for to_xfer_partial and
2465         deprecated_xfer_memory.
2466         * dcache.h (dcache_xfer_memory): Ditto.
2467         * target.c (default_xfer_partial, target_read_partial)
2468         (target_write_partial, target_read, target_write)
2469         (do_xfer_memory, update_current_target, get_target_memory): Update.
2470         (target_read_string): Change buf to a gdb_byte.
2471         * dcache.c (dcache_xfer_memory): Update.
2472         * exec.c (xfer_memory): Make buffer type to gdb_byte.
2473         * mem-break.c (default_memory_insert_breakpoint): Remove cast.
2474         * disasm.c (dis_asm_read_memory): Remove cast, use gdb_byte.
2475
2476 2005-05-16  Mark Kettenis  <kettenis@gnu.org>
2477
2478         * sol-thread.c (ignore): Change last argument to `gdb_byte.'
2479
2480         * config/i386/fbsd.mt (DEPRECATED_TM_FILE): Remove.
2481         * config/i386/fbsd64.mt (DEPRECATED_TM_FILE): Remove.
2482         * config/i386/nbsd.mt (DEPRECATED_TM_FILE): Remove.
2483         * config/i386/nbsd64.mt (DEPRECATED_TM_FILE): Remove.
2484         * config/sparc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
2485         * config/sparc/nbsd64.mt (DEPRECATED_TM_FILE): Remove.
2486
2487         * observer.sh: Quote $DJGPP.
2488
2489 2005-05-15  Daniel Jacobowitz  <dan@codesourcery.com>
2490
2491         * Makefile.in (.y.c): Update ylwrap invocation.
2492
2493 2005-05-15  Daniel Jacobowitz  <dan@codesourcery.com>
2494
2495         * linux-nat.c (child_follow_fork, linux_handle_extended_wait)
2496         (lin_lwp_attach_lwp, linux_nat_attach, wait_lwp, child_wait)
2497         (linux_nat_wait, kill_wait_callback): Use my_waitpid.
2498         (_initialize_linux_nat, lin_thread_get_thread_signals): Use
2499         SA_RESTART.
2500
2501 2005-05-14  Mark Kettenis  <kettenis@gnu.org>
2502
2503         * configure.tgt (vax-*-openbsd*): Set gdb_target to obsd.
2504         * config/vax/obsd.mt (TDEPFILES): New file.
2505
2506         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset): Use
2507         gdb_byte instead of bfd_byte.
2508
2509         * mips-tdep.c (mips_pseudo_register_read)
2510         (mips_pseudo_register_write): Change type of last argument to
2511         `gdb_byte *'.
2512         (mips_register_to_value, mips_value_to_register): Change type of
2513         last argument to `gdb_byte *'.  Remove casts that are no longer
2514         needed.
2515         (mips_fetch_instruction, fetch_mips_16): Use gdb_byte for buf.
2516         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
2517         (mips_o32_push_dummy_call, mips_o32_return_value): Use `const
2518         gdb_byte *' for val and gdb_byte for valbuf.  Remove casts that
2519         are no longer needed.
2520         (mips_eabi_return_value, mips_n32n64_return_value)
2521         (mips_o32_return_value, mips_o64_return_value): Change type of
2522         readbuf and writebuf arguments to `gdb_byte *'.
2523         (mips_read_fp_register_single): Change type of last argument to
2524         `gdb_byte *'.  Use `gdb_byte *' for raw_buffer.
2525         (mips_read_fp_register_double): Change type of last argument to
2526         `gdb_byte *'.
2527         (mips_print_fp_register): Use `gdb_byte *' for raw_buffer.  Remove
2528         casts that are no longer needed.
2529         (mips_print_register, print_gp_register_row): Use gdb_byte for
2530         raw_buffer.  Remove casts that are no longer needed.
2531         (mips_single_step_through_delay): Use gdb_byte for buf.
2532         (mips_breakpoint_from_pc): Change return type to `const gdb_byte
2533         *'.  Use gdb_byte for mips16_big_breakpoint, big_breakpoint,
2534         pmon_big_breakpoint, idt_big_breakpoint, mips16_little_breakpoint,
2535         little_breakpoint, pmon_little_breakpoint and
2536         idt_little_breakpoint.
2537         (mips_integer_to_address): Use `gdb_byte *' for tmp.
2538
2539         * config/m68k/obsd.mt (DEPRECATED_TM_FILE): Remove.
2540         * config/i386/obsd.mt (DEPRECATED_TM_FILE): Remove.
2541         * config/i386/obsd64.mt (DEPRECATED_TM_FILE): Remove.
2542         * config/pa/obsd.mt (DEPRECATED_TM_FILE): Remove.
2543         * config/sparc/obsd.mt (DEPRECATED_TM_FILE): Remove.
2544         * config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Remove.
2545
2546         * sparc-tdep.c (sparc_fetch_instruction, sparc_fetch_wcookie): Use
2547         gdb_byte for buf.
2548         (sparc32_pseudo_register_read, sparc32_pseudo_register_write):
2549         Change type of last argument to `gdb_byte *'.  Remove casts that
2550         are no longer needed.
2551         (sparc32_push_dummy_code, sparc32_store_arguments): Use gdb_byte
2552         for buf.
2553         (sparc_breakpoint_from_pc): Change return type to `const gdb_byte
2554         *'.  Use gdb_byte for break_insn.
2555         (sparc32_extract_return_value, sparc32_store_return_value): Change
2556         type of last argument to `gdb_byte *'.  Use gdb_byte for buf.
2557         (sparc32_return_value): Change type of readbuf and writebuf
2558         arguments to `gdb_byte *'.
2559         (sparc_software_single_step): Use gdb_byte for npc_save and
2560         nnpc_save.
2561         (sparc_supply_rwindow, sparc_collect_rwindow): Use gdb_byte for
2562         buf.
2563         (sparc32_supply_gregset, sparc32_collect_gregset)
2564         (sparc32_supply_fpregset, sparc32_collect_fpregset): Use `gdb_byte
2565         *' for regs.
2566         * sparc64-tdep.c (sparc64_pseudo_register_read)
2567         (sparc64_pseudo_register_write): Change type of last argument to
2568         `gdb_byte *'.  Remove casts that are no longer needed.
2569         (sparc64_store_floating_fields, sparc64_extract_floating_fields):
2570         Change type of valbuf argument to `gfd_byte *'.
2571         (sparc64_store_arguments): Use `gdb_byte *' for valbuf.  use
2572         gdb_byte for buf.
2573         (sparc64_extract_return_value, sparc64_store_return_value): Change
2574         type of last argument to `gdb_byte *'.  Use gdb_byte for buf.
2575         (sparc64_return_value): Change type of readbuf and writebuf
2576         arguments to `gdb_byte *'.
2577         (sparc64_supply_gregset, sparc64_collect_gregset)
2578         (sparc64_supply_fpregset, sparc64_collect_fpregset): Use `gdb_byte
2579         *' for regs.
2580
2581         * m68k-tdep.c (m68k_local_breakpoint_from_pc): Change return type
2582         to `const gdb_byte *'.  Use gdb_byte for break_insn.
2583         (m68k_register_to_value): Change type of last argument to
2584         `gdb_byte *'.  Use gdb_byte for from.
2585         (m68k_value_to_register): Change type of last argument to
2586         `gdb_byte *'.  Use gdb_byte for to.
2587         (m68k_extract_return_value): Change type of last argument to
2588         `gdb_byte *'.  Use gdb_byte for buf.  Remove unnecessary cast.
2589         (m68k_svr4_extract_return_value): Change type of last argument to
2590         `gdb_byte *'.  Use gdb_byte for buf.
2591         (m68k_store_return_value): Change type of last argument to
2592         `gdb_byte *'.  Remove unnecessary cast.
2593         (m68k_svr4_store_return_value): Change type of last argument to
2594         `gdb_byte *'.  Use gdb_byte for buf.
2595         (m68k_return_value, m68k_svr4_return_value): Change type of
2596         readbuf and writebuf arguments to `gdb_byte *'.
2597         (m68k_push_dummy_call, m68k_unwind_pc, m68k_frame_cache)
2598         (m68k_unwind_dummy_id): Use gdb_byte for buf.
2599         (m68k_get_longjmp_target): Use `gdb_byte *' for buf.
2600         * m68kbsd-tdep.c (m68kbsd_supply_fpregset)
2601         (m68kbsd_supply_gregset): Use `gdb_byte *' for regs.
2602
2603         * m88k-tdep.c (m88k_breakpoint_from_pc): Change return type to
2604         `const gdb_byte *'.  Use gdb_byte for break_insn.
2605         (m88k_return_value): Change type of readbuf and
2606         writebuf arguments to `gdb_byte *'.  Use gdb_byte for buf.
2607         (m88k_supply_gregset): Use `gdb_byte *' for regs.
2608
2609         * vax-tdep.c (vax_return_value): Change type of readbuf and
2610         writebuf arguments to `gdb_byte *'.
2611
2612         * amd64-tdep.c (amd64_return_value): Change type of readbuf and
2613         writebuf arguments to `gdb_byte *'.  Remove now redundant casts.
2614         * i386-tdep.c (i386_return_value): Change type of readbuf and
2615         writebuf arguments to `gdb_byte *'.
2616         (i386_pseudo_register_read, i386_pseudo_register_write): Change
2617         type of last argument to `gdb_byte *'.
2618         (i386_register_to_value, i386_value_to_register): Change type of
2619         last argument to `gdb_byte *'.  Simplify function a bit.
2620         * i387-tdep.h (i387_value_to_register, i387_register_to_value):
2621         Change type of last argument to `gdb_byte *'.
2622         * i387-tdep.c: Likewise.
2623
2624 2005-05-13  Andrew Cagney  <cagney@gnu.org>
2625
2626         * gdbarch.sh (pseudo_register_read, pseudo_register_write)
2627         (value_to_register, register_to_value, pointer_to_address)
2628         (address_to_pointer, return_value, extract_return_value)
2629         (store_return_value): Instead of a void pointer, use gdb_byte.
2630         * gdbarch.h, gdbarch.c: Regenerate.
2631         * inferior.h (unsigned_address_to_pointer)
2632         (signed_pointer_to_address, address_to_signed_pointer)
2633         (unsigned_pointer_to_address): Update.
2634         * arch-utils.h (legacy_return_value):
2635         * arch-utils.c (legacy_extract_return_value)
2636         (legacy_return_value): Update.
2637         * findvar.c (unsigned_pointer_to_address)
2638         (signed_pointer_to_address, unsigned_address_to_pointer)
2639         (address_to_signed_pointer): Update.
2640
2641 2005-05-13  Orjan Friberg  <orjanf@axis.com>
2642
2643         * cris-tdep.c (_initialize_cris_tdep): Improve help strings for
2644         cris-version, cris-mode, and cris-dwarf2-cfi settings.
2645
2646 2005-05-13  Orjan Friberg  <orjanf@axis.com>
2647
2648         * cris-tdep.c (usr_cmd_cris_version): Change type to int.
2649         (cris_mode_normal, cris_mode_guru, cris_modes, usr_cmd_cris_mode): Add.
2650         (struct gdbarch_tdep): Change type of cris_version to int.  Add
2651         cris_mode.
2652         (cris_mode, set_cris_mode): New functions.
2653         (crisv32_single_step_through_delay): Read from NRP register instead
2654         of ERP register in guru mode.
2655         (cris_breakpoint_from_pc): Rename break_insn to break8_insn.
2656         Add break15_insn, returned in guru mode.
2657         (_initialize_cris_tdep): Add call to add_setshow_enum_cmd for new
2658         cris-mode setting.
2659         (cris_dump_tdep): Add dump of cris_mode.
2660         (cris_gdbarch_init): Add cris_mode to search criteria for architecture.
2661         Register the sigtramp frame sniffer only if not in guru mode.
2662
2663 2005-05-13  Eli Zaretskii  <eliz@gnu.org>
2664
2665         * Makefile.in (go32-nat.o): Add $(top_h) to prerequisites.
2666
2667         * go32-nat.c: Include top.h.  Update copyright years.
2668         (init_go32_ops): Override the default value of gdbinit[] with
2669         "gdb.ini".
2670
2671         * cli/cli-cmds.c: Don't define GDBINIT_FILENAME.
2672         (init_cli_cmds): Use gdbinit[] instead of a compile-time literal
2673         string GDBINIT_FILENAME.
2674
2675         * top.c (PATH_MAX): Define if not defined.
2676         (gdbinit): Declare with a constant size PATH_MAX.
2677
2678         * config/i386/go32.mh (XM_FILE): Remove.
2679
2680         * config/i386/xm-go32.h: Remove file.
2681
2682 2005-05-12  Mark Kettenis  <kettenis@gnu.org>
2683
2684         * sol-thread.c: Include "solib.h".
2685         (sol_thread_attach): Use solib_add instead of SOLIB_ADD.
2686         * Makefile.in (sol-thread.o): Update dependencies.
2687
2688         * NEWS: Mention OpenBSD/mips64 as a new native configuration.
2689
2690 2005-05-12  Eli Zaretskii  <eliz@gnu.org>
2691
2692         * observer.sh (texi) [DJGPP]: If the file name includes a colon,
2693         convert it to the /dev/x/ form.
2694
2695 2005-05-12  Mark Kettenis  <kettenis@gnu.org>
2696
2697         * solib.h (CLEAR_SOLIB, SOLIB_ADD)
2698         (SOLIB_CREATE_INFERIOR_HOOK, SOLIB_REMOVE_INFERIOR_HOOK)
2699         (SOLIB_IN_DYNAMIC_LINKER, SOLIB_RESTART)
2700         (DISABLE_UNSETTABLE_BREAK, PC_SOLIB)
2701         (IN_SOLIB_DYNSYM_RESOLVE_CODE): Remove defines and orphaned
2702         comments.
2703         * breakpoint.c: Include "solib.h".
2704         (insert_bp_location) [!DISABLE_UNSETTABLE_BREAK]: Call
2705         solib_address.
2706         (remove_solib_event_breakpoints, create_solib_event_breakpoint)
2707         (disable_breakpoints_in_shlibs)
2708         (disable_breakpoints_in_unloaded_shlib)
2709         (re_enable_breakpoints_in_shlibs): Compile if SOLIB_ADD isn't
2710         defined. If PC_SOLIB isn't defined, call solib_address.
2711         (_initialize_breakpoint): Unconditionally install observer.
2712         * corelow.c: Include "solib.h".
2713         [SOLIB_ADD] (solib_add_stub): Remove prototype.
2714         (core_close) [!CLEAR_SOLIB]: Call clear_solib.
2715         (solib_add_stub) [!SOLIB_ADD] Call solib_add.
2716         (core_open): Unconditionally call solib_add_stub.
2717         * fork-child.c: Include "solib.h".
2718         (fork_inferior) [!SOLIB_CREATE_INFERIOR_HOOK]: Call
2719         solib_create_inferior_hook.
2720         * infcmd.c: Include "solib.h".
2721         (attach_command) [!SOLIB_ADD]: Call shlib_rescan.  Unconditionally
2722         call re_enable_breakpoints_in_shlibs.
2723         * infrun.c: Include "solib.h".
2724         (SOLIB_IN_SYNSYM_RESOLVE_CODE): Don't define if not already
2725         defined.
2726         (stop_on_solib_events, show_stop_on_solib_events): Include
2727         unconditionally.
2728         (follow_exec) [!SOLIB_CREATE_INFERIOR_HOOK]: Call
2729         solib_create_inferior_hook.
2730         (handle_inferior_event) [!SOLIB_ADD]: Call shlib_add.
2731         [!IN_SOLIB_DYNSYM_RESOLVE_CODE]: Call in_solib_dynsym_resolve_code.
2732         (_initialize_infrun): Unconditionally add "stop_on_solib-events"
2733         command.
2734         * remote.c: Include "solib.h".
2735         (remote_open_1): Unconditionally call no_shared_libraries.
2736         [!SOLIB_CREATE_INFERIOR_HOOK] Call solib_create_inferior_hook.
2737         * stack.c: Include "solib.h".
2738         (print_frame) [!PC_SOLIB] Call shlib_for_pc.
2739         * xcoffsolib.c (no_shared_libraries): Remove function.
2740         * Makefile.in (SFILES): Add solib.c.
2741         (ALLDEPFILES): Remove solib.c.
2742         (COMMON_OBS): Add solib.o.
2743         (breakpoint.o, corelow.o, fork-chiled.o, infcmd.o, infrun.o)
2744         (remote.o, stack.o): Update dependencies.
2745
2746 2005-05-12  Daniel Jacobowitz  <dan@codesourcery.com>
2747
2748         * cp-names.y: Renamed to ...
2749         * cp-name-parser.y: ... this.
2750         * Makefile.in (SFILES, YYFILES, YYOBJ): Rename cp-names.y to
2751         cp-name-parser.y.
2752         (test-cp-names.o): Renamed to test-cp-name-parser.o.
2753         (test-cp-names): Renamed to test-cp-name-parser.
2754         (clean, local-maintainer-clean): Update.
2755         (cp-names.o): Renamed to cp-name-parser.o.
2756
2757 2005-05-12  Eli Zaretskii  <eliz@gnu.org>
2758
2759         * observer.sh: Use observer.tmp instead of observer.inc-tmp which
2760         on 8+3 filesystems overwrites observer.inc.  Update copyright year
2761         of the resultant file.
2762
2763         * gnu-v3-abi.c (init_gnuv3_ops): Cast is_gnu_v3_mangled_dtor and
2764         is_gnu_v3_mangled_ctor to avoid compiler warnings.
2765
2766         * config/djgpp/config.sed: Adapt to latest Autoconf.
2767
2768         * config/djgpp/djconfig.sh: Add -Wpointer-arith and
2769         -Wuninitialized to the build warnings.
2770
2771 2005-05-11  Eli Zaretskii  <eliz@gnu.org>
2772
2773         * config/djgpp/fnchange.lst: Add mappings for inttypes*.m4,
2774         ChangeLog-2004, reg-cris*.dat, dw2-intermix.*, semcris*-switch.c.
2775         Fix mappings for hilo-hazard-?.s.
2776
2777         * config/djgpp/README: Update GDB versions and my email address.
2778
2779 2005-05-09  Andrew Cagney  <cagney@gnu.org>
2780
2781         Use gdb_byte in preference to bfd_byte.
2782         * gdbarch.sh: Update.
2783         * gdbarch.h, gdbarch.c: Re-generate.
2784         * ada-lang.c, ada-lang.h, ada-valprint.c, arch-utils.c: Update.
2785         * c-lang.c, c-lang.h, c-valprint.c, cp-valprint.c: Update.
2786         * f-lang.c, f-lang.h, f-valprint.c, gdbcore.h, jv-lang.h: Update.
2787         * jv-valprint.c, language.c, language.h, m2-lang.c: Update.
2788         * m2-lang.h, m2-valprint.c, objc-lang.c, p-lang.c: Update.
2789         * p-lang.h, p-valprint.c, regcache.c, scm-lang.c: Update.
2790         * scm-lang.h, scm-valprint.c, target.c, target.h: Update.
2791         * tramp-frame.c, valarith.c, valops.c, valprint.c: Update.
2792         * valprint.h, value.c, value.h: Update.
2793
2794 2005-05-09  Mark Kettenis  <kettenis@gnu.org>
2795
2796         * vaxbsd-nat.c (vaxbsd_supply_gregset, vaxbsd_collect_gregset):
2797         Use `gdb_byte *' for regs.
2798         * vax-tdep.c (vax_supply_gregset): Use `gdb_byte *' for regs;
2799         (vax_store_arguments, vax_push_dummy_call, vax_return_value): Use
2800         gdb_byte for buf.
2801         (vax_breakpoint_from_pc): Change return type to `const gdb_byte
2802         *'.  Use gdb_byte for break_insn.
2803         (vax_skip_prologue): Use gdb_byte for op.
2804
2805         * i387-tdep.c: Remove outdated comments.
2806
2807         * defs.h: Unconditionally include <sys/types.h>.
2808
2809 2005-05-08  Daniel Jacobowitz  <dan@codesourcery.com>
2810
2811         * mips-tdep.c (mips_stub_frame_sniffer): Handle .MIPS.stubs
2812         section like .plt.
2813
2814 2005-05-08  Mark Kettenis  <kettenis@gnu.org>
2815
2816         * i386-linux-tdep.c (linux_sigtramp_code, linux_rt_sigtramp_code):
2817         Change type to `static const gdb_byte'.
2818         (i386_linux_sigtramp_start, i386_linux_rt_sigtramp_start)
2819         (i386_linux_sigcontext_addr): Use gdb_byte for buf.
2820         * amd64-linux-tdep.c (linux_sigtramp_code): Change type to `static
2821         const gdb_byte'.
2822         (amd64_linux_sigtramp_start, amd64_linux_sigcontext_addr): Use
2823         gdb_byte for buf.
2824         * amd64fbsd-tdep.c (amd64fbsd_supply_uthread)
2825         (amd64fbsd_collect_uthread): Use gdb_byte for buf.
2826
2827         * config/ia64/nm-aix.h: Remove file.
2828
2829         * amd64-tdep.c (amd64_return_value): Use `gdb_byte *' in casts.
2830         (amd64_push_arguments): Use gdb_byte instead of bfd_byte.  Use
2831         gdb_byte for buf.
2832         (amd64_push_dummy_call): Use gdb_byte for buf.
2833         (amd64_analyze_prologue): Use gdb_byte for proto, buf and op.
2834         (amd64_frame_cache, amd64_sigtramp_frame_cache)
2835         (amd64_unwind_dummy_id): Use gdb_byte for buf.
2836         (amd64_supply_fxsave, amd64_collect_fxsave): Use `gdb_byte *' for
2837         regs.
2838         * amd64obsd-tdep.c (amd64obsd_supply_regset): Use `gdb_byte *' in
2839         casts.
2840         (amd64obsd_sigtramp_p): Use gdb_byte for sigreturn and `gdb_byte
2841         *' for buf,
2842
2843         * i386-tdep.c (i386_breakpoint_from_pc): Change return type to
2844         `const gdb_byte *'.  Use gdb_byte for break_insn.
2845         (i386_follow_jump): Use gdb_byte for op.
2846         (i386_analyze_struct_return): Use gdb_byte for proto1, proto2, buf
2847         and op.
2848         (i386_skip_probe): Use gdb_byte for buf and op.
2849         (struct i386_insn): Use gdb_byte for insn and mask.
2850         (i386_match_insn, i386_analyze_frame_setup)
2851         (i386_analyze_register_saves): Use gdb_byte for op.
2852         (i386_skip_prologue): Use gdb_byte for pic_pat and op;
2853         (i386_unwind_pc, i386_frame_cache, i386_sigtramp_frame_cache)
2854         (i386_unwind_dummy_id, i386_get_longjmp_target): Use gdb_byte for
2855         buf.
2856         (i386_extract_return_value, i386_store_return_value): Use
2857         `gdb_byte *' instead of `void *' for valbuf argument.  Remove now
2858         redundant cast.
2859         (i386_pseudo_register_read, i386_pseudo_register_write): Use
2860         gdb_byte for mmx_buf.
2861         (i386_register_to_value, i386_value_to_register): Use `gdb_byte *'
2862         instead of `char *' for buf.
2863         (i386_supply_gregset, i386_collect_gregset): Use `gdb_byte *'
2864         instead of `char *' for regs.
2865         (i386_svr4_sigcontext_addr): Use gdb_byte for buf.
2866         * i386obsd-tdep.c (i386obsd_sigtramp_p): Use gdb_byte for
2867         sigreturn and `gdb_byte *' for buf.
2868         (i386obsd_aout_supply_regset): Use `const gdb_byte *' in cast.
2869         (i386obsd_supply_uthread, i386obsd_collect_uthread): Use gdb_byte
2870         for buf.
2871         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use gdb_byte for buf.
2872
2873         * defs.h (gdb_byte): New typedef.  Tweak comments.
2874
2875         * target.h (target_link): Remove prototype.
2876         * target.c (target_link): Remove function.
2877         * symfile.c: Remove comment about rombug.
2878
2879 2005-05-04  Mark Kettenis  <kettenis@gnu.org>
2880
2881         * config/i386/cygwin.mh (XM_FILE): Remove variable.
2882         * config/i386/xm-cygwin.h: Remove file.
2883
2884 2005-05-03  Ben Elliston  <bje@au.ibm.com>
2885
2886         * infrun.c (handle_inferior_event): Update the comment about users
2887         of stepped_after_stopped_by_watchpoint.
2888
2889 2005-05-02  Corinna Vinschen  <vinschen@redhat.com>
2890
2891         * MAINTAINERS: Remove hint that sh64 doesn't build.
2892         * sh64-tdep.c (sh64_push_dummy_call): Cast buf in call to write_memory.
2893         (sh64_do_fp_register): make raw_buffer unsigned.
2894         (sh64_do_register): Ditto.
2895
2896 2005-05-02  Mark Kettenis  <kettenis@gnu.org>
2897
2898         * bsd-uthread.c: Include "solib.h".
2899         * Makefile.in (bsd-uthread.o): Update dependencies.
2900
2901 2005-05-01  Daniel Jacobowitz  <dan@codesourcery.com>
2902
2903         * gdbarch.sh (deprecated_current_gdbarch_select_hack): Flush
2904         cached frames when changing gdbarch.
2905         * gdbarch.c: Regenerated.
2906
2907 2005-05-01  Andrew Cagney  <cagney@gnu.org>
2908
2909         * MAINTAINERS: Note that cris, m68k, mn10300, sh64, sparc and vax
2910         do not build.
2911
2912         * gdbarch.sh (deprecated_extract_return_value)
2913         (breakpoint_from_pc, deprecated_store_return_value)
2914         (memory_insert_breakpoint, memory_remove_breakpoint): Change type
2915         of buffer to a bfd_byte pointer.
2916         * gdbarch.h, gdbarch.c: Re-generate.
2917         * mem-break.c (memory_insert_breakpoint)
2918         (memory_remove_breakpoint, default_memory_insert_breakpoint)
2919         (default_memory_remove_breakpoint): Update.
2920         * target.h (memory_insert_breakpoint)
2921         (memory_remove_breakpoint, default_memory_insert_breakpoint)
2922         (default_memory_remove_breakpoint): Update declarations.
2923         (struct target_ops): Update to_insert_breakpoint and
2924         to_remove_breakpoint.
2925         * target.c (debug_to_remove_breakpoint)
2926         (debug_to_insert_breakpoint): Update.
2927         * remote-m32r-sdi.c (m32r_remove_breakpoint)
2928         (m32r_insert_breakpoint): Update.
2929         * m32r-tdep.c (m32r_memory_insert_breakpoint)
2930         (m32r_memory_remove_breakpoint): Update.
2931         * remote-e7000.c (e7000_insert_breakpoint)
2932         (e7000_remove_breakpoint): Update.
2933         * remote-rdi.c (arm_rdi_insert_breakpoint)
2934         (arm_rdi_remove_breakpoint): Update.
2935         * remote-sim.c (gdbsim_insert_breakpoint)
2936         (gdbsim_remove_breakpoint): Update.
2937         * exec.c (ignore): Update.
2938         * rs6000-tdep.c (rs6000_extract_return_value): Update.
2939         * ia64-tdep.c (ia64_memory_insert_breakpoint)
2940         (ia64_memory_remove_breakpoint): Update.
2941         * remote-rdp.c (remote_rdp_insert_breakpoint)
2942         (remote_rdp_remove_breakpoint): Update.
2943
2944 2005-05-01  Mark Kettenis  <kettenis@gnu.org>
2945
2946         * somsolib.c, somsolib.h: Remove files.
2947         * Makefile.in (somsolib_h): Remove.
2948         (somsolib.o): Remove dependency.
2949
2950         * fbsd-nat.c: Include <sys/sysctl.h>.
2951         (fbsd_pid_to_exec_file): Use KERN_PROC_PATHNAME sysctl if
2952         available.  Plug memory leak.  Fixes PR gdb/1922.
2953
2954 2005-04-29  Mark Kettenis  <kettenis@gnu.org>
2955
2956         * solist.h (TARGET_SO_FREE_SO, TARGET_SO_CLEAR_SOLIB)
2957         (TARGET_SO_SOLIB_CREATE_INFERIOR_HOOK)
2958         (TARGET_SO_SPECIAL_SYMBOL_HANDLING, TARGET_SO_CURRENT_SOS)
2959         (TARGET_SO_OPEN_SYMBOL_FILE_OBJECT): Remove defines.
2960         * solib.c (solib_data): New variable.
2961         (solib_init, solib_ops): New functions.
2962         (solib_open, solib_map_sections, free_so, update_solib_list)
2963         (solib_add, clear_solib, solib_create_inferior_hook)
2964         (in_solib_dynsym_resolve_code): Call architecture-dependent code
2965         using solib_ops.
2966         (_initialize_solib): Register SOLIB_DATA.
2967
2968 2005-04-29  Kevin Buettner  <kevinb@redhat.com>
2969
2970         * frv-tdep.c (find_func_descr): Verify that entry point can be
2971         found in symbol table prior to looking up its function descriptor.
2972         * solib-frv.c (find_canonical_descriptor_in_load_object): Add
2973         test for non-NULL link map.
2974
2975 2005-04-29  Corinna Vinschen  <vinschen@redhat.com>
2976
2977         * MAINTAINERS: Revert h8300 state to un-deleted.
2978         * Makefile.in: Re-add h8300-tdep.o dependencies.
2979         * h8300-tdep.c: Slightly rearrange type definitions and functions.
2980         (struct frame_extra_info): Remove.
2981         (struct h8300_frame_cache): Replace locals with differently defined
2982         uses_fp member.
2983         (h8300_unwind_pc): Simplify.
2984         (h8300_unwind_sp): New function.
2985         (h8300_unwind_dummy_id): Simplify.
2986         (h8300_init_frame_cache): New function.
2987         (h8300_is_argument_spill): Use reworked defines for opcode scanning.
2988         (h8300_skip_prologue): Rewrite.
2989         (h8300_alloc_frame_cache): Remove.
2990         (h8300_analyze_frame_setup): Remove.
2991         (h8300_analyze_register_saves): Remove.
2992         (h8300_analyze_prologue): Rewrite.
2993         (h8300_frame_cache): Use h8300_init_frame_cache instead of
2994         h8300_alloc_frame_cache.  Use BINWORD instead of constant 4 to
2995         accomodate 16 bit mode.  Fix saved_sp and register offset evaluation.
2996         (h8300_frame_this_id): Correctly calculate this_id using saved stack
2997         pointer instead of base.
2998         (h8300_frame_prev_register): Drop needless braces.
2999         (h8300_frame_base_address): New function.
3000         (h8300_frame_base): New frame_base.
3001         (h8300_push_dummy_call): Return correct CFA value.
3002         (h8300h_extract_return_value): Fix 8 byte value handling.
3003         (h8300_use_struct_convention): New function.
3004         (h8300h_use_struct_convention): New function.
3005         (h8300h_store_return_value): Fix 8 byte value handling.
3006         (h8300_return_value): New function.
3007         (h8300h_return_value): New function.
3008         (h8300_extract_struct_value_address): Remove deprecated functionality.
3009         (h8300_push_dummy_code): Remove.
3010         (h8300_gdbarch_init): Replace set_gdbarch_extract_return_value and
3011         set_gdbarch_store_return_value calls by set_gdbarch_return_value.
3012         Remove calls to set_gdbarch_deprecated_fp_regnum,
3013         set_gdbarch_deprecated_extract_struct_value_address,
3014         set_gdbarch_deprecated_use_struct_convention and
3015         set_gdbarch_push_dummy_code.
3016         Add calls to set_gdbarch_unwind_sp and frame_base_set_default.
3017         Slightly rearrange code.
3018
3019 2005-04-28  Jim Blandy  <jimb@redhat.com>
3020
3021         * parse.c (namecopy): Change allocation conventions.
3022         (namecopy_size): New variable.
3023         (copy_name): Allocate namecopy using xrealloc, instead of assuming
3024         it has adequate space allocated to it.
3025         (parse_exp_1): Don't try to allocate space for namecopy here.
3026
3027 2005-04-28  Eli Zaretskii  <eliz@gnu.org>
3028
3029         * cli/cli-cmds.c (edit_command): If symtab->fullname is not yet
3030         set, use symtab_to_fullname, instead of trying to do its job.  Use
3031         xstrprintf instead of malloc and sprintf.
3032
3033 2005-04-28  Kevin Buettner  <kevinb@redhat.com>
3034
3035         * remote.c (init_remote_state): Eliminate use of
3036         deprecated_register_bytes().
3037
3038 2005-04-28  Andrew Cagney  <cagney@gnu.org>
3039
3040         * valops.c (check_field): Make buffer a bfd_byte.
3041         * value.c (unpack_long, unpack_double, unpack_pointer)
3042         (unpack_field_as_long, modify_field): Ditto.
3043         * value.h: Update declarations.
3044
3045 2005-04-28  Paul Brook  <paul@codesourcery.com>
3046
3047         * exceptions.c (print_flush): Handle NULL gdb_stdout_serial.
3048
3049 2005-04-27  Mark Kettenis  <kettenis@gnu.org>
3050
3051         * solib-svr4.c (_initialize_svr4_solib)
3052         [SVR4_FETCH_LINK_MAP_OFFSETS]: Don't set non-existent variable
3053         svr4_legacy_fetch_link_map_offsets.
3054
3055         * sh-tdep.c (sh_linux_svr4_fetch_link_map_offsets): Remove function.
3056         (sh_gdbarch_init): Remove redundant prototype.
3057         * sh-linux-tdep.c: New file.
3058         * config/sh/tm-linux.h (sh_linux_svr4_fetch_link_map_offsets):
3059         Remove prototype.
3060         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3061         * config/sh/linux.mt (TDEPFILES): Add sh64-tdep.o, remove
3062         solib-legacy.o.
3063         * Makefile.in (sh-linux-tdep.o): New.
3064
3065         * solib-svr4.c: Update copyright year.  Include "gdb_assert.h".
3066         (SVR4_FETCH_LINK_MAP_OFFSETS): Don't define if not already
3067         defined.
3068         (legacy_fetch_link_map_offsets): Remove prototype.
3069         (fetch_link_map_offsets_gdbarch_data): Remove.
3070         (LM_ADDR, LM_NEXT, IGNORE_FIRST_LINK_MAP_ENTRY)
3071         (first_link_map_member, open_symbol_file_object, svr4_current_sos)
3072         (svr4_fetch_objfile_link_map): Call svr4_fetch_link_map_offsets
3073         instead of SVR4_FETCH_LINK_MAP_OFFSETS.
3074         (solib_svr4_data): New variable.
3075         (struct solib_svr4_ops): New.
3076         (solib_svr4_init): New fynction.
3077         (legacy_fetch_link_map_offsets, init_fetch_link_map_offsets):
3078         Remove functions.
3079         (svr4_fetch_link_map_offsets, svr4_have_link_map_offsets): Rewrite
3080         using the new `struct solib_svr4_ops'.
3081         (_initialize_svr4_solib): Replace registration of per-architecture
3082         data.  Add temporary hack to set
3083         svr4_legacy_fetch_link_map_offsets if SVR4_FETCH_LINK_MAP_OFFSETS
3084         is set.
3085         * Makefile.in (solib-svr4.o): Update dependencies.
3086
3087 2005-04-26  Mark Kettenis  <kettenis@gnu.org>
3088
3089         * configure.tgt (*-*-freebsd*): Set gdb_osabi to
3090         GDB_OSABI_FREEBSD_ELF.  Partial fix for PR gdb/1922.
3091
3092 2005-04-26  Andrew Cagney  <cagney@gnu.org>
3093
3094         * remote.c (remote_open_1): Move "ex"'s declaration to where it is
3095         used.
3096         (remote_get_thread_local_address): Use throw_error, include a
3097         printed string.
3098         * linux-thread-db.c (thread_db_get_thread_local_address): Ditto.
3099         * dwarf2loc.c (dwarf_expr_tls_address): Ditto.
3100         * cli/cli-script.c (script_from_file): Mark up throw_error message.
3101         * linespec.c (symtab_from_filename, decode_variable): Ditto.
3102
3103 2005-04-26  Andrew Cagney  <cagney@gnu.org>
3104
3105         Rename 'struct exception' to 'struct gdb_exception'.
3106         * wrapper.c: Update.
3107         * varobj.c: Update.
3108         * tui/tui-interp.c: Update.
3109         * remote.c: Update.
3110         * mi/mi-main.c: Update.
3111         * mi/mi-interp.c: Update.
3112         * linux-thread-db.c: Update.
3113         * interps.h: Update.
3114         * interps.c: Update.
3115         * exceptions.h: Update.
3116         * exceptions.c: Update.
3117         * dwarf2loc.c: Update.
3118         * cli/cli-interp.c: Update.
3119         * cli/cli-script.c: Update.
3120         * breakpoint.c: Update.
3121
3122 2005-04-25  Mark Mitchell  <mark@codesourcery.com>
3123
3124         * event-loop.c (gdb_select): Program defensively.
3125
3126         * event-loop.c (gdb_assert.h): Include.
3127         (<windows.h>): Include under Windows.
3128         (<io.h>): Likeiwse.
3129         (gdb_select): New function.
3130         (gdb_wait_for_event): Use it.
3131         * Makefile.in (event-loop.o): Depend on $(gdb_assert_h).
3132
3133 2005-04-23  Mark Kettenis  <kettenis@gnu.org>
3134
3135         * sparc64-tdep.c: Include "dwarf2-frame.h".
3136         (sparc64_dwarf2_frame_init_reg): New function.
3137         * Makefile.in (sparc64-tdep.o): Update dependencies.
3138
3139 2005-04-22  David S. Miller  <davem@davemloft.net>
3140
3141         * sparc64-linux-tdep.c (sparc64_linux_init_abi): Add call to
3142         sparc64_init_abi().
3143
3144 2005-04-22  Mark Kettenis  <kettenis@gnu.org>
3145
3146         * ser-base.c: Include "ser-base.h" instead of "ser-unix.h".
3147
3148 2005-04-22  Mark Mitchell  <mark@codesourcery.com>
3149
3150         * ser-base.c (<sys/time.h>): Include.
3151
3152 2005-04-22  Mark Kettenis  <kettenis@gnu.org>
3153
3154         * ppcobsd-tdep.c (ppcobsd_init_abi): Set return_value.
3155
3156         * sparc-linux-tdep.c: Reorder includes.  Tweak a few comments.
3157         (LINUX32_SIGTRAMP_INSN0, LINUX32_SIGTRAMP_INSN1)
3158         (LINUX32_RT_SIGTRAMP_INSN0, LINUX32_RT_SIGTRAMP_INSN1): Remove
3159         macros.
3160         (sparc32_linux_sigframe, sparc32_linux_rt_sigframe): Hardcode
3161         instructions.
3162         * sparc64-linux-tdep.c: Reorder includes.  Tweak a few comments.
3163         (LINUX64_RT_SIGTRAMP_INSN0, LINUX64_RT_SIGTRAMP_INSN1): Remove
3164         macros.
3165         (sparc64_linux_rt_sigframe): Hardcode instructions.
3166         * Makefile.in (sparc-linux-tdep.o, sparc64-linux-tdep.o): Update
3167         dependencies.
3168
3169         * sparc-linux-tdep.c: Update copyright year.
3170         (sparc32_linux_init_abi): Set skip_trampoline_code and
3171         solib_svr4_fetch_link_map_offsets.  Set TDEP->plt_entry_size.
3172         Don't set software_single_step and don't call
3173         sparc32_sol2_init_abi.
3174         * sparc64-linux-tdep.c: Update copyright year.
3175         (sparc64_linux_init_abi): Set skip_trampoline_code and
3176         solib_svr4_fetch_link_map_offsets.  Set TDEP->plt_entry_size.
3177         Don't set software_single_step and don't call
3178         sparc64_sol2_init_abi.
3179
3180 2005-04-22  Eli Zaretskii  <eliz@gnu.org>
3181
3182         * remote-st.c (_initialize_remote_st2000): Remove the extraneous
3183         "<command>" string from the call to add_com.
3184
3185         * remote-sim.c (_initialize_remote_sim): Ditto.
3186
3187         * remote-utils.c (_initialize_sr_support): Ditto.
3188
3189         * remote-mips.c (_initialize_remote_mips): Ditto.
3190
3191 2005-04-21  David S. Miller  <davem@davemloft.net>
3192
3193         * sparc-linux-tdep.c (sparc32_linux_sigframe_init): New function.
3194         (sparc32_linux_sigframe, sparc32_linux_rt_sigframe): New tramp_frames.
3195         (sparc_linux_sigtramp_start, sparc32_linux_sigtramp_start,
3196         sparc32_linux_rt_sigtramp_start, sparc32_linux_sigtramp_p,
3197         sparc32_linux_sigtramp_frame_cache,
3198         sparc32_linux_sigtramp_frame_this_id,
3199         sparc32_linux_sigtramp_frame_prev_register,
3200         sparc32_linux_sigtramp_frame_unwind,
3201         sparc32_linux_sigtramp_frame_sniffer): Delete.
3202         (sparc32_linux_init_abi): Register new tramp unwinders.  Kill
3203         register of old sigtramp sniffer.
3204         * sparc64-linux-tdep.c (sparc64_linux_sigframe_init): New
3205         function.
3206         (sparc64_linux_rt_sigframe): New tramp frame.
3207         (sparc64_linux_sigtramp_start, sparc64_linux_sigtramp_p,
3208         sparc64_linux_sigtramp_frame_cache,
3209         sparc64_linux_sigtramp_frame_this_id,
3210         sparc64_linux_sigtramp_frame_prev_register,
3211         sparc64_linux_sigtramp_frame_unwind,
3212         sparc64_linux_sigtramp_frame_sniffer): Delete.
3213         (sparc64_linux_init_abi): Register new tramp unwinders.  Kill
3214         register of old sigtramp sniffer.
3215         Makefile.in (sparc64-linux-tdep.o): Update dependencies.
3216         (sparc-linux-tdep.o): Likewise.
3217
3218 2005-04-21  Mark Kettenis  <kettenis@gnu.org>
3219
3220         * ser-base.c: Include "gdb_string.h".
3221         * Makefile.in (ser-base.o): Update dependencies.
3222
3223 2005-04-20  David S. Miller  <davem@davemloft.net>
3224
3225         * sparc-linux-tdep.c (sparc32_linux_sigtramp_p): Fix
3226         signal return stub symbol names, __restore and __restore_rt are
3227         the i386 symbol names not the sparc ones.
3228         (sparc32_linux_sigtramp_frame_cache): Document bits/sigcontext.h
3229         as where the offsets were obtained from.
3230         * sparc64-linux-tdep.c (LINUX64_RT_SIGTRAMP_INSN0,
3231         LINUX64_RT_SIGTRAMP_INSN1): New defines.
3232         (sparc64_linux_sigtramp_start, sparc64_linux_sigtramp_p,
3233         sparc64_linux_sigtramp_frame_cache,
3234         sparc64_linux_sigtramp_frame_this_id,
3235         sparc64_linux_sigtramp_frame_prev_register,
3236         sparc64_linux_sigtramp_frame_sniffer): New functions.
3237         (sparc64_linux_sigtramp_frame_unwind): New frame unwinder.
3238         (sparc64_linux_init_abi): Register sigtramp frame sniffer.
3239         * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
3240
3241 2005-04-20  Mark Mitchell  <mark@codesourcery.com>
3242
3243         * configure.ac: On MinGW, define USE_WIN32API and link with
3244         -lws2_32.
3245         * ser-tcp.c (<winsock2.h>): Include, for Windows.
3246         (ETIMEDOUT): Define, for Windows.
3247         (ioctl): Likewise.
3248         (closesocket): Define, for POSIX.
3249         (net_open): Adjust for differences in socket functions between
3250         Windows and UNIX.
3251         (net_close): Likweise.
3252         (net_read_prim): New function.
3253         (net_write_prim): Likewise.
3254         (_initialize_ser_tcp): Initialize winsock.  Fill in read_prim and
3255         write_prim.
3256         * ser-unix.h (ser_unix_readcchar): Remove.
3257         (ser_unix_read_prim): Declare.
3258         (ser_unix_write_prim): Likewise.
3259         * ser-unix.c (generic_readchar): Move to ser-base.c.
3260         (ser_unix_wait_for): Likewise.
3261         (do_unix_readchar): Likewise.
3262         (ser_unix_readchar): Likewise.
3263         (_initialize_ser_hardwire): Initialize read_prim and write_prim.
3264         (ser_unix_read_prim): New function.
3265         (ser_unix_write_prim): Likewise.
3266         * ser-base.h (generic_readchar): Declare.
3267         (ser_base_readchar): Likewise.
3268         * ser-base.c (<winsock2.h>): Include, for windows.
3269         (fd_event): Use the read primitive specified by the serial
3270         interface.
3271         (ser_base_wait_for): Moved from ser-unix.c
3272         (do_ser_base_read_char): Likewise.
3273         (generic_readchar): Likewise.
3274         (ser_base_readchar): Likewise.
3275         (ser_base_write): Use the write primitive specified by the serial
3276         interface.
3277         * ser-pipe.c (_initialize_ser_pipe): Use ser_base_readchar, not
3278         ser_unix_readchar.  Initialize read_prim and write_prim.
3279         * serial.c (struct serial_ops): Add read_prim and write_prim.
3280         * configure: Regenerate.
3281
3282 2005-04-19  Ben Elliston  <bje@au.ibm.com>
3283
3284         * c-lang.c (c_create_fundamental_type): Comment fix.
3285
3286 2005-04-18  Michael Snyder  <msnyder@redhat.com>
3287
3288         * mn10300-tdep.c: Assimilate code from mn10300-prologue.c.
3289         * mn10300-prologue.c: Remove.
3290         * mn10300-tdep.h: Add enums from mn10300-prologue.c.
3291         Remove prototypes.
3292         * config/mn10300/mn10300.mt: Remove mn10300-prologue module.
3293
3294 2005-04-18  Michael Snyder  <msnyder@redhat.com>
3295
3296         * config/mn10300/mn10300.mt: Add mn10300-prologue module.
3297         * ia64-tdep.c (ia64_get_dyn_info_list): Fix indent.
3298
3299 2005-04-18  Mark Kettenis  <kettenis@gnu.org>
3300
3301         * config/nm-bsd.h: Remove file.
3302
3303         * hppabsd-nat.c: Update copyright year.  Include "target.h" and
3304         "inf-ptrace.h".
3305         (hppabsd_fetch_registers): Renamed from fetch_inferior_registers;
3306         made static.
3307         (hppabsd_store_registers): Renamed from store_inferior_registers;
3308         made static.
3309         (_initialize_hppabsd_nat): New function and prototype.
3310         * config/pa/obsd.mh (NATDEPFILES): Remove infptrace.o and
3311         inftarg.o.  Add inf-ptrace.o.
3312         (NAT_FILE): Remove.
3313         * Makefile.in (hppabsd-nat.o): Update dependencies.
3314
3315 2005-04-17  Mark Kettenis  <kettenis@gnu.org>
3316
3317         * pa64solib.c, pa64solib.h: Remove files.
3318         * Makefile.in (pa64solib_h): Remove variable
3319         (pa64solib.o): Remove dependency.
3320
3321 2005-04-16  Mark Kettenis  <kettenis@gnu.org>
3322
3323         * ppcobsd-nat.c: Update copyright year.  Include "inf-ptrace.h".
3324         (ppcobsd_fetch_registers): Renamed from fetch_inferior_registers;
3325         made static.
3326         (ppcobsd_store_registers): Renamed from store_inferior_registers;
3327         made static.
3328         (_initialize_ppcobsd_nat): Construct and add target vector.
3329         * config/powerpc/obsd.mh (NATDEPFILES): Remove infptrace.o and
3330         inftarg.o.  Add inf-ptrace.o.
3331         (NAT_FILE): Remove.
3332         * Makefile.in (ppcobsd-nat.o): Update dependencies.
3333
3334         * ppcobsd-tdep.c: Include "floatformat.h".
3335         (ppcobsd_init_abi): Set long_double_bit and long_double_format.
3336         * Makefile.in (ppcobsd-tdep.o): Update dependencies.
3337
3338         * ppcobsd-tdep.c: Fix typo in comment.
3339         (_initialize_ppcobsd_tdep): Register GDB_OSABI_OPENBSD_ELF for
3340         bfd_arch_rs6000 too.
3341
3342 2005-04-15  Kevin Buettner  <kevinb@redhat.com>
3343
3344         * remote.c (remote_get_thread_local_address): Throw a more
3345         meaningful exception when remote target doesn't have support
3346         for the qGetTLSAddr packet.
3347
3348 2005-04-15  Kevin Buettner  <kevinb@redhat.com>
3349
3350         * remote.c (remote_protocol_qGetTLSAddr): New static global variable.
3351         (set_remote_protocol_qGetTLSAddr_packet_cmd)
3352         (show_remote_protocol_qGetTLSAddr_packet_cmd)
3353         (remote_get_thread_local_address): New functions.
3354         (init_all_packet_configs): Initialize remote_protocol_qGetTLSAddr
3355         variable.
3356         (init_remote_ops): Initialize ``to_get_thread_local_address'' in
3357         target vector.
3358         (show_remote_cmd): Call show_remote_protocol_qGetTLS_Addr_packet_cmd().
3359         (_initialize_remote):  Register the following commands:
3360         "set remote get-thread-local-storage-address-packet" and
3361         "show remote get-thread-local-address-packet".
3362
3363 2005-04-15  Kevin Buettner  <kevinb@redhat.com>
3364
3365         * remote.c (add_packet_config_cmd): Delete unused variables.
3366
3367 2005-04-15  Kevin Buettner  <kevinb@redhat.com>
3368
3369         * remote.c (show_remote_protocol_vcont_packet_cmd )
3370         (show_remote_protocol_qSymbol_packet_cmd)
3371         (show_remote_protocol_P_packet_cmd)
3372         (show_remote_protocol_Z_software_bp_packet_cmd)
3373         (show_remote_protocol_Z_hardware_bp_packet_cmd)
3374         (show_remote_protocol_Z_write_wp_packet_cmd)
3375         (show_remote_protocol_Z_read_wp_packet_cmd)
3376         (show_remote_protocol_Z_access_wp_packet_cmd)
3377         (show_remote_protocol_binary_download_cmd)
3378         (show_remote_protocol_qPart_auxv_packet_cmd)
3379         (show_remote_protocol_p_packet_cmd ): Delete calls to
3380         deprecated_show_value_hack().
3381
3382 2005-04-15  Corinna VInschen  <vinschen@redhat.com>
3383
3384         * MAINTAINERS: Change sh64-elf state to non-broken.
3385         * Makefile.in: Fix dependencies for sh64-tdep.o.
3386         * configure.tgt: Add sh64-*-elf case.
3387         * sh-tdep.c (sh_gdbarch_init): Reactivate bfd_mach_sh5 case.
3388         * sh64-tdep.c: Rework to replace all deprecated mechanisms with
3389         modern methods.
3390         * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3391         * config/sh/sh64.mt: Resurrect.
3392
3393 2005-04-15  Kei Sakamoto <sakamoto.kei@renesas.com>
3394
3395         * regformats/reg-m32r.dat: New file.
3396
3397 2005-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
3398
3399         * arm-tdep.c (fp_model_strings): Add terminating NULL.
3400         (arm_abi_strings, arm_abi_global, arm_abi_string): New
3401         variables.
3402         (arm_extract_return_value, arm_store_return_value): Don't use
3403         arm_get_fp_model.
3404         (arm_get_fp_model, arm_set_fp): Delete.
3405         (arm_update_current_architecture): New function.
3406         (set_fp_model_sfunc): Call arm_update_current_architecture.
3407         (show_fp_model): Update output messages.
3408         (arm_set_abi, arm_show_abi): New functions.
3409         (arm_elf_osabi_sniffer): Only handle ELFOSABI_ARM.
3410         (arm_gdbarch_init): Infer the object's ABI separately from its
3411         OSABI.  Search for a matching architecture.  Honor the global
3412         ABI and FPU settings.  Set floating point format based on the
3413         architecture.
3414         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs):
3415         Delete.
3416         (_initialize_arm_tdep): Don't call gdbarch_register_osabi.
3417         Create "arm set abi" command.
3418         * arm-tdep.h (arm_get_fp_model): Delete prototype.
3419         (enum arm_abi_kind): New type.
3420         (struct gdbarch_tdep): Add arm_abi field.
3421         * arm-linux-tdep.c (arm_linux_init_abi): Only override
3422         tdep->fp_model if it is ARM_FLOAT_AUTO.
3423         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Likewise.
3424         (arm_netbsd_elf_init_abi): Likewise.
3425         * defs.h (enum gdb_osabi): Delete ARM-specific OSABIs.
3426         * osabi.c (gdb_osabi_name): Likewise.
3427
3428 2005-04-11  Daniel Jacobowitz  <dan@codesourcery.com>
3429
3430         * config/djgpp/fnchange.lst: Remove entries for gdb.gdbserver.
3431
3432 2005-04-10  Mark Kettenis  <kettenis@gnu.org>
3433
3434         * rs6000-tdep.c (ppc_supply_fpregset): Increment offset by 8 for
3435         floating-point registers.
3436         (ppc_collect_fpregset): Likewise.  Fix collection of registers.
3437
3438 2005-04-09  Mark Kettenis  <kettenis@gnu.org>
3439
3440         * ppcobsd-tdep.c: Update copyright year.  Include "trad-frame.h"
3441         and "tramp-frame.h".
3442         (ppcobsd_sigtramp_cache_init): New function.
3443         (ppcobsd_sigtramp): New variable.
3444         (ppcobsd_init_abi): Prepend signal trampoline unwinder.
3445         * Makefile.in (ppcobsd-tdep.o): Update dependencies.
3446
3447 2005-04-08  Andrew Cagney  <cagney@gnu.org>
3448
3449         * MAINTAINERS (GDB/MI): Andrew Cagney, Elena Zannoni, and Fernando
3450         Nasser have decided to step back from GDB/MI.
3451
3452 2005-04-08  Daniel Jacobowitz  <dan@codesourcery.com>
3453
3454         * config/fnchange.lst: Add testsuite/gdb.gdbserver entries.
3455
3456 2005-04-08  Daniel Jacobowitz  <dan@codesourcery.com>
3457
3458         * dwarf2-frame.c (struct dwarf2_frame_cache): New field
3459         undefined_retaddr.
3460         (dwarf2_frame_cache): Initialize undefined_retaddr.
3461         (dwarf2_frame_this_id): Return an invalid frame ID if
3462         undefined_retaddr.
3463
3464 2005-04-05  Jim Blandy  <jimb@redhat.com>
3465
3466         Move construction of IA-32 vector types to i386-tdep.c.
3467         * gdbtypes.c (build_builtin_type_vec64i,
3468         build_builtin_type_vec128i): Delete functions.
3469         (builtin_type_vec64i, builtin_type_vec128i): Delete variables.
3470         (build_gdbtypes): Don't initialize them.
3471         (_initialize_gdbtypes): Don't register GDBARCH swap entries for
3472         them.
3473         * gdbtypes.h (builtin_type_vec64i, builtin_type_vec128i): Delete
3474         declarations.
3475         (builtin_type_v2_float, builtin_type_v2_int32,
3476         builtin_type_v4_int16, builtin_type_v8_int8,
3477         builtin_type_v2_double, builtin_type_v4_float,
3478         builtin_type_v2_int64, builtin_type_v4_int32,
3479         builtin_type_v8_int16, builtin_type_v16_int8): Add extern
3480         declarations.
3481         * i386-tdep.c (i386_mmx_type, i386_sse_type): New variables.
3482         (i386_build_mmx_type, i386_build_sse_type): New functions.
3483         (i386_register_type): Call them, rather than referring to
3484         builtin_type_vec64i and builtin_type_vec128i.
3485
3486 2005-04-02  Daniel Jacobowitz  <dan@codesourcery.com>
3487
3488         * mips-linux-tdep.c (mips_linux_o32_sigframe_init): Adjust
3489         big-endian correction code to not offset 32-bit registers.
3490         Locate floating point registers correctly.
3491
3492 2005-04-02  Mark Kettenis  <kettenis@gnu.org>
3493
3494         * main.c: Update copyright year.
3495         (captured_main): Avoid using strcpy and strcat.
3496
3497 2005-04-01  Michael Snyder  <msnyder@redhat.com>
3498
3499         * dummy-frame.c (dummy_frame_sniffer): Optimization: don't bother
3500         computing this_id if there are no dummy frames on the stack.
3501
3502         * mn10300-tdep.c (mn10300_frame_unwind_cache): Use
3503         find_partial_func instead of unwind_pc to identify frame.
3504         (mn10300_push_dummy_call): Handle struct args, struct_return.
3505
3506         * mn10300-prologue.c (set_movm_offsets): Don't test variable
3507         before setting it.
3508         * mn10300-tdep.c (mn10300_skip_prologue): Use analyze_prologue
3509         instead of skip_prologue_using_sal.
3510
3511 2005-03-31  Kevin Buettner  <kevinb@redhat.com>
3512
3513         * solib-frv.c (struct lm_info): Add new field ``lm_addr''.
3514         (main_lm_addr): New static global.
3515         (frv_current_sos): Retain the link map address for each entry.
3516         (frv_clear_solib): Clear main_lm_addr.
3517         (frv_fetch_objfile_link_map): New function.
3518         * frv-tdep.c (frv_gdbarch_init): Register TLS load module fetcher.
3519         * frv-tdep.h (frv_fetch_objfile_link_map): Declare.
3520
3521 2005-03-31  Kevin Buettner  <kevinb@redhat.com>
3522
3523         * gdbarch.sh (fetch_tls_load_module_address): New architecture method.
3524         * gdbarch.c, gdbarch.h: Regenerate.
3525         * dwarf2loc.c (dwarf_expr_tls_address): Fetch TLS load module
3526         address and pass this address, instead of the objfile address, to
3527         target_get_thread_local_address().
3528         * linux-thread-db.c (thread_db_get_thread_local_address): Change
3529         second parameter from type ``struct objfile *'' to CORE_ADDR.  Do
3530         not call svr4_fetch_objfile_link_map() to fetch the load module
3531         address.
3532         * target.h (struct target_ops): Change second parameter of
3533         ``to_get_thread_local_address'' from ``struct objfile *'' to
3534         ``CORE_ADDR''.
3535         * alpha-linux-tdep.c (solib-svr4.h): Include.
3536         (alpha_linux_init_abi): Register TLS load module fetcher.
3537         * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
3538         * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
3539         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3540         * ia64-linux-tdep.c (solib-svr4.h): Include.
3541         (ia64_linux_init_abi): Register TLS load module fetcher.
3542         * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
3543         * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
3544         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
3545         * s390-tdep.c (s390_gdbarch_init): Likewise.
3546         * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
3547         * sparc64-linux-tdep.c (solib-svr4.h): Include.
3548         (sparc64_linux_init_abi): Register TLS load module fetcher.
3549         * Makefile.in (alpha-linux-tdep.o, ia64-linux-tdep.o)
3550         (sparc-linux-tdep.o): Update dependencies.
3551
3552 2005-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
3553
3554         * c-valprint.c (c_value_print): Fix up some formatting.  Use
3555         check_typedef.
3556
3557 2005-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
3558
3559         * arm-linux-nat.c (store_register, store_regs): Handle
3560         ARM_PS_REGNUM.
3561
3562 2005-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
3563
3564         * arm-linux-tdep.c (arm_linux_thumb_be_breakpoint)
3565         (arm_linux_thumb_le_breakpoint): New.  Update comments.
3566         (arm_linux_init_abi): Set Thumb breakpoints also.
3567
3568 2005-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
3569
3570         * Makefile.in (arm-tdep.o): Update dependencies.
3571         * arm-tdep.c: Include "objfiles.h" and "dwarf2-frame.h".
3572         (arm_gdbarch_init): Register dwarf2_frame_sniffer.
3573
3574 2005-03-28  Joel Brobecker  <brobecker@adacore.com>
3575
3576         * irix5-nat.c (supply_fpregset): Fix bug that caused the FSR
3577         register value to be incorrectly written in the regcache.
3578         (fill_fpregset): Fix bug that caused the FSR register value
3579         to be incorrectly read from the regcache.
3580
3581 2005-03-28  Daniel Jacobowitz  <dan@codesourcery.com>
3582
3583         * remote-rdi.c (arm_rdi_insert_breakpoint): Don't call
3584         arm_pc_is_thumb_dummy.
3585
3586 2005-03-28  Mark Kettenis  <kettenis@gnu.org>
3587
3588         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Handle
3589         StackGhost.
3590
3591         * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
3592         Handle StackGhost in 64-bit code.
3593         * sparc64-tdep.c (sparc64_frame_prev_register): Handle StackGhost.
3594
3595 2005-03-27  Christopher Faylor  <cgf@timesys.com>
3596
3597         * win32-nat.c (handle_exception): Treat win32 routines which check for
3598         valid addresses as "special" and don't stop when a SEGV is detected.
3599         (get_child_debug_event): Properly flag exception as unhandled.
3600
3601 2005-03-26  Daniel Jacobowitz  <dan@codesourcery.com>
3602
3603         * cp-support.c (cp_class_name_from_physname): Rewrite.
3604         (unqualified_name_from_comp): New function, broken out from
3605         method_name_from_physname.  Correct handling for typed names
3606         and templates.
3607         (method_name_from_physname): Use unqualified_name_from_comp.
3608         (cp_func_name, remove_params): Move earlier in the file.  Add
3609         better comments.  Use the component tree to parse the name.
3610         (_initialize_cp_support): Remove stray whitespace.
3611
3612 2005-03-26  Mark Kettenis  <kettenis@gnu.org>
3613
3614         * exec.c (bfdsec_to_vmap): Use strcmp instead of DEPRECATED_STREQ.
3615
3616         * inflow.h: Update copyright year.  Remove #ifdef SHORT_PGRP code.
3617         Callapse HAVE_TERMIO and HAVE_SGTTY.
3618
3619         * dwarf2-frame.c (execute_cfa_program): Implement
3620         DW_CFA_GNU_window_save.
3621
3622 2005-03-25  Mark Kettenis  <kettenis@gnu.org>
3623
3624         * config/sparc/nbsd64.mh (NAT_FILE): Remove.
3625
3626         * config/i386/obsd64.mt (TDEPFILES): Add obsd-uthread.o.
3627
3628 2005-03-25  Daniel Jacobowitz  <dan@codesourcery.com>
3629
3630         * arm-tdep.c (target_is_thumb, caller_is_thumb)
3631         (arm_pc_is_thumb_dummy): Remove.
3632         (arm_breakpoint_from_pc): Don't call arm_pc_is_thumb_dummy.
3633
3634 2005-03-25  Anthony Green  <green@redhat.com>
3635
3636         * remote.c (remote_store_registers): Fix memset usage.
3637         * std-regs.c (value_of_builtin_frame_reg): Ditto.
3638         (value_of_builtin_frame_fp_reg): Ditto.
3639         (value_of_builtin_frame_reg): Ditto.
3640
3641 2005-03-25  Mark Mitchell  <mark@codesourcery.com>
3642
3643         * ser-base.c (ser_unix_write): Rename to ...
3644         (ser_base_write): ... this.
3645         (ser_unix_nop_flush_output): Rename to ...
3646         (ser_base_flush_output): ... this.
3647         (ser_unix_flush_input): Rename to ...
3648         (ser_base_flush_input): ... this.
3649         (ser_unix_nop_send_break): Rename to ...
3650         (ser_base_send_break): ... this.
3651         (ser_unix_nop_drain_output): Rename to ...
3652         (ser_base_drain_output): ... this.
3653         (ser_unix_nop_raw): Rename to ...
3654         (ser_base_raw): ... this.
3655         (ser_unix_nop_get_tty_state): Rename to ...
3656         (ser_base_set_tty_state): ... this.
3657         (ser_unix_nop_noflush_set_tty_state): Rename to ...
3658         (ser_base_noflush_set_tty_state): ... this.
3659         (ser_unix_nop_print_tty_state): Rename to ...
3660         (ser_base_print_tty_state): ... this.
3661         (ser_unix_nop_setbaudrate): Rename to ...
3662         (ser_base_setbaudrate): ... this.
3663         (ser_unix_nop_setstopbits): Rename to ...
3664         (ser_base_setstopbits): ... this.
3665         (ser_unix_async): Rename to ...
3666         (ser_base_async): ... this.
3667         * ser-base.h (ser_unix_write): Rename to ...
3668         (ser_base_write): ... this.
3669         (ser_unix_nop_flush_output): Rename to ...
3670         (ser_base_flush_output): ... this.
3671         (ser_unix_flush_input): Rename to ...
3672         (ser_base_flush_input): ... this.
3673         (ser_unix_nop_send_break): Rename to ...
3674         (ser_base_send_break): ... this.
3675         (ser_unix_nop_drain_output): Rename to ...
3676         (ser_base_drain_output): ... this.
3677         (ser_unix_nop_raw): Rename to ...
3678         (ser_base_raw): ... this.
3679         (ser_unix_nop_get_tty_state): Rename to ...
3680         (ser_base_set_tty_state): ... this.
3681         (ser_unix_nop_noflush_set_tty_state): Rename to ...
3682         (ser_base_noflush_set_tty_state): ... this.
3683         (ser_unix_nop_print_tty_state): Rename to ...
3684         (ser_base_print_tty_state): ... this.
3685         (ser_unix_nop_setbaudrate): Rename to ...
3686         (ser_base_setbaudrate): ... this.
3687         (ser_unix_nop_setstopbits): Rename to ...
3688         (ser_base_setstopbits): ... this.
3689         (ser_unix_async): Rename to ...
3690         (ser_base_async): ... this.
3691         * ser-pipe.c (_initialize_ser_pipe): Update accordingly.
3692         * ser-tcp.c (_initialize_ser_tcp): Likewise.
3693         * ser-unix.c (hardwire_flush_input): Likewise.
3694         (_initializer_ser_hardwire): Likewise.
3695
3696         * Makefile.in (SFILES): Add ser-base.c.
3697         (ser_base_h): New variable.
3698         (ser-base.o): New target.
3699         (ser-pipe.o): Depend on $(ser_base_h).
3700         (ser-tcp.o): Likewise.
3701         (ser-unix.o): Likewise.  Do not depend on $(event_loop_h).
3702         * configure.ac (SER_HARDWIRE): Include ser-base.o where
3703         appropriate.
3704         * ser-base.c: New file.
3705         (push_event): Move from ser-unix.c.
3706         (fd_event): Likewise.
3707         (reschedule): Likewise.
3708         (ser_unix_write): Likewise.
3709         (ser_unix_nop_flush_output): Likewise.
3710         (ser_unix_flush_input): Likewise.
3711         (ser_unix_nop_send_break): Likewise.
3712         (ser_unix_nop_drain_output): Likewise.
3713         (ser_unix_nop_raw): Likewise.
3714         (ser_unix_nop_get_tty_state): Likewise.
3715         (ser_unix_nop_set_tty_state): Likewise.
3716         (ser_unix_nop_noflush_set_tty_state): Likewise.
3717         (ser_unix_nop_print_tty_state): Likewise.
3718         (ser_unix_nop_setbaudrate): Likewise.
3719         (ser_unix_nop_setstopbits): Likewise.
3720         (ser_unix_async): Likewise.
3721         * ser-base.h: New file.
3722         * ser-pipe.c (ser-base.h): Include it.
3723         * ser-tcp.c (ser-base.h): Likewise.
3724         * ser-unix.h (ser_unix_nop_flush_output): Remove.
3725         (ser_unix_flush_input): Likewise.
3726         (ser_unix_nop_send_break): Likewise.
3727         (ser_unix_nop_raw): Likewise.
3728         (ser_unix_nop_get_tty_state): Likewise.
3729         (ser_unix_nop_set_tty_state): Likewise.
3730         (ser_unix_nop_print_tty_state): Likewise.
3731         (ser_unix_nop_noflush_set_tty_state): Likewise.
3732         (ser_unix_nop_setbaudrate): Likewise.
3733         (ser_unix_nop_setstopbits): Likewise.
3734         (ser_unix_nop_drain_output): Likewise.
3735         (ser_unix_wait_for): Likewise.
3736         (ser_unix_write): Likewise.
3737         (ser_unix_async): Likewise.
3738         * ser-unix.c (event-loop.h): Do not include it.
3739         (push_event): Move to ser-base.c.
3740         (fd_event): Likewise.
3741         (reschedule): Likewise.
3742         (ser_unix_write): Likewise.
3743         (ser_unix_nop_flush_output): Likewise.
3744         (ser_unix_flush_input): Likewise.
3745         (ser_unix_nop_send_break): Likewise.
3746         (ser_unix_nop_drain_output): Likewise.
3747         (ser_unix_nop_raw): Likewise.
3748         (ser_unix_nop_get_tty_state): Likewise.
3749         (ser_unix_nop_set_tty_state): Likewise.
3750         (ser_unix_nop_noflush_set_tty_state): Likewise.
3751         (ser_unix_nop_print_tty_state): Likewise.
3752         (ser_unix_nop_setbaudrate): Likewise.
3753         (ser_unix_nop_setstopbits): Likewise.
3754         (ser_unix_async): Likewise.
3755         (ser_unix_wait_for): Make it static.
3756         * configure: Regenerated.
3757
3758 2005-03-25  Mark Kettenis  <kettenis@gnu.org>
3759
3760         * dwarf2-frame.h: Update copyrigh year.
3761         (enum dwarf2_frame_reg_rule): Add DWARF2_FRAME_REG_RA_OFFSET.
3762         * dwarf2-frame.c: Update copyright year.
3763         (struct dwarf2_frame_cache): Add member `retaddr_reg'.
3764         (dwarf2_frame_cache): Deal with DWARF2_FRAME_REG_RA_OFFSET.
3765         (dwarf2_frame_prev_register): Handle DWARF2_FRAME_REG_RA_OFFSET.
3766
3767 2005-03-23  Martin Hunt  <hunt@redhat.com>
3768
3769         * configure.ac: Remove -fwritable-strings from CFLAGS.
3770         * configure: Regenerate.
3771
3772 2005-03-21  Michael Snyder  <msnyder@redhat.com>
3773
3774         * mn10300-prologue.c (fix_frame_pointer): Delete.
3775         (set_movm_offsets) Don't return just because movm_args is
3776         zero -- still need to save pc and sp in saved_regs.
3777         (mn10300_analyze_prologue): Don't return prematurely without
3778         calling set_movm_offsets (for pc and sp at minimum).
3779
3780 2005-03-21  Mark Mitchell  <mark@codesourcery.com>
3781
3782         * configure.ac (stat.st_blksize): Check for it.
3783         (getuid): Likewise.
3784         (getgid): Likewise.
3785         * configure: Regenerated.
3786         * config.in: Likewise.
3787         * remote-fileio.c (remote_fileio_to_fio_stat): Check
3788         HAVE_STRUCT_STAT_ST_BLKSIZE.
3789
3790 2005-03-21  Christopher Faylor  <cgf@timesys.com>
3791
3792         * win32-nat.c (do_initial_child_stuff): Don't clear the thread list
3793         here.
3794         (do_initial_child_stuff): Move clearing of thread list to a place
3795         before a thread ould be created.
3796         (child_attach): Ditto.
3797
3798 2005-03-21  Michael Snyder  <msnyder@redhat.com>
3799
3800         * mn10300-tdep.c (mn10300_frame_unwind_cache): Use func addr
3801         instead of pc addr for frame_id.  Otherwise "until" won't work.
3802
3803 2005-03-21  Kevin Buettner  <kevinb@redhat.com>
3804
3805         * frv-linux-tdep.c (frv_linux_sigcontext_reg_addr): Fix typo in
3806         comment.
3807
3808 2005-03-20  Mark Kettenis  <kettenis@gnu.org>
3809
3810         * dwarf2loc.c (dwarf_expr_tls_address): Mark addr as volatile.
3811         * varobj.c (my_value_equal): Mark val2 as volatile.
3812
3813         * cp-names.y: Add prototype for yyparse.
3814
3815 2005-03-19  Daniel Jacobowitz  <dan@codesourcery.com>
3816
3817         * dwarf2loc.c (dwarf_expr_tls_address): Initialize ADDR.
3818         * gnu-v3-abi.c (gnuv3_baseclass_offset): Update type of
3819         VALADDR.
3820
3821 2005-03-18  Kevin Buettner  <kevinb@redhat.com>
3822
3823         * Makefile.in (dwarf2loc.o, linux-thread-db.o): Add dependencies.
3824         * exceptions.h (TLS_NO_LIBRARY_SUPPORT_ERROR, TLS_GENERIC_ERROR)
3825         (TLS_LOAD_MODULE_NOT_FOUND_ERROR, TLS_NOT_ALLOCATED_YET_ERROR):
3826         New error/exception enums.
3827         * dwarf2loc.c (exceptions.h): Include.
3828         (dwarf_expr_tls_address): Invoke target_get_thread_local_address()
3829         via TRY_CATCH mechanism.  Print error messages for TLS related
3830         exceptions.
3831         * linux-thread-db.c (thread_db_get_thread_local_address): Throw
3832         exceptions instead of printing errors.
3833
3834 2005-03-18  Mark Kettenis  <kettenis@gnu.org>
3835
3836         * utils.c (safe_strerror): Use xsnprintf instead of sprintf.
3837         (decimal2str, octal2str): Change to return a string allocated by
3838         get_cell.  Use xsnprint instead of snprintf.
3839         (paddr_u, paddr_d): Adjust for changed calling convention of
3840         decimal2str.
3841         (phex, phex_nz, hex_string): Use xsnprintf instead of snprintf.
3842         (int_string): Likewise.  Adjust for changed calling convention of
3843         decimal2str and octal2str.
3844
3845 2005-03-18  Kevin Buettner  <kevinb@redhat.com>
3846
3847         * frv-linux-tdep.c (frv_linux_sigcontext_reg_addr): Update comments.
3848         Adjust incorrectly computed constant for realtime signal frame.
3849
3850 2005-03-18  Mark Kettenis  <kettenis@gnu.org>
3851
3852         From Ralf Corsepius <ralf.corsepius@rtems.org>
3853         * configure.tgt: Add m68*-*-rtems*.
3854
3855 2005-03-17  Mark Kettenis  <kettenis@gnu.org>
3856
3857         * defs.h (xsnprintf): New prototype.
3858         * utils.c (xsnprintf): New function.
3859
3860         * corelow.c (get_core_register_section): Replace usage of sprintf
3861         and strcpy with xstrprintf and xstrdup.
3862
3863         * mips-tdep.c (mips_single_step_through_delay): Put back check for
3864         breakpoint lost with the introduction of this function.
3865
3866 2005-03-17  Paul Brook  <paul@codesourcery.com>
3867
3868         * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Fix broken logic.
3869         * s390-tdep.c (s390_dwarf_reg_to_regnum): Ditto.
3870
3871 2005-03-16  Mark Mitchell  <mark@codesourcery.com>
3872
3873         * event-top.c (handle_sigquit): Do not define for systems without
3874         SIGQUIT.
3875         (sigquit_token): Likewise.
3876         (async_init_signals): Allow for systems that do not
3877         define SIGQUIT.
3878         * ser-tcp.c (net_open): Allow for systems that do not have SIGPIPE.
3879
3880 2005-03-15  Mark Mitchell  <mark@codesourcery.com>
3881
3882         * utils.c (internal_vproblem): Guard call to fork with
3883         HAVE_WORKING_FORK.
3884         * cli/cli-cmds.c (shell_escape): Guard call to vfork with
3885         HAVE_WORKING_VFORK and HAVE_WORKING_FORK.
3886
3887         * remote-fileo.c (remote_fileio_mode_to_host): Accomodate lack of
3888         S_IRGRP and related macros.
3889         (remote_fileio_mode_to_target): Likewise.
3890
3891 2005-03-14  Ben Elliston  <bje@au.ibm.com>
3892
3893         * Makefile.in (CLIBS): Link libbfd after libopcodes, as it is a
3894         more primitive library.
3895
3896 2005-03-13  Mark Kettenis  <kettenis@gnu.org>
3897
3898         * inf-ttrace.c (inf_ttrace_pid_to_str): Use snprintf instead of
3899         sprintf.
3900         * target.c (normal_pid_to_str): Likewise.
3901         * remote.c (remote_pid_to_str): Use snprint instead of sprintf.
3902         Change capitalization of "thread".  Use ptid_get_pid instead of
3903         GETPID.
3904
3905         * cp-abi.c (set_cp_abi_as_auto_default): Use xasprintf instead of
3906         a combination of xmalloc and sprintf.
3907
3908 2005-03-13  Jim Blandy  <jimb@redhat.com>
3909
3910         * configure.ac: Use '=', not '=='; the latter is a GNU extension.
3911         * configure: Regenerated.
3912
3913 2005-03-11  Michael Snyder  <msnyder@redhat.com>
3914
3915         * mn10300-tdep.c (mn10300_dummy_unwind_dummy_id): Replace
3916         stub fn with real implementatin mn10300_unwind_dummy_id.
3917         (mn10300_push_dummy_call): Implement.  Bare bones version,
3918         does not handle structs or floats.
3919
3920 2005-03-11  Jim Blandy  <jimb@redhat.com>
3921
3922         Avoid warnings due to the use of -Wuninitialized without -O.
3923         * configure.ac (build_warnings): Include -Wuninitialized only if
3924         CFLAGS is unset at configure time, or CFLAGS is set and includes
3925         some -O option other than -O0.
3926         * configure: Regenerated.
3927
3928         * mips-tdep.c (show_mips_abi): Change calling conventions to match
3929         those expected by add_setshow_enum_cmd.  Use 'file' argument as
3930         appropriate.
3931
3932 2005-03-10  Daniel Jacobowitz  <dan@codesourcery.com>
3933
3934         * Makefile.in (SFILES): Add cp-names.y.
3935         (libiberty_h, safe_ctype_h): New.
3936         (YYFILES): Add cp-names.c.
3937         (YYOBJ): Add cp-names.o.
3938         (test-cp-names.o, test-cp-names$(EXEEXT), cp-names.o): New rules.
3939         (clean): Remove test-cp-names$(EXEEXT).
3940         (local-maintainer-clean): Remove cp-names.c.
3941         * cp-names.y: New file.
3942         * cp-support.c (find_last_component): Delete.
3943         (d_left, d_right): Define.
3944         (cp_canonicalize_string, mangled_name_to_comp): New functions.
3945         (cp_class_name_from_physname, method_name_from_physname): Rewrite
3946         to use mangled_name_to_comp.
3947         * cp-support.h (cp_canonicalize_string, cp_demangled_name_to_comp)
3948         (cp_comp_to_string): New prototypes.
3949         * config/djgpp/fnchange.lst: Add cp-names.c.
3950
3951 2005-03-10  Bob Rossi  <bob@brasko.net>
3952
3953         * main.c (print_gdb_help): Remove the --[no]async help message.
3954
3955 2005-03-10  Mark Kettenis  <kettenis@gnu.org>
3956
3957         * proc-api.c: Update copyright year.
3958         (_initialize_proc_api): Revert previous patch, removing spurious
3959         space instead.
3960
3961 2005-03-09  Joel Brobecker  <brobecker@adacore.com>
3962
3963         * regcache.c: Fix typo in comment.
3964
3965 2005-03-09  David Lecomber  <david@lecomber.net>
3966
3967         * proc-api.c (_initialize_proc_api): Fix invalid multi-line
3968         i18n text.
3969
3970 2005-03-09  Mark Kettenis  <kettenis@gnu.org>
3971
3972         * sparc-tdep.c (sparc_frame_cache): Adjust cached frame base
3973         address for 64-bit code.
3974         (sparc_unwind_dummy_id): Likewise.
3975         * sparc64-tdep.c (sparc64_frame_prev_register): Adjust for new
3976         frame base address convention.
3977         (sparc64_push_dummy_call): Likewise.
3978         * sparc64nbsd-tdep.c: Update copyright year.
3979         (sparc64nbsd_sigcontext_frame_cache): Adjust cached frame base
3980         address for 64-bit code.
3981         (sparc64nbsd_init_abi): Tweak comment.
3982         * sparc64obsd-tdep.c: Update copyright year.
3983         (sparc64obsd_frame_cache): Adjust cached frame base address for
3984         64-bit code.
3985         (sparc64obsd_init_abi): Tweak comment.
3986
3987 2005-03-09  Corinna Vinschen  <vinschen@redhat.com>
3988
3989         * exceptions.h (TRY_CATCH): Define setjmp/sigsetjmp macro safe.
3990
3991 2005-03-09  Joel Brobecker  <brobecker@adacore.com>
3992
3993         * dwarf2read.c (dwarf_decode_lines): Use the complete filename
3994         when creating include psymtabs.
3995
3996 2005-03-08  Mark Mitchell  <mark@codesourcery.com>
3997
3998         * environ.h (struct environ): Rename to ...
3999         (struct gdb_environ): ... this.
4000         (make_environ): Update prototype.
4001         (free_environ): Likewise.
4002         (init_environ): Likewise.
4003         (get_in_environ): Likewise.
4004         (set_in_environ): Likewise.
4005         (unset_in_environ): Likewise.
4006         (environ_vector): Likewise.
4007         * environ.c (make_environ): Replace "struct environ" with "struct
4008         gdb_environ".
4009         (free_environ): Likewise.
4010         (init_environ): Likewise.
4011         (environ_vector): Likewise.
4012         (get_in_environ): Likewise.
4013         (set_in_environ): Likewise.
4014         (unset_in_environ): Likewise.
4015         * infcmd.c (inferior_environ): Likewise.
4016         * inferior.h (inferior_environ): Likewise.
4017
4018 2005-03-08  Joel Brobecker  <brobecker@adacore.com>
4019
4020         * infcmd.c (run_command_1): New function, extracted from
4021         run_command.
4022         (run_command): Replace implementation by call to run_command_1.
4023         (start_command): Use run_command_1 to insert the temporary
4024         breakpoint and run the program. Remove code that's no longer
4025         needed, as already done at the proper time by run_command_1.
4026
4027 2005-03-08  Daniel Jacobowitz  <dan@codesourcery.com>
4028
4029         * symfile.c (clear_symtab_users): Call
4030         clear_current_source_symtab_and_line first.
4031
4032 2005-03-08  Nathan Sidwell  <nathan@codesourcery.com>
4033
4034         * ax-gdb.c (gen_expr): Add UNOP_PLUS case.
4035         * c-exp.y (exp): Add unary plus.
4036         * eval.c (evaluate_subexp_standard): Add UNOP_PLUS case.
4037         * valarith.c (value_x_unop): Add UNOP_PLUS case.
4038         (value_pos): New.
4039         * value.h (value_pos): Declare.
4040
4041         * remote.c (MIN_REMOTE_PACKET_SIZE): Set to 20.
4042         (remote_fetch_registers): Allow uppercase hex when resyncing.
4043         (remote_write_bytes): Only call get_memory_write_packet_size once.
4044         Robustify packet size calculation for very small packets. Check
4045         that at least one byte will be written.
4046
4047         * tracepoint.c (target_is_remote): Allow extended-remote.
4048         (struct collection_list): Allow 256 registers, like the comment
4049         said.
4050         (add_memrange): Fix comment.
4051         (read_actions): Turn EOF into 'end'.
4052
4053 2005-03-08  Corinna Vinschen  <vinschen@redhat.com>
4054
4055         * Makefile.in: Add dependencies for iq2000-tdep.o.
4056         * configure.tgt: Add iq2000-*-* target.
4057         * iq2000-tdep.c: New file.
4058         * config/iq2000/iq2000.mt: New file.
4059
4060 2005-03-07  Joel Brobecker  <brobecker@adacore.com>
4061
4062         * doc/observer.texi (executable_changed): New observer.
4063         * symtab.c: Include "observer.h".
4064         (find_main_name): New function.
4065         (main_name): If name_of_main is unset, then compute it
4066         using find_main_name.
4067         (symtab_observer_executable_changed): New function.
4068         (_initialize_symtab): Attach executable_changed observer.
4069         * exec.c: Include "observer.h".
4070         (exec_file_attach): Emit executable_changed notification.
4071         * symfile.c: Include "observer.h".
4072         (reread_symbols): Send an executable_changed if appropriate.
4073         * Makefile.in (exec.o): Add dependency on observer.h.
4074         (symfile.o): Likewise.
4075         (symtab.o): Likewise.
4076
4077 2005-03-07  Daniel Jacobowitz  <dan@codesourcery.com>
4078
4079         * findvar.c (read_var_value): Don't allocate V when it will not
4080         be used.  Add missing break for LOC_INDIRECT.
4081
4082 2005-03-06  Mark Kettenis  <kettenis@gnu.org>
4083
4084         * sparc64fbsd-tdep.c: Include "solib-svr4.h".
4085         (sparc64fbsd_init_abi): Set skip_trampoline_code and
4086         solib_svr4_fetch_link_map_offsets.
4087         * Makefile.in (sparc64fbsd-tdep.o): Update dependencies.
4088
4089 2005-03-06  Daniel Jacobowitz  <dan@codesourcery.com>
4090
4091         * linux-nat.c (child_follow_fork): Call target_terminal_ours before
4092         printing output.  Use fprintf_unfiltered.  Only print output when
4093         debugging.
4094
4095 2005-03-05  Mark Kettenis  <kettenis@gnu.org>
4096
4097         * sparc64-tdep.c (sparc64_store_floating_fields): Constify third
4098         argument.
4099         (sparc64_store_arguments): Constify.
4100
4101 2005-03-05  Mark Kettenis  <kettenis@gnu.org>
4102
4103         * alphabsd-nat.c: Update copyright year.  Include "inf-ptrace.h".
4104         (alphabsd_fetch_inferior_registers): Rename from
4105         fetch_inferior_registers.  Make static.
4106         (alphabsd_store_inferior_registers): Rename from
4107         store_inferior_registers.  Make static.
4108         (_initialize_alphabsd_nat): New function.
4109         * Makefile.in (alphabsd-nat.o): Update dependencies.
4110         * config/alpha/fbsd.mh (NATDEPFILES): Remove infptrace.o and
4111         inftarg.o.  Add inf-ptrace.o, fbsd-nat.o and gcore.o.
4112         * config/alpha/nbsd.mh (NAT_CLIBS): Remove variable.
4113         (NATDEPFILES): Remove infptrace.o and inftarg.o.  Add
4114         alphabsd-nat.o.
4115         * config/alpha/nm-fbsd.h: Update copyright year.  Don't include
4116         "config/nm-bsd.h" and "elf/common.h".
4117         * config/alpha/nm-nbsd.h: Update copyright year.  Don't include
4118         "config/nm-nbsd.h".
4119
4120         * mips64obsd-tdep.c (mips64obsd_init_abi): Don't set
4121         software_single_step.
4122
4123 2005-03-04  Michael Snyder  <msnyder@redhat.com>
4124
4125         * mn10300-prologue.c: New file.  Prologue analysis.
4126         * mn10300-tdep.c: Move REGNUM values to mn10300-tdep.h.
4127         (mn10300_frame_unwind_cache): Don't call trad_frame_set_id
4128         until after analyze_prologue, and don't call trad_frame_set_base
4129         at all (let analyze_prologue do it).
4130
4131 2005-03-04  Michael Snyder  <msnyder@redhat.com>
4132
4133         * trad-frame.c (trad_frame_set_reg_value): New function.
4134         * trad-frame.h (trad_frame_set_reg_value): Export.
4135
4136 2005-03-04  Daniel Jacobowitz  <dan@codesourcery.com>
4137
4138         * Makefile.in (remote.o): Update dependencies.
4139         * remote.c: Include "observer.h".
4140
4141 2005-03-04  Daniel Jacobowitz  <dan@codesourcery.com>
4142
4143         * target.c (target_read_memory_partial): Always initialize
4144         ERR.
4145         (target_write_memory_partial): Likewise.
4146
4147 2005-03-03  Daniel Jacobowitz  <dan@codesourcery.com>
4148
4149         * remote.c (remote_open_1): Call observer_notify_inferior_created.
4150
4151 2005-03-03  Daniel Jacobowitz  <dan@codesourcery.com>
4152
4153         * arm-tdep.c (arm_make_stub_cache, arm_stub_this_id)
4154         (arm_stub_unwind, arm_stub_unwind_sniffer): New.
4155         (arm_gdbarch_init): Add arm_stub_unwind_sniffer.
4156
4157 2005-03-02  Daniel Jacobowitz  <dan@codesourcery.com>
4158
4159         * linux-nat.c (linux_supports_tracevforkdone, child_follow_fork):
4160         Use LWP IDs.
4161
4162 2005-02-28  Daniel Jacobowitz  <dan@codesourcery.com>
4163
4164         * dwarf2loc.c (loclist_read_variable): Set optimized_out
4165         instead of reporting an error.
4166         * valprint.c (value_check_printable): New function.
4167         (common_val_print): New function.  Use value_check_printable.
4168         (value_print): Use value_check_printable.
4169         * value.h (common_val_print): Add prototype.
4170
4171         * c-valprint.c (c_val_print): Use common_val_print.
4172         * cp-valprint.c (cp_print_value_fields): Likewise.
4173         (cp_print_hpacc_virtual_table_entries): Likewise.
4174         * f-valprint.c (f_val_print): Likewise.
4175         * jv-valprint.c (java_value_print, java_print_value_fields):
4176         Likewise.
4177         * scm-valprint.c (scm_value_print): Likewise.
4178         * stack.c (print_frame_args): Likewise.
4179         * varobj.c (c_value_of_variable): Likewise.
4180         * p-valprint.c (pascal_val_print, pascal_value_print): Likewise.
4181         (pascal_object_print_value_fields): Likewise.  Update call to
4182         pascal_object_print_static_field.
4183         (pascal_object_print_static_field): Remove TYPE argument.  Use
4184         common_val_print.
4185
4186 2005-02-25 Mark Kettenis  <kettenis@gnu.org>
4187
4188         Committed by Elena Zannoni <ezannoni@redhat.com>
4189
4190         * dwarf2read.c (dwarf2_build_psymtabs_hard): Adjust
4191         info_ptr before building psymtabs for included files.
4192         (create_all_comp_units): Initailize initial length size of
4193         compilation header to zero.
4194         (read_initial_length): Complain if both 32-bit and 64-bit DWARF
4195         sections are encountered within the same compilation header.
4196         (dwarf_decode_line_header): Pass compilation header in call to
4197         read_initial_length.
4198
4199 2005-02-24  Andrew Cagney  <cagney@gnu.org>
4200
4201         Add show_VARIABLE functions, update add_setshow call.
4202         * varobj.c (_initialize_varobj, show_varobjdebug): Add and update.
4203         * valprint.c (_initialize_valprint, show_print_max)
4204         (show_stop_print_at_null, show_repeat_count_threshold)
4205         (show_prettyprint_structs, show_unionprint)
4206         (show_prettyprint_arrays, show_addressprint, show_input_radix)
4207         (show_output_radix): Ditto.
4208         * valops.c (_initialize_valops, show_overload_resolution): Ditto.
4209         * utils.c (initialize_utils, show_chars_per_line)
4210         (show_lines_per_page, show_demangle, show_pagination_enabled)
4211         (show_sevenbit_strings, show_asm_demangle): Ditto
4212         * tui/tui-win.c (_initialize_tui_win, show_tui_border_kind)
4213         (show_tui_border_mode, show_tui_active_border_mode): Ditto.
4214         * top.c (init_main, show_new_async_prompt)
4215         (show_async_command_editing_p, show_write_history_p)
4216         (show_history_size, show_history_filename, show_caution)
4217         (show_annotation_level, init_main): Ditto.
4218         * target.c (initialize_targets, show_targetdebug)
4219         (show_trust_readonly): Ditto.
4220         * symfile.c (_initialize_symfile, show_symbol_reloading)
4221         (show_ext_args, show_download_write_size)
4222         (show_debug_file_directory): Ditto.
4223         * source.c (_initialize_source, show_lines_to_list): Ditto.
4224         * solib.c (_initialize_solib, show_auto_solib_add)
4225         (show_solib_search_path): Ditto.
4226         * p-valprint.c (_initialize_pascal_valprint)
4227         (show_pascal_static_field_print): Ditto.
4228         * printcmd.c (_initialize_printcmd, show_max_symbolic_offset)
4229         (show_print_symbol_filename): Add and update.
4230         * parse.c (_initialize_parse, show_expressiondebug): Dito.
4231         * observer.c (_initialize_observer, show_observer_debug): Dito.
4232         * maint.c (_initialize_maint_cmds, show_watchdog)
4233         (show_maintenance_profile_p): Dito.
4234         * linux-nat.c (_initialize_linux_nat, show_debug_linux_nat): Dito.
4235         * infrun.c (_initialize_infrun, show_debug_infrun)
4236         (show_stop_on_solib_events, show_follow_fork_mode_string)
4237         (show_scheduler_mode, show_step_stop_if_no_debug): Ditto.
4238         * infcall.c (_initialize_infcall, show_coerce_float_to_double_p)
4239         (show_unwind_on_signal_p): Ditto.
4240         * gdbtypes.c (build_gdbtypes, show_opaque_type_resolution)
4241         (_initialize_gdbtypes, show_overload_debug): Ditto.
4242         * gdb-events.c, gdb-events.sh (_initialize_gdb_events)
4243         (show_gdb_events_debug): Ditto.
4244         * gdbarch.c, gdbarch.sh (show_gdbarch_debug)
4245         (_initialize_gdbarch): Ditto.
4246         * frame.c (_initialize_frame, show_backtrace_past_main)
4247         (show_backtrace_past_entry, show_backtrace_limit)
4248         (show_frame_debug): Ditto.
4249         * exec.c (_initialize_exec, show_write_files): Ditto.
4250         * dwarf2read.c (_initialize_dwarf2_read)
4251         (show_dwarf2_max_cache_age): Ditto.
4252         * demangle.c (_initialize_demangler)
4253         (show_demangling_style_names): Ditto.
4254         * dcache.c (_initialize_dcache, show_dcache_enabled_p): Ditto.
4255         * cp-valprint.c (show_static_field_print)
4256         (_initialize_cp_valprint, show_vtblprint, show_objectprint): Ditto.
4257         * corefile.c (_initialize_core, show_gnutarget_string): Ditto.
4258         * cli/cli-logging.c (_initialize_cli_logging)
4259         (show_logging_overwrite, show_logging_redirect)
4260         (show_logging_filename): Ditto.
4261         * cli/cli-cmds.c (show_info_verbose, show_history_expansion_p)
4262         (init_cli_cmds, show_baud_rate, show_remote_debug)
4263         (show_remote_timeout, show_max_user_call_depth): Ditto.
4264         * charset.c (show_host_charset_name, show_target_charset_name)
4265         (initialize_charset): Ditto.
4266         * breakpoint.c (show_can_use_hw_watchpoints)
4267         (show_pending_break_support, _initialize_breakpoint): Ditto.
4268
4269 2005-02-23  Jim Blandy  <jimb@redhat.com>
4270
4271         * disasm.c (gdb_disassemble_info): Call disassemble_init_for_target.
4272
4273 2005-02-23  Andrew Cagney  <cagney@gnu.org>
4274
4275         * cli/cli-dump.c (dump_bfd_file): Replace magic constant with
4276         SEC_XXX flags.
4277
4278 2005-02-22  Andrew Cagney  <cagney@gnu.org>
4279
4280         * configure.ac: Only enaable insight when itcl is present.
4281         * configure: Re-generate.
4282
4283 2005-02-21  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
4284
4285         Committed by Andrew Cagney.
4286         * infptrace.c (store_register): Fix typo.
4287
4288 2005-02-21  Andrew Cagney  <cagney@gnu.org>
4289
4290         * command.h (deprecated_add_set_cmd): Rename add_set_cmd.
4291         * cli/cli-decode.h (add_set_cmd): Delete declaration.
4292         * cli/cli-decode.c (deprecated_add_set_cmd): Rename add_set_cmd.
4293         * i386-nat.c (_initialize_i386_nat): Update call.
4294         * valprint.c (_initialize_valprint): Update comment.
4295         * gnu-nat.c (_initialize_gnu_nat): Update call.
4296
4297 2005-02-21  Alan Modra  <amodra@bigpond.net.au>
4298
4299         * elfread.c (elf_symtab_read): Discard section syms.
4300
4301 2005-02-21  Andrew Cagney  <cagney@gnu.org>
4302
4303         * cli/cli-decode.c (add_set_enum_cmd): Delete function.
4304         (deprecated_add_show_from_set): Delete function.
4305         * command.h (add_set_enum_cmd): Delete declaration.
4306         (deprecated_add_show_from_set): Delete declaration.
4307         * cli/cli-decode.h (add_set_enum_cmd): Delete declaration.
4308         (deprecated_add_show_from_set): Delete declaration.
4309         * arm-tdep.c (_initialize_arm_tdep): Update comment.
4310         * kod.c (kod_set_os): Simplify.
4311         * infrun.c (set_schedlock_func): Simplify.
4312         * cli/cli-dump.c (add_dump_command): Update comment.
4313
4314         Replace string variables with a filename completer with
4315         add_setshow_optional_filename_cmd.
4316         * solib.c, symfile.c: Update.
4317         * cli/cli-setshow.c: Do not tidle expand the file.
4318
4319         Add more uses of add_setshow_string_cmd, add_setshow_integer_cmd,
4320         and add_setshow_string_noescape_cmd.
4321         * cli/cli-setshow.c (deprecated_show_value_hack): Do not print a
4322         NULL command's value.
4323         * kod.c, language.c, ocd.c, remote-e7000.c, remote-mips.c: Update.
4324         * remote-sds.c, remote.c, symfile.c, top.c: Update.
4325
4326 2005-02-20  Andrew Cagney  <cagney@gnu.org>
4327
4328         Use add_setshow_enum_cmd through out.
4329         * arch-utils.c, charset.c, demangle.c, i386-tdep.c: Update.
4330         * infrun.c, mips-tdep.c, osabi.c, serial.c, tui/tui-win.c: Update.
4331
4332         * mi/mi-main.c (captured_mi_execute_command): Use
4333         mi_cmd_interpreter_exec.
4334
4335         * cli/cli-decode.c (add_setshow_optional_filename_cmd): New
4336         function.
4337         * cli/cli-setshow.c (deprecated_show_value_hack)
4338         (do_setshow_command): Handle var_optional_filename.
4339         * command.h (enum var_types): Add var_optional_filename.
4340         (add_setshow_optional_filename_cmd): Declare.
4341         * infcmd.c (notice_args_read): Use.
4342
4343         * symfile-mem.c (symbol_file_add_from_memory): Pass
4344         target_read_memory to bfd_elf_bfd_from_remote_memory.
4345         (do_target_read_memory): Delete.
4346
4347 2005-02-16  Mark Kettenis  <kettenis@gnu.org>
4348
4349         * value.h (value_contents_equal): New prototype.
4350         * value.c (value_contents_equal): New function.
4351         * varobj.c: Include "exceptions.h" and "gdb_assert.h".  Don't
4352         include <math.h>.
4353         (varobj_set_value): Initialize error to zero.
4354         (varobj_update): Rename error2 to error and initialize it to zero.
4355         Slightly change the wording of some comments.
4356         (my_value_equal): Reimplement using TRY_CATCH and
4357         value_contents_equal.
4358
4359 2005-02-18  Andrew Cagney  <cagney@gnu.org>
4360
4361         * cli/cli-decode.c (add_setshow_integer_cmd): New function.
4362         * command.h (add_setshow_integer_cmd): Declare.
4363         * cli/cli-cmds.c: Update.
4364
4365         Use add_setshow_uinteger_cmd through out.
4366         * printcmd.c, source.c, utils.c, valprint.c: Update.
4367
4368         Use add_setshow_zinteger_cmd through out.  Re-sync gdbarch.sh
4369         and gdbarch.c.
4370         * breakpoint.c, frame.c, gdb-events.sh, gdbarch.sh: Update.
4371         * gdbtypes.c, infrun.c, linux-nat.c, maint.c, monitor.c: Update.
4372         * pa64solib.c, parse.c, remote-mips.c, ser-go32.c: Update.
4373         * serial.c, solib-frv.c, somsolib.c, target.c, top.c: Update.
4374         * varobj.c, cli/cli-cmds.c: Update.
4375         * gdbarch.c, gdb-events.c: Regenerate.
4376
4377         Use add_setshow_boolean_command through out.  Delete #ifdef 0'ed
4378         code adding set/show boolean commands.
4379         * cp-valprint.c, dcache.c, exec.c, gdbtypes.c, infrun.c: Update.
4380         * monitor.c, p-valprint.c, pa64solib.c, printcmd.c: Update.
4381         * proc-api.c, remote-mips.c, remote.c, solib.c: Update.
4382         * somsolib.c, symfile.c, top.c, utils.c, valops.c: Update.
4383         * valprint.c, win32-nat.c, wince.c, xcoffsolib.c: Update.
4384         * cli/cli-cmds.c: Update.
4385
4386 2005-02-17  Andrew Cagney  <cagney@gnu.org>
4387
4388         * cli/cli-decode.c (add_setshow_filename_cmd): Set the completer
4389         to filename_completer.
4390         * solib.c (_initialize_solib, reload_shared_libraries): Use
4391         add_setshow_filename_cmd.
4392         * serial.c (_initialize_serial): Ditto.
4393         * remote-utils.c (_initialize_sr_support): Ditto.
4394
4395         * cli/cli-decode.c (add_setshow_string_noescape_cmd): New function.
4396         * command.h (add_setshow_string_noescape_cmd): Declare.
4397         * wince.c (_initialize_wince): Use.
4398         * symfile.c (_initialize_symfile): Use.
4399         (set_ext_lang_command): Update declaration.
4400         * corefile.c (_initialize_core): Use.
4401
4402         * cli/cli-decode.c (add_setshow_cmd_full, add_setshow_enum_cmd)
4403         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
4404         (add_setshow_filename_cmd, add_setshow_string_cmd)
4405         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Delete
4406         fprint_setshow parameter.
4407         * command.h (fprint_setshow_ftype): Delete.
4408         (add_setshow_cmd_full, add_setshow_enum_cmd)
4409         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
4410         (add_setshow_filename_cmd, add_setshow_string_cmd)
4411         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Delete
4412         fprint_setshow parameter.
4413         * aix-thread.c, alpha-tdep.c, arm-tdep.c, breakpoint.c: Update.
4414         * complaints.c, cris-tdep.c, dwarf2read.c, frame.c: Update.
4415         * hppa-tdep.c, infcall.c, m32r-rom.c, maint.c: Update.
4416         * mips-tdep.c, nto-tdep.c, observer.c, remote-rdi.c: Update
4417         * remote.c, target.c, cli/cli-logging.c: Update.
4418
4419 2005-02-16  Andrew Cagney  <cagney@gnu.org>
4420
4421         Merge setshow print and show parameters.
4422         * command.h (show_value_ftype): Define.
4423         (deprecated_show_value_hack): Declare.
4424         (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
4425         (add_setshow_boolean_cmd, add_setshow_filename_cmd)
4426         (add_setshow_string_cmd, add_setshow_uinteger_cmd)
4427         (add_setshow_zinteger_cmd): Change type of show_func to
4428         show_value_ftype.
4429         * cli/cli-decode.h (struct cmd_list_element): Replace
4430         fprint_setshow with show_value_func.
4431         * cli/cli-decode.c (add_setshow_cmd_full): Update show_func
4432         parameter.  Set show_value_func.  Do not set cmd_sfunc.
4433         (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
4434         (add_setshow_boolean_cmd, add_setshow_filename_cmd)
4435         (add_setshow_string_cmd, add_setshow_uinteger_cmd)
4436         (add_setshow_zinteger_cmd): Update.
4437         * complaints.c (complaints_show_value): Replace
4438         fprint_setshow_complaints.
4439         (_initialize_complaints): Update.
4440         * mips-tdep.c (show_mask_address): Update.
4441         * arm-tdep.c (show_fp_model): Update.
4442         * cli/cli-setshow.c (do_setshow_command): Call show_value_func
4443         instead of fprint_setshow.  Use deprecated_show_value_hack.
4444         (deprecated_show_value_hack): New function.
4445         * remote.c (add_packet_config_cmd, show_remote_cmd):
4446         (show_remote_protocol_P_packet_cmd)
4447         (show_remote_protocol_P_packet_cmd)
4448         (show_remote_protocol_Z_access_wp_packet_cmd)
4449         (show_remote_protocol_Z_hardware_bp_packet_cmd)
4450         (show_remote_protocol_Z_packet_cmd)
4451         (show_remote_protocol_Z_read_wp_packet_cmd)
4452         (show_remote_protocol_Z_software_bp_packet_cmd)
4453         (show_remote_protocol_Z_write_wp_packet_cmd)
4454         (show_remote_protocol_binary_download_cmd)
4455         (show_remote_protocol_p_packet_cmd)
4456         (show_remote_protocol_qPart_auxv_packet_cmd)
4457         (show_remote_protocol_qSymbol_packet_cmd)
4458         (show_remote_protocol_vcont_packet_cmd): Update.
4459
4460 2005-02-16  Mark Kettenis  <kettenis@gnu.org>
4461
4462         * wrapper.h: Update copyright year.  Properly wrap a few
4463         prototypes.
4464         (struct gdb_wrapper_arguments): Remove forward declaration.
4465         * wrapper.c: Update copyright year.  Include "ui-out.h".
4466         (struct gdb_wrapper_arguments): Remove.
4467         (struct captured_value_struct_elt_args): Remove.
4468         (wrapper_parse_exp_1, wrap_evaluate_expression)
4469         (wrap_value_fetch_lazy, wrap_value_equal, wrap_value_assign)
4470         (wrap_value_subscript, wrap_value_ind, wrap_parse_and_eval_type)
4471         (do_captured_value_struct_elf): Remove functions.
4472         (gdb_parse_exp_1, gdb_evaluate_expression, gdb_value_fetch_lazy)
4473         (gdb_value_equal, gdb_value_assign, gdb_value_subscript)
4474         (gdb_value_ind, gdb_parse_and_eval_type, gdb_value_struct_elt):
4475         Re-implement using TRY_CATCH.
4476
4477 2005-02-16  Yoshinori Sato  <ysato@users.sourceforge.jp>
4478
4479         * remote-e7000.c: unuse TM_FILE defined macro.
4480         (e7000_fetch_registers)
4481         (e7000_store_registers)
4482         (e7000_wait): delete NUM_REALREGS.
4483         * remote-hms.c: move TM_FILE macro.
4484         (CCR_REGNO): move define from tm-h8300.h.
4485
4486 2005-02-15  Mark Kettenis  <kettenis@gnu.org>
4487
4488         * amd64-linux-tdep.c: Update copyright year.
4489         (amd64_linux_sigtramp_start): Use sizeof operator instead of
4490         LINUX_SIGTRAMP_LEN.
4491
4492 2004-02-15  Joel Brobecker  <brobecker@gnat.com>
4493
4494         From Paul Hilfinger <hilfinger@gnat.com>
4495         * dwarf2read.c (new_symbol): Use SYMBOL_SEARCH_NAME rather than
4496         SYMBOL_NATURAL_NAME to set type names.
4497
4498 2005-02-15  Andrew Cagney  <cagney@gnu.org>
4499
4500         Mark up add_com, add_info and add_prefix_cmd.
4501         * breakpoint.c, cp-support.c, dcache.c, dwarf2read.c: Update.
4502         * exec.c, f-valprint.c, frame.c, gcore.c, gnu-nat.c: Update.
4503         * go32-nat.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Update.
4504         * kod.c, language.c, linux-nat.c, m32r-rom.c, macrocmd.c: Update.
4505         * maint.c, memattr.c, mips-tdep.c, nto-procfs.c, objc-lang.c: Update.
4506         * ocd.c, pa64solib.c, printcmd.c, procfs.c, regcache.c: Update.
4507         * remote-e7000.c, remote-m32r-sdi.c, remote-mips.c: Update.
4508         * remote-sds.c, remote-sim.c, remote-st.c, remote-utils.c: Update.
4509         * remote.c, rs6000-tdep.c, ser-go32.c, serial.c: Update.
4510         * sh-tdep.c, solib.c, somsolib.c, source.c, stack.c: Update.
4511         * symfile.c, symtab.c, target.c, thread.c, top.c: Update.
4512         * tracepoint.c, typeprint.c, utils.c, valprint.c: Update.
4513         * win32-nat.c, xcoffsolib.c, cli/cli-cmds.c, cli/cli-dump.c: Update.
4514         * cli/cli-logging.c, tui/tui-layout.c, tui/tui-regs.c: Update.
4515         * tui/tui-stack.c, tui/tui-win.c: Update.
4516
4517 2005-02-14  Andrew Cagney  <cagney@gnu.org>
4518
4519         * config/h8300/h8300.mt (DEPRECATED_TM_FILE): Delete.
4520         * config/h8300/tm-h8300.h: Delete file.
4521
4522         Mark up add_cmd.
4523         * arch-utils.c, avr-tdep.c, breakpoint.c, corefile.c: Update.
4524         * cp-abi.c, cp-namespace.c, cp-support.c, dummy-frame.c: Update.
4525         * exec.c, gnu-nat.c, go32-nat.c, hppa-tdep.c, infcmd.c: Update.
4526         * infrun.c, interps.c, macrocmd.c, maint.c, memattr.c: Update.
4527         * mips-tdep.c, ocd.c, osabi.c, printcmd.c, regcache.c: Update.
4528         * reggroups.c, remote-fileio.c, remote-rdi.c, remote.c: Update.
4529         * sol-thread.c, source.c, stack.c, symfile-mem.c: Update.
4530         * symfile.c, thread.c, tracepoint.c, valprint.c, value.c: Update.
4531         * win32-nat.c, cli/cli-cmds.c, cli/cli-dump.c: Update.
4532         * cli/cli-logging.c, tui/tui-regs.c: Update.
4533
4534         Mark up add_setshow functions, replace "PRINT:" comment prefix
4535         with "FIXME: i18n:".
4536         * aix-thread.c, alpha-tdep.c, arm-tdep.c, breakpoint.c: Update.
4537         * cris-tdep.c, dwarf2read.c, frame.c, hppa-tdep.c: Update.
4538         * infcall.c, m32r-rom.c, maint.c, mips-tdep.c: Update.
4539         * nto-tdep.c, observer.c, remote-rdi.c, remote.c: Update.
4540         * target.c, cli/cli-logging.c: Update.
4541
4542         * utils.c (paddress): New function.
4543         * defs.h (paddress): Declare.
4544         * printcmd.c (deprecated_print_address_numeric): Rename
4545         print_address_numeric, call paddress.
4546         * valprint.c, ui-out.c, tui/tui-stack.c, tracepoint.c: Update.
4547         * symmisc.c, symfile.c stack.c, p-valprint.c, printcmd.c: Update.
4548         * maint.c, m32r-rom.c, infcmd.c, f-valprint.c, exec.c: Update.
4549         * dwarf2read.c, dve3900-rom.c, defs.h, c-valprint.c: Update.
4550         * corefile.c, cli/cli-cmds.c, breakpoint.c, annotate.c: Update.
4551         * ada-valprint.c: Update.
4552
4553 2005-02-13  Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
4554
4555         * MAINTAINERS: Add myself to "Write After Approval".
4556
4557 2005-02-12  Yoshinori Sato <ysato@users.sourceforge.jp>
4558
4559         Restore h8300 support.
4560         * configure.tgt: Add h8300-*-*
4561         * h8300-tdep.c: New file. Rewrite new frame code.
4562         * config/h8300/h8300.mt: New file. Restored Rev 1.3
4563         * config/h8300/tm-h8300.h: New file. Restored Rev 1.21
4564
4565         * MAINTAINERS: Add myself to "Write After Approval".
4566
4567 2005-02-11  Andrew Cagney  <cagney@gnu.org>
4568
4569         Mark up some of printf_filtered and printf_unfiltered.
4570         * ada-lang.c, annotate.c, arch-utils.c, breakpoint.c: Update.
4571         * corelow.c, cp-namespace.c, cp-support.c, dcache.c: Update.
4572         * demangle.c, dsrec.c, dwarf2read.c, dwarfread.c: Update.
4573         * event-loop.c, event-top.c, exec.c, f-valprint.c: Update.
4574         * gdbtypes.c, inf-loop.c, inf-ptrace.c, inf-ttrace.c: Update.
4575         * infcmd.c, inflow.c, infrun.c, inftarg.c, language.c: Update.
4576         * linespec.c, linux-nat.c, linux-thread-db.c, maint.c: Update.
4577         * mdebugread.c, memattr.c, monitor.c, objc-lang.c: Update.
4578         * ocd.c, osabi.c, printcmd.c, procfs.c, regcache.c: Update.
4579         * remote.c, solib-som.c, solib.c, somsolib.c, source.c: Update.
4580         * stack.c, symfile.c, symmisc.c, target.c, thread.c: Update.
4581         * top.c, utils.c, valprint.c, value.c, cli/cli-cmds.c: Update.
4582         * cli/cli-dump.c, cli/cli-logging.c, tui/tui-hooks.c: Update.
4583         * tui/tui-regs.c, tui/tui-win.c: Update.
4584
4585         Mark up error_no_arg, query, perror_with_name, complaint, and
4586         internal_error.
4587         * breakpoint.c, cp-abi.c, cp-namespace.c, cp-support.c: Update.
4588         * cris-tdep.c, dbxread.c, dictionary.c, dsrec.c: Update.
4589         * dummy-frame.c, dve3900-rom.c, dwarf2-frame.c, dwarf2expr.c: Update.
4590         * dwarf2read.c, dwarfread.c, elfread.c, event-loop.c: Update.
4591         * exceptions.c, exec.c, f-lang.c, findvar.c, fork-child.c: Update.
4592         * frame-unwind.c, frame.c, frv-linux-tdep.c, frv-tdep.c: Update.
4593         * gdb_assert.h, gdbarch.c, gdbtypes.c, gnu-nat.c: Update.
4594         * go32-nat.c, hppa-tdep.c, hppabsd-nat.c, hpread.c: Update.
4595         * i386-linux-nat.c, i386-nat.c, i386-tdep.c, i386bsd-nat.c: Update.
4596         * i386fbsd-nat.c, inf-ptrace.c, inf-ttrace.c, infcall.c: Update.
4597         * infcmd.c, inflow.c, infptrace.c, infrun.c, inftarg.c: Update.
4598         * interps.c, language.c, linespec.c, linux-nat.c: Update.
4599         * m32r-linux-nat.c, m68k-tdep.c, m68kbsd-nat.c: Update.
4600         * m68klinux-nat.c, m88kbsd-nat.c, macroexp.c, macroscope.c: Update.
4601         * macrotab.c, maint.c, mdebugread.c, memattr.c: Update.
4602         * mips-linux-tdep.c, mips-tdep.c, mips64obsd-nat.c: Update.
4603         * mipsnbsd-nat.c, mn10300-tdep.c, monitor.c, nto-procfs.c: Update.
4604         * objc-lang.c, objfiles.c, objfiles.h, ocd.c, osabi.c: Update.
4605         * parse.c, ppc-bdm.c, ppc-linux-nat.c, ppc-sysv-tdep.c: Update.
4606         * ppcnbsd-nat.c, ppcobsd-nat.c, printcmd.c, procfs.c: Update.
4607         * regcache.c, reggroups.c, remote-e7000.c, remote-mips.c: Update.
4608         * remote-rdp.c, remote-sds.c, remote-sim.c, remote-st.c: Update.
4609         * remote-utils.c, remote.c, rs6000-nat.c, rs6000-tdep.c: Update.
4610         * s390-nat.c, s390-tdep.c, sentinel-frame.c, serial.c: Update.
4611         * sh-tdep.c, sh3-rom.c, sh64-tdep.c, shnbsd-nat.c: Update.
4612         * solib-aix5.c, solib-svr4.c, solib.c, source.c: Update.
4613         * sparc-nat.c, stabsread.c, stack.c, symfile.c, symtab.c: Update.
4614         * symtab.h, target.c, tracepoint.c, ui-file.c, ui-out.c: Update.
4615         * utils.c, valops.c, valprint.c, vax-nat.c, vaxbsd-nat.c: Update.
4616         * win32-nat.c, xcoffread.c, xstormy16-tdep.c: Update.
4617         * cli/cli-cmds.c, cli/cli-logging.c, cli/cli-script.c: Update.
4618         * cli/cli-setshow.c, mi/mi-cmd-break.c, mi/mi-cmds.c: Update.
4619         * mi/mi-console.c, mi/mi-getopt.c, mi/mi-out.c: Update.
4620         * tui/tui-file.c, tui/tui-interp.c: Update.
4621
4622 2005-02-10  Andrew Cagney  <cagney@gnu.org>
4623
4624         Mark up all error and warning messages.
4625         * ada-lang.c, amd64-tdep.c, arch-utils.c, breakpoint.c: Update.
4626         * bsd-kvm.c, bsd-uthread.c, coff-solib.h, coffread.c: Update.
4627         * core-aout.c, core-regset.c, corefile.c, corelow.c: Update.
4628         * cp-abi.c, cp-support.c, cp-valprint.c, cris-tdep.c: Update.
4629         * dbxread.c, demangle.c, doublest.c, dsrec.c: Update.
4630         * dve3900-rom.c, dwarf2expr.c, dwarf2loc.c: Update.
4631         * dwarf2read.c, dwarfread.c, elfread.c, eval.c: Update.
4632         * event-top.c, exec.c, expprint.c, f-lang.c: Update.
4633         * f-typeprint.c, f-valprint.c, fbsd-nat.c, findvar.c: Update.
4634         * frame.c, frv-linux-tdep.c, gcore.c, gdbtypes.c: Update.
4635         * gnu-nat.c, gnu-v2-abi.c, gnu-v3-abi.c, go32-nat.c: Update.
4636         * hpacc-abi.c, hppa-hpux-nat.c, hppa-hpux-tdep.c: Update.
4637         * hppa-linux-nat.c, hppa-linux-tdep.c, hppa-tdep.c: Update.
4638         * hpread.c, hpux-thread.c, i386-linux-nat.c: Update.
4639         * i386-linux-tdep.c, i386-tdep.c, i386bsd-nat.c: Update.
4640         * i386gnu-nat.c, i387-tdep.c, ia64-linux-nat.c: Update.
4641         * ia64-tdep.c, inf-child.c, inf-ptrace.c, inf-ttrace.c: Update.
4642         * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Update.
4643         * inftarg.c, interps.c, irix5-nat.c, jv-lang.c: Update.
4644         * kod-cisco.c, kod.c, language.c, libunwind-frame.c: Update.
4645         * linespec.c, linux-nat.c, linux-thread-db.c, m2-lang.c: Update.
4646         * m32r-rom.c, m68hc11-tdep.c, m68k-tdep.c: Update.
4647         * m68klinux-nat.c, macrocmd.c, macroexp.c, main.c: Update.
4648         * maint.c, mdebugread.c, mem-break.c, memattr.c: Update.
4649         * mips-linux-tdep.c, mips-tdep.c, mipsread.c, monitor.c: Update.
4650         * nlmread.c, nto-procfs.c, objc-lang.c, objfiles.c: Update.
4651         * observer.c, ocd.c, p-lang.c, p-typeprint.c: Update.
4652         * p-valprint.c, pa64solib.c, parse.c, ppc-linux-tdep.c: Update.
4653         * ppcnbsd-tdep.c, printcmd.c, procfs.c, remote-e7000.c: Update.
4654         * remote-fileio.c, remote-m32r-sdi.c, remote-rdi.c: Update.
4655         * remote-rdp.c, remote-sim.c, remote-st.c: Update.
4656         * remote-utils.c, remote-utils.h, remote.c: Update.
4657         * rom68k-rom.c, rs6000-nat.c, s390-tdep.c, scm-lang.c: Update.
4658         * ser-e7kpc.c, ser-tcp.c, ser-unix.c, sh-tdep.c: Update.
4659         * sh3-rom.c, shnbsd-tdep.c, sol-thread.c, solib-aix5.c: Update.
4660         * solib-frv.c, solib-irix.c, solib-osf.c, solib-pa64.c: Update.
4661         * solib-som.c, solib-sunos.c, solib-svr4.c, solib.c: Update.
4662         * somread.c, somsolib.c, source.c, stabsread.c: Update.
4663         * stack.c, std-regs.c, symfile-mem.c, symfile.c: Update.
4664         * symmisc.c, symtab.c, target.c, thread.c, top.c: Update.
4665         * tracepoint.c, trad-frame.c, typeprint.c, utils.c: Update.
4666         * uw-thread.c, valarith.c, valops.c, valprint.c: Update.
4667         * value.c, varobj.c, version.in, win32-nat.c, wince.c: Update.
4668         * xcoffread.c, xcoffsolib.c, cli/cli-cmds.c: Update.
4669         * cli/cli-decode.c, cli/cli-dump.c, cli/cli-logging.c: Update.
4670         * cli/cli-script.c, cli/cli-setshow.c, mi/mi-cmd-break.c: Update.
4671         * mi/mi-cmd-disas.c, mi/mi-cmd-env.c, mi/mi-cmd-file.c: Update.
4672         * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-getopt.c: Update.
4673         * mi/mi-symbol-cmds.c, tui/tui-layout.c, tui/tui-stack.c: Update.
4674         * tui/tui-win.c: Update.
4675
4676 2005-02-10  Ian Lance Taylor  <ian@airs.com>
4677
4678         * MAINTAINERS: Update my e-mail address.
4679
4680 2005-02-10  Daniel Jacobowitz  <dan@debian.org>
4681
4682         From Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>:
4683         PR exp/1821
4684         * cp-valprint.c: Include "language.h".
4685         (cp_print_value_fields): Pass the current language to
4686         fprintf_symbol_filtered.
4687         * Makefile.in (cp-valprint.o): Update dependencies.
4688
4689 2005-02-10  Andrew Cagney  <cagney@gnu.org>
4690
4691         * cli/cli-decode.c (add_setshow_enum_cmd, add_setshow_cmd_full)
4692         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
4693         (add_setshow_filename_cmd, add_setshow_string_cmd)
4694         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Replace
4695         print string parameter with fprint_setshow function.
4696         * command.h (fprint_setshow_ftype): Define.  Update declarations.
4697         * cli/cli-setshow.c (do_setshow_command): When fprint_setshow is
4698         available, use that.
4699         * cli/cli-decode.h (struct cmd_list_element): Add field
4700         fprint_setshow.
4701         * complaints.c (fprint_setshow_complaints): New function.
4702         (_initialize_complaints): Pass to add_setshow_zinteger_cmd.
4703         * hppa-tdep.c (_initialize_hppa_tdep): Replace "print" parameter
4704         with NULL.
4705         * mips-tdep.c (_initialize_mips_tdep): Ditto.
4706         * m32r-rom.c (_initialize_m32r_rom): Ditto.
4707         * cris-tdep.c (_initialize_cris_tdep): Ditto.
4708         * arm-tdep.c (_initialize_arm_tdep): Ditto.
4709         * remote-rdi.c (_initialize_remote_rdi): Ditto.
4710         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
4711         * dwarf2read.c (_initialize_dwarf2_read): Ditto.
4712         * frame.c (_initialize_frame): Ditto.
4713         * target.c (initialize_targets): Ditto.
4714         * maint.c (_initialize_maint_cmds): Ditto.
4715         * observer.c (_initialize_observer): Ditto.
4716         * infcall.c (_initialize_infcall): Ditto.
4717         * breakpoint.c (_initialize_breakpoint): Ditto.
4718         * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4719         * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4720
4721         * cli/cli-setshow.c (do_setshow_command): Move code printing the
4722         value to the end of the function.  Handle MI and non-MI output
4723         differently.
4724
4725 2005-02-09  Andrew Cagney  <cagney@gnu.org>
4726
4727         * cli/cli-decode.c (add_setshow_enum_cmd): Drop set_result and
4728         show_result parameters.
4729         * mips-tdep.c (_initialize_mips_tdep): Update calls.
4730         * command.h: Update declaration.
4731         * arm-tdep.c (_initialize_arm_tdep, _initialize_arm_tdep): Update
4732         calls.
4733
4734         * NEWS: Mention removed commands.
4735         * m68hc11-tdep.c (show_regs): Delete, unused.
4736         (_initialize_m68hc11_tdep): Delete deprecated "regs" command.
4737         * gdb-events.sh: Delete deprecated "set eventdebug" and "show
4738         eventdebug" commands.
4739         * gdb-events.c: Regenerate.
4740         * gdbarch.sh: Delete deprecated "set archdebug" and "show
4741         archdebug" commands.
4742         * gdbarch.c: Regenerate.
4743         * cli/cli-cmds.c (init_cli_cmds): Delete deprecated "set
4744         remotedebug" and "show remotedebug".
4745         * arm-tdep.c (_initialize_arm_tdep): Delete deprecated "set arm
4746         disassembly-flavor", "show arm disassembly-flavor", and
4747         "othernames" commands.
4748         (arm_othernames): Delete unused function.
4749
4750         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call)
4751         (convert_code_addr_to_desc_addr): Convert any function code
4752         address to the corresponding function's descriptor.
4753         (ppc64_sysv_abi_return_value): have TYPE_CODE_ENUM and
4754         TYPE_CODE_INT use the same code paths as TYPE_CODE_INT.  When
4755         writing, convert any function code address to the corresponding
4756         descriptor.
4757
4758         * config/sh/linux.mt (TDEPFILES): Add symfile-mem.o.
4759         * config/powerpc/linux.mt (TDEPFILES): Ditto.
4760         * config/pa/linux.mt (TDEPFILES): Ditto.
4761         * config/mips/linux.mt (TDEPFILES): Ditto.
4762         * config/m68k/linux.mt (TDEPFILES): Ditto.
4763         * config/m32r/linux.mt (TDEPFILES): Ditto.
4764         * config/ia64/linux.mt (TDEPFILES): Ditto.
4765         * config/arm/linux.mt (TDEPFILES): Ditto.
4766
4767 2005-02-09  Corinna Vinschen  <vinschen@redhat.com>
4768
4769         * symmisc.c: Include gdb_stat.h.
4770         (maintenance_print_msymbols): Use inode numbers to compare files.
4771
4772 2005-02-08  Andrew Cagney  <cagney@gnu.org>
4773
4774         * value.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
4775         (METHOD_PTR_TO_VOFFSET): Move from here ...
4776         * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
4777         (METHOD_PTR_TO_VOFFSET): ... to here.
4778         * cp-valprint.c, p-valprint.c, eval.c: Include "cp-support.h".
4779         * Makefile.in: Update dependencies.
4780
4781         * exceptions.c: Do not include <setjmp.h>.
4782         (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP): Delete macros.
4783         (catch_exception, catch_exceptions_with_msg, catch_errors)
4784         (catch_command_errors): Use TRY_CATCH.
4785         (struct catcher): Use EXCEPTIONS_SIGJMP_BUF.
4786         (exceptions_state_mc_init): Rename catcher_init.
4787         (exceptions_state_mc): Rename catcher_state_machine.
4788         (exceptions_state_mc_action_iter)
4789         (exceptions_state_mc_action_iter_1): New functions.
4790         * exceptions.h: Include <setjmp.h>.
4791         (EXCEPTIONS_SIGJMP_BUF, EXCEPTIONS_SIGSETJMP)
4792         (EXCEPTIONS_SIGLONGJMP): Define.
4793         (exceptions_state_mc_init, exceptions_state_mc_action_iter)
4794         (exceptions_state_mc_action_iter_1): Declare.
4795         (TRY_CATCH): Define.
4796
4797         * ppc-linux-tdep.c (ppc_linux_init_abi): Do not set malloc name,
4798         no longer needed.
4799
4800         * ppc-linux-nat.c (ppc_register_u_addr): Hack around 64-bit
4801         PT_FPSCR breakage.
4802
4803         * value.c (struct value): Move to here ...
4804         * value.h (struct value): ... from here.  Copy comments to
4805         corresponding function declarations, re-order.
4806
4807 2005-02-07  Andrew Cagney  <cagney@gnu.org>
4808
4809         * value.c (set_value_bitpos, set_value_bitsize): Define.
4810         * value.h (set_value_bitpos, set_value_bitsize): Declare.
4811         * ada-lang.c, valarith.c: Update.
4812
4813         * cp-valprint.c, c-valprint.c, infcall.c: Use value_contents or
4814         value_contents_writeable, include note that there are problems.
4815         * breakpoint.c, infcall.c: Use VALUE_LVAL.
4816
4817         * value.h (set_value_offset): Declare.
4818         * value.c (set_value_offset): Declare.
4819         * gnu-v2-abi.c, jv-valprint.c, valarith.c, valops.c: Update.
4820         * findvar.c: Update.
4821
4822         * value.h (value_next): Declare.
4823         * value.c (value_next): Define.
4824         * breakpoint.c: Update.
4825
4826         * value.h (deprecated_set_value_modifiable)
4827         (deprecated_value_modifiable): Declare.
4828         * value.c (deprecated_set_value_modifiable): Define.
4829         (deprecated_value_modifiable): Define.
4830         * ada-lang.c, valops.c, breakpoint.c, tracepoint.c: Update.
4831
4832         * value.h (deprecated_set_value_type): Declare.
4833         * value.c (deprecated_set_value_type): Define.
4834         * hpacc-abi.c, gnu-v2-abi.c, cp-valprint.c: Update.
4835         * c-valprint.c, jv-lang.c, objc-lang.c, ada-lang.c: Update.
4836         * infcall.c, printcmd.c, valops.c, eval.c, p-exp.y: Update.
4837         * ax-gdb.c, tracepoint.c: Update.
4838
4839         * value.h (deprecated_value_lval_hack)
4840         (deprecated_value_address_hack)
4841         (deprecated_value_internalvar_hack)
4842         (deprecated_value_regnum_hack): Declare.
4843         (VALUE_LVAL, VALUE_ADDRESS, VALUE_INTERNALVAR)
4844         (VALUE_FRAME_ID, VALUE_REGNUM): Use.
4845         * value.c (deprecated_value_lval_hack)
4846         (deprecated_value_address_hack)
4847         (deprecated_value_internalvar_hack)
4848         (deprecated_value_regnum_hack): Define.
4849
4850         * value.h (VALUE_POINTED_TO_OFFSET): Delete.
4851         (set_value_pointed_to_offset, value_pointed_to_offset): Declare.
4852         * value.c (set_value_pointed_to_offset): Define
4853         (value_pointed_to_offset): Define.
4854         * valops.c: Update.
4855
4856         * value.h (VALUE_EMBEDDED_OFFSET): Delete.
4857         (value_embedded_offset, set_value_embedded_offset): Declare.
4858         * value.c (value_embedded_offset): Define.
4859         (set_value_embedded_offset): Define.
4860         * valops.c, p-valprint.c, mi/mi-main.c, hpacc-abi.c: Update.
4861         * gnu-v3-abi.c, eval.c, c-valprint.c, cp-valprint.c: Update.
4862         * cp-abi.h: Update.
4863
4864         * value.h (VALUE_LAZY): Delete
4865         (set_value_lazy): Declare.
4866         * value.c (set_value_lazy): Define.
4867         * valops.c, valarith.c, jv-valprint.c, jv-lang.c: Update.
4868         * gnu-v2-abi.c, findvar.c, dwarf2loc.c, ada-lang.c: Update.
4869
4870 2005-02-06  Andrew Cagney  <cagney@gnu.org>
4871
4872         * value.h (VALUE_OPTIMIZED_OUT): Delete.
4873         (value_optimized_out, set_value_optimized_out): Declare.
4874         * value.c (set_value_optimized_out, value_optimized_out): Define.
4875         * valprint.c, findvar.c, dwarf2loc.c: Update.
4876
4877         * value.c (value_contents, value_contents_writeable): New
4878         functions.
4879         * value.h (VALUE_CONTENTS): Delete macro.
4880         (value_contents, value_contents_writeable): Declare.
4881         * xstormy16-tdep.c, value.c, valops.c, valarith.c: Update.
4882         * stack.c, sparc-tdep.c, sparc64-tdep.c, sh-tdep.c: Update.
4883         * sh64-tdep.c, scm-valprint.c, scm-exp.c, s390-tdep.c: Update.
4884         * rs6000-tdep.c, p-valprint.c, printcmd.c: Update.
4885         * ppc-sysv-tdep.c, mips-tdep.c, mi/mi-main.c: Update.
4886         * m88k-tdep.c, m68hc11-tdep.c, m32r-tdep.c: Update.
4887         * jv-valprint.c, ia64-tdep.c, hppa-tdep.c: Update.
4888         * hpacc-abi.c, f-valprint.c, frv-tdep.c, eval.c: Update.
4889         * c-valprint.c, cris-tdep.c, cp-valprint.c: Update.
4890         * cli/cli-dump.c, breakpoint.c, avr-tdep.c, arm-tdep.c: Update.
4891         * arm-linux-tdep.c, amd64-tdep.c, alpha-tdep.c: Update.
4892         * ada-valprint.c, ada-lang.c: Update.
4893
4894 2005-02-03  Andrew Cagney  <cagney@gnu.org>
4895
4896         * utils.c (xzalloc): New function.
4897         * defs.h (XZALLOC): Use xzalloc.
4898         (xzalloc): Declare.
4899         * value.c (allocate_value): Allocate a zeroed buffer.
4900         * mdebugread.c (xzalloc): Delete.
4901
4902 2005-02-02  Andrew Cagney  <cagney@gnu.org>
4903
4904         * value.h (value_lazy): Declare.
4905         * varobj.c, value.c, valops.c, valarith.c, printcmd.c: Update.
4906         * cp-valprint.c, breakpoint.c, ada-lang.c: Update.
4907
4908         * value.h (VALUE_CONTENTS_ALL): Delete.
4909         (value_contents_all): Declare.
4910         * value.c (value_contents_all): New function.
4911         * hpacc-abi.c, cp-valprint.c, valops.c, c-valprint.c: Update.
4912         * m68k-tdep.c, i386-tdep.c, infcall.c, valops.c: Update.
4913
4914         * value.c (value_enclosing_type): New function.
4915         * value.h (VALUE_ENCLOSING_TYPE): Delete.
4916         (value_enclosing_type): Declare.
4917         * xstormy16-tdep.c, vax-tdep.c, m68k-tdep.c, i386-tdep.c: Update.
4918         * gnu-v3-abi.c, hpacc-abi.c, infcall.c, valops.c: Update.
4919
4920         * value.c (value_contents_all_raw)
4921         (value_contents_raw): New functions.
4922         * value.h (VALUE_CONTENTS_ALL_RAW, VALUE_CONTENTS_RAW): Delete.
4923         (value_contents_raw, value_contents_all_raw): Declare functions.
4924         (VALUE_CONTENTS, VALUE_CONTENTS_ALL): Update.
4925         * std-regs.c, valarith.c, valops.c, eval.c: Update.
4926         * tracepoint.c, findvar.c: Update.
4927
4928 2005-02-01  Orjan Friberg  <orjanf@axis.com>
4929
4930         * regformats/reg-cris.dat: New file with register definitions for CRIS.
4931         * regformats/reg-crisv32.dat: Ditto for CRISv32.
4932
4933 2005-01-31  Andrew Cagney  <cagney@gnu.org>
4934
4935         * configure: Regenerate to track ../gettext.m4.
4936
4937 2005-01-29  Baurzhan Ismagulov  <ibr@radix50.net>
4938
4939         * MAINTAINERS: Add myself to "Write After Approval".
4940
4941         * ax-gdb.c, ax-general.c, bcache.c, bfd-target.c, bsd-kvm.c,
4942         * buildsym.c, c-lang.c, c-typeprint.c, c-valprint.c, charset.c,
4943         * coff-pe-read.c, coffread.c, complaints.c, copying.c: I18n markup.
4944
4945 2005-01-29  Mark Kettenis  <kettenis@gnu.org>
4946
4947         * configure.ac: Remove extra check for ranlib.
4948         * configure: Regenerated.
4949
4950 2005-01-28  Andrew Cagney  <cagney@gnu.org>
4951
4952         * language.h (struct language_defn): Make la_val_print's buffer
4953         parameter a const bfd_byte.
4954         * cp-valprint.c (cp_print_value_fields, cp_print_value): Update.
4955         * ada-lang.c (ada_aligned_value_addr)
4956         (ada_value_primitive_packed_val, ada_which_variant_applies): Update.
4957         * valprint.c (val_print_array_elements): Update.
4958         * valprint.h (val_print_array_elements): Update.
4959         * ada-lang.h (ada_val_print, ada_aligned_value_addr)
4960         (ada_value_primitive_packed_val, ada_which_variant_applies): Update.
4961         * ada-valprint.c (ada_val_print, struct ada_val_print_args)
4962         (ada_val_print_1, ada_print_floating, printable_val_type)
4963         (print_record, val_print_packed_array_elements)
4964         (print_field_values, print_variant_part): Update.
4965         * c-lang.h (c_val_print, cp_print_value_fields): Update.
4966         * c-valprint.c (c_val_print): Update.
4967         * f-lang.h (f_val_print): Update.
4968         * f-valprint.c (f_val_print, f77_print_array_1)
4969         (f77_print_array): Update.
4970         * jv-lang.h (java_val_print): Update.
4971         * jv-valprint.c (java_print_value_fields, java_val_print): Update.
4972         * language.c (unk_lang_val_print): Update.
4973         * m2-lang.h (m2_val_print): Update.
4974         * m2-valprint.c (m2_val_print): Update.
4975         * p-lang.h (pascal_val_print): Update.
4976         (pascal_object_print_value_fields): Update.
4977         * p-valprint.c (pascal_val_print)
4978         (pascal_object_print_value_fields, pascal_object_print_value)
4979         (pascal_object_print_value): Update.
4980         * scm-lang.h (scm_val_print): Update.
4981         * scm-valprint.c (scm_val_print): Update.
4982         * value.h (val_print): Update.
4983
4984         * p-lang.h (pascal_object_print_class_member)
4985         (pascal_object_print_class_method): Make buffer a const bfd_byte.
4986         * p-valprint.c (pascal_object_print_class_method)
4987         (pascal_object_print_class_method): Ditto.
4988
4989         * language.h (struct language_defn): Make la_printstr's buffer
4990         parameter a const bfd_byte.
4991         * p-lang.h (pascal_printstr): Update function to match.
4992         * ada-valprint.c (ada_printstr): Update function to match.
4993         * scm-lang.c (scm_printstr): Update function to match.
4994         * p-lang.c (pascal_printstr): Update function to match.
4995         * ada-lang.h (ada_printstr): Update function to match.
4996         * m2-lang.c (m2_printstr): Update function to match.
4997         * objc-lang.c (objc_printstr): Update function to match.
4998         * c-lang.h (c_printstr): Update function to match.
4999         * f-lang.c (f_printstr): Update function to match.
5000         * c-lang.c (c_printstr): Update function to match.
5001         * language.c (unk_lang_printstr): Update function to match.
5002
5003         * valprint.c (val_print_type_code_int): Make buffer a const bfd_byte.
5004         * valprint.h (val_print_type_code_int): Ditto.
5005
5006         * objc-lang.h (c_val_print, c_value_print): Delete declarations.
5007
5008         * cp-valprint.c (cp_print_class_method)
5009         (cp_print_class_member): Make buffer a const bfd_byte.
5010         * c-lang.h (cp_print_class_member, cp_print_class_method): Ditto.
5011
5012         * ada-lang.c (value_from_contents_and_address)
5013         (to_record_with_fixed_variant_part)
5014         (value_tag_from_contents_and_address, ada_to_fixed_type)
5015         (to_fixed_variant_branch_type, to_fixed_record_type)
5016         (ada_template_to_fixed_record_type, cond_offset_host)
5017         (ada_template_to_fixed_record_type_1): Make buffer a const
5018         bfd_byte.
5019         * ada-lang.h (ada_template_to_fixed_record_type_1)
5020         (value_from_contents_and_address, ada_to_fixed_type): Ditto.
5021
5022         * ada-valprint.c (char_at, printstr): Make buffer a const bfd_byte.
5023
5024         * gdbtypes.h (print_scalar_formatted): Make buffer a const bfd_byte.
5025         * printcmd.c (print_scalar_formatted): Update.
5026
5027         * value.h (value_bit_index, print_floating)
5028         (find_rt_vbase_offset): Make buffer a const bfd_byte.
5029         * valprint.c (print_floating): Update.
5030         * valarith.c (value_bit_index): Update.
5031         * valops.c (find_rt_vbase_offset): Update.
5032
5033         * valprint.h (print_octal_chars, print_char_chars)
5034         (print_hex_chars, print_decimal_chars, print_binary_chars): Make
5035         buffer a const bfd_byte.
5036         * valprint.c (print_binary_chars, print_octal_chars)
5037         (print_decimal_chars, print_hex_chars, print_char_chars): Make
5038         "valaddr"buffer a const bfd_byte, ditto for local variables
5039         referencing that buffer.
5040
5041         * m2-valprint.c: Include "c-lang.h".
5042         (c_val_print): Delete extern declaration.
5043         * scm-valprint.c: Include "c-lang.h".
5044         (c_val_print): Delete extern declaration.
5045         Makefile.in: Update dependencies.
5046
5047         * gnu-v2-abi.h (gnuv2_baseclass_offset): Make "valaddr" a const
5048         bfd_byte.
5049         * cp-abi.h (baseclass_offset): Make "valaddr" a const bfd_byte.
5050         (struct cp_abi_ops): Make baseclass_offset's "valaddr" a const
5051         bfd_byte.
5052         * cp-abi.c (baseclass_offset): Update.
5053         * gnu-v2-abi.c (gnuv2_baseclass_offset): Update.
5054
5055         * gnu-v2-abi.h: New file.
5056         * gnu-v2-abi.c: Include "gnu-v2-abi.h".
5057         (gnuv2_baseclass_offset): Delete declaration.
5058         * hpacc-abi.c: Include "gnu-v2-abi.h".
5059         (gnuv2_baseclass_offset): Delete extern declaration.
5060         * Makefile.in: Update dependencies.
5061
5062         * doublest.c (floatformat_is_negative, floatformat_is_nan)
5063         (floatformat_mantissa, get_field): Make the buffer a const
5064         bfd_byte, simplify.
5065
5066 2005-01-27  Andrew Cagney  <cagney@gnu.org>
5067
5068         * value.h (struct value): Change type of contents to bfd_byte.
5069         (VALUE_CONTENTS_RAW): Simplify.
5070
5071         * gdbarch.sh (integer_to_address): Change buf parameter to a const
5072         bfd_byte, make pure-multi-arch.
5073         * gdbarch.h, gdbarch.c: Regenerate.
5074         * mips-tdep.c (mips_integer_to_address): Update.
5075         * value.c (value_as_address): Update.
5076
5077         * cli/cli-dump.h (fopen_with_cleanup): Make "filename" const.
5078         * cli/cli-dump.c (dump_binary_file, dump_bfd_file): Make string
5079         parameters const, change buf to a const bfd_byte.
5080         (fopen_with_cleanup, bfd_openw_with_cleanup): Make all string
5081         parameters const.
5082
5083         * corefile.c (write_memory): Update, make a copy of the read-only
5084         buffer.
5085         * target.c (target_read_memory): Update.
5086         (target_write_memory): Update, make a copy of the read-only
5087         buffer.
5088         * gdbcore.h (write_memory): Change buffer type to bfd_byte, make
5089         const.
5090         * target.h (target_read_memory, target_write_memory): Change
5091         buffer type to bfd_byte; for write_memory, make it const.
5092         * symfile-mem.c (do_target_read_memory): New function.
5093         (symbol_file_add_from_memory): Pass do_target_read_memory to
5094         bfd_elf_bfd_from_remote_memory.
5095
5096         * value.h: Indent using gdb_indent.sh.
5097
5098         * configure: Regenerate to track ../gettext.m4 change.
5099
5100 2005-01-26  Andrew Cagney  <cagney@gnu.org>
5101
5102         * rs6000-tdep.c: Include "reggroups.h".
5103         (rs6000_gdbarch_init): Set register_reggroup_p.
5104         (rs6000_register_reggroup_p): New function.
5105
5106 2005-01-26  Orjan Friberg  <orjanf@axis.com>
5107
5108         * cris-tdep.c (enum cris_num_regs, enum cris_regnums)
5109         (cris_sigtramp_frame_unwind_cache, cris_register_size): Update for
5110         CRISv32.
5111         (crisv32_single_step_through_delay, cris_can_use_hardware_watchpoint)
5112         (cris_region_ok_for_watchpoint, cris_stopped_data_address)
5113         (crisv32_cannot_fetch_register, crisv32_cannot_store_register)
5114         (crisv32_register_type, cris_special_register_name)
5115         (crisv32_register_name): New functions.
5116         (cris_spec_reg_applicable): Recognize more versions.
5117         (cris_register_name): Update with call to cris_special_register_name.
5118         (find_cris_op): Filter out CRISv32 instructions.  Tweaked comment and
5119         warning when unable to find step target.
5120         (CRISV10_ELF_NGREG, CRISV32_ELF_NGREG, crisv32_elf_gregset_t): Define.
5121         (supply_gregset): Add struct gdbarch_tdep.  Set pseudo-PC register for
5122         CRISv32.
5123         (fetch_core_registers): Update for CRISv32.
5124         (cris_gdbarch_init): Set pc_regnum, register_type, num_regs,
5125         register_name, cannot_store_register, cannot_fetch_register,
5126         have_nonsteppable_watchpoint, single_step_through_delay for CRISv32.
5127
5128 2005-01-26  Nick Roberts  <nickrob@snap.net.nz>
5129
5130         * interps.c (interpreter_exec_cmd): Use condition,
5131         e.reason < 0, to raise an error.
5132
5133 2005-01-25  Andrew Cagney  <cagney@gnu.org>
5134
5135         * ppc-linux-tdep.c: Include "tramp-frame.h"
5136         (struct ppc_linux_sigtramp_cache)
5137         (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
5138         (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
5139         (ppc_linux_sigtramp_cache): Delete.
5140         (ppc32_linux_sigaction_cache_init)
5141         (ppc64_linux_sigaction_cache_init)
5142         (ppc32_linux_sighandler_cache_init)
5143         (ppc64_linux_sighandler_cache_init)
5144         (ppc32_linux_sigaction_tramp_frame)
5145         (ppc64_linux_sigaction_tramp_frame)
5146         (ppc32_linux_sighandler_tramp_frame)
5147         (ppc64_linux_sighandler_tramp_frame)
5148         (ppc_linux_sigtramp_cache, ppc_linux_init_abi): Implement 32 and
5149         64-bit, sigaction and siginfo tramp-frame unwinders.
5150
5151         * ppc-linux-tdep.c (ppc_linux_init_abi): Always set
5152         long_double_bit to 8.
5153
5154 2005-01-24  Andrew Cagney  <cagney@gnu.org>
5155
5156         * infrun.c (handle_inferior_event): Handle back-to-back and nested
5157         signals where the step_resume_breakpoint may have already been
5158         inserted.
5159
5160 2005-01-24  Andrew Cagney  <cagney@gnu.org>
5161
5162         * configure: Regenerate, ../gettext.m4 was updated.
5163
5164 2005-01-23  Mark Kettenis  <kettenis@gnu.org>
5165
5166         * NEWS: Mention new BSD user-level threads support.
5167
5168         * i386obsd-tdep.c: Update copyright year.  Include
5169         "bsd-uthread.h".
5170         (i386obsd_uthread_reg_offset): New variable.
5171         (I386OBSD_UTHREAD_ESP_OFFSET): New define.
5172         (i386obsd_supply_uthread, i386obsd_collect_uthread): New
5173         functions.
5174         (i386obsd_init_abi): Set supply_uthread and collect_uthread.
5175         * Makefile.in (i386obsd-tdep.o): Update dependencies.
5176         * config/i386/obsd.mt (TDEPFILES): Add bsd-uthread.o.
5177
5178 2005-01-23  Christopher Faylor  <cgf@timesys.com>
5179
5180         * win32-nat.c: Update copyright year.
5181         (child_init_thread_list): Set thread linked list point to NULL so that
5182         it won't be reused after clearing.
5183
5184 2005-01-21  Mark Kettenis  <kettenis@gnu.org>
5185
5186         * acconfig.h (HAVE_STRUCT_REG_R_FS, HAVE_STRUCT_R_GS): Remove
5187         undefs.
5188         * configure.ac: Use AC_CHECK_MEMBERS to check whether `struct
5189         thread' has a td_pcb member and whether `struct reg' has r_fs and
5190         r_gs members.
5191         * configure, config.in: Regenerate.
5192
5193 2005-01-21  Mark Kettenis  <kettenis@gnu.org>
5194
5195         * configure.ac: Remove ia64-*-aix* junk.
5196         * configure: Regenerate.
5197
5198         * configure.ac: Use AC_CHECK_DECLS instead of gcc_AC_CHECK_DECLS
5199         and BFD_NEED_DECLARATION.  Don't check if a declaration of strdup
5200         is necessary.
5201         * configure, config.in: Regenerate.
5202         * utils.c: Adjust for usage of AC_CHECK_DECLS instead of
5203         BFD_NEED_DECLARATION.  Never provide a prototype for
5204         caninicalize_file_name.
5205         * gdb_string.h: Adjust for usage of AC_CHECK_DECLS instead of
5206         BFD_NEED_DECLARATION.
5207
5208         * configure.ac (targ_archs): Use standard autoconf check for
5209         "struct stat.st_blocks" instead of rolling our own.
5210         * configure: Regenerated.
5211         * acconfig.h (HAVE_STRUCT_STAT_ST_BLOCKS): Remove undef.
5212         * config.in: Regenerated.
5213
5214 2005-01-21  Mark Kettenis  <kettenis@gnu.org>
5215
5216         * configure.ac: Modernize checks for `long long' and `long double'
5217         support.
5218         * configure: Regenerated.
5219         * acconfig.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG)
5220         (PRINT_HAS_LONG_DOUBLE, SCANF_HAS_LONG_DOUBLE): Remove undefs.
5221         * config.in: Regenerated.
5222
5223 2005-01-20  Mark Kettenis  <kettenis@gnu.org>
5224
5225         * acconfig.h (HAVE_STRUCT_SAVE_STATE_T)
5226         (HAVE_STRUCT_MEMBER_SS_WIDE): Remove undefs.
5227         * configure.ac: Remove checks for HP-UX save_state structure.
5228         * configure: Regenerated.
5229
5230 2005-01-19  Andrew Cagney  <cagney@gnu.org>
5231
5232         * utils.c (quit): Simplify, call fatal.
5233         * exceptions.c: Include "serial.h"
5234         (print_flush): Mimic flush code found in utils.c:quit.
5235         * Makefile.in: Update dependencies.
5236
5237 2005-01-19  Jim Blandy  <jimb@redhat.com>
5238
5239         * configure.tgt: Set build_rdi_share to "yes" on those targets
5240         that use that debugging protocol.
5241         Set build_nlm to yes to build NLM stub for Netware targets.
5242         * configure.ac: If build_rdi_share is "yes", then configure the
5243         rdi-share subdirectory.
5244         If build_nlm is "yes", the configure the "nlm" subdirectory.
5245         * configure: Regenerated.
5246
5247         * rdi-share/configure, rdi-share/aclocal.m4: Regenerated using
5248         autoconf 2.59 and automake 1.9.3.
5249
5250 2005-01-19  Andrew Cagney  <cagney@gnu.org>
5251
5252         * exceptions.h (deprecated_throw_reason): Rename throw_reason.
5253         * exceptions.c (deprecated_throw_reason): Rename throw_reason.
5254         * utils.c (internal_verror, quit): Update.
5255         * remote-sds.c (interrupt_query): Update.
5256         * remote-mips.c (mips_error, mips_kill): Update.
5257         * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Update.
5258         * remote.c (interrupt_query): Update.
5259         * ocd.c (interrupt_query): Update.
5260         * nto-procfs.c (interrupt_query): Update.
5261         * monitor.c (monitor_interrupt_query): Update.
5262         * breakpoint.c (break_command_1): Update.
5263
5264         * infrun.c: (resume, proceed, wait_for_inferior)
5265         (handle_inferior_event, stop_stepping)
5266         (prepare_to_wait): Write debug output to gdb_stdlog.
5267
5268 2005-01-19  Mark Kettenis  <kettenis@gnu.org>
5269
5270         * inf-ptrace.c (inf_ptrace_prepare_to_store)
5271         (inf_ptrace_post_startup_inferior)
5272         (inf_ptrace_acknowledge_created_inferior)
5273         (inf_ptrace_insert_fork_catchpoint)
5274         (inf_ptrace_remove_fork_catchpoint)
5275         (inf_ptrace_insert_vfork_catchpoint):
5276         (inf_ptrace_remove_vfork_catchpoint, inf_ptrace_follow_fork)
5277         (inf_ptrace_insert_exec_catchpoint)
5278         (inf_ptrace_remove_exec_catchpoint): Remove functions.
5279         (inf_ptrace_reported_exec_events_per_exec_call): Tweak comment.
5280         (inf_ptrace_target): Don't set to_prepare_to_store,
5281         to_post_startup_inferior, to_acknowledge_created_inferior,
5282         to_insert_fork_ctachpoint, to_remove_fork_catchpoint,
5283         to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
5284         to_follow_fork, to_insert_exec_catchpoint,
5285         to_remove_exec_catchpoint.
5286
5287 2005-01-18  Andrew Cagney  <cagney@gnu.org>
5288
5289         * target.h (struct target_ops): Change return type of
5290         to_insert_fork_catchpoint, to_insert_vfork_catchpoint and
5291         to_insert_exec_catchpoint to void.
5292         (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
5293         (child_insert_exec_catchpoint): Change return type to void.
5294         * target.c (update_current_target): Update.
5295         (debug_to_insert_fork_catchpoint)
5296         (debug_to_insert_vfork_catchpoint)
5297         (debug_to_insert_exec_catchpoint): Update.
5298         * inf-child.c (inf_child_insert_fork_catchpoint)
5299         (inf_child_insert_vfork_catchpoint)
5300         (inf_child_insert_exec_catchpoint): Update.
5301         * breakpoint.c (insert_catchpoint): Update, do not throw an error.
5302         * linux-nat.c (child_insert_fork_catchpoint)
5303         (child_insert_vfork_catchpoint)
5304         (child_insert_exec_catchpoint): Update.
5305         * inftarg.c (child_insert_fork_catchpoint)
5306         (child_insert_vfork_catchpoint,)
5307         (child_insert_exec_catchpoint): Update.
5308
5309         * remote.c (remote_open_1): Use throw_exception.
5310
5311 2005-01-17  Michael Snyder  <msnyder@redhat.com>
5312
5313         * mips-linux-tdep.c: Whitespace tweaks.
5314
5315 2005-01-17  Corinna Vinschen  <vinschen@redhat.com>
5316
5317         * infcmd.c (attach_command): Call CLEAR_SOLIB if available.
5318
5319 2005-01-17  Andrew Cagney  <cagney@gnu.org>
5320
5321         * top.h (source_error, source_pre_error): Delete declaration.
5322         * cli/cli-script.c (source_error_allocated, source_error): Delete.
5323         (script_from_file, source_cleanup_lines): Do not manipulate
5324         source_error_allocated, error_pre_print and source_error.
5325         (struct source_cleanup_lines_args): Delete fields old_pre_error,
5326         and old_error_pre_print.
5327         * top.c (source_error_allocated, source_error)
5328         (source_pre_error): Delete.
5329         (command_line_input): Do not set error_pre_print.
5330         * event-top.c (command_line_handler): Do not set error_pre_print.
5331
5332 2005-01-16  Jason Thorpe  <thorpej@netbsd.org>
5333
5334         * MAINTAINERS: Update my email address.
5335
5336 2005-01-16  Mark Kettenis  <kettenis@gnu.org>
5337
5338         * configure.ac: Provide prerequisite headers when checking
5339         <term.h>.
5340         * configure: Regenerate.
5341
5342         * amd64fbsd-tdep.c: Update copyright year.  Include "gdb_assert.h"
5343         and "bsd-uthread.h".
5344         (amd64fbsd_jmp_buf_reg_offset): New variable.
5345         (amd64fbsd_supply_uthread, amd64fbsd_collect_uthread): New
5346         functions.
5347         (amd64fbsd_init_abi): Set supply_uthread and collect_uthread.
5348         * i386fbsd-tdep.c: Fix typo.
5349         * Makefile.in (amd64fbsd-tdep.o): Update dependencies.
5350         * config/i386/fbsd64.mt (TDEPFILES): Add bsd-uthread.o.
5351
5352 2005-01-16  Andrew Cagney  <cagney@gnu.org>
5353
5354         * cli/cli-script.c: Include "exceptions.h".
5355         (struct wrapped_read_command_file_args): Define.
5356         (wrapped_read_command_file): New function.
5357         (script_from_file): Replace direct call to read_command_file by
5358         one wrapped by an exception handler.
5359         * exceptions.c (throw_it): Free the old message after creating the
5360         new.
5361         * Makefile.in: Update dependencies.
5362
5363 2005-01-16  Mark Kettenis  <kettenis@gnu.org>
5364
5365         * sparc64fbsd-tdep.c: Update copyright year.
5366         (sparc64fbsd_collect_gregset, sparc64fbsd_collect_fpregset): New
5367         functions.
5368         (sparc64fbsd_init_abi): Create register sets with collect
5369         functions.
5370
5371         * sparc64fbsd-nat.c: Include "fbsd-nat.h".
5372         (_initialize_sparc64fbsd_nat): Add some extra features to the
5373         generic SPARC target.
5374         * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
5375         * config/sparc/fbsd.mh (NATDEPFILES): Add fbsd-nat.o and gcore.o.
5376         (NAT_FILE): Set to solib.h.
5377         * config/sparc/nm-fbsd.h: Remove file.
5378
5379         * sparc64-tdep.c (sparc64_store_arguments): Fix typo.
5380
5381         * sparc-tdep.c (sparc_integral_or_pointer_p): Simplify.
5382
5383 2005-01-16  Andrew Cagney  <cagney@gnu.org>
5384
5385         * exceptions.c (struct catcher): Delete saved_error_pre_print and
5386         saved_quit_pre_print.
5387         (catcher_init): Delete parameter errstring, do not override the
5388         pre_print strings.
5389         (catcher_pop): Do not restore the pre_print strings.
5390         (catch_exception, catch_exceptions_with_msg, catch_errors)
5391         (catch_command_errors): Update catch_init calls.
5392
5393 2005-01-16  Mark Kettenis  <kettenis@gnu.org>
5394
5395         * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
5396         * sparc64fbsd-nat.c: Update copyright year.  Include "target.h".
5397
5398 2005-01-15  Andrew Cagney  <cagney@gnu.org>
5399
5400         * acinclude.m4: Include ../bfd/bfd.m4 instead of
5401         ../bfd/acinclude.m4.  Include ../gettext.m4.
5402         * aclocal.m4, configure: Re-generate.
5403
5404         * exceptions.c (do_captured_command)
5405         (struct captured_command_args): Delete.
5406         (catch_command_errors): Simplify by inlining call to catch_errors.
5407
5408         * exceptions.c (struct catcher): Delete field print_message.
5409         (catcher_init): Delete print_message parameter.
5410         (catch_exception, catch_exceptions_with_msg, catch_errors): Update.
5411         (throw_it): Delete prefix parameter.
5412         (throw_verror, throw_vfatal, throw_error): Update.
5413
5414 2005-01-14  Andrew Cagney  <cagney@gnu.org>
5415
5416         * exceptions.c (print_and_throw): Delete, replaced by throw_it.
5417         (throw_reason): Leave the exception's message field blank.
5418         (throw_it): New function, create the exception and throw it.
5419         (throw_verror, throw_vfatal, throw_error): Call throw_it.
5420         (print_any_exception): New function.
5421         (catch_errors, catch_exceptions_with_msg): Call
5422         print_any_exception.
5423         (throw_exception): Move code calling annotate_error and
5424         annotate_quit from here ...
5425         (print_exception): ... to here.
5426
5427         * exceptions.c (exception_fprintf, exception_print): Move printing
5428         of \n from here ...
5429         (print_exception): ... to here.
5430         (print_flush): New function.
5431         (exception_print, exception_fprintf): Replace duplicated flush and
5432         wrap code with call to print_flush.
5433         (print_and_throw): Simplify, by using xstrvprintf, print_flush,
5434         and print_exception.
5435         (do_write): Delete.
5436
5437         * remote-sds.c (interrupt_query): Call throw_reason instead of
5438         throw_exception.
5439         * remote-mips.c (mips_error, mips_kill): Ditto
5440         * ocd.c (interrupt_query): Ditto.
5441         * nto-procfs.c (interrupt_query): Ditto.
5442         * monitor.c (monitor_interrupt_query): Ditto.
5443
5444 2005-01-14  Jeff Johnston  <jjohnstn@redhat.com>
5445
5446         * ia64-linux-nat.c: Include "ia64-tdep.h" to get register definitions.
5447
5448 2005-01-14  Andrew Cagney  <cagney@gnu.org>
5449
5450         * exceptions.h (catch_exceptions): Delete errstring parameter.
5451         (catch_exceptions_with_msg): Ditto.
5452         * exceptions.c (catch_exceptions_with_msg): Update.
5453         (catch_exceptions): Update.
5454         * symfile-mem.c (add_vsyscall_page): Update.
5455         * frame.c (get_current_frame): Update.
5456         * wrapper.c (gdb_value_struct_elt): Update.
5457         * exceptions.c (catch_exceptions): Update.
5458         * thread.c (gdb_list_thread_ids, gdb_thread_select): Update.
5459         * breakpoint.c (gdb_breakpoint_query, gdb_breakpoint): Update.
5460         * remote-fileio.c (remote_fileio_request): Update.
5461
5462         * exceptions.h (exception_fprintf): Declare.
5463         (exception_print): Drop pre_print parameter.
5464         * mi/mi-main.c (mi_execute_command): Update exception_print call.
5465         * cli/cli-interp.c (safe_execute_command): Update exception_print
5466         call.
5467         * remote.c (remote_open_1): Instead of passing an error prefix to
5468         catch_exceptions, use catch_exceptions and exception_fprintf.
5469         (remote_start_remote): Change return type to void.
5470         * breakpoint.c (insert_bp_location): Instead of passing an error
5471         prefix to catch_exceptions, use catch_exceptions and
5472         exception_fprintf.
5473         (insert_catchpoint): Change return type to void.
5474         (break_command_1): Update exception_print call.
5475         * exceptions.c (exception_fprintf): New function.
5476         (print_exception): New function.
5477         (exception_print): Use print_exception.
5478
5479         * utils.c (error_output_message): Delete function.
5480         * defs.h (error_output_message): Delete declaration.
5481
5482         * linespec.c (symtab_from_filename, decode_variable): Use
5483         throw_error instead of error_silent.
5484         * breakpoint.c (do_captured_parse_breakpoint): Change return type
5485         to void.
5486         (break_command_1): Use catch_exception and check the error return
5487         status.
5488         * exceptions.c (throw_error): New function.
5489         (throw_vsilent): Delete function.
5490         * exceptions.h (throw_error): Declare.
5491         (throw_vsilent): Delete declaration.
5492         * utils.c (error_silent): Delete function.
5493         * defs.h (error_silent): Delete declaration.
5494
5495         * mi/mi-main.c (mi_execute_command): Print the exception.
5496         * cli/cli-interp.c (safe_execute_command): Print the exception.
5497         * exceptions.h (exception_print): Declare.
5498         * exceptions.c (struct catcher): Add field print_message.
5499         (catcher_init): Add parameter print_message, store in the catcher
5500         struct.
5501         (print_and_throw): Only print the message when print_message.
5502         (catch_exceptions_with_msg, catch_errors): Pass print_message=1 to
5503         catcher_init.
5504         (catch_exception): Pass print_message=0 to catcher_init.
5505
5506         * varobj.c (varobj_create): Add missing \n.
5507
5508 2005-01-13  Michael Snyder  <msnyder@redhat.com>
5509
5510         * cli/cli-decode.h: Whitespace tweaks.
5511         * wince.c: Whitespace tweaks.
5512         * uw-thread.c: Whitespace tweaks.
5513         * utils.c: Whitespace tweaks.
5514         * tracepoint.[ch]: Whitespace tweaks.
5515         * solist.h: Whitespace tweaks.
5516
5517 2005-01-13  Andrew Cagney  <cagney@gnu.org>
5518
5519         * exceptions.h (struct exception): Make message const.
5520         * mi/mi-main.c (mi_execute_command): Pass result.message directly
5521         to fputstr_unfiltered.
5522
5523 2005-01-13  Michael Snyder  <msnyder@redhat.com>
5524
5525         * stack.c: Whitespace tweaks.
5526         * somsolib.[ch]: Whitespace tweaks.
5527         * solib-aix.c: Whitespace tweaks.
5528         * solib.c: Whitespace tweaks.
5529         * solib-frv.c: Whitespace tweaks.
5530         * solib.h: Whitespace tweaks.
5531         * solib-irix.c: Whitespace tweaks.
5532         * solib-som.c: Whitespace tweaks.
5533         * solib-sunos.c: Whitespace tweaks.
5534         * solib-svr4.[ch]: Whitespace tweaks.
5535         * ser-tcp.c: Whitespace tweaks.
5536         * ser-unix.c: Whitespace tweaks.
5537         * serial.h: Whitespace tweaks.
5538         * scm-valprint.c: Whitespace tweaks.
5539         * rs6000-tdep.c: Whitespace tweaks.
5540         * rs6000-nat.c: Whitespace tweaks.
5541         * remote.c: Whitespace tweaks.
5542
5543 2005-01-13  Andrew Cagney  <cagney@gnu.org>
5544
5545         * defs.h (error_last_message, error_init): Delete declaration.
5546         * utils.c (fatal, vfatal): Call throw_vfatal.
5547         (error, verror): Call throw_verror;
5548         (do_write, error_stream_1): Delete function.
5549         (error_stream): Simplify, call error.
5550         (error_last_message, error_init, gdb_lasterr): Delete.
5551         (error_silent): Simplify, call throw_vsilent.
5552         * mi/mi-interp.c (mi_cmd_interpreter_exec): Dup the message.
5553         * main.c (captured_main): Delete call to error_init.
5554         * exceptions.c (throw_verror, throw_verror)
5555         (throw_vsilent): New functions.
5556         (do_write, print_and_throw): New functions.
5557         (last_message): New global.
5558         (throw_reason): Replace error_last_message with last_message.
5559         (catch_exceptions_with_msg): Dup the message.
5560         * exceptions.h (throw_verror, throw_vfatal, throw_vsilent):
5561         Declare.
5562
5563 2005-01-13  Michael Snyder  <msnyder@redhat.com>
5564
5565         * remote-st.c: Whitespace tweaks.
5566         * remote-sim.c: Whitespace tweaks.
5567         * remote-mips.c: Whitespace tweaks.
5568         * pa64solib.[ch]: Whitespace tweaks.
5569         * mdebugread.c: Whitespace tweaks.
5570         * main.c: Whitespace tweaks.
5571         * interps.c: Whitespace tweaks.
5572         * infrun.c: Whitespace tweaks.
5573         * infcmd.c: Whitespace tweaks.
5574         * hpux-thread.c: Whitespace tweaks.
5575         * hppa-hpux-tdep.c: Whitespace tweaks.
5576         * gdbcore.h: Whitespace tweaks.
5577         * gdbcmd.h: Whitespace tweaks.
5578         * gdb-events[.c, .h, .sh]: Whitespace tweaks.
5579         * corefile.c: Whitespace tweaks.
5580         * completer.c: Whitespace tweaks.
5581         * coff-solib.c: Whitespace tweaks.
5582         * coff-solib.h: Whitespace tweaks.
5583         * cli-out.c: Whitespace tweaks.
5584         * breakpoint.c: Whitespace tweaks.
5585         * cli/cli-interp.c: Tweak comments, per coding standard.
5586
5587 2005-01-13  Andrew Cagney  <cagney@gnu.org>
5588
5589         * breakpoint.c (gdb_breakpoint_query): Update, use
5590         catch_exceptions_with_msg.
5591         (do_captured_breakpoint): Add uiout parameter.
5592         (gdb_breakpoint): Update, use catch_exceptions_with_msg.
5593         * mi/mi-main.c (mi_cmd_thread_select): Pass mi_error_message to
5594         gdb_thread_select.  Return MI_CMD_ERROR instead of
5595         MI_CMD_CAUGHT_ERROR.
5596         (mi_cmd_thread_list_ids): Ditto for gdb_list_thread_ids.
5597         (enum captured_mi_execute_command_actions): Delete
5598         EXECUTE_COMMAND_DISPLAY_ERROR.
5599         (captured_mi_execute_command): Delete code handling
5600         MI_CMD_CAUGHT_ERROR.
5601         (mi_execute_command): Don't check for
5602         EXECUTE_COMMAND_DISPLAY_ERROR.
5603         * mi/mi-cmd-break.c (breakpoint_notify): Update call to
5604         gdb_breakpoint_query.
5605         (mi_cmd_break_insert): Pass mi_error_message to gdb_breakpoint.
5606         * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_CAUGHT_ERROR.
5607         * gdb.h (gdb_thread_select, gdb_list_thread_ids)
5608         (gdb_breakpoint, gdb_breakpoint_query): Add error_message
5609         parameter.
5610         * thread.c (thread_command): Update call.
5611         (gdb_thread_select, gdb_list_thread_ids): Update, call
5612         catch_exceptions_with_msg.
5613
5614         * mi/mi-main.c (mi_execute_command): Use catch_exception,
5615         eliminate call to error_last_message.
5616         (captured_mi_execute_command): Change return type to void.
5617
5618 2005-01-12  Andrew Cagney  <cagney@gnu.org>
5619
5620         * exceptions.c (exception_none): New variable.
5621         * Makefile.in: Update dependencies.
5622         * interps.c: Include "exceptions.h".
5623         (interpreter_exec_cmd, interp_exec): Update to return "struct
5624         exception"
5625         * exceptions.h (no_exception): Declare.
5626         * tui/tui-interp.c (tui_exec): Update to return "struct exception"
5627         * mi/mi-interp.c: Include "exceptions.h".
5628         (mi_cmd_interpreter_exec, mi_interpreter_exec): Update to return
5629         'struct exception".
5630         * cli/cli-interp.c (cli_interpreter_exec, safe_execute_command)
5631         (do_captured_execute_command): Update to use catch_exception.
5632         * interps.h: Include "exceptions.h".
5633         (interp_exec_ftype, interp_exec): Return "struct exception".
5634
5635         * exceptions.h (throw_reason): Rename throw_exception.
5636         (enum errors, struct exception): Define.
5637         (catch_exception_ftype): Define.
5638         (catch_exception, throw_exception): Declare.
5639         * exceptions.c (throw_exception): Rewrite.
5640         (throw_reason): New function.
5641         (struct catcher, catcher_state_machine): Replace "reason" with
5642         "exception", delete "gdberrmsg".
5643         (catch_exception): New function.
5644         (catcher_init): Replace "gdberrmsg" parameter with "exception".
5645         (catch_errors, catch_exceptions_with_msg): Re-implement passing
5646         exception to catcher_init.
5647         * utils.c (error_silent, error_stream_1): Use throw_reason.
5648         (internal_verror, quit): Ditto.
5649         * breakpoint.c (insert_catchpoint, break_command_1): Ditto.
5650         * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Ditto.
5651         * remote.c (remote_open_1, interrupt_query): Ditto.
5652
5653 2005-01-12  Mark Kettenis  <kettenis@gnu.org>
5654
5655         * i386fbsd-tdep.c: Update copyright year.  Include "gdbcore.h",
5656         "regcache.h", "gdb_assert.h" and "bsd-uthread.h".
5657         (i386fbsd_jmp_buf_reg_offset): New variable.
5658         (i386fbsd_supply_uthread, i386fbsd_collect_uthread): New
5659         functions.
5660         (i386fbsdaout_init_abi): Set supply_uthread and collect_uthread.
5661         * Makefile.in (i386fbsd-tdep.o): Update dependency.
5662         * config/i386/fbsd.mt (TDEPFILES): Add bsd-uthread.o.
5663
5664         * bsd-uthread.h: New file.
5665         * bsd-uthread.c: New file.
5666         * Makefile.in (bsd_uthread_h): New variable.
5667         (ALLDEPFILES): Add bsd-uthread.c.
5668         (bsd-uthread.o): New dependency.
5669
5670         * solib.h Update copyright year.
5671         (struct so_list): Forward declaration.
5672         (solib_read_symbols): New prototype.
5673         * solib.c (solib_read_symbols): New function.
5674         (solib_add): Call solib_read_symbols to read in symbols.
5675         (update_solib_list): Call observer_notify_solib_loaded.
5676
5677         * i386bsd-nat.c: Update copyright year.  Don't include
5678         <sys/param.h> and <sys/user.h>.
5679         (register_u_addr, kernel_u_size): Remove functions.
5680         * config/i386/obsd.mh (NAT_FILE): Remove.
5681         * config/i386/obsdaout.mh (NAT_FILE): Set to solib.h.
5682         * config/i386/nm-obsd.h: Remove file.
5683
5684 2005-01-12  Andrew Cagney  <cagney@gnu.org>
5685
5686         * exceptions.c: Include "gdb_string.h".
5687         (enum catcher_state, struct catcher): Define.
5688         (current_catcher): New global, replaces catch_return;
5689         (catch_return): Delete.
5690         (throw_exception): Use current_catcher->buf;
5691         (catcher_init, catcher_pop, catcher_state_machine): New functions.
5692         (catcher): Delete.
5693         (struct catch_errors_args): Delete.
5694         (do_catch_errors): Delete.
5695         (catch_exceptions): Replace body with call to
5696         catch_exceptions_with_msg.
5697         (catcher): Delete.
5698         (catch_exceptions_with_msg, catch_errors): Re-implement using
5699         catcher_state_machine.
5700
5701         * exceptions.h (enum return_reason, RETURN_MASK)
5702         (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL)
5703         (return_mask, throw_exception, catch_exceptions_ftype)
5704         (catch_exceptions_with_msg, catch_errors_ftype, catch_errors)
5705         (catch_command_errors_ftype, catch_command_errors): Move to
5706         exceptions.h.
5707         * exceptions.c, exceptions.h: New files.
5708         * top.c: Do not include <setjmp.h>.
5709         (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, catch_return)
5710         (throw_exception, catcher, catch_exceptions)
5711         (catch_exceptions_with_msg, struct catch_errors_args)
5712         (do_catch_errors, catch_errors, struct captured_command_args)
5713         (do_captured_command, catch_command_errors): Move to exceptions.c.
5714         * wrapper.c, wince.c, win32-nat.c, utils.c: Include "exceptions.h".
5715         * tui/tui-interp.c, top.c, thread.c, symmisc.c: Ditto.
5716         * symfile-mem.c, stack.c, solib.c, rs6000-nat.c: Ditto.
5717         * remote-sds.c, remote-mips.c, remote-fileio.c: Ditto.
5718         * remote-e7000.c, objc-lang.c, ocd.c: Ditto.
5719         * remote.c, nto-procfs.c, monitor.c, mi/mi-main.c: Ditto.
5720         * main.c, m32r-rom.c, infrun.c, inf-loop.c: Ditto.
5721         * hppa-hpux-tdep.c, frame.c, event-top.c, event-loop.c: Ditto.
5722         * corelow.c, corefile.c, cli/cli-interp.c, breakpoint.c: Ditto.
5723         * ada-valprint.c, ada-lang.c: Ditto.
5724         * Makefile.in (HFILES_NO_SRCDIR, COMMON_OBS): Add exceptions.h and
5725         exceptions.o.  Update all dependencies.
5726
5727 2005-01-11  Mark Kettenis  <kettenis@gnu.org>
5728
5729         * config/i386/nm-fbsd.h: Update copyright year.
5730         Don't include "config/nm-bsd.h".
5731         (KERNEL_U_SIZE): Remove macro.
5732         (kernel_u_size): Remove prototype.
5733
5734         * config/vax/nbsdaout.mh (NAT_FILE): Remove.
5735         * config/vax/nm-nbsdaout.h: Remove file.
5736
5737 2005-01-10  Elena Zannoni  <ezannoni@redhat.com>
5738
5739         * MAINTAINERS: Remove self from sh/sh64 maintainership.
5740
5741 2005-01-10  Andrew Cagney  <cagney@gnu.org>
5742
5743         * MAINTAINERS: List Andrew Cagney and Kevin Buettner as can commit
5744         changes to PowerPC, and Andrew Cagney as lead PowerPC GNU/Linux
5745         maintainer.
5746
5747         * MAINTAINERS: Hans-Peter Nilsson and Orjan Friberg can commit
5748         changes to CRIS.
5749
5750         * MAINTAINERS: Remove "Maintenance Only".  Spell out that CAN
5751         COMMIT means can approve).
5752
5753 2005-01-10  Mark Kettenis  <kettenis@gnu.org>
5754
5755         * vax-nat.c: Update copyright year.  Include "inf-ptrace.h".
5756         (vax_register_u_offset): Make statuc.
5757         (_initialize_vax_nat): Construct and add target vector.
5758         * config/vax/vax.mh (NATDEPFILES): Remove infptrace.o and
5759         inftarg.o.  Add inf-ptrace.o.
5760         * Makefile.in (vax-nat.o): Update dependencies.
5761
5762         * inf-ptrace.h: Update copyright year.  Sync comment with
5763         inf-ptrace.c.
5764         (inf_ptrace_trad_target): New prototype.
5765         * inf-ptrace.c: Update copyright year.  Include "regcache.h" and
5766         "gdb_assert.h"
5767         (inf_ptrace_target): Add comment.
5768         (inf_ptrace+register_u_offset): New variable.
5769         (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
5770         (inf_ptrace_store_register, inf_ptrace_store_registers)
5771         (inf_ptrace_trad_target): New functions.
5772         * Makefile.in (inf-ptrace.o): Update dependencies.
5773
5774 2005-01-09  Mark Kettenis  <kettenis@gnu.org>
5775
5776         * configure.ac: Provide prerequisite headers when checking
5777         <link.h>, <sys/proc.h> and <sys/user.h>.
5778         * configure: Regenerate.
5779
5780 2005-01-08  Mark Kettenis  <kettenis@gnu.org>
5781
5782         * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Set to
5783         tm-ppc-eabi.h instead of the removed tm-nbsd.h.
5784
5785 2005-01-07  Mark Kettenis  <kettenis@gnu.org>
5786
5787         * config/ia64/tm-linux.h: Tweak comment.  Update copyright year.
5788         Don't include "tm-ia64.h".
5789         * config/ia64/ia64.mt (DEPRECATED_TM_FILE): Remove.
5790         * config/ia64/tm-ia64.h: Remove.  Move contents ...
5791         * ia64-tdep.h: ... here.  Update copyright year.
5792
5793 2005-01-07  Andrew Cagney  <cagney@gnu.org>
5794
5795         * configure.ac: Rename configure.in, require autoconf 2.59.
5796         * configure: Re-generate.
5797
5798         * configure.tgt: Disable arm*-*-*, thumb*-*-*, strongarm*-*-*,
5799         xscale-*-* and i[34567]86-*-netware* code adding rdi-share or nlm
5800         to configdirs.
5801
5802         * configure.in: Replace configdirs with multiple references to
5803         AC_CONFIG_SUBDIRS.
5804         * configure: Re-generate.
5805
5806 2005-01-05  Andreas Schwab  <schwab@suse.de>
5807
5808         * ia64-tdep.c: Include "osabi.h".
5809         (native_find_global_pointer): Delete.
5810         (ia64_find_global_pointer): Renamed from
5811         generic_elf_find_global_pointer.
5812         (FIND_GLOBAL_POINTER): Delete.  Change all users to call
5813         ia64_find_global_pointer instead.
5814         (ia64_gdbarch_init): Call gdbarch_init_osabi.  Remove references
5815         to ia64_linux_sigcontext_register_address and
5816         ia64_linux_write_pc.  Don't set tdep->find_global_pointer.
5817         (_initialize_ia64_tdep): Call gdbarch_register instead of
5818         deprecated register_gdbarch_init.
5819         (struct gdbarch_tdep): Remove find_global_pointer field and move
5820         to ...
5821         * ia64-tdep.h (struct gdbarch_tdep): ... here.
5822         (ia64_linux_sigcontext_register_address): Remove declaration.
5823         (ia64_linux_getunwind_table): Likewise.
5824         (ia64_linux_write_pc): Likewise.
5825         * ia64-linux-tdep.c: Include "osabi.h".
5826         (ia64_linux_sigcontext_register_address): Make static.
5827         (ia64_linux_write_pc): Likewise.
5828         (ia64_linux_init_abi): New.
5829         (_initialize_ia64_linux_tdep): New.
5830         * Makefile.in (ia64-tdep.o, ia64-linux-tdep.o): Depend on
5831         $(osabi_h).
5832
5833 2005-01-05  Kevin Buettner  <kevinb@redhat.com>
5834
5835         * ia64-tdep.c (ia64_gdbarch_init): Eliminate dependency on
5836         functions in ia64-aix-tdep.c.
5837         * ia64-tdep.h (ia64_aix_sigcontext_register_address): Remove
5838         function defined in ia64-aix-tdep.c.
5839         * ia64-aix-tdep.c: Remove file.
5840         * config/ia64/linux.mt (TDEPFILES): Remove ia64-aix-tdep.o from
5841         this list.
5842         * Makefile.in (ia64-aix-tdep.o): Delete.
5843
5844 2005-01-05  Baurjan Ismagulov  <ibr@ata.cs.hun.edu.tr>
5845
5846         Committed by Andrew Cagney.
5847         * ada-valprint.c, aix-thread.c, alpha-nat.c: I18n markup.
5848         * alphabsd-nat.c, alphanbsd-tdep.c, amd64-linux-nat.c: I18n markup.
5849         * amd64-tdep.c, amd64bsd-nat.c, amd64fbsd-nat.c: I18n markup.
5850         * arch-utils.c, arm-linux-nat.c, arm-tdep.c: I18n markup.
5851         * armnbsd-nat.c, armnbsd-tdep.c, auxv.c, avr-tdep.c: I18n markup.
5852         * aix-thread.c (_initialize_aix_thread): Get rid of the
5853         deprecated_add_show_from_set call.
5854         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
5855         * arm-tdep.c (_initialize_arm_tdep): Ditto.
5856         * command.h (add_setshow_enum_cmd): Add arguments for returning
5857         new list elements.
5858         * cli/cli-decode.c (add_setshow_enum_cmd): Ditto.
5859         * mips-tdep.c (_initialize_mips_tdep): Modify calls to
5860         add_setshow_enum_cmd.
5861
5862 2005-01-04  Mark Kettenis  <kettenis@gnu.org>
5863
5864         * configure.host (ia64-*-aix*): Remove.
5865         * configure.tgt (ia64-*-aix*): Remove.
5866         * config/ia64/aix.mh: Remove file.
5867         * config/ia64/aix.mt: Remove file.
5868         * config/ia64/tm-aix.h: Remove file.
5869         * ia64-aix-nat.c: Remove file.
5870         * Makefile.in (ia64-aix-nat.o): Remove dependency.
5871
5872         * config/m88k/obsd.mh (NATDEPFILES): Really remove inf-child.o.
5873         Add back inf-ptrace.o.
5874
5875 2005-01-04  Andrew Cagney  <cagney@gnu.org>
5876
5877         * version.in: Change format from 6.3.50_2005-01-04-cvs to
5878         6.3.50.20050104-cvs.
5879
5880 2005-01-04  Andreas Schwab  <schwab@suse.de>
5881
5882         * breakpoint.c (break_command_1): Always free err_msg before
5883         returning when an exception was caught.
5884
5885 2005-01-01  Joel Brobecker  <brobecker@gnat.com>
5886
5887         * hppa-tdep.c (prologue_inst_adjust_sp): Fix small confusion
5888         in register number for addil instruction.
5889
5890 For older changes see ChangeLog-2004.
5891 \f
5892 Local Variables:
5893 mode: change-log
5894 left-margin: 8
5895 fill-column: 74
5896 version-control: never
5897 End: